1 2010-04-03 Bruno Haible <bruno@clisp.org>
3 localename: Port to MacOS X 10.6.
4 * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
5 memory layout of the locales in MacOS X 10.6 as well.
6 Reported by Panu Kekäläinen <panu@kekalainen.eu>.
8 2010-04-02 Bruno Haible <bruno@clisp.org>
10 gnulib-tool: Ensure that long-running tests are executed last.
11 * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
12 running tests after the one for the other tests.
14 2010-04-02 Bruno Haible <bruno@clisp.org>
16 gnulib-tool: Ensure the tests in the main directory are executed first.
17 * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
18 start with the current directory.
20 2010-04-02 Bruno Haible <bruno@clisp.org>
22 Tests for module 'havelib', moved here from GNU gettext.
23 * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25 * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26 * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
28 * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30 * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31 * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
32 * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34 * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
36 * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
37 * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
38 * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
39 * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
40 * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
41 * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
42 * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
43 * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
44 * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
45 * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
46 * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
47 * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
48 * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
49 * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
50 * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
51 * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
52 * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
54 * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
56 * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
57 * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
58 * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
59 * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
60 * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
61 * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
62 * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
63 * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
64 * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
65 * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
66 * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
67 * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
68 * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
69 * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
70 * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
71 * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
72 * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
73 * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
74 * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
75 * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
76 * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
77 * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
78 * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
79 * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
80 * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
81 * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
82 * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
83 * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
84 * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
85 * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
86 * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
87 * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
88 * tests/havelib/rpathx/rpathx.c: New file, from
89 gettext/autoconf-lib-link.
90 * tests/havelib/rpathx/Makefile.am: New file, from
91 gettext/autoconf-lib-link.
92 * tests/havelib/rpathx/configure.ac: New file, from
93 gettext/autoconf-lib-link with modifications.
94 * tests/havelib/rpathy/rpathy.c: New file, from
95 gettext/autoconf-lib-link.
96 * tests/havelib/rpathy/Makefile.am: New file, from
97 gettext/autoconf-lib-link.
98 * tests/havelib/rpathy/configure.ac: New file, from
99 gettext/autoconf-lib-link with modifications.
100 * tests/havelib/rpathz/rpathz.c: New file, from
101 gettext/autoconf-lib-link.
102 * tests/havelib/rpathz/Makefile.am: New file, from
103 gettext/autoconf-lib-link.
104 * tests/havelib/rpathz/configure.ac: New file, from
105 gettext/autoconf-lib-link with modifications.
106 * tests/havelib/rpathlx/usex.c: New file, from
107 gettext/autoconf-lib-link.
108 * tests/havelib/rpathlx/Makefile.am: New file, from
109 gettext/autoconf-lib-link.
110 * tests/havelib/rpathlx/configure.ac: New file, from
111 gettext/autoconf-lib-link with modifications.
112 * tests/havelib/rpathly/usey.c: New file, from
113 gettext/autoconf-lib-link.
114 * tests/havelib/rpathly/Makefile.am: New file, from
115 gettext/autoconf-lib-link.
116 * tests/havelib/rpathly/configure.ac: New file, from
117 gettext/autoconf-lib-link with modifications.
118 * tests/havelib/rpathlz/usez.c: New file, from
119 gettext/autoconf-lib-link.
120 * tests/havelib/rpathlz/Makefile.am: New file, from
121 gettext/autoconf-lib-link.
122 * tests/havelib/rpathlz/configure.ac: New file, from
123 gettext/autoconf-lib-link with modifications.
124 * tests/havelib/rpathlyx/usey.c: New file, from
125 gettext/autoconf-lib-link.
126 * tests/havelib/rpathlyx/Makefile.am: New file, from
127 gettext/autoconf-lib-link.
128 * tests/havelib/rpathlyx/configure.ac: New file, from
129 gettext/autoconf-lib-link with modifications.
130 * tests/havelib/rpathlzyx/usez.c: New file, from
131 gettext/autoconf-lib-link.
132 * tests/havelib/rpathlzyx/Makefile.am: New file, from
133 gettext/autoconf-lib-link.
134 * tests/havelib/rpathlzyx/configure.ac: New file, from
135 gettext/autoconf-lib-link with modifications.
136 * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
139 2010-04-02 Bruno Haible <bruno@clisp.org>
141 gnulib-tool: Create distributed built sources also for the tests.
142 * gnulib-tool (func_create_testdir): Also generate distributed built
143 sources in the tests directory.
145 2010-04-02 Bruno Haible <bruno@clisp.org>
147 gnulib-tool: Obey user's environment variables.
148 * gnulib-tool (func_create_testdir): When creating built sources,
149 respect the environment variables for autoconf, automake, etc. given by
152 2010-04-02 Bruno Haible <bruno@clisp.org>
154 gnulib-tool: Provide the value of --m4-base to modules.
155 * gnulib-tool (func_import, func_create_testdir): Emit a definition
158 2010-04-02 Eric Blake <eblake@redhat.com>
160 maint.mk: fix some fallout
161 * NEWS: Document the incompatible change, and its effect on cfg.mk.
162 * top/maint.mk (sc_prohibit_test_minus_ao): Update.
164 2010-03-28 Jose E. Marchesi <jemarch@gnu.org>
166 maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
167 * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
168 (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
169 (sc_cast_of_x_alloc_return_value): Likewise.
170 (sc_cast_of_alloca_return_value): Likewise.
171 (sc_space_tab): Likewise.
172 (sc_prohibit_atoi_atof): Likewise.
173 (sc_prohibit_magic_number_exit): Likewise.
174 (sc_error_exit_success): Likewise.
175 (sc_file_system): Likewise.
176 (sc_prohibit_have_config_h): Likewise.
177 (sc_require_config_h): Likewise.
178 (sc_prohibit_HAVE_MBRTOWC): Likewise.
179 (sc_obsolete_symbols): Likewise.
180 (sc_changelog): Likewise.
181 (sc_program_name): Likewise.
182 (sc_the_the): Likewise.
183 (sc_trailing_blank): Likewise.
184 (sc_two_space_separator_in_usage): Likewise.
185 (sc_useless_cpp_parens): Likewise.
186 (sc_GPL_version): Likewise.
187 (sc_GFDL_version): Likewise.
188 (sc_texinfo_acronym): Likewise.
189 (sc_prohibit_cvs_keyword): Likewise.
190 (sc_prohibit_stat_st_blocks): Likewise.
191 (sc_prohibit_S_IS_definition): Likewise.
192 (sc_redundant_const): Likewise.
193 (sc_makefile_TAB_only_indentation): Likewise.
194 (sc_m4_quote_check): Likewise.
195 (sc_makefile_path_separator_check): Likewise.
196 (sc_copyright_check): Likewise.
197 (sc_Wundef_boolean): Likewise.
198 (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
200 maint.mk: match 0 or more whitespace-before-function-call '('
201 * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
202 that have zero or two-and-more spaces between the function name
203 and the open parenthesis.
204 (sc_error_message_warn_fatal): Likewise.
205 (sc_error_message_uppercase): Likewise.
206 (sc_error_message_period): Likewise.
208 2010-03-31 Eric Blake <eblake@redhat.com>
210 maint.mk: check for [ as well as test
211 * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
212 Based on a libvirt report by Matthias Bolte.
214 gnumakefile: don't squelch _version output
215 * top/GNUmakefile (_version): Create one-shot dependency rather
216 than using $(shell) when version must be regenerated.
217 (_autoreconf): Run verbosely, by default.
219 sys_time: avoid compiler warnings
220 * lib/sys_time.in.h (includes): Ensure gcc pragma is
221 unconditional, fixing regression from 2010-03-29.
222 Reported by Simon Josefsson.
224 2010-03-28 Jose E. Marchesi <jemarch@gnu.org>
226 maint.mk: s/_header_without_use/_sc_header_without_use/
227 * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
228 (sc_prohibit_assert_without_use): Use the new name.
229 (sc_prohibit_close_stream_without_use): Likewise.
230 (sc_prohibit_getopt_without_use): Likewise.
231 (sc_prohibit_quotearg_without_use): Likewise.
232 (sc_prohibit_quote_without_use): Likewise.
233 (sc_prohibit_long_options_without_use): Likewise.
234 (sc_prohibit_inttostr_without_use): Likewise.
235 (sc_prohibit_ignore_value_without_use): Likewise.
236 (sc_prohibit_error_without_use): Likewise.
237 (sc_prohibit_xalloc_without_use): Likewise.
238 (sc_prohibit_hash_without_use): Likewise.
239 (sc_prohibit_hash_pjw_without_use): Likewise.
240 (sc_prohibit_safe_read_without_use): Likewise.
241 (sc_prohibit_argmatch_without_use): Likewise.
242 (sc_prohibit_canonicalize_without_use): Likewise.
243 (sc_prohibit_root_dev_ino_without_use): Likewise.
244 (sc_prohibit_openat_without_use): Likewise.
245 (sc_prohibit_c_ctype_without_use): Likewise.
246 (sc_prohibit_signal_without_use): Likewise.
247 (sc_prohibit_intprops_without_use): Likewise.
249 2010-03-30 Eric Blake <eblake@redhat.com>
251 maint: improve module indicators
252 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
253 (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
254 columns, and avoid extra macro expansion.
256 fdopendir: work around FreeBSD bug
257 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
258 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
259 * modules/dirent (Makefile.am): Substitute it.
260 * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
262 * doc/posix-functions/fdopendir.texi (fdopendir): Document the
264 Reported by Christian Weisgerber <naddy@mips.inka.de>.
266 2010-03-29 Bruno Haible <bruno@clisp.org>
268 Emit #pragma system_header after the inclusion guard, not before.
269 * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
270 guard that spans the entire file, not before. This enables an
271 optimization in GCC's preprocessor.
272 * lib/ctype.in.h: Likewise.
273 * lib/dirent.in.h: Likewise.
274 * lib/errno.in.h: Likewise.
275 * lib/float.in.h: Likewise.
276 * lib/getopt.in.h: Likewise.
277 * lib/iconv.in.h: Likewise.
278 * lib/langinfo.in.h: Likewise.
279 * lib/locale.in.h: Likewise.
280 * lib/math.in.h: Likewise.
281 * lib/netdb.in.h: Likewise.
282 * lib/netinet_in.in.h: Likewise.
283 * lib/pty.in.h: Likewise.
284 * lib/sched.in.h: Likewise.
285 * lib/se-selinux.in.h: Likewise.
286 * lib/search.in.h: Likewise.
287 * lib/spawn.in.h: Likewise.
288 * lib/stdarg.in.h: Likewise.
289 * lib/stdint.in.h: Likewise.
290 * lib/string.in.h: Likewise.
291 * lib/strings.in.h: Likewise.
292 * lib/sys_file.in.h: Likewise.
293 * lib/sys_ioctl.in.h: Likewise.
294 * lib/sys_time.in.h: Likewise.
295 * lib/sys_times.in.h: Likewise.
296 * lib/sys_utsname.in.h: Likewise.
297 * lib/sys_wait.in.h: Likewise.
298 * lib/sysexits.in.h: Likewise.
299 * lib/wctype.in.h: Likewise.
301 2010-03-28 James Youngman <jay@gnu.org>
303 save-cwd: don't leak a file descriptor when the caller execs.
304 * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
305 saved file descriptor.
306 * modules/save-cwd (Depends-on): Depend on cloexec.
308 2010-03-29 Bruno Haible <bruno@clisp.org>
310 Remove vestiges of fts-lgpl module.
311 * lib/fts_.h: Assume GNULIB_FTS is 1.
312 * lib/fts.c: Likewise.
313 * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
315 2010-03-28 Bruno Haible <bruno@clisp.org>
317 Fix definition of tests witness macro.
318 * gnulib-tool (func_import): Fix definition of witness macro.
320 2010-03-28 Bruno Haible <bruno@clisp.org>
322 Fix ioctl's protoype on glibc systems.
323 * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
324 _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
325 * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
326 * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
327 signature. If not, arrange to replace the ioctl function.
328 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
330 * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
331 * doc/posix-functions/ioctl.texi: Mention the glibc problem.
332 Reported by Ludovic Courtès <ludo@gnu.org>.
334 2010-03-28 Javier Villavicencio <the_paya@gentoo.org>
336 exclude: fix the case of globs vs. EXCLUDE_INCLUDE
337 * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
338 made it so grep -r --include=GLOB* ... did not work.
340 2010-03-26 Jim Meyering <meyering@redhat.com>
341 Eric Blake <eblake@redhat.com>
343 maint.mk: prohibit use of test's -o and -a operators
344 * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
346 2010-03-28 Bruno Haible <bruno@clisp.org>
348 Remove unused GNULIB_XYZ macro definitions.
349 * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
352 2010-03-28 Bruno Haible <bruno@clisp.org>
354 Mark privileged tests modules.
355 * modules/idpriv-drop-tests (Status): New section.
356 * modules/idpriv-droptemp-tests (Status): New section.
358 2010-03-28 Bruno Haible <bruno@clisp.org>
360 Split C++ tests into separate tests modules.
361 * modules/dirent-c++-tests: New file, extracted from
362 modules/dirent-tests.
363 * modules/dirent-tests: Depend on it.
364 * modules/fcntl-h-c++-tests: New file, extracted from
365 modules/fcntl-h-tests.
366 * modules/fcntl-h-tests: Depend on it.
367 * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
368 * modules/glob-tests: Depend on it.
369 * modules/iconv-h-c++-tests: New file, extracted from
370 modules/iconv-h-tests.
371 * modules/iconv-h-tests: Depend on it.
372 * modules/langinfo-c++-tests: New file, extracted from
373 modules/langinfo-tests.
374 * modules/langinfo-tests: Depend on it.
375 * modules/locale-c++-tests: New file, extracted from
376 modules/locale-tests.
377 * modules/locale-tests: Depend on it.
378 * modules/math-c++-tests: New file, extracted from modules/math-tests.
379 * modules/math-tests: Depend on it.
380 * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
381 * modules/pty-tests: Depend on it.
382 * modules/search-c++-tests: New file, extracted from
383 modules/search-tests.
384 * modules/search-tests: Depend on it.
385 * modules/signal-c++-tests: New file, extracted from
386 modules/signal-tests.
387 * modules/signal-tests: Depend on it.
388 * modules/spawn-c++-tests: New file, extracted from
390 * modules/spawn-tests: Depend on it.
391 * modules/stdio-c++-tests: New file, extracted from
393 * modules/stdio-tests: Depend on it.
394 * modules/stdlib-c++-tests: New file, extracted from
395 modules/stdlib-tests.
396 * modules/stdlib-tests: Depend on it.
397 * modules/string-c++-tests: New file, extracted from
398 modules/string-tests.
399 * modules/string-tests: Depend on it.
400 * modules/sys_ioctl-c++-tests: New file, extracted from
401 modules/sys_ioctl-tests.
402 * modules/sys_ioctl-tests: Depend on it.
403 * modules/sys_select-c++-tests: New file, extracted from
404 modules/sys_select-tests.
405 * modules/sys_select-tests: Depend on it.
406 * modules/sys_socket-c++-tests: New file, extracted from
407 modules/sys_socket-tests.
408 * modules/sys_socket-tests: Depend on it.
409 * modules/sys_stat-c++-tests: New file, extracted from
410 modules/sys_stat-tests.
411 * modules/sys_stat-tests: Depend on it.
412 * modules/sys_time-c++-tests: New file, extracted from
413 modules/sys_time-tests.
414 * modules/sys_time-tests: Depend on it.
415 * modules/time-c++-tests: New file, extracted from modules/time-tests.
416 * modules/time-tests: Depend on it.
417 * modules/unistd-c++-tests: New file, extracted from
418 modules/unistd-tests.
419 * modules/unistd-tests: Depend on it.
420 * modules/wchar-c++-tests: New file, extracted from
422 * modules/wchar-tests: Depend on it.
423 * modules/wctype-c++-tests: New file, extracted from
424 modules/wctype-tests.
425 * modules/wctype-tests: Depend on it.
426 Reported by Simon Josefsson.
428 2010-03-28 Bruno Haible <bruno@clisp.org>
430 gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
431 * gnulib-tool (func_exists_module): New function, extracted from
433 (func_verify_module): Use it.
434 (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
435 'foo' only if 'foo' exists.
436 * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
439 2010-03-28 Bruno Haible <bruno@clisp.org>
441 gnulib-tool: Add support for special categories of tests.
442 * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
443 --with-privileged-tests, --with-unportable-tests, --with-all-tests.
444 (func_usage): Document them.
445 (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
446 inc_unportable_tests, inc_all_tests): New variables.
447 (func_acceptable): Consider these variables.
448 (func_modules_transitive_closure): Make it work when the 'Status' field
449 consists of multiple words.
450 (func_import): Store and restore the values of inc_cxx_tests,
451 inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
452 inc_all_tests in gnulib-comp.m4.
453 (func_create_testdir): Set inc_all_tests to true.
454 * doc/gnulib.texi (Extra tests modules): New section.
455 Suggested by Jim Meyering.
457 2010-03-28 Bruno Haible <bruno@clisp.org>
459 ansi-c++-opt: Allow turning off the C++ build by default.
460 * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
461 gl_CXX_CHOICE_DEFAULT_NO is defined.
462 Requested by Eric Blake.
464 2010-03-28 Bruno Haible <bruno@clisp.org>
466 unistd: Avoid #define replacements in C++ mode.
467 * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
468 getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
469 setsockopt, shutdown, select): In C++, attach a warning to the function
470 if possible, rather than #defining the symbol to a dysfunctional alias.
471 Reported by John W. Eaton <jwe@gnu.org>.
473 2010-03-28 Bruno Haible <bruno@clisp.org>
475 Fix link errors on mingw.
476 * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
477 * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
479 * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
482 2010-03-28 Bruno Haible <bruno@clisp.org>
483 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
485 lib-ignore: Determine different options for different compilers.
486 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
487 depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
489 (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
490 * NEWS: Mention the change.
492 2010-03-27 Bruno Haible <bruno@clisp.org>
494 Remove unused GNULIB_XYZ macro definitions.
495 * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
496 * modules/fseek (configure.ac): Likewise.
497 * modules/ioctl (configure.ac): Likewise.
498 * modules/open (configure.ac): Likewise.
499 * modules/stdlib-safer (configure.ac): Likewise.
501 2010-03-27 Bruno Haible <bruno@clisp.org>
503 Add a remark about certain modules.
504 * modules/malloc (Comment): New section.
505 * modules/realloc (Comment): Likewise.
506 * modules/sigpipe (Comment): Likewise.
508 2010-03-27 Bruno Haible <bruno@clisp.org>
510 Resolve conflict between the two kinds of module indicators.
511 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
512 GNULIB_TEST_XYZ instead of GNULIB_XYZ.
513 * modules/canonicalize (configure.ac): Invoke
514 gl_MODULE_INDICATOR_FOR_TESTS.
515 * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
517 * tests/test-dirent-c++.cc: Likewise.
518 * tests/test-dirent-safer.c: Likewise.
519 * tests/test-dup2.c: Likewise.
520 * tests/test-fchdir.c: Likewise.
521 * tests/test-fcntl-h-c++.cc: Likewise.
522 * tests/test-getopt.c: Likewise.
523 * tests/test-getopt.h: Likewise.
524 * tests/test-langinfo-c++.cc: Likewise.
525 * tests/test-locale-c++.cc: Likewise.
526 * tests/test-math-c++.cc: Likewise.
527 * tests/test-pty-c++.cc: Likewise.
528 * tests/test-search-c++.cc: Likewise.
529 * tests/test-signal-c++.cc: Likewise.
530 * tests/test-spawn-c++.cc: Likewise.
531 * tests/test-stdio-c++.cc: Likewise.
532 * tests/test-stdlib-c++.cc: Likewise.
533 * tests/test-string-c++.cc: Likewise.
534 * tests/test-sys_ioctl-c++.cc: Likewise.
535 * tests/test-sys_select-c++.cc: Likewise.
536 * tests/test-sys_socket-c++.cc: Likewise.
537 * tests/test-sys_stat-c++.cc: Likewise.
538 * tests/test-sys_time-c++.cc: Likewise.
539 * tests/test-time-c++.cc: Likewise.
540 * tests/test-unistd-c++.cc: Likewise.
541 * tests/test-wchar-c++.cc: Likewise.
542 * tests/uninorm/test-u8-nfc.c: Likewise.
543 * tests/uninorm/test-u8-nfd.c: Likewise.
544 * tests/uninorm/test-u8-nfkc.c: Likewise.
545 * tests/uninorm/test-u8-nfkd.c: Likewise.
546 * tests/uninorm/test-u16-nfc.c: Likewise.
547 * tests/uninorm/test-u16-nfd.c: Likewise.
548 * tests/uninorm/test-u16-nfkc.c: Likewise.
549 * tests/uninorm/test-u16-nfkd.c: Likewise.
550 * tests/uninorm/test-u32-nfc.c: Likewise.
551 * tests/uninorm/test-u32-nfc-big.c: Likewise.
552 * tests/uninorm/test-u32-nfd.c: Likewise.
553 * tests/uninorm/test-u32-nfd-big.c: Likewise.
554 * tests/uninorm/test-u32-nfkc.c: Likewise.
555 * tests/uninorm/test-u32-nfkc-big.c: Likewise.
556 * tests/uninorm/test-u32-nfkd.c: Likewise.
557 * tests/uninorm/test-u32-nfkd-big.c: Likewise.
558 * tests/uninorm/test-u32-normalize-big.c: Likewise.
560 2010-03-27 Bruno Haible <bruno@clisp.org>
562 Distinguish two kinds of module indicators.
563 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
565 (gl_MODULE_INDICATOR): New macro.
566 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
567 gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
568 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
569 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
570 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
571 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
572 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
573 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
574 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
575 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
576 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
577 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
578 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
579 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
580 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
581 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
582 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
583 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
584 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
585 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
586 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
587 * modules/cloexec (configure.ac): Likewise.
588 * modules/getopt-gnu (configure.ac): Likewise.
589 * modules/uninorm/u8-normalize (configure.ac): Likewise.
590 * modules/uninorm/u16-normalize (configure.ac): Likewise.
591 * modules/uninorm/u32-normalize (configure.ac): Likewise.
592 * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
594 2010-03-27 Bruno Haible <bruno@clisp.org>
596 New module description field 'Comment'.
597 * gnulib-tool: New option --extract-comment.
598 (func_usage): Document it.
599 (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
600 (func_get_comment): New function.
601 * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
603 2010-03-27 Bruno Haible <bruno@clisp.org>
605 Addendum to 2010-02-07 commit.
606 * gnulib-tool (func_usage): Document --extract-applicability option.
608 2010-03-27 Bruno Haible <bruno@clisp.org>
610 Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
611 * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
612 GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
613 rather than link errors.
615 2010-03-27 Bruno Haible <bruno@clisp.org>
617 Avoid side effects from tests-related modules on the compilation of lib.
618 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
619 (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
620 * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
621 parameter. Emit into AM_CPPFLAGS a definition of the designated C
623 (func_import): Define a witness macro. Assign it a value that depends
624 on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
625 tests-related modules.
626 (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
627 Reported by Jim Meyering.
629 2010-03-27 Bruno Haible <bruno@clisp.org>
631 Factorize common .m4 code.
632 * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
633 * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
634 * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
635 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
636 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
637 * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
638 * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
639 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
640 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
641 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
642 * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
643 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
644 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
645 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
646 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
647 * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
648 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
649 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
650 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
651 * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
652 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
653 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
654 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
655 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
656 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
657 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
658 * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
659 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
660 * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
661 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
662 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
663 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
665 2010-03-27 Bruno Haible <bruno@clisp.org>
667 Fix a compilation error on Cygwin with g++ >= 4.3.
668 * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
669 if it is undefined or if we alias it to chmod.
670 (lstat): Don't warn about the use of this function if it is undefined
671 or if we alias it to stat.
672 Reported by Simon Josefsson.
674 2010-03-27 Bruno Haible <bruno@clisp.org>
676 * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
677 * modules/getlogin (configure.ac): Update.
679 * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
680 * modules/getlogin_r (configure.ac): Update.
682 * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
683 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
684 * modules/inet_ntop (configure.ac): Update.
686 * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
687 * modules/inet_pton (configure.ac): Update.
689 * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
690 * modules/mbslen (configure.ac): Update.
692 * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
693 (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
694 * modules/forkpty (configure.ac): Update.
695 * modules/openpty (configure.ac): Update.
697 2010-03-26 Simon Josefsson <simon@josefsson.org>
699 * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
700 no *.texi files. Reported by Eric Blake <eblake@redhat.com>.
702 2010-03-25 Eric Blake <eblake@redhat.com>
704 maint: use pragma consistently across replacement headers
705 * lib/ctype.in.h (system_header): Hoist for consistent placement.
706 * lib/dirent.in.h (system_header): Likewise.
707 * lib/errno.in.h (system_header): Likewise.
708 * lib/float.in.h (system_header): Likewise.
709 * lib/getopt.in.h (system_header): Likewise.
710 * lib/iconv.in.h (system_header): Likewise.
711 * lib/inttypes.in.h (system_header): Likewise.
712 * lib/langinfo.in.h (system_header): Likewise.
713 * lib/locale.in.h (system_header): Likewise.
714 * lib/math.in.h (system_header): Likewise.
715 * lib/netdb.in.h (system_header): Likewise.
716 * lib/netinet_in.in.h (system_header): Likewise.
717 * lib/pty.in.h (system_header): Likewise.
718 * lib/sched.in.h (system_header): Likewise.
719 * lib/se-selinux.in.h (system_header): Likewise.
720 * lib/search.in.h (system_header): Likewise.
721 * lib/spawn.in.h (system_header): Likewise.
722 * lib/stdarg.in.h (system_header): Likewise.
723 * lib/stdint.in.h (system_header): Likewise.
724 * lib/string.in.h (system_header): Likewise.
725 * lib/strings.in.h (system_header): Likewise.
726 * lib/sys_file.in.h (system_header): Likewise.
727 * lib/sys_ioctl.in.h (system_header): Likewise.
728 * lib/sys_socket.in.h (system_header): Likewise.
729 * lib/sys_times.in.h (system_header): Likewise.
730 * lib/sys_utsname.in.h (system_header): Likewise.
731 * lib/sys_wait.in.h (system_header): Likewise.
732 * lib/sysexits.in.h (system_header): Likewise.
733 * lib/unistd.in.h (system_header): Likewise.
734 * lib/wctype.in.h (system_header): Likewise.
736 arpa/inet: fix mingw compilation warning
737 * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
738 Reported by Matthew Bolte.
740 2010-03-25 Bruno Haible <bruno@clisp.org>
742 Avoid collision between gnulib wrapper and libintl wrapper.
743 * lib/printf.c (printf): Don't define if a printf wrapper is already
744 defined in intl/printf.c.
745 Reported by Michel Boaventura <michel@michelboaventura.com>.
747 2010-03-25 Bruno Haible <bruno@clisp.org>
750 * lib/readutmp.h (getutent): Provide ANSI C prototype.
752 2010-03-25 Bruno Haible <bruno@clisp.org>
754 Minor formatting changes.
755 * lib/acosl.c: Insert space before function argument list.
756 * lib/argz.c: Likewise.
757 * lib/asinl.c: Likewise.
758 * lib/expl.c: Likewise.
759 * lib/gen-uni-tables.c: Likewise.
760 * lib/gettext.h: Likewise.
761 * lib/glthread/lock.h: Likewise.
762 * lib/tanl.c: Likewise.
763 * lib/uniname/uniname.c: Likewise.
764 * tests/test-idpriv-drop.c: Likewise.
765 * tests/test-idpriv-droptemp.c: Likewise.
766 * tests/test-lock.c: Likewise.
767 * tests/test-tls.c: Likewise.
768 * lib/argp-help.c: Insert space before function-like macro argument
770 * lib/memcmp.c: Likewise.
771 * tests/test-base64.c: Likewise.
772 * lib/localename.c: Insert space before sizeof's argument list.
773 * lib/safe-alloc.h: Likewise.
774 * lib/file-set.h: Insert space before macro argument list.
775 * tests/test-argp.c: Likewise.
776 * lib/argp-namefrob.h: Insert space before function parameter list.
777 * lib/getaddrinfo.c: Likewise.
778 * lib/netdb.in.h: Likewise.
779 * lib/parse-duration.h: Likewise.
780 * lib/parse-duration.c: Likewise.
781 * lib/poll.c: Likewise.
782 * lib/select.c: Likewise.
783 * lib/trim.h: Likewise.
784 * tests/test-usleep.c: Likewise.
785 * lib/ldexpl.c: Insert space before function parameter list and before
786 function argument list.
787 * lib/logl.c: Likewise.
788 * lib/sqrtl.c: Likewise.
789 * lib/trim.c: Likewise.
790 * lib/cosl.c: Use GNU style indentation. Insert space before function
792 * lib/sinl.c: Likewise.
793 * lib/tsearch.c: Insert space after 'for'.
794 Reported by Jim Meyering.
796 2010-03-23 Pádraig Brady <P@draigBrady.com> (tiny change)
798 * maint.mk (sc_Wundef_boolean): Check for the presence of the
799 config header before grepping, as it's not present before
800 autoreconf/configure are run. Reported by Simon Josefsson.
802 2010-03-23 Bruno Haible <bruno@clisp.org>
804 pt_chown: Make it work with automake < 1.11.
805 * modules/pt_chown (Makefile.am): Define pkglibexecdir.
806 Reported by Simon Josefsson.
808 2010-03-23 Bruno Haible <bruno@clisp.org>
810 pt_chown: Don't depend on GPLed modules.
811 * lib/pt_chown.c: Don't include idpriv.h.
812 (main): Don't drop privileges.
813 * modules/pt_chown (Depends-on): Remove idpriv-drop.
814 Reported by Simon Josefsson.
816 2010-03-24 Simon Josefsson <simon@josefsson.org>
818 * top/maint.mk (sc_texinfo_acronym): Add rule, based on
819 suggestions from karl@freefriends.org (Karl Berry).
821 2010-03-22 Eric Blake <eblake@redhat.com>
823 gethostname: further tweaks
824 * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
825 are overriding gethostname.
826 Suggested by Bruno Haible.
828 2010-03-21 Bruno Haible <bruno@clisp.org>
831 * lib/forkpty.c (rpl_forkpty): Fix comment.
832 * lib/openpty.c (rpl_openpty): Likewise.
833 Reported by Eric Blake.
835 2010-03-22 Eric Blake <eblake@redhat.com>
837 gethostname: fix build on mingw
838 * lib/unistd.in.h (includes): Work around fact that mingw
839 <winsock2.h> re-includes <unistd.h>, by avoiding any
840 redeclarations if we are being included by <winsock2.h>.
841 Reported by Matthias Bolte.
843 2010-03-21 Bruno Haible <bruno@clisp.org>
845 forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
846 * lib/forkpty.c (forkpty): New replacement function, from glibc with
848 * lib/pty.in.h (forkpty): Update declaration. Add comments.
849 * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
850 provide the replacement.
851 * modules/forkpty (Depends-on): Add openpty, login_tty.
852 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
853 * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
854 * doc/glibc-functions/forkpty.texi: More supported platforms.
855 * config/srclist.txt: Add forkpty.c (commented).
857 2010-03-21 Bruno Haible <bruno@clisp.org>
859 * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
860 (Makefile.am): Verify that PTY_LIB is defined.
862 * modules/openpty-tests: Use the common TEMPLATE-TESTS.
864 2010-03-21 Bruno Haible <bruno@clisp.org>
866 Tests for module 'login_tty'.
867 * modules/login_tty-tests: New file.
868 * tests/test-login_tty.c: New file.
870 New module 'login_tty'.
871 * lib/login_tty.c: New file.
872 * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
873 * modules/login_tty: New file.
874 * doc/glibc-functions/login_tty.texi: Mention the new module.
876 2010-03-21 Bruno Haible <bruno@clisp.org>
878 login_tty: Documentation.
879 * doc/glibc-functions/login_tty.texi: New file.
880 * doc/gnulib.texi (Glibc <utmp.h>): Include it.
882 2010-03-21 Bruno Haible <bruno@clisp.org>
884 pty: Consistent macro naming.
885 * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
886 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
887 * modules/pty (configure.ac): Update.
889 2010-03-21 Bruno Haible <bruno@clisp.org>
891 Tests for openpty: Make stricter.
892 * tests/test-openpty.c (main): Add test of canonical processing and
894 * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
896 openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
897 * lib/openpty.c (openpty): New replacement function.
898 * lib/pty.in.h: Include <termios.h>.
899 (openpty): Update declaration. Add comments.
900 * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
901 is not declared, arrange to provide the replacement. Check for _getpty
903 * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
904 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
905 * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
906 * modules/pty-tests (test_pty_c___LDADD): New variable.
907 * doc/glibc-functions/openpty.texi: More supported platforms.
909 2010-03-21 Bruno Haible <bruno@clisp.org>
912 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
914 * doc/posix-functions/setenv.texi: Update platforms list.
916 2010-03-21 Bruno Haible <bruno@clisp.org>
918 New module 'unlockpt'.
919 * lib/unlockpt.c: New file, from glibc with modifications.
920 * m4/unlockpt.m4: New file.
921 * modules/unlockpt: New file.
922 * lib/stdlib.in.h (unlockpt): New declaration.
923 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
924 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
925 * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
927 * doc/posix-functions/unlockpt.texi: Mention the new module.
928 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
929 * config/srclist.txt: Add unlockpt.c (commented).
931 2010-03-21 Jim Meyering <meyering@redhat.com>
933 maint.mk: prohibit inclusion of "intprops.h" without use
934 * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
936 2010-03-21 Bruno Haible <bruno@clisp.org>
938 New module 'grantpt'.
939 * lib/grantpt.c: New file, from glibc with modifications.
940 * m4/grantpt.m4: New file.
941 * modules/grantpt: New file.
942 * lib/stdlib.in.h (grantpt): New declaration.
943 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
944 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
945 * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
947 * doc/posix-functions/grantpt.texi: Mention the new module.
948 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
949 * config/srclist.txt: Add grantpt.c (commented).
951 2010-03-21 Bruno Haible <bruno@clisp.org>
953 New module 'pt_chown'.
954 * lib/pt_chown.c: New file, from glibc with modifications.
955 * lib/pty-private.h: New file, from glibc with modifications.
956 * modules/pt_chown: New file.
957 * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
959 2010-03-21 Bruno Haible <bruno@clisp.org>
961 Tests for module 'ptsname'.
962 * modules/ptsname-tests: New file.
963 * tests/test-ptsname.c: New file.
965 New module 'ptsname'.
966 * lib/ptsname.c: New file, from glibc with modifications.
967 * m4/ptsname.m4: New file.
968 * modules/ptsname: New file.
969 * lib/stdlib.in.h (ptsname): New declaration.
970 * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
971 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
972 * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
974 * doc/posix-functions/ptsname.texi: Mention the new module.
975 * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
976 * config/srclist.txt: Add ptsname.c (commented).
978 2010-03-21 Bruno Haible <bruno@clisp.org>
980 Tests for module 'ttyname_r'.
981 * modules/ttyname_r-tests: New file.
982 * tests/test-ttyname_r.c: New file.
984 New module 'ttyname_r'.
985 * lib/ttyname_r.c: New file.
986 * m4/ttyname_r.m4: New file.
987 * modules/ttyname_r: New file.
988 * lib/unistd.in.h (ttyname_r): New declaration.
989 * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
990 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
991 * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
993 * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
994 * doc/posix-functions/ttyname_r.texi: Mention the new module.
996 2010-03-20 Bruno Haible <bruno@clisp.org>
998 signal: Undefine macro definitions in C++ mode.
999 * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1000 sigfillset): Undefine macro definitions from the system header in C++
1002 Reported by John W. Eaton <jwe@gnu.org>.
1004 2010-03-20 Bruno Haible <bruno@clisp.org>
1006 Ensure no #include statements inside extern "C" { ... }.
1007 * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1008 contain #include statements.
1009 * lib/time.in.h: Likewise.
1011 2010-03-20 Bruno Haible <bruno@clisp.org>
1013 Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1014 * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1015 (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1016 Reported by John W. Eaton <jwe@gnu.org>.
1018 2010-03-20 Bruno Haible <bruno@clisp.org>
1020 * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1021 Reported by Jim Meyering.
1023 2010-03-20 Bruno Haible <bruno@clisp.org>
1025 pipe: Set errno upon failure.
1026 * lib/pipe.h: Specify that when -1 is returned, errno is set.
1027 * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1028 errno value in error message.
1030 2010-03-20 Bruno Haible <bruno@clisp.org>
1031 Jim Meyering <meyering@redhat.com>
1033 lchown: Avoid "unused variable" warning.
1034 * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1036 2010-03-20 Bruno Haible <bruno@clisp.org>
1038 Work around unlink() bug on MacOS X 10.5.6.
1039 * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1040 attempting to unlink a parent directory.
1041 * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1042 MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1043 activate for the replacement function.
1044 * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1046 2010-03-20 Bruno Haible <bruno@clisp.org>
1048 Fix link errors on Solaris 8.
1049 * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1050 * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1052 2010-03-19 Jim Meyering <meyering@redhat.com>
1054 regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1055 The _LIBC implementation of build_range_exp correctly honors the
1056 RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1057 However, the non-_LIBC implementation would ignore that syntax-bit
1058 flag and return REG_ERANGE unconditionally.
1059 This change makes it honor that flag.
1060 * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1061 Make two pointer parameters "const".
1062 Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1063 (parse_bracket_exp): Update caller.
1065 regex.m4: correct the reversed range endpoint ([b-a]) test
1066 * m4/regex.m4: When requiring that [b-a] evoke failure,
1067 use RE_NO_EMPTY_RANGES. This makes this entire configure-time
1068 test pass once again for x86-based systems.
1070 2010-03-19 Bruno Haible <bruno@clisp.org>
1072 scandir: Fix link error on Solaris 8.
1073 * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1076 2010-03-19 Bruno Haible <bruno@clisp.org>
1078 getusershell: Fix documentation.
1079 * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1081 * doc/glibc-functions/setusershell.texi: Likewise.
1083 getusershell: Provide declaration, missing on Solaris 9.
1084 * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1085 also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1086 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1087 check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1088 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1089 HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1090 * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1092 * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1094 2010-03-19 Bruno Haible <bruno@clisp.org>
1096 wctype: Provide iswblank function.
1097 * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1099 * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1100 * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1101 * tests/test-wctype.c (main): Re-enable the iswblank tests.
1102 * doc/posix-functions/iswblank.texi: Update.
1104 2010-03-19 Bruno Haible <bruno@clisp.org>
1106 Tests of module 'pty' in C++ mode.
1107 * modules/pty-tests: New file.
1108 * tests/test-pty-c++.cc: New file.
1109 * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1111 2010-03-19 Eric Blake <eblake@redhat.com>
1113 logb: fix documentation
1114 * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1115 1.5 declaration bug.
1117 forkpty, openpty: prefer glibc's const-safe prototype
1118 * lib/forkpty.c (rpl_forkpty): New file.
1119 * lib/openpty.c (rpl_openpty): Likewise.
1120 * modules/forkpty (Files): Distribute it.
1121 * modules/openpty (Files): Likewise.
1122 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses. Move decl
1124 * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here. Request
1125 replacement for for non-const BSD signature.
1126 * modules/pty (Makefile.am): Substitute witnesses.
1127 * lib/pty.in.h (forkpty, openpty): Declare replacements.
1128 * tests/test-forkpty.c: Update signature check.
1129 * tests/test-openpty.c: Likewise.
1130 * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1131 * doc/glibc-functions/openpty.texi (openpty): Likewise.
1133 forkpty, openpty: split functions into new modules
1134 * modules/pty (Makefile.am): Substitute new witnesses.
1135 (Libraries): Move library detection...
1136 * modules/forkpty: ...into new module.
1137 * modules/openpty: Another new module.
1138 * modules/pty-tests: Rename and split...
1139 * modules/forkpty-tests: ...to this...
1140 * modules/openpty-tests: ...and this.
1141 * tests/test-pty.c: Rename and split...
1142 * tests/test-forkpty.c: ...to this...
1143 * tests/test-openpty.c: ...and this.
1144 * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1145 (gl_PTY): Split library searching...
1146 * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1147 (gl_FORKPTY, gl_OPENPTY): New macros.
1148 * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1149 * NEWS: Mention the split.
1150 * MODULES.html.sh (Misc): Document the modules.
1151 * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1152 * doc/glibc-functions/openpty.texi (openpty): Likewise.
1154 pty: improve replacement header
1155 * lib/pty.in.h: New file.
1156 * modules/pty (Files): Ship it.
1157 (Makefile.am): Always build replacement.
1158 * m4/pty.m4: Rename...
1159 * m4/pty_h.m4: ...to this.
1160 (gl_PTY): Modernize setting of witness macros; update check of
1161 forkpty to take proper advantage of cache.
1162 (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1164 getopt: avoid compiler warning
1165 * lib/getopt.c (attribute_hidden): Remove unused macro.
1167 2010-03-18 Bruno Haible <bruno@clisp.org>
1169 Fix link errors on Solaris 8.
1170 * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1171 * modules/search-tests (test_search_c___LDADD): Likewise.
1172 * modules/signal-tests (test_signal_c___LDADD): Likewise.
1173 * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1174 * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1175 * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1176 * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1177 * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1178 * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1180 2010-03-18 Bruno Haible <bruno@clisp.org>
1182 Fix bug introduced on 2010-03-14.
1183 * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1184 (gl_SPAWN_H): Require it.
1185 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1186 Reported by Simon Josefsson.
1188 2010-03-18 Bruno Haible <bruno@clisp.org>
1190 Fix typo introduced on 2009-12-31.
1191 * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1192 posix_spawn_file_actions_adddup2.
1194 2010-03-17 Bert Wesarg <bert.wesarg@googlemail.com> (tiny change)
1195 and Eric Blake <eblake@redhat.com>
1197 test-vc-list-files-git: make more robust
1198 * tests/test-vc-list-files-git.sh: Unset problematic environment
1199 variables. Chain commands together.
1201 2010-03-17 Ludovic Courtès <ludo@gnu.org> (tiny change)
1203 * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1204 `AC_CHECK_DECL' invocation.
1206 2010-03-15 Sergey Poznyakoff <gray@gnu.org.ua>
1208 * lib/inttostr.c (inttostr): Make sure the invocation of verify
1209 appears before executable statements. Suggested by Petr Sumbera
1210 <Petr.Sumbera@Sun.COM>.
1212 2010-03-14 Bruno Haible <bruno@clisp.org>
1214 * tests/test-flock.c (test_exclusive): Comment out a test that causes
1215 portability problems. Instead use a simpler test.
1216 (main): Check that invalid arguments are rejected only on Linux.
1218 2010-03-14 Bruno Haible <bruno@clisp.org>
1220 Fix bug introduced on 2009-12-31.
1221 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1222 gl_PREREQ_SYS_H_WINSOCK2 always.
1223 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1224 SYS_SOCKET_H variable.
1225 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1227 * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1228 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1229 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1230 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1231 * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1233 2010-03-14 Bruno Haible <bruno@clisp.org>
1235 Fix values returned by sinl, cosl.
1236 * lib/trigl.h: Add specification comments.
1237 * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1238 that combines the values from the precomputed table with the values of
1239 the Chebyshev polynomials.
1241 2010-03-14 Bruno Haible <bruno@clisp.org>
1243 Fix compilation error when modules 'posix_spawn[p]' are not used.
1244 * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1245 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1247 2010-03-14 Bruno Haible <bruno@clisp.org>
1249 Fix compilation error on mingw when module 'time_r' is not used.
1250 * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1252 * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1253 * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1254 * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1255 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1257 2010-03-14 Bruno Haible <bruno@clisp.org>
1259 Fix compilation error with Sun C.
1260 * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1261 Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1262 instead of GCC specific ULONG_LONG_MAX.
1263 * lib/xstrtoll.c: Likewise.
1264 * lib/xstrtoull.c: Likewise.
1266 2010-03-13 Bruno Haible <bruno@clisp.org>
1268 Allow the user to disable C++ code and tests.
1269 * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1270 (gl_PROG_ANSI_CXX): Require it.
1272 2010-03-13 Bruno Haible <bruno@clisp.org>
1274 * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1277 2010-03-13 Bruno Haible <bruno@clisp.org>
1279 Test that gnulib does not break the standard C++ headers.
1280 * tests/test-locale-c++2.cc: New file.
1281 * modules/locale-tests (Files): Add it.
1282 (Makefile.am): Compile it for test-locale-c++.
1283 * tests/test-math-c++2.cc: New file.
1284 * modules/math-tests (Files): Add it.
1285 (Makefile.am): Compile it for test-math-c++.
1286 * tests/test-signal-c++2.cc: New file.
1287 * modules/signal-tests (Files): Add it.
1288 (Makefile.am): Compile it for test-signal-c++.
1289 * tests/test-stdio-c++2.cc: New file.
1290 * modules/stdio-tests (Files): Add it.
1291 (Makefile.am): Compile it for test-stdio-c++.
1292 * tests/test-stdlib-c++2.cc: New file.
1293 * modules/stdlib-tests (Files): Add it.
1294 (Makefile.am): Compile it for test-stdlib-c++.
1295 * tests/test-string-c++2.cc: New file.
1296 * modules/string-tests (Files): Add it.
1297 (Makefile.am): Compile it for test-string-c++.
1298 * tests/test-time-c++2.cc: New file.
1299 * modules/time-tests (Files): Add it.
1300 (Makefile.am): Compile it for test-time-c++.
1301 Reported by John W. Eaton <jwe@gnu.org>.
1303 2010-03-13 Bruno Haible <bruno@clisp.org>
1305 * gnulib-tool (func_usage): Clarify which options are available for
1306 --create-testdir and --create-megatestdir.
1308 2010-03-13 Bruno Haible <bruno@clisp.org>
1310 Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1311 * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1312 * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1313 * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1314 strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1316 Reported by Jim Meyering.
1318 2010-03-12 Simon Josefsson <simon@josefsson.org>
1320 * gnulib-tool (func_import): Explain origin of code.
1322 2010-03-12 Bruno Haible <bruno@clisp.org>
1324 Fix problem with automake's definition of CXXLINK.
1325 * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1326 Reported by Simon Josefsson and Ludovic Courtès.
1328 2010-03-12 Bruno Haible <bruno@clisp.org>
1330 * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1333 2010-03-11 Bruno Haible <bruno@clisp.org>
1335 Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1336 * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1337 whether the system provides one variant or multiple variants of the
1339 * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1341 (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1342 _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1343 Reported by Jim Meyering.
1345 2010-03-09 Simon Josefsson <simon@josefsson.org>
1347 * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1349 2010-03-08 Bruno Haible <bruno@clisp.org>
1351 gnulib-tool: Add support for --libtool in --create-testdir.
1352 * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1353 (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1355 2010-03-08 Eric Blake <eblake@redhat.com>
1357 gnulib-tool.texi: mention possibility of git submodule
1358 * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1360 * doc/.gitignore: Ignore another generated file.
1362 2010-03-08 Karl Berry <karl@gnu.org>
1364 * doc/gnulib-tool.texi (VCS Issues): Mention third option
1365 of committing gnulib files while skipping others.
1367 2010-03-07 Bruno Haible <bruno@clisp.org>
1369 Tests of module 'wctype' in C++ mode.
1370 * tests/test-wctype-c++.cc: New file.
1371 * modules/wctype-tests (Files): Add it and tests/signature.h.
1372 (Depends-on): Add ansi-c++-opt.
1373 (Makefile.am): Arrange to compile and run test-wctype-c++.
1375 Tests of module 'wchar' in C++ mode.
1376 * tests/test-wchar-c++.cc: New file.
1377 * modules/wchar-tests (Files): Add it and tests/signature.h.
1378 (Depends-on): Add ansi-c++-opt.
1379 (Makefile.am): Arrange to compile and run test-wchar-c++.
1380 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1381 gl_MODULE_INDICATOR.
1383 Tests of module 'unistd' in C++ mode.
1384 * tests/test-unistd-c++.cc: New file.
1385 * modules/unistd-tests (Files): Add it and tests/signature.h.
1386 (Depends-on): Add ansi-c++-opt.
1387 (Makefile.am): Arrange to compile and run test-unistd-c++.
1388 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1389 gl_MODULE_INDICATOR.
1391 Tests of module 'time' in C++ mode.
1392 * tests/test-time-c++.cc: New file.
1393 * modules/time-tests (Files): Add it and tests/signature.h.
1394 (Depends-on): Add ansi-c++-opt.
1395 (Makefile.am): Arrange to compile and run test-time-c++.
1396 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1398 Tests of module 'sys_time' in C++ mode.
1399 * tests/test-sys_time-c++.cc: New file.
1400 * modules/sys_time-tests (Files): Add it and tests/signature.h.
1401 (Depends-on): Add ansi-c++-opt.
1402 (Makefile.am): Arrange to compile and run test-sys_time-c++.
1403 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1404 gl_MODULE_INDICATOR.
1406 Tests of module 'sys_stat' in C++ mode.
1407 * tests/test-sys_stat-c++.cc: New file.
1408 * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1409 (Depends-on): Add ansi-c++-opt.
1410 (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1411 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1412 gl_MODULE_INDICATOR.
1414 Tests of module 'sys_socket' in C++ mode.
1415 * tests/test-sys_socket-c++.cc: New file.
1416 * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1417 (Depends-on): Add ansi-c++-opt.
1418 (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1419 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1420 gl_MODULE_INDICATOR.
1422 Tests of module 'sys_select' in C++ mode.
1423 * tests/test-sys_select-c++.cc: New file.
1424 * modules/sys_select-tests (Files): Add it and tests/signature.h.
1425 (Depends-on): Add ansi-c++-opt.
1426 (Makefile.am): Arrange to compile and run test-sys_select-c++.
1427 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1428 gl_MODULE_INDICATOR.
1430 Tests of module 'sys_ioctl' in C++ mode.
1431 * tests/test-sys_ioctl-c++.cc: New file.
1432 * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1433 (Depends-on): Add ansi-c++-opt.
1434 (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1435 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1436 gl_MODULE_INDICATOR.
1438 Tests of module 'string' in C++ mode.
1439 * tests/test-string-c++.cc: New file.
1440 * modules/string-tests (Files): Add it and tests/signature.h.
1441 (Depends-on): Add ansi-c++-opt.
1442 (Makefile.am): Arrange to compile and run test-string-c++.
1443 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1444 gl_MODULE_INDICATOR.
1446 Tests of module 'stdlib' in C++ mode.
1447 * tests/test-stdlib-c++.cc: New file.
1448 * modules/stdlib-tests (Files): Add it and tests/signature.h.
1449 (Depends-on): Add ansi-c++-opt.
1450 (Makefile.am): Arrange to compile and run test-stdlib-c++.
1451 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1452 gl_MODULE_INDICATOR.
1454 Tests of module 'stdio' in C++ mode.
1455 * tests/test-stdio-c++.cc: New file.
1456 * modules/stdio-tests (Files): Add it and tests/signature.h.
1457 (Depends-on): Add ansi-c++-opt.
1458 (Makefile.am): Arrange to compile and run test-stdio-c++.
1459 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1460 gl_MODULE_INDICATOR.
1462 Tests of module 'spawn' in C++ mode.
1463 * tests/test-spawn-c++.cc: New file.
1464 * modules/spawn-tests (Files): Add it and tests/signature.h.
1465 (Depends-on): Add ansi-c++-opt.
1466 (Makefile.am): Arrange to compile and run test-spawn-c++.
1467 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1468 gl_MODULE_INDICATOR.
1470 Tests of module 'signal' in C++ mode.
1471 * tests/test-signal-c++.cc: New file.
1472 * modules/signal-tests (Files): Add it and tests/signature.h.
1473 (Depends-on): Add ansi-c++-opt.
1474 (Makefile.am): Arrange to compile and run test-signal-c++.
1475 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1476 gl_MODULE_INDICATOR.
1478 Tests of module 'search' in C++ mode.
1479 * tests/test-search-c++.cc: New file.
1480 * modules/search-tests (Files): Add it and tests/signature.h.
1481 (Depends-on): Add ansi-c++-opt.
1482 (Makefile.am): Arrange to compile and run test-search-c++.
1483 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1484 gl_MODULE_INDICATOR.
1486 Tests of module 'math' in C++ mode.
1487 * tests/test-math-c++.cc: New file.
1488 * modules/math-tests (Files): Add it and tests/signature.h.
1489 (Depends-on): Add ansi-c++-opt.
1490 (Makefile.am): Arrange to compile and run test-math-c++.
1491 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1493 Tests of module 'locale' in C++ mode.
1494 * tests/test-locale-c++.cc: New file.
1495 * modules/locale-tests (Files): Add it and tests/signature.h.
1496 (Depends-on): Add ansi-c++-opt.
1497 (Makefile.am): Arrange to compile and run test-locale-c++.
1498 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1499 gl_MODULE_INDICATOR.
1501 Tests of module 'langinfo' in C++ mode.
1502 * tests/test-langinfo-c++.cc: New file.
1503 * modules/langinfo-tests (Files): Add it and tests/signature.h.
1504 (Depends-on): Add ansi-c++-opt.
1505 (Makefile.am): Arrange to compile and run test-langinfo-c++.
1506 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1507 gl_MODULE_INDICATOR.
1509 Tests of module 'iconv-h' in C++ mode.
1510 * tests/test-iconv-h-c++.cc: New file.
1511 * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1512 (Depends-on): Add ansi-c++-opt.
1513 (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1515 Tests of module 'glob' in C++ mode.
1516 * tests/test-glob-c++.cc: New file.
1517 * modules/glob-tests (Files): Add it.
1518 (Depends-on): Add ansi-c++-opt.
1519 (Makefile.am): Arrange to compile and run test-glob-c++.
1521 Tests of module 'fcntl-h' in C++ mode.
1522 * tests/test-fcntl-h-c++.cc: New file.
1523 * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1524 (Depends-on): Add ansi-c++-opt.
1525 (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1526 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1527 gl_MODULE_INDICATOR.
1529 Tests of module 'dirent' in C++ mode.
1530 * tests/test-dirent-c++.cc: New file.
1531 * modules/dirent-tests (Files): Add it and tests/signature.h.
1532 (Depends-on): Add ansi-c++-opt.
1533 (Makefile.am): Arrange to compile and run test-dirent-c++.
1534 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1535 gl_MODULE_INDICATOR.
1537 New module 'ansi-c++-opt'.
1538 * modules/ansi-c++-opt: New file.
1539 * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1541 Document C++ namespace mode.
1542 * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1544 wctype: Avoid #define replacements in C++ mode.
1545 * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1546 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1547 iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1548 In C++, define a namespaced alias symbol.
1549 * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1550 * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1551 (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1554 wchar: Avoid #define replacements in C++ mode.
1555 * lib/wchar.in.h: Include c++defs.h.
1556 (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1557 wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1559 (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1560 * modules/wchar (Depends-on): Add c++defs.
1561 (Makefile.am): Update wchar.h rule.
1563 unistd: Avoid #define replacements in C++ mode.
1564 * lib/unistd.in.h: Include c++defs.h.
1565 (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1566 fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1567 getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1568 getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1569 pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1570 unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1573 * modules/unistd (Depends-on): Add c++defs.
1574 (Makefile.am): Update unistd.h rule.
1576 time: Avoid #define replacements in C++ mode.
1577 * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1578 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1579 define a namespaced alias symbol.
1580 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1581 (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1582 GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1583 * modules/time (Depends-on): Add c++defs, warn-on-use.
1584 (Makefile.am): Update time.h rule.
1585 * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1586 * modules/nanosleep (configure.ac): Likewise.
1587 * modules/strptime (configure.ac): Likewise.
1588 * modules/timegm (configure.ac): Likewise.
1590 sys_time: Avoid #define replacements in C++ mode.
1591 * lib/sys_time.in.h: Include c++defs.h.
1592 (gettimeofday): In C++, define a namespaced alias symbol.
1593 * modules/sys_time (Depends-on): Add c++defs.
1594 (Makefile.am): Update sys/time.h rule.
1596 sys_stat: Avoid #define replacements in C++ mode.
1597 * lib/sys_stat.in.h: Include c++defs.h.
1598 (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1599 mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1600 namespaced alias symbol.
1601 In C++, define a namespaced alias symbol.
1602 * modules/sys_stat (Depends-on): Add c++defs.
1603 (Makefile.am): Update sys/stat.h rule.
1605 sys_socket: Avoid #define replacements in C++ mode.
1606 * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1607 Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1608 definitions also when the system has a <sys/socket.h>.
1609 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1610 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1611 In C++, define a namespaced alias symbol.
1612 * modules/sys_socket (Depends-on): Add c++defs.
1613 (Makefile.am): Update sys/socket.h rule.
1615 sys_select: Avoid #define replacements in C++ mode.
1616 * lib/sys_select.in.h: Include c++defs.h. Enable the function
1617 definitions also when the system has a <sys/select.h>.
1618 (select): In C++, define a namespaced alias symbol.
1619 * modules/sys_select (Depends-on): Add c++defs.
1620 (Makefile.am): Update sys/select.h rule.
1622 sys_ioctl: Avoid #define replacements in C++ mode.
1623 * lib/sys_ioctl.in.h: Include c++defs.h.
1624 (ioctl): In C++, define a namespaced alias symbol.
1625 * modules/sys_ioctl (Depends-on): Add c++defs.
1626 (Makefile.am): Update sys/ioctl.h rule.
1628 string: Avoid #define replacements in C++ mode.
1629 * lib/string.in.h: Include c++defs.h.
1630 (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1631 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1632 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1633 strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1634 strsignal, strverscmp): In C++, define a namespaced alias symbol.
1635 * modules/string (Depends-on): Add c++defs.
1636 (Makefile.am): Update string.h rule.
1638 stdlib: Avoid #define replacements in C++ mode.
1639 * lib/stdlib.in.h: Include c++defs.h.
1640 (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1641 mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1642 srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1643 strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1645 * modules/stdlib (Depends-on): Add c++defs.
1646 (Makefile.am): Update stdlib.h rule.
1648 stdio: Avoid #define replacements in C++ mode.
1649 * lib/stdio.in.h: Include c++defs.h.
1650 (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1651 freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1652 obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1653 puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1654 vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1655 namespaced alias symbol.
1656 * modules/stdio (Depends-on): Add c++defs.
1657 (Makefile.am): Update stdio.h rule.
1659 spawn: Avoid #define replacements in C++ mode.
1660 * lib/spawn.in.h: Include c++defs.h.
1661 (posix_spawn, posix_spawnp, posix_spawnattr_init,
1662 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1663 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1664 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1665 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1666 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1667 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1668 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1669 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1670 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1671 In C++, define a namespaced alias symbol.
1672 * modules/spawn (Depends-on): Add c++defs.
1673 (Makefile.am): Update spawn.h rule.
1675 signal: Avoid #define replacements in C++ mode.
1676 * lib/signal.in.h: Include c++defs.h.
1677 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1678 sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1679 namespaced alias symbol.
1680 * modules/signal (Depends-on): Add c++defs.
1681 (Makefile.am): Update signal.h rule.
1683 search: Avoid #define replacements in C++ mode.
1684 * lib/search.in.h: Include c++defs.h.
1685 (_gl_search_compar_fn, _gl_search_action_fn): New types.
1686 (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1688 * modules/search (Depends-on): Add c++defs.
1689 (Makefile.am): Update search.h rule.
1691 math: Avoid #define replacements in C++ mode.
1692 * lib/math.in.h: Include c++defs.h.
1693 (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1694 frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1695 trunc, truncl): In C++, define a namespaced alias symbol.
1696 * modules/math (Depends-on): Add c++defs.
1697 (Makefile.am): Update math.h rule.
1699 locale: Avoid #define replacements in C++ mode.
1700 * lib/locale.in.h: Include c++defs.h.
1701 (duplocale): In C++, define a namespaced alias symbol.
1702 * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1703 * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1704 * modules/locale (Depends-on): Add c++defs.
1705 (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1707 langinfo: Avoid #define replacements in C++ mode.
1708 * lib/langinfo.in.h: Include c++defs.h.
1709 (nl_langinfo): In C++, define a namespaced alias symbol.
1710 * modules/langinfo (Depends-on): Add c++defs.
1711 (Makefile.am): Update langinfo.h rule.
1713 iconv-h: Avoid #define replacements in C++ mode.
1714 * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1715 (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1717 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1718 whenever iconv is present.
1719 * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1720 (Makefile.am): Update iconv.h rule.
1722 glob: Avoid #define replacements in C++ mode.
1723 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1724 (_gl_glob_errfunc_fn): New type.
1725 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1727 * modules/glob (Depends-on): Add c++defs, warn-on-use.
1728 (Makefile.am): Update glob.h rule.
1730 fcntl-h: Avoid #define replacements in C++ mode.
1731 * lib/fcntl.in.h: Include c++defs.h.
1732 (fcntl, open, openat): In C++, define a namespaced alias symbol.
1733 * modules/fcntl-h (Depends-on): Add c++defs.
1734 (Makefile.am): Update fcntl.h rule.
1736 dirent: Avoid #define replacements in C++ mode.
1737 * lib/dirent.in.h: Include c++defs.h.
1738 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1739 namespaced alias symbol.
1740 (dirfd): Update declaration.
1741 * modules/dirent (Depends-on): Add c++defs.
1742 (Makefile.am): Update dirent.h rule.
1744 ctype: Make it usable in C++ code.
1745 * lib/ctype.in.h: Include c++defs.h.
1746 (isblank): Declare as extern "C".
1747 * modules/ctype (Depends-on): Add c++defs.
1748 (Makefile.am): Update ctype.h rule.
1750 New module 'c++defs'.
1751 * modules/c++defs: New file.
1752 * build-aux/c++defs.h: New file.
1753 Reported by John W. Eaton <jwe@gnu.org>.
1755 2010-03-07 Bruno Haible <bruno@clisp.org>
1757 logb: Provide missing declaration for Cygwin.
1758 * lib/math.in.h (logb): New declaration.
1759 * m4/logb.m4: New file.
1760 * modules/logb (Files): Add m4/logb.m4.
1761 (Depends-on): Add math.
1762 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1763 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1764 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1765 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1766 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1768 2010-03-07 Bruno Haible <bruno@clisp.org>
1770 Fix test-cond link error.
1771 * tests/test-cond.c: Include <stdio.h>.
1773 2010-03-07 Bruno Haible <bruno@clisp.org>
1775 Fix test-dirent-safer link error.
1776 * modules/dirent-safer-tests (Makefile.am): Define
1777 test_dirent_safer_LDADD.
1779 2010-03-07 Bruno Haible <bruno@clisp.org>
1781 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1782 among default module list.
1784 2010-03-07 Bruno Haible <bruno@clisp.org>
1786 Fix link error on platforms with GNU libiconv.
1787 * modules/unistr/u8-strcoll-tests (Makefile): Define
1788 test_u8_strcoll_LDADD.
1789 * modules/unistr/u16-strcoll-tests (Makefile): Define
1790 test_u16_strcoll_LDADD.
1791 * modules/unistr/u32-strcoll-tests (Makefile): Define
1792 test_u32_strcoll_LDADD.
1794 2010-03-07 Bruno Haible <bruno@clisp.org>
1796 Use POSIX declarations for socket functions.
1797 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1798 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1799 rpl_sendto): Change declaration to match POSIX.
1800 * lib/connect.c (rpl_connect): Likewise.
1801 * lib/accept.c (rpl_accept): Likewise.
1802 * lib/bind.c (rpl_bind): Likewise.
1803 * lib/getpeername.c (rpl_getpeername): Likewise.
1804 * lib/getsockname.c (rpl_getsockname): Likewise.
1805 * lib/recv.c (rpl_recv): Likewise.
1806 * lib/send.c (rpl_send): Likewise.
1807 * lib/recvfrom.c (rpl_recvfrom): Likewise.
1808 * lib/sendto.c (rpl_sendto): Likewise.
1810 2010-03-06 Bruno Haible <bruno@clisp.org>
1812 Clarify access, euidaccess, faccessat.
1813 * doc/posix-functions/faccessat.texi: Mention security problem under
1814 "Other problems", not "Portability problems".
1815 * doc/posix-functions/access.texi: Likewise. Mention a related security
1817 * doc/glibc-functions/euidaccess.texi: Mention security problems.
1818 * lib/euidaccess.c: Add comments about platforms.
1819 * lib/unistd.in.h (access, euidaccess): Add warnings.
1821 2010-03-07 Bruno Haible <bruno@clisp.org>
1823 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1824 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1825 (POSIX_SPAWN_SETSCHEDULER): Likewise.
1826 (POSIX_SPAWN_USEVFORK): Define in a way that works when
1827 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1828 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1829 declare when POSIX_SPAWN_SETSCHEDULER is zero.
1830 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1831 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1832 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1833 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1834 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1835 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1836 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1837 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1838 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1839 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1840 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1841 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1842 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1844 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1845 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1846 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1848 * tests/test-spawn.c (main): Make it work when
1849 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1851 2010-03-07 Bruno Haible <bruno@clisp.org>
1853 Fix incorrect Makefile.am generation in German locale.
1854 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1855 Execute sed command with character range in C locale.
1857 2010-03-06 Bruno Haible <bruno@clisp.org>
1859 Tests for module 'iconv-h'.
1860 * modules/iconv-h-tests: New file.
1861 * tests/test-iconv-h.c: New file.
1863 New module 'iconv-h'.
1864 * modules/iconv-h: New file.
1865 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1866 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1867 (configure.ac): Remove gl_ICONV_H.
1868 (Makefile.am): Remove rule for iconv.h.
1870 2010-03-06 Bruno Haible <bruno@clisp.org>
1872 More consistent naming of *.m4 files.
1873 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1874 * modules/wctype (Files): Update.
1876 More consistent naming of *.m4 files.
1877 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1878 * modules/wchar (Files): Update.
1880 2010-03-06 Jim Meyering <meyering@redhat.com>
1882 euidaccess: relax license to LGPLv2+
1883 * modules/euidaccess (License): Relax to LGPLv2+.
1885 2010-03-06 Bruno Haible <bruno@clisp.org>
1887 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1888 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1889 (Makefile.am): Augment lib_SOURCES instead.
1891 2010-03-04 Jim Meyering <meyering@redhat.com>
1893 utime: remove obsolete module
1894 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1895 unnecessary for years, and has been marked as obsolete for 10 months.
1896 * modules/utime: Remove file.
1897 * lib/utime.c: Remove file.
1898 * m4/utime.m4: Remove file.
1899 * m4/utimes-null.m4: Remove file.
1900 * doc/posix-functions/utime.texi (utime): Remove reference to
1901 the module. Move the sole "fixed by gnulib" item into the
1902 "problems not fixed by Gnulib" list.
1903 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1905 2010-03-05 Simon Josefsson <simon@josefsson.org>
1907 * modules/exit (License): Relax license to LGPLv2+.
1908 (Status): Mark as obsolete.
1909 * NEWS: Mention deprecated 'exit' module.
1910 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1911 of now obsolete 'exit'.
1913 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1915 fts-lgpl: remove unused module
1916 * modules/fts-lgpl: Remove.
1917 * MODULES.html.sh (func_all_modules): Adjust.
1918 * check-module (find_included_lib_files): Adjust.
1919 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1921 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
1923 copy-acl: enhance Solaris ACL error handling
1924 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1925 * lib/set-mode-acl.c (qset_acl): Likewise.
1927 2010-03-02 Bruno Haible <bruno@clisp.org>
1929 spawn: Don't override the system defined values on FreeBSD 8.
1930 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1931 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1932 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1933 if HAVE_POSIX_SPAWN is 1.
1934 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1936 2010-03-01 Bruno Haible <bruno@clisp.org>
1938 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1941 2010-02-25 Bruno Haible <bruno@clisp.org>
1943 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1944 * gnulib-tool: Define 'echo' as a function only before the ksh alias
1945 setting, not afterwards.
1946 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1948 2010-02-24 Eric Blake <eblake@redhat.com>
1950 bootstrap, git-version-gen: use timestamp
1951 * build-aux/git-version-gen (scriptversion): Force UTC.
1952 * build-aux/bootstrap (scriptversion): New variable.
1954 bootstrap: allow older git
1955 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1956 older than 1.6.4. Requested by the libvirt project.
1958 2010-02-23 Eric Blake <eblake@redhat.com>
1960 warn-on-use: work with old autoconf
1961 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1962 AS_VAR semantics of autoconf 2.60.
1963 Reported by Bruno Haible.
1965 bootstrap: improve some comments
1966 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
1967 clarification comments.
1969 gettimeofday: provide correct function
1970 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1971 when replacement is declared, otherwise provide gettimeofday.
1972 Reported by Michael Goffioul.
1974 2010-02-23 Jim Meyering <meyering@redhat.com>
1976 lib-ignore: relax license to "unlimited", not LGPLv2+
1977 * modules/lib-ignore (License): Relax to "unlimited".
1979 2010-02-23 Jim Meyering <meyering@redhat.com>
1981 lib-ignore: relax license to LGPLv2+
1982 * modules/lib-ignore (License): Relax to LGPLv2+.
1984 2010-02-22 Eric Blake <eblake@redhat.com>
1986 lseek: avoid bash 3.2 broken pipe bug
1987 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1988 warning from bash 3.2.
1989 Reported by Ben Pfaff, with analysis from Bruno Haible.
1991 bootstrap: support non-FSF copyright holder
1992 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1993 bootstrap.conf override of COPYRIGHT_HOLDER.
1994 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1996 bootstrap: interoperate with gettext 0.14.1
1997 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1999 bootstrap: allow for alternate submodule location
2000 * build-aux/bootstrap (gnulib_path): New variable; use instead of
2001 hardcoding submodule location.
2002 (gnulib_mk): Allow direct use of Makefile.am.
2004 bootstrap: use GNULIB_SRCDIR to reduce disk usage
2005 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2006 rather than reconfiguring where the submodule points.
2008 gettimeofday: restore support for platforms that lack function
2009 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2010 replacement if function is missing.
2011 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2012 * modules/sys_time (Makefile.am): Substitute it.
2013 * lib/sys_time.in.h (gettimeofday): Check it.
2014 Reported by Michael Goffioul.
2016 2010-02-21 Bruno Haible <bruno@clisp.org>
2018 * lib/stdio.in.h (obstack_printf): Fix typo.
2020 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
2022 vc-list-files: use bzr ls's -R option
2023 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2024 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2026 2010-02-21 Jim Meyering <meyering@redhat.com>
2028 init.sh: fix EXEEXT shims to work also for names like test-prog
2029 * tests/init.sh: Re-exec a better shell, when needed.
2030 If the current shell lacks support for posix $(...), an init.sh-using
2031 test will now try to find a shell that supports that. If EXEEXT is
2032 nonempty, we also require support for hyphen-in-alias-name and shell
2033 substitutions like ${var#glob}. Failure to find such a shell results
2036 2010-02-21 Bruno Haible <bruno@clisp.org>
2038 Really work around around "broken pipe" error message from bash 3.2.
2039 * gnulib-tool (func_reset_sigpipe): Remove function.
2040 (echo): In bash 3.2, define to a function that uses printf.
2041 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2043 2010-02-20 Bruno Haible <bruno@clisp.org>
2045 Restore support for automake 1.9.6 with autoconf 2.61.
2046 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2047 Reported by James Youngman <jay@gnu.org>.
2049 2010-02-20 Bruno Haible <bruno@clisp.org>
2051 Improve *printf warning condition.
2052 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2053 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2054 and the function is overridden due to SIGPIPE emulation.
2056 2010-02-20 Bruno Haible <bruno@clisp.org>
2058 * lib/stdio.in.h: Tweak comments.
2060 2010-02-19 Bruno Haible <bruno@clisp.org>
2062 Make it easier to find modules. New gnulib-tool option '--find'.
2063 * gnulib-tool: New option --find.
2064 (func_usage): Document it.
2065 (func_sanitize_modulelist): New function, extracted from
2067 (func_all_modules): Invoke it.
2068 * doc/gnulib-tool.texi (Which modules?): New node.
2070 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
2072 * lib/sys_select.in.h: Provide select replacement even if
2073 sys/select.h exists on a system, for Interix.
2075 2010-02-18 Jim Meyering <meyering@redhat.com>
2077 init.sh: don't use $(...) just yet
2078 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2079 to accommodate e.g., Solaris' /bin/sh.
2081 2010-02-17 Bruno Haible <bruno@clisp.org>
2083 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2084 Reported by Ludovic Courtès <ludo@gnu.org>.
2086 2010-02-16 Simon Josefsson <simon@josefsson.org>
2088 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2089 linking with -lintl.
2091 2010-02-17 Simon Josefsson <simon@josefsson.org>
2093 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2094 if not provided by the system's netdb.h. Reported by
2095 ludo@gnu.org (Ludovic Courtès).
2097 2010-02-15 Jim Meyering <meyering@redhat.com>
2099 init.sh: improve portability and efficiency
2100 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2101 "dummy" in a for loop.
2102 Use '!', not '^' to select the complement of a character set used
2103 in a "case" statement.
2104 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2105 Suggestions from Eric Blake.
2107 init.sh: automatically accommodate programs with the .exe suffix
2108 Automatically arrange for an invocation of "prog" to execute the
2109 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
2110 may use the simpler "prog", yet still work when built on a system
2111 that requires specifying the added suffix.
2112 Do this by constructing a function named "prog" that invokes
2113 "prog.exe" for each .exe file in selected directories.
2114 * tests/init.sh (find_exe_basenames_): New function.
2115 (create_exe_shim_functions_): New function.
2116 (path_prepend_): Use it.
2118 maint.mk: mark syntax-check sc_*.m rules as .PHONY
2119 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2120 "make -t syntax-check" doesn't create a ton of sc_*.m files.
2122 2010-02-14 Jim Meyering <meyering@redhat.com>
2124 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2125 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2126 (sc_prohibit_hash_pjw_without_use): New rule.
2128 maint.mk: allow the default upload destination dir to be overridden
2129 * top/maint.mk (upload_dest_dir_): Define with a default that
2130 preserves the status quo.
2131 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2132 Reported by Peter Simons.
2134 maint.mk: prohibit inclusion of "hash.h" without_use
2135 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2137 2010-02-10 Jim Meyering <meyering@redhat.com>
2139 maint.mk: prohibit inclusion of "ignore-value.h" without_use
2140 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2142 2010-02-09 Eric Blake <ebb9@byu.net>
2143 and Bruno Haible <bruno@clisp.org>
2145 obstack-printf-posix: ensure declaration
2146 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2147 extracted from gl_FUNC_OBSTACK_PRINTF.
2148 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2149 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2151 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2152 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2155 2010-02-08 Bruno Haible <bruno@clisp.org>
2157 gnulib-tool: Fix typo in 2010-02-07 commit.
2158 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2159 Reported by Eric Blake.
2161 2010-02-07 Bruno Haible <bruno@clisp.org>
2163 gnulib-tool: Fix up caching patches.
2164 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2165 option --no-cache. Use associative arrays when supported by the shell.
2166 (sed_comments): New variable.
2167 (modcache): Renamed from do_cache.
2168 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2169 abbreviate unnecessarily.
2170 (have_associative): New variable.
2171 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2172 way also for ksh and zsh.
2173 (func_init_sed_convert_to_cache_statements): New function, extracted
2174 from func_cache_lookup_module. Add support for associative arrays.
2175 Don't set the c_MODULE_cached variable here. Ignore all lines before
2176 the first field header. Remove only the final newline, not all trailing
2177 newlines. Support empty fields correctly. Limit the use of 'eval' to
2179 (func_get_description, func_get_status, func_get_notice,
2180 func_get_applicability, func_get_filelist, func_get_dependencies,
2181 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2182 func_get_automake_snippet, func_get_include_directive,
2183 func_get_link_directive, func_get_license, func_get_maintainer):
2184 Update documentation. List the unoptimized code first. Add support for
2185 associative arrays. Limit the use of 'eval' to assignments.
2186 (func_get_applicability): Undo stylistic pessimisations.
2187 (func_get_automake_snippet, func_get_include_directive): Reduce code
2189 (func_modules_transitive_closure, func_modules_add_dummy,
2190 func_modules_notice, func_modules_to_filelist, func_add_file,
2191 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2192 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2193 func_create_testdir, func_create_megatestdir): Update documentation.
2195 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2197 * gnulib-tool (func_cache_lookup_module): Store the module name
2198 belonging to the cache variable; error out if two different
2199 module names map to the same cache variable name.
2201 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2203 gnulib-tool: Make caching optional.
2204 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2205 Update matching short versions of --no-changelog.
2206 (func_usage): Update.
2207 (sed_extract_cache_prog): Renamed from ...
2208 (sed_extract_prog): ... this; revert to old extraction script.
2209 (func_get_description, func_get_status)
2210 (func_get_notice, func_get_applicability, func_get_filelist)
2211 (func_get_dependencies, func_get_autoconf_early_snippet)
2212 (func_get_autoconf_snippet, func_get_automake_snippet)
2213 (func_get_include_directive, func_get_link_directive)
2214 (func_get_license, func_get_maintainer): If $do_cache is false,
2215 use old, non-caching extraction scripts.
2216 Suggestion by Bruno Haible.
2218 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2220 gnulib-tool: cache module metainformation.
2221 * gnulib-tool (sed_extract_prog): Match newline before each
2222 header, and rewrite header to a shell variable suffix.
2223 (func_cache_var, func_cache_lookup_module): New functions,
2224 to turn a module name into a cache variable prefix, and to
2225 look up and cache module metainformation.
2226 (func_get_description, func_get_status)
2227 (func_get_notice, func_get_applicability, func_get_filelist)
2228 (func_get_dependencies, func_get_autoconf_early_snippet)
2229 (func_get_autoconf_snippet, func_get_automake_snippet)
2230 (func_get_include_directive, func_get_link_directive)
2231 (func_get_license, func_get_maintainer): Use
2232 func_cache_lookup_module.
2234 2010-02-07 Bruno Haible <bruno@clisp.org>
2236 fnctl: Fix missing dependency.
2237 * modules/fcntl (Depends-on): Add getdtablesize.
2238 Reported by John W. Eaton <jwe@gnu.org>.
2240 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
2242 Argp: fix recognition of short alias options.
2244 * lib/argp-parse.c (convert_options): Fix improper use of
2245 `|' between character values.
2246 * tests/test-argp.c (group1_option): New alias option
2248 (group1_parser): Special handling for 'r'.
2249 (test15): New test case.
2250 (test_fun): Add test15.
2251 * tests/test-argp-2.sh: Update expected --help and --usage
2254 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
2256 * tests/test-argp.c: Fix indentation.
2258 2010-02-04 Eric Blake <ebb9@byu.net>
2260 gettimeofday: expose type of second argument
2261 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2262 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2263 * tests/test-gettimeofday.c: Use it to silence warning.
2264 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2267 2010-02-03 Jim Meyering <meyering@redhat.com>
2269 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2270 * lib/regcomp.c (TYPE_SIGNED): Define.
2271 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2273 regcomp.c: avoid a new -Wshadow warning
2274 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2276 2010-02-01 Jim Meyering <meyering@redhat.com>
2278 removing useless parentheses in cpp #define directives
2279 For motivation, see commit c0221df4, "define STREQ(a,b)
2280 consistently, removing useless parentheses"
2281 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2282 * lib/mountlist.c (MNT_IGNORE): Likewise.
2283 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2285 2010-02-01 Eric Blake <ebb9@byu.net>
2287 sys_time: use link-warning
2288 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2289 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2290 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2291 * modules/sys_time (Depends-on): Add warn-on-use.
2292 (Makefile.am): Always build replacement.
2293 (configure.ac): Update substitutions.
2294 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2295 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2296 bother with SYS_TIME_H.
2297 * modules/gettimeofday (configure.ac): Declare indicator.
2298 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2301 closein-tests: silence compiler warning
2302 * tests/test-closein.c (main): Ignore fread result.
2303 * modules/closein-tests (Depends-on): Add ignore-value.
2305 tests: silence warning about system return
2306 * tests/test-areadlink-with-size.c (main): Ignore system result.
2307 * tests/test-areadlink.c (main): Likewise.
2308 * tests/test-areadlinkat-with-size.c (main): Likewise.
2309 * tests/test-areadlinkat.c (main): Likewise.
2310 * tests/test-canonicalize-lgpl.c (main): Likewise.
2311 * tests/test-canonicalize.c (main): Likewise.
2312 * tests/test-chown.c (main): Likewise.
2313 * tests/test-fchownat.c (main): Likewise.
2314 * tests/test-fdutimensat.c (main): Likewise.
2315 * tests/test-fstatat.c (main): Likewise.
2316 * tests/test-futimens.c (main): Likewise.
2317 * tests/test-lchown.c (main): Likewise.
2318 * tests/test-link.c (main): Likewise.
2319 * tests/test-linkat.c (main): Likewise.
2320 * tests/test-lstat.c (main): Likewise.
2321 * tests/test-mkdir.c (main): Likewise.
2322 * tests/test-mkdirat.c (main): Likewise.
2323 * tests/test-mkfifo.c (main): Likewise.
2324 * tests/test-mkfifoat.c (main): Likewise.
2325 * tests/test-mknod.c (main): Likewise.
2326 * tests/test-readlink.c (main): Likewise.
2327 * tests/test-remove.c (main): Likewise.
2328 * tests/test-rename.c (main): Likewise.
2329 * tests/test-renameat.c (main): Likewise.
2330 * tests/test-rmdir.c (main): Likewise.
2331 * tests/test-symlink.c (main): Likewise.
2332 * tests/test-symlinkat.c (main): Likewise.
2333 * tests/test-unlink.c (main): Likewise.
2334 * tests/test-unlinkat.c (main): Likewise.
2335 * tests/test-utimens.c (main): Likewise.
2336 * tests/test-utimensat.c (main): Likewise.
2337 * modules/areadlink-tests (Depends-on): Add ignore-value.
2338 * modules/areadlink-with-size-tests (Depends-on): Likewise.
2339 * modules/areadlinkat-tests (Depends-on): Likewise.
2340 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2341 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2342 * modules/canonicalize-tests (Depends-on): Likewise.
2343 * modules/chown-tests (Depends-on): Likewise.
2344 * modules/fdutimensat-tests (Depends-on): Likewise.
2345 * modules/futimens-tests (Depends-on): Likewise.
2346 * modules/lchown-tests (Depends-on): Likewise.
2347 * modules/link-tests (Depends-on): Likewise.
2348 * modules/linkat-tests (Depends-on): Likewise.
2349 * modules/lstat-tests (Depends-on): Likewise.
2350 * modules/mkdir-tests (Depends-on): Likewise.
2351 * modules/mkfifo-tests (Depends-on): Likewise.
2352 * modules/mkfifoat-tests (Depends-on): Likewise.
2353 * modules/mknod-tests (Depends-on): Likewise.
2354 * modules/openat-tests (Depends-on): Likewise.
2355 * modules/readlink-tests (Depends-on): Likewise.
2356 * modules/remove-tests (Depends-on): Likewise.
2357 * modules/rename-tests (Depends-on): Likewise.
2358 * modules/renameat-tests (Depends-on): Likewise.
2359 * modules/rmdir-tests (Depends-on): Likewise.
2360 * modules/symlink-tests (Depends-on): Likewise.
2361 * modules/symlinkat-tests (Depends-on): Likewise.
2362 * modules/unlink-tests (Depends-on): Likewise.
2363 * modules/utimens-tests (Depends-on): Likewise.
2364 * modules/utimensat-tests (Depends-on): Likewise.
2366 2010-01-31 Bruno Haible <bruno@clisp.org>
2368 Perform the same test for many <math.h> functions.
2369 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2370 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2371 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2373 * modules/acos (configure.ac): Likewise.
2374 * modules/asin (configure.ac): Likewise.
2375 * modules/atan (configure.ac): Likewise.
2376 * modules/atan2 (configure.ac): Likewise.
2377 * modules/cbrt (configure.ac): Likewise.
2378 * modules/copysign (configure.ac): Likewise.
2379 * modules/cos (configure.ac): Likewise.
2380 * modules/cosh (configure.ac): Likewise.
2381 * modules/erf (configure.ac): Likewise.
2382 * modules/erfc (configure.ac): Likewise.
2383 * modules/exp (configure.ac): Likewise.
2384 * modules/fmod (configure.ac): Likewise.
2385 * modules/hypot (configure.ac): Likewise.
2386 * modules/j0 (configure.ac): Likewise.
2387 * modules/j1 (configure.ac): Likewise.
2388 * modules/jn (configure.ac): Likewise.
2389 * modules/lgamma (configure.ac): Likewise.
2390 * modules/log (configure.ac): Likewise.
2391 * modules/log10 (configure.ac): Likewise.
2392 * modules/log1p (configure.ac): Likewise.
2393 * modules/pow (configure.ac): Likewise.
2394 * modules/remainder (configure.ac): Likewise.
2395 * modules/sin (configure.ac): Likewise.
2396 * modules/sinh (configure.ac): Likewise.
2397 * modules/tan (configure.ac): Likewise.
2398 * modules/tanh (configure.ac): Likewise.
2399 * modules/y0 (configure.ac): Likewise.
2400 * modules/y1 (configure.ac): Likewise.
2401 * modules/yn (configure.ac): Likewise.
2402 Suggested by Paolo Bonzini.
2404 2010-01-31 Bruno Haible <bruno@clisp.org>
2406 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2408 2010-01-31 Bruno Haible <bruno@clisp.org>
2410 Work around getdelim() bug on FreeBSD 8.0.
2411 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2412 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2414 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2416 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2417 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2418 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2420 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2422 2010-01-31 Bruno Haible <bruno@clisp.org>
2424 Work around getline() bug on FreeBSD 8.0.
2425 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2426 and a non-zero size.
2427 * tests/test-getline.c (main): Likewise.
2428 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2429 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2431 2010-01-28 Eric Blake <ebb9@byu.net>
2433 regex: fix build failure
2434 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2437 2010-01-28 Jim Meyering <meyering@redhat.com>
2439 regex: do not ignore memory allocation failure
2440 * lib/regex_internal.c (create_cd_newstate): Detect
2441 re_node_set_init_copy failure. Extracted from glibc commit
2442 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2444 regex: sync more white-space changes from libc
2445 * lib/regex_internal.c: White-space only changes.
2446 * lib/regexec.c: Likewise.
2448 regex: add many uses of __attribute_warn_unused_result__
2449 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2450 * lib/regexec.c: Likewise.
2451 Extracted from a messy glibc commit.
2453 regcomp.c: spelling and merge-artifact from glibc
2454 * lib/regcomp.c: Merge remainder of glibc's
2455 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2457 regcomp.c: sync white-space changes from glibc
2458 * lib/regcomp.c: Merge to accommodate white space
2459 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2461 regcomp.c: do not ignore internal return values
2462 * lib/regcomp.c: Do not ignore internal return values.
2463 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2464 but without its white-space changes and spelling fixes.
2466 regex_internal.h: define __attribute_warn_unused_result__
2467 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2469 maint: add a syntax-check rule to check for vulnerable Makefile.in
2470 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2472 2010-01-27 Jim Meyering <meyering@redhat.com>
2474 ncftpput-ftp: clean up spaces
2475 * build-aux/ncftpput-ftp: Make Copyright line consistent.
2476 Remove trailing blanks.
2478 2010-01-27 Simon Josefsson <simon@josefsson.org>
2480 * build-aux/git-version-gen: Fix copyright statement.
2481 * build-aux/gnupload: Likewise.
2482 * tests/test-arcfour.c: Likewise.
2483 * tests/test-arctwo.c: Likewise.
2484 * tests/test-count-one-bits.c: Likewise.
2485 * tests/test-crc.c: Likewise.
2486 * tests/test-des.c: Likewise.
2487 * tests/test-gc-arcfour.c: Likewise.
2488 * tests/test-gc-arctwo.c: Likewise.
2489 * tests/test-gc-des.c: Likewise.
2490 * tests/test-gc-hmac-md5.c: Likewise.
2491 * tests/test-gc-hmac-sha1.c: Likewise.
2492 * tests/test-gc-md2.c: Likewise.
2493 * tests/test-gc-md4.c: Likewise.
2494 * tests/test-gc-md5.c: Likewise.
2495 * tests/test-gc-pbkdf2-sha1.c: Likewise.
2496 * tests/test-gc-rijndael.c: Likewise.
2497 * tests/test-gc-sha1.c: Likewise.
2498 * tests/test-gc.c: Likewise.
2499 * tests/test-gethostname.c: Likewise.
2500 * tests/test-gettimeofday.c: Likewise.
2501 * tests/test-hash.c: Likewise.
2502 * tests/test-hmac-md5.c: Likewise.
2503 * tests/test-hmac-sha1.c: Likewise.
2504 * tests/test-md2.c: Likewise.
2505 * tests/test-md4.c: Likewise.
2506 * tests/test-md5.c: Likewise.
2507 * tests/test-memchr.c: Likewise.
2508 * tests/test-memchr2.c: Likewise.
2509 * tests/test-memcmp.c: Likewise.
2510 * tests/test-memmem.c: Likewise.
2511 * tests/test-memrchr.c: Likewise.
2512 * tests/test-rawmemchr.c: Likewise.
2513 * tests/test-read-file.c: Likewise.
2514 * tests/test-rijndael.c: Likewise.
2515 * tests/test-sockets.c: Likewise.
2516 * tests/test-strchrnul.c: Likewise.
2517 * tests/test-strstr.c: Likewise.
2518 * tests/test-strtod.c: Likewise.
2519 * build-aux/ncftpput-ftp: Likewise.
2521 2010-01-26 Eric Blake <ebb9@byu.net>
2523 ignore-value: update recommended header name
2524 * modules/ignore-value (Include): Only use <> for headers that
2527 2010-01-26 Jim Meyering <meyering@redhat.com>
2529 test-userspec.c: avoid compiler warnings
2530 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2531 and "initialization discards qualifiers..." warnings.
2532 Put the first "uid" in its own scope, and make char* members "const".
2534 2010-01-25 Bruno Haible <bruno@clisp.org>
2536 gnulib-tool: Make warning diagnostics consistent.
2537 * gnulib-tool (func_warning): New function.
2538 Use it everywhere where gnulib-tool produces output to stderr and it is
2541 2010-01-25 Bruno Haible <bruno@clisp.org>
2543 Fix test dependencies.
2544 * modules/xstrtol-tests (Depends-on): Add inttypes.
2545 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2547 2010-01-25 Pádraig Brady <P@draigBrady.com>
2549 syntax-check: detect incorrect boolean macro values in config.h
2550 * modules/maintainer-makefile (configure.ac): Parameterize the location
2551 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2552 The logic is from Eric Blake and the location indicated by Jim Meyering.
2553 Note the more natural CONFIG_HEADER name is prohibited by automake
2554 for backwards compatibility reasons.
2555 * top/maint.mk (sc_Wundef_boolean): New rule.
2557 2010-01-25 Jim Meyering <meyering@redhat.com>
2559 bootstrap: detect MacOS 10.6's shasum, too
2560 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2561 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2563 2010-01-23 Jim Meyering <meyering@redhat.com>
2565 xstrtoll: new module
2566 * modules/xstrtoll: New file.
2567 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2568 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2569 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2570 ./configure fails if you use this module and lack "long long".
2571 * modules/xstrtoll-tests: New module.
2572 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2573 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2574 new init.sh-based test framework.
2576 2010-01-24 Bruno Haible <bruno@clisp.org>
2578 Tests for module 'yn'.
2579 * modules/yn-tests: New file.
2580 * tests/test-yn.c: New file.
2582 Tests for module 'y1'.
2583 * modules/y1-tests: New file.
2584 * tests/test-y1.c: New file.
2586 Tests for module 'y0'.
2587 * modules/y0-tests: New file.
2588 * tests/test-y0.c: New file.
2590 Tests for module 'tanh'.
2591 * modules/tanh-tests: New file.
2592 * tests/test-tanh.c: New file.
2594 Tests for module 'tan'.
2595 * modules/tan-tests: New file.
2596 * tests/test-tan.c: New file.
2598 Tests for module 'sqrt'.
2599 * modules/sqrt-tests: New file.
2600 * tests/test-sqrt.c: New file.
2602 Tests for module 'sinh'.
2603 * modules/sinh-tests: New file.
2604 * tests/test-sinh.c: New file.
2606 Tests for module 'sin'.
2607 * modules/sin-tests: New file.
2608 * tests/test-sin.c: New file.
2610 Tests for module 'rint'.
2611 * modules/rint-tests: New file.
2612 * tests/test-rint.c: New file.
2614 Tests for module 'remainder'.
2615 * modules/remainder-tests: New file.
2616 * tests/test-remainder.c: New file.
2618 Tests for module 'pow'.
2619 * modules/pow-tests: New file.
2620 * tests/test-pow.c: New file.
2622 Tests for module 'nextafter'.
2623 * modules/nextafter-tests: New file.
2624 * tests/test-nextafter.c: New file.
2626 Tests for module 'modf'.
2627 * modules/modf-tests: New file.
2628 * tests/test-modf.c: New file.
2630 Tests for module 'logb'.
2631 * modules/logb-tests: New file.
2632 * tests/test-logb.c: New file.
2634 Tests for module 'log1p'.
2635 * modules/log1p-tests: New file.
2636 * tests/test-log1p.c: New file.
2638 Tests for module 'log10'.
2639 * modules/log10-tests: New file.
2640 * tests/test-log10.c: New file.
2642 Tests for module 'log'.
2643 * modules/log-tests: New file.
2644 * tests/test-log.c: New file.
2646 Tests for module 'lgamma'.
2647 * modules/lgamma-tests: New file.
2648 * tests/test-lgamma.c: New file.
2650 Tests for module 'ldexp'.
2651 * modules/ldexp-tests: New file.
2652 * tests/test-ldexp.c: New file.
2654 Tests for module 'jn'.
2655 * modules/jn-tests: New file.
2656 * tests/test-jn.c: New file.
2658 Tests for module 'j1'.
2659 * modules/j1-tests: New file.
2660 * tests/test-j1.c: New file.
2662 Tests for module 'j0'.
2663 * modules/j0-tests: New file.
2664 * tests/test-j0.c: New file.
2666 Tests for module 'hypot'.
2667 * modules/hypot-tests: New file.
2668 * tests/test-hypot.c: New file.
2670 Tests for module 'fmod'.
2671 * modules/fmod-tests: New file.
2672 * tests/test-fmod.c: New file.
2674 Tests for module 'fabs'.
2675 * modules/fabs-tests: New file.
2676 * tests/test-fabs.c: New file.
2678 Tests for module 'exp'.
2679 * modules/exp-tests: New file.
2680 * tests/test-exp.c: New file.
2682 Tests for module 'erfc'.
2683 * modules/erfc-tests: New file.
2684 * tests/test-erfc.c: New file.
2686 Tests for module 'erf'.
2687 * modules/erf-tests: New file.
2688 * tests/test-erf.c: New file.
2690 Tests for module 'cosh'.
2691 * modules/cosh-tests: New file.
2692 * tests/test-cosh.c: New file.
2694 Tests for module 'cos'.
2695 * modules/cos-tests: New file.
2696 * tests/test-cos.c: New file.
2698 Tests for module 'copysign'.
2699 * modules/copysign-tests: New file.
2700 * tests/test-copysign.c: New file.
2702 Tests for module 'cbrt'.
2703 * modules/cbrt-tests: New file.
2704 * tests/test-cbrt.c: New file.
2706 Tests for module 'atan2'.
2707 * modules/atan2-tests: New file.
2708 * tests/test-atan2.c: New file.
2710 Tests for module 'atan'.
2711 * modules/atan-tests: New file.
2712 * tests/test-atan.c: New file.
2714 Tests for module 'asin'.
2715 * modules/asin-tests: New file.
2716 * tests/test-asin.c: New file.
2718 Tests for module 'acos'.
2719 * modules/acos-tests: New file.
2720 * tests/test-acos.c: New file.
2722 2010-01-24 Bruno Haible <bruno@clisp.org>
2724 Fix tests for common <math.h> functions.
2725 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2726 code snippet that references the function pointer, rather than merely
2727 calling the function. Substitute the FUNC_LIBM variable.
2728 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2729 * modules/acos (configure.ac): Likewise.
2730 * modules/asin (configure.ac): Likewise.
2731 * modules/atan (configure.ac): Likewise.
2732 * modules/atan2 (configure.ac): Likewise.
2733 * modules/cbrt (configure.ac): Likewise.
2734 * modules/copysign (configure.ac): Likewise.
2735 * modules/cos (configure.ac): Likewise.
2736 * modules/cosh (configure.ac): Likewise.
2737 * modules/erf (configure.ac): Likewise.
2738 * modules/erfc (configure.ac): Likewise.
2739 * modules/exp (configure.ac): Likewise.
2740 * modules/fabs (configure.ac): Likewise.
2741 * modules/fmod (configure.ac): Likewise.
2742 * modules/hypot (configure.ac): Likewise.
2743 * modules/j0 (configure.ac): Likewise.
2744 * modules/j1 (configure.ac): Likewise.
2745 * modules/jn (configure.ac): Likewise.
2746 * modules/ldexp (configure.ac): Likewise.
2747 * modules/lgamma (configure.ac): Likewise.
2748 * modules/log (configure.ac): Likewise.
2749 * modules/log10 (configure.ac): Likewise.
2750 * modules/log1p (configure.ac): Likewise.
2751 * modules/logb (configure.ac): Likewise.
2752 * modules/modf (configure.ac): Likewise.
2753 * modules/nextafter (configure.ac): Likewise.
2754 * modules/pow (configure.ac): Likewise.
2755 * modules/remainder (configure.ac): Likewise.
2756 * modules/rint (configure.ac): Likewise.
2757 * modules/sin (configure.ac): Likewise.
2758 * modules/sinh (configure.ac): Likewise.
2759 * modules/tan (configure.ac): Likewise.
2760 * modules/tanh (configure.ac): Likewise.
2761 * modules/y0 (configure.ac): Likewise.
2762 * modules/y1 (configure.ac): Likewise.
2763 * modules/yn (configure.ac): Likewise.
2765 2010-01-24 Bruno Haible <bruno@clisp.org>
2767 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2768 * tests/test-acosl.c (x): New variable.
2769 (main): Store argument in x and fetch it from x.
2770 * tests/test-asinl.c (x): New variable.
2771 (main): Store argument in x and fetch it from x.
2772 * tests/test-atanl.c (x): New variable.
2773 (main): Store argument in x and fetch it from x.
2774 * tests/test-cosl.c (x): New variable.
2775 (main): Store argument in x and fetch it from x.
2776 * tests/test-expl.c (x): New variable.
2777 (main): Store argument in x and fetch it from x.
2778 * tests/test-logl.c (x): New variable.
2779 (main): Store argument in x and fetch it from x.
2780 * tests/test-sinl.c (x): New variable.
2781 (main): Store argument in x and fetch it from x.
2782 * tests/test-sqrtl.c (x): New variable.
2783 (main): Store argument in x and fetch it from x.
2784 * tests/test-tanl.c (x): New variable.
2785 (main): Store argument in x and fetch it from x.
2787 2010-01-24 Bruno Haible <bruno@clisp.org>
2789 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2790 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2791 assignments to the initial TESTS_ENVIRONMENT.
2792 * doc/gnulib.texi (Unit test modules): Document it.
2793 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2795 * modules/btowc-tests (Makefile.am): Likewise.
2796 * modules/c-stack-tests (Makefile.am): Likewise.
2797 * modules/c-strcase-tests (Makefile.am): Likewise.
2798 * modules/copy-file-tests (Makefile.am): Likewise.
2799 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2800 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2801 * modules/mbrtowc-tests (Makefile.am): Likewise.
2802 * modules/mbscasecmp-tests (Makefile.am): Likewise.
2803 * modules/mbscasestr-tests (Makefile.am): Likewise.
2804 * modules/mbschr-tests (Makefile.am): Likewise.
2805 * modules/mbscspn-tests (Makefile.am): Likewise.
2806 * modules/mbsinit-tests (Makefile.am): Likewise.
2807 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2808 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2809 * modules/mbspbrk-tests (Makefile.am): Likewise.
2810 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2811 * modules/mbsrchr-tests (Makefile.am): Likewise.
2812 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2813 * modules/mbsspn-tests (Makefile.am): Likewise.
2814 * modules/mbsstr-tests (Makefile.am): Likewise.
2815 * modules/nl_langinfo-tests (Makefile.am): Likewise.
2816 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2817 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2818 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2819 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2820 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2821 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2822 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2823 * modules/wcrtomb-tests (Makefile.am): Likewise.
2824 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2825 * modules/wcsrtombs-tests (Makefile.am): Likewise.
2826 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2827 assignments from TESTS_ENVIRONMENT.
2828 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2830 * modules/argp-version-etc-tests (Makefile.am): Likewise.
2831 * modules/atexit-tests (Makefile.am): Likewise.
2832 * modules/binary-io-tests (Makefile.am): Likewise.
2833 * modules/closein-tests (Makefile.am): Likewise.
2834 * modules/dprintf-posix-tests (Makefile.am): Likewise.
2835 * modules/exclude-tests (Makefile.am): Likewise.
2836 * modules/fflush-tests (Makefile.am): Likewise.
2837 * modules/fpending-tests (Makefile.am): Likewise.
2838 * modules/fprintf-posix-tests (Makefile.am): Likewise.
2839 * modules/freadahead-tests (Makefile.am): Likewise.
2840 * modules/freadptr-tests (Makefile.am): Likewise.
2841 * modules/freadseek-tests (Makefile.am): Likewise.
2842 * modules/fseek-tests (Makefile.am): Likewise.
2843 * modules/fseeko-tests (Makefile.am): Likewise.
2844 * modules/ftell-tests (Makefile.am): Likewise.
2845 * modules/ftello-tests (Makefile.am): Likewise.
2846 * modules/idpriv-drop-tests (Makefile.am): Likewise.
2847 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2848 * modules/lseek-tests (Makefile.am): Likewise.
2849 * modules/parse-duration-tests (Makefile.am): Likewise.
2850 * modules/perror-tests (Makefile.am): Likewise.
2851 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2852 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2853 * modules/pipe-tests (Makefile.am): Likewise.
2854 * modules/pread-tests (Makefile.am): Likewise.
2855 * modules/printf-posix-tests (Makefile.am): Likewise.
2856 * modules/select-tests (Makefile.am): Likewise.
2857 * modules/sigpipe-tests (Makefile.am): Likewise.
2858 * modules/tsearch-tests (Makefile.am): Likewise.
2859 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2860 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2861 * modules/uniname/uniname-tests (Makefile.am): Likewise.
2862 * modules/uniwidth/width-tests (Makefile.am): Likewise.
2863 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2864 * modules/version-etc-tests (Makefile.am): Likewise.
2865 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2866 * modules/vprintf-posix-tests (Makefile.am): Likewise.
2867 * modules/xalloc-die-tests (Makefile.am): Likewise.
2868 * modules/xprintf-posix-tests (Makefile.am): Likewise.
2869 * modules/xstrtoimax-tests (Makefile.am): Likewise.
2870 * modules/xstrtol-tests (Makefile.am): Likewise.
2871 * modules/xstrtoumax-tests (Makefile.am): Likewise.
2872 * modules/yesno-tests (Makefile.am): Likewise.
2873 Suggested by Jim Meyering.
2875 2010-01-24 Bruno Haible <bruno@clisp.org>
2878 * doc/gnulib.texi (Writing modules): New chapter.
2879 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2882 2010-01-24 Jim Meyering <meyering@redhat.com>
2884 maint.mk: do not prepend "./" after filtering
2885 * top/maint.mk (_prepend_srcdir_prefix): New variable
2886 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2887 "./" when $(srcdir) is ".".
2889 define STREQ(a,b) consistently, removing useless parentheses
2890 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2891 since the only risk is that "a" or "b" contains an unparenthesized
2892 comma, but if either did that, STREQ would have 3 or more arguments.
2893 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2894 * lib/fts.c (STREQ): Remove unnecessary parentheses.
2895 * lib/hash-triple.c (STREQ): Likewise.
2896 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2897 * lib/getugroups.c (STREQ): Likewise.
2899 2010-01-23 Jim Meyering <meyering@redhat.com>
2901 maint.mk: fix syntax-check in a non-srcdir build directory
2902 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2903 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
2905 2010-01-22 Jim Meyering <meyering@redhat.com>
2907 userspec: add unit tests
2908 * tests/test-userspec.c: New file.
2909 * modules/userspec-tests: Likewise.
2911 2010-01-21 Jim Meyering <meyering@redhat.com>
2913 maint.mk: handle source file names containing "." robustly
2914 * top/maint.mk (_dot_escaped_srcdir): Define.
2915 (VC_LIST): Use it in LHS of sed substitution.
2917 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
2919 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2920 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2921 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2922 from a non-srcdir build.
2924 2010-01-20 Eric Blake <ebb9@byu.net>
2926 warn-on-use: use instead of link-warning
2927 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2928 * modules/unistd (Depends-on, Makefile.am): Likewise.
2929 * modules/arpa_inet (Depends-on): Replace link-warning with
2931 (Makefile.am): Update rules accordingly.
2932 * modules/ctype (Depends-on, Makefile.am): Likewise.
2933 * modules/dirent (Depends-on, Makefile.am): Likewise.
2934 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2935 * modules/inttypes (Depends-on, Makefile.am): Likewise.
2936 * modules/langinfo (Depends-on, Makefile.am): Likewise.
2937 * modules/locale (Depends-on, Makefile.am): Likewise.
2938 * modules/math (Depends-on, Makefile.am): Likewise.
2939 * modules/search (Depends-on, Makefile.am): Likewise.
2940 * modules/signal (Depends-on, Makefile.am): Likewise.
2941 * modules/spawn (Depends-on, Makefile.am): Likewise.
2942 * modules/stdlib (Depends-on, Makefile.am): Likewise.
2943 * modules/string (Depends-on, Makefile.am): Likewise.
2944 * modules/strings (Depends-on, Makefile.am): Likewise.
2945 * modules/sys_file (Depends-on, Makefile.am): Likewise.
2946 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2947 * modules/sys_select (Depends-on, Makefile.am): Likewise.
2948 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2949 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2950 * modules/sys_times (Depends-on, Makefile.am): Likewise.
2951 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2952 * modules/wchar (Depends-on, Makefile.am): Likewise.
2953 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2955 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2956 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2957 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2958 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2959 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2960 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2961 * m4/math_h.m4 (gl_MATH_H): Likewise.
2962 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2963 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2964 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2965 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2966 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2967 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2968 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2969 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2970 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2971 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2972 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2973 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2974 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2975 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2976 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2977 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2978 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2980 * lib/ctype.in.h: Likewise.
2981 * lib/dirent.in.h: Likewise.
2982 * lib/fcntl.in.h: Likewise.
2983 * lib/inttypes.in.h: Likewise.
2984 * lib/langinfo.in.h: Likewise.
2985 * lib/locale.in.h: Likewise.
2986 * lib/math.in.h: Likewise.
2987 * lib/search.in.h: Likewise.
2988 * lib/signal.in.h: Likewise.
2989 * lib/spawn.in.h: Likewise.
2990 * lib/stdio.in.h: Likewise.
2991 * lib/stdlib.in.h: Likewise.
2992 * lib/string.in.h: Likewise.
2993 * lib/strings.in.h: Likewise.
2994 * lib/sys_file.in.h: Likewise.
2995 * lib/sys_ioctl.in.h: Likewise.
2996 * lib/sys_select.in.h: Likewise.
2997 * lib/sys_socket.in.h: Likewise.
2998 * lib/sys_stat.in.h: Likewise.
2999 * lib/sys_times.in.h: Likewise.
3000 * lib/sys_utsname.in.h: Likewise.
3001 * lib/unistd.in.h: Likewise.
3002 * lib/wchar.in.h: Likewise.
3004 2010-01-20 Bruno Haible <bruno@clisp.org>
3006 Avoid duplicate -lm.
3007 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3008 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3009 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3010 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3011 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3012 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3013 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3014 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3015 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3016 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3017 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3018 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3019 Reported by Paolo Bonzini.
3021 2010-01-19 Bruno Haible <bruno@clisp.org>
3023 langinfo, nl_langinfo: Relicense under LGPLv2+.
3024 * modules/langinfo (License): Change to LGPLv2+.
3025 * modules/nl_langinfo (License): Likewise.
3026 Patch by David Lutterkort <lutter@redhat.com>.
3028 2010-01-19 Bruno Haible <bruno@clisp.org>
3030 Avoid compilation error with cc on OSF/1 5.1.
3031 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3032 statement, not before.
3033 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3035 2010-01-18 Bruno Haible <bruno@clisp.org>
3037 Avoid a link error due to the __printf__ symbol.
3038 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3040 (__format__, __printf__): Remove definitions.
3041 * lib/argp-fmtstream.h: Likewise.
3042 * lib/argp.h: Likewise.
3043 * lib/error.h: Likewise.
3044 * lib/vasnprintf.h: Likewise.
3045 * lib/xprintf.h: Likewise.
3046 * lib/xvasprintf.h: Likewise.
3047 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3049 2010-01-18 Bruno Haible <bruno@clisp.org>
3051 Tests for module 'tanl'.
3052 * modules/tanl-tests: New file.
3053 * tests/test-tanl.c: New file.
3055 Tests for module 'sqrtl'.
3056 * modules/sqrtl-tests: New file.
3057 * tests/test-sqrtl.c: New file.
3059 Tests for module 'sinl'.
3060 * modules/sinl-tests: New file.
3061 * tests/test-sinl.c: New file.
3063 Tests for module 'logl'.
3064 * modules/logl-tests: New file.
3065 * tests/test-logl.c: New file.
3067 Tests for module 'expl'.
3068 * modules/expl-tests: New file.
3069 * tests/test-expl.c: New file.
3071 Tests for module 'cosl'.
3072 * modules/cosl-tests: New file.
3073 * tests/test-cosl.c: New file.
3075 Tests for module 'atanl'.
3076 * modules/atanl-tests: New file.
3077 * tests/test-atanl.c: New file.
3079 Tests for module 'asinl'.
3080 * modules/asinl-tests: New file.
3081 * tests/test-asinl.c: New file.
3083 Tests for module 'acosl'.
3084 * modules/acosl-tests: New file.
3085 * tests/test-acosl.c: New file.
3087 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3088 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3089 tanl): Use the standard gnulib idiom.
3090 * lib/cosl.c: Don't include trigl.c and sincosl.c.
3091 * lib/sinl.c: Likewise.
3092 * lib/tanl.c: Don't include trigl.c.
3093 (kernel_tanl): Make static.
3094 * lib/sincosl.c: Include trigl.h first.
3095 * lib/trigl.c: Likewise.
3096 * m4/acosl.m4: New file.
3097 * m4/asinl.m4: New file.
3098 * m4/atanl.m4: New file.
3099 * m4/cosl.m4: New file.
3100 * m4/expl.m4: New file.
3101 * m4/logl.m4: New file.
3102 * m4/sinl.m4: New file.
3103 * m4/sqrtl.m4: New file.
3104 * m4/tanl.m4: New file.
3105 * m4/mathl.m4: Remove file.
3106 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3107 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3108 Don't initialize GNULIB_MATHL.
3109 * modules/acosl: New file.
3110 * modules/asinl: New file.
3111 * modules/atanl: New file.
3112 * modules/cosl: New file.
3113 * modules/expl: New file.
3114 * modules/logl: New file.
3115 * modules/sinl: New file.
3116 * modules/sqrtl: New file.
3117 * modules/tanl: New file.
3118 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3119 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3120 substitute GNULIB_MATHL.
3121 * modules/mathl: Rewritten.
3122 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3123 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3124 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3125 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3126 * doc/posix-functions/expl.texi: Mention the 'expl' module.
3127 * doc/posix-functions/logl.texi: Mention the 'logl' module.
3128 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3129 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3130 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3132 2010-01-18 Bruno Haible <bruno@clisp.org>
3134 sqrt: Make gl_FUNC_SQRT requirable.
3135 * m4/sqrt.m4: New file.
3136 * modules/sqrt (Files): Add it.
3137 (configure.ac): Invoke gl_FUNC_SQRT.
3139 2010-01-18 Bruno Haible <bruno@clisp.org>
3141 New modules for common <math.h> functions.
3142 * m4/mathfunc.m4: New file.
3143 * modules/acos: New file.
3144 * modules/asin: New file.
3145 * modules/atan: New file.
3146 * modules/atan2: New file.
3147 * modules/cbrt: New file.
3148 * modules/copysign: New file.
3149 * modules/cos: New file.
3150 * modules/cosh: New file.
3151 * modules/erf: New file.
3152 * modules/erfc: New file.
3153 * modules/exp: New file.
3154 * modules/fabs: New file.
3155 * modules/fmod: New file.
3156 * modules/hypot: New file.
3157 * modules/j0: New file.
3158 * modules/j1: New file.
3159 * modules/jn: New file.
3160 * modules/ldexp: New file.
3161 * modules/lgamma: New file.
3162 * modules/log: New file.
3163 * modules/log10: New file.
3164 * modules/log1p: New file.
3165 * modules/logb: New file.
3166 * modules/modf: New file.
3167 * modules/nextafter: New file.
3168 * modules/pow: New file.
3169 * modules/remainder: New file.
3170 * modules/rint: New file.
3171 * modules/sin: New file.
3172 * modules/sinh: New file.
3173 * modules/sqrt: New file.
3174 * modules/tan: New file.
3175 * modules/tanh: New file.
3176 * modules/y0: New file.
3177 * modules/y1: New file.
3178 * modules/yn: New file.
3179 * doc/posix-functions/acos.texi: Mention the 'acos' module.
3180 * doc/posix-functions/asin.texi: Mention the 'asin' module.
3181 * doc/posix-functions/atan.texi: Mention the 'atan' module.
3182 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3183 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3184 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3185 * doc/posix-functions/cos.texi: Mention the 'cos' module.
3186 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3187 * doc/posix-functions/erf.texi: Mention the 'erf' module.
3188 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3189 * doc/posix-functions/exp.texi: Mention the 'exp' module.
3190 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3191 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3192 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3193 * doc/posix-functions/j0.texi: Mention the 'j0' module.
3194 * doc/posix-functions/j1.texi: Mention the 'j1' module.
3195 * doc/posix-functions/jn.texi: Mention the 'jn' module.
3196 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3197 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3198 * doc/posix-functions/log.texi: Mention the 'log' module.
3199 * doc/posix-functions/log10.texi: Mention the 'log10' module.
3200 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3201 * doc/posix-functions/logb.texi: Mention the 'logb' module.
3202 * doc/posix-functions/modf.texi: Mention the 'modf' module.
3203 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3204 * doc/posix-functions/pow.texi: Mention the 'pow' module.
3205 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3206 * doc/posix-functions/rint.texi: Mention the 'rint' module.
3207 * doc/posix-functions/sin.texi: Mention the 'sin' module.
3208 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3209 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3210 * doc/posix-functions/tan.texi: Mention the 'tan' module.
3211 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3212 * doc/posix-functions/y0.texi: Mention the 'y0' module.
3213 * doc/posix-functions/y1.texi: Mention the 'y1' module.
3214 * doc/posix-functions/yn.texi: Mention the 'yn' module.
3216 2010-01-18 Jim Meyering <meyering@redhat.com>
3218 ignore-value: relax license to LGPLv2+
3219 * modules/ignore-value (License): Relax to LGPLv2+.
3221 getdate: don't leak when TZ contains two or more '"'s
3222 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3223 double quote in TZ after the first one.
3225 readtokens: do not leak internal token_lengths buffer
3226 * lib/readtokens.c (readtokens): Free the local, lengths,
3227 when the supplied "token_lengths" parameter is NULL.
3229 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3231 Fix a couple of missing LIBTHREAD link failures on AIX.
3232 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3234 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3236 Link test-poll against INET_PTON_LIB.
3237 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3238 for inet_pton on Solaris 10.
3240 2010-01-17 Bruno Haible <bruno@clisp.org>
3242 unistdio/*-sprintf: Fix typo in module description.
3243 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3244 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3245 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3246 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3247 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3248 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3249 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3250 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3252 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3254 gnulib-tool: fix filelist for AIX, HP-UX ksh.
3255 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3256 variables in shell case patterns, for AIX and HP-UX ksh.
3258 Split large sed scripts, for HP-UX sed.
3259 * modules/stdio: Split sed scripts around 50 sed commands,
3260 to avoid HP-UX limit of 99 commands, in the near future.
3261 * modules/string: Likewise.
3262 * modules/unistd: Likewise.
3264 gnulib-tool: avoid writing in the current directory.
3265 * gnulib-tool (func_emit_lib_Makefile_am)
3266 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3267 not in the current directory, so concurrent gnulib-tool
3268 instances do not interfere.
3270 2010-01-16 Jim Meyering <meyering@redhat.com>
3272 doc: update users.txt
3273 * users.txt: Add grep.
3274 (diffutils, gzip): Update URLs.
3276 2010-01-12 Bruno Haible <bruno@clisp.org>
3278 posix_spawn: Avoid test failure on Cygwin.
3279 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3281 Reported by Simon Josefsson.
3283 2010-01-12 Bruno Haible <bruno@clisp.org>
3285 * tests/test-cond.c (main): When skipping the test, show the reason.
3287 2010-01-12 Simon Josefsson <simon@josefsson.org>
3289 * lib/striconv.c (str_cd_iconv): Avoid if before free.
3291 2010-01-12 Simon Josefsson <simon@josefsson.org>
3293 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3294 VC_LIST_ALWAYS_EXCLUDE_REGEX.
3296 2010-01-12 Eric Blake <ebb9@byu.net>
3298 build: guarantee AS_VAR_IF
3299 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3300 (gl_AS_VAR_IF): Move...
3301 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3302 Reported by Simon Josefsson.
3304 2010-01-12 Simon Josefsson <simon@josefsson.org>
3306 * lib/stdio.in.h: Fix typo.
3308 2010-01-12 Simon Josefsson <simon@josefsson.org>
3310 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3313 2010-01-12 Simon Josefsson <simon@josefsson.org>
3315 * tests/test-xalloc-die.sh: Use $EXEEXT.
3317 2010-01-12 Simon Josefsson <simon@josefsson.org>
3318 Bruno Haible <bruno@clisp.org>
3320 getlogin, getlogin_r: Avoid test failure.
3321 * tests/test-getlogin.c: Include <stdio.h>.
3322 (main): Skip the test when the function fails because stdin is not a
3324 * tests/test-getlogin_r.c: Include <stdio.h>.
3325 (main): Skip the test when the function fails because stdin is not a
3328 2010-01-11 Eric Blake <ebb9@byu.net>
3330 tests: avoid more large file warnings
3331 * tests/test-fflush.c: Avoid warning about ftell use.
3332 * tests/test-fseek.c: Avoid warning about fseek use.
3334 2010-01-10 Bruno Haible <bruno@clisp.org>
3336 nproc: Work better on Linux when /proc and /sys are not mounted.
3337 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3338 as lower bound when, on glibc/Linux systems,
3339 sysconf (_SC_NPROCESSORS_CONF) returns 1.
3340 Suggested by Pádraig Brady <P@draigbrady.com>.
3341 Reported by Dmitry V. Levin <ldv@altlinux.org>.
3344 * lib/nproc.c (num_processors_via_affinity_mask): New function,
3345 extracted from num_processors.
3346 (num_processors): Call it.
3348 2010-01-11 Jim Meyering <meyering@redhat.com>
3350 utimecmp: avoid new warning from upcoming gcc-4.5.0
3351 * lib/utimecmp.c (BILLION): Define using #define rather than an
3352 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3354 2010-01-11 Eric Blake <ebb9@byu.net>
3356 math: add portability warnings for classification macros
3357 * modules/math (Depends-on): Add warn-on-use.
3358 (Makefile.am): Provide new substitutions.
3359 * m4/math_h.m4 (gl_MATH_H): Require inline.
3360 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3361 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3362 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3365 unistd: warn on use of environ without module
3366 * modules/unistd (Depends-on): Add warn-on-use.
3367 (Makefile.am): Provide new substitutions.
3368 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3369 * lib/unistd.in.h (environ): Wrap with a warning helper function.
3371 stdio: warn on suspicious uses
3372 * modules/stdio (Depends-on): Add warn-on-use.
3373 (Makefile.am): Provide new substitutions.
3374 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3376 * lib/stdio.in.h (gets): Always warn on use.
3377 (fseek, ftell): Adjust when warnings are issued, and honor
3378 _GL_NO_LARGE_FILES as a way to silence the warning.
3379 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3380 any warning about large file offsets.
3381 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3382 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3383 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3384 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3385 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3386 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3387 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3388 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3390 warn-on-use: new module
3391 * modules/warn-on-use: New file.
3392 * build-aux/warn-on-use.h: Likewise.
3393 * m4/warn-on-use.m4: Likewise.
3394 * MODULES.html.sh (Support for building): Mention it.
3396 2010-01-10 Bruno Haible <bruno@clisp.org>
3398 Tests for module 'unistr/u32-strdup'.
3399 * modules/unistr/u32-strdup-tests: New file.
3400 * tests/unistr/test-u32-strdup.c: New file.
3402 Tests for module 'unistr/u16-strdup'.
3403 * modules/unistr/u16-strdup-tests: New file.
3404 * tests/unistr/test-u16-strdup.c: New file.
3406 Tests for module 'unistr/u8-strdup'.
3407 * modules/unistr/u8-strdup-tests: New file.
3408 * tests/unistr/test-u8-strdup.c: New file.
3409 * tests/unistr/test-strdup.h: New file.
3411 Tests for module 'unistr/u32-strncmp'.
3412 * modules/unistr/u32-strncmp-tests: New file.
3413 * tests/unistr/test-u32-strncmp.c: New file.
3415 Tests for module 'unistr/u16-strncmp'.
3416 * modules/unistr/u16-strncmp-tests: New file.
3417 * tests/unistr/test-u16-strncmp.c: New file.
3419 Tests for module 'unistr/u8-strncmp'.
3420 * modules/unistr/u8-strncmp-tests: New file.
3421 * tests/unistr/test-u8-strncmp.c: New file.
3422 * tests/unistr/test-strncmp.h: New file.
3424 Tests for module 'unistr/u32-strcoll'.
3425 * modules/unistr/u32-strcoll-tests: New file.
3426 * tests/unistr/test-u32-strcoll.c: New file.
3428 Tests for module 'unistr/u16-strcoll'.
3429 * modules/unistr/u16-strcoll-tests: New file.
3430 * tests/unistr/test-u16-strcoll.c: New file.
3432 Tests for module 'unistr/u8-strcoll'.
3433 * modules/unistr/u8-strcoll-tests: New file.
3434 * tests/unistr/test-u8-strcoll.c: New file.
3436 Tests for module 'unistr/u32-strcmp'.
3437 * modules/unistr/u32-strcmp-tests: New file.
3438 * tests/unistr/test-u32-strcmp.c: New file.
3439 * tests/unistr/test-u32-strcmp.h: New file.
3441 Tests for module 'unistr/u16-strcmp'.
3442 * modules/unistr/u16-strcmp-tests: New file.
3443 * tests/unistr/test-u16-strcmp.c: New file.
3444 * tests/unistr/test-u16-strcmp.h: New file.
3446 Tests for module 'unistr/u8-strcmp'.
3447 * modules/unistr/u8-strcmp-tests: New file.
3448 * tests/unistr/test-u8-strcmp.c: New file.
3449 * tests/unistr/test-u8-strcmp.h: New file.
3450 * tests/unistr/test-strcmp.h: New file.
3452 Tests for module 'unistr/u32-strncat'.
3453 * modules/unistr/u32-strncat-tests: New file.
3454 * tests/unistr/test-u32-strncat.c: New file.
3456 Tests for module 'unistr/u16-strncat'.
3457 * modules/unistr/u16-strncat-tests: New file.
3458 * tests/unistr/test-u16-strncat.c: New file.
3460 Tests for module 'unistr/u8-strncat'.
3461 * modules/unistr/u8-strncat-tests: New file.
3462 * tests/unistr/test-u8-strncat.c: New file.
3463 * tests/unistr/test-strncat.h: New file.
3465 Tests for module 'unistr/u32-strcat'.
3466 * modules/unistr/u32-strcat-tests: New file.
3467 * tests/unistr/test-u32-strcat.c: New file.
3469 Tests for module 'unistr/u16-strcat'.
3470 * modules/unistr/u16-strcat-tests: New file.
3471 * tests/unistr/test-u16-strcat.c: New file.
3473 Tests for module 'unistr/u8-strcat'.
3474 * modules/unistr/u8-strcat-tests: New file.
3475 * tests/unistr/test-u8-strcat.c: New file.
3476 * tests/unistr/test-strcat.h: New file.
3478 Tests for module 'unistr/u32-stpncpy'.
3479 * modules/unistr/u32-stpncpy-tests: New file.
3480 * tests/unistr/test-u32-stpncpy.c: New file.
3482 Tests for module 'unistr/u16-stpncpy'.
3483 * modules/unistr/u16-stpncpy-tests: New file.
3484 * tests/unistr/test-u16-stpncpy.c: New file.
3486 Tests for module 'unistr/u8-stpncpy'.
3487 * modules/unistr/u8-stpncpy-tests: New file.
3488 * tests/unistr/test-u8-stpncpy.c: New file.
3489 * tests/unistr/test-stpncpy.h: New file.
3491 Tests for module 'unistr/u32-strncpy'.
3492 * modules/unistr/u32-strncpy-tests: New file.
3493 * tests/unistr/test-u32-strncpy.c: New file.
3495 Tests for module 'unistr/u16-strncpy'.
3496 * modules/unistr/u16-strncpy-tests: New file.
3497 * tests/unistr/test-u16-strncpy.c: New file.
3499 Tests for module 'unistr/u8-strncpy'.
3500 * modules/unistr/u8-strncpy-tests: New file.
3501 * tests/unistr/test-u8-strncpy.c: New file.
3502 * tests/unistr/test-strncpy.h: New file.
3504 Tests for module 'unistr/u32-stpcpy'.
3505 * modules/unistr/u32-stpcpy-tests: New file.
3506 * tests/unistr/test-u32-stpcpy.c: New file.
3508 Tests for module 'unistr/u16-stpcpy'.
3509 * modules/unistr/u16-stpcpy-tests: New file.
3510 * tests/unistr/test-u16-stpcpy.c: New file.
3512 Tests for module 'unistr/u8-stpcpy'.
3513 * modules/unistr/u8-stpcpy-tests: New file.
3514 * tests/unistr/test-u8-stpcpy.c: New file.
3515 * tests/unistr/test-stpcpy.h: New file.
3517 Tests for module 'unistr/u32-strcpy'.
3518 * modules/unistr/u32-strcpy-tests: New file.
3519 * tests/unistr/test-u32-strcpy.c: New file.
3521 Tests for module 'unistr/u16-strcpy'.
3522 * modules/unistr/u16-strcpy-tests: New file.
3523 * tests/unistr/test-u16-strcpy.c: New file.
3525 Tests for module 'unistr/u8-strcpy'.
3526 * modules/unistr/u8-strcpy-tests: New file.
3527 * tests/unistr/test-u8-strcpy.c: New file.
3528 * tests/unistr/test-strcpy.h: New file.
3530 Tests for module 'unistr/u32-strnlen'.
3531 * modules/unistr/u32-strnlen-tests: New file.
3532 * tests/unistr/test-u32-strnlen.c: New file.
3534 Tests for module 'unistr/u16-strnlen'.
3535 * modules/unistr/u16-strnlen-tests: New file.
3536 * tests/unistr/test-u16-strnlen.c: New file.
3538 Tests for module 'unistr/u8-strnlen'.
3539 * modules/unistr/u8-strnlen-tests: New file.
3540 * tests/unistr/test-u8-strnlen.c: New file.
3541 * tests/unistr/test-strnlen.h: New file.
3543 Tests for module 'unistr/u32-strlen'.
3544 * modules/unistr/u32-strlen-tests: New file.
3545 * tests/unistr/test-u32-strlen.c: New file.
3547 Tests for module 'unistr/u16-strlen'.
3548 * modules/unistr/u16-strlen-tests: New file.
3549 * tests/unistr/test-u16-strlen.c: New file.
3551 Tests for module 'unistr/u8-strlen'.
3552 * modules/unistr/u8-strlen-tests: New file.
3553 * tests/unistr/test-u8-strlen.c: New file.
3555 Tests for module 'unistr/u32-prev'.
3556 * modules/unistr/u32-prev-tests: New file.
3557 * tests/unistr/test-u32-prev.c: New file.
3559 Tests for module 'unistr/u16-prev'.
3560 * modules/unistr/u16-prev-tests: New file.
3561 * tests/unistr/test-u16-prev.c: New file.
3563 Tests for module 'unistr/u8-prev'.
3564 * modules/unistr/u8-prev-tests: New file.
3565 * tests/unistr/test-u8-prev.c: New file.
3567 Tests for module 'unistr/u32-next'.
3568 * modules/unistr/u32-next-tests: New file.
3569 * tests/unistr/test-u32-next.c: New file.
3571 Tests for module 'unistr/u16-next'.
3572 * modules/unistr/u16-next-tests: New file.
3573 * tests/unistr/test-u16-next.c: New file.
3575 Tests for module 'unistr/u8-next'.
3576 * modules/unistr/u8-next-tests: New file.
3577 * tests/unistr/test-u8-next.c: New file.
3579 Tests for module 'unistr/u32-strmbtouc'.
3580 * modules/unistr/u32-strmbtouc-tests: New file.
3581 * tests/unistr/test-u32-strmbtouc.c: New file.
3583 Tests for module 'unistr/u16-strmbtouc'.
3584 * modules/unistr/u16-strmbtouc-tests: New file.
3585 * tests/unistr/test-u16-strmbtouc.c: New file.
3587 Tests for module 'unistr/u8-strmbtouc'.
3588 * modules/unistr/u8-strmbtouc-tests: New file.
3589 * tests/unistr/test-u8-strmbtouc.c: New file.
3591 Tests for module 'unistr/u32-strmblen'.
3592 * modules/unistr/u32-strmblen-tests: New file.
3593 * tests/unistr/test-u32-strmblen.c: New file.
3595 Tests for module 'unistr/u16-strmblen'.
3596 * modules/unistr/u16-strmblen-tests: New file.
3597 * tests/unistr/test-u16-strmblen.c: New file.
3599 Tests for module 'unistr/u8-strmblen'.
3600 * modules/unistr/u8-strmblen-tests: New file.
3601 * tests/unistr/test-u8-strmblen.c: New file.
3603 Tests for module 'unistr/u32-cpy-alloc'.
3604 * modules/unistr/u32-cpy-alloc-tests: New file.
3605 * tests/unistr/test-u32-cpy-alloc.c: New file.
3607 Tests for module 'unistr/u16-cpy-alloc'.
3608 * modules/unistr/u16-cpy-alloc-tests: New file.
3609 * tests/unistr/test-u16-cpy-alloc.c: New file.
3611 Tests for module 'unistr/u8-cpy-alloc'.
3612 * modules/unistr/u8-cpy-alloc-tests: New file.
3613 * tests/unistr/test-u8-cpy-alloc.c: New file.
3614 * tests/unistr/test-cpy-alloc.h: New file.
3616 Tests for module 'unistr/u32-mbsnlen'.
3617 * modules/unistr/u32-mbsnlen-tests: New file.
3618 * tests/unistr/test-u32-mbsnlen.c: New file.
3620 Tests for module 'unistr/u16-mbsnlen'.
3621 * modules/unistr/u16-mbsnlen-tests: New file.
3622 * tests/unistr/test-u16-mbsnlen.c: New file.
3624 Tests for module 'unistr/u8-mbsnlen'.
3625 * modules/unistr/u8-mbsnlen-tests: New file.
3626 * tests/unistr/test-u8-mbsnlen.c: New file.
3628 Tests for module 'unistr/u32-chr'.
3629 * modules/unistr/u32-chr-tests: New file.
3630 * tests/unistr/test-u32-chr.c: New file.
3632 Tests for module 'unistr/u16-chr'.
3633 * modules/unistr/u16-chr-tests: New file.
3634 * tests/unistr/test-u16-chr.c: New file.
3636 Tests for module 'unistr/u8-chr'.
3637 * modules/unistr/u8-chr-tests: New file.
3638 * tests/unistr/test-u8-chr.c: New file.
3639 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3641 Tests for module 'unistr/u32-cmp2'.
3642 * modules/unistr/u32-cmp2-tests: New file.
3643 * tests/unistr/test-u32-cmp2.c: New file.
3645 Tests for module 'unistr/u16-cmp2'.
3646 * modules/unistr/u16-cmp2-tests: New file.
3647 * tests/unistr/test-u16-cmp2.c: New file.
3649 Tests for module 'unistr/u8-cmp2'.
3650 * modules/unistr/u8-cmp2-tests: New file.
3651 * tests/unistr/test-u8-cmp2.c: New file.
3652 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3654 Tests for module 'unistr/u32-cmp'.
3655 * modules/unistr/u32-cmp-tests: New file.
3656 * tests/unistr/test-u32-cmp.c: New file.
3658 Tests for module 'unistr/u16-cmp'.
3659 * modules/unistr/u16-cmp-tests: New file.
3660 * tests/unistr/test-u16-cmp.c: New file.
3662 Tests for module 'unistr/u8-cmp'.
3663 * modules/unistr/u8-cmp-tests: New file.
3664 * tests/unistr/test-u8-cmp.c: New file.
3665 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3667 Tests for module 'unistr/u32-set'.
3668 * modules/unistr/u32-set-tests: New file.
3669 * tests/unistr/test-u32-set.c: New file.
3671 Tests for module 'unistr/u16-set'.
3672 * modules/unistr/u16-set-tests: New file.
3673 * tests/unistr/test-u16-set.c: New file.
3675 Tests for module 'unistr/u8-set'.
3676 * modules/unistr/u8-set-tests: New file.
3677 * tests/unistr/test-u8-set.c: New file.
3678 * tests/unistr/test-set.h: New file.
3680 Tests for module 'unistr/u32-move'.
3681 * modules/unistr/u32-move-tests: New file.
3682 * tests/unistr/test-u32-move.c: New file.
3684 Tests for module 'unistr/u16-move'.
3685 * modules/unistr/u16-move-tests: New file.
3686 * tests/unistr/test-u16-move.c: New file.
3688 Tests for module 'unistr/u8-move'.
3689 * modules/unistr/u8-move-tests: New file.
3690 * tests/unistr/test-u8-move.c: New file.
3691 * tests/unistr/test-move.h: New file.
3693 Tests for module 'unistr/u32-cpy'.
3694 * modules/unistr/u32-cpy-tests: New file.
3695 * tests/unistr/test-u32-cpy.c: New file.
3697 Tests for module 'unistr/u16-cpy'.
3698 * modules/unistr/u16-cpy-tests: New file.
3699 * tests/unistr/test-u16-cpy.c: New file.
3701 Tests for module 'unistr/u8-cpy'.
3702 * modules/unistr/u8-cpy-tests: New file.
3703 * tests/unistr/test-u8-cpy.c: New file.
3704 * tests/unistr/test-cpy.h: New file.
3706 2010-01-09 Bruno Haible <bruno@clisp.org>
3708 Tests for module 'unistr/u32-uctomb'.
3709 * modules/unistr/u32-uctomb-tests: New file.
3710 * tests/unistr/test-u32-uctomb.c: New file.
3712 Tests for module 'unistr/u16-uctomb'.
3713 * modules/unistr/u16-uctomb-tests: New file.
3714 * tests/unistr/test-u16-uctomb.c: New file.
3716 Tests for module 'unistr/u8-uctomb'.
3717 * modules/unistr/u8-uctomb-tests: New file.
3718 * tests/unistr/test-u8-uctomb.c: New file.
3720 Tests for module 'unistr/u32-mbtoucr'.
3721 * modules/unistr/u32-mbtoucr-tests: New file.
3722 * tests/unistr/test-u32-mbtoucr.c: New file.
3724 Tests for module 'unistr/u16-mbtoucr'.
3725 * modules/unistr/u16-mbtoucr-tests: New file.
3726 * tests/unistr/test-u16-mbtoucr.c: New file.
3728 Tests for module 'unistr/u8-mbtoucr'.
3729 * modules/unistr/u8-mbtoucr-tests: New file.
3730 * tests/unistr/test-u8-mbtoucr.c: New file.
3732 Tests for module 'unistr/u32-mbtouc'.
3733 * modules/unistr/u32-mbtouc-tests: New file.
3734 * tests/unistr/test-u32-mbtouc.c: New file.
3736 Tests for module 'unistr/u16-mbtouc'.
3737 * modules/unistr/u16-mbtouc-tests: New file.
3738 * tests/unistr/test-u16-mbtouc.c: New file.
3740 Tests for module 'unistr/u8-mbtouc'.
3741 * modules/unistr/u8-mbtouc-tests: New file.
3742 * tests/unistr/test-u8-mbtouc.c: New file.
3744 Tests for module 'unistr/u32-mbtouc-unsafe'.
3745 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3746 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3747 * tests/unistr/test-u32-mbtouc.h: New file.
3749 Tests for module 'unistr/u16-mbtouc-unsafe'.
3750 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3751 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3752 * tests/unistr/test-u16-mbtouc.h: New file.
3754 Tests for module 'unistr/u8-mbtouc-unsafe'.
3755 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3756 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3757 * tests/unistr/test-u8-mbtouc.h: New file.
3759 Tests for module 'unistr/u32-mblen'.
3760 * modules/unistr/u32-mblen-tests: New file.
3761 * tests/unistr/test-u32-mblen.c: New file.
3763 Tests for module 'unistr/u16-mblen'.
3764 * modules/unistr/u16-mblen-tests: New file.
3765 * tests/unistr/test-u16-mblen.c: New file.
3767 Tests for module 'unistr/u8-mblen'.
3768 * modules/unistr/u8-mblen-tests: New file.
3769 * tests/unistr/test-u8-mblen.c: New file.
3771 Tests for module 'unistr/u32-to-u16'.
3772 * modules/unistr/u32-to-u16-tests: New file.
3773 * tests/unistr/test-u32-to-u16.c: New file.
3775 Tests for module 'unistr/u32-to-u8'.
3776 * modules/unistr/u32-to-u8-tests: New file.
3777 * tests/unistr/test-u32-to-u8.c: New file.
3779 Tests for module 'unistr/u16-to-u32'.
3780 * modules/unistr/u16-to-u32-tests: New file.
3781 * tests/unistr/test-u16-to-u32.c: New file.
3783 Tests for module 'unistr/u16-to-u8'.
3784 * modules/unistr/u16-to-u8-tests: New file.
3785 * tests/unistr/test-u16-to-u8.c: New file.
3787 Tests for module 'unistr/u8-to-u32'.
3788 * modules/unistr/u8-to-u32-tests: New file.
3789 * tests/unistr/test-u8-to-u32.c: New file.
3791 Tests for module 'unistr/u8-to-u16'.
3792 * modules/unistr/u8-to-u16-tests: New file.
3793 * tests/unistr/test-u8-to-u16.c: New file.
3795 Tests for module 'unistr/u32-check'.
3796 * modules/unistr/u32-check-tests: New file.
3797 * tests/unistr/test-u32-check.c: New file.
3799 Tests for module 'unistr/u16-check'.
3800 * modules/unistr/u16-check-tests: New file.
3801 * tests/unistr/test-u16-check.c: New file.
3803 Tests for module 'unistr/u8-check'.
3804 * modules/unistr/u8-check-tests: New file.
3805 * tests/unistr/test-u8-check.c: New file.
3807 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3808 (category_equals): New function.
3809 (main): Add more tests.
3810 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3812 * tests/unictype/test-bidi_byname.c (main): Add more tests.
3814 2010-01-10 Bruno Haible <bruno@clisp.org>
3816 unistr/u*-strcoll: Try harder to distinguish different strings.
3817 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3818 compare s1 and s2 to see if they are different.
3820 2010-01-10 Bruno Haible <bruno@clisp.org>
3822 unistr/u*-stpncpy: Fix the return value.
3823 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3824 description of the return value consistent with stpncpy in glibc.
3825 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3826 written non-NUL unit.
3828 2010-01-10 Bruno Haible <bruno@clisp.org>
3830 unistr/u*-next: Add missing dependencies.
3831 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3832 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3833 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3835 2010-01-10 Bruno Haible <bruno@clisp.org>
3837 unistr/u8-mbsnlen: Fix return value for incomplete character.
3838 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3840 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3841 Remove unistr/u8-mblen.
3842 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3844 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3845 Remove unistr/u16-mblen.
3847 2010-01-10 Bruno Haible <bruno@clisp.org>
3849 wchar: Fix compilation error when <wchar.h> is used from coreutils.
3850 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3851 Reported by Brian Gough <bjg@gnu.org> and
3852 Chris Clayton <chris2553@googlemail.com> via
3853 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3855 2010-01-09 Bruno Haible <bruno@clisp.org>
3857 unistr/u16-to-u32: Reject invalid input.
3858 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3860 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3861 Remove unistr/u16-mbtouc.
3863 unistr/u16-to-u8: Reject invalid input.
3864 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3866 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3867 Remove unistr/u16-mbtouc.
3869 unistr/u8-to-u32: Reject invalid input.
3870 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3872 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3873 Remove unistr/u8-mbtouc.
3875 unistr/u8-to-u16: Reject invalid input.
3876 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3878 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3879 Remove unistr/u8-mbtouc.
3881 2010-01-09 Bruno Haible <bruno@clisp.org>
3883 Tests for module 'getlogin'.
3884 * modules/getlogin-tests: New file.
3885 * tests/test-getlogin.c: New file.
3887 New module 'getlogin'.
3888 * lib/unistd.in.h (getlogin): New declaration.
3889 * lib/getlogin.c: New file.
3890 * m4/getlogin.m4: New file.
3891 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3893 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3895 * modules/getlogin: New file.
3896 * doc/posix-functions/getlogin.texi: Mention the new module.
3897 Reported by John W. Eaton <jwe@gnu.org>.
3899 2010-01-09 Bruno Haible <bruno@clisp.org>
3901 getlogin_r: Support for native Windows.
3902 * lib/getlogin_r.c: Include <windows.h>
3903 (getlogin_r): Implement for native Windows.
3904 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3905 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3906 via John W. Eaton <jwe@gnu.org>.
3908 2010-01-09 Bruno Haible <bruno@clisp.org>
3910 getlogin_r: Small fixes.
3911 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3913 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3914 before testing whether getlogin_r is declared. No need to set
3915 HAVE_DECL_GETLOGIN_R to 1.
3916 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3918 2010-01-09 Bruno Haible <bruno@clisp.org>
3920 * lib/unistd.in.h (getlogin_r): Add comment.
3922 2010-01-09 Bruno Haible <bruno@clisp.org>
3924 Tests for module 'getlogin_r'.
3925 * modules/getlogin_r-tests: New file.
3926 * tests/test-getlogin_r.c: New file.
3928 2010-01-09 Jim Meyering <meyering@redhat.com>
3930 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3931 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3932 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3934 2010-01-08 Simon Josefsson <simon@josefsson.org>
3936 * lib/dup2.c (rpl_dup2): Improve comment.
3938 2010-01-08 Eric Blake <ebb9@byu.net>
3940 maint.mk: allow packages to add makefile @@ exceptions
3941 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3942 (sc_makefile_check): Rename...
3943 (sc_makefile_at_at_check): ...to this, and use hook.
3945 dup2: work around mingw bug
3946 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3947 Reported by Simon Josefsson.
3949 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
3951 glob: Fix C++ compilation.
3952 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3955 2010-01-07 Bruno Haible <bruno@clisp.org>
3957 Fix indentation of wctype.in.h, broken since 2007-01-06.
3958 * lib/wctype.in.h: Fix indentation of preprocessor directives.
3960 2010-01-07 Bruno Haible <bruno@clisp.org>
3962 mbslen: Avoid collision with system function.
3963 * lib/string.in.h [MirBSD]: Include <wchar.h>.
3964 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3965 * m4/mbslen.m4: New file.
3966 * modules/mbslen (Files): Add it.
3967 (configure.ac): Invoke gl_MBSLEN.
3968 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3969 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3970 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3971 via Ian Beckwith <ianb@erislabs.net>.
3973 2010-01-07 Bruno Haible <bruno@clisp.org>
3975 dirent: Document the last fix.
3976 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3978 2010-01-07 Bruno Haible <bruno@clisp.org>
3980 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3981 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3982 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3983 va_list are defined.
3984 * doc/posix-headers/stdio.texi: Document the bug of missing types.
3985 Reported by Eric Blake.
3987 2010-01-07 Bruno Haible <bruno@clisp.org>
3989 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3990 * modules/xlist (Depends-on): Add 'list',
3991 * modules/xoset (Depends-on): Add 'oset'.
3992 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3994 2010-01-07 Bruno Haible <bruno@clisp.org>
3996 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3997 * doc/posix-functions/strncasecmp.texi: Likewise.
3999 2010-01-07 Bruno Haible <bruno@clisp.org>
4001 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4003 2010-01-07 John W. Eaton <jwe@octave.org>
4005 wctype: allow C++ use
4006 * lib/wctype.in.h: Add extern "C" block for C++.
4008 2010-01-06 Eric Blake <ebb9@byu.net>
4010 maint.mk: detect incorrect GFDL usage
4011 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4013 2010-01-06 Jim Meyering <meyering@redhat.com>
4014 and Eric Blake <ebb9@byu.net>
4016 maint.mk: ignore multi-line copyright in NEWS
4017 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4019 2010-01-06 Eric Blake <ebb9@byu.net>
4021 select: add missing dependency
4022 * modules/select-tests (Depends-on): Move sockets dependency...
4023 * modules/select (Depends-on): ...here.
4024 Reported by Ian Beckwith.
4026 doc: regenerate INSTALL
4027 * doc/INSTALL: Reflect recent autoconf update.
4028 * doc/INSTALL.ISO: Likewise.
4029 * doc/INSTALL.UTF-8: Likewise.
4031 pread: fix compilation on glibc
4032 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4033 Reported by Ralf Wildenhues.
4035 dirent: fix test failure
4036 * lib/dirent.in.h (includes): Guarantee ino_t.
4037 Reported by Ralf Wildenhues.
4039 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
4041 linkat, renameat: avoid bad free
4042 * lib/at-func2.c (at_func2): Fix typo.
4043 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4045 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4047 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4048 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4049 to avoid failure of symlink test later.
4051 2010-01-06 Eric Blake <ebb9@byu.net>
4053 stdio, unistd: guarantee ssize_t
4054 * lib/unistd.in.h (includes): Ensure that types required by POSIX
4055 2008 are exposed when needed.
4056 * lib/stdio.in.h (includes): Likewise.
4057 Reported by Ralf Wildenhues.
4059 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
4061 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4062 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4063 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4065 2010-01-06 Jim Meyering <meyering@redhat.com>
4067 readtokens: this module *does* require xalloc.h
4068 It uses only functions that were omitted by the old syntax-check rule.
4069 * lib/readtokens.c: Include "xalloc.h" once again.
4070 * modules/readtokens (Depends-on): Add xalloc.
4071 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4073 2010-01-05 Eric Blake <ebb9@byu.net>
4075 maint: support 'make announcement' from a VPATH build
4076 * top/maint.mk (announcement): Look for correct NEWS file.
4078 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
4080 utimens (fdutimens): ignore a negative FD, per contract
4081 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4082 when we have a valid file descriptor. Otherwise, using a brand
4083 new glibc (with just-patched futimens that now fails with EBADF)
4084 would cause this function to fail with ENOSYS.
4085 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4086 See also http://bugzilla.redhat.com/552320.
4088 2010-01-05 Eric Blake <ebb9@byu.net>
4090 strcase: document what it provides
4091 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4093 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4094 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4096 2010-01-05 Jim Meyering <meyering@redhat.com>
4098 maint: remove useless inclusions of "xalloc.h"
4099 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4100 * lib/readtokens.c: Likewise.
4101 * lib/same.c: Likewise.
4102 * modules/getloadavg (Depends-on): Remove xalloc.
4103 * modules/readtokens: Likewise.
4104 * modules/same: Likewise.
4106 maint.mk: include 4 more function names in alloca.h-checking regexp
4107 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4108 regexp. Before, we would give a false-positive (saying alloca.h
4109 is included unnecessarily) when the only uses involved omitted symbols.
4111 xalloc.h: use consistent formatting
4112 * lib/xalloc.h: Move declarations to start in the first column.
4114 2010-01-05 Eric Blake <ebb9@byu.net>
4117 * lib/mkdir.c (includes): Drop unused header.
4118 Reported by John W. Eaton.
4120 2010-01-04 Jim Meyering <meyering@redhat.com>
4122 nl_langinfo: avoid configure-time syntax error
4123 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4124 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4125 the empty string. Don't let that provoke a shell syntax error.
4127 regcomp, regexec, fnmatch: avoid array bounds read error
4128 * lib/regcomp.c (build_equiv_class): From glibc:
4129 Use only the low 24 bits of a findidx return value as an index
4130 into the weights array. Patch by Ulrich Drepper:
4131 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4132 * lib/regexec.c (check_node_accept_bytes): Likewise.
4133 * lib/fnmatch_loop.c (FCT): Likewise.
4135 regcomp: skip collseq lookup when there are no rules
4136 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4137 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4139 regcomp: recognize ill-formed { } expressions
4140 * lib/regcomp.c (parse_dup_op): From glibc:
4141 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4143 regcomp: fix typo in comment
4144 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4145 s/satisfy/satisfies/.
4147 regcomp: sync from glibc: remove dead store
4148 * lib/regcomp.c (duplicate_node_closure): Remove useless
4149 search_duplicated_node call and dead store.
4151 regcomp: sync from glibc; always use nl_langinfo
4152 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4153 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
4154 * modules/regex (Depends-on): Add nl_langinfo.
4156 2010-01-04 Eric Blake <ebb9@byu.net>
4158 fdopendir: fix configure test
4159 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4161 2010-01-01 Bruno Haible <bruno@clisp.org>
4163 wchar: Remove unused configure check.
4164 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4166 2010-01-01 Eric Blake <ebb9@byu.net>
4168 headers: make check of system header explicit
4169 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4170 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4172 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4173 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4174 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4175 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4177 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4179 Suggested by Bruno Haible.
4181 2010-01-01 Jim Meyering <meyering@redhat.com>
4183 ChangeLog: tweak to eliminate unnecessary copyright line
4184 * ChangeLog: Remove a copyright line that was mistakenly updated
4185 by today's update-copyright run. Reported by Eric Blake.
4187 test-update-copyright: don't let envvar setting cause test failure
4188 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4190 2010-01-01 Bruno Haible <bruno@clisp.org>
4192 localename: Avoid gcc warning.
4193 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4194 function if it is not used.
4196 2010-01-01 Jim Meyering <meyering@redhat.com>
4198 update nearly all FSF copyright year lists to include 2010
4199 Use the same procedure as for 2009, outlined in
4200 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4202 version-etc: set COPYRIGHT_YEAR to 2010
4203 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4205 2009-12-31 Eric Blake <ebb9@byu.net>
4207 doc: correct availability of cygwin 1.5.x getopt
4208 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4210 * doc/posix-functions/opterr.texi (opterr): Likewise.
4211 * doc/posix-functions/optind.texi (optind): Likewise.
4212 * doc/posix-functions/optopt.texi (optopt): Likewise.
4213 * doc/posix-functions/tzname.texi (tzname): Likewise.
4215 openat: update maintainer
4216 * modules/openat (Maintainer): Add myself.
4218 utimens: avoid shadowing warning
4219 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4220 buffers into one, to avoid shadowing, as well as avoiding a
4222 Reported by Jim Meyering.
4224 test-dup2: avoid compiler warning
4225 * tests/test-dup2.c (is_inheritable): Only define if used.
4227 2010-01-01 Bruno Haible <bruno@clisp.org>
4229 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4230 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4231 defined, use wctomb instead of wcrtomb.
4233 2010-01-01 Bruno Haible <bruno@clisp.org>
4235 iconv: Reject native Solaris iconv.
4236 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4237 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4239 2009-12-31 Bruno Haible <bruno@clisp.org>
4241 * tests/test-signal.c (main): Remove test of 'SIG'.
4243 2009-12-31 Bruno Haible <bruno@clisp.org>
4245 spawn: Fix incomplete fix.
4246 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4247 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4248 warnings for GNULIB_POSIXCHECK again.
4249 Reported by Eric Blake.
4251 2009-12-31 Bruno Haible <bruno@clisp.org>
4253 Avoid namespace pollution on glibc systems.
4254 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4255 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4256 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4259 2009-12-31 Bruno Haible <bruno@clisp.org>
4261 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4262 (gl_REPLACE_WCHAR_H): Turn into a no-op.
4263 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4264 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4265 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4266 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4267 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4269 2009-12-31 Bruno Haible <bruno@clisp.org>
4271 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4272 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4275 2009-12-31 Bruno Haible <bruno@clisp.org>
4277 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4280 2009-12-31 Bruno Haible <bruno@clisp.org>
4282 spawn: Fix misapplied patch.
4283 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4284 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4285 warnings for GNULIB_POSIXCHECK.
4287 2009-12-31 Bruno Haible <bruno@clisp.org>
4289 times: Update after sys_times changed.
4290 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4291 * modules/times (Files): Add it.
4292 (configure.ac): Invoke gl_FUNC_TIMES.
4294 2009-12-31 Bruno Haible <bruno@clisp.org>
4296 Use AC_C_INLINE where necessary.
4297 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4298 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4299 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4300 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4301 * m4/mbfile.m4 (gl_MBFILE): Likewise.
4302 * m4/mbiter.m4 (gl_MBITER): Likewise.
4303 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4304 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4305 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4306 * modules/u64 (configure.ac): Likewise.
4308 2009-12-31 Bruno Haible <bruno@clisp.org>
4310 Use AC_C_INLINE instead of module 'inline' where possible.
4311 * modules/inline (Description): Clarify purpose.
4312 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4313 * modules/count-one-bits (Depends-on): Remove inline.
4314 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4315 * modules/openat (Depends-on): Remove inline.
4316 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4317 instead of depending on module 'inline'.
4318 * modules/filevercmp (Depends-on, configure.ac): Likewise.
4319 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4320 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4321 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4322 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4323 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4324 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4325 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4326 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4327 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4328 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4329 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4330 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4331 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4332 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4333 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4334 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4335 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4337 * modules/unictype/property-ascii-hex-digit (Depends-on,
4338 configure.ac): Likewise.
4339 * modules/unictype/property-bidi-arabic-digit (Depends-on,
4340 configure.ac): Likewise.
4341 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4342 configure.ac): Likewise.
4343 * modules/unictype/property-bidi-block-separator (Depends-on,
4344 configure.ac): Likewise.
4345 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4346 configure.ac): Likewise.
4347 * modules/unictype/property-bidi-common-separator (Depends-on,
4348 configure.ac): Likewise.
4349 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4351 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4352 configure.ac): Likewise.
4353 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4354 configure.ac): Likewise.
4355 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4356 configure.ac): Likewise.
4357 * modules/unictype/property-bidi-european-digit (Depends-on,
4358 configure.ac): Likewise.
4359 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4360 configure.ac): Likewise.
4361 * modules/unictype/property-bidi-left-to-right (Depends-on,
4362 configure.ac): Likewise.
4363 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4364 configure.ac): Likewise.
4365 * modules/unictype/property-bidi-other-neutral (Depends-on,
4366 configure.ac): Likewise.
4367 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4369 * modules/unictype/property-bidi-segment-separator (Depends-on,
4370 configure.ac): Likewise.
4371 * modules/unictype/property-bidi-whitespace (Depends-on,
4372 configure.ac): Likewise.
4373 * modules/unictype/property-combining (Depends-on, configure.ac):
4375 * modules/unictype/property-composite (Depends-on, configure.ac):
4377 * modules/unictype/property-currency-symbol (Depends-on,
4378 configure.ac): Likewise.
4379 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4380 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4382 * modules/unictype/property-default-ignorable-code-point (Depends-on,
4383 configure.ac): Likewise.
4384 * modules/unictype/property-deprecated (Depends-on, configure.ac):
4386 * modules/unictype/property-diacritic (Depends-on, configure.ac):
4388 * modules/unictype/property-extender (Depends-on, configure.ac):
4390 * modules/unictype/property-format-control (Depends-on, configure.ac):
4392 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4394 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4396 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4398 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4400 * modules/unictype/property-hyphen (Depends-on, configure.ac):
4402 * modules/unictype/property-id-continue (Depends-on, configure.ac):
4404 * modules/unictype/property-id-start (Depends-on, configure.ac):
4406 * modules/unictype/property-ideographic (Depends-on, configure.ac):
4408 * modules/unictype/property-ids-binary-operator (Depends-on,
4409 configure.ac): Likewise.
4410 * modules/unictype/property-ids-trinary-operator (Depends-on,
4411 configure.ac): Likewise.
4412 * modules/unictype/property-ignorable-control (Depends-on,
4413 configure.ac): Likewise.
4414 * modules/unictype/property-iso-control (Depends-on, configure.ac):
4416 * modules/unictype/property-join-control (Depends-on, configure.ac):
4418 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4420 * modules/unictype/property-line-separator (Depends-on, configure.ac):
4422 * modules/unictype/property-logical-order-exception (Depends-on,
4423 configure.ac): Likewise.
4424 * modules/unictype/property-lowercase (Depends-on, configure.ac):
4426 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4427 * modules/unictype/property-non-break (Depends-on, configure.ac):
4429 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4431 * modules/unictype/property-numeric (Depends-on, configure.ac):
4433 * modules/unictype/property-other-alphabetic (Depends-on,
4434 configure.ac): Likewise.
4435 * modules/unictype/property-other-default-ignorable-code-point
4436 (Depends-on, configure.ac): Likewise.
4437 * modules/unictype/property-other-grapheme-extend (Depends-on,
4438 configure.ac): Likewise.
4439 * modules/unictype/property-other-id-continue (Depends-on,
4440 configure.ac): Likewise.
4441 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4443 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4445 * modules/unictype/property-other-math (Depends-on, configure.ac):
4447 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4449 * modules/unictype/property-paired-punctuation (Depends-on,
4450 configure.ac): Likewise.
4451 * modules/unictype/property-paragraph-separator (Depends-on,
4452 configure.ac): Likewise.
4453 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4455 * modules/unictype/property-pattern-white-space (Depends-on,
4456 configure.ac): Likewise.
4457 * modules/unictype/property-private-use (Depends-on, configure.ac):
4459 * modules/unictype/property-punctuation (Depends-on, configure.ac):
4461 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4463 * modules/unictype/property-radical (Depends-on, configure.ac):
4465 * modules/unictype/property-sentence-terminal (Depends-on,
4466 configure.ac): Likewise.
4467 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4469 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4470 * modules/unictype/property-terminal-punctuation (Depends-on,
4471 configure.ac): Likewise.
4472 * modules/unictype/property-titlecase (Depends-on, configure.ac):
4474 * modules/unictype/property-unassigned-code-value (Depends-on,
4475 configure.ac): Likewise.
4476 * modules/unictype/property-unified-ideograph (Depends-on,
4477 configure.ac): Likewise.
4478 * modules/unictype/property-uppercase (Depends-on, configure.ac):
4480 * modules/unictype/property-variation-selector (Depends-on,
4481 configure.ac): Likewise.
4482 * modules/unictype/property-white-space (Depends-on, configure.ac):
4484 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4486 * modules/unictype/property-xid-start (Depends-on, configure.ac):
4488 * modules/unictype/property-zero-width (Depends-on, configure.ac):
4490 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4491 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4494 2009-12-31 Bruno Haible <bruno@clisp.org>
4496 Remove unnecessary AC_C_INLINE invocation.
4497 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4500 2009-12-31 Jim Meyering <meyering@redhat.com>
4502 maint.mk: don't require explicit gpg_key_ID in cfg.mk
4503 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4504 With this change, we can all remove the gpg_key_ID = ... definition
4505 from our respective cfg.mk files.
4507 maint.mk: create announcement template in ~/, not in /tmp
4508 * top/maint.mk (emit_upload_commands): Adjust.
4509 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4510 Remove temporary file, .ci-msg.
4512 2009-12-31 Eric Blake <ebb9@byu.net>
4514 link-warning: always build headers with link warnings
4515 * modules/arpa_inet (Makefile.am): Always build replacement
4517 * modules/ctype (Makefile.am): Likewise.
4518 * modules/dirent (Makefile.am): Likewise.
4519 * modules/inttypes (Makefile.am): Likewise.
4520 * modules/langinfo (Makefile.am): Likewise.
4521 * modules/locale (Makefile.am): Likewise.
4522 * modules/spawn (Makefile.am): Likewise.
4523 * modules/sys_file (Makefile.am): Likewise.
4524 * modules/sys_ioctl (Makefile.am): Likewise.
4525 * modules/sys_select (Makefile.am): Likewise.
4526 * modules/sys_socket (Makefile.am): Likewise.
4527 * modules/sys_times (Makefile.am): Likewise.
4528 * modules/sys_utsname (Makefile.am): Likewise.
4529 * modules/sys_wait (Makefile.am): Likewise.
4530 * modules/wchar (Makefile.am): Likewise.
4531 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4532 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4533 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4534 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4535 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4537 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4538 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4539 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4541 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4543 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4544 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4545 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4546 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4547 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4548 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4549 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4550 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4551 (gl_WCHAR_H_DEFAULTS): Likewise.
4553 2009-12-31 Eric Blake <ebb9@byu.net>
4555 signal, spawn: use link warnings
4556 * lib/signal.in.h (sigset_t): Make unconditional.
4557 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4558 (sigpending, sigprocmask, sigaction): Add link warnings.
4559 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4560 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4561 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4562 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4563 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4564 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4565 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4566 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4567 (posix_spawn_file_actions_destroy)
4568 (posix_spawn_file_actions_addopen)
4569 (posix_spawn_file_actions_addclose)
4570 (posix_spawn_file_actions_adddup2): Likewise.
4571 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4572 * tests/test-signal.c (main): Enhance test.
4574 spawn: improve wrapper support
4575 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4576 (gl_SPAWN_H_DEFAULTS): New defaults.
4577 * modules/spawn (Makefile.am): Substitute them.
4578 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4579 Only declare if missing or broken.
4581 sys_times, sys_utsname: use include_next
4582 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4584 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4585 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4586 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4587 * modules/sys_times (Depends-on): Add include_next.
4588 (Makefile.am): Substitute additional values.
4589 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4590 * lib/sys_times.in.h (includes): Include native header, if
4592 * lib/sys_utsname.in.h (includes): Likewise.
4593 * tests/test-sys_times.c (main): Enhance test.
4595 fdutimensat: revert prior patch
4596 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4598 Reported by Bruno Haible.
4600 2009-12-30 Eric Blake <ebb9@byu.net>
4602 sys_wait: drop link-warning dependency
4603 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4604 link-warning efforts.
4605 * lib/sys_wait.in.h: Likewise.
4607 fdutimensat: remove bogus dependency
4608 * modules/fdutimensat (Depends-on): Drop inline.
4611 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4613 2009-12-30 Bruno Haible <bruno@clisp.org>
4615 Fix compilation error with Solaris cc.
4616 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4617 * lib/unicase/u16-is-invariant.c: Likewise.
4618 * lib/unicase/u32-is-invariant.c: Likewise.
4619 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4621 2009-12-30 Bruno Haible <bruno@clisp.org>
4624 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4626 Reported by Simon Josefsson <simon@josefsson.org>.
4628 2009-12-30 Bruno Haible <bruno@clisp.org>
4630 Fix compilation error on most platforms.
4631 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4632 Reported by Simon Josefsson <simon@josefsson.org>
4633 and Nelson H. F. Beebe <beebe@math.utah.edu>.
4635 2009-12-30 Eric Blake <ebb9@byu.net>
4637 futimens, utimensat: work around ntfs-3g bug
4638 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4639 a ctime bug is present, and expand workaround to cover ntfs-3g.
4640 * lib/utimens.c (fdutimens, lutimens): Likewise.
4641 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4642 (validate_timespec): Adjust return value.
4643 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4644 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4645 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4647 2009-12-29 Eric Blake <ebb9@byu.net>
4649 link-warning: make usage consistent
4650 * modules/ctype (Depends-on): Add link-warning.
4651 (Makefile.am): Update rules accordingly.
4652 * modules/langinfo (Depends-on, Makefile.am): Likewise.
4653 * modules/locale (Depends-on, Makefile.am): Likewise.
4654 * modules/sys_file (Makefile.am): Likewise.
4655 * modules/getopt-posix (Makefile.am): Delete unused link warning
4657 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4658 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4659 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4660 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4662 stdio: remove unused variables
4663 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4664 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4665 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4667 tests: test more substitute headers
4668 * modules/ctype-tests: New file.
4669 * modules/dirent-tests: Likewise.
4670 * modules/spawn-tests: Likewise.
4671 * modules/sys_file-tests: Likewise.
4672 * modules/sys_ioctl-tests: Likewise.
4673 * modules/sys_wait-tests: Likewise.
4674 * tests/test-ctype.c: Likewise.
4675 * tests/test-dirent.c: Likewise.
4676 * tests/test-spawn.c: Likewise.
4677 * tests/test-sys_file.c: Likewise.
4678 * tests/test-sys_ioctl.c: Likewise.
4679 * tests/test-sys_wait.c: Likewise.
4680 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4681 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4682 whether or not flock is in use.
4684 tests: remove License section from module
4685 * modules/arpa_inet-tests: Remove unneeded section.
4686 * modules/byteswap-tests: Likewise.
4687 * modules/ceilf-tests: Likewise.
4688 * modules/ceill-tests: Likewise.
4689 * modules/crypto/des-tests: Likewise.
4690 * modules/crypto/gc-arcfour-tests: Likewise.
4691 * modules/crypto/gc-arctwo-tests: Likewise.
4692 * modules/crypto/gc-des-tests: Likewise.
4693 * modules/crypto/gc-hmac-md5-tests: Likewise.
4694 * modules/crypto/gc-hmac-sha1-tests: Likewise.
4695 * modules/crypto/gc-md2-tests: Likewise.
4696 * modules/crypto/gc-md4-tests: Likewise.
4697 * modules/crypto/gc-md5-tests: Likewise.
4698 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4699 * modules/crypto/gc-rijndael-tests: Likewise.
4700 * modules/crypto/gc-sha1-tests: Likewise.
4701 * modules/crypto/gc-tests: Likewise.
4702 * modules/crypto/md2-tests: Likewise.
4703 * modules/crypto/md4-tests: Likewise.
4704 * modules/fcntl-h-tests: Likewise.
4705 * modules/floorf-tests: Likewise.
4706 * modules/floorl-tests: Likewise.
4707 * modules/frexp-nolibm-tests: Likewise.
4708 * modules/frexp-tests: Likewise.
4709 * modules/frexpl-nolibm-tests: Likewise.
4710 * modules/frexpl-tests: Likewise.
4711 * modules/getaddrinfo-tests: Likewise.
4712 * modules/inttypes-tests: Likewise.
4713 * modules/isfinite-tests: Likewise.
4714 * modules/isinf-tests: Likewise.
4715 * modules/ldexpl-tests: Likewise.
4716 * modules/locale-tests: Likewise.
4717 * modules/math-tests: Likewise.
4718 * modules/netdb-tests: Likewise.
4719 * modules/netinet_in-tests: Likewise.
4720 * modules/printf-frexp-tests: Likewise.
4721 * modules/printf-frexpl-tests: Likewise.
4722 * modules/priv-set-tests: Likewise.
4723 * modules/random_r-tests: Likewise.
4724 * modules/round-tests: Likewise.
4725 * modules/roundf-tests: Likewise.
4726 * modules/roundl-tests: Likewise.
4727 * modules/search-tests: Likewise.
4728 * modules/select-tests: Likewise.
4729 * modules/signal-tests: Likewise.
4730 * modules/stdbool-tests: Likewise.
4731 * modules/stddef-tests: Likewise.
4732 * modules/stdint-tests: Likewise.
4733 * modules/stdio-tests: Likewise.
4734 * modules/stdlib-tests: Likewise.
4735 * modules/string-tests: Likewise.
4736 * modules/strings-tests: Likewise.
4737 * modules/sys_select-tests: Likewise.
4738 * modules/sys_socket-tests: Likewise.
4739 * modules/sys_stat-tests: Likewise.
4740 * modules/sys_time-tests: Likewise.
4741 * modules/sys_utsname-tests: Likewise.
4742 * modules/sysexits-tests: Likewise.
4743 * modules/time-tests: Likewise.
4744 * modules/trunc-tests: Likewise.
4745 * modules/truncf-tests: Likewise.
4746 * modules/truncl-tests: Likewise.
4747 * modules/tsearch-tests: Likewise.
4748 * modules/unistd-tests: Likewise.
4749 * modules/wchar-tests: Likewise.
4750 * modules/wctype-tests: Likewise.
4752 tests: fix license on several tests
4753 * tests/test-des.c: Update to GPLv3+.
4754 * tests/test-flock.c: Likewise.
4755 * tests/test-fsync.c: Likewise.
4756 * tests/test-futimens.h: Likewise.
4757 * tests/test-gc-arcfour.c: Likewise.
4758 * tests/test-gc-arctwo.c: Likewise.
4759 * tests/test-gc-des.c: Likewise.
4760 * tests/test-gc-hmac-md5.c: Likewise.
4761 * tests/test-gc-hmac-sha1.c: Likewise.
4762 * tests/test-gc-md2.c: Likewise.
4763 * tests/test-gc-md4.c: Likewise.
4764 * tests/test-gc-md5.c: Likewise.
4765 * tests/test-gc-pbkdf2-sha1.c: Likewise.
4766 * tests/test-gc-rijndael.c: Likewise.
4767 * tests/test-gc-sha1.c: Likewise.
4768 * tests/test-gc.c: Likewise.
4769 * tests/test-getcwd.c: Likewise.
4770 * tests/test-link.c: Likewise.
4771 * tests/test-link.h: Likewise.
4772 * tests/test-lutimens.h: Likewise.
4773 * tests/test-md2.c: Likewise.
4774 * tests/test-md4.c: Likewise.
4775 * tests/test-mkdir.h: Likewise.
4776 * tests/test-rename.c: Likewise.
4777 * tests/test-rename.h: Likewise.
4778 * tests/test-safe-alloc.c: Likewise.
4779 * tests/test-utimens-common.h: Likewise.
4780 * tests/test-utimens.h: Likewise.
4782 maint: sync license texts
4783 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4784 * doc/gpl-3.0.texi: Revert copyright year update.
4785 * doc/lgpl-3.0.texi: Likewise.
4787 2009-12-29 Jim Meyering <meyering@redhat.com>
4789 update nearly all FSF copyright year lists to include 2009
4790 The files named by the following are exempted:
4791 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4792 test -f "$dst" && { echo "$dst"; continue; }
4793 test -d "$dst" || continue
4794 echo "$dst"/$(basename "$src")
4796 git ls-files tests/unictype >> exempt
4797 In the remaining files, convert to all-interval notation if
4798 - there is already at least one year interval like 2000-2003
4799 - the file is maintained by me
4800 - the file is in lib/uni*/, where that style already prevails
4801 Otherwise, use update-copyright's default.
4803 2009-12-29 Simon Josefsson <simon@josefsson.org>
4804 and Eric Blake <ebb9@byu.net>
4806 tests: don't require debug system() to pass
4807 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4808 * tests/test-rmdir.h (test_rmdir_func): Likewise.
4809 * tests/test-unlink.h (test_unlink_func): Likewise.
4810 * tests/test-fstatat.c (main): ...into callers.
4811 * tests/test-lstat.c (main): Likewise.
4812 * tests/test-rmdir.c (main): Likewise.
4813 * tests/test-unlink.c (main): Likewise.
4814 * tests/test-unlinkat.c (main): Likewise.
4815 * tests/test-areadlink-with-size.c (main): Don't require a
4816 debug-only system call to pass, aiding cross-testing to mingw.
4817 * tests/test-areadlink.c (main): Likewise.
4818 * tests/test-areadlinkat-with-size.c (main): Likewise.
4819 * tests/test-areadlinkat.c (main): Likewise.
4820 * tests/test-canonicalize-lgpl.c (main): Likewise.
4821 * tests/test-canonicalize.c (main): Likewise.
4822 * tests/test-chown.c (main): Likewise.
4823 * tests/test-fchownat.c (main): Likewise.
4824 * tests/test-lchown.c (main): Likewise.
4825 * tests/test-fdutimensat.c (main): Likewise.
4826 * tests/test-futimens.c (main): Likewise.
4827 * tests/test-link.c (main): Likewise.
4828 * tests/test-linkat.c (main): Likewise.
4829 * tests/test-mkdir.c (main): Likewise.
4830 * tests/test-mkdirat.c (main): Likewise.
4831 * tests/test-mkfifo.c (main): Likewise.
4832 * tests/test-mkfifoat.c (main): Likewise.
4833 * tests/test-mknod.c (main): Likewise.
4834 * tests/test-readlink.c (main): Likewise.
4835 * tests/test-remove.c (main): Likewise.
4836 * tests/test-rename.c (main): Likewise.
4837 * tests/test-renameat.c (main): Likewise.
4838 * tests/test-symlink.c (main): Likewise.
4839 * tests/test-symlinkat.c (main): Likewise.
4840 * tests/test-utimens.c (main): Likewise.
4841 * tests/test-utimensat.c (main): Likewise.
4843 2009-12-29 Simon Josefsson <simon@josefsson.org>
4845 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4846 on $(UNUSED_PARAMETER_H) to avoid build failure.
4848 2009-12-28 Jim Meyering <meyering@redhat.com>
4850 update-copyright: you may specify a max. line length other than 72
4851 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4853 maint: use consistent FSF copyright line syntax
4854 * lib/posixtm.c: Add missing comma in FSF copyright line.
4855 * lib/posixtm.h: Likewise.
4856 * lib/getugroups.c: Add missing ", Inc.".
4858 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4859 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4860 FSF copyright line. Remove trailing blanks.
4862 2009-12-28 Eric Blake <ebb9@byu.net>
4864 test-dup2: reduce dependencies
4865 * modules/cloexec (Configure.ac): Set witness.
4866 * modules/dup2-tests (Depends-on): Drop cloexec.
4867 * tests/test-dup2.c (main): Skip portion of test if cloexec module
4869 Suggested by Bruno Haible.
4871 2009-12-26 Bruno Haible <bruno@clisp.org>
4873 Remove an unneeded dependency.
4874 * modules/fseterr (Depends-on): Remove dup2.
4876 2009-12-26 Eric Blake <ebb9@byu.net>
4878 tests: use macros.h in more places
4879 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4880 (ASSERT_STREAM): Provide default of stderr.
4881 * tests/test-dirent-safer.c: Include macros.h, using alternate
4882 stream for assertions.
4883 * tests/test-dup-safer.c: Likewise.
4884 * tests/test-freopen-safer.c: Likewise.
4885 * tests/test-getopt.c: Likewise.
4886 * tests/test-openat-safer.c: Likewise.
4887 * tests/test-pipe.c: Likewise.
4888 * tests/test-popen-safer.c: Likewise.
4889 * modules/dirent-safer-tests (Files): Include macros.h.
4890 * modules/unistd-safer-tests (Files): Likewise.
4891 * modules/freopen-safer-tests (Files): Likewise.
4892 * modules/getopt-posix-tests (Files): Likewise.
4893 * modules/openat-safer-tests (Files): Likewise.
4894 * modules/pipe-tests (Files): Likewise.
4896 2009-12-26 Bruno Haible <bruno@clisp.org>
4898 javacomp: Portability fix.
4899 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4900 that it also works on Solaris.
4902 2009-12-26 Bruno Haible <bruno@clisp.org>
4904 localename: Fix storage allocation of gl_locale_name_thread's result.
4905 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4906 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4907 all platforms that have 'uselocale'.
4908 (gl_locale_name_thread_unsafe): New function, extracted from
4909 gl_locale_name_thread.
4910 (gl_locale_name_thread): Call struniq on all platforms that have
4912 * tests/test-localename.c (test_locale_name_thread): Check that the
4913 resulting strings are permanently allocated.
4914 * modules/localename-tests (Depends-on): Add strdup.
4916 2009-12-26 Bruno Haible <bruno@clisp.org>
4918 * tests/test-localename.c (categories): Fill in the strings.
4920 2009-12-26 Jim Meyering <meyering@redhat.com>
4922 isdir: complete the removal of m4/isdir.m4
4923 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4925 isdir: clean up, since at least grep still uses it
4926 * lib/isdir.c: Include "isdir.h".
4927 (S_ISDIR): Remove now-unneeded definition.
4928 * modules/isdir (Files): Add lib/isdir.h.
4929 * lib/isdir.h: New file, with declaration.
4930 * m4/isdir.m4: Remove file -- unneeded.
4932 2009-12-25 Bruno Haible <bruno@clisp.org>
4934 selinux-h: Make generated .h files standalone.
4935 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4936 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4937 * lib/se-selinux.in.h: Likewise.
4938 * modules/selinux-h (Depends-on): Add unused-parameter.
4939 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4940 selinux/selinux.h and selinux/context.h.
4941 Suggested by Eric Blake.
4943 2009-12-25 Bruno Haible <bruno@clisp.org>
4945 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4946 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4947 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4948 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4949 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4951 2009-12-24 Bruno Haible <bruno@clisp.org>
4953 openat: Fix warning.
4954 * lib/openat-proc.c: Include <unistd.h>.
4956 2009-12-24 Bruno Haible <bruno@clisp.org>
4958 New module 'unused-parameter'.
4959 * build-aux/unused-parameter.h: New file, extracted from earlier
4961 * modules/unused-parameter: New file.
4962 * lib/unistr.h: Include unused-parameter.h.
4963 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4965 * modules/unistr/base (Depends-on): Add unused-parameter.
4967 2009-12-24 Bruno Haible <bruno@clisp.org>
4969 Add missing dependencies to 'extensions' module.
4970 * m4/extensions.m4: Add comment.
4971 * modules/accept4 (Depends-on): Add extensions.
4972 * modules/dup3 (Depends-on): Likewise.
4973 * modules/fcntl (Depends-on): Likewise.
4974 * modules/futimens (Depends-on): Likewise.
4975 * modules/mknod (Depends-on): Likewise.
4976 * modules/pipe2 (Depends-on): Likewise.
4977 * modules/stat-time (Depends-on): Likewise.
4978 * modules/strcasestr-simple (Depends-on): Likewise.
4979 * modules/strsignal (Depends-on): Likewise.
4980 * modules/utimensat (Depends-on): Likewise.
4981 * modules/localcharset (Depends-on): Likewise. Needed because of
4983 * modules/wcrtomb (Depends-on): Likewise. Needed because of
4985 * modules/wcsnrtombs (Depends-on): Likewise.
4986 * modules/wcsrtombs (Depends-on): Likewise.
4988 2009-12-24 Bruno Haible <bruno@clisp.org>
4990 binary-io: Avoid gcc warning due to SET_BINARY.
4991 * lib/binary-io.h (SET_BINARY): Cast the result to void.
4992 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4994 2009-12-24 Bruno Haible <bruno@clisp.org>
4996 Avoid future namespace pollution on glibc systems.
4997 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4998 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4999 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5002 2009-12-24 Bruno Haible <bruno@clisp.org>
5004 Refactor common macros used in tests.
5005 * tests/macros.h: New file.
5006 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5007 and/or <stdlib.h>, if appropriate.
5008 (ASSERT, SIZEOF): Remove macros.
5009 * tests/test-areadlink-with-size.c: Likewise.
5010 * tests/test-areadlinkat.c: Likewise.
5011 * tests/test-areadlinkat-with-size.c: Likewise.
5012 * tests/test-argmatch.c: Likewise.
5013 * tests/test-argv-iter.c: Likewise.
5014 * tests/test-array-mergesort.c: Likewise.
5015 * tests/test-array_list.c: Likewise.
5016 * tests/test-array_oset.c: Likewise.
5017 * tests/test-avltree_list.c: Likewise.
5018 * tests/test-avltree_oset.c: Likewise.
5019 * tests/test-avltreehash_list.c: Likewise.
5020 * tests/test-base64.c: Likewise.
5021 * tests/test-binary-io.c: Likewise.
5022 * tests/test-bitrotate.c: Likewise.
5023 * tests/test-btowc.c: Likewise.
5024 * tests/test-byteswap.c: Likewise.
5025 * tests/test-c-ctype.c: Likewise.
5026 * tests/test-c-stack.c: Likewise.
5027 * tests/test-c-strcasecmp.c: Likewise.
5028 * tests/test-c-strcasestr.c: Likewise.
5029 * tests/test-c-strncasecmp.c: Likewise.
5030 * tests/test-c-strstr.c: Likewise.
5031 * tests/test-canonicalize-lgpl.c: Likewise.
5032 * tests/test-canonicalize.c: Likewise.
5033 * tests/test-carray_list.c: Likewise.
5034 * tests/test-ceilf1.c: Likewise.
5035 * tests/test-ceilf2.c: Likewise.
5036 * tests/test-ceill.c: Likewise.
5037 * tests/test-chown.c: Likewise.
5038 * tests/test-cloexec.c: Likewise.
5039 * tests/test-copy-acl.c: Likewise.
5040 * tests/test-copy-file.c: Likewise.
5041 * tests/test-count-one-bits.c: Likewise.
5042 * tests/test-dprintf-posix.c: Likewise.
5043 * tests/test-dup2.c: Likewise.
5044 * tests/test-dup3.c: Likewise.
5045 * tests/test-duplocale.c: Likewise.
5046 * tests/test-fbufmode.c: Likewise.
5047 * tests/test-fchdir.c: Likewise.
5048 * tests/test-fchownat.c: Likewise.
5049 * tests/test-fcntl-safer.c: Likewise.
5050 * tests/test-fcntl.c: Likewise.
5051 * tests/test-fdopendir.c: Likewise.
5052 * tests/test-fdutimensat.c: Likewise.
5053 * tests/test-fflush2.c: Likewise.
5054 * tests/test-file-has-acl.c: Likewise.
5055 * tests/test-filevercmp.c: Likewise.
5056 * tests/test-flock.c: Likewise.
5057 * tests/test-floorf1.c: Likewise.
5058 * tests/test-floorf2.c: Likewise.
5059 * tests/test-floorl.c: Likewise.
5060 * tests/test-fnmatch.c: Likewise.
5061 * tests/test-fopen.h: Likewise.
5062 * tests/test-fpending.c: Likewise.
5063 * tests/test-fprintf-posix.c: Likewise.
5064 * tests/test-fpurge.c: Likewise.
5065 * tests/test-freadable.c: Likewise.
5066 * tests/test-freadahead.c: Likewise.
5067 * tests/test-freading.c: Likewise.
5068 * tests/test-freadptr.c: Likewise.
5069 * tests/test-freadptr2.c: Likewise.
5070 * tests/test-freadseek.c: Likewise.
5071 * tests/test-freopen.c: Likewise.
5072 * tests/test-frexp.c: Likewise.
5073 * tests/test-frexpl.c: Likewise.
5074 * tests/test-fseek.c: Likewise.
5075 * tests/test-fseeko.c: Likewise.
5076 * tests/test-fstatat.c: Likewise.
5077 * tests/test-fstrcmp.c: Likewise.
5078 * tests/test-fsync.c: Likewise.
5079 * tests/test-ftell.c: Likewise.
5080 * tests/test-ftello.c: Likewise.
5081 * tests/test-func.c: Likewise.
5082 * tests/test-futimens.c: Likewise.
5083 * tests/test-fwritable.c: Likewise.
5084 * tests/test-fwriting.c: Likewise.
5085 * tests/test-getcwd.c: Likewise.
5086 * tests/test-getdate.c: Likewise.
5087 * tests/test-getdelim.c: Likewise.
5088 * tests/test-getdtablesize.c: Likewise.
5089 * tests/test-getgroups.c: Likewise.
5090 * tests/test-getline.c: Likewise.
5091 * tests/test-getndelim2.c: Likewise.
5092 * tests/test-glob.c: Likewise.
5093 * tests/test-hash.c: Likewise.
5094 * tests/test-i-ring.c: Likewise.
5095 * tests/test-iconv-utf.c: Likewise.
5096 * tests/test-iconv.c: Likewise.
5097 * tests/test-idpriv-drop.c: Likewise.
5098 * tests/test-idpriv-droptemp.c: Likewise.
5099 * tests/test-inet_ntop.c: Likewise.
5100 * tests/test-inet_pton.c: Likewise.
5101 * tests/test-isblank.c: Likewise.
5102 * tests/test-isfinite.c: Likewise.
5103 * tests/test-isinf.c: Likewise.
5104 * tests/test-isnan.c: Likewise.
5105 * tests/test-isnand.h: Likewise.
5106 * tests/test-isnanf.h: Likewise.
5107 * tests/test-isnanl.h: Likewise.
5108 * tests/test-lchown.c: Likewise.
5109 * tests/test-ldexpl.c: Likewise.
5110 * tests/test-link.c: Likewise.
5111 * tests/test-linkat.c: Likewise.
5112 * tests/test-linked_list.c: Likewise.
5113 * tests/test-linkedhash_list.c: Likewise.
5114 * tests/test-localename.c: Likewise.
5115 * tests/test-lseek.c: Likewise.
5116 * tests/test-lstat.c: Likewise.
5117 * tests/test-mbmemcasecmp.c: Likewise.
5118 * tests/test-mbmemcasecoll.c: Likewise.
5119 * tests/test-mbrtowc.c: Likewise.
5120 * tests/test-mbscasecmp.c: Likewise.
5121 * tests/test-mbscasestr1.c: Likewise.
5122 * tests/test-mbscasestr2.c: Likewise.
5123 * tests/test-mbscasestr3.c: Likewise.
5124 * tests/test-mbscasestr4.c: Likewise.
5125 * tests/test-mbschr.c: Likewise.
5126 * tests/test-mbscspn.c: Likewise.
5127 * tests/test-mbsinit.c: Likewise.
5128 * tests/test-mbsncasecmp.c: Likewise.
5129 * tests/test-mbsnrtowcs.c: Likewise.
5130 * tests/test-mbspbrk.c: Likewise.
5131 * tests/test-mbspcasecmp.c: Likewise.
5132 * tests/test-mbsrchr.c: Likewise.
5133 * tests/test-mbsrtowcs.c: Likewise.
5134 * tests/test-mbsspn.c: Likewise.
5135 * tests/test-mbsstr1.c: Likewise.
5136 * tests/test-mbsstr2.c: Likewise.
5137 * tests/test-mbsstr3.c: Likewise.
5138 * tests/test-memchr.c: Likewise.
5139 * tests/test-memchr2.c: Likewise.
5140 * tests/test-memcmp.c: Likewise.
5141 * tests/test-memmem.c: Likewise.
5142 * tests/test-memrchr.c: Likewise.
5143 * tests/test-mkdir.c: Likewise.
5144 * tests/test-mkdirat.c: Likewise.
5145 * tests/test-mkfifo.c: Likewise.
5146 * tests/test-mkfifoat.c: Likewise.
5147 * tests/test-mknod.c: Likewise.
5148 * tests/test-nanosleep.c: Likewise.
5149 * tests/test-nl_langinfo.c: Likewise.
5150 * tests/test-obstack-printf.c: Likewise.
5151 * tests/test-open.c: Likewise.
5152 * tests/test-openat.c: Likewise.
5153 * tests/test-pipe-filter-gi1.c: Likewise.
5154 * tests/test-pipe-filter-gi2-main.c: Likewise.
5155 * tests/test-pipe-filter-ii1.c: Likewise.
5156 * tests/test-pipe-filter-ii2-main.c: Likewise.
5157 * tests/test-pipe2.c: Likewise.
5158 * tests/test-popen.h: Likewise.
5159 * tests/test-posixtm.c: Likewise.
5160 * tests/test-pread.c: Likewise.
5161 * tests/test-printf-frexp.c: Likewise.
5162 * tests/test-printf-frexpl.c: Likewise.
5163 * tests/test-printf-posix.c: Likewise.
5164 * tests/test-priv-set.c: Likewise.
5165 * tests/test-quotearg.c: Likewise.
5166 * tests/test-random_r.c: Likewise.
5167 * tests/test-rawmemchr.c: Likewise.
5168 * tests/test-rbtree_list.c: Likewise.
5169 * tests/test-rbtree_oset.c: Likewise.
5170 * tests/test-rbtreehash_list.c: Likewise.
5171 * tests/test-readlink.c: Likewise.
5172 * tests/test-remove.c: Likewise.
5173 * tests/test-rename.c: Likewise.
5174 * tests/test-renameat.c: Likewise.
5175 * tests/test-rmdir.c: Likewise.
5176 * tests/test-round1.c: Likewise.
5177 * tests/test-roundf1.c: Likewise.
5178 * tests/test-roundl.c: Likewise.
5179 * tests/test-safe-alloc.c: Likewise.
5180 * tests/test-sameacls.c: Likewise.
5181 * tests/test-set-mode-acl.c: Likewise.
5182 * tests/test-setenv.c: Likewise.
5183 * tests/test-sigaction.c: Likewise.
5184 * tests/test-signbit.c: Likewise.
5185 * tests/test-sleep.c: Likewise.
5186 * tests/test-snprintf-posix.c: Likewise.
5187 * tests/test-snprintf.c: Likewise.
5188 * tests/test-sprintf-posix.c: Likewise.
5189 * tests/test-stat-time.c: Likewise.
5190 * tests/test-stat.c: Likewise.
5191 * tests/test-strcasestr.c: Likewise.
5192 * tests/test-strchrnul.c: Likewise.
5193 * tests/test-strerror.c: Likewise.
5194 * tests/test-striconv.c: Likewise.
5195 * tests/test-striconveh.c: Likewise.
5196 * tests/test-striconveha.c: Likewise.
5197 * tests/test-strsignal.c: Likewise.
5198 * tests/test-strstr.c: Likewise.
5199 * tests/test-strtod.c: Likewise.
5200 * tests/test-strverscmp.c: Likewise.
5201 * tests/test-symlink.c: Likewise.
5202 * tests/test-symlinkat.c: Likewise.
5203 * tests/test-trunc1.c: Likewise.
5204 * tests/test-trunc2.c: Likewise.
5205 * tests/test-truncf1.c: Likewise.
5206 * tests/test-truncf2.c: Likewise.
5207 * tests/test-truncl.c: Likewise.
5208 * tests/test-uname.c: Likewise.
5209 * tests/test-unlink.c: Likewise.
5210 * tests/test-unlinkat.c: Likewise.
5211 * tests/test-unsetenv.c: Likewise.
5212 * tests/test-usleep.c: Likewise.
5213 * tests/test-utimens.c: Likewise.
5214 * tests/test-utimensat.c: Likewise.
5215 * tests/test-vasnprintf-posix.c: Likewise.
5216 * tests/test-vasnprintf-posix2.c: Likewise.
5217 * tests/test-vasnprintf.c: Likewise.
5218 * tests/test-vasprintf-posix.c: Likewise.
5219 * tests/test-vasprintf.c: Likewise.
5220 * tests/test-vdprintf-posix.c: Likewise.
5221 * tests/test-vfprintf-posix.c: Likewise.
5222 * tests/test-vprintf-posix.c: Likewise.
5223 * tests/test-vsnprintf-posix.c: Likewise.
5224 * tests/test-vsnprintf.c: Likewise.
5225 * tests/test-vsprintf-posix.c: Likewise.
5226 * tests/test-wcrtomb.c: Likewise.
5227 * tests/test-wcsnrtombs.c: Likewise.
5228 * tests/test-wcsrtombs.c: Likewise.
5229 * tests/test-wctype.c: Likewise.
5230 * tests/test-wcwidth.c: Likewise.
5231 * tests/test-xfprintf-posix.c: Likewise.
5232 * tests/test-xmemdup0.c: Likewise.
5233 * tests/test-xprintf-posix.c: Likewise.
5234 * tests/test-xvasprintf.c: Likewise.
5235 * tests/unicase/test-locale-language.c: Likewise.
5236 * tests/unicase/test-mapping-part1.h: Likewise.
5237 * tests/unicase/test-predicate-part1.h: Likewise.
5238 * tests/unicase/test-u8-casecmp.c: Likewise.
5239 * tests/unicase/test-u8-casecoll.c: Likewise.
5240 * tests/unicase/test-u8-casefold.c: Likewise.
5241 * tests/unicase/test-u8-is-cased.c: Likewise.
5242 * tests/unicase/test-u8-is-casefolded.c: Likewise.
5243 * tests/unicase/test-u8-is-lowercase.c: Likewise.
5244 * tests/unicase/test-u8-is-titlecase.c: Likewise.
5245 * tests/unicase/test-u8-is-uppercase.c: Likewise.
5246 * tests/unicase/test-u8-tolower.c: Likewise.
5247 * tests/unicase/test-u8-totitle.c: Likewise.
5248 * tests/unicase/test-u8-toupper.c: Likewise.
5249 * tests/unicase/test-u16-casecmp.c: Likewise.
5250 * tests/unicase/test-u16-casecoll.c: Likewise.
5251 * tests/unicase/test-u16-casefold.c: Likewise.
5252 * tests/unicase/test-u16-is-cased.c: Likewise.
5253 * tests/unicase/test-u16-is-casefolded.c: Likewise.
5254 * tests/unicase/test-u16-is-lowercase.c: Likewise.
5255 * tests/unicase/test-u16-is-titlecase.c: Likewise.
5256 * tests/unicase/test-u16-is-uppercase.c: Likewise.
5257 * tests/unicase/test-u16-tolower.c: Likewise.
5258 * tests/unicase/test-u16-totitle.c: Likewise.
5259 * tests/unicase/test-u16-toupper.c: Likewise.
5260 * tests/unicase/test-u32-casecmp.c: Likewise.
5261 * tests/unicase/test-u32-casecoll.c: Likewise.
5262 * tests/unicase/test-u32-casefold.c: Likewise.
5263 * tests/unicase/test-u32-is-cased.c: Likewise.
5264 * tests/unicase/test-u32-is-casefolded.c: Likewise.
5265 * tests/unicase/test-u32-is-lowercase.c: Likewise.
5266 * tests/unicase/test-u32-is-titlecase.c: Likewise.
5267 * tests/unicase/test-u32-is-uppercase.c: Likewise.
5268 * tests/unicase/test-u32-tolower.c: Likewise.
5269 * tests/unicase/test-u32-totitle.c: Likewise.
5270 * tests/unicase/test-u32-toupper.c: Likewise.
5271 * tests/unicase/test-ulc-casecmp.c: Likewise.
5272 * tests/unicase/test-ulc-casecoll.c: Likewise.
5273 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5274 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5275 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5276 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5277 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5278 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5279 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5280 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5281 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5282 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5283 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5284 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5285 * tests/unictype/test-bidi_byname.c: Likewise.
5286 * tests/unictype/test-bidi_name.c: Likewise.
5287 * tests/unictype/test-bidi_of.c: Likewise.
5288 * tests/unictype/test-bidi_test.c: Likewise.
5289 * tests/unictype/test-block_list.c: Likewise.
5290 * tests/unictype/test-block_of.c: Likewise.
5291 * tests/unictype/test-block_test.c: Likewise.
5292 * tests/unictype/test-categ_and.c: Likewise.
5293 * tests/unictype/test-categ_and_not.c: Likewise.
5294 * tests/unictype/test-categ_byname.c: Likewise.
5295 * tests/unictype/test-categ_name.c: Likewise.
5296 * tests/unictype/test-categ_none.c: Likewise.
5297 * tests/unictype/test-categ_of.c: Likewise.
5298 * tests/unictype/test-categ_or.c: Likewise.
5299 * tests/unictype/test-categ_test_withtable.c: Likewise.
5300 * tests/unictype/test-combining.c: Likewise.
5301 * tests/unictype/test-decdigit.c: Likewise.
5302 * tests/unictype/test-digit.c: Likewise.
5303 * tests/unictype/test-mirror.c: Likewise.
5304 * tests/unictype/test-numeric.c: Likewise.
5305 * tests/unictype/test-pr_byname.c: Likewise.
5306 * tests/unictype/test-pr_test.c: Likewise.
5307 * tests/unictype/test-predicate-part1.h: Likewise.
5308 * tests/unictype/test-scripts.c: Likewise.
5309 * tests/unictype/test-sy_c_ident.c: Likewise.
5310 * tests/unictype/test-sy_java_ident.c: Likewise.
5311 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5312 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5313 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5314 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5315 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5316 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5317 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5318 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5319 * tests/uninorm/test-canonical-decomposition.c: Likewise.
5320 * tests/uninorm/test-compat-decomposition.c: Likewise.
5321 * tests/uninorm/test-composition.c: Likewise.
5322 * tests/uninorm/test-decomposing-form.c: Likewise.
5323 * tests/uninorm/test-decomposition.c: Likewise.
5324 * tests/uninorm/test-u8-nfc.c: Likewise.
5325 * tests/uninorm/test-u8-nfd.c: Likewise.
5326 * tests/uninorm/test-u8-nfkc.c: Likewise.
5327 * tests/uninorm/test-u8-nfkd.c: Likewise.
5328 * tests/uninorm/test-u8-normcmp.c: Likewise.
5329 * tests/uninorm/test-u8-normcoll.c: Likewise.
5330 * tests/uninorm/test-u16-nfc.c: Likewise.
5331 * tests/uninorm/test-u16-nfd.c: Likewise.
5332 * tests/uninorm/test-u16-nfkc.c: Likewise.
5333 * tests/uninorm/test-u16-nfkd.c: Likewise.
5334 * tests/uninorm/test-u16-normcmp.c: Likewise.
5335 * tests/uninorm/test-u16-normcoll.c: Likewise.
5336 * tests/uninorm/test-u32-nfc.c: Likewise.
5337 * tests/uninorm/test-u32-nfd.c: Likewise.
5338 * tests/uninorm/test-u32-nfkc.c: Likewise.
5339 * tests/uninorm/test-u32-nfkd.c: Likewise.
5340 * tests/uninorm/test-u32-normalize-big.c: Likewise.
5341 * tests/uninorm/test-u32-normcmp.c: Likewise.
5342 * tests/uninorm/test-u32-normcoll.c: Likewise.
5343 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5344 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5345 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5346 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5347 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5348 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5349 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5350 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5351 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5352 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5353 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5354 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5355 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5356 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5357 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5358 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5359 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5360 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5361 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5362 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5363 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5364 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5365 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5366 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5367 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5368 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5369 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5370 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5371 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5372 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5373 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5374 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5375 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5376 * tests/uniwidth/test-u8-strwidth.c: Likewise.
5377 * tests/uniwidth/test-u8-width.c: Likewise.
5378 * tests/uniwidth/test-u16-strwidth.c: Likewise.
5379 * tests/uniwidth/test-u16-width.c: Likewise.
5380 * tests/uniwidth/test-u32-strwidth.c: Likewise.
5381 * tests/uniwidth/test-u32-width.c: Likewise.
5382 * tests/uniwidth/test-uc_width.c: Likewise.
5383 * tests/uniwidth/test-uc_width2.c: Likewise.
5384 * modules/acl-tests (Files): Add tests/macros.h.
5385 * modules/areadlink-tests (Files): Likewise.
5386 * modules/areadlink-with-size-tests (Files): Likewise.
5387 * modules/areadlinkat-tests (Files): Likewise.
5388 * modules/areadlinkat-with-size-tests (Files): Likewise.
5389 * modules/argmatch-tests (Files): Likewise.
5390 * modules/argv-iter-tests (Files): Likewise.
5391 * modules/array-list-tests (Files): Likewise.
5392 * modules/array-mergesort-tests (Files): Likewise.
5393 * modules/array-oset-tests (Files): Likewise.
5394 * modules/avltree-list-tests (Files): Likewise.
5395 * modules/avltree-oset-tests (Files): Likewise.
5396 * modules/avltreehash-list-tests (Files): Likewise.
5397 * modules/base64-tests (Files): Likewise.
5398 * modules/binary-io-tests (Files): Likewise.
5399 * modules/bitrotate-tests (Files): Likewise.
5400 * modules/btowc-tests (Files): Likewise.
5401 * modules/byteswap-tests (Files): Likewise.
5402 * modules/c-ctype-tests (Files): Likewise.
5403 * modules/c-stack-tests (Files): Likewise.
5404 * modules/c-strcase-tests (Files): Likewise.
5405 * modules/c-strcasestr-tests (Files): Likewise.
5406 * modules/c-strstr-tests (Files): Likewise.
5407 * modules/canonicalize-lgpl-tests (Files): Likewise.
5408 * modules/canonicalize-tests (Files): Likewise.
5409 * modules/carray-list-tests (Files): Likewise.
5410 * modules/ceilf-tests (Files): Likewise.
5411 * modules/ceill-tests (Files): Likewise.
5412 * modules/chown-tests (Files): Likewise.
5413 * modules/cloexec-tests (Files): Likewise.
5414 * modules/copy-file-tests (Files): Likewise.
5415 * modules/count-one-bits-tests (Files): Likewise.
5416 * modules/dprintf-posix-tests (Files): Likewise.
5417 * modules/dup2-tests (Files): Likewise.
5418 * modules/dup3-tests (Files): Likewise.
5419 * modules/duplocale-tests (Files): Likewise.
5420 * modules/fbufmode-tests (Files): Likewise.
5421 * modules/fchdir-tests (Files): Likewise.
5422 * modules/fcntl-safer-tests (Files): Likewise.
5423 * modules/fcntl-tests (Files): Likewise.
5424 * modules/fdopendir-tests (Files): Likewise.
5425 * modules/fdutimensat-tests (Files): Likewise.
5426 * modules/fflush-tests (Files): Likewise.
5427 * modules/filevercmp-tests (Files): Likewise.
5428 * modules/flock-tests (Files): Likewise.
5429 * modules/floorf-tests (Files): Likewise.
5430 * modules/floorl-tests (Files): Likewise.
5431 * modules/fnmatch-tests (Files): Likewise.
5432 * modules/fopen-safer-tests (Files): Likewise.
5433 * modules/fopen-tests (Files): Likewise.
5434 * modules/fpending-tests (Files): Likewise.
5435 * modules/fprintf-posix-tests (Files): Likewise.
5436 * modules/fpurge-tests (Files): Likewise.
5437 * modules/freadable-tests (Files): Likewise.
5438 * modules/freadahead-tests (Files): Likewise.
5439 * modules/freading-tests (Files): Likewise.
5440 * modules/freadptr-tests (Files): Likewise.
5441 * modules/freadseek-tests (Files): Likewise.
5442 * modules/freopen-tests (Files): Likewise.
5443 * modules/frexp-nolibm-tests (Files): Likewise.
5444 * modules/frexp-tests (Files): Likewise.
5445 * modules/frexpl-nolibm-tests (Files): Likewise.
5446 * modules/frexpl-tests (Files): Likewise.
5447 * modules/fseek-tests (Files): Likewise.
5448 * modules/fseeko-tests (Files): Likewise.
5449 * modules/fstrcmp-tests (Files): Likewise.
5450 * modules/fsync-tests (Files): Likewise.
5451 * modules/ftell-tests (Files): Likewise.
5452 * modules/ftello-tests (Files): Likewise.
5453 * modules/func-tests (Files): Likewise.
5454 * modules/futimens-tests (Files): Likewise.
5455 * modules/fwritable-tests (Files): Likewise.
5456 * modules/fwriting-tests (Files): Likewise.
5457 * modules/getcwd-tests (Files): Likewise.
5458 * modules/getdate-tests (Files): Likewise.
5459 * modules/getdelim-tests (Files): Likewise.
5460 * modules/getdtablesize-tests (Files): Likewise.
5461 * modules/getgroups-tests (Files): Likewise.
5462 * modules/getline-tests (Files): Likewise.
5463 * modules/getndelim2-tests (Files): Likewise.
5464 * modules/glob-tests (Files): Likewise.
5465 * modules/hash-tests (Files): Likewise.
5466 * modules/i-ring-tests (Files): Likewise.
5467 * modules/iconv-tests (Files): Likewise.
5468 * modules/iconv_open-utf-tests (Files): Likewise.
5469 * modules/idpriv-drop-tests (Files): Likewise.
5470 * modules/idpriv-droptemp-tests (Files): Likewise.
5471 * modules/inet_ntop-tests (Files): Likewise.
5472 * modules/inet_pton-tests (Files): Likewise.
5473 * modules/isblank-tests (Files): Likewise.
5474 * modules/isfinite-tests (Files): Likewise.
5475 * modules/isinf-tests (Files): Likewise.
5476 * modules/isnan-tests (Files): Likewise.
5477 * modules/isnand-nolibm-tests (Files): Likewise.
5478 * modules/isnand-tests (Files): Likewise.
5479 * modules/isnanf-nolibm-tests (Files): Likewise.
5480 * modules/isnanf-tests (Files): Likewise.
5481 * modules/isnanl-nolibm-tests (Files): Likewise.
5482 * modules/isnanl-tests (Files): Likewise.
5483 * modules/lchown-tests (Files): Likewise.
5484 * modules/ldexpl-tests (Files): Likewise.
5485 * modules/link-tests (Files): Likewise.
5486 * modules/linkat-tests (Files): Likewise.
5487 * modules/linked-list-tests (Files): Likewise.
5488 * modules/linkedhash-list-tests (Files): Likewise.
5489 * modules/localename-tests (Files): Likewise.
5490 * modules/lseek-tests (Files): Likewise.
5491 * modules/lstat-tests (Files): Likewise.
5492 * modules/mbmemcasecmp-tests (Files): Likewise.
5493 * modules/mbmemcasecoll-tests (Files): Likewise.
5494 * modules/mbrtowc-tests (Files): Likewise.
5495 * modules/mbscasecmp-tests (Files): Likewise.
5496 * modules/mbscasestr-tests (Files): Likewise.
5497 * modules/mbschr-tests (Files): Likewise.
5498 * modules/mbscspn-tests (Files): Likewise.
5499 * modules/mbsinit-tests (Files): Likewise.
5500 * modules/mbsncasecmp-tests (Files): Likewise.
5501 * modules/mbsnrtowcs-tests (Files): Likewise.
5502 * modules/mbspbrk-tests (Files): Likewise.
5503 * modules/mbspcasecmp-tests (Files): Likewise.
5504 * modules/mbsrchr-tests (Files): Likewise.
5505 * modules/mbsrtowcs-tests (Files): Likewise.
5506 * modules/mbsspn-tests (Files): Likewise.
5507 * modules/mbsstr-tests (Files): Likewise.
5508 * modules/memchr-tests (Files): Likewise.
5509 * modules/memchr2-tests (Files): Likewise.
5510 * modules/memcmp-tests (Files): Likewise.
5511 * modules/memmem-tests (Files): Likewise.
5512 * modules/memrchr-tests (Files): Likewise.
5513 * modules/mkdir-tests (Files): Likewise.
5514 * modules/mkfifo-tests (Files): Likewise.
5515 * modules/mkfifoat-tests (Files): Likewise.
5516 * modules/mknod-tests (Files): Likewise.
5517 * modules/nanosleep-tests (Files): Likewise.
5518 * modules/nl_langinfo-tests (Files): Likewise.
5519 * modules/obstack-printf-tests (Files): Likewise.
5520 * modules/open-tests (Files): Likewise.
5521 * modules/openat-tests (Files): Likewise.
5522 * modules/pipe-filter-gi-tests (Files): Likewise.
5523 * modules/pipe-filter-ii-tests (Files): Likewise.
5524 * modules/pipe2-tests (Files): Likewise.
5525 * modules/popen-safer-tests (Files): Likewise.
5526 * modules/popen-tests (Files): Likewise.
5527 * modules/posixtm-tests (Files): Likewise.
5528 * modules/pread-tests (Files): Likewise.
5529 * modules/printf-frexp-tests (Files): Likewise.
5530 * modules/printf-frexpl-tests (Files): Likewise.
5531 * modules/printf-posix-tests (Files): Likewise.
5532 * modules/priv-set-tests (Files): Likewise.
5533 * modules/quotearg-tests (Files): Likewise.
5534 * modules/random_r-tests (Files): Likewise.
5535 * modules/rawmemchr-tests (Files): Likewise.
5536 * modules/rbtree-list-tests (Files): Likewise.
5537 * modules/rbtree-oset-tests (Files): Likewise.
5538 * modules/rbtreehash-list-tests (Files): Likewise.
5539 * modules/readlink-tests (Files): Likewise.
5540 * modules/remove-tests (Files): Likewise.
5541 * modules/rename-tests (Files): Likewise.
5542 * modules/renameat-tests (Files): Likewise.
5543 * modules/rmdir-tests (Files): Likewise.
5544 * modules/round-tests (Files): Likewise.
5545 * modules/roundf-tests (Files): Likewise.
5546 * modules/roundl-tests (Files): Likewise.
5547 * modules/safe-alloc-tests (Files): Likewise.
5548 * modules/setenv-tests (Files): Likewise.
5549 * modules/sigaction-tests (Files): Likewise.
5550 * modules/signbit-tests (Files): Likewise.
5551 * modules/sleep-tests (Files): Likewise.
5552 * modules/snprintf-posix-tests (Files): Likewise.
5553 * modules/snprintf-tests (Files): Likewise.
5554 * modules/sprintf-posix-tests (Files): Likewise.
5555 * modules/stat-tests (Files): Likewise.
5556 * modules/stat-time-tests (Files): Likewise.
5557 * modules/strcasestr-tests (Files): Likewise.
5558 * modules/strchrnul-tests (Files): Likewise.
5559 * modules/strerror-tests (Files): Likewise.
5560 * modules/striconv-tests (Files): Likewise.
5561 * modules/striconveh-tests (Files): Likewise.
5562 * modules/striconveha-tests (Files): Likewise.
5563 * modules/strsignal-tests (Files): Likewise.
5564 * modules/strstr-tests (Files): Likewise.
5565 * modules/strtod-tests (Files): Likewise.
5566 * modules/strverscmp-tests (Files): Likewise.
5567 * modules/symlink-tests (Files): Likewise.
5568 * modules/symlinkat-tests (Files): Likewise.
5569 * modules/trunc-tests (Files): Likewise.
5570 * modules/truncf-tests (Files): Likewise.
5571 * modules/truncl-tests (Files): Likewise.
5572 * modules/uname-tests (Files): Likewise.
5573 * modules/unicase/cased-tests (Files): Likewise.
5574 * modules/unicase/ignorable-tests (Files): Likewise.
5575 * modules/unicase/locale-language-tests (Files): Likewise.
5576 * modules/unicase/tolower-tests (Files): Likewise.
5577 * modules/unicase/totitle-tests (Files): Likewise.
5578 * modules/unicase/toupper-tests (Files): Likewise.
5579 * modules/unicase/u8-casecmp-tests (Files): Likewise.
5580 * modules/unicase/u8-casecoll-tests (Files): Likewise.
5581 * modules/unicase/u8-casefold-tests (Files): Likewise.
5582 * modules/unicase/u8-is-cased-tests (Files): Likewise.
5583 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5584 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5585 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5586 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5587 * modules/unicase/u8-tolower-tests (Files): Likewise.
5588 * modules/unicase/u8-totitle-tests (Files): Likewise.
5589 * modules/unicase/u8-toupper-tests (Files): Likewise.
5590 * modules/unicase/u16-casecmp-tests (Files): Likewise.
5591 * modules/unicase/u16-casecoll-tests (Files): Likewise.
5592 * modules/unicase/u16-casefold-tests (Files): Likewise.
5593 * modules/unicase/u16-is-cased-tests (Files): Likewise.
5594 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5595 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5596 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5597 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5598 * modules/unicase/u16-tolower-tests (Files): Likewise.
5599 * modules/unicase/u16-totitle-tests (Files): Likewise.
5600 * modules/unicase/u16-toupper-tests (Files): Likewise.
5601 * modules/unicase/u32-casecmp-tests (Files): Likewise.
5602 * modules/unicase/u32-casecoll-tests (Files): Likewise.
5603 * modules/unicase/u32-casefold-tests (Files): Likewise.
5604 * modules/unicase/u32-is-cased-tests (Files): Likewise.
5605 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5606 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5607 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5608 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5609 * modules/unicase/u32-tolower-tests (Files): Likewise.
5610 * modules/unicase/u32-totitle-tests (Files): Likewise.
5611 * modules/unicase/u32-toupper-tests (Files): Likewise.
5612 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5613 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5614 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5615 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5616 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5617 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5618 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5619 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5620 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5621 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5622 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5623 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5624 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5625 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5626 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5627 * modules/unictype/bidicategory-name-tests (Files): Likewise.
5628 * modules/unictype/bidicategory-of-tests (Files): Likewise.
5629 * modules/unictype/bidicategory-test-tests (Files): Likewise.
5630 * modules/unictype/block-list-tests (Files): Likewise.
5631 * modules/unictype/block-of-tests (Files): Likewise.
5632 * modules/unictype/block-test-tests (Files): Likewise.
5633 * modules/unictype/category-C-tests (Files): Likewise.
5634 * modules/unictype/category-Cc-tests (Files): Likewise.
5635 * modules/unictype/category-Cf-tests (Files): Likewise.
5636 * modules/unictype/category-Cn-tests (Files): Likewise.
5637 * modules/unictype/category-Co-tests (Files): Likewise.
5638 * modules/unictype/category-Cs-tests (Files): Likewise.
5639 * modules/unictype/category-L-tests (Files): Likewise.
5640 * modules/unictype/category-Ll-tests (Files): Likewise.
5641 * modules/unictype/category-Lm-tests (Files): Likewise.
5642 * modules/unictype/category-Lo-tests (Files): Likewise.
5643 * modules/unictype/category-Lt-tests (Files): Likewise.
5644 * modules/unictype/category-Lu-tests (Files): Likewise.
5645 * modules/unictype/category-M-tests (Files): Likewise.
5646 * modules/unictype/category-Mc-tests (Files): Likewise.
5647 * modules/unictype/category-Me-tests (Files): Likewise.
5648 * modules/unictype/category-Mn-tests (Files): Likewise.
5649 * modules/unictype/category-N-tests (Files): Likewise.
5650 * modules/unictype/category-Nd-tests (Files): Likewise.
5651 * modules/unictype/category-Nl-tests (Files): Likewise.
5652 * modules/unictype/category-No-tests (Files): Likewise.
5653 * modules/unictype/category-P-tests (Files): Likewise.
5654 * modules/unictype/category-Pc-tests (Files): Likewise.
5655 * modules/unictype/category-Pd-tests (Files): Likewise.
5656 * modules/unictype/category-Pe-tests (Files): Likewise.
5657 * modules/unictype/category-Pf-tests (Files): Likewise.
5658 * modules/unictype/category-Pi-tests (Files): Likewise.
5659 * modules/unictype/category-Po-tests (Files): Likewise.
5660 * modules/unictype/category-Ps-tests (Files): Likewise.
5661 * modules/unictype/category-S-tests (Files): Likewise.
5662 * modules/unictype/category-Sc-tests (Files): Likewise.
5663 * modules/unictype/category-Sk-tests (Files): Likewise.
5664 * modules/unictype/category-Sm-tests (Files): Likewise.
5665 * modules/unictype/category-So-tests (Files): Likewise.
5666 * modules/unictype/category-Z-tests (Files): Likewise.
5667 * modules/unictype/category-Zl-tests (Files): Likewise.
5668 * modules/unictype/category-Zp-tests (Files): Likewise.
5669 * modules/unictype/category-Zs-tests (Files): Likewise.
5670 * modules/unictype/category-and-not-tests (Files): Likewise.
5671 * modules/unictype/category-and-tests (Files): Likewise.
5672 * modules/unictype/category-byname-tests (Files): Likewise.
5673 * modules/unictype/category-name-tests (Files): Likewise.
5674 * modules/unictype/category-none-tests (Files): Likewise.
5675 * modules/unictype/category-of-tests (Files): Likewise.
5676 * modules/unictype/category-or-tests (Files): Likewise.
5677 * modules/unictype/category-test-withtable-tests (Files): Likewise.
5678 * modules/unictype/combining-class-tests (Files): Likewise.
5679 * modules/unictype/ctype-alnum-tests (Files): Likewise.
5680 * modules/unictype/ctype-alpha-tests (Files): Likewise.
5681 * modules/unictype/ctype-blank-tests (Files): Likewise.
5682 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5683 * modules/unictype/ctype-digit-tests (Files): Likewise.
5684 * modules/unictype/ctype-graph-tests (Files): Likewise.
5685 * modules/unictype/ctype-lower-tests (Files): Likewise.
5686 * modules/unictype/ctype-print-tests (Files): Likewise.
5687 * modules/unictype/ctype-punct-tests (Files): Likewise.
5688 * modules/unictype/ctype-space-tests (Files): Likewise.
5689 * modules/unictype/ctype-upper-tests (Files): Likewise.
5690 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5691 * modules/unictype/decimal-digit-tests (Files): Likewise.
5692 * modules/unictype/digit-tests (Files): Likewise.
5693 * modules/unictype/mirror-tests (Files): Likewise.
5694 * modules/unictype/numeric-tests (Files): Likewise.
5695 * modules/unictype/property-alphabetic-tests (Files): Likewise.
5696 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5697 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5698 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5700 * modules/unictype/property-bidi-block-separator-tests (Files):
5702 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5704 * modules/unictype/property-bidi-common-separator-tests (Files):
5706 * modules/unictype/property-bidi-control-tests (Files): Likewise.
5707 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5709 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5711 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5713 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5714 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5716 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5717 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5719 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5720 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5721 * modules/unictype/property-bidi-segment-separator-tests (Files):
5723 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5724 * modules/unictype/property-byname-tests (Files): Likewise.
5725 * modules/unictype/property-combining-tests (Files): Likewise.
5726 * modules/unictype/property-composite-tests (Files): Likewise.
5727 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5728 * modules/unictype/property-dash-tests (Files): Likewise.
5729 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5730 * modules/unictype/property-default-ignorable-code-point-tests (Files):
5732 * modules/unictype/property-deprecated-tests (Files): Likewise.
5733 * modules/unictype/property-diacritic-tests (Files): Likewise.
5734 * modules/unictype/property-extender-tests (Files): Likewise.
5735 * modules/unictype/property-format-control-tests (Files): Likewise.
5736 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5737 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5738 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5739 * modules/unictype/property-hex-digit-tests (Files): Likewise.
5740 * modules/unictype/property-hyphen-tests (Files): Likewise.
5741 * modules/unictype/property-id-continue-tests (Files): Likewise.
5742 * modules/unictype/property-id-start-tests (Files): Likewise.
5743 * modules/unictype/property-ideographic-tests (Files): Likewise.
5744 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5745 * modules/unictype/property-ids-trinary-operator-tests (Files):
5747 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5748 * modules/unictype/property-iso-control-tests (Files): Likewise.
5749 * modules/unictype/property-join-control-tests (Files): Likewise.
5750 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5751 * modules/unictype/property-line-separator-tests (Files): Likewise.
5752 * modules/unictype/property-logical-order-exception-tests (Files):
5754 * modules/unictype/property-lowercase-tests (Files): Likewise.
5755 * modules/unictype/property-math-tests (Files): Likewise.
5756 * modules/unictype/property-non-break-tests (Files): Likewise.
5757 * modules/unictype/property-not-a-character-tests (Files): Likewise.
5758 * modules/unictype/property-numeric-tests (Files): Likewise.
5759 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5760 * modules/unictype/property-other-default-ignorable-code-point-tests
5762 * modules/unictype/property-other-grapheme-extend-tests (Files):
5764 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5765 * modules/unictype/property-other-id-start-tests (Files): Likewise.
5766 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5767 * modules/unictype/property-other-math-tests (Files): Likewise.
5768 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5769 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5770 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5771 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5772 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5773 * modules/unictype/property-private-use-tests (Files): Likewise.
5774 * modules/unictype/property-punctuation-tests (Files): Likewise.
5775 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5776 * modules/unictype/property-radical-tests (Files): Likewise.
5777 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5778 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5779 * modules/unictype/property-space-tests (Files): Likewise.
5780 * modules/unictype/property-terminal-punctuation-tests (Files):
5782 * modules/unictype/property-test-tests (Files): Likewise.
5783 * modules/unictype/property-titlecase-tests (Files): Likewise.
5784 * modules/unictype/property-unassigned-code-value-tests (Files):
5786 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5787 * modules/unictype/property-uppercase-tests (Files): Likewise.
5788 * modules/unictype/property-variation-selector-tests (Files): Likewise.
5789 * modules/unictype/property-white-space-tests (Files): Likewise.
5790 * modules/unictype/property-xid-continue-tests (Files): Likewise.
5791 * modules/unictype/property-xid-start-tests (Files): Likewise.
5792 * modules/unictype/property-zero-width-tests (Files): Likewise.
5793 * modules/unictype/scripts-tests (Files): Likewise.
5794 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5795 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5796 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5797 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5798 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5799 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5800 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5801 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5802 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5803 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5804 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5805 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5806 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5807 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5808 * modules/uninorm/composition-tests (Files): Likewise.
5809 * modules/uninorm/decomposing-form-tests (Files): Likewise.
5810 * modules/uninorm/decomposition-tests (Files): Likewise.
5811 * modules/uninorm/filter-tests (Files): Likewise.
5812 * modules/uninorm/nfc-tests (Files): Likewise.
5813 * modules/uninorm/nfd-tests (Files): Likewise.
5814 * modules/uninorm/nfkc-tests (Files): Likewise.
5815 * modules/uninorm/nfkd-tests (Files): Likewise.
5816 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5817 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5818 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5819 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5820 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5821 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5822 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5823 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5824 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5825 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5826 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5827 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5828 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5829 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5830 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5831 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5832 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5833 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5834 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5835 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5836 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5837 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5838 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5839 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5840 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5841 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5842 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5843 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5844 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5845 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5846 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5847 * modules/uniwidth/u8-width-tests (Files): Likewise.
5848 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5849 * modules/uniwidth/u16-width-tests (Files): Likewise.
5850 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5851 * modules/uniwidth/u32-width-tests (Files): Likewise.
5852 * modules/uniwidth/width-tests (Files): Likewise.
5853 * modules/unlink-tests (Files): Likewise.
5854 * modules/unsetenv-tests (Files): Likewise.
5855 * modules/usleep-tests (Files): Likewise.
5856 * modules/utimens-tests (Files): Likewise.
5857 * modules/utimensat-tests (Files): Likewise.
5858 * modules/vasnprintf-posix-tests (Files): Likewise.
5859 * modules/vasnprintf-tests (Files): Likewise.
5860 * modules/vasprintf-posix-tests (Files): Likewise.
5861 * modules/vasprintf-tests (Files): Likewise.
5862 * modules/vdprintf-posix-tests (Files): Likewise.
5863 * modules/vfprintf-posix-tests (Files): Likewise.
5864 * modules/vprintf-posix-tests (Files): Likewise.
5865 * modules/vsnprintf-posix-tests (Files): Likewise.
5866 * modules/vsnprintf-tests (Files): Likewise.
5867 * modules/vsprintf-posix-tests (Files): Likewise.
5868 * modules/wcrtomb-tests (Files): Likewise.
5869 * modules/wcsnrtombs-tests (Files): Likewise.
5870 * modules/wcsrtombs-tests (Files): Likewise.
5871 * modules/wctype-tests (Files): Likewise.
5872 * modules/wcwidth-tests (Files): Likewise.
5873 * modules/xmemdup0-tests (Files): Likewise.
5874 * modules/xprintf-posix-tests (Files): Likewise.
5875 * modules/xvasprintf-tests (Files): Likewise.
5877 2009-12-24 Eric Blake <ebb9@byu.net>
5879 test-nanosleep: fix typo
5880 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5882 Reported by Bruno Haible.
5884 2009-12-24 Bruno Haible <bruno@clisp.org>
5886 Reduce namespace pollution on glibc systems.
5887 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5888 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5890 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5891 <getopt.h> on glibc systems.
5892 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5894 * lib/fcntl.c: Include <unistd.h> here instead.
5896 2009-12-24 Bruno Haible <bruno@clisp.org>
5898 * lib/stdlib.in.h (includes): Fix typo in today's commit.
5900 2009-12-24 Eric Blake <ebb9@byu.net>
5902 tests: add signature checks
5903 * tests/signature.h (SIGNATURE_CHECK): New file.
5904 * modules/atexit-tests (Files): Use it.
5905 * modules/btowc-tests (Files): Likewise.
5906 * modules/canonicalize-lgpl-tests (Files): Likewise.
5907 * modules/ceilf-tests (Files): Likewise.
5908 * modules/ceill-tests (Files): Likewise.
5909 * modules/chown-tests (Files): Likewise.
5910 * modules/dprintf-posix-tests (Files): Likewise.
5911 * modules/dup2-tests (Files): Likewise.
5912 * modules/dup3-tests (Files): Likewise.
5913 * modules/duplocale-tests (Files): Likewise.
5914 * modules/fchdir-tests (Files): Likewise.
5915 * modules/fcntl-tests (Files): Likewise.
5916 * modules/fdopendir-tests (Files): Likewise.
5917 * modules/fflush-tests (Files): Likewise.
5918 * modules/flock-tests (Files): Likewise.
5919 * modules/floorf-tests (Files): Likewise.
5920 * modules/floorl-tests (Files): Likewise.
5921 * modules/fnmatch-tests (Files): Likewise.
5922 * modules/fopen-tests (Files): Likewise.
5923 * modules/fprintf-posix-tests (Files): Likewise.
5924 * modules/freopen-tests (Files): Likewise.
5925 * modules/frexp-nolibm-tests (Files): Likewise.
5926 * modules/frexp-tests (Files): Likewise.
5927 * modules/frexpl-nolibm-tests (Files): Likewise.
5928 * modules/frexpl-tests (Files): Likewise.
5929 * modules/fseek-tests (Files): Likewise.
5930 * modules/fseeko-tests (Files): Likewise.
5931 * modules/fsync-tests (Files): Likewise.
5932 * modules/ftell-tests (Files): Likewise.
5933 * modules/ftello-tests (Files): Likewise.
5934 * modules/futimens-tests (Files): Likewise.
5935 * modules/getaddrinfo-tests (Files): Likewise.
5936 * modules/getcwd-tests (Files): Likewise.
5937 * modules/getdelim-tests (Files): Likewise.
5938 * modules/getdtablesize-tests (Files): Likewise.
5939 * modules/getgroups-tests (Files): Likewise.
5940 * modules/gethostname-tests (Files): Likewise.
5941 * modules/getline-tests (Files): Likewise.
5942 * modules/getopt-posix-tests (Files): Likewise.
5943 * modules/gettimeofday-tests (Files): Likewise.
5944 * modules/glob-tests (Files): Likewise.
5945 * modules/iconv-tests (Files): Likewise.
5946 * modules/inet_ntop-tests (Files): Likewise.
5947 * modules/inet_pton-tests (Files): Likewise.
5948 * modules/isblank-tests (Files): Likewise.
5949 * modules/lchown-tests (Files): Likewise.
5950 * modules/ldexpl-tests (Files): Likewise.
5951 * modules/link-tests (Files): Likewise.
5952 * modules/linkat-tests (Files): Likewise.
5953 * modules/lseek-tests (Files): Likewise.
5954 * modules/lstat-tests (Files): Likewise.
5955 * modules/mbrtowc-tests (Files): Likewise.
5956 * modules/mbsinit-tests (Files): Likewise.
5957 * modules/mbsnrtowcs-tests (Files): Likewise.
5958 * modules/mbsrtowcs-tests (Files): Likewise.
5959 * modules/memchr-tests (Files): Likewise.
5960 * modules/memcmp-tests (Files): Likewise.
5961 * modules/memmem-tests (Files): Likewise.
5962 * modules/memrchr-tests (Files): Likewise.
5963 * modules/mkdir-tests (Files): Likewise.
5964 * modules/mkfifo-tests (Files): Likewise.
5965 * modules/mkfifoat-tests (Files): Likewise.
5966 * modules/mknod-tests (Files): Likewise.
5967 * modules/nanosleep-tests (Files): Likewise.
5968 * modules/nl_langinfo-tests (Files): Likewise.
5969 * modules/obstack-printf-tests (Files): Likewise.
5970 * modules/open-tests (Files): Likewise.
5971 * modules/openat-tests (Files): Likewise.
5972 * modules/perror-tests (Files): Likewise.
5973 * modules/pipe2-tests (Files): Likewise.
5974 * modules/poll-tests (Files): Likewise.
5975 * modules/popen-tests (Files): Likewise.
5976 * modules/posix_spawn-tests (Files): Likewise.
5977 * modules/posix_spawnp-tests (Files): Likewise.
5978 * modules/pread-tests (Files): Likewise.
5979 * modules/printf-posix-tests (Files): Likewise.
5980 * modules/pty-tests (Files): Likewise.
5981 * modules/random_r-tests (Files): Likewise.
5982 * modules/rawmemchr-tests (Files): Likewise.
5983 * modules/readlink-tests (Files): Likewise.
5984 * modules/remove-tests (Files): Likewise.
5985 * modules/rename-tests (Files): Likewise.
5986 * modules/renameat-tests (Files): Likewise.
5987 * modules/rmdir-tests (Files): Likewise.
5988 * modules/round-tests (Files): Likewise.
5989 * modules/roundf-tests (Files): Likewise.
5990 * modules/roundl-tests (Files): Likewise.
5991 * modules/select-tests (Files): Likewise.
5992 * modules/setenv-tests (Files): Likewise.
5993 * modules/sigaction-tests (Files): Likewise.
5994 * modules/sleep-tests (Files): Likewise.
5995 * modules/snprintf-posix-tests (Files): Likewise.
5996 * modules/snprintf-tests (Files): Likewise.
5997 * modules/sprintf-posix-tests (Files): Likewise.
5998 * modules/stat-tests (Files): Likewise.
5999 * modules/strcasestr-tests (Files): Likewise.
6000 * modules/strchrnul-tests (Files): Likewise.
6001 * modules/strerror-tests (Files): Likewise.
6002 * modules/strsignal-tests (Files): Likewise.
6003 * modules/strstr-tests (Files): Likewise.
6004 * modules/strtod-tests (Files): Likewise.
6005 * modules/strverscmp-tests (Files): Likewise.
6006 * modules/symlink-tests (Files): Likewise.
6007 * modules/symlinkat-tests (Files): Likewise.
6008 * modules/times-tests (Files): Likewise.
6009 * modules/trunc-tests (Files): Likewise.
6010 * modules/truncf-tests (Files): Likewise.
6011 * modules/truncl-tests (Files): Likewise.
6012 * modules/tsearch-tests (Files): Likewise.
6013 * modules/uname-tests (Files): Likewise.
6014 * modules/unlink-tests (Files): Likewise.
6015 * modules/unsetenv-tests (Files): Likewise.
6016 * modules/usleep-tests (Files): Likewise.
6017 * modules/utimensat-tests (Files): Likewise.
6018 * modules/vasprintf-tests (Files): Likewise.
6019 * modules/vdprintf-posix-tests (Files): Likewise.
6020 * modules/vfprintf-posix-tests (Files): Likewise.
6021 * modules/vprintf-posix-tests (Files): Likewise.
6022 * modules/vsnprintf-posix-tests (Files): Likewise.
6023 * modules/vsnprintf-tests (Files): Likewise.
6024 * modules/vsprintf-posix-tests (Files): Likewise.
6025 * modules/wcrtomb-tests (Files): Likewise.
6026 * modules/wcsnrtombs-tests (Files): Likewise.
6027 * modules/wcsrtombs-tests (Files): Likewise.
6028 * modules/wcwidth-tests (Files): Likewise.
6029 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6030 * tests/test-isinf.c (isinf): Likewise.
6031 * tests/test-isnan.c (isnan): Likewise.
6032 * tests/test-signbit.c (signbit): Likewise.
6033 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6034 declaration, either as macro or with correct signature.
6035 (select): Ensure function under test is declared with correct
6036 signature in correct header.
6037 * tests/test-atexit.c (atexit): Likewise.
6038 * tests/test-btowc.c (btowc): Likewise.
6039 * tests/test-canonicalize-lgpl.c (realpath)
6040 (canonicalize_file_name): Likewise.
6041 * tests/test-ceilf1.c (ceilf): Likewise.
6042 * tests/test-ceill.c (ceill): Likewise.
6043 * tests/test-chown.c (chown): Likewise.
6044 * tests/test-dprintf-posix.c (dprintf): Likewise.
6045 * tests/test-dup2.c (dup2): Likewise.
6046 * tests/test-dup3.c (dup3): Likewise.
6047 * tests/test-duplocale.c (duplocale): Likewise.
6048 * tests/test-fchdir.c (fchdir): Likewise.
6049 * tests/test-fchownat.c (fchownat): Likewise.
6050 * tests/test-fcntl.c (fcntl): Likewise.
6051 * tests/test-fdopendir.c (fdopendir): Likewise.
6052 * tests/test-fflush.c (fflush): Likewise.
6053 * tests/test-flock.c (flock): Likewise.
6054 * tests/test-floorf1.c (floorf): Likewise.
6055 * tests/test-floorl.c (floorl): Likewise.
6056 * tests/test-fnmatch.c (fnmatch): Likewise.
6057 * tests/test-fopen.c (fopen): Likewise.
6058 * tests/test-fprintf-posix.c (fprintf): Likewise.
6059 * tests/test-freopen.c (freopen): Likewise.
6060 * tests/test-frexp.c (frexp): Likewise.
6061 * tests/test-frexpl.c (frexpl): Likewise.
6062 * tests/test-fseek.c (fseek): Likewise.
6063 * tests/test-fseeko.c (fseeko): Likewise.
6064 * tests/test-fstatat.c (fstatat): Likewise.
6065 * tests/test-fsync.c (fsync): Likewise.
6066 * tests/test-ftell.c (ftell): Likewise.
6067 * tests/test-ftello.c (ftello): Likewise.
6068 * tests/test-futimens.c (futimens): Likewise.
6069 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6070 (gai_strerror): Likewise.
6071 * tests/test-getcwd.c (getcwd): Likewise.
6072 * tests/test-getdelim.c (getdelim): Likewise.
6073 * tests/test-getdtablesize.c (getdtablesize): Likewise.
6074 * tests/test-getgroups.c (getgroups): Likewise.
6075 * tests/test-gethostname.c (gethostname): Likewise.
6076 * tests/test-getline.c (getline): Likewise.
6077 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6079 * tests/test-gettimeofday.c (gettimeofday): Likewise.
6080 * tests/test-glob.c (glob, globfree): Likewise.
6081 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6082 * tests/test-inet_ntop.c (inet_ntop): Likewise.
6083 * tests/test-inet_pton.c (inet_pton): Likewise.
6084 * tests/test-isblank.c (isblank): Likewise.
6085 * tests/test-lchown.c (lchown): Likewise.
6086 * tests/test-ldexpl.c (ldexpl): Likewise.
6087 * tests/test-link.c (link): Likewise.
6088 * tests/test-linkat.c (linkat): Likewise.
6089 * tests/test-lseek.c (lseek): Likewise.
6090 * tests/test-lstat.c (lstat): Likewise.
6091 * tests/test-mbrtowc.c (mbrtowc): Likewise.
6092 * tests/test-mbsinit.c (mbsinit): Likewise.
6093 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6094 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6095 * tests/test-memchr.c (memchr): Likewise.
6096 * tests/test-memcmp.c (memcmp): Likewise.
6097 * tests/test-memmem.c (memmem): Likewise.
6098 * tests/test-memrchr.c (memrchr): Likewise.
6099 * tests/test-mkdir.c (mkdir): Likewise.
6100 * tests/test-mkdirat.c (mkdirat): Likewise.
6101 * tests/test-mkfifo.c (mkfifo): Likewise.
6102 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6103 * tests/test-mknod.c (mknod): Likewise.
6104 * tests/test-nanosleep.c (nanosleep): Likewise.
6105 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6106 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6108 * tests/test-open.c (open): Likewise.
6109 * tests/test-openat.c (openat): Likewise.
6110 * tests/test-perror.c (perror): Likewise.
6111 * tests/test-pipe2.c (pipe2): Likewise.
6112 * tests/test-poll.c (poll): Likewise.
6113 * tests/test-popen.c (popen, pclose): Likewise.
6114 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6115 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6116 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6117 (posix_spawn_file_actions_destroy)
6118 (posix_spawn_file_actions_addclose)
6119 (posix_spawn_file_actions_addopen)
6120 (posix_spawn_file_actions_adddup2): Likewise.
6121 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6122 * tests/test-pread.c (pread): Likewise.
6123 * tests/test-printf-posix.c (printf): Likewise.
6124 * tests/test-pty.c (openpty, forkpty): Likewise.
6125 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6126 (random_r): Likewise.
6127 * tests/test-rawmemchr.c (rawmemchr): Likewise.
6128 * tests/test-readlink.c (readlink): Likewise.
6129 * tests/test-remove.c (remove): Likewise.
6130 * tests/test-rename.c (rename): Likewise.
6131 * tests/test-renameat.c (renameat): Likewise.
6132 * tests/test-rmdir.c (rmdir): Likewise.
6133 * tests/test-round1.c (round): Likewise.
6134 * tests/test-roundf1.c (roundf): Likewise.
6135 * tests/test-roundl.c (roundl): Likewise.
6136 * tests/test-setenv.c (setenv): Likewise.
6137 * tests/test-sigaction.c (sigaction): Likewise.
6138 * tests/test-sleep.c (sleep): Likewise.
6139 * tests/test-snprintf.c (snprintf): Likewise.
6140 * tests/test-sprintf-posix.c (sprintf): Likewise.
6141 * tests/test-stat.c (stat): Likewise.
6142 * tests/test-stpncpy.c (stpncpy): Likewise.
6143 * tests/test-strcasestr.c (strcasestr): Likewise.
6144 * tests/test-strchrnul.c (strchrnul): Likewise.
6145 * tests/test-strerror.c (strerror): Likewise.
6146 * tests/test-strsignal.c (strsignal): Likewise.
6147 * tests/test-strstr.c (strstr): Likewise.
6148 * tests/test-strtod.c (strtod): Likewise.
6149 * tests/test-strverscmp.c (strverscmp): Likewise.
6150 * tests/test-symlink.c (symlink): Likewise.
6151 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6152 * tests/test-times.c (times): Likewise.
6153 * tests/test-trunc1.c (trunc): Likewise.
6154 * tests/test-truncf1.c (truncf): Likewise.
6155 * tests/test-truncl.c (truncl): Likewise.
6156 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6158 * tests/test-uname.c (uname): Likewise.
6159 * tests/test-unlink.c (unlink): Likewise.
6160 * tests/test-unlinkat.c (unlinkat): Likewise.
6161 * tests/test-unsetenv.c (unsetenv): Likewise.
6162 * tests/test-usleep.c (usleep): Likewise.
6163 * tests/test-utimensat.c (utimensat): Likewise.
6164 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6165 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6166 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6167 * tests/test-vprintf-posix.c (vprintf): Likewise.
6168 * tests/test-vsnprintf.c (vsnprintf): Likewise.
6169 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6170 * tests/test-wcrtomb.c (wcrtomb): Likewise.
6171 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6172 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6173 * tests/test-wcwidth.c (wcwidth): Likewise.
6175 build: pull in conditional headers during GNULIB_POSIXCHECK
6176 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6177 definitions from any conditionally-included headers.
6178 * lib/stdlib.in.h (includes): Likewise.
6179 * lib/unistd.in.h (includes): Likewise.
6181 2009-12-24 Bruno Haible <bruno@clisp.org>
6183 * tests/test-argv-iter.c: Include header file being tested immediately
6185 * tests/test-base64.c: Likewise.
6186 * tests/test-flock.c: Likewise.
6187 * tests/test-fsync.c: Likewise.
6188 * tests/test-getdate.c: Likewise.
6189 * tests/test-getndelim2.c: Likewise.
6190 * tests/test-isfinite.c: Likewise.
6191 * tests/test-isinf.c: Likewise.
6192 * tests/test-strerror.c: Likewise.
6193 * tests/test-strsignal.c: Likewise.
6195 2009-12-23 Eric Blake <ebb9@byu.net>
6197 unistd: work around cygwin bug
6198 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6199 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6200 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6202 2009-12-23 Bruno Haible <bruno@clisp.org>
6204 localename: More tests.
6205 * tests/test-localename.c (SIZEOF): New macro.
6206 (categories): New variable.
6207 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6208 test_locale_name_default): Add test w.r.t. thread locale.
6209 (test_locale_name_thread): New function.
6212 localename: Make aware of thread locale.
6213 * lib/localename.h (gl_locale_name_thread): New declaration.
6214 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6215 behaviour with respect to thread locale.
6216 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6217 <langinfo.h>, glthread/lock.h.
6218 (SIZE_BITS): New macro.
6219 (string_hash): New function.
6220 (struct hash_node): New type.
6221 (HASH_TABLE_SIZE): New macro.
6222 (struniq_hash_table, struniq_lock): New variables.
6223 (struniq): New function.
6224 (gl_locale_name_thread): New function.
6225 (gl_locale_name): Invoke it.
6226 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6227 * modules/localename (Depends-on): Add lock.
6228 Reported by Mike Gran <spk121@yahoo.com>.
6230 2009-12-23 Eric Blake <ebb9@byu.net>
6233 * modules/va-args: New file.
6234 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6235 * MODULES.html.sh (Core language properties): Mention it.
6237 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6238 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6239 named alias for __attribute__((__unused__)).
6240 * lib/chown.c: Update client.
6241 * lib/fchmodat.c: Likewise.
6242 * lib/fts.c: Likewise.
6243 * lib/getdate.y: Likewise.
6244 * lib/getgroups.c: Likewise.
6245 * lib/getopt.c: Likewise.
6246 * lib/getugroups.c: Likewise.
6247 * lib/mkdir.c: Likewise.
6248 * lib/mkfifo.c: Likewise.
6249 * lib/mkfifoat.c: Likewise.
6250 * lib/mknod.c: Likewise.
6251 * lib/mknodat.c: Likewise.
6252 * lib/readlink.c: Likewise.
6253 * lib/se-context.in.h: Likewise.
6254 * lib/se-selinux.in.h: Likewise.
6255 * lib/sockets.c: Likewise.
6256 * lib/symlink.c: Likewise.
6257 * lib/symlinkat.c: Likewise.
6258 * lib/unicodeio.c: Likewise.
6259 * lib/unistr.h: Likewise.
6260 * tests/test-areadlink.c: Likewise.
6261 * tests/test-areadlinkat.c: Likewise.
6262 * tests/test-filenamecat.c: Likewise.
6263 * tests/test-fseeko.c: Likewise.
6264 * tests/test-ftello.c: Likewise.
6265 * tests/test-getdate.c: Likewise.
6266 * tests/test-getgroups.c: Likewise.
6267 * tests/test-gethostname.c: Likewise.
6268 * tests/test-quotearg.c: Likewise.
6269 * tests/test-version-etc.c: Likewise.
6270 * tests/test-xalloc-die.c: Likewise.
6271 * tests/test-xfprintf-posix.c: Likewise.
6272 * tests/test-xprintf-posix.c: Likewise.
6273 * tests/test-xvasprintf.c: Likewise.
6275 tests: avoid compiler warnings
6276 * tests/test-fcntl.c (main): Delete unused parameters.
6277 * tests/test-freopen-safer.c (main): Likewise.
6278 * tests/test-xalloc-die.c (main): Mark unused parameters.
6279 * tests/test-fseeko.c (main): Likewise.
6280 * tests/test-ftello.c (main): Likewise.
6281 * tests/test-nanosleep.c (main): Avoid declaration warning.
6282 * tests/test-sleep.c (main): Likewise.
6283 * tests/test-unsetenv.c (main): Silence warning about string
6285 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6287 2009-12-23 Bruno Haible <bruno@clisp.org>
6289 * tests/test-localename.c (test_locale_name): New function, extracted
6290 from main. Also test mixed situations.
6291 (test_locale_name_posix, test_locale_name_environ,
6292 test_locale_name_default): New functions.
6293 (main): Invoke them all.
6294 * modules/localename-tests (configure.ac): Test for newlocale.
6296 2009-12-23 Bruno Haible <bruno@clisp.org>
6298 unistd: Ensure getcwd gets declared before being overridden.
6299 * lib/unistd.in.h: Conditionally include <io.h>.
6301 2009-12-22 Bruno Haible <bruno@clisp.org>
6303 wchar: Diagnose broken combination of glibc and gcc versions and flags.
6304 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6305 (gl_WCHAR_H): Invoke it.
6306 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6307 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6308 Reported by Karl Berry <karl@freefriends.org>.
6310 2009-12-22 Eric Blake <ebb9@byu.net>
6312 math, unistd: avoid redundant includes
6313 * lib/math.in.h (isnan): No need to re-include <math.h>.
6314 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6316 getsubopt: work around cygwin bug
6317 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6318 avoid conflicting with system getsubopt.
6319 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6322 getopt: synchronize from glibc
6323 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6324 parameter order. Adjust all callers.
6325 (_getopt_internal_r, main): Adjust quoting in error messages.
6326 Drop considerations for outdated POSIX 1003.2 error message.
6327 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6329 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6331 test-getopt: test stderr behavior
6332 * modules/getopt-posix-tests (Depends-on): Add dup2.
6333 * tests/test-getopt.c (ASSERT): Avoid stderr.
6334 (main): Move stderr to a temporary file.
6335 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6336 Instead, add parameter to inform caller if output occurred.
6337 (test_getopt): Adjust all existing tests to expect silence, and
6338 add new tests of leading ":".
6339 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6340 glibc shortcomings with leading "-:" or "+:" in optstring.
6341 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6343 * doc/posix-functions/getopt.texi (getopt): Likewise.
6345 test-getopt: enhance test
6346 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6348 * tests/test-getopt.c (OPTIND_MIN): Move...
6349 * tests/test-getopt.h (OPTIND_MIN): ...here.
6350 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6351 Require that optind=0 works, since modern BSD supports it in
6352 addition to optreset, and since coreutils expects it.
6353 (test_getopt_long_only): New test.
6354 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6355 glibc shortcomings with 'W;', and enforcement of optind=0.
6356 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6359 2009-12-21 Bruno Haible <bruno@clisp.org>
6361 localename: Improvements for MacOS X and Cygwin.
6362 * lib/localename.h (gl_locale_name_environ): New declaration.
6363 * lib/localename.c (gl_locale_name_environ): New function, extracted from
6364 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6365 (gl_locale_name_posix): Invoke it.
6366 (gl_locale_name_default): Add comments. Use Windows native API also on
6369 2009-12-21 Bruno Haible <bruno@clisp.org>
6371 Update list of Win32 locale ids.
6372 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6373 (LANG_SAMI): Renamed from LANG_SAAMI.
6374 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6375 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6376 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6377 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6378 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6379 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6380 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6381 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6382 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6383 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6384 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6385 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6386 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6387 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6388 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6389 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6390 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6391 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6392 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6393 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6394 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6395 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6396 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6397 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6398 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6399 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6400 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6401 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6402 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6403 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6404 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6405 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6406 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6407 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6408 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6409 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6410 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6411 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6412 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6413 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6414 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6415 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6416 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6417 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6418 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6419 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6420 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6421 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6422 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6423 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6424 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6425 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6426 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6427 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6428 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6429 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6430 Add more languages and countries for Sami, Sorbian. Add more countries
6431 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6432 for Pashto. Change country for Syriac, Tswana.
6434 2009-12-21 Eric Blake <ebb9@byu.net>
6436 test-utimens: avoid spurious failure
6437 * tests/test-chown.h (nap): Factor...
6438 * tests/nap.h: ...into new file.
6439 * tests/test-lchown.h (nap): Avoid duplication.
6440 * tests/test-utimens-common.h (nap): Use shared implementation,
6441 necessary on file systems with 1-second resolution.
6442 * modules/chown-tests (Files): Include new file.
6443 * modules/fdutimensat-tests (Files): Likewise.
6444 * modules/futimens-tests (Files): Likewise.
6445 * modules/lchown-tests (Files): Likewise.
6446 * modules/openat-tests (Files): Likewise.
6447 * modules/utimens-tests (Files): Likewise.
6448 * modules/utimensat-tests (Files): Likewise.
6450 2009-12-19 Eric Blake <ebb9@byu.net>
6452 futimens, utimensat: work around Linux bug
6453 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6454 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6455 * lib/utimensat.c (rpl_utimensat): Work around it.
6456 * lib/futimens.c (rpl_futimens): Adjust comment.
6458 utimens: work around Linux ctime bug
6459 * lib/utimens.c (detect_ctime_bug): New helper function.
6460 (update_timespec): Differentiate between workaround needed for
6461 this bug vs. what is needed for systems that lack utimensat.
6462 (fdutimens, lutimens): Work around bug.
6464 utimens: check for ctime update
6465 * tests/test-utimens-common.h (check_ctime): Define.
6466 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6467 * tests/test-futimens.h (test_futimens): Likewise.
6468 * tests/test-lutimens.h (test_lutimens): Likewise.
6469 * doc/posix-functions/futimens.texi (futimens): Document the bug.
6470 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6472 2009-12-19 Bruno Haible <bruno@clisp.org>
6474 dprintf-posix: Check against memory leak fixed on 2009-12-15.
6475 * tests/test-dprintf-posix2.sh: New file.
6476 * tests/test-dprintf-posix2.c: New file.
6477 * modules/dprintf-posix-tests (Files): Add them.
6478 (configure.ac): Check for getrlimit and setrlimit.
6479 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6481 2009-12-19 Bruno Haible <bruno@clisp.org>
6483 fprintf-posix: Check against memory leak fixed on 2009-12-15.
6484 * tests/test-fprintf-posix3.sh: New file.
6485 * tests/test-fprintf-posix3.c: New file.
6486 * modules/fprintf-posix-tests (Files): Add them.
6487 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6489 2009-12-19 Eric Blake <ebb9@byu.net>
6491 dirfd: fix prototype
6492 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6493 * lib/dirfd.c (dirfd): Likewise.
6495 canonicalize: reduce memory usage
6496 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6498 Reported by Solar Designer <solar@openwall.com>.
6500 2009-12-19 Bruno Haible <bruno@clisp.org>
6502 New module attribute 'Applicability'.
6503 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6504 * gnulib-tool: New option --extract-applicability.
6505 (func_usage): Document it.
6506 (sed_extract_prog): Recognize it.
6507 (func_get_applicability): New function.
6508 (func_import): Generalize handling of 'link-warning' module.
6509 * modules/link-warning (Applicability): New section.
6510 * modules/arg-nonnull (Applicability): New section.
6511 Repoted by Simon Josefsson <simon@josefsson.org>.
6513 2009-12-19 Bruno Haible <bruno@clisp.org>
6516 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6517 * lib/fseeko.c (rpl_fseeko): Likewise.
6519 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
6521 * lib/gl_list.h: Fix typo in comment.
6523 2009-12-16 Eric Blake <ebb9@byu.net>
6525 fcntl: use to simplify other modules
6526 * modules/cloexec (Depends-on): Add fcntl.
6527 * modules/fchdir (Depends-on): Likewise.
6528 * modules/fd-safer-flag (Depends-on): Likewise.
6529 * modules/unistd-safer (Depends-on): Likewise.
6530 * modules/dup3 (configure.ac): Set module indicator.
6531 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6533 * lib/fchdir.c (_gl_register_dup): Fix comment.
6534 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6535 * lib/dup-safer.c (dup_safer): Likewise.
6536 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6537 * lib/dup3.c (dup3): Likewise.
6538 * tests/test-fchdir.c (main): Enhance test.
6539 Fixes a dup_cloexec bug reported by Ondřej Vašík.
6541 fcntl: port portions of fcntl to mingw
6542 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6543 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6544 replacement for mingw.
6545 * modules/fcntl (Description): Update.
6546 (Depends-on): Add dup2.
6547 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6548 * modules/fcntl-h (Makefile.am): Substitute it.
6549 * lib/fcntl.in.h (fcntl): Update declaration.
6550 (F_DUPFD, F_GETFD): New macros, when needed.
6551 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6552 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6553 * tests/test-fcntl.c (check_flags, main): Enhance test for items
6556 fcntl: work around cygwin bug in F_DUPFD
6557 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6558 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
6559 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6560 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6561 * doc/posix-functions/fcntl.texi (fcntl): Document it.
6563 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6564 * modules/fcntl (Files): List new files.
6565 (configure.ac): Run a test.
6566 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6567 * lib/fcntl.c (rpl_fcntl): Likewise.
6568 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6569 (gl_FCNTL_H): Always replace fcntl.h.
6570 * modules/fcntl-h (Makefile.am): Substitute witnesses.
6571 * lib/fcntl.in.h (fcntl): Declare replacement.
6572 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6573 needed, plus a witness.
6574 * doc/posix-functions/fcntl.texi (fcntl): Document this.
6575 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6576 * tests/test-fcntl.c: New file.
6577 * modules/fcntl-tests: Likewise.
6579 binary-io: avoid potential compilation warning
6580 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6583 fflush: avoid compilation error on NetBSD
6584 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6585 between off_t and fpos_t, since the latter is sometimes a struct.
6586 * lib/fseeko.c (rpl_fseeko): Likewise.
6587 Reported by Alexander Nasonov <alnsn@yandex.ru>.
6589 2009-12-15 Eric Blake <ebb9@byu.net>
6591 fcntl-h, stdio, sys_ioctl: fix declarations
6592 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6593 function must not take arguments.
6594 * lib/sys_ioctl.in.h (ioctl): Likewise.
6595 * lib/fcntl.in.h (openat): Likewise. Declare extern.
6596 (open): Add a link warning.
6598 2009-12-15 Jim Meyering <meyering@redhat.com>
6600 areadlink, areadlink-with-size: relax license to LGPLv2+
6601 * modules/areadlink (License): Relax to LGPLv2+.
6602 * modules/areadlink-with-size (License): Likewise.
6604 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
6605 Bruno Haible <bruno@clisp.org>
6607 *printf: Fix memory leak.
6608 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6609 * lib/vfprintf.c (vfprintf): Likewise.
6610 * lib/dprintf.c (dprintf): Likewise.
6611 * lib/vdprintf.c (vdprintf): Likewise.
6613 2009-12-14 Eric Blake <ebb9@byu.net>
6615 accept4: adjust module dependencies
6616 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6618 utimens: one more try at avoiding compiler warning
6619 * lib/utimens.c (lutimens): Lower scope of result.
6621 2009-12-13 Bruno Haible <bruno@clisp.org>
6623 Move the malloc checking from module 'list' to new module 'xlist'.
6624 * modules/xlist: New file.
6625 * lib/gl_xlist.h: New file.
6626 * lib/gl_xlist.c: New file.
6627 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6628 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6629 gl_list_add_last, gl_list_add_before, gl_list_add_after,
6630 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6631 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6632 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6633 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6634 gl_sortedlist_nx_add): New declarations.
6635 (struct gl_list_implementation): Rename and change methods accordingly.
6636 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6637 (gl_list_nx_create): Renamed from gl_list_create.
6638 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6639 (gl_list_nx_set_at): Renamed from gl_list_set_at.
6640 (gl_list_nx_add_first): Renamed from gl_list_add_first.
6641 (gl_list_nx_add_last): Renamed from gl_list_add_last.
6642 (gl_list_nx_add_before): Renamed from gl_list_add_before.
6643 (gl_list_nx_add_after): Renamed from gl_list_add_after.
6644 (gl_list_nx_add_at): Renamed from gl_list_add_at.
6645 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6646 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6647 gl_list_create_empty.
6648 (gl_list_nx_create): Renamed from gl_list_create.
6649 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6650 (gl_list_nx_set_at): Renamed from gl_list_set_at.
6651 (gl_list_nx_add_first): Renamed from gl_list_add_first.
6652 (gl_list_nx_add_last): Renamed from gl_list_add_last.
6653 (gl_list_nx_add_before): Renamed from gl_list_add_before.
6654 (gl_list_nx_add_after): Renamed from gl_list_add_after.
6655 (gl_list_nx_add_at): Renamed from gl_list_add_at.
6656 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6657 * lib/gl_array_list.c: Don't include xalloc.h.
6658 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6659 NULL upon out-of-memory.
6660 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6662 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6663 Change return type to 'int'.
6664 (gl_array_nx_set_at): Renamed from gl_array_set_at.
6665 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6666 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6668 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6670 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6672 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6674 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6676 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6678 (gl_array_list_implementation): Update.
6679 * lib/gl_carray_list.c: Don't include xalloc.h.
6680 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6681 Return NULL upon out-of-memory.
6682 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6684 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6685 Change return type to 'int'.
6686 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6687 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6688 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6690 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6692 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6694 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6695 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6696 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6698 (gl_carray_list_implementation): Update.
6699 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6700 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6701 gl_linked_create_empty. Return NULL upon out-of-memory.
6702 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6704 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6705 Change return type to 'int'. Return -1 upon out-of-memory.
6706 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6708 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6710 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6712 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6713 NULL upon out-of-memory.
6714 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6716 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6718 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6720 * lib/gl_linked_list.c: Don't include xalloc.h.
6721 (gl_linked_list_implementation): Update.
6722 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6723 (add_to_bucket): Change return type to 'int'.
6724 (gl_linkedhash_list_implementation): Update.
6725 * lib/gl_anytree_list1.h (free_subtree): New function.
6726 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6727 gl_tree_create_empty. Return NULL upon out-of-memory.
6728 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6729 Change return type to 'int'. Return -1 upon out-of-memory.
6730 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6732 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6733 (gl_tree_remove_node): New function, moved here from
6734 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6735 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6737 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6738 malloc, not xmalloc. Return NULL upon out-of-memory.
6739 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6741 (gl_tree_remove_node_from_tree): New function, extracted from
6742 gl_tree_remove_node.
6743 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6745 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6747 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6749 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6751 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6752 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6753 not xmalloc. Return NULL upon out-of-memory.
6754 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6756 (gl_tree_remove_node_from_tree): New function, extracted from
6757 gl_tree_remove_node.
6758 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6760 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6762 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6764 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6766 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6767 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6768 gl_anytree_list1.h before gl_anyavltree_list2.h.
6769 (gl_avltree_list_implementation): Update.
6770 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6771 gl_anytree_list1.h before gl_anyavltree_list2.h.
6772 (gl_rbtree_list_implementation): Update.
6773 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6774 Change return type to 'int'. Return -1 upon out-of-memory. Use
6776 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6777 (gl_avltreehash_list_implementation): Update.
6778 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6779 (gl_rbtreehash_list_implementation): Update.
6780 * modules/array-list (Depends-on): Remove xalloc.
6781 * modules/carray-list (Depends-on): Likewise.
6782 * modules/linked-list (Depends-on): Likewise.
6783 * modules/linkedhash-list (Depends-on): Likewise.
6784 * modules/avltree-list (Depends-on): Likewise.
6785 * modules/rbtree-list (Depends-on): Likewise.
6786 * modules/avltreehash-list (Depends-on): Likewise.
6787 * modules/rbtreehash-list (Depends-on): Likewise.
6789 * modules/xsublist: New file.
6790 * lib/gl_xsublist.h: New file.
6791 * lib/gl_xsublist.c: New file.
6792 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6793 (gl_sublist_nx_create): New declaration.
6794 * lib/gl_sublist.c: Don't include xalloc.h.
6795 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6796 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6797 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6798 Change return type to 'int'. Return -1 upon out-of-memory.
6799 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6801 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6802 NULL upon out-of-memory.
6803 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6805 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6806 NULL upon out-of-memory.
6807 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6808 NULL upon out-of-memory.
6809 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6811 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6812 (gl_sublist_list_implementation): Update.
6813 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6815 * modules/sublist (Depends-on): Remove xalloc.
6817 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6818 * tests/test-carray_list.c: Likewise.
6819 * tests/test-linked_list.c: Likewise.
6820 * tests/test-linkedhash_list.c: Likewise.
6821 * tests/test-avltree_list.c: Likewise.
6822 * tests/test-rbtree_list.c: Likewise.
6823 * tests/test-avltreehash_list.c: Likewise.
6824 * tests/test-rbtreehash_list.c: Likewise.
6825 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6826 * modules/carray-list-tests (Makefile.am): Likewise.
6827 * modules/linked-list-tests (Makefile.am): Likewise.
6828 * modules/linkedhash-list-tests (Makefile.am): Likewise.
6829 * modules/avltree-list-tests (Makefile.am): Likewise.
6830 * modules/rbtree-list-tests (Makefile.am): Likewise.
6831 * modules/avltreehash-list-tests (Makefile.am): Likewise.
6832 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6834 * NEWS: Mention the changes.
6836 * lib/clean-temp.c: Include gl_xlist.h.
6837 * modules/clean-temp (Depends-on): Add xlist.
6839 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6840 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6842 * tests/test-array_oset.c: Include gl_xlist.h.
6843 * modules/array-oset-tests (Depends-on): Add xlist.
6845 Reported by José E. Marchesi <jemarch@gnu.org>.
6847 2009-12-13 Bruno Haible <bruno@clisp.org>
6849 Move the malloc checking from module 'oset' to new module 'xoset'.
6850 * modules/xoset: New file.
6851 * lib/gl_xoset.h: New file.
6852 * lib/gl_xoset.c: New file.
6853 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6855 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6856 (struct gl_oset_implementation): Rename and change methods accordingly.
6857 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6858 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6859 'int'. Mark as __warn_unused_result__.
6860 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6861 gl_oset_create_empty.
6862 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6864 * lib/gl_array_oset.c: Don't include xalloc.h.
6865 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6866 malloc, not xmalloc.
6867 (grow): Change return type to 'int'. Don't call xalloc_die.
6868 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6870 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6872 (gl_array_oset_implementation): Update.
6873 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6874 gl_tree_create_empty.
6875 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6877 * lib/gl_avltree_oset.c: Don't include xalloc.h.
6878 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6880 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6882 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6884 (gl_avltree_oset_implementation): Update.
6885 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6886 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6888 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6890 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6892 (gl_rbtree_oset_implementation): Update.
6893 * modules/array-oset (Depends-on): Remove xalloc.
6894 * modules/avltree-oset (Depends-on): Likewise.
6895 * modules/rbtree-oset (Depends-on): Likewise.
6896 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6897 * tests/test-avltree_oset.c: Likewise.
6898 * tests/test-rbtree_oset.c: Likewise.
6899 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6900 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6901 * modules/rbtree-oset-tests (Makefile.am): Likewise.
6902 * NEWS: Mention the change.
6904 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
6906 maint.mk: allow a project to override release-prep commands
6907 * top/maint.mk (alpha, beta, stable): Move release-preparatory
6908 commands into a new rule.
6909 (release-prep): New rule.
6910 (release-prep-hook): New overridable variable.
6912 2009-12-13 Bruno Haible <bruno@clisp.org>
6914 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6916 2009-12-13 Jim Meyering <meyering@redhat.com>
6918 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6919 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6921 2009-12-12 Bruno Haible <bruno@clisp.org>
6924 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6926 2009-12-12 Karl Berry <karl@gnu.org>
6928 * config/srclist.txt (strtoll.c): tab changes, no more sync.
6930 2009-12-12 Bruno Haible <bruno@clisp.org>
6932 * m4/po.m4: Undo incorrect untabification.
6934 2009-12-12 Bruno Haible <bruno@clisp.org>
6936 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6937 * modules/c-strtod (Depends-on): Add locale.
6938 * modules/c-strtold (Depends-on): Likewise.
6940 2009-12-12 Bruno Haible <bruno@clisp.org>
6942 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6944 2009-12-11 Eric Blake <ebb9@byu.net>
6946 setenv: relax requirement in light of POSIX ruling
6947 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6949 * tests/test-setenv.c (main): Relax test.
6950 * tests/test-unsetenv.c (main): Likewise.
6951 * doc/posix-functions/setenv.texi (setenv): Document this.
6952 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6954 2009-12-11 Bruno Haible <bruno@clisp.org>
6956 New module 'fd-safer-flag'.
6957 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6958 * lib/dup-safer.c (dup_safer_flag): Remove function.
6959 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6960 * lib/fd-safer.c (fd_safer_flag): Remove function.
6961 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6962 * modules/cloexec (configure.ac): Drop indicator macro.
6963 * modules/fd-safer-flag: New file.
6964 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6965 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6966 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6968 2009-12-11 Bruno Haible <bruno@clisp.org>
6970 Tests for module 'nl_langinfo'.
6971 * modules/nl_langinfo-tests: New file.
6972 * tests/test-nl_langinfo.sh: New file.
6973 * tests/test-nl_langinfo.c: New file.
6975 New module 'nl_langinfo'.
6976 * lib/nl_langinfo.c: New file.
6977 * m4/nl_langinfo.m4: New file.
6978 * modules/nl_langinfo: New file.
6979 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6981 2009-12-11 Bruno Haible <bruno@clisp.org>
6983 Tests for module 'langinfo'.
6984 * modules/langinfo-tests: New file.
6985 * tests/test-langinfo.c: New file.
6987 New module 'langinfo'.
6988 * lib/langinfo.in.h: New file.
6989 * m4/langinfo_h.m4: New file.
6990 * modules/langinfo: New file.
6991 * doc/posix-headers/langinfo.texi: Mention the new module.
6993 2009-12-11 Bruno Haible <bruno@clisp.org>
6995 * lib/config.charset: Untabify.
6997 2009-12-11 Bruno Haible <bruno@clisp.org>
6999 * modules/unistd-safer (configure.ac): Drop indicator macro.
7001 2009-12-11 Bruno Haible <bruno@clisp.org>
7003 Move pipe2-safer code to its own file.
7004 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7005 * lib/pipe-safer.c (pipe2_safer): Remove function.
7006 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7007 (Makefile.am): Add it to lib_SOURCES.
7009 2009-12-10 Bruno Haible <bruno@clisp.org>
7011 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7013 2009-12-10 Bruno Haible <bruno@clisp.org>
7015 Declare which arguments expect non-NULL values, for GCC and clang.
7016 * build-aux/arg-nonnull.h: New file.
7017 * modules/arg-nonnull: New file.
7018 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7019 (inet_ntop, inet_pton): Use it.
7020 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7021 (closedir, dirfd, opendir, scandir, alphasort): Use it.
7022 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7023 (open, openat): Use it.
7024 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7026 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7027 (getopt, getopt_long, getopt_long_only): Use it.
7028 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7029 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7031 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7032 (iconv_open): Use it.
7033 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7034 (strtoimax, strtoumax): Use it.
7035 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7036 (duplocale): Use it.
7037 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7038 (frexp, frexpl): Use it.
7039 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7040 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7041 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7042 (tsearch, tfind, tdelete, twalk): Use it.
7043 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7044 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7045 sigpending): Use it.
7046 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7047 (posix_spawn, posix_spawnp, posix_spawnattr_init,
7048 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7049 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7050 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7051 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7052 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7053 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7054 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7055 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7056 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7058 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7059 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7060 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7061 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7062 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7063 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7064 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7065 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7066 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7067 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7068 strtoull, unsetenv): Use it.
7069 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7070 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7071 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7072 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7073 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7074 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7075 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7076 (strcasecmp, strncasecmp): Use it.
7077 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7078 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7079 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7080 rpl_setsockopt): Use it.
7081 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7082 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7083 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7084 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7085 (gettimeofday): Use it.
7086 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7088 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7090 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7091 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7092 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7093 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7094 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7095 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7096 unlinkat, write): Use it.
7097 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7098 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7099 * lib/argv-iter.h: Include arg-nonnull.h.
7100 (_ATTRIBUTE_NONNULL_): Remove macro.
7101 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7102 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7103 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7105 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7106 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7107 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7108 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7109 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7110 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7111 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7112 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7113 * modules/arpa_inet (Depends-on): Add arg-nonnull.
7114 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7115 * modules/dirent (Depends-on): Add arg-nonnull.
7116 (Makefile.am): Insert arg-nonnull.h into dirent.h.
7117 * modules/fcntl-h (Depends-on): Add arg-nonnull.
7118 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7119 * modules/fnmatch (Depends-on): Add arg-nonnull.
7120 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7121 * modules/getopt-posix (Depends-on): Add arg-nonnull.
7122 (Makefile.am): Insert arg-nonnull.h into getopt.h.
7123 * modules/glob (Depends-on): Add arg-nonnull.
7124 (Makefile.am): Insert arg-nonnull.h into glob.h.
7125 * modules/iconv_open (Depends-on): Add arg-nonnull.
7126 (Makefile.am): Insert arg-nonnull.h into iconv.h.
7127 * modules/inttypes (Depends-on): Add arg-nonnull.
7128 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7129 * modules/locale (Depends-on): Add arg-nonnull.
7130 (Makefile.am): Insert arg-nonnull.h into locale.h.
7131 * modules/math (Depends-on): Add arg-nonnull.
7132 (Makefile.am): Insert arg-nonnull.h into math.h.
7133 * modules/netdb (Depends-on): Add arg-nonnull.
7134 (Makefile.am): Insert arg-nonnull.h into netdb.h.
7135 * modules/search (Depends-on): Add arg-nonnull.
7136 (Makefile.am): Insert arg-nonnull.h into search.h.
7137 * modules/signal (Depends-on): Add arg-nonnull.
7138 (Makefile.am): Insert arg-nonnull.h into signal.h.
7139 * modules/spawn (Depends-on): Add arg-nonnull.
7140 (Makefile.am): Insert arg-nonnull.h into spawn.h.
7141 * modules/stdio (Depends-on): Add arg-nonnull.
7142 (Makefile.am): Insert arg-nonnull.h into stdio.h.
7143 * modules/stdlib (Depends-on): Add arg-nonnull.
7144 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7145 * modules/string (Depends-on): Add arg-nonnull.
7146 (Makefile.am): Insert arg-nonnull.h into string.h.
7147 * modules/strings (Depends-on): Add arg-nonnull.
7148 (Makefile.am): Insert arg-nonnull.h into strings.h.
7149 * modules/sys_socket (Depends-on): Add arg-nonnull.
7150 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7151 * modules/sys_stat (Depends-on): Add arg-nonnull.
7152 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7153 * modules/sys_time (Depends-on): Add arg-nonnull.
7154 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7155 * modules/sys_times (Depends-on): Add arg-nonnull.
7156 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7157 * modules/sys_utsname (Depends-on): Add arg-nonnull.
7158 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7159 * modules/time (Depends-on): Add arg-nonnull.
7160 (Makefile.am): Insert arg-nonnull.h into time.h.
7161 * modules/unistd (Depends-on): Add arg-nonnull.
7162 (Makefile.am): Insert arg-nonnull.h into unistd.h.
7163 * modules/wchar (Depends-on): Add arg-nonnull.
7164 (Makefile.am): Insert arg-nonnull.h into wchar.h.
7165 * modules/argv-iter (Depends-on): Add arg-nonnull.
7166 * tests/test-canonicalize.c (null_ptr): New function.
7168 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7170 * tests/test-memmem.c (null_ptr): New function.
7172 Reported by Jim Meyering.
7174 2009-12-10 Bruno Haible <bruno@clisp.org>
7176 Use spaces for indentation, not tabs.
7177 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7178 * m4/*.m4: Untabify.
7179 * build-aux/*.h: Untabify.
7180 * tests/**/*.[hc]: Untabify.
7181 * README: New section "Indent with spaces, not TABs", based on
7182 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7183 * NEWS: Mention the change.
7185 2009-12-10 Bruno Haible <bruno@clisp.org>
7187 pty test: Fix link error.
7188 * modules/pty-tests (Makefile.am): Add the default LDADD value to
7191 2009-12-07 Simon Josefsson <simon@josefsson.org>
7193 * modules/pty: New file.
7194 * modules/pty-tests: New file.
7195 * m4/pty.m4: New file.
7196 * tests/test-pty.c: New file.
7197 * doc/glibc-headers/pty.texi: Modified.
7198 * doc/glibc-functions/forkpty.texi: Modified.
7199 * doc/glibc-functions/openpty.texi: Modified.
7201 2009-12-10 Bruno Haible <bruno@clisp.org>
7203 Avoid syntax error in C++ mode.
7204 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7206 2009-12-10 Bruno Haible <bruno@clisp.org>
7208 Use sed with option -e.
7209 * gnulib-tool (func_version, func_emit_copyright_notice,
7210 func_emit_initmacro_end, func_import, func_create_testdir): Pass
7212 * modules/link-warning (Makefile.am): Likewise.
7214 2009-12-10 Jim Meyering <meyering@redhat.com>
7216 mgetgroups: do not write bytes beyond end of malloc'd buffer
7217 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
7218 username, we call getgroups with a one-element-shorter buffer,
7219 but still told it the length was original, max_n_groups.
7221 2009-12-09 Eric Blake <ebb9@byu.net>
7223 cloexec: relax license
7224 * modules/cloexec (Maintainer): Add myself.
7225 (License): Use LGPL, not GPL.
7227 link-warning: optimize generation
7228 * modules/link-warning (Makefile.am): Reduce process usage.
7230 2009-12-09 Bruno Haible <bruno@clisp.org>
7232 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7233 workaround was added on 2009-11-17.
7235 2009-12-09 Jim Meyering <meyering@redhat.com>
7236 Bruno Haible <bruno@clisp.org>
7238 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7239 * modules/link-warning (Makefile.am): Make the comment-removing sed
7240 command more robust in the face of bootstrap-prepended comment lines.
7242 2009-12-09 Bruno Haible <bruno@clisp.org>
7244 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7247 2009-12-09 Simon Josefsson <simon@josefsson.org>
7248 Bruno Haible <bruno@clisp.org>
7250 * build-aux/link-warning.h: Add copyright notice.
7251 * modules/link-warning (Makefile.am): Generate link-warning.h from
7252 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7253 * NEWS: Mention change in link-warning module.
7254 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7255 * modules/dirent (Makefile.am): Add dependency to dirent.h.
7256 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7257 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7258 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7259 * modules/math (Makefile.am): Add dependency to math.h.
7260 * modules/search (Makefile.am): Add dependency to search.h.
7261 * modules/signal (Makefile.am): Add dependency to signal.h.
7262 * modules/spawn (Makefile.am): Add dependency to spawn.h.
7263 * modules/stdio (Makefile.am): Add dependency to stdio.h.
7264 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7265 * modules/string (Makefile.am): Add dependency to string.h.
7266 * modules/strings (Makefile.am): Add dependency to strings.h.
7267 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7268 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7269 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7270 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7271 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7272 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7273 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7274 * modules/unistd (Makefile.am): Add dependency to unistd.h.
7275 * modules/wchar (Makefile.am): Add dependency to wchar.h.
7277 2009-12-09 Bruno Haible <bruno@clisp.org>
7279 fchdir: Optimize away rpl_fstat when possible.
7280 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7281 REPLACE_OPEN_DIRECTORY.
7282 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7284 2009-12-09 Bruno Haible <bruno@clisp.org>
7286 * lib/fchdir.c: Update comment.
7288 2009-12-09 Bruno Haible <bruno@clisp.org>
7290 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7292 2009-12-08 Eric Blake <ebb9@byu.net>
7294 fchdir: avoid memory leak on re-registration.
7295 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7297 2009-12-08 Jim Meyering <meyering@redhat.com>
7299 init.sh: avoid Solaris 10 /bin/sh portability problem
7300 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7302 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7303 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7305 tests/init.sh relied on that, accepting a --set-path=DIR argument,
7306 and two tests used that idiom.
7307 * tests/init.sh: Update suggested usage comments.
7308 (path_prepend_): New function, to be used in place
7309 of the --src-path=DIR option.
7310 (setup_): Move PATH-prepending code into path_prepend_.
7311 * tests/test-pread.sh: Adapt to new usage.
7312 * tests/test-xalloc-die.sh: Likewise.
7314 2009-12-08 Simon Josefsson <simon@josefsson.org>
7316 * doc/gnulib.texi (Glibc pty.h): Add.
7317 * doc/glibc-functions/forkpty.texi: Add.
7318 * doc/glibc-functions/openpty.texi: Add.
7319 Suggested by Bruno Haible.
7321 2009-12-08 Eric Blake <ebb9@byu.net>
7323 fchdir: fix logic bugs
7324 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7325 * tests/test-fchdir.c (main): Enhance test.
7326 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7329 dup2: fix logic bugs
7330 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
7331 REPLACE_DUP2 to decide when rpl_dup2 is needed.
7332 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7334 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7336 2009-12-07 Eric Blake <ebb9@byu.net>
7338 unlink: fix m4 detection
7339 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7341 unistd-safer: add unit test
7342 * modules/unistd-safer-tests: New file.
7343 * tests/test-dup-safer.c: Likewise.
7344 * tests/test-cloexec.c (setmode): Avoid compiler warning.
7345 * tests/test-dup2.c (setmode): Likewise.
7346 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7348 cloexec: preserve text vs. binary across dup_cloexec
7349 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7351 * modules/dup2-tests (Depends-on): Add binary-io.
7352 * modules/cloexec-tests (Depends-on): Likewise.
7353 * tests/test-dup2.c (setmode, is_mode): New helpers.
7354 (main): Add tests that translation mode is preserved.
7355 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7356 Reported by Bruno Haible.
7358 mgetgroups: reduce duplicate listings
7359 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7361 * tests/test-chown.h (test_chown): Simplify client.
7362 * tests/test-lchown.h (test_lchown): Likewise.
7364 2009-12-06 Bruno Haible <bruno@clisp.org>
7366 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7369 2009-12-06 Bruno Haible <bruno@clisp.org>
7371 * lib/progname.c: Include stdio.h, stdlib.h.
7372 (set_program_name): Reject a NULL argument.
7374 2009-12-05 Eric Blake <ebb9@byu.net>
7376 pipe2-safer: new module
7377 * modules/pipe2-safer: New file.
7378 * lib/unistd-safer.h (pipe2_safer): New prototype.
7379 * lib/unistd--.h (pipe2): New wrapper.
7380 * lib/pipe-safer.c (pipe2_safer): New function.
7381 * modules/pipe (Depends-on): Add pipe2-safer.
7382 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7384 stdlib-safer: preserve cloexec flag for mkostemp[s]
7385 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7388 unistd-safer: allow preservation of cloexec status via flag
7389 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7391 * lib/dup-safer.c (dup_safer_flag): New function.
7392 * lib/fd-safer.c (fd_safer_flag): Likewise.
7393 * modules/cloexec (configure.ac): Set witness.
7395 test-dup2: enhance test
7396 * modules/dup2-tests (Depends-on): Add cloexec.
7397 * tests/test-dup2.c (main): Enhance test.
7399 cloexec: add dup_cloexec
7400 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
7401 header and comments.
7402 * lib/cloexec.c (set_cloexec_flag): Add comments.
7403 (dup_cloexec): New function, with mingw implementation borrowed
7405 * lib/w32spawn.h (dup_noinherit): ...here.
7406 * modules/execute (Depends-on): Add cloexec.
7407 * modules/pipe (Depends-on): Likewise.
7408 * modules/cloexec (Depends-on): Add dup2.
7409 * modules/cloexec-tests (Files): New file.
7410 * tests/test-cloexec.c: Likewise.
7412 test-xalloc-die: fix test for mingw
7413 * modules/xalloc-die-tests (Files): Add tests/init.sh.
7414 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
7415 directory and .exe suffix off argv[0] output.
7417 test-fseeko: fix test for mingw
7418 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7419 than undefining fseek, so test will pass on mingw.
7421 2009-12-05 Bruno Haible <bruno@clisp.org>
7423 * lib/progname.h (set_program_name): Clarify specification.
7424 * lib/progname.c (set_program_name): Likewise.
7425 Reported by Jim Meyering.
7427 2009-12-05 Jim Meyering <meyering@redhat.com>
7429 maint.mk: backslash-escape parens in default regexp
7430 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7431 backslash-escape the literal parentheses.
7433 maint.mk: news-date-check: use grep -E
7434 * top/maint.mk (today): Define a Make variable, not a...
7435 (news-date-check): ...shell variable.
7436 (news-date-regexp): Use the Make variable.
7437 Use grep's -E option. Change the failing diagnostic to mention
7438 the variable, $(news-date-regexp).
7440 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
7442 maintainer-makefile: allow customization of NEWS entry format
7443 * top/maint.mk (news-date-regexp): New overridable variable.
7444 (news-date-check): Use it.
7446 2009-12-04 Eric Blake <ebb9@byu.net>
7448 mgetgroups: add xgetgroups, and avoid ENOSYS failures
7449 * lib/mgetgroups.h (xgetgroups): New prototype.
7450 * lib/mgetgroups.c (xgetgroups): New wrapper.
7451 (mgetgroups): Handle ENOSYS.
7452 * modules/mgetgroups (Depends-on): Add realloc.
7453 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7455 mgetgroups: avoid argument promotion issues with -1
7456 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7458 * tests/test-chown.h (getegid, test_chown): Likewise.
7459 * tests/test-lchown.h (getegid, test_lchown): Likewise.
7461 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
7463 exclude: Fix header file problems.
7464 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7466 2009-12-01 Jim Meyering <meyering@redhat.com>
7468 fts: fts_open: do not let an empty string cause immediate failure
7469 This is required in support of GNU rm, for which the command
7470 "rm A '' B" must process and remove both A and B, in spite of
7471 the empty string argument.
7472 * lib/fts.c (fts_open): Do not let the presence of an empty string
7473 cause fts_open to fail immediately. Most fts-using tools must be
7474 able to process all arguments, in order, and can be expected to
7475 diagnose such arguments themselves.
7477 2009-11-30 Eric Blake <ebb9@byu.net>
7479 utimens: fix compilation error
7480 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7481 Declare variable at right scope.
7483 2009-11-29 Jim Meyering <meyering@redhat.com>
7485 bootstrap: handle perl-5.11's changed --version output
7486 * build-aux/bootstrap (get_version): Handle perl separately,
7487 since perl-5.11's --version output is different.
7489 2009-11-28 Jim Meyering <meyering@redhat.com>
7491 userspec: depend on the inttostr module, too
7492 * modules/userspec (Depends-on): Add inttostr.
7494 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7495 * lib/userspec.c (parse_with_separator): Do not accept a user ID
7496 number of MAXUID when it evaluates to (uid_t) -1.
7497 Likewise for group ID. Reported by Matt McCutchen in
7498 <http://savannah.gnu.org/bugs/?28113>
7500 userspec: reformat to use spaces, not TABs
7501 * lib/userspec.c: Expand TABs to spaces.
7502 Add Emacs' "indent-tabs-mode: nil" hint.
7504 2009-11-27 Eric Blake <ebb9@byu.net>
7506 getopt-gnu: flush out another BSD bug
7507 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7508 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7510 * tests/test-getopt.h (test_getopt): End lists with NULL.
7511 * tests/test-getopt_long.h (test_getopt_long): Likewise.
7512 (test_getopt_long_posix): Enhance test.
7513 * modules/getopt-posix-tests (Depends-on): Add stdbool.
7514 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7516 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7519 2009-11-27 Simon Josefsson <simon@josefsson.org>
7521 * modules/idpriv-droptemp-tests (Notice): Fix text.
7523 2009-11-27 Jim Meyering <meyering@redhat.com>
7525 test-xalloc-die: avoid spurious failure due to libtool argv difference
7526 In a libtool-enabled project, this test would fail due to a difference
7527 in the emitted program name, e.g.,
7528 -test-xalloc-die: memory exhausted
7529 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7530 Use program to avoid that.
7531 * modules/xalloc-die-tests (Depends-on): Add progname.
7532 * tests/test-xalloc-die.c: Include progname.h".
7533 (program_name): Remove decl.
7534 (main): Call set_program_name.
7535 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7537 2009-11-26 Richard Jones <rjones@redhat.com>
7539 w32sock: leave win32 error in place.
7540 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7542 2009-11-26 Eric Blake <ebb9@byu.net>
7544 init.sh: suggest to use skip_ and fail_ functions in comments
7545 * tests/init.sh: Add a sentence.
7547 2009-11-25 Bruno Haible <bruno@clisp.org>
7549 init.sh: add documentation in comments
7550 * tests/init.sh: Add some developer and user documentation.
7552 2009-11-26 Jim Meyering <meyering@redhat.com>
7554 init.sh: accommodate even those who specify bogus srcdir manually
7555 * tests/init.sh: Normally, srcdir is guaranteed by automake and
7556 configure-time tests to be sanitized, so that there is no need to
7557 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
7558 (with no double quotes) suffices. However, since tests may be
7559 invoked manually, and since you may explicitly set srcdir to the
7560 name of a directory containing spaces, do quote its uses here.
7561 * tests/test-pread.sh: Likewise.
7562 Suggested by Bruno Haible.
7564 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7565 * tests/test-pread.sh: Write no data into the pipe, because
7566 test-pread actually reads none. This avoids a diagnostic,
7567 "bash: echo: write error: Broken pipe", that arises in the unusual
7568 event something is ignoring SIGPIPE, and might be interpreted
7569 as some sort of failure. Reported by Bruno Haible.
7571 2009-11-25 Jim Meyering <meyering@redhat.com>
7573 test-pread: cover failure with ESPIPE and EINVAL
7574 * tests/test-pread.c (main): Test for failure, too.
7575 * tests/test-pread.sh: Invoke with stdin on a pipe.
7576 Suggested by Eric Blake.
7578 pread: improvement and fix
7579 * modules/pread (Depends-on): Depend on lseek, for portability to
7580 e.g., mingw. Suggested by Eric Blake.
7581 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
7583 unistd.in.h: correct declaration of pread
7584 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7585 Reported by Richard W.M. Jones.
7587 test-pread.sh: distribute the test script
7588 * modules/pread-tests (Files): Include test-pread.sh.
7590 test-pread.sh: clean up
7591 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7592 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7593 That is unnecessary, since it's always ".".
7594 Suggestion from Eric Blake.
7596 test-pread.sh: make executable
7597 * tests/test-pread.sh: Set executable bit.
7598 Reported by Eric Blake.
7600 correct typo in test-pread.sh
7601 * tests/test-pread.sh: Add #! line.
7604 * tests/test-pread.c: New file.
7605 * tests/test-pread.sh: Likewise.
7606 * modules/pread-tests: Likewise.
7609 * modules/pread: New file.
7610 * lib/unistd.in.h (pread): Define/declare.
7611 * lib/pread.c (pread): New file.
7612 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7613 * modules/unistd (Makefile.am): Substitute witnesses.
7614 * doc/posix-functions/pread.texi (pread): Update.
7615 * MODULES.html.sh: Add pread.
7617 2009-11-25 Jim Meyering <meyering@redhat.com>
7619 tests/init.sh: new file to be used via most *.sh tests
7620 * tests/init.sh: New file.
7622 2009-11-25 Eric Blake <ebb9@byu.net>
7624 utimens: work around older Linux failure with symlinks
7625 * lib/utimens.c (lutimensat_works_really): New variable.
7626 (fdutimens, lutimens): Use it to manage kernels that support
7627 nanosecond times on files, but not on symlinks.
7628 Reported by Ondřej Vašík.
7630 utimes: fix configure grammar
7631 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7633 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
7635 regex: Fix fastmap for multibyte character ranges.
7636 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7637 characters when a multibyte character range is included.
7639 2009-11-22 Andy Wingo <wingo@pobox.com>
7641 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7642 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7644 2009-11-24 Bruno Haible <bruno@clisp.org>
7646 doc: Most *_l functions exist in MacOS X 10.5.
7647 * doc/posix-functions/duplocale.texi: Update platforms list.
7648 * doc/posix-functions/freelocale.texi: Likewise.
7649 * doc/posix-functions/newlocale.texi: Likewise.
7650 * doc/posix-functions/uselocale.texi: Likewise.
7651 * doc/posix-functions/isalnum_l.texi: Likewise.
7652 * doc/posix-functions/isalpha_l.texi: Likewise.
7653 * doc/posix-functions/isblank_l.texi: Likewise.
7654 * doc/posix-functions/iscntrl_l.texi: Likewise.
7655 * doc/posix-functions/isdigit_l.texi: Likewise.
7656 * doc/posix-functions/isgraph_l.texi: Likewise.
7657 * doc/posix-functions/islower_l.texi: Likewise.
7658 * doc/posix-functions/isprint_l.texi: Likewise.
7659 * doc/posix-functions/ispunct_l.texi: Likewise.
7660 * doc/posix-functions/isspace_l.texi: Likewise.
7661 * doc/posix-functions/isupper_l.texi: Likewise.
7662 * doc/posix-functions/iswalnum_l.texi: Likewise.
7663 * doc/posix-functions/iswalpha_l.texi: Likewise.
7664 * doc/posix-functions/iswblank_l.texi: Likewise.
7665 * doc/posix-functions/iswcntrl_l.texi: Likewise.
7666 * doc/posix-functions/iswctype_l.texi: Likewise.
7667 * doc/posix-functions/iswdigit_l.texi: Likewise.
7668 * doc/posix-functions/iswgraph_l.texi: Likewise.
7669 * doc/posix-functions/iswlower_l.texi: Likewise.
7670 * doc/posix-functions/iswprint_l.texi: Likewise.
7671 * doc/posix-functions/iswpunct_l.texi: Likewise.
7672 * doc/posix-functions/iswspace_l.texi: Likewise.
7673 * doc/posix-functions/iswupper_l.texi: Likewise.
7674 * doc/posix-functions/iswxdigit_l.texi: Likewise.
7675 * doc/posix-functions/isxdigit_l.texi: Likewise.
7676 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7677 * doc/posix-functions/strcasecmp_l.texi: Likewise.
7678 * doc/posix-functions/strcoll_l.texi: Likewise.
7679 * doc/posix-functions/strfmon_l.texi: Likewise.
7680 * doc/posix-functions/strftime_l.texi: Likewise.
7681 * doc/posix-functions/strncasecmp_l.texi: Likewise.
7682 * doc/posix-functions/strxfrm_l.texi: Likewise.
7683 * doc/posix-functions/tolower_l.texi: Likewise.
7684 * doc/posix-functions/toupper_l.texi: Likewise.
7685 * doc/posix-functions/towctrans_l.texi: Likewise.
7686 * doc/posix-functions/towlower_l.texi: Likewise.
7687 * doc/posix-functions/towupper_l.texi: Likewise.
7688 * doc/posix-functions/wcscoll_l.texi: Likewise.
7689 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7690 * doc/posix-functions/wctrans_l.texi: Likewise.
7691 * doc/posix-functions/wctype_l.texi: Likewise.
7692 * doc/glibc-functions/strptime_l.texi: Likewise.
7693 * doc/glibc-functions/strtod_l.texi: Likewise.
7694 * doc/glibc-functions/strtof_l.texi: Likewise.
7695 * doc/glibc-functions/strtol_l.texi: Likewise.
7696 * doc/glibc-functions/strtold_l.texi: Likewise.
7697 * doc/glibc-functions/strtoll_l.texi: Likewise.
7698 * doc/glibc-functions/strtoul_l.texi: Likewise.
7699 * doc/glibc-functions/strtoull_l.texi: Likewise.
7700 * doc/glibc-functions/wcsftime_l.texi: Likewise.
7701 * doc/glibc-functions/wcstod_l.texi: Likewise.
7702 * doc/glibc-functions/wcstof_l.texi: Likewise.
7703 * doc/glibc-functions/wcstol_l.texi: Likewise.
7704 * doc/glibc-functions/wcstold_l.texi: Likewise.
7705 * doc/glibc-functions/wcstoll_l.texi: Likewise.
7706 * doc/glibc-functions/wcstoul_l.texi: Likewise.
7707 * doc/glibc-functions/wcstoull_l.texi: Likewise.
7709 2009-11-24 Bruno Haible <bruno@clisp.org>
7711 duplocale: Fix logic bug.
7712 * lib/duplocale.c: Don't include <langinfo.h>.
7713 (_NL_LOCALE_NAME): Remove macro.
7714 (rpl_duplocale): Use setlocale instead of nl_langinfo.
7715 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7717 2009-11-23 Jim Meyering <meyering@redhat.com>
7719 test-update-copyright: don't hard-code /usr/bin/perl
7720 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7721 perl to print the current year. Gilles Espinasse reported that
7722 the replaced use of perl was hard-coded as /usr/bin/perl.
7724 2009-11-23 Bruno Haible <bruno@clisp.org>
7726 duplocale: Add support for glibc 2.3.x.
7727 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7729 2009-11-22 Bruno Haible <bruno@clisp.org>
7731 vasnprintf: Tiny optimization.
7732 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7735 2009-11-22 Bruno Haible <bruno@clisp.org>
7737 Tests for module 'duplocale'.
7738 * modules/duplocale-tests: New file.
7739 * tests/test-duplocale.c: New file.
7741 New module 'duplocale'.
7742 * m4/duplocale.m4: New file.
7743 * lib/locale.in.h (duplocale): New declaration.
7744 * lib/duplocale.c: New file.
7745 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7746 gl_LOCALE_H_DEFAULTS): New macros.
7747 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7748 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7749 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7751 * modules/duplocale: New file.
7752 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7754 2009-11-22 Bruno Haible <bruno@clisp.org>
7756 * modules/locale-tests (configure.ac): Test for newlocale function.
7757 * tests/test-locale.c: When the system has extended locale functions,
7758 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7760 locale: Make locale_t available when possible.
7761 * lib/locale.in.h: Include <xlocale.h> when it exists.
7762 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7763 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7764 * modules/locale (Depends-on): Add extensions.
7765 (Makefile.am): Also substitute HAVE_XLOCALE_H.
7766 * doc/posix-headers/locale.texi: Document the problem with locale_t.
7768 2009-11-22 Bruno Haible <bruno@clisp.org>
7771 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7773 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7774 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7775 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7777 2009-11-22 Bruno Haible <bruno@clisp.org>
7779 error: account for the possibility of freopen (stdout).
7780 * lib/error.c: Include <unistd.h>.
7781 (flush_stdout): New function, extracted from error and error_at_line.
7782 Determine stdout's fd dynamically.
7783 (error, error_at_line): Invoke flush_stdout.
7784 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7785 * modules/error (Depends-on): Add unistd.
7787 2009-11-22 Bruno Haible <bruno@clisp.org>
7789 diffseq: Add comment.
7790 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7792 2009-11-22 Jim Meyering <meyering@redhat.com>
7794 c-stack: avoid defining an unused static function
7795 * lib/c-stack.c (find_stack_direction): Do not define this function
7796 when it will not be used.
7798 diffseq: avoid spurious gcc warnings
7799 * lib/diffseq.h (IF_LINT2): Define.
7800 (compareseq): Use it to initialize two members of "part".
7801 This avoids two used-uninitialized warnings.
7803 2009-11-21 Jim Meyering <meyering@redhat.com>
7805 c-stack: avoid "ignoring return value of `write'" warning
7806 * lib/c-stack.c: Include "ignore-value.h".
7807 (die): Explicitly ignore each write return value.
7808 * modules/c-stack (Depends-on): Add ignore-value.
7810 2009-11-21 Bruno Haible <bruno@clisp.org>
7812 diffseq: reduce scope of variable 'best'.
7813 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7814 variable, earlier used for two different purposes.
7816 2009-11-21 Jim Meyering <meyering@redhat.com>
7818 diffseq: remove useless assignment to "best"
7819 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7820 assignment. At that point "best" is already guaranteed to be zero.
7822 2009-11-20 Eric Blake <ebb9@byu.net>
7824 build: mention ftp redirector in release announcements
7825 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7826 values that used to come from cfg.mk; mention FTP redirect URL.
7827 * build-aux/announce-gen: Mention the mirror list.
7828 Suggested by Karl Berry.
7830 nanosleep: improve port to mingw
7831 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7832 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7833 LIB_NANOSLEEP, but only when needed.
7834 * modules/select (Link): Document LIBSOCKET.
7835 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7838 nanosleep: work around cygwin bug
7839 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7840 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
7842 (getnow): Delete, not needed.
7843 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7845 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
7846 clock-time, gettime.
7847 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7849 * modules/nanosleep-tests: New test.
7850 * tests/test-nanosleep.c: New file.
7852 sleep: work around cygwin bug
7853 * lib/sleep.c (rpl_sleep): Work around the bug.
7854 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7855 (gl_PREREQ_SLEEP): Delete unused macro.
7856 * modules/sleep (Depends-on): Add verify.
7857 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7858 * modules/unistd (Makefile.am): Substitute witness.
7859 * lib/unistd.in.h (sleep): Update prototype.
7860 * doc/posix-functions/sleep.texi (sleep): Document the bug.
7861 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7862 * modules/sleep-tests (Depends-on): Check for alarm.
7864 2009-11-20 Jim Meyering <meyering@redhat.com>
7866 maint.mk: improve sc_prohibit_magic_number_exit
7867 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7868 so it does not match uses like System.exit(1).
7869 Add comments showing how to correct all offenders.
7871 2009-11-19 Eric Blake <ebb9@byu.net>
7873 xalloc-die-tests: add missing library
7874 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7876 test-xvasprintf: silence compiler warnings
7877 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7878 empty string from gcc.
7880 2009-11-19 Jim Meyering <meyering@redhat.com>
7882 xfreopen: new module, from coreutils
7883 * modules/xfreopen: New module.
7884 * lib/xfreopen.c: New file.
7885 * lib/xfreopen.h: New file.
7886 * MODULES.html.sh (File stream based Input/Output"): Add it.
7888 2009-11-19 Eric Blake <ebb9@byu.net>
7890 manywarnings: depend on warnings
7891 * modules/manywarnings (Depends-on): Add warnings.
7893 build: avoid compiler warnings
7894 * lib/select.c (rpl_select): Delete unused variable.
7895 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7897 2009-11-18 Eric Blake <ebb9@byu.net>
7899 tests: avoid false negative with --with-packager
7900 * tests/test-version-etc.sh: Discard packager information.
7901 * tests/test-argp-version-etc-1.sh: Likewise.
7902 Reported by Mike Frysinger.
7904 utimens: fix regression on Solaris
7905 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7906 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7907 can only change fd timestamps via futimesat. Instead, use an
7908 additional witness macro to avoid BSD bug.
7909 Reported by Jim Meyering.
7911 2009-11-17 Eric Blake <ebb9@byu.net>
7913 usleep: use it to simplify tests
7914 * modules/stat-time-tests (Depends-on): Add usleep.
7915 (configure.ac): Drop usleep check.
7916 * modules/chown-tests (Depends-on, configure.ac): Likewise.
7917 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7918 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7919 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7920 * modules/openat-tests (Depends-on, configure.ac): Likewise.
7921 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7922 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7923 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7925 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7926 * tests/test-lchown.h (nap): Likewise.
7927 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7928 * tests/test-stat-time.c (nap): Likewise.
7929 * tests/test-utimens-common.h (nap): Update comments.
7932 * modules/usleep: New file.
7933 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7934 * lib/usleep.c (usleep): Likewise.
7935 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7936 * modules/unistd (Makefile.am): Substitute witnesses.
7937 * lib/unistd.in.h (usleep): Add declaration.
7938 * doc/pastposix-functions/usleep.texi (usleep): Document this.
7939 * MODULES.html.sh (Date and time): Likewise.
7940 * modules/usleep-tests (Depends-on): New test.
7941 * tests/test-usleep.c: New file.
7943 chown: work around OpenBSD bug
7944 * lib/chown.c (rpl_chown): Work around the bug.
7945 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7946 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7947 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7948 * modules/chown (Depends-on): Add stdbool.
7949 * modules/lchown (Depends-on): Likewise.
7950 * doc/posix-functions/chown.texi (chown): Document the bug.
7951 * doc/posix-functions/lchown.texi (lchown): Likewise.
7952 * tests/test-lchown.h (test_chown): Relax test.
7954 mkstemp: avoid conflict with C++ keyword template
7955 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7956 * lib/mkostemp.c (mkostemp): Likewise.
7957 * lib/mkostemps.c (mkostemps): Likewise.
7958 * lib/mkstemp.c (mkstemp): Likewise.
7959 * lib/mkstemps.c (mkstemps): Likewise.
7961 xalloc-die-tests: optimize
7962 * tests/test-xalloc-die.sh: Reduce number of processes.
7964 2009-11-17 Simon Josefsson <simon@josefsson.org>
7966 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
7967 patch from ludo@gnu.org (Ludovic Courtès).
7969 2009-11-17 Jim Meyering <meyering@redhat.com>
7971 version-etc: use proper license string
7972 * modules/version-etc (License): Use LGPL, not LGPLv3+.
7973 * modules/version-etc-fsf: Likewise.
7975 2009-11-17 Simon Josefsson <simon@josefsson.org>
7977 * tests/test-xalloc-die.sh: Add license. Check that nothing is
7978 printed to stdout. Deal with EOL differences.
7980 2009-11-17 Eric Blake <ebb9@byu.net>
7982 unsetenv: work around Solaris bug
7983 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7984 * lib/unsetenv.c (rpl_unsetenv): Work around it.
7985 Reported by Jim Meyering.
7987 vasnprintf: avoid compiler warnings
7988 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7990 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7992 2009-11-17 Simon Josefsson <simon@josefsson.org>
7994 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7995 settings since xalloc-die is no longer the self test,
7998 2009-11-17 Jim Meyering <meyering@redhat.com>
8000 test-xalloc-die.sh: make the code agree with the commit log
8001 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8002 at the end, just in case you happen to have a test-xalloc-die
8003 program in some other PATH directory.
8005 test-xalloc-die.sh: fix a portability bug
8006 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8007 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8008 Otherwise, argv[0] (as often seen in diagnostics) would be too
8009 system-dependent, sometimes with, and sometimes without the leading "./".
8011 version-etc-fsf: relax license to LGPLv3+
8012 * modules/version-etc-fsf (License): Relax license.
8014 2009-11-16 Eric Blake <ebb9@byu.net>
8016 xalloc-die-tests: avoid printing null pointer
8017 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8019 * tests/test-xalloc-die.c (program_name): Declare.
8020 * tests/test-xalloc-die.sh (tmpfiles): New file.
8022 setenv, unsetenv: work around various bugs
8023 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8024 (setenv) [HAVE_SETENV]: Work around bugs.
8025 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8026 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8028 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8029 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8030 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8031 * modules/stdlib (Makefile.am): Update substitutions.
8032 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8033 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8034 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8035 * modules/setenv-tests: New test.
8036 * modules/unsetenv-tests: Likewise.
8037 * tests/test-setenv.c: New file.
8038 * tests/test-unsetenv.c: Likewise.
8040 2009-11-16 Jim Meyering <meyering@redhat.com>
8042 version-etc: relax license to LGPLv3+
8043 * modules/version-etc (License): Relax license.
8045 better AC_REQUIRE expanded-before-required-warning avoidance
8046 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8047 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8048 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
8049 which is no longer needed.
8051 2009-11-16 Eric Blake <ebb9@byu.net>
8053 test-freading: clean up temporary file
8054 * tests/test-freading.c (main): Remove file on success, and use
8055 ASSERT more liberally.
8056 Reported by Jim Meyering.
8058 2009-11-16 Jim Meyering <meyering@redhat.com>
8060 avoid new AC_REQUIRE expanded-before-required warnings
8061 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8063 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8064 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8066 2009-11-15 Simon Josefsson <simon@josefsson.org>
8068 * tests/test-xalloc-die.c: New file.
8069 * modules/xalloc-die-tests: New file.
8070 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8071 XFAIL_TESTS so it can be appended by modules.
8073 2009-11-15 Simon Josefsson <simon@josefsson.org>
8075 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
8076 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8078 2009-11-14 Eric Blake <ebb9@byu.net>
8080 fnmatch: avoid compiler warning
8081 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8082 to silence compiler warning about mismatch signedness in ?:.
8083 Reported by Robert Millan.
8085 intprops: add double-inclusion guard
8086 * lib/intprops.h: Allow idempotent includes.
8087 Suggested by Bruce Korb.
8089 openat: detect Solaris fchownat bug
8090 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
8091 penalizing glibc chownat when only lchownat is broken.
8092 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8093 trailing slash bugs.
8094 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8095 * modules/openat-tests (Files): Include more files.
8096 (Depends-on): Add mgetgroups, sleep, stat-time.
8097 (configure.ac): Add additional checks.
8098 (Makefile.am): Build new test.
8099 * tests/test-fchownat.c: New file.
8101 lchown: detect Solaris and FreeBSD bug
8102 * lib/lchown.c (rpl_lchown): Work around bug.
8103 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8104 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8105 * modules/unistd (Makefile.am): Populate it.
8106 * lib/unistd.in.h (lchown): Update declaration.
8107 * doc/posix-functions/lchown.texi (lchown): Document the bug.
8108 * modules/lchown-tests: New file.
8109 * tests/test-lchown.h (test_lchown): Likewise.
8110 * tests/test-lchown.c (main): Likewise.
8112 chown: detect Solaris and FreeBSD bug
8113 * lib/chown.c (rpl_chown): Work around bug.
8114 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8115 (gl_PREREQ_CHOWN): Delete.
8116 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8117 * modules/unistd (Makefile.am): Populate it.
8118 * lib/unistd.in.h (chown): Update declaration.
8119 * lib/lchown.c (chown): Update client.
8120 * modules/lchown (Depends-on): Add lstat.
8121 * doc/posix-functions/chown.texi (chown): Document the bug.
8122 * doc/posix-functions/getgroups.texi (getgroups): Document
8124 * modules/chown-tests: New file.
8125 * tests/test-chown.h (test_chown): Likewise.
8126 * tests/test-chown.c (main): Likewise.
8128 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
8130 gnulib-tool: correctly detect absence of m4 directories
8131 * gnulib-tool: Avoid extra newline on data passed to wc -l.
8133 2009-11-14 Jim Meyering <meyering@redhat.com>
8135 maint.mk: Prohibit inclusion of "xalloc.h" without use.
8136 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8138 2009-11-14 John W. Eaton <jwe@gnu.org>
8140 strftime.h: wrap funtion declaration in extern "C" block
8141 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8143 2009-11-13 Eric Blake <ebb9@byu.net>
8145 getgroups: avoid compiler warning
8146 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8148 getgroups: work around FreeBSD bug
8149 * lib/getgroups.c (rpl_getgroups): Work around the bug.
8150 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8151 * doc/posix-functions/getgroups.texi (getgroups): Document it.
8152 * tests/test-getgroups.c (main): Fix buffer overrun.
8154 getgroups: avoid compilation failure
8155 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8156 * modules/getgroups (Depends-on): Add stdint.
8158 2009-11-13 Jim Meyering <meyering@redhat.com>
8160 test-getgroups: avoid compilation failure
8161 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8163 2009-11-13 Eric Blake <ebb9@byu.net>
8165 mgetgroups: new module, taken from coreutils
8166 * modules/mgetgroups: New file.
8167 * lib/mgetgroups.h: Likewise.
8168 * lib/mgetgroups.c (mgetgroups): Likewise.
8169 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8170 * MODULES.html.sh (Users and groups): Mention it.
8172 getgroups: don't expose GETGROUPS_T to user
8173 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
8174 an element at a time if GETGROUPS_T is wrong size.
8175 * lib/getugroups.h (getugroups): Change signature.
8176 * lib/unistd.in.h (getgroups): Likewise.
8177 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8178 signature needs fixing.
8179 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8181 * modules/group-member (Depends-on): Add getgroups.
8182 * lib/group-member.c (group_info, get_group_info): Use gid_t.
8183 (group_member): Rely on getgroups replacement.
8184 * lib/getugroups.c (getugroups): Use gid_t.
8185 * tests/test-getgroups.c (main): Likewise.
8186 * NEWS: Mention the signature change.
8187 * doc/posix-functions/getgroups.texi (getgroups): Mention the
8188 problem with signature.
8189 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8190 GETGROUPS_T is still useful for setgroups.
8192 getgroups, getugroups: provide stubs for mingw
8193 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8194 * lib/getugroups.c (getugroups): Likewise.
8195 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8196 function. Modernize replacement scheme.
8197 (gl_PREREQ_GETGROUPS): Delete.
8198 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8199 * modules/getgroups (configure.ac): Declare witness.
8200 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8201 * modules/unistd (Depends-on): Substitute witness.
8202 * lib/unistd.in.h (getgroups): Declare replacement.
8204 getgroups: avoid calling exit
8205 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8207 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8209 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8210 exiting, in the rare case of malloc failure.
8212 getgroups: fix logic error
8213 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8214 has more than 20 groups.
8215 * modules/getgroups-tests: New test.
8216 * tests/test-getgroups.c: New file.
8218 2009-11-13 Simon Josefsson <simon@josefsson.org>
8220 * tests/test-base64.c: Improve.
8222 2009-11-13 Simon Josefsson <simon@josefsson.org>
8224 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8225 Blake <ebb9@byu.net>.
8227 2009-11-13 Simon Josefsson <simon@josefsson.org>
8229 * tests/test-xvasprintf.c: Add %s%s related checks.
8231 2009-11-12 Eric Blake <ebb9@byu.net>
8233 version-etc: match standards.texi style
8234 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8235 and use <> only for URLs.
8237 2009-11-10 Kamil Dudka <kdudka@redhat.com>
8239 fts: do not fail on a submount during traversal
8240 * lib/fts.c (fts_build): Read the stat info again after opening
8241 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8242 Original report at http://bugzilla.redhat.com/501848.
8244 2009-11-12 Jim Meyering <meyering@redhat.com>
8246 bootstrap: sync from coreutils
8247 * build-aux/bootstrap (bootstrap_epilogue): New function.
8248 Use git_modules_config in one more place. This make bootstrap's
8249 --gnulib-srcdir option more useful for testing.
8251 bootstrap: generalize autoheader check
8252 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8255 2009-11-11 Eric Blake <ebb9@byu.net>
8257 mkfifoat: use new modules for Solaris and BSD bugs
8258 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8259 * lib/mkfifoat.c (mknodat): Split...
8260 * lib/mknodat.c (mknodat): ...into new file.
8261 * modules/mkfifoat (Files): Ship new file.
8262 (Depends-on): Add mkfifo, mknod.
8263 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8264 (Depends-on): Add symlink.
8265 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
8266 redundant with test_mkfifo.h.
8267 (do_mkfifoat, do_mknodat): New helpers.
8270 * modules/mknod: New file.
8271 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8272 * lib/mknod.c (mknod): Likewise.
8273 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8275 * modules/sys_stat (Makefile.am): Substitute them.
8276 * lib/sys_stat.in.h (mknod): Declare replacement.
8277 * MODULES.html.sh (Support for systems lacking POSIX:2008):
8279 * doc/posix-functions/mknod.texi (mknod): Likewise.
8280 * modules/mknod-tests: New test.
8281 * tests/test-mknod.c: Likewise.
8284 * modules/mkfifo: New file.
8285 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8286 * lib/mkfifo.c (mkfifo): Likewise.
8287 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8289 * modules/sys_stat (Makefile.am): Substitute them.
8290 * lib/sys_stat.in.h (mkfifo): Declare replacement.
8291 * MODULES.html.sh (Support for systems lacking POSIX:2008):
8293 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8294 * modules/mkfifo-tests: New test.
8295 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8296 from test-mkfifoat.c.
8297 * tests/test-mkfifo.c: New file.
8299 readlink: detect FreeBSD bug
8300 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8302 * doc/posix-functions/readlink.texi (readlink): Document the bug.
8303 * tests/test-readlink.h (test_readlink): Enhance test.
8305 symlink: detect FreeBSD bug
8306 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8308 * doc/posix-functions/symlink.texi (symlink): Document the bug.
8309 * tests/test-symlink.h (test_symlink): Enhance test.
8311 2009-11-10 Eric Blake <ebb9@byu.net>
8313 link: detect FreeBSD bug
8314 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8316 * doc/posix-functions/link.texi (link): Document the bug.
8317 * tests/test-link.h (test_link): Enhance test.
8318 * tests/test-linkat.c (main): Update caller.
8320 unlink, remove: detect FreeBSD bug
8321 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8323 * doc/posix-functions/unlink.texi (unlink): Document the bug.
8324 * doc/posix-functions/remove.texi (remove): Likewise.
8325 * tests/test-unlink.h (test_unlink): Enhance test.
8326 * tests/test-remove.c (main): Likewise.
8328 2009-11-09 Eric Blake <ebb9@byu.net>
8330 rename: detect FreeBSD bug
8331 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8333 * modules/renameat-tests (Depends-on): Add filenamecat.
8334 * tests/test-rename.h (test_rename): Allow one more errno.
8335 * tests/test-renameat.c (main): Likewise.
8336 * doc/posix-functions/rename.texi (rename): Document the bug.
8338 open: detect FreeBSD bug
8339 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8341 * doc/posix-functions/open.texi (open): Document the bug.
8342 * doc/posix-functions/utimes.texi (utimes): Likewise.
8343 * tests/test-open.h (test_open): Add parameters, and test symlink
8345 * tests/test-open.c (main): Adjust caller.
8346 * tests/test-fcntl-safer.c (main): Likewise.
8347 * modules/open-tests (Depends-on): Add stdbool, symlink.
8348 * modules/fcntl-safer-tests (Depends-on): Likewise.
8349 * tests/test-openat.c (main): Add test-open tests.
8351 stat: detect FreeBSD bug
8352 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8354 * doc/posix-functions/stat.texi (stat): Document the bug.
8355 * tests/test-stat.h (test_stat_func): Add argument.
8356 * tests/test-stat.c (main): Adjust caller.
8357 * tests/test-fstatat.c (main): Likewise.
8358 * modules/stat-tests (Depends-on): Add stdbool, symlink.
8359 Reported by Jim Meyering.
8361 2009-11-09 James Youngman <jay@gnu.org>
8363 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8364 * lib/strftime.c: Correct placement of #include "ignore-value.h".
8366 2009-11-08 Jim Meyering <meyering@redhat.com>
8368 utimens: remove invalid futimesat call
8369 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8370 It used the file descriptor of the target file as the DIR_FD
8371 parameter and NULL as the file name. That caused failure with
8372 errno == EFAULT on FreeBSD-8.0-rc2
8374 2009-11-07 Eric Blake <ebb9@byu.net>
8376 fflush, freadseek: use fseeko, not fseek
8377 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8378 (clear_ungetc_buffer): Avoid potential problems on large files.
8379 * lib/freadseek.c (freadseek): Likewise.
8380 * modules/freadseek (Depends-on): Add fseeko.
8381 * modules/fseek (configure.ac): Set a witness.
8382 * tests/test-fflush.c (main): Use fseeko.
8383 * tests/test-fpurge.c (fseek): Disable link warning.
8384 * tests/test-freadable.c (fseek): Likewise.
8385 * tests/test-freading.c (fseek): Likewise.
8386 * tests/test-fseeko.c (fseek): Likewise.
8387 * tests/test-ftell.c (fseek): Likewise.
8388 * tests/test-ftello.c (fseek): Likewise.
8389 * tests/test-fwritable.c (fseek): Likewise.
8390 * tests/test-fwriting.c (fseek): Likewise.
8392 2009-11-06 Simon Josefsson <simon@josefsson.org>
8394 * modules/memchr (Depends-on): Drop getpagesize dependency.
8396 2009-11-06 Simon Josefsson <simon@josefsson.org>
8398 * build-aux/pmccabe2html: Disable execute bit. Suggested by
8399 Reported by Ludovic Courtès.
8400 * build-aux/pmccabe2html: Improve example usage.
8401 * build-aux/pmccabe2html: Drop #! header. Doc fix.
8403 2009-11-06 Jim Meyering <meyering@redhat.com>
8405 do-release-commit-and-tag: New module.
8406 Automate the release-commit and tag process.
8407 * build-aux/do-release-commit-and-tag: New script, from coreutils.
8408 * modules/do-release-commit-and-tag: New file.
8409 * MODULES.html.sh (Support for maintaining and releasing): Add it.
8411 2009-11-06 Simon Josefsson <simon@josefsson.org>
8413 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8414 because test-select.c uses inet_pton.
8416 2009-11-06 Simon Josefsson <simon@josefsson.org>
8418 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8419 GETADDRINFO_LIB. Bump serial number.
8420 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8421 Suggested by Eric Blake <ebb9@byu.net>.
8423 2009-11-05 Eric Blake <ebb9@byu.net>
8425 strtod: detect darwin bug
8426 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8427 Reported by Leo Davis.
8429 freopen-safer: new module
8430 * modules/freopen-safer: New module.
8431 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8432 * lib/freopen-safer.c (freopen_safer): New file.
8433 * lib/stdio-safer.h (freopen_safer): New declaration.
8434 * lib/stdio--.h (freopen): New override.
8435 * MODULES.html.sh (File stream based Input/Output): Mention it.
8436 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8437 freopen-safer module.
8438 * doc/posix-functions/stderr.texi (stderr): Likewise.
8439 * doc/posix-functions/stdin.texi (stdin): Likewise.
8440 * doc/posix-functions/stdout.texi (stdout): Likewise.
8441 * modules/freopen-safer-tests: New test.
8442 * tests/test-reopen-safer.c: New file.
8444 2009-11-05 Jim Meyering <meyering@redhat.com>
8446 maint.mk: Prohibit inclusion of "close-stream.h" without use.
8447 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8449 2009-11-05 Simon Josefsson <simon@josefsson.org>
8451 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8453 2009-11-05 Simon Josefsson <simon@josefsson.org>
8455 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8457 2009-11-05 Simon Josefsson <simon@josefsson.org>
8460 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8461 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8463 2009-11-05 Simon Josefsson <simon@josefsson.org>
8465 * tests/test-func.c: Also test value of __func__.
8467 2009-11-05 Simon Josefsson <simon@josefsson.org>
8469 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8470 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
8472 2009-11-05 Bruno Haible <bruno@clisp.org>
8475 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8476 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8477 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8479 2009-11-05 Bruno Haible <bruno@clisp.org>
8481 Tests for module 'inet_pton'.
8482 * modules/inet_pton-tests: New file.
8483 * tests/test-inet_pton.c: New file.
8485 2009-11-05 Bruno Haible <bruno@clisp.org>
8487 Tests for module 'inet_ntop'.
8488 * modules/inet_ntop-tests: New file.
8489 * tests/test-inet_ntop.c: New file.
8491 2009-11-04 Eric Blake <ebb9@byu.net>
8493 stdlib-safer: wrap all mkstemp variants
8494 * modules/mkostemp (configure.ac): Set witness.
8495 * modules/mkostemps (configure.ac): Likewise.
8496 * modules/mkstemps (configure.ac): Likewise.
8497 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8498 (mkstemps_safer): Wrap more functions.
8499 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8501 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8502 (mkstemps_safer): Implement the wrappers.
8504 mkstemps, mkostemps: new modules
8505 * modules/mkostemps: New module.
8506 * modules/mkstemps: Likewise.
8507 * lib/mkostemps.c (mkostemps): New file.
8508 * lib/mkstemps.c (mkstemps): Likewise.
8509 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8510 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8511 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8512 * modules/stdlib (Makefile.am): Substitute them.
8513 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8514 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8515 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8516 * doc/gnulib.texi (Glibc stdlib.h): Include them.
8517 * MODULES.html.sh (File system functions): Mention them.
8519 tempname: resync from glibc
8520 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
8521 same values for __GT_FILE as glibc. Abort even when assertions
8523 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8524 match its value otherwise. Allow idempotent inclusion.
8525 * lib/mkdtemp.c (mkdtemp): Adjust caller.
8526 * lib/mkostemp.c (mkostemp): Likewise.
8527 * lib/mkstemp.c (mkstemp): Likewise.
8528 * lib/tmpfile.c (tmpfile): Likewise.
8529 * NEWS: Document this.
8531 utimens: fix use of futimens on older Linux
8532 * lib/utimens.c (fdutimens): Use updated, rather than original,
8533 timespec to avoid bug in older Linux kernel.
8534 Reported by Simon Josefsson.
8536 2009-11-04 Bruno Haible <bruno@clisp.org>
8538 Make num_processors more flexible and consistent.
8539 * lib/nproc.h (enum nproc_query): New type.
8540 (num_processors): Add a 'query' argument.
8541 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8542 (num_processors): Add a 'query' argument. Test the value of the
8543 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8544 mingw, count the number of CPUs available for the current process.
8545 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8546 Check for sched_getaffinity and sched_getaffinity_np.
8547 * modules/nproc (Depends-on): Add c-ctype, extensions.
8548 * NEWS: Mention the change.
8550 2009-11-03 Bruno Haible <bruno@clisp.org>
8552 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8554 2009-11-03 Jim Meyering <meyering@redhat.com>
8556 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8557 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8560 2009-11-02 Eric Blake <ebb9@byu.net>
8562 mktime, timegm: share common declaration
8563 * lib/mktime-internal.h: New file.
8564 * lib/mktime.c: Use it rather than open-coding a declaration.
8565 * lib/timegm.c: Likewise.
8566 * modules/mktime (Files): Ship it.
8567 * modules/timegm (Files): Likewise.
8568 Suggested by Bruno Haible.
8570 test-update-copyright: update test to match script changes
8571 * tests/test-update-copyright.sh: Avoid hard-coding perl
8572 location. Don't update *.bak created by earlier runs.
8574 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
8575 Simon Josefsson <simon@josefsson.org>
8576 Bruno Haible <bruno@clisp.org>
8578 Fix link error on Solaris 8.
8579 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8580 also in libnsl. Define also INET_PTON_LIB.
8581 * modules/inet_pton (Link): New section.
8583 2009-11-02 Simon Josefsson <simon@josefsson.org>
8584 Bruno Haible <bruno@clisp.org>
8586 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8587 * modules/inet_ntop (Link): New section.
8588 Reported by Boyan Kasarov <bkasarov@gmail.com>.
8590 2009-11-02 Eric Blake <ebb9@byu.net>
8592 maint: avoid compiler warnings in m4 macros
8593 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8594 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8596 2009-11-02 Simon Josefsson <simon@josefsson.org>
8598 * m4/pmccabe2html.m4: Remove file.
8599 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
8600 function. Change maintainer.
8601 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8602 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
8605 2009-10-31 Eric Blake <ebb9@byu.net>
8607 fseeko: fix m4 regression
8608 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
8609 regression from 2009-10-27.
8610 Reported by Ralf Wildenhues.
8612 2009-10-31 Jim Meyering <meyering@redhat.com>
8614 inttostr: aesthetics and improved (compile-time) safety
8615 Define inttype_is_signed rather than inttype_is_unsigned,
8616 since the sole use is via "#if inttype_is_signed".
8617 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8618 inttype_is_unsigned.
8619 * lib/offtostr.c (inttype_is_signed): Likewise.
8620 * lib/uinttostr.c (inttype_is_signed): Likewise.
8621 * lib/umaxtostr.c (inttype_is_signed): Likewise.
8622 * lib/inttostr.c (inttostr): Use verify to cross-check the
8623 inttype_is_signed value and the signedness of the actual type.
8624 * modules/inttostr (Depends-on): Add verify.
8626 2009-10-30 Eric Blake <ebb9@byu.net>
8628 build: avoid compiler warnings
8629 * lib/fchmodat.c (lchmod): Mark unused variables.
8630 * lib/getopt.c (_getopt_initialize): Likewise.
8631 * lib/mktime.c (__mktime_internal): Provide prototype.
8632 * lib/inttostr.c (inttostr): Avoid compiler warning even with
8633 older gcc that do not understand #pragma GCC diagnostic.
8634 * lib/uinttostr.c (inttype_is_unsigned): Define.
8635 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8637 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8639 stat: fix compilation on AIX
8640 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8641 only see struct stat64.
8643 2009-10-30 Eric Blake <ebb9@byu.net>
8645 exclude: make more robust
8646 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8647 rather than masking a coding bug.
8648 Suggested by Bruno Haible.
8650 2009-10-30 Jim Meyering <meyering@redhat.com>
8652 perl scripts: remove #!/usr/bin/perl in favor of more portable...
8653 Rather than putting #!/usr/bin/perl on the first line,
8654 start with a variant of what's recommended by "man perlrun" that
8655 invokes the first "perl" program from your shell's search path.
8656 * build-aux/gitlog-to-changelog: Replace #!... as above.
8657 Add a "Local Variables" perl mode setting.
8658 Prompted by a patch from Ludovic Courtès.
8659 Improved by Eric Blake.
8660 * build-aux/useless-if-before-free: Likewise.
8661 * build-aux/announce-gen: Likewise.
8662 * build-aux/update-copyright: Likewise.
8664 2009-10-29 Eric Blake <ebb9@byu.net>
8666 filenamecat-lgpl: adjust clients
8667 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8669 * modules/renameat (Depends-on): Likewise.
8671 filenamecat: split into filenamecat-lgpl
8672 * modules/filenamecat-lgpl: New module.
8673 * modules/filenamecat (Files): Move library-safe files into
8675 (Depends-on): Add filenamecat-lgpl.
8676 (configure.ac): Declare witness.
8677 * lib/filenamecat.h (file_name_concat): Only declare when using
8679 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8681 * lib/filenamecat-lgpl.c: ...into new file.
8682 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8683 (gl_FILE_NAME_CONCAT): Use it.
8684 * MODULES.html.sh (File system functions): Mention new module.
8686 argp: avoid memory leak
8687 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8688 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8689 base_name, since the latter malloc()s and can call exit().
8690 Leak introduced 2006-07-03.
8692 dirname-lgpl: adjust clients that don't need full dirname
8693 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8694 * modules/filenamecat (Depends-on): Likewise.
8695 * modules/linkat (Depends-on): Likewise.
8696 * modules/mkancesdirs (Depends-on): Likewise.
8697 * modules/mkdir (Depends-on): Likewise.
8698 * modules/openat (Depends-on): Likewise.
8699 * modules/savewd (Depends-on): Likewise.
8700 * modules/rename (Depends-on): Likewise.
8701 (License): Relax license.
8702 * modules/mkdir-tests (Depends-on): Drop progname.
8703 (Makefile.am): Delete unneeded LDADD.
8704 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8706 dirname: split into dirname-lgpl
8707 * modules/dirname-lgpl: New module.
8708 * modules/dirname (Files): Move library-safe files into
8710 (Depends-on): Add dirname-lgpl.
8711 (configure.ac): Declare witness.
8712 * modules/double-slash-root (License): Relax license.
8713 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8715 * lib/dirname.c (dir_len, mdir_name): Move...
8716 * lib/dirname-lgpl.c: ...into new file.
8717 * lib/basename.c (last_component, base_len): Move...
8718 * lib/basename-lgpl.c: ...into new file.
8719 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8720 (gl_DIRNAME): Use it.
8721 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8723 * modules/dirname-tests (Depends-on): Add progname.
8724 * tests/test-dirname.c (program_name): Delete.
8726 mkdir: make safe for libraries
8727 * modules/mkdir (Depends-on): Drop xalloc.
8728 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8731 tests: avoid some compiler warnings
8732 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8734 * tests/test-memchr.c (main): Avoid type mismatch.
8735 * tests/test-arpa_inet.c (main): Avoid unused parameters.
8736 * tests/test-base64.c (main): Likewise.
8737 * tests/test-getdelim.c (main): Likewise.
8738 * tests/test-gethostname.c (main): Likewise.
8739 * tests/test-getline.c (main): Likewise.
8740 * tests/test-netinet_in.c (main): Likewise.
8741 * tests/test-select.c (open_server_socket, main): Likewise.
8742 * tests/test-select-stdin.c (main): Likewise.
8743 * tests/test-sockets.c (main): Likewise.
8744 * tests/test-strsignal.c (main): Likewise.
8745 * tests/test-sys_select.c (main): Likewise.
8746 * tests/test-sys_socket.c (main): Likewise.
8747 * tests/test-u64.c (main): Likewise.
8748 * tests/test-xfprintf-posix.c (main): Likewise.
8749 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8751 sockets: avoid compiler warning
8752 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8754 maint: detect usage(1) and other suspicious exits
8755 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8757 2009-10-29 Jim Meyering <meyering@redhat.com>
8759 timespec: long-to-int truncation could make timespec_cmp malfunction
8760 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8761 a multiple of 2^32 nanoseconds as no difference.
8763 2009-10-28 Jim Meyering <meyering@redhat.com>
8765 fprintftime: wrap macro code argument in "do {...} while(0)"
8766 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8767 cpy macro must be a statement that can be followed by a semicolon.
8768 Now that the else clause contains a comment and is hence longer
8769 than one line, I require curly braces. That in turn requires
8770 that we wrap this code block in the standard do...while(0).
8772 fprintftime: remove stray semicolon from previous change
8773 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8775 fprintftime: avoid a warning about ignored fwrite return value
8776 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8777 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8779 * modules/fprintftime (Depends-on): Add ignore-value.
8781 exclude: avoid an unwarranted warning
8782 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8784 2009-10-27 Eric Blake <ebb9@byu.net>
8786 fseek: avoid compilation failure when fflush is replaced
8787 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8788 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8790 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8791 module is not in use; since REPLACE_FSEEK worked otherwise.
8792 (GNULIB_FTELLO): Likewise for ftell.
8793 Reported by Ian Beckwith and others.
8795 2009-10-27 Bruno Haible <bruno@clisp.org>
8797 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8798 Reported by Jim Meyering.
8800 2009-10-27 Jim Meyering <jim@meyering.net>
8801 Bruno Haible <bruno@clisp.org>
8803 Avoid warning despite dropping the return value of fwrite.
8804 * lib/unicodeio.c: Include ignore-value.h.
8805 (fwrite_success_callback): Explicitly ignore fwrite's return value.
8806 * modules/unicodeio (Depends-on): Add ignore-value.
8808 2009-10-26 Eric Blake <ebb9@byu.net>
8810 areadlinkat: fix fallback path
8811 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8814 2009-10-22 Pádraig Brady <P@draigBrady.com>
8816 Use a better IO block size for modern systems
8817 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8818 * lib/md2.c: Likewise.
8819 * lib/md4.c: Likewise.
8820 * lib/md5.c: Likewise.
8821 * lib/sha1.c: Likewise.
8822 * lib/sha256.c: Likewise.
8823 * lib/sha512.c: Likewise.
8825 2009-10-22 Eric Blake <ebb9@byu.net>
8827 tests: avoid several compiler warnings
8828 * tests/test-getcwd.c (main): Avoid buffer underflow.
8829 * tests/test-getdate.c (main): String literals are not safe with
8830 putenv, so use setenv. Declare unused argument.
8831 * modules/getdate-tests (Depends-on): Add setenv.
8832 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
8833 problems with string literals in char *.
8834 * tests/test-hash.c (main): Avoid shadowing declaration.
8835 (insert_new): Treat string literals as char const *.
8836 * tests/test-getopt.h (test_getopt): Likewise.
8837 (getopt_loop): Alter types to minimize casting elsewhere.
8838 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8839 (test_getopt_long_posix): Likewise.
8840 (do_getopt_long): Add wrapper to minimize casting.
8841 * tests/test-atexit.c (clear_temp_file): Use void.
8842 * tests/test-areadlink-with-size.c (main): Declare unused
8844 * tests/test-areadlink.c (main): Likewise.
8845 * tests/test-areadlinkat-with-size.c (main): Likewise.
8846 * tests/test-areadlinkat.c (main): Likewise.
8847 * tests/test-canonicalize-lgpl.c (main): Likewise.
8848 * tests/test-canonicalize.c (main): Likewise.
8849 * tests/test-dirent-safer.c (main): Likewise.
8850 * tests/test-dirname.c (main): Likewise.
8851 * tests/test-dup2.c (main): Likewise.
8852 * tests/test-fchdir.c (main): Likewise.
8853 * tests/test-fcntl-h.c (main): Likewise.
8854 * tests/test-fcntl-safer.c (main): Likewise.
8855 * tests/test-fdopendir.c (main): Likewise.
8856 * tests/test-fdutimensat.c (main): Likewise.
8857 * tests/test-fflush.c (main): Likewise.
8858 * tests/test-filenamecat.c (main): Likewise.
8859 * tests/test-filevercmp.c (main): Likewise.
8860 * tests/test-fopen-safer.c (main): Likewise.
8861 * tests/test-fopen.c (main): Likewise.
8862 * tests/test-fpending.c (main): Likewise.
8863 * tests/test-fpurge.c (main): Likewise.
8864 * tests/test-freading.c (main): Likewise.
8865 * tests/test-fstatat.c (main): Likewise.
8866 * tests/test-fsync.c (main): Likewise.
8867 * tests/test-futimens.c (main): Likewise.
8868 * tests/test-getndelim2.c (main): Likewise.
8869 * tests/test-gettimeofday.c (main): Likewise.
8870 * tests/test-getopt.c (main): Likewise.
8871 * tests/test-i-ring.c (main): Likewise.
8872 * tests/test-inttypes.c (main): Likewise.
8873 * tests/test-link.c (main): Likewise.
8874 * tests/test-lstat.c (main): Likewise.
8875 * tests/test-math.c (main): Likewise.
8876 * tests/test-md5.c (main): Likewise.
8877 * tests/test-memchr2.c (main): Likewise.
8878 * tests/test-memrchr.c (main): Likewise.
8879 * tests/test-mkdir.c (main): Likewise.
8880 * tests/test-mkdirat.c (main): Likewise.
8881 * tests/test-mkfifoat.c (main): Likewise.
8882 * tests/test-open.c (main): Likewise.
8883 * tests/test-openat-safer.c (main): Likewise.
8884 * tests/test-openat.c (main): Likewise.
8885 * tests/test-quotearg.c (main): Likewise.
8886 * tests/test-rawmemchr.c (main): Likewise.
8887 * tests/test-readlink.c (main): Likewise.
8888 * tests/test-remove.c (main): Likewise.
8889 * tests/test-rename.c (main): Likewise.
8890 * tests/test-renameat.c (main): Likewise.
8891 * tests/test-rmdir.c (main): Likewise.
8892 * tests/test-sha1.c (main): Likewise.
8893 * tests/test-signal.c (main): Likewise.
8894 * tests/test-sigaction.c (main): Likewise.
8895 * tests/test-stat.c (main): Likewise.
8896 * tests/test-stat-time.c (main): Likewise.
8897 * tests/test-stddef.c (main): Likewise.
8898 * tests/test-stdint.c (main): Likewise.
8899 * tests/test-stdio.c (main): Likewise.
8900 * tests/test-stdlib.c (main): Likewise.
8901 * tests/test-strchrnul.c (main): Likewise.
8902 * tests/test-strerror.c (main): Likewise.
8903 * tests/test-string.c (main): Likewise.
8904 * tests/test-strtod.c (main): Likewise.
8905 * tests/test-strverscmp.c (main): Likewise.
8906 * tests/test-symlink.c (main): Likewise.
8907 * tests/test-symlinkat.c (main): Likewise.
8908 * tests/test-sys_stat.c (main): Likewise.
8909 * tests/test-sys_time.c (main): Likewise.
8910 * tests/test-time.c (main): Likewise.
8911 * tests/test-unistd.c (main): Likewise.
8912 * tests/test-unlink.c (main): Likewise.
8913 * tests/test-unlinkat.c (main): Likewise.
8914 * tests/test-utimens.c (main): Likewise.
8915 * tests/test-utimensat.c (main): Likewise.
8916 * tests/test-version-etc.c (main): Likewise.
8917 * tests/test-wchar.c (main): Likewise.
8918 * tests/test-wctype.c (main): Likewise.
8919 * tests/test-xprintf-posix.c (main): Likewise.
8920 * tests/test-posixtm.c (main): Likewise.
8921 (STREQ): Delete unused macro.
8922 * tests/test-linkat.c (main): Declare unused arguments. Avoid
8924 * tests/test-memchr.c (main): Likewise.
8926 2009-10-21 Eric Blake <ebb9@byu.net>
8928 areadlinkat: avoid failure on older glibc
8929 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8930 rather than mis-comparing 0 against FUNC_RESULT of char*.
8932 2009-10-21 Bruno Haible <bruno@clisp.org>
8934 * modules/stpncpy (License): Relicense under LGPLv2+.
8935 Reported by David Lutterkort <lutter@redhat.com>.
8937 2009-10-20 Eric Blake <ebb9@byu.net>
8939 utimensat: work around Solaris 9 bug
8940 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8941 has trailing slash bugs.
8942 * tests/test-lutimens.h (test_lutimens): Enhance test.
8943 * tests/test-utimens.h (test_utimens): Likewise.
8944 * doc/posix-functions/utime.texi (utime): Enhance documentation.
8945 * doc/posix-functions/utimes.texi (utimes): Likewise.
8946 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8947 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8948 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8949 * doc/posix-functions/futimens.texi (futimens): Likewise.
8951 fdutimensat: new module
8952 * modules/fdutimensat: New file.
8953 * lib/fdutimensat.c (fdutimensat): Likewise.
8954 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8955 * MODULES.html.sh (File system functions): Mention module.
8956 * modules/fdutimensat-tests: New test.
8957 * tests/test-fdutimensat.c: Likewise.
8959 doc: regenerate INSTALL
8960 * doc/INSTALL: Reflect recent autoconf update.
8961 * doc/INSTALL.ISO: Likewise.
8962 * doc/INSTALL.UTF-8: Likewise.
8964 2009-10-20 Pádraig Brady <P@draigBrady.com>
8966 acl: warn if ACL support is not detected
8967 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8969 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
8971 * lib/nproc.h: Add extern "C" block for C++.
8973 2009-10-18 Reuben Thomas <rrt@sc3d.org>
8974 Bruno Haible <bruno@clisp.org>
8976 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8977 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8978 * doc/posix-functions/isalpha.texi: Likewise.
8979 * doc/posix-functions/isblank.texi: Likewise.
8980 * doc/posix-functions/iscntrl.texi: Likewise.
8981 * doc/posix-functions/isdigit.texi: Likewise.
8982 * doc/posix-functions/isgraph.texi: Likewise.
8983 * doc/posix-functions/islower.texi: Likewise.
8984 * doc/posix-functions/isprint.texi: Likewise.
8985 * doc/posix-functions/ispunct.texi: Likewise.
8986 * doc/posix-functions/isspace.texi: Likewise.
8987 * doc/posix-functions/isupper.texi: Likewise.
8988 * doc/posix-functions/isxdigit.texi: Likewise.
8990 2009-10-18 Bruno Haible <bruno@clisp.org>
8992 Tests for module 'isblank'.
8993 * modules/isblank-tests: New file.
8994 * tests/test-isblank.c: New file.
8996 New module 'isblank'.
8997 * lib/isblank.c: New file.
8998 * m4/isblank.m4: New file.
8999 * modules/isblank: New file.
9000 * doc/posix-functions/isblank.texi: Mention the new module.
9002 2009-10-18 Bruno Haible <bruno@clisp.org>
9005 * lib/ctype.in.h: New file.
9006 * m4/ctype.m4: New file.
9007 * modules/ctype: New file.
9008 * doc/posix-headers/ctype.texi: Mention the new module.
9010 2009-10-18 Jim Meyering <meyering@redhat.com>
9012 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9013 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9014 right after its initialization, rather than farther down.
9015 Keeping these in close proximity makes it easier to ensure
9016 that each such variable is initialized. E.g.,
9019 AC_SUBST([LIB_CLOCK_GETTIME])
9021 This change also increments these serial numbers.
9022 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9023 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9024 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9026 2009-10-18 Bruno Haible <bruno@clisp.org>
9028 Don't let environment variables perturb build.
9029 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9030 (gl_PREREQ_GETHRXTIME): ... not here.
9032 2009-10-18 Bruno Haible <bruno@clisp.org>
9034 Avoid symlink attack in localcharset module.
9035 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9036 (O_NOFOLLOW): Define fallback.
9037 (get_charset_aliases): Don't open the file if it is a symbolic link.
9038 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9040 (gl_FCNTL_H): Require it.
9041 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9042 * modules/localcharset (Files): Add m4/fcntl_h.m4.
9043 Reported by Fergal Glynn <fglynn@veracode.com>.
9045 2009-10-18 Bruno Haible <bruno@clisp.org>
9047 Implement nproc for mingw.
9048 * lib/nproc.c: Include <windows.h>
9049 (num_processors): On native Windows platforms, try GetSystemInfo.
9051 2009-10-18 Bruno Haible <bruno@clisp.org>
9053 Implement nproc for IRIX.
9054 * lib/nproc.c: Include <sys/sysmp.h>.
9055 (num_processors): On IRIX systems, try sysmp.
9056 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9058 2009-10-18 Bruno Haible <bruno@clisp.org>
9060 Implement nproc for HP-UX.
9061 * lib/nproc.c: Include <sys/pstat.h>
9062 (num_processors): On HP-UX systems, try pstat_getdynamic.
9063 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9066 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
9067 Bruno Haible <bruno@clisp.org>
9069 Implement nproc for NetBSD, OpenBSD.
9070 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9071 (ARRAY_SIZE): New macro.
9072 (num_processors): On BSD systems, try sysctl of HW_NCPU.
9073 * m4/nproc.m4: New file.
9074 * modules/nproc (Files): Add m4/nproc.m4.
9075 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9076 (Makefile.am): Instead, augment lib_SOURCES.
9078 2009-10-18 Bruno Haible <bruno@clisp.org>
9080 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9081 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9084 2009-10-16 Eric Blake <ebb9@byu.net>
9086 utimensat: new module
9087 * modules/utimensat: New file.
9088 * lib/utimensat.c (utimensat): Likewise.
9089 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9090 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9091 so we can work around Linux bugs.
9092 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9093 * modules/sys_stat (Makefile.am): Substitute them.
9094 * lib/sys_stat.in.h (utimensat): Declare it.
9095 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9096 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9097 * modules/utimensat-tests: New test.
9098 * tests/test-utimensat.c: Likewise.
9100 utimens: let lutimens work on non-symlinks
9101 * lib/utimens.c (lutimens): Fall back to utimens rather than
9102 failing with ENOSYS, when file is not a symlink.
9103 (utimens): Reduce redirection.
9104 * tests/test-lutimens.h (test_lutimens): Update test to cover
9106 * tests/test-utimens.h (test_utimens): Update test to cover
9108 * tests/test-utimens.c (main): Update caller.
9110 utimens: cache whether utimensat syscall works
9111 * lib/utimens.c (utimensat_works_really): New cache variable.
9112 (fdutimens, lutimens): Use it to avoid failing syscall.
9114 test-stat-time, test-utimens: improve portability
9115 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9116 ext4 on alpha, and for cygwin.
9117 * tests/test-utimens-common.h: New file.
9118 (nap): Factor delays into single function.
9119 * tests/test-lutimens.h (test_lutimens): Use new header.
9120 * tests/test-futimens.h (test_futimens): Likewise.
9121 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
9122 timestamps to occur from same machine, as was done previously for
9124 * modules/utimens-tests (Files): Ship new file.
9125 * modules/futimens-tests (Files): Likewise.
9126 Reported in part by Jim Meyering.
9128 sys_stat: sort replacement declarations
9129 * lib/sys_stat.in.h: Sort declarations.
9130 * lib/futimens.c (futimens): Fix typo.
9132 2009-10-15 Jim Meyering <meyering@redhat.com>
9134 don't let environment settings perturb build
9135 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9136 could cause a configure-time and/or build-time malfunction.
9137 Typically, a configure-time function-in-library test is performed
9142 prefix_saved_LIBS=$LIBS
9143 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9144 [test "$ac_cv_search_FUNC" = "none required" ||
9145 LIB_VAR=$ac_cv_search_FUNC])
9146 LIBS=$prefix_saved_LIBS
9148 However, in each of the files affected by this change, the LIB_VAR=
9149 initialization was omitted. Thus, when set in the environment, its
9150 value would propagate into generated Makefiles when FUNC is not found
9152 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9153 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9154 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9156 2009-10-14 Eric Blake <ebb9@byu.net>
9158 fchdir: avoid infinite recursion in mingw
9159 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9162 test-stat-time: port to mingw
9163 * tests/test-stat-time.c (force_unlink): Return a value.
9164 (test_ctime) [W32]: Fix compilation error.
9165 (nap): Don't call usleep with too large an argument. Use
9167 * doc/pastposix-functions/usleep.texi (usleep): Document the
9170 2009-10-13 Jim Meyering <meyering@redhat.com>
9172 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9173 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9174 * modules/pipe-filter-ii: Likewise.
9175 * modules/sys_socket-tests: Likewise.
9176 * modules/tsearch-tests: Likewise.
9177 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9178 (check): Depend on it.
9180 2009-10-12 Eric Blake <ebb9@byu.net>
9182 utimens-tests: port to NFS file systems
9183 * tests/test-utimens.h (test_utimens): Refactor utimecmp
9184 comparisons to avoid spurious failures from timestamp drift
9185 between NFS machines.
9187 2009-10-12 Eric Blake <ebb9@byu.net>
9189 stat-time-tests: minor cleanups
9190 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9191 * tests/test-stat-time.c (nap): Separate assignment from call.
9192 Suggested by Paolo Bonzini and Bruno Haible.
9194 sys_stat: guarantee struct timespec
9195 * lib/sys_stat.in.h (includes): Always include <time.h>
9196 * modules/sys_stat (Depends-on): Add time.
9197 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9198 mode_t permission values.
9199 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9200 get at subsecond timestamps.
9202 2009-10-10 Eric Blake <ebb9@byu.net>
9204 futimens: new module
9205 * modules/futimens: New file.
9206 * lib/futimens.c (futimens): Likewise.
9207 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9208 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9209 we can work around Linux bugs.
9210 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9211 * modules/sys_stat (Makefile.am): Substitute them.
9212 * lib/sys_stat.in.h (futimens): Declare it.
9213 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9214 * doc/posix-functions/futimens.texi (futimens): Likewise.
9215 * modules/futimens-tests: New test.
9216 * tests/test-futimens.c: Likewise.
9218 utimens: introduce fdutimens
9219 * lib/utimens.h (fdutimens): New prototype.
9220 * lib/utimens.c (gl_futimens): Move guts...
9221 (fdutimens): ...to new interface.
9222 * tests/test-utimens.c (do_fdutimens): Use it.
9224 utimens: add UTIME_NOW and UTIME_OMIT support
9225 * lib/utimens.c (validate_timespec, update_timespec): New helper
9227 (gl_futimens, lutimens): Use them.
9228 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9230 (Link): Mention resulting library dependency.
9231 * modules/utimecmp (Link): Likewise.
9232 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9233 (Makefile.am): Pick up library dependency.
9234 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9236 * tests/test-sys_stat.c: Test the definitions.
9237 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9238 * NEWS: Document library dependency.
9240 utimecmp: support symlink timestamps
9241 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
9242 hashing when possible. Use pathconf when available.
9243 (SYSCALL_RESOLUTION): Recognize tighter resolution.
9244 * modules/utimecmp (Depends-on): Add lstat.
9246 utimens: add lutimens interface
9247 * lib/utimens.c (lutimens): New function.
9248 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9249 * lib/utimens.h (lutimens): Declare new interface.
9250 * tests/test-utimens.c (main): Enhance test.
9251 * tests/test-lutimens.h (test_lutimens): New file.
9252 * modules/utimens-tests (Files): Distribute it.
9253 (Depends-on): Add symlink.
9254 (configure.ac): Check for usleep.
9256 utimens: validate futimens usage
9257 * lib/utimens.c (gl_futimens): Require valid fd up front, using
9258 fewer syscalls on failure later on. Avoid compiler warning on
9260 * modules/utimens (Depends-on): Add dup2.
9263 * modules/utimens-tests: New test.
9264 * tests/test-utimens.h: New file.
9265 * tests/test-futimens.h: Likewise.
9266 * tests/test-utimens.c: Likewise.
9268 doc: mention timestamp portability issues
9269 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9271 * doc/posix-functions/utime.texi (utime): Likewise.
9272 * doc/posix-functions/utimes.texi (utimes): Likewise.
9273 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9275 * doc/posix-functions/futimens.texi (futimens): Mention utimens
9277 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9278 Mention weakness with symlink timestamps.
9279 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9280 to utimensat/futimens instead.
9281 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9283 test-dup2: enhance test
9284 * tests/test-dup2.c (main): Also check AT_FDCWD.
9286 test-stat-time: avoid more spurious failures
9287 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9288 xfs; and avoid race if the two timestamps cross quantization edge.
9290 relocatable: prefer 'file system' over 'filesystem'
9291 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9292 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9293 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9294 * doc/relocatable.texi (Enabling Relocatability): Likewise.
9295 * lib/relocatable.c (compute_curr_prefix): Likewise.
9297 2009-10-10 Jim Meyering <meyering@redhat.com>
9299 stat-time-tests: check for the usleep function
9300 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9302 2009-10-10 Bruno Haible <bruno@clisp.org>
9304 * modules/xnanosleep: Put the Link section after the Include section.
9306 2009-10-09 Eric Blake <ebb9@byu.net>
9308 dup2: work around FreeBSD 6.1 bug
9309 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9310 * doc/posix-functions/dup2.texi (dup2): Document it.
9311 Reported by Nelson H. F. Beebe and Jim Meyering.
9313 test-stat-time: port to buggy NFS clients
9314 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9315 (test_ctime): Also skip test if mtime and ctime are skewed.
9317 maint: prefer 'file system' over 'filesystem'
9318 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9319 * doc/posix-functions/lstat.texi (lstat): Likewise.
9320 * lib/file-has-acl.c (file_has_acl): Likewise.
9321 * lib/fwriteerror.c [TEST]: Likewise.
9322 * tests/test-areadlink.h (test_areadlink): Likewise.
9323 * tests/test-areadlinkat-with-size.c (main): Likewise.
9324 * tests/test-areadlinkat.c (main): Likewise.
9325 * tests/test-canonicalize-lgpl.c (main): Likewise.
9326 * tests/test-canonicalize.c (main): Likewise.
9327 * tests/test-fstatat.c (main): Likewise.
9328 * tests/test-linkat.c (main): Likewise.
9329 * tests/test-lstat.h (test_lstat_func): Likewise.
9330 * tests/test-mkdir.h (test_mkdir): Likewise.
9331 * tests/test-readlink.h (test_readlink): Likewise.
9332 * tests/test-remove.c (main): Likewise.
9333 * tests/test-rename.h (test_rename): Likewise.
9334 * tests/test-renameat.c (main): Likewise.
9335 * tests/test-rmdir.h (test_rmdir_func): Likewise.
9336 * tests/test-symlink.h (test_symlink): Likewise.
9337 * tests/test-symlinkat.c (main): Likewise.
9338 * tests/test-unlink.h (test_unlink_func): Likewise.
9339 * tests/test-unlinkat.c (main): Likewise.
9341 maint: make realtime library usage explicit
9342 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9343 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9344 * modules/settime (Link): Likewise.
9345 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9347 test-stat-time: speed up execution
9348 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9350 (nap): New helper function.
9351 (prepare_test): Use it to reduce sleep time.
9352 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9354 * modules/stat-time-tests (configure.ac): Check for usleep.
9356 2009-10-09 Jim Meyering <meyering@redhat.com>
9358 selinux-h: always use getfilecon wrappers
9359 * lib/getfilecon.c: New file.
9360 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9361 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9362 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9363 (fgetfilecon): Provide a stub.
9364 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9365 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9366 file unconditionally.
9367 When <selinux/selinux.h> is found, arrange to use wrappers.
9368 * modules/selinux-h (Files): Add getfilecon.c.
9369 (Makefile.am): Substitute include-next-related bits
9370 into the now-always-generated selinux/selinux.h file.
9371 * doc/glibc-functions/lgetfilecon.texi: New file.
9372 * doc/glibc-functions/fgetfilecon.texi: New file.
9373 * doc/glibc-functions/getfilecon.texi: New file.
9374 * doc/glibc-functions/getfilecon-desc.texi: New file.
9375 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9376 which to pull in the new files.
9377 * MODULES.html.sh (Misc): Add selinux-h.
9379 2009-10-08 Jim Meyering <meyering@redhat.com>
9381 unistd: fix comment typo
9382 * lib/unistd.in.h (euidaccess): Fix a comment typo.
9384 2009-10-08 Eric Blake <ebb9@byu.net>
9386 areadlink: use SIZE_MAX consistently
9387 * modules/areadlink (Depends-on): Add stdint.
9388 * modules/areadlink-with-size (Depends-on): Likewise.
9389 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9390 gives NULL; drop sys/types, since unistd gives size_t; and add
9391 stdint for SIZE_MAX.
9392 (SIZE_MAX): Rely on headers.
9393 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9395 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9396 (SIZE_MAX): Likewise.
9397 (INITIAL_BUF_SIZE): Turn into enum.
9398 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9400 2009-10-08 Jim Meyering <meyering@redhat.com>
9402 areadlinkat: avoid compilation failure
9403 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9404 Fix typo in comment.
9406 2009-10-07 Eric Blake <ebb9@byu.net>
9408 areadlinkat-with-size: new module
9409 * modules/areadlinkat-with-size: New module.
9410 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9411 * lib/areadlink.h (areadlinkat): Declare it.
9412 * MODULES.html.sh (File system functions): Mention it.
9413 * modules/areadlinkat-with-size-tests: New test.
9414 * tests/test-areadlinkat-with-size.c: New file.
9416 xreadlinkat: new module
9417 * modules/xreadlinkat: New module.
9418 * lib/xreadlinkat.c (xreadlinkat): New file.
9419 * lib/xreadlink.h (xreadlinkat): Declare it.
9420 * MODULES.html.sh (File system functions): Mention it.
9422 areadlinkat: new module
9423 * lib/at-func.c (FUNC_FAIL): New define.
9424 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9425 * modules/areadlinkat: New module.
9426 * lib/linkat.c (areadlinkat): Move...
9427 * lib/areadlinkat.c (areadlinkat): ...to new file.
9428 * lib/areadlink.h (areadlinkat): Declare it.
9429 * modules/linkat (Depends-on): Add areadlinkat.
9430 * MODULES.html.sh (File system functions): Mention it.
9431 * modules/areadlinkat-tests: New test.
9432 * tests/test-areadlinkat.c: New file.
9434 areadlink, areadlink-with-size: add tests
9435 * modules/areadlink-tests: New test.
9436 * modules/areadlink-with-size-tests: Likewise.
9437 * tests/test-areadlink.h: New file.
9438 * tests/test-areadlink.c: Likewise.
9439 * tests/test-areadlink-with-size.c: Likewise.
9441 maint: minor cleanups
9442 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9443 _UNUSED_PARAMETER_ instead.
9444 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9445 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9446 * modules/linkat-tests (Files): Distribute test-link.h.
9448 openat, utimens: whitespace cleanup
9449 * lib/openat.c: Prefer space throughout, rather than mix of 8
9451 * lib/at-func.c: Likewise.
9452 * lib/utimens.c: Likewise.
9454 openat: avoid using wrong fd
9455 * lib/openat.c (openat_permissive): Reject user's fd if saving the
9456 working directory chooses same fd.
9457 * lib/at-func.c (AT_FUNC_NAME): Likewise.
9459 mkdir, mkdirat: fix cygwin 1.5.x bug
9460 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9461 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9462 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9464 (gl_PREREQ_MKDIR): Delete unused macro.
9465 * modules/mkdir (Files): Track file rename.
9466 (configure.ac): Update macro name.
9467 * modules/openat (Depends-on): Add mkdir.
9468 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9470 mkdir, mkdirat: add tests
9471 * modules/mkdir-tests: New test.
9472 * tests/test-mkdir.h: New file.
9473 * tests/test-mkdir.c: Likewise.
9474 * tests/test-mkdirat.c: Likewise.
9475 * modules/openat-tests (Files): Add new files.
9476 (Makefile.am): Run new test.
9478 2009-10-06 Eric Blake <ebb9@byu.net>
9480 doc: tweak *at function documentation
9481 * doc/posix-functions/faccessat.texi (faccessat): Mention
9482 known issue with replacement.
9483 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9484 * doc/posix-functions/linkat.texi (linkat): Likewise.
9485 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9486 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9487 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9488 * doc/posix-functions/renameat.texi (renameat): Likewise.
9489 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9491 openat: fix GNU/Hurd bug in unlinkat
9492 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9494 * doc/posix-functions/unlink.texi (unlink): Document this.
9495 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9497 fdopendir: fix GNU/Hurd bug
9498 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9499 allowing non-directory fds.
9500 * lib/fdopendir.c (rpl_fdopendir): Work around it.
9501 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9502 * modules/dirent (Makefile.am): Substitute it.
9503 * lib/dirent.in.h (fdopendir): Declare replacement.
9504 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9505 * tests/test-fdopendir.c (main): Test something other than
9506 /dev/null, since on Hurd that behaves like a directory.
9508 test-symlink: port to GNU/Hurd
9509 * tests/test-symlink.h (test_symlink): Relax expected errno.
9511 doc: tweak more cygwin information
9512 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9513 now compatible with glibc.
9514 * doc/posix-functions/getopt.texi (getopt): Likewise.
9516 getopt-gnu: add another test
9517 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9518 guarantee behavior relied on by m4.
9519 * tests/test-getopt.c (main): Use it.
9520 * modules/getopt-posix-tests (Depends-on): Add setenv.
9521 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9523 getopt: fix compilation on darwin
9524 * lib/getopt.in.h (includes): Leave breadcrumbs during system
9526 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9527 Reported by Ludovic Courtès.
9529 2009-10-06 Bruno Haible <bruno@clisp.org>
9531 * modules/size_max (Description): Discourage its use.
9532 Reported by Simon Josefsson.
9534 2009-10-06 Jim Meyering <meyering@redhat.com>
9536 linkat: avoid compilation failure
9537 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9539 2009-10-05 Eric Blake <ebb9@byu.net>
9541 linkat: support Linux 2.6.17
9542 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9543 linkat on Linux, but allow cache variable override.
9544 * lib/linkat.c (rpl_linkat): Define override.
9545 * modules/linkat (Depends-on): Add symlinkat.
9546 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9547 * modules/unistd (Makefile.am): Substitute it.
9548 * lib/unistd.in.h (linkat): Declare replacement.
9549 Reported by Pádraig Brady.
9551 quotearg: port test to systems with C.UTF-8 locale
9552 * tests/test-quotearg.c (struct result_strings): Add another
9553 member, differentiating between C.ASCII and C.UTF-8 handling.
9554 (compare_strings): Add parameter.
9555 (main): Adjust all callers.
9557 getopt: avoid clash with FreeBSD _getopt_internal
9558 * lib/getopt.in.h (_getopt_internal): Override the name.
9559 * lib/getopt_int.h (includes): Pick up any overrides.
9560 Reported by Reuben Thomas.
9562 hash: allow C89 compilation
9563 * lib/hash.c (check_tuning): Move declaration before statement.
9564 Reported by Reuben Thomas.
9566 2009-10-05 Karl Berry <karl@gnu.org>
9568 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9570 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
9571 Bruno Haible <bruno@clisp.org>
9573 * lib/uname.c (uname): Use a table-driven algorithm to compute
9574 Windows NT versions.
9576 2009-10-04 Bruno Haible <bruno@clisp.org>
9578 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9579 program_invocation_short_name.
9580 * modules/progname (configure.ac): Test for presence of
9581 program_invocation_short_name.
9582 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9584 2009-10-04 Bruno Haible <bruno@clisp.org>
9586 * lib/progname.c (set_program_name): Fix comment.
9587 Reported by Jim Meyering.
9589 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
9590 Bruno Haible <bruno@clisp.org>
9592 * lib/uname.c: Include <string.h>.
9593 (uname): Do only one call to GetVersionEx in the common case.
9595 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
9596 Bruno Haible <bruno@clisp.org>
9598 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9599 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9600 (uname): Add support for Windows CE and various non-x86 CPU types.
9602 2009-10-03 Bruno Haible <bruno@clisp.org>
9604 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9605 invocation to tests/configure.ac.
9606 Reported by Ian Beckwith <ianb@erislabs.net>.
9608 2009-10-02 Eric Blake <ebb9@byu.net>
9610 fchdir: avoid compiler warning
9611 * lib/fchdir.c (canonicalize_file_name)
9612 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9614 test-open: support mingw errno values
9615 * tests/test-open.h (test_open): Relax test.
9616 * tests/test-fopen.h (test_fopen): Likewise.
9617 * tests/test-openat-safer.c (main): Likewise.
9619 open: fix opening directory on mingw
9620 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9622 test-open: on GNU/Hurd, /dev/null is a directory
9623 * tests/test-fopen.h (main): Rename...
9624 (test_fopen): ...to this. Use a guaranteed non-directory when
9625 confirming open behavior on trailing slash.
9626 * tests/test-openat-safer.c (main): Likewise.
9627 * tests/test-open.h (main): Likewise....
9628 (test_open): ...to this.
9629 * tests/test-fopen.c (main): Adjust caller.
9630 * tests/test-fopen-safer.c (main): Likewise.
9631 * tests/test-open.c (main): Likewise.
9632 * tests/test-fcntl-safer.c (main): Likewise.
9633 Reported by Samuel Thibault.
9635 rename, fchdir: don't ignore chdir failure
9636 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9637 * lib/rename.c (rpl_rename) [W32]: Likewise.
9638 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9639 an empty destination directory if source cannot be renamed,
9640 although there is still possibility for failure.
9641 * doc/posix-functions/rename.texi (rename): Document the race.
9642 Reported by Jim Meyering.
9644 maint: cleanup whitespace in recent commits
9645 * lib/rename.c (rpl_rename): Remove tabs.
9646 * tests/test-link.h (test_link): Likewise.
9647 * lib/fchdir.c (get_name): Likewise.
9648 Reported by Jim Meyering.
9650 2009-10-02 Ben Pfaff <blp@gnu.org>
9652 relocatable-prog-wrapper: Add missing dependency on
9654 * modules/relocatable-prog-wrapper: Add dependency.
9655 Reported by Ian Beckwith <ianb@erislabs.net>.
9657 2009-10-02 Eric Blake <ebb9@byu.net>
9659 renameat: fix Solaris bugs
9660 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9662 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9663 * modules/stdio (Makefile.am): Substitute it.
9664 * lib/stdio.in.h (renameat): Declare replacement.
9665 * lib/renameat.c (rpl_renameat): Implement fix.
9667 renameat: new module
9668 * modules/renameat: New file.
9669 * lib/renameat.c (renameat): Likewise.
9670 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9671 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9672 * modules/stdio (Makefile.am): Substitute them.
9673 * lib/stdio.in.h (renameat): Declare it.
9674 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9675 * doc/posix-functions/renameat.texi (renameat): Likewise.
9676 * modules/renameat-tests: New test.
9677 * tests/test-renameat.c: Likewise.
9679 rename: fix mingw bugs
9680 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9681 directory overwrite bugs.
9683 rename: fix another cygwin 1.5 bug
9684 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9686 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9687 unnecessary cygwin workarounds. Also work around bug with moving
9688 full directory onto an empty one.
9689 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9691 rename-dest-slash: merge into rename module
9692 * modules/rename-dest-slash (Status): Mark obsolete.
9693 (Depends-on): Add rename.
9694 (Files): Let rename do it all.
9695 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9696 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9697 * m4/rename-dest-slash.m4: ...so this file can be deleted.
9698 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9699 * lib/rename.c (rpl_rename): Update comments.
9701 rename: fix cygwin 1.5.x bugs
9702 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9703 * lib/rename.c (rpl_rename): Work around them.
9704 * modules/rename (Depends-on): Add same-inode.
9706 rename: fix Solaris 10 bug
9707 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9708 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9711 rename: fix Solaris 9 bug
9712 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9713 on non-directory. Avoid calling exit.
9714 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9716 * modules/rename-tests (Depends-on): Drop lstat.
9717 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9718 (gl_PREREQ_RENAME): Delete unused macro.
9720 rename-dest-slash: fix NetBSD bug
9721 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9723 * modules/rename-dest-slash (Depends-on): Add same-inode.
9725 rename-tests: new test, exposes several platform bugs
9726 * modules/rename-tests: New file.
9727 * tests/test-rename.h: Likewise.
9728 * tests/test-rename.c: Likewise.
9729 * doc/posix-functions/rename.texi (rename): Improve documentation,
9730 including bugs that will eventually be fixed in gnulib.
9732 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
9734 * lib/uname.c: Include <stdlib.h>
9735 (uname): Assume version info is available.
9737 2009-10-02 Jim Meyering <meyering@redhat.com>
9739 gnu-web-doc-update: correct --help output
9740 * build-aux/gnu-web-doc-update: Make --help output relevant.
9742 gnu-web-doc-update: add standard options
9743 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9745 gnu-web-doc-update: New module.
9746 Use this script to automatically update the on-line web documentation
9747 for your GNU project at http://www.gnu.org/software/$pkg/manual/
9748 * modules/gnu-web-doc-update: New file, from coreutils.
9749 * build-aux/gnu-web-doc-update: New script.
9751 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
9753 link: LoadLibrary is not needed.
9754 * lib/link.c: Use GetModuleHandle.
9756 2009-10-01 Eric Blake <ebb9@byu.net>
9758 getopt: bump serial number
9759 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9762 tests: tighten link, rmdir, and remove tests
9763 * tests/test-link.h (includes): No need to use <config.h> here.
9764 Clean up if directory hard link was created, otherwise test for
9766 * tests/test-linkat.c (main): Simplify.
9767 * tests/test-remove.c (main): Enhance test for trailing '.'.
9768 * tests/test-rmdir.h (test_rmdir_func): Likewise.
9770 2009-10-01 Jim Meyering <meyering@redhat.com>
9772 maint.mk: requiring "make major" was annoying, for a "minor" release.
9773 What is intended is "stable", to contrast with alpha and beta,
9774 so require "make stable", not "make major".
9775 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9776 (get_tool_versions): Likewise.
9777 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9779 2009-09-30 Ben Pfaff <blp@gnu.org>
9781 Fix broken build of replacement for Windows tmpfile().
9782 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9783 flags argument added along with the 'mkostemp' module.
9785 2009-09-28 Bruno Haible <bruno@clisp.org>
9787 Avoid identifier clash with POSIX function 'remove' defined as a macro.
9788 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9790 (gl_list_remove): Update.
9791 * lib/gl_list.c (gl_list_remove): Update.
9792 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9794 (gl_oset_remove): Update.
9795 * lib/gl_list.c (gl_oset_remove): Update.
9796 Reported by Eric Blake.
9798 2009-09-28 Eric Blake <ebb9@byu.net>
9800 doc: mention yet more cygwin 1.7 status
9801 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9803 * doc/glibc-functions/execvpe.texi (execvpe): New file.
9804 * doc/gnulib.texi (Glibc unistd.h): Mention it.
9806 argp: fix test failure
9807 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9808 that are not upper-case. Pass correct range to tolower.
9810 2009-09-27 Jim Meyering <meyering@redhat.com>
9812 test-yesno: work around sparc-dash here-document infelicity
9813 Without this change, the literal \177 byte in a here document
9814 would make dash 0.5.5.1-3 access uninitialized memory.
9815 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9816 Instead, use a marker, "@", and filter through tr to create the desired
9817 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9819 2009-09-27 Bruno Haible <bruno@clisp.org>
9821 Disable untested support for new flavours of ACLs on AIX.
9822 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9824 * lib/set-mode-acl.c (qset_acl): Likewise.
9826 2008-12-07 Bruno Haible <bruno@clisp.org>
9828 Add support for new flavours of ACLs on AIX. (Untested.)
9829 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9830 (file_has_acl): Add support for newer AIX.
9831 * lib/set-mode-acl.c (qset_acl): Likewise.
9832 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9833 Rainer Tammer <tammer@tammer.net>.
9835 2009-09-26 Eric Blake <ebb9@byu.net>
9837 argp: fix compilation of getopt
9838 * lib/getopt.in.h (includes): Use different guard than glibc.
9839 Reported by Sergey Poznyakoff.
9841 doc: mention more cygwin 1.7 status
9842 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9844 * doc/posix-functions/execl.texi (execl): Likewise.
9845 * doc/posix-functions/execle.texi (execle): Likewise.
9846 * doc/posix-functions/execlp.texi (execlp): Likewise.
9847 * doc/posix-functions/execv.texi (execv): Likewise.
9848 * doc/posix-functions/execve.texi (execve): Likewise.
9849 * doc/posix-functions/execvp.texi (execvp): Likewise.
9850 * doc/glibc-functions/canonicalize_file_name.texi
9851 (canonicalize_file_name): Cygwin 1.7 now provides this.
9852 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9853 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9854 on AT_SYMLINK_NOFOLLOW.
9856 2009-09-24 Eric Blake <ebb9@byu.net>
9858 test-linkat: make test more robust
9859 * tests/test-linkat.c (main): Avoid collision with EEXIST.
9861 getopt: fix inclusion guards for cygwin
9862 * modules/getopt-posix (Depends-on): Add include-next.
9863 (Makefile.am): Substitute more items in replacement header.
9864 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9866 * lib/getopt.in.h (includes): Use split inclusion guard, and
9867 prefer <getopt.h> over include <unistd.h> when one is present.
9868 (option): Also override name of 'struct option'.
9870 same-inode: revert prior change; it is not yet ready
9871 * NEWS: Undo mention of this change.
9872 * lib/same-inode.h (same-inode.h): Undo tri-state change.
9873 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9874 * lib/cycle-check.c (cycle_check): Likewise.
9875 * lib/same.c (same_name): Likewise.
9876 * lib/at-func2.c (at_func2): Likewise.
9878 2009-09-23 Eric Blake <ebb9@byu.net>
9881 * modules/linkat: New file.
9882 * lib/at-func2.c (at_func2): Likewise.
9883 * lib/linkat.c (linkat): Likewise.
9884 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9885 * lib/openat-priv.h (at_func2): Add declaration.
9886 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9887 * modules/unistd (Makefile.am): Substitute them.
9888 * lib/unistd.in.h (linkat): Declare it.
9889 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9890 * doc/posix-functions/linkat.texi (linkat): Likewise.
9891 * doc/posix-functions/link.texi (link): Tweak wording.
9892 * tests/test-link.c (main): Move guts...
9893 * tests/test-link.h (test_link): ...into new file.
9894 * modules/linkat-tests: New test.
9895 * tests/test-linkat.c: Likewise.
9896 * modules/link-tests (Files): Ship new file.
9897 (Depends-on): Add stdbool.
9899 dirname: add library-safe mdir_name
9900 * lib/dirname.h (mdir_name): New prototype.
9901 * lib/dirname.c (dir_name): Move guts...
9902 (mdir_name): ...to new function that avoids xalloc_die.
9904 fchdir: another mingw fix
9905 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9906 * lib/fchdir.c (get_name): New helper method; skips canonicalize
9907 on mingw (where it has not yet been ported), and make it optional
9909 (_gl_register_fd): Use it.
9911 same-inode: make SAME_INODE tri-state, to port to mingw
9912 * NEWS: Mention this change.
9913 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9914 st_ino always being 0.
9915 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9916 * lib/cycle-check.c (cycle_check): Likewise.
9917 * lib/same.c (same_name): Likewise.
9919 lstat: avoid mingw compilation error
9920 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9921 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9923 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9925 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9926 the checks for lstat.
9927 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9929 link: fix test failure on Solaris 9
9930 * lib/link.c (rpl_link): Don't assume link will catch bogus
9931 trailing slash on source.
9933 test-symlinkat: enhance test
9934 * tests/test-readlink.c (main): Move guts...
9935 * tests/test-readlink.h (test_readlink): ...into new file.
9936 * tests/test-symlink.c (main): Move guts...
9937 * tests/test-symlink.h (test_symlink): ...into new file.
9938 * tests/test-symlinkat.c (main): Use new files for further
9940 (do_symlink, do_readlink): New helper functions.
9941 * modules/symlink-tests (Files): Ship new file.
9942 (Depends-on): Add stdbool.
9943 * modules/readlink-tests (Files): Ship new file.
9944 (Depends-on): Add stdbool.
9945 * modules/symlinkat-tests (Files): Use new files.
9947 2009-09-23 Eric Blake <ebb9@byu.net>
9949 readlink: document portability issue with symlink length
9950 * doc/posix-functions/lstat.texi (lstat): Mention that some file
9951 systems have bogus st_size on symlinks, and mention the
9952 areadlink-with-size module.
9953 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9954 * doc/posix-functions/readlink.texi (readlink): Mention the
9955 areadlink module, and ERANGE failure.
9956 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9957 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9959 readlink: fix Solaris 9 bug with trailing slash
9960 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9961 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9962 * doc/posix-functions/readlink.texi (readlink): Document this.
9963 * modules/readlink-tests: New test.
9964 * tests/test-readlink.c: Likewise.
9966 readlink: fix cygwin 1.5.x bug with return type
9967 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9968 * lib/unistd.in.h (readlink): Use ssize_t.
9969 * lib/readlink.c (readlink): Likewise.
9970 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9971 * modules/unistd (Makefile.am): Substitute it.
9972 * lib/unistd.in.h (readlink): Declare replacement.
9973 * doc/posix-functions/readlink.texi (readlink): Document this.
9975 symlink: use throughout gnulib
9976 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9977 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9978 symlink is not used.
9979 * modules/symlinkat (Depends-on): Add symlink.
9980 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9981 * modules/canonicalize-tests (Depends-on): Likewise.
9982 * modules/lstat-tests (Depends-on): Likewise.
9983 * modules/openat-tests (Depends-on): Likewise.
9984 * modules/remove-tests (Depends-on): Likewise.
9985 * modules/rmdir-tests (Depends-on): Likewise.
9986 * modules/unlink-tests (Depends-on): Likewise.
9987 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9988 * tests/test-canonicalize.c (symlink): Likewise.
9989 * tests/test-fstatat.c (symlink): Likewise.
9990 * tests/test-lstat.c (symlink): Likewise.
9991 * tests/test-remove.c (symlink): Likewise.
9992 * tests/test-rmdir.c (symlink): Likewise.
9993 * tests/test-unlink.c (symlink): Likewise.
9994 * tests/test-unlinkat.c (symlink): Likewise.
9996 symlink: new module, for Solaris 9 bug
9997 * modules/symlink: New file.
9998 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9999 * lib/symlink.c: Likewise.
10000 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10001 * modules/unistd (Makefile.am): Substitute them.
10002 * lib/unistd.in.h (symlink): Declare replacement.
10003 * MODULES.html.sh (File system functions): Mention it.
10004 * doc/posix-functions/symlink.texi (symlink): Likewise.
10005 * modules/symlink-tests: New test.
10006 * tests/test-symlink.c: Likewise.
10008 2009-09-23 Bruno Haible <bruno@clisp.org>
10010 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10012 Test case: gnulib-tool --import --with-tests atexit inttypes.
10013 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10015 2009-09-23 Bruno Haible <bruno@clisp.org>
10017 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10018 subcommand, not in a subshell.
10020 2009-09-22 Eric Blake <ebb9@byu.net>
10022 unistd: sort replacement declarations
10023 * lib/unistd.in.h: Sort declarations.
10025 open, openat: minor optimization
10026 * lib/open.c (open): If open succeeded, len is non-zero.
10027 * lib/openat.c (rpl_openat): Likewise.
10029 link-follow: ensure correct result
10030 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10031 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10032 distinguish between possible failures.
10034 2009-09-21 Eric Blake <ebb9@byu.net>
10036 fts: avoid compiler warning
10037 * lib/fts.c (dirent_inode_sort_may_be_useful)
10038 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10040 2009-09-19 Bruno Haible <bruno@clisp.org>
10042 * lib/progreloc.c (canonicalize_file_name): New declaration.
10044 2009-09-19 Eric Blake <ebb9@byu.net>
10047 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10049 openat: fix openat bugs on Solaris 9
10050 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10051 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10052 * modules/openat (Depends-on): Add open.
10053 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10054 * modules/fcntl-h (Makefile.am): Substitute it.
10055 * lib/fcntl.in.h (openat): Declare replacement.
10056 * doc/posix-functions/openat.texi (openat): Document this.
10058 openat: move fstatat and unlinkat into correct files
10059 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10061 * lib/openat.c (fstatat, unlinkat): Move...
10062 * lib/fstatat.c (fstatat): ...into correct files.
10063 * lib/unlinkat.c (unlinkat): Likewise.
10065 openat: fix unlinkat bugs on Solaris 9
10066 * lib/unlinkat.c (unlinkat): New file.
10067 * modules/openat (Depends-on): Add unlink.
10068 (Files): Distribute it.
10069 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10070 trailing slash behavior is broken.
10071 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10072 * modules/unistd (Makefile.am): Substitute it.
10073 * lib/unistd.in.h (unlinkat): Declare replacement.
10074 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10076 openat: fix fstatat bugs on Solaris 9
10077 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10079 * doc/posix-functions/fstatat.texi (fstatat): Document this.
10081 test-unlinkat: enhance test, to expose Solaris 9 bug
10082 * tests/test-unlink.c (main): Factor guts...
10083 * tests/test-unlink.h (test_rmdir_func): ...into new file.
10084 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10085 * tests/test-rmdir.c (main): Adjust caller.
10086 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
10087 (unlinker): New helper function.
10088 (rmdirat): Enhance check.
10089 * modules/rmdir-tests (Depends-on): Add stdbool.
10090 * modules/unlink-tests (Depends-on): Likewise.
10091 (Files): Add test-unlink.h.
10092 * modules/openat-tests (Files): Likewise.
10093 (Depends-on): Add unlinkdir.
10095 test-fstatat: new test, to expose Solaris 9 bugs
10096 * tests/test-stat.c (main): Factor guts...
10097 * tests/test-stat.h (test_stat_func): ...into new file.
10098 * tests/test-lstat.c (main): Factor guts...
10099 * tests/test-lstat.h (test_lstat_func): ...into new file.
10100 * tests/test-fstatat.c: New file.
10101 * modules/stat-tests (Files): Add test-stat.h.
10102 * modules/lstat-tests (Files): Add test-lstat.h.
10103 (Depends-on): Add stdbool.
10104 * modules/openat-tests (Depends-on): Add pathmax.
10105 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10106 (Makefile.am): Run new test.
10108 remove: new module, for mingw and Solaris 9 bugs
10109 * modules/remove: New file.
10110 * lib/remove.c: Likewise.
10111 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10112 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10113 * modules/stdio (Makefile.am): Use them.
10114 * lib/stdio.in.h (remove): Declare replacement.
10115 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10116 * doc/posix-functions/remove.texi (remove): Likewise.
10117 * modules/remove-tests: New test.
10118 * tests/test-remove.c: Likewise.
10120 unlink: new module, for Solaris 9 bug
10121 * modules/unlink: New file.
10122 * lib/unlink.c: Likewise.
10123 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10124 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10125 * modules/unistd (Makefile.am): Use them.
10126 * lib/unistd.in.h (stat): Declare replacement.
10127 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10128 * doc/posix-functions/unlink.texi (unlink): Likewise.
10129 * modules/unlink-tests: New test.
10130 * tests/test-unlink.c: Likewise.
10132 lstat: fix Solaris 9 bug
10133 * lib/lstat.c (lstat): Also check for trailing slash on
10134 non-symlink, non-directories. Use stat module to simplify logic.
10135 * doc/posix-functions/lstat.texi (lstat): Document it.
10136 * modules/lstat-tests (Depends-on): Add errno, same-inode.
10137 (configure.ac): Check for symlink.
10138 * tests/test-lstat.c (main): Add more tests.
10140 stat: add as dependency to other modules
10141 * modules/chown (Depends-on): Add stat.
10142 * modules/euidaccess (Depends-on): Likewise.
10143 * modules/fchdir (Depends-on): Likewise.
10144 * modules/isdir (Depends-on): Likewise.
10145 * modules/link (Depends-on): Likewise.
10146 * modules/lstat (Depends-on): Likewise.
10147 * modules/mkdir-p (Depends-on): Likewise.
10148 * modules/modechange (Depends-on): Likewise.
10149 * modules/open (Depends-on): Likewise.
10150 * modules/readlink (Depends-on): Likewise.
10151 * modules/same (Depends-on): Likewise.
10153 stat: fix Solaris 9 bug
10154 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10156 * lib/stat.c (rpl_stat): Work around it.
10157 * doc/posix-functions/stat.texi (stat): Update documentation.
10159 stat: new module, for mingw bug
10160 * modules/stat: New file.
10161 * lib/stat.c: Likewise.
10162 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10163 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10164 * modules/sys_stat (Makefile.am): Use them.
10165 * lib/sys_stat.in.h (stat): Declare replacement.
10166 * lib/openat.c (fstatat): Deal with lstat and stat being function
10168 * modules/openat (Depends-on): Add inline.
10169 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10170 * doc/posix-functions/stat.texi (stat): Likewise.
10171 * modules/stat-tests: New test.
10172 * tests/test-stat.c: Likewise.
10174 2009-09-19 Jim Meyering <meyering@redhat.com>
10176 syntax-check: detect unnecessary inclusion of canonicalize.h
10177 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10179 2009-09-19 Eric Blake <ebb9@byu.net>
10181 canonicalize-lgpl: adjust clients to use correct header
10182 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10183 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10184 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10185 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10186 * lib/progreloc.c (includes): Likewise.
10188 2009-09-19 Jim Meyering <meyering@redhat.com>
10190 test-posixtm.c: correct a comment
10191 * tests/test-posixtm.c: Correct first-line comment.
10192 Spotted by Eric Blake.
10194 2009-09-16 Jim Meyering <meyering@redhat.com>
10196 posixtm-tests: make T const-correct; add a test case
10197 * tests/test-posixtm.c (T): Declare const.
10198 Add a test for -(2^31+1).
10199 Remove useless can-succeed-only-in-2002 test.
10201 posixtm-tests: adjust the sole failing test
10202 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10203 expected output matches what mktime now produces. Cross-checked via
10204 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10206 posixtm: move #ifdef'd tests into a new module
10207 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
10208 * tests/test-posixtm.c: ... this new file.
10209 * modules/posixtm-tests: New module.
10211 2009-09-19 Eric Blake <ebb9@byu.net>
10213 openat: simplify use of at-func.c
10214 * lib/at-func.c (includes): Include prerequisites here, to
10215 simplify requirements on client files.
10216 * lib/openat-priv.h: Add double-inclusion guard.
10217 * lib/faccessat.c (includes): Simplify.
10218 * lib/fchmodat.c (includes): Likewise.
10219 * lib/fchownat.c (includes): Likewise.
10220 * lib/mkdirat.c (includes): Likewise.
10221 * lib/mkfifoat.c (includes): Likewise.
10222 * lib/symlinkat.c (includes): Likewise.
10224 openat: allow return of fd 0
10225 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10226 * modules/save-cwd (Depends-on): Replace fcntl-safer with
10228 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10229 <fcntl.h>; this module does not leak fds.
10230 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10231 must be allowed to return 0, leaving openat_safer to add the
10233 (openat_permissive): Avoid writing to just-opened fd 2 if
10234 restoring the current directory fails.
10235 * lib/openat-die.c (openat_restore_fail): Add comment.
10236 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10237 (save_cwd): Guarantee safe fd, but without use of open_safer.
10238 * tests/test-openat.c: New test.
10239 * modules/openat-tests (Files, Makefile.am): Distribute and build
10242 relocatable-prog-wrapper: fix build
10243 * modules/relocatable-prog-wrapper (Files): Update name of
10244 canonicalize m4 file, broken on 2009-09-17.
10245 Reported by emad hajjar <aleppos@hotmail.com>.
10247 2009-09-19 Bruno Haible <bruno@clisp.org>
10249 * lib/safe-alloc.h: Use the standard header with GPL copyright.
10250 * lib/safe-alloc.c: Likewise.
10251 Reported by Ian Beckwith <ianb@erislabs.net>.
10253 2009-09-18 Bruno Haible <bruno@clisp.org>
10255 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10256 Reported by <erobles@sensacd.com.mx>.
10258 2009-09-17 Eric Blake <ebb9@byu.net>
10260 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10261 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10262 slashes when checking if last component is missing.
10263 * tests/test-canonicalize.c (main): Test this.
10265 canonicalize, canonicalize-lgpl: honor // if distinct from /
10266 * modules/canonicalize (Files): Add double-slash-root.m4.
10267 * modules/canonicalize-lgpl (Files): Likewise.
10268 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10269 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10270 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10271 fallback definition.
10272 (canonicalize_filename_mode): Use it to protect //.
10273 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10274 (__realpath): Likewise.
10275 * tests/test-canonicalize.c (main): Test this.
10276 * tests/test-canonicalize-lgpl.c (main): Likewise.
10277 * modules/canonicalize-tests (Depends-on): Add same-inode.
10278 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10280 canonicalize-lgpl: fix glibc bug with trailing slash
10281 * m4/canonicalize-lgpl.m4: Move contents...
10282 * m4/canonicalize.m4: ...here.
10283 (gl_CANONICALIZE_LGPL): Factor realpath check...
10284 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
10285 glibc 2.3.5 bug, fixed 2005-04-27.
10286 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10287 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10288 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10289 * modules/canonicalize-lgpl (Files): Manage file rename.
10290 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10291 * modules/stdlib (Makefile.am): Substitute witness.
10292 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10294 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10295 replacement is required.
10296 * lib/canonicalize.c (canonicalize_file_name): Likewise.
10297 * doc/glibc-functions/canonicalize_file_name.texi
10298 (canonicalize_file_name): Document this.
10299 * doc/posix-functions/realpath.texi (realpath): Likewise.
10301 canonicalize-lgpl: reject non-directory with trailing slash
10302 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10303 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
10304 catches failures in glibc 2.3.5.
10305 * tests/test-canonicalize.c (main): Likewise.
10307 canonicalize-lgpl: use native realpath if it works
10308 * lib/canonicalize-lgpl.c (realpath): Guard with
10309 FUNC_REALPATH_WORKS.
10310 * lib/stdlib.in.h (realpath): Make declaration optional based on
10312 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10313 native realpath works.
10314 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10315 * modules/stdlib (Makefile.am): Substitute witness.
10317 canonicalize, canonicalize-lgpl: use <stdlib.h>
10318 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10319 (Include): Mention <stdlib.h>.
10320 (configure.ac): Mention functions we provide.
10321 * modules/canonicalize (configure.ac): Likewise.
10322 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10323 realpath if canonicalize_file_name is missing.
10324 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10325 * modules/stdlib (Makefile.am): Substitute witnesses.
10326 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10327 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10328 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10329 * NEWS: Document this.
10330 * doc/glibc-functions/canonicalize_file_name.texi
10331 (canonicalize_file_name): Likewise.
10332 * doc/posix-functions/realpath.texi (realpath): Likewise.
10333 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10335 test-canonicalize: consolidate into single C program
10336 * tests/test-canonicalize.sh: Delete; move setup into...
10337 * tests/test-canonicalize.c (main): ...the program, making it
10338 easier to run in debugger. Add some tests.
10339 * modules/canonicalize-tests (Files): Remove unused file.
10340 (Depends-on): Add progname.
10341 (configure.ac, Makefile.am): Simplify.
10343 test-canonicalize-lgpl: consolidate into single C program
10344 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10345 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10346 easier to run in debugger. Add some tests.
10347 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10348 (configure.ac, Makefile.am): Simplify.
10350 canonicalize: avoid resolvepath
10351 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10352 unnecessary checks.
10353 * lib/canonicalize.c (includes): Simplify.
10354 (canonicalize_file_name): Drop resolvepath implementation.
10355 * modules/canonicalize (Depends-on): Drop filenamecat.
10357 canonicalize: don't lose errno
10358 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10359 over calls to free.
10361 canonicalize: simplify errno handling
10362 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10365 canonicalize, canonicalize-lgpl: update module dependencies
10366 * modules/canonicalize (Depends-on): Add extensions, lstat,
10368 (Files): Drop pathmax.h.
10369 (configure.ac): Adjust macro name.
10370 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10371 lstat, stdlib, sys_stat.
10372 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10373 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10375 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10376 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10377 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10378 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10379 declaration, if available.
10380 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10381 we can rely on the readlink module.
10382 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10383 (includes): Use <unistd.h> unconditionally.
10385 2009-09-17 Eric Blake <ebb9@byu.net>
10387 maint: make Include sections of modules consistent
10388 * modules/alloca: Use only header name; no need to list #include.
10389 * modules/alloca-opt: Likewise.
10390 * modules/arpa_inet: Likewise.
10391 * modules/canon-host: Likewise.
10392 * modules/configmake: Likewise.
10393 * modules/dirent: Likewise.
10394 * modules/eealloc: Likewise.
10395 * modules/environ: Likewise.
10396 * modules/fchdir: Likewise.
10397 * modules/fcntl: Likewise.
10398 * modules/fcntl-h: Likewise.
10399 * modules/gethrxtime: Likewise.
10400 * modules/gettime: Likewise.
10401 * modules/ignore-value: Likewise.
10402 * modules/inet_ntop: Likewise.
10403 * modules/inet_pton: Likewise.
10404 * modules/inttypes: Likewise.
10405 * modules/isnand-nolibm: Likewise.
10406 * modules/isnanf-nolibm: Likewise.
10407 * modules/mbchar: Likewise.
10408 * modules/mbfile: Likewise.
10409 * modules/mbiter: Likewise.
10410 * modules/mbuiter: Likewise.
10411 * modules/netdb: Likewise.
10412 * modules/netinet_in: Likewise.
10413 * modules/nproc: Likewise.
10414 * modules/pagealign_alloc: Likewise.
10415 * modules/poll: Likewise.
10416 * modules/printf-frexp: Likewise.
10417 * modules/pthread: Likewise.
10418 * modules/putenv: Likewise.
10419 * modules/random_r: Likewise.
10420 * modules/relocatable-prog: Likewise.
10421 * modules/search: Likewise.
10422 * modules/select: Likewise.
10423 * modules/selinux-h: Likewise.
10424 * modules/settime: Likewise.
10425 * modules/signal: Likewise.
10426 * modules/size_max: Likewise.
10427 * modules/socklen: Likewise.
10428 * modules/ssize_t: Likewise.
10429 * modules/stdarg: Likewise.
10430 * modules/stdbool: Likewise.
10431 * modules/stddef: Likewise.
10432 * modules/stdint: Likewise.
10433 * modules/stdio: Likewise.
10434 * modules/stdlib: Likewise.
10435 * modules/string: Likewise.
10436 * modules/strings: Likewise.
10437 * modules/sys_file: Likewise.
10438 * modules/sys_ioctl: Likewise.
10439 * modules/sys_select: Likewise.
10440 * modules/sys_socket: Likewise.
10441 * modules/sys_stat: Likewise.
10442 * modules/sys_time: Likewise.
10443 * modules/sys_times: Likewise.
10444 * modules/sys_utsname: Likewise.
10445 * modules/sys_wait: Likewise.
10446 * modules/sysexits: Likewise.
10447 * modules/time: Likewise.
10448 * modules/times: Likewise.
10449 * modules/tmpfile: Likewise.
10450 * modules/trim: Likewise.
10451 * modules/unistd: Likewise.
10452 * modules/wchar: Likewise.
10453 * modules/wctype: Likewise.
10455 2009-09-17 Bruno Haible <bruno@clisp.org>
10457 Make getdate.y compile on QNX and NetBSD 5 / i386.
10458 * m4/getdate.m4 (gl_GETDATE): Conditionally define
10459 TIME_T_FITS_IN_LONG_INT.
10460 * lib/getdate.y (long_time_t): New type.
10461 (relative_time): Change type of 'seconds' field to long_time_t.
10462 (get_date): Update types of local variables. Check against overflow
10463 during conversion from long_time_t to time_t.
10464 Reported by Matt Kraai <kraai@ftbfs.org>
10465 and Hasso Tepper <hasso@netbsd.org>.
10467 2009-09-17 Bruno Haible <bruno@clisp.org>
10469 * modules/COPYING: Update copyright years.
10470 * modules/README: Likeiwse.
10471 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10472 Reported by Ian Beckwith <ianb@erislabs.net>.
10474 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
10476 * users.txt: Update references for gnuit package.
10478 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
10480 * m4/getdelim.m4: Fix typo in copyright line.
10482 2009-09-17 Bruno Haible <bruno@clisp.org>
10484 * lib/atoll.c: Use the standard header with GPL copyright.
10485 * lib/argz.in.h: Likewise.
10486 * lib/glob.c: Likewise.
10487 * lib/glob-libc.h: Likewise.
10488 * lib/random_r.c: Likewise.
10489 * lib/siglist.h: Likewise.
10490 * lib/strsignal.c: Likewise.
10491 Reported by Ian Beckwith <ianb@erislabs.net>.
10493 2009-09-17 Eric Blake <ebb9@byu.net>
10495 rmdir: ensure correct dependency order
10496 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10498 2009-09-17 Bruno Haible <bruno@clisp.org>
10500 Disable assertion that fails on NetBSD 5 / i386.
10501 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10502 Reported by Sam Steingold <sds@gnu.org>
10503 and Hasso Tepper <hasso@netbsd.org>.
10505 2009-09-16 Eric Blake <ebb9@byu.net>
10507 unlinkdir: port to mingw
10508 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10509 on which no one can unlink a directory.
10511 stdlib: sort witness names
10512 * modules/stdlib (Makefile.am): Sort replacements.
10513 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10514 * lib/stdlib.in.h: Likewise.
10516 parse-duration-tests: avoid link failure
10517 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10519 Reported by Tom G. Christensen.
10521 openat-tests: ensure unlinkat behaves like rmdir
10522 * tests/test-rmdir.c (main): Factor guts...
10523 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10524 * modules/rmdir-tests (Files): Ship new file.
10525 * modules/openat-tests: New test.
10526 * tests/test-unlinkat.c: Likewise.
10528 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10529 * modules/rmdir-errno (Status, Notice): Now obsolete.
10531 rmdir: work around cygwin 1.5.x and mingw bugs
10532 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10533 * lib/rmdir.c (rmdir): Work around it.
10534 * modules/rmdir (Status, Notice): No longer obsolete.
10535 (Files): Add dos.m4.
10536 (Depends-on): Add unistd.
10537 (configure.ac): Set witnesses.
10538 (License): Relax to LGPLv2+.
10539 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10540 * modules/unistd (Makefile.am): Substitute witnesses.
10541 * lib/unistd.in.h (rmdir): Declare replacement.
10542 * doc/posix-functions/rmdir.texi (rmdir): Document this.
10543 * modules/rmdir-tests: New tests.
10544 * tests/test-rmdir.c: Likewise.
10546 2009-09-15 Eric Blake <ebb9@byu.net>
10548 fchdir: improve use of replacement functions
10549 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10550 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10551 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10553 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10554 * modules/sys_stat (Makefile.am): Substitute correct witness.
10555 * modules/dirent (Makefile.am): Likewise.
10556 * modules/unistd (Makefile.am): Likewise.
10557 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10558 * lib/unistd.in.h (dup): Likewise.
10559 * lib/sys_stat.in.h (fstat): Likewise.
10561 maint: ignore gnulib-tool temp files
10562 * .gitignore: Ignore files created during gnulib-tool --test.
10564 2009-09-13 Jim Meyering <meyering@redhat.com>
10566 posixtm: don't reject a time that specify "60" as the number of seconds
10567 * lib/posixtm.c (posixtime): The code to reject invalid dates
10568 would also reject a time specified with the .60 suffix.
10569 But POSIX allows that, in order to accommodate leap seconds.
10570 So don't reject it.
10571 (main): Adjust tests accordingly.
10572 * modules/posixtm (Depends-on): Add stpcpy.
10574 2009-09-11 Jim Meyering <meyering@redhat.com>
10576 announce-gen: include [$release_type] in emitted Subject:
10577 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10578 e.g., [stable] in the emitted Subject: line.
10580 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10582 Remove obsolete macros from several modules.
10583 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10584 obsolete Autoconf macros with their modern counterparts.
10585 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10586 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10587 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10588 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10589 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10590 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10591 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10592 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10593 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10594 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10595 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10596 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10597 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10598 * m4/sockets.m4 (gl_SOCKETS): Likewise.
10599 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10600 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10601 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10602 * m4/time_r.m4 (gl_TIME_R): Likewise.
10603 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10604 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10605 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10607 Fix copyright header in build-aux scripts.
10608 * build-aux/git-version-gen: Fix copyright header to match GPLv3
10610 * build-aux/ncftpput-ftp: Likewise.
10611 * build-aux/update-copyright: Likewise.
10613 2009-09-09 Eric Blake <ebb9@byu.net>
10615 test-link: allow Linux choice of errno
10616 * tests/test-link.c (main): Relax test for alternate error.
10618 strndup: fix improper m4 caching
10619 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10620 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10621 (gl_PREREQ_STRNDUP): Delete.
10622 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10623 * modules/string (Makefile.am): Substitute it.
10624 * lib/string.in.h (strndup): Modernize prototype.
10626 getcwd: port to mingw
10627 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10628 different from the POSIX assumptions made throughout the getcwd
10629 module; fortunately, the mingw getcwd does not need replacement.
10630 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10631 * modules/getcwd-tests: New test.
10632 * tests/test-getcwd.c: Likewise.
10634 link: fix platform bugs
10635 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10636 * lib/link.c (link): Work around them. Fix related mingw bug.
10637 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10638 * modules/unistd (Makefile.am): Substitute it.
10639 * lib/unistd.in.h (link): Declare replacement.
10640 * doc/posix-functions/link.texi (link): Document this.
10641 * modules/link (Depends-on): Add strdup-posix, sys_stat.
10643 test-link: consolidate into single C program, test more cases
10644 * tests/test-link.sh: Delete.
10645 * tests/test-link.c: Test more error conditions. Exposes bugs on
10646 at least Cygwin and Solaris.
10647 * modules/link-tests (Files): Remove unused file.
10648 (Depends-on): Add errno, sys_stat.
10649 (Makefile.am): Simplify.
10651 2009-09-08 Bruno Haible <bruno@clisp.org>
10653 Work around towlower, towupper bug on mingw.
10654 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10655 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10656 * doc/posix-functions/towlower.texi: Mention the mingw bug.
10657 * doc/posix-functions/towupper.texi: Likewise.
10658 Reported by Eric Blake.
10660 2009-09-08 Jim Meyering <meyering@redhat.com>
10662 build: don't try to run autoheader if we don't use it
10663 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10664 is not used in configure.ac.
10666 2009-09-08 Eric Blake <ebb9@byu.net>
10668 euidaccess: fix compilation error
10669 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10671 rawmemchr: relax license
10672 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10674 Reported by Jim Meyering.
10676 mkfifoat: new module
10677 * modules/mkfifoat: New file.
10678 * lib/mkfifoat.c: Likewise.
10679 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10680 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10681 * modules/sys_stat (Makefile.am): Use them.
10682 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10683 * MODULES.html.sh (File system functions): Mention module.
10684 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10685 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10686 * modules/mkfifoat-tests: New test.
10687 * tests/test-mkfifoat.c: Likewise.
10689 strchrnul: relax license
10690 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10692 Reported by Jim Meyering.
10694 2009-09-08 Eric Blake <ebb9@byu.net>
10696 fstatat: fix compilation on Solaris
10697 * lib/fstatat.c (includes): Add fcntl.h.
10698 Reported by Pádraig Brady.
10700 2009-09-07 Eric Blake <ebb9@byu.net>
10702 rename: modernize replacement
10703 * modules/rename (Depends-on): Add stdio.
10704 (configure.ac): Declare witness.
10705 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10706 stdio take care of replacement.
10707 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10708 * modules/stdio (Makefile.am): Substitute them.
10709 * lib/stdio.in.h (rename): Declare replacement.
10710 * lib/rename.c (includes): Allow cross-compilation to non-windows
10712 * doc/posix-functions/rename.texi (rename): Improve
10715 stdio: sort witness names
10716 * modules/stdio (Makefile.am): Sort replacements.
10717 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10718 * lib/stdio.in.h: Likewise.
10720 getcwd: minor cleanups
10721 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10722 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10724 openat: provide more convenience names
10725 * modules/faccessat (configure.ac): Add C witness.
10726 * lib/unistd.in.h (readlinkat): Fix typo.
10727 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10728 convenience wrappers.
10729 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10730 wrappers in syntax checks.
10732 2009-09-06 Eric Blake <ebb9@byu.net>
10734 doc: fix comments in recent patches
10735 * lib/faccessat.c: Mention correct function.
10736 * lib/fchmodat.c: Likewise.
10737 * lib/fchownat.c: Likewise.
10738 * lib/symlinkat.c: Likewise.
10739 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10742 faccessat, symlinkat: continue cleanup of previous patch
10743 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10744 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10745 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10746 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10747 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10748 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10751 2009-09-06 Bruno Haible <bruno@clisp.org>
10753 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10754 (fstatat): Declare if GNULIB_FSTATAT is set.
10755 (mkdirat): Declare if GNULIB_MKDIRAT is set.
10756 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10757 (unlinkat): Declare if GNULIB_UNLINKAT is set.
10758 * modules/fcntl-h (Files): Remove m4/openat.m4.
10759 * modules/sys_stat (Files): Remove m4/openat.m4.
10760 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10761 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10762 * modules/unistd (Files): Remove m4/openat.m4.
10763 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10765 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10766 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10767 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10768 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10769 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10770 gl_OPENAT_DEFAULTS.
10771 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10772 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10773 Don't require gl_OPENAT_DEFAULTS.
10774 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10775 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10776 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10777 (gl_OPENAT_DEFAULTS): Remove macro.
10779 2009-09-06 Bruno Haible <bruno@clisp.org>
10781 * modules/openat (configure.ac): Remove unneeded witness.
10783 2009-09-06 Bruno Haible <bruno@clisp.org>
10785 Set errno to ENOSYS when a function is entirely unsupported.
10786 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10788 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10789 * modules/chown (Depends-on): Remove errno.
10791 2009-09-06 Bruno Haible <bruno@clisp.org>
10793 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10795 2009-09-06 Bruno Haible <bruno@clisp.org>
10797 * lib/sys_stat.in.h: Fix preprocessor command indentation.
10799 2009-09-06 Ben Pfaff <blp@gnu.org>
10800 Bruno Haible <bruno@clisp.org>
10802 Work around a glibc bug in strtok_r.
10803 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10804 Undefine if UNDEFINE_STRTOK_R is set.
10805 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10806 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10807 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10808 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10809 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10811 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10813 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
10816 * lib/exclude.c: Include wctype.h
10818 2009-09-06 Akim Demaille <demaille@gostai.com>
10820 bootstrap: improve error message
10821 * build-aux/bootstrap (find_tool): Upon failure, report the list
10823 Honor the initial value of the envvar.
10825 2009-09-05 Eric Blake <ebb9@byu.net>
10827 symlinkat: new module
10828 * modules/symlinkat: New file.
10829 * lib/symlinkat.c: Likewise.
10830 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10831 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10832 * modules/unistd (Makefile.am): Use them.
10833 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10834 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10835 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10836 * MODULES.html.sh (File system functions): Mention module.
10837 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10838 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10839 * modules/symlinkat-tests: New test.
10840 * tests/test-symlinkat.c: Likewise.
10842 test-openat-safer: add more checks
10843 * tests/test-openat-safer.c (main): Check more code paths.
10845 2009-09-05 Jim Meyering <meyering@redhat.com>
10847 syntax-check: detect unnecessary inclusion of openat.h
10848 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10850 2009-09-05 Bruno Haible <bruno@clisp.org>
10852 Support towlower, towupper.
10853 * doc/posix-functions/towlower.texi: Mention module wctype.
10854 * doc/posix-functions/towupper.texi: Likewise.
10855 * lib/wctype.in.h (towlower, towupper): New functions.
10856 * tests/test-wctype.c: Include stdio.h, stdlib.h.
10857 (ASSERT): New macro.
10859 (main): Test also towlower, towupper. Test WEOF argument.
10860 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10862 2009-09-05 Bruno Haible <bruno@clisp.org>
10864 Fix conversion behaviour when the input is invalid.
10865 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10866 mark occurring in first pass of indirect conversion.
10867 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10869 Found by clang's static analyzer.
10871 2009-09-05 Bruno Haible <bruno@clisp.org>
10873 * tests/test-striconveh.c (main): Test indirect conversion on platforms
10874 where direct conversion is possible.
10876 2009-09-04 Eric Blake <ebb9@byu.net>
10878 openat: fail with ENOENT on empty name
10879 * lib/openat-proc.c (openat_proc_name): Special-case the empty
10882 link-follow: fix logic bug in prior patch
10883 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10884 reversed sense of yes and no in prior patch. Avoid confusing
10885 compilation failure with desired semantics.
10887 link-follow: accomodate mingw and cross-compilation
10888 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10889 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
10890 cross-compilation results to -1, to make linkat easier to
10891 implement when cross-compiling. Trivially support mingw.
10892 * modules/link-follow (configure.ac): Call new name.
10893 * NEWS: Mention this.
10895 2009-09-03 Eric Blake <ebb9@byu.net>
10897 faccessat: compile replacement
10898 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10901 fts: fix compilation error
10902 * lib/fts.c (includes): Re-add "openat.h", for
10903 openat_needs_fchdir.
10905 faccessat: new module
10906 * modules/faccessat: New file.
10907 * lib/faccessat.c: Likewise.
10908 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10909 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10910 * modules/unistd (Makefile.am): Use it.
10911 * lib/unistd.in.h (faccessat): Declare it.
10912 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10913 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10914 * MODULES.html.sh (File system functions): Mention it.
10915 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10916 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10918 euidaccess: prefer POSIX over non-standard implementation
10919 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10920 * lib/euidaccess.c (euidaccess): Use it if available.
10922 openat: make template easier to use
10923 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10924 AT_FUNC_F2 to be undefined.
10925 (VALIDATE_FLAG): New macro; use it to reject bad flags.
10926 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10927 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10928 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10929 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10931 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10932 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10933 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10936 openat: declare in POSIX headers
10937 * NEWS: Mention this.
10938 * modules/openat (configure.ac): Declare witnesses.
10939 (Depends-on): Add fcntl-h, sys_stat, unistd.
10940 (Include): Mention correct headers.
10941 * modules/fcntl-h (Depends-on): Add link-warning.
10942 (Files): Add openat.m4.
10943 (Makefile.am): Substitute witnesses.
10944 * modules/sys_stat (Files, Makefile.am): Likewise.
10945 * modules/unistd (Files, Makefile.am): Likewise.
10946 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10947 (gl_OPENAT_DEFAULTS): New macro.
10948 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10949 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10950 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10951 (SYS_STAT_H): Remove unused variable.
10952 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10953 * lib/fcntl--.h (includes): Remove unneeded header.
10954 * lib/openat-safer.c (includes): Likewise.
10955 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10956 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10957 appropriate headers.
10958 (__OPENAT_PREFIX): Delete.
10959 * lib/fcntl.in.h (openat): Provide declaration.
10960 (AT_FDCWD): Fix Solaris bug.
10961 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10962 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10963 * lib/fchmodat.c (includes): Adjust to find declaration.
10964 * lib/fchownat.c (includes): Likewise.
10965 * lib/mkdirat.c (includes): Likewise.
10966 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
10969 2009-09-02 Eric Blake <ebb9@byu.net>
10971 errno: use consistently
10972 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10973 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10974 * lib/canonicalize.c (ELOOP): Likewise.
10975 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10976 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10977 * lib/lchown.c (EOPNOTSUPP): Likewise.
10978 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10979 * lib/savewd.c (ESTALE): Likewise.
10980 * lib/settime.c (ENOSYS): Likewise.
10981 * lib/utimens.c (ENOSYS): Likewise.
10982 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10983 * lib/chdir-safer.c (ELOOP): Likewise.
10984 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10985 * modules/c-stack (Depends-on): Add errno.
10986 * modules/canonicalize (Depends-on): Likewise.
10987 * modules/chdir-safer (Depends-on): Likewise.
10988 * modules/fdopendir (Depends-on): Likewise.
10989 * modules/inet_ntop (Depends-on): Likewise.
10990 * modules/inet_pton (Depends-on): Likewise.
10991 * modules/lchown (Depends-on): Likewise.
10992 * modules/openat (Depends-on): Likewise.
10993 * modules/savewd (Depends-on): Likewise.
10994 * modules/settime (Depends-on): Likewise.
10995 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10997 fts: avoid leaking fds
10998 * modules/fts (Depends-on): Add cloexec.
10999 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11002 fts: make directory fds more robust
11003 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11004 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11006 backupfile, chdir-long, fts, savedir: make safer
11007 * lib/backupfile.c (includes): Use "dirent--.h", since
11008 numbered_backup can write to stderr during readdir.
11009 * lib/savedir.c (includes): Likewise.
11010 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11011 emulation can write to stderr on failure.
11012 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11013 * lib/getcwd.c: Document why opendir_safer is unused.
11014 * lib/glob.c: Likewise.
11015 * lib/scandir.c: Likewise.
11016 * lib/openat-proc.c: Likewise, for open_safer.
11017 * modules/backupfile (Depends-on): Add dirent-safer.
11018 * modules/savedir (Depends-on): Likewise.
11019 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11020 * modules/chdir-long (Depends-on): Add openat-safer.
11022 openat-safer: new module
11023 * modules/openat-safer: New file.
11024 * lib/openat-safer.c: Likewise.
11025 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11026 * lib/fcntl-safer.h (openat_safer): Declare.
11027 * lib/fcntl--.h (openat): Override.
11028 * MODULES.html.sh (File descriptor based I/O): Mention it.
11029 * lib/openat.h: Add double-inclusion guards.
11030 * lib/openat.c (includes): Only include "fcntl-safer.h", not
11031 "fcntl--.h", so we can implement openat.
11032 * modules/openat-safer-tests: New test.
11033 * tests/test-openat-safer.c: New file.
11035 dirent-safer: new module
11036 * modules/dirent-safer: New file.
11037 * lib/dirent--.h: Likewise.
11038 * lib/dirent-safer.h: Likewise.
11039 * lib/opendir-safer.c: Likewise.
11040 * m4/dirent-safer.m4: Likewise.
11041 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11042 * modules/dirent-safer-tests: New test.
11043 * tests/test-dirent-safer.c: New file.
11044 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11046 fdopendir: optimize on mingw
11047 * lib/unistd.in.h (_gl_directory_name): New prototype.
11048 * lib/fchdir.c (_gl_directory_name): Implement it.
11049 (fchdir): Use it to simplify implementation.
11050 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11051 fchdir, when available, to avoid calling [f]chdir().
11053 fdopendir: split into its own module
11054 * lib/openat.c (fdopendir): Move...
11055 * lib/fdopendir.c: ...into new file.
11056 * modules/fdopendir: New module.
11057 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11058 * modules/openat (Depends-on): Add fdopendir.
11059 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11061 * modules/savedir (Depends-on): Only need fdopendir, not full
11063 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11064 * lib/openat.h (fdopendir): Drop prototype.
11065 * lib/dirent.in.h (fdopendir): Provide prototype.
11066 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11067 * modules/dirent (Makefile.am): Substitute them.
11068 * MODULES.html.sh (File system functions): Mention it.
11069 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11070 * modules/fdopendir-tests: New file.
11071 * tests/test-fdopendir.c: Likewise.
11073 fchdir: use more consistent macro convention
11074 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11075 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11076 REPLACE_FCHDIR, rather than relying on config.h macros.
11077 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11078 inside a single make-time REPLACE_FCHDIR block, rather than using
11079 the config.h FCHDIR_REPLACEMENT.
11080 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11081 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
11082 Manage fstat replacement.
11083 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11085 * modules/sys_stat (Files): Add m4/unistd_h.m4.
11086 (Makefile.am): Substitute REPLACE_FCHDIR.
11087 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11088 FCHDIR_REPLACEMENT.
11089 * lib/dup-safer.c (dup_safer): Likewise.
11090 * lib/dup2.c (rpl_dup2): Likewise.
11091 * lib/dup3.c (rpl_dup3): Likewise.
11092 * lib/open.c (rpl_open): Likewise.
11094 fchdir: simplify error handling, and support dup3
11095 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
11096 stdbool, malloc-posix, realloc-posix.
11097 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11098 (ensure_dirs_slot): Return false on allocation failure.
11099 (rpl_dup2): Delete.
11100 (_gl_register_dup): New function.
11101 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11102 (_gl_register_fd): Close fd on allocation failure.
11103 * lib/fcntl.in.h (_gl_register_fd): Update signature.
11104 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11106 (rpl_dup2_fchdir): Delete prototype.
11107 * lib/open.c (open): Update caller.
11108 * lib/dup2.c (dup2): Track fchdir metadata.
11109 * lib/dup3.c (dup3): Likewise.
11110 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11111 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11113 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11115 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11116 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11117 don't pass arguments to AC_OUTPUT.
11119 2009-09-02 Bruno Haible <bruno@clisp.org>
11121 * modules/mkdtemp (License): Relicense under LGPLv2+.
11122 Reported by Paolo Bonzini.
11124 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11126 Replace uses of obsolete autoconf macros in Jim's modules.
11127 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11128 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11129 can evoke a warning from autoconf when run with -Wobsolete
11130 enabled. They were declared obsolete for good reasons (see
11131 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11132 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11133 should not continue using the deprecated macros.
11134 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11135 obsolete Autoconf macros with modern counterparts.
11136 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11137 * m4/dos.m4 (gl_AC_DOS): Likewise.
11138 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11139 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11140 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11141 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11142 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11143 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11144 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11145 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11146 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11148 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11149 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11150 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11151 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11152 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11153 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11155 2009-09-01 Eric Blake <ebb9@byu.net>
11157 fchdir: fix off-by-one bug in previous patch
11158 * lib/fchdir.c (rpl_fstat): Use correct bounds.
11159 (_gl_unregister_fd): Delete useless if.
11161 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
11163 maint.mk: sort the list of syntax-check rules
11164 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11165 easier to get a sense of progress when the rules are run sequentially
11166 and take a long time.
11168 2009-09-01 Simon Josefsson <simon@josefsson.org>
11170 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11171 * modules/netinet_in: Likewise.
11172 * modules/sys_file: Likewise.
11173 * modules/sys_ioctl: Likewise.
11174 * modules/sys_select: Likewise.
11175 * modules/sys_socket: Likewise.
11176 * modules/sys_stat: Likewise.
11177 * modules/sys_time: Likewise.
11178 * modules/sys_times: Likewise.
11179 * modules/sys_utsname: Likewise.
11180 * modules/sys_wait: Likewise.
11182 2009-09-01 Jim Meyering <meyering@redhat.com>
11184 fts: help ensure that return values are not ignored
11185 * lib/fts_.h (__GNUC_PREREQ): Define.
11186 (__attribute_warn_unused_result__): Define.
11187 (fts_children, fts_close, fts_open, fts_read): Declare with
11188 __attribute_warn_unused_result__.
11190 fts: fts_close now fails also when closing a dir file descriptor fails
11191 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11192 and propagate to caller, along with errno.
11194 announce-gen: correct formatting in --help output
11195 * build-aux/announce-gen (usage): Move the one-line description in
11196 --help output "up", to where it belongs, just after Usage:.
11198 2009-08-31 Eric Blake <ebb9@byu.net>
11200 fchdir: port to mingw
11201 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11202 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11203 opened, then use a substitute.
11204 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11206 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11207 (_gl_register_fd): No need to check stat if open already filters
11209 (fchdir): Fix error condition to match POSIX.
11210 * modules/fchdir (Depends-on): Add sys_stat.
11211 * doc/posix-functions/open.texi (open): Document the limitation.
11212 * modules/fchdir-tests: New file.
11213 * tests/test-fchdir.c: Likewise.
11215 canonicalize: allow cross-testing from cygwin to mingw
11216 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11217 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11218 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11220 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11221 target does not support symlinks.
11222 * tests/test-canonicalize-lgpl.sh: Likewise.
11224 chown: avoid compilation warning on mingw
11225 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11226 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11228 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11229 * modules/chown (Depends-on): Add errno.
11231 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
11233 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11236 2009-08-31 Jim Meyering <meyering@redhat.com>
11238 canonicalize: remove useless initialization
11239 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11240 initialization of local, "end".
11242 2009-08-30 Bruno Haible <bruno@clisp.org>
11244 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11245 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11248 2009-08-30 Bruno Haible <bruno@clisp.org>
11250 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11251 /usr/xpg4/bin/tr when it exists.
11252 * tests/test-pipe-filter-gi1.sh: Likewise.
11254 2009-08-30 Bruno Haible <bruno@clisp.org>
11256 Work around deficient /usr/bin/id program on Solaris.
11257 * tests/test-file-has-acl.sh (ID): New variable.
11258 * tests/test-set-mode-acl.sh (ID): Likewise.
11259 * tests/test-copy-acl.sh (ID): Likewise.
11260 * tests/test-copy-file.sh (ID): Likewise.
11262 2009-08-30 Bruno Haible <bruno@clisp.org>
11264 New module 'xstriconveh'.
11265 * lib/xstriconveh.h: New file.
11266 * lib/xstriconveh.c: New file.
11267 * modules/xstriconveh: New file.
11269 2009-08-30 Bruno Haible <bruno@clisp.org>
11271 Make it easier to use mem_cd_iconveh.
11272 * lib/striconveh.h (iconveh_t): New type.
11273 (iconveh_open, iconveh_close): New declarations.
11274 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11275 with a single 'const iconveh_t *' argument.
11276 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11277 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11278 with a single 'const iconveh_t *' argument.
11279 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11280 * tests/test-striconveh.c (main): Update.
11281 * NEWS: Mention the change.
11283 2009-08-30 Bruno Haible <bruno@clisp.org>
11285 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11288 2009-08-30 Bruno Haible <bruno@clisp.org>
11290 Work around iconv_open problem on Solaris.
11291 * lib/iconv_open-solaris.gperf: New file.
11292 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11293 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11294 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11295 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11296 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11297 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11299 2009-08-29 Jim Meyering <meyering@redhat.com>
11301 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11302 * top/maint.mk (cvs-check): Remove target; it was just an alias
11303 to the better-named vc-diff-check.
11304 (maintainer-distcheck): Remove rule. It was used only from
11305 the (alpha/beta/major) target, and all of its commands but one
11306 were coreutils-specific.
11307 (vc-dist): Remove rule.
11308 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11309 Run vc-diff-check, not vc-dist.
11310 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
11312 2009-08-27 Bruno Haible <bruno@clisp.org>
11314 * tests/test-bitrotate.c (main): Remove test that uses a shift count
11317 2009-08-27 Bruno Haible <bruno@clisp.org>
11319 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11321 * doc/func.texi: Document the SunPRO C bug.
11323 2009-08-27 Bruno Haible <bruno@clisp.org>
11325 Fix link error on Solaris.
11326 * tests/test-parse-duration.c (xstrdup): Remove function.
11328 2009-08-26 Pádraig Brady <P@draigbrady.com>
11330 ignore-value: handle pointer types, too
11331 * lib/ignore-value.h (__attribute__): Remove definition.
11332 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11333 of a more concise and more-often effective "(void) i" statement.
11334 (ignore_ptr): New function to suppress warnings from functions that
11335 return pointers, and to make it explicit that one function doesn't
11338 2009-08-25 Bruno Haible <bruno@clisp.org>
11340 dup2: work around a Linux bug.
11341 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11342 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11343 * doc/posix-functions/dup2.texi: Mention the Linux bug.
11344 Reported by Simon Josefsson.
11346 2009-08-25 Jim Meyering <meyering@redhat.com>
11348 libguestfs uses gnulib
11349 * users.txt: Add libguestfs.
11351 2009-08-24 Eric Blake <ebb9@byu.net>
11353 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11354 * lib/pipe2.c (includes): Add binary-io.h.
11355 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11357 2009-08-24 Bruno Haible <bruno@clisp.org>
11359 Tolerate declared but missing accept4 syscall.
11360 * lib/accept4.c (accept4): Invoke original accept4 function first, if
11362 * lib/sys_socket.in.h (accept4): If the function is already present,
11364 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11365 * modules/accept4 (Makefile.am): Compile accept4.c always.
11366 Reported by Paolo Bonzini and Eric Blake.
11368 2009-08-23 Bruno Haible <bruno@clisp.org>
11370 New module 'accept4'.
11371 * lib/sys_socket.in.h (accept4): New declaration.
11372 * lib/accept4.c: New file.
11373 * m4/accept4.m4: New file.
11374 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11375 GNULIB_ACCEPT4, HAVE_ACCEPT4.
11376 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11378 * modules/accept4: New file.
11379 * doc/glibc-functions/accept4.texi: Mention the new module.
11381 2009-08-24 Jim Meyering <meyering@redhat.com>
11383 progname: also set global program_invocation_name, when possible
11384 Before this change, a libtool-enabled program that calls glibc's
11385 error function would report the program name as
11386 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11387 * modules/progname (configure.ac): Check for a declaration of
11388 program_invocation_name.
11389 * lib/progname.c: Include <errno.h>.
11390 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11391 Set program_invocation_name.
11393 2009-08-23 Bruno Haible <bruno@clisp.org>
11395 * lib/dup3.c: Include <string.h>.
11397 2009-08-23 Bruno Haible <bruno@clisp.org>
11399 * lib/dup3.c (dup3): Test only once whether the system actually exists.
11400 * lib/pipe2.c (pipe2): Likewise.
11401 Suggested by Eric Blake.
11403 2009-08-23 Bruno Haible <bruno@clisp.org>
11405 Tolerate declared but missing dup3 syscall.
11406 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11407 * lib/unistd.in.h (dup3): If the function is already present,
11409 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11410 * modules/dup3 (Makefile.am): Compile dup3.c always.
11411 Reported by Paolo Bonzini.
11413 2009-08-23 Bruno Haible <bruno@clisp.org>
11415 Tolerate declared but missing pipe2 syscall.
11416 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11418 * lib/unistd.in.h (pipe2): If the function is already present,
11420 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11421 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11422 Reported by Paolo Bonzini.
11424 2009-08-23 Bruno Haible <bruno@clisp.org>
11426 * lib/pipe2.c (pipe2): Move #ifs inside function.
11428 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
11430 quotearg: document limitations of quote_these_too
11431 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11432 those limitations are created.
11433 * lib/quotearg.h (set_char_quoting): Document that digits and
11434 letters that are special after backslash are not permitted.
11435 (quotearg_char): Cross-reference set_char_quoting documentation.
11437 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
11439 quotearg: implement custom_quoting_style
11440 * lib/quotearg.c: (struct quoting_options): Add left_quote and
11441 right_quote fields.
11442 (set_custom_quoting): New public function.
11443 (quotearg_buffer_restyled): Add left_quote and right_quote
11444 arguments, handle them very much like locale quoting, and update
11446 (quotearg_n_custom): New public function.
11447 (quotearg_n_custom_mem): New public function.
11448 (quotearg_custom): New public function.
11449 (quotearg_custom_mem): New public function.
11450 * lib/quotearg.h: Prototype and document new public functions.
11451 (enum quoting_style): For escape_quoting_style and
11452 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11453 ignored even though they're otherwise like c_quoting_style.
11454 Add custom_quoting_style member and document with comparison to
11455 clocale_quoting_style.
11456 * tests/test-quotearg.c (custom_quotes): New array.
11457 (custom_results): New array.
11458 (main): Extend to test custom quoting.
11460 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
11462 quotearg: fix right quote escaping when it's in quote_these_too
11463 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11464 quote, be sure to prepend only one backslash.
11465 * tests/test-quotearg.c (use_quote_double_quotes): New function.
11468 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
11470 quotearg-tests: test escaping of embedded locale quotes
11471 * tests/test-quotearg.c (struct result_strings): Add member for
11473 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11474 (inputs): Add new input.
11475 (results_g): Add expected results.
11476 (flag_results): Likewise.
11477 (locale_results): Likewise.
11478 (compare_strings): Check those.
11480 2009-08-23 Bruno Haible <bruno@clisp.org>
11482 Tests for module 'dup3'.
11483 * modules/dup3-tests: New file.
11484 * tests/test-dup3.c: New file.
11487 * lib/unistd.in.h (dup3): New declaration.
11488 * lib/dup3.c: New file.
11489 * m4/dup3.m4: New file.
11490 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11492 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11493 * modules/dup3: New file.
11494 * doc/glibc-functions/dup3.texi: Mention the new module.
11496 2009-08-23 Bruno Haible <bruno@clisp.org>
11498 Tweak the dup2 test.
11499 * tests/test-dup2.c (main): Create the test file empty. Verify that an
11500 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11501 the test file is still empty. Fix argument order of lseek.
11503 2009-08-23 Bruno Haible <bruno@clisp.org>
11505 Avoid test link errors when the modules getopt-gnu, gettext are used.
11506 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11507 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11509 2009-08-23 Bruno Haible <bruno@clisp.org>
11511 Fix getdtablesize() on mingw.
11512 * lib/getdtablesize.c (getdtablesize): Implement differently.
11513 * lib/unistd.in.h (getdtablesize): Improve comment.
11515 2009-08-23 Bruno Haible <bruno@clisp.org>
11517 New module 'mkostemp'.
11518 Based on Ulrich Drepper's 2007-08-10 change in glibc.
11519 * lib/stdlib.in.h (mksotemp): New declaration.
11520 * lib/mkostemp.c: New file, from glibc with modifications.
11521 * lib/tempname.h (GT_FILE): Remove outdated comment.
11522 (gen_tempname): Add flags argument.
11523 * lib/tempname.c (__GT_BIGFILE): Remove macro.
11524 (__GT_FILE): Map to 1.
11525 (small_open, large_open): Remove macros.
11526 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11527 * lib/mkstemp.c (mkstemp): Update.
11528 * lib/mkdtemp.c (mkdtemp): Likewise.
11529 * m4/mkostemp.m4: New file.
11530 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11532 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11534 * modules/mkostemp: New file, based on modules/mkstemp.
11535 * doc/glibc-functions/mkostemp.texi: Mention the new module.
11536 * NEWS: Mention the change.
11538 2009-08-23 Bruno Haible <bruno@clisp.org>
11540 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11541 Reported by Eric Blake.
11543 2009-08-23 Bruno Haible <bruno@clisp.org>
11545 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11546 Reported by Eric Blake.
11548 2009-08-23 Bruno Haible <bruno@clisp.org>
11550 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11551 * modules/pipe2 (Depends-on): Likewise.
11553 2009-08-23 Eric Blake <ebb9@byu.net>
11555 fcntl-h: add O_TTY_INIT support
11556 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11557 * tests/test-fcntl-h.c (o): Test it.
11558 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11560 fcntl-h: rename from fcntl, in preparation for fcntl(2)
11561 * modules/fcntl: Move <fcntl.h> header replacement...
11562 * modules/fcntl-h: ...to new name, so as not to collide with
11563 like-named function.
11564 * tests/test-fcntl.c: Rename...
11565 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
11566 * modules/fcntl-tests: Rename...
11567 * modules/fcntl-h-tests: ...to this. Update test file name.
11568 * modules/chdir-long (Depends-on): Update clients.
11569 * modules/chdir-safer (Depends-on): Likewise.
11570 * modules/fcntl-safer (Depends-on): Likewise.
11571 * modules/fts (Depends-on): Likewise.
11572 * modules/mkancesdirs (Depends-on): Likewise.
11573 * modules/mkdir-p (Depends-on): Likewise.
11574 * modules/open (Depends-on): Likewise.
11575 * modules/savewd (Depends-on): Likewise.
11576 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11577 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11579 2009-08-22 Bruno Haible <bruno@clisp.org>
11581 * modules/binary-io (License): Relicense under LGPL.
11582 * modules/pipe2 (License): Likewise.
11584 2009-08-22 Bruno Haible <bruno@clisp.org>
11586 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11588 * lib/pipe-filter-gi.c (filter_init): Likewise.
11589 Reported by Eric Blake.
11591 2009-08-22 Bruno Haible <bruno@clisp.org>
11593 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11594 * modules/pipe (Depends-on): Add pipe2.
11596 2009-08-22 Bruno Haible <bruno@clisp.org>
11598 Tests for module 'pipe2'.
11599 * modules/pipe2-tests: New file.
11600 * tests/test-pipe2.c: New file.
11602 New module 'pipe2'.
11603 * lib/unistd.in.h (pipe2): New declaration.
11604 * lib/pipe2.c: New file.
11605 * m4/pipe2.m4: New file.
11606 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11608 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11609 * modules/pipe2: New file.
11610 * doc/glibc-functions/pipe2.texi: Mention the new module.
11612 2009-08-22 Bruno Haible <bruno@clisp.org>
11614 Reference some new glibc functions.
11615 * doc/glibc-functions/accept4.texi: New file.
11616 * doc/glibc-functions/dup3.texi: New file.
11617 * doc/glibc-functions/mkostemp.texi: New file.
11618 * doc/glibc-functions/pipe2.texi: New file.
11619 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11620 (Glibc sys/socket.h): Refer to accept4.
11621 (Glibc unistd.h): Refer to dup3, pipe2.
11622 Reported by Eric Blake.
11624 2009-08-22 Jim Meyering <meyering@redhat.com>
11625 Bruno Haible <bruno@clisp.org>
11627 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11628 This makes it so packages using automake-1.11's silent-rules option
11629 can print e.g., a single "GEN configmake.h" line, rather than
11630 the 30+ statements that perform the job. If you want to see the
11631 actual commands, you can still run "make V=1".
11632 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11633 so that make output is abbreviated when those variables are defined
11635 * modules/argz: Likewise.
11636 * modules/arpa_inet: Likewise.
11637 * modules/byteswap: Likewise.
11638 * modules/configmake: Likewise.
11639 * modules/dirent: Likewise.
11640 * modules/errno: Likewise.
11641 * modules/fcntl: Likewise.
11642 * modules/float: Likewise.
11643 * modules/fnmatch: Likewise.
11644 * modules/getopt-posix: Likewise.
11645 * modules/glob: Likewise.
11646 * modules/iconv_open: Likewise.
11647 * modules/inttypes: Likewise.
11648 * modules/localcharset: Likewise.
11649 * modules/locale: Likewise.
11650 * modules/math: Likewise.
11651 * modules/netdb: Likewise.
11652 * modules/netinet_in: Likewise.
11653 * modules/poll: Likewise.
11654 * modules/posix_spawnp-tests: Likewise.
11655 * modules/sched: Likewise.
11656 * modules/search: Likewise.
11657 * modules/selinux-h: Likewise.
11658 * modules/signal: Likewise.
11659 * modules/spawn: Likewise.
11660 * modules/stdarg: Likewise.
11661 * modules/stdbool: Likewise.
11662 * modules/stddef: Likewise.
11663 * modules/stdint: Likewise.
11664 * modules/stdio: Likewise.
11665 * modules/stdlib: Likewise.
11666 * modules/string: Likewise.
11667 * modules/strings: Likewise.
11668 * modules/sys_file: Likewise.
11669 * modules/sys_ioctl: Likewise.
11670 * modules/sys_select: Likewise.
11671 * modules/sys_socket: Likewise.
11672 * modules/sys_stat: Likewise.
11673 * modules/sys_time: Likewise.
11674 * modules/sys_times: Likewise.
11675 * modules/sys_utsname: Likewise.
11676 * modules/sys_wait: Likewise.
11677 * modules/sysexits: Likewise.
11678 * modules/time: Likewise.
11679 * modules/unistd: Likewise.
11680 * modules/wchar: Likewise.
11681 * modules/wctype: Likewise.
11683 2009-08-22 Jim Meyering <meyering@redhat.com>
11685 announce-gen: detect write failure
11686 * build-aux/announce-gen: Add Coda at end.
11687 Remove equivalent-but-more-verbose block at top.
11689 2009-08-19 Akim Demaille <demaille@gostai.com>
11691 bootstrap: --help to stdout.
11692 * bootstrap (usage): Don't send --help to stderr.
11693 Use a here doc instead of a long string.
11695 2009-08-21 Eric Blake <ebb9@byu.net>
11697 test-popen-safer: split from test-popen
11698 * tests/test-popen.c (main): Move...
11699 * tests/test-popen.h: ...into new file.
11700 * tests/test-popen-safer2.c: New file.
11701 * modules/popen-tests (Files): Add test-popen.h.
11702 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11703 Suggested by Bruno Haible.
11705 test-fcntl-safer: split from test-open
11706 * tests/test-open.c (main): Move...
11707 * tests/test-open.h: ...into new file.
11708 * tests/test-fcntl-safer.c: New file.
11709 * modules/open-tests (Files): Add test-open.h.
11710 * modules/fcntl-safer-tests: New file.
11711 Suggested by Bruno Haible.
11713 test-fopen-safer: split from test-fopen
11714 * tests/test-fopen.c (main): Move...
11715 * tests/test-fopen.h: ...into new file.
11716 * tests/test-fopen-safer.c: New file.
11717 * modules/fopen-tests (Files): Add test-fopen.h.
11718 * modules/fopen-safer-tests: New file.
11719 Suggested by Bruno Haible.
11721 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
11723 popen-safer: test O_CLOEXEC at run-time.
11724 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11726 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
11728 fcntl: move more flags to the header
11729 * lib/cloexec.c: Do not define FD_CLOEXEC here.
11730 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11731 * lib/fcntl.in.h: Do both things here.
11733 2009-08-21 Jim Meyering <meyering@redhat.com>
11735 consistently remove $@-t before redirecting to it
11736 * modules/argz: Remove $@-t and $@ before redirecting to the former.
11737 * modules/alloca-opt: Likewise.
11738 * modules/byteswap: Likewise.
11739 * modules/fnmatch: Likewise.
11740 * modules/getopt-posix: Likewise.
11741 * modules/glob: Likewise.
11742 * modules/poll: Likewise.
11743 * modules/posix_spawnp-tests: Likewise.
11744 * modules/sys_socket: Likewise.
11745 * modules/sysexits: Likewise.
11747 2009-08-21 Eric Blake <ebb9@byu.net>
11749 popen: simplify access to original popen
11750 * lib/popen.c (rpl_popen): No need to worry about popen being a
11752 Reported by Bruno Haible.
11754 2009-08-20 Eric Blake <ebb9@byu.net>
11756 build: avoid some compiler warnings
11757 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11758 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11760 (new_exclude_segment, excluded_file_pattern_p)
11761 (excluded_file_name_p): Reduce scope.
11762 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11763 old-style declaration.
11765 2009-08-20 Simon Josefsson <simon@josefsson.org>
11767 * tests/test-exclude1.sh: Handle Windows EOL.
11768 * tests/test-exclude2.sh: Likewise.
11769 * tests/test-exclude3.sh: Likewise.
11770 * tests/test-exclude4.sh: Likewise.
11771 * tests/test-exclude5.sh: Likewise.
11772 * tests/test-exclude6.sh: Likewise.
11773 * tests/test-exclude7.sh: Likewise.
11775 2009-08-19 Akim Demaille <demaille@gostai.com>
11777 bootstrap: find sha1sum when named gsha1sum.
11778 * bootstrap (find_tool): New.
11782 2009-08-20 Jim Meyering <meyering@redhat.com>
11784 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11785 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11786 expression that converts "." in a file name to "\." in the resulting
11787 regexp. Start with a dummy statement, so that prior shell variable
11788 definitions are expanded portably. Reported by Simon Josefsson.
11790 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
11792 Fix polling for writeability of a screen buffer.
11793 * lib/poll.c: Distinguish input and screen buffers for the
11794 Win32 implementation.
11795 * lib/select.c: Likewise.
11797 2009-08-19 Eric Blake <ebb9@byu.net>
11799 popen-safer: prevent popen from clobbering std descriptors
11800 * modules/popen-safer: New file.
11801 * lib/popen-safer.c: Likewise.
11802 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11803 * lib/stdio--.h (popen): Provide override.
11804 * lib/stdio-safer.h (popen_safer): Provide declaration.
11805 * tests/test-popen.c (includes): Partially test this.
11806 * modules/popen-safer-tests: New file, for more tests.
11807 * tests/test-popen-safer.c: Likewise.
11808 * MODULES.html.sh (file stream based Input/Output): Mention it.
11810 tests: test some of the *-safer modules
11811 * modules/fopen-safer (Depends-on): Add fopen.
11812 * modules/fcntl-safer (Depends-on): Add fcntl.
11813 * modules/stdlib-safer (Depends-on): Add stdlib.
11814 (configure.ac): Set indicator.
11815 * modules/unistd-safer (configure.ac): Likewise.
11816 * modules/tmpfile-safer (configure.ac): Likewise.
11817 (Depends-on): Add tmpfile.
11818 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11820 * tests/test-fopen.c (includes): Test safer versions when they are
11822 * tests/test-open.c (includes): Likewise.
11824 popen: fix cygwin 1.5 bug when stdin closed
11825 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11826 * modules/popen: New file.
11827 * modules/popen-tests: Likewise.
11828 * tests/test-popen.c: Likewise.
11829 * m4/popen.m4: Likewise.
11830 * lib/popen.c: Likewise.
11831 * lib/stdio.in.h (popen): New declaration.
11832 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11833 * modules/stdio (Makefile.am): Likewise.
11834 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11836 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
11838 maint.mk: give full control over update-copyright exclusions
11839 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11840 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11841 (update-copyright): Don't force inclusion of top-level
11842 ChangeLog. Don't force exclusion of all COPYING files, but make
11843 them the default exclusion instead.
11845 2009-08-16 Bruno Haible <bruno@clisp.org>
11847 Fix test failures on Solaris 10.
11848 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11849 tests when Solaris iconv() is used.
11850 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11851 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11852 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11853 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11854 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11856 2009-08-16 Bruno Haible <bruno@clisp.org>
11858 Fix test failures on Solaris 10.
11859 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11860 'tr' program and pass it as first argument.
11861 * tests/test-pipe-filter-gi1.sh: Likewise.
11862 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11863 program as first argument.
11864 * tests/test-pipe-filter-gi1.c (main): Likewise.
11866 2009-08-16 Eric Blake <ebb9@byu.net>
11868 fpurge: fix previous commits
11869 * modules/fpurge (Makefile.am): Make replacement conditional,
11870 partially reverting 2007-04-29 change; missed in previous
11872 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11875 2009-08-16 Bruno Haible <bruno@clisp.org>
11877 Clarify fpurge's effect on the file position.
11878 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11879 * tests/test-fpurge.c (main): Make a second pass for checking the file
11882 2009-08-16 Bruno Haible <bruno@clisp.org>
11884 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11885 declaration of fpurge is missing.
11886 * tests/test-fpurge.c (main): Check that the file has not more contents
11887 than expected. Close the file before removing it.
11889 2009-08-15 Eric Blake <ebb9@byu.net>
11891 fpurge: don't wrap working cygwin implementation
11892 * lib/fpurge.c (fpurge): Fix comment typo.
11893 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11894 1.7 to avoid replacement.
11895 * tests/test-fpurge.c (main): Enhance test.
11897 2009-08-15 Eric Blake <ebb9@byu.net>
11898 and Jim Meyering <meyering@redhat.com>
11900 test-update-copyright: skip if perl is insufficient
11901 * tests/test-update-copyright.sh: Failure to run maintainer tool
11902 should not cause testsuite failure on cygwin 1.5.
11904 2009-08-14 Eric Blake <ebb9@byu.net>
11906 doc: mention more functions added in cygwin 1.7.0
11907 * doc/posix-headers/limits.texi (limits.h): Update for recent
11909 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11910 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11911 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11912 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11913 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11915 2009-08-14 Eric Blake <ebb9@byu.net>
11917 maint.mk: simplify update-copyright rule
11918 * top/maint.mk (update-copyright-local): Delete, and document how
11919 to do it in cfg.mk instead.
11920 (update-copyright-exclude-regexp): Delete, and document how to do
11921 it in .x-update-copyright instead.
11922 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
11925 2009-08-14 Bruno Haible <bruno@clisp.org>
11927 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11929 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11931 maint.mk: support update-copyright-env
11932 * top/maint.mk (update-copyright-env): Define place-holder.
11933 (update-copyright): Expand $(update-copyright-env) before
11934 invoking update-copyright.
11936 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
11938 update-copyright: implement forced reformatting
11939 * build-aux/update-copyright: Implement and document
11940 UPDATE_COPYRIGHT_FORCE.
11941 * tests/test-update-copyright.sh: Test it.
11943 2009-08-14 Eric Blake <ebb9@byu.net>
11944 and Bruno Haible <bruno@clisp.org>
11946 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11947 * tests/test-locale.c: Revert previous patch related to NULL.
11948 * tests/test-stdio.c: Likewise.
11949 * tests/test-stdlib.c: Likewise.
11950 * tests/test-string.c: Likewise.
11951 * tests/test-unistd.c: Likewise.
11952 * modules/time-tests (Depends-on): Add verify.
11953 * modules/wchar-tests (Depends-on): Likewise.
11954 * tests/test-time.c: Test for NULL compliance.
11955 * tests/test-wchar.c: Likewise.
11956 * modules/locale (Depends-on): Add stddef.
11957 * modules/stdio (Depends-on): Likewise.
11958 * modules/stdlib (Depends-on): Likewise.
11959 * modules/string (Depends-on): Likewise.
11960 * modules/time (Depends-on): Likewise.
11961 * modules/unistd (Depends-on): Likewise.
11962 * modules/wchar (Depends-on): Likewise.
11963 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11964 * lib/stdlib.in.h (includes): Likewise.
11965 * lib/string.in.h (includes): Likewise.
11966 * lib/time.in.h (includes): Likewise.
11967 * lib/unistd.in.h (includes): Likewise.
11968 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11970 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11971 * m4/stddef_h.m4: New file.
11972 * modules/stddef: Likewise.
11973 * lib/stddef.in.h: Likewise.
11974 * modules/stddef-tests: Likewise.
11975 * tests/test-stddef.c: Likewise.
11976 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11977 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11978 * doc/posix-headers/locale.texi (locale.h): Likewise.
11979 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11980 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11981 * doc/posix-headers/string.texi (string.h): Likewise.
11982 * doc/posix-headers/time.texi (time.h): Likewise.
11983 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11984 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11986 2009-08-14 Eric Blake <ebb9@byu.net>
11988 doc: improve git diff of texinfo files
11989 * .gitattributes: Add rule for *.texi files, with hint on how to
11991 Copied from m4, and based on a report by Bruno Haible.
11993 2009-08-14 Bruno Haible <bruno@clisp.org>
11995 Disable multithread support by default on Cygwin 1.5.x for real.
11996 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11998 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
12000 update-copyright: much ado about intervals
12001 * build-aux/update-copyright: Implement and document
12002 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12003 of copyright year intervals.
12004 Also, document UPDATE_COPYRIGHT_YEAR.
12005 * tests/test-update-copyright.sh: Test it.
12007 update-copyright: convert 2-digit to 4-digit years
12008 * build-aux/update-copyright: Implement and document.
12009 * tests/test-update-copyright.sh: Update.
12011 2009-08-14 Jim Meyering <meyering@redhat.com>
12013 test-exclude: avoid coreutils "make check" failure
12014 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12015 just as in test-argmatch.c.
12017 2009-08-13 Eric Blake <ebb9@byu.net>
12019 test-dup2: fix bad assumption
12020 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12021 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12023 test-version-etc: fix CRLF portability issue
12024 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12026 * tests/test-argp-version-etc-1.sh: Likewise.
12028 getopt: update client modules
12029 * modules/argp (Depends-on): Use getopt-gnu.
12030 * modules/git-merge-changelog (Depends-on): Likewise.
12031 * modules/long-options (Depends-on): Likewise.
12032 * modules/xstrtol (Depends-on): Likewise.
12034 2009-08-13 Simon Josefsson <simon@josefsson.org>
12036 * tests/test-version-etc.sh: Don't fail on different
12037 project/version. Don't fail on CRLF differences. Rewrite to use
12038 multiple -e instead of multiple sed forks, suggested by Eric Blake
12040 * tests/test-argp-version-etc-1.sh: Likewise.
12042 2009-08-13 Simon Josefsson <simon@josefsson.org>
12044 * tests/test-version-etc.sh: Don't fail on different
12047 2009-08-12 Bruno Haible <bruno@clisp.org>
12049 Tests for modules 'getopt-posix', 'getopt-gnu'.
12050 * modules/getopt-posix-tests: New file.
12051 * tests/test-getopt.c: New file.
12052 * tests/test-getopt.h: New file.
12053 * tests/test-getopt_long.h: New file.
12055 New modules 'getopt-posix', 'getopt-gnu'.
12056 * modules/getopt-gnu: New file, renamed from modules/getopt.
12057 * modules/getopt-posix: New file.
12058 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12059 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12060 (gl_GETOPT): Remove macro.
12061 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12062 Disable the test against BSD systems that declare optreset. Test
12063 against mingw bug. Test against lack of support of optional arguments
12065 * doc/glibc-headers/getopt.texi: Update module name and list of
12066 relevant platforms.
12067 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12068 'getopt-gnu' and more portability problems.
12069 * NEWS: Mention the changes.
12071 2009-08-12 Bruno Haible <bruno@clisp.org>
12073 Ensure that optarg etc. get declared by <unistd.h>.
12074 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12075 AC_USE_SYSTEM_EXTENSIONS.
12076 * modules/getopt (Depends-on): Add 'extensions'.
12078 2009-08-12 Bruno Haible <bruno@clisp.org>
12080 Avoid test link errors.
12081 * modules/pipe-filter-ii-tests (Makefile.am): Define
12082 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12083 * modules/pipe-filter-gi-tests (Makefile.am): Define
12084 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12085 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12087 2009-08-12 Bruno Haible <bruno@clisp.org>
12089 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12090 gl_GETOPT_SUBSTITUTE before.
12091 (gl_GETOPT): Use it.
12092 * m4/argp.m4 (gl_ARGP): Update.
12093 Reported by Sergey Poznyakoff.
12095 * m4/getopt.m4: Reorder macros.
12096 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12097 (gl_GETOPT_SUBSTITUTE): Remove macro.
12099 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
12101 Minor improvement in gitlog-to-changelog
12103 * build-aux/gitlog-to-changelog: New option `--format' makes
12104 output format string configurable.
12106 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
12108 Optimize exclude: use hash tables for non-wildcard patterns.
12110 * lib/exclude.c: Include hash.h and mbuiter.h
12111 (struct exclude_pattern, exclude_segment): New data types.
12112 (struct exclude): Rewrite.
12113 (fnmatch_pattern_has_wildcards): New function.
12114 (new_exclude_segment, free_exclude_segment): New functions.
12115 (excluded_file_pattern_p, excluded_file_name_p): New functions.
12116 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12117 * lib/exclude.h (is_fnmatch_pattern): New prototype.
12118 * modules/exclude: Depend on hash and mbuiter.
12120 * modules/exclude-tests: New file.
12121 * tests/test-exclude.c: New file.
12122 * tests/test-exclude1.sh: New file.
12123 * tests/test-exclude2.sh: New file.
12124 * tests/test-exclude3.sh: New file.
12125 * tests/test-exclude4.sh: New file.
12126 * tests/test-exclude5.sh: New file.
12127 * tests/test-exclude6.sh: New file.
12128 * tests/test-exclude7.sh: New file.
12130 2009-08-12 Bruno Haible <bruno@clisp.org>
12132 Ensure that getopt() gets declared by <unistd.h>.
12133 * lib/unistd.in.h: Conditionally include getopt.h.
12134 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12135 Set GNULIB_UNISTD_H_GETOPT.
12136 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12137 GNULIB_UNISTD_H_GETOPT.
12138 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12140 2009-08-12 Bruno Haible <bruno@clisp.org>
12143 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12144 gl_replace_getopt instead of GETOPT_H.
12146 2009-08-12 Bruno Haible <bruno@clisp.org>
12148 * m4/getopt.m4: Add comments.
12150 2009-08-12 Bruno Haible <bruno@clisp.org>
12152 Disable multithread support by default on Cygwin 1.5.x.
12153 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12154 set gl_use_threads=no if not specified otherwise.
12156 2009-08-11 Bruno Haible <bruno@clisp.org>
12158 Avoid compilation error on NetBSD 5.0.
12159 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12160 * tests/test-stdio.c: Likewise.
12161 * tests/test-stdlib.c: Likewise.
12162 * tests/test-string.c: Likewise.
12163 * tests/test-unistd.c: Likewise.
12164 Reported by Greg Troxel <gdt@ir.bbn.com>
12165 at <https://savannah.gnu.org/support/?106973>.
12167 2009-08-11 Bruno Haible <bruno@clisp.org>
12169 * modules/dup2-tests (Depends-on): Remove close.
12171 Undo 2009-07-19 commit.
12172 * modules/acl-tests (Depends-on): Remove close.
12173 * modules/binary-io-tests (Depends-on): Likewise.
12174 * modules/closein-tests (Depends-on): Likewise.
12175 * modules/flock-tests (Depends-on): Likewise.
12176 * modules/fsync-tests (Depends-on): Likewise.
12177 * modules/lseek-tests (Depends-on): Likewise.
12178 * modules/pipe-tests (Depends-on): Likewise.
12179 * modules/posix_spawn-tests (Depends-on): Likewise.
12180 * modules/posix_spawnp-tests (Depends-on): Likewise.
12181 * modules/stat-time-tests (Depends-on): Likewise.
12182 * modules/yesno-tests (Depends-on): Likewise.
12184 2009-08-10 Bruno Haible <bruno@clisp.org>
12186 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12188 2009-08-10 Bruno Haible <bruno@clisp.org>
12191 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12193 2009-08-10 Bruno Haible <bruno@clisp.org>
12195 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12196 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12197 not only the first time.
12198 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12199 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12200 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12201 is 1, not only the the first time.
12203 2009-08-10 Bruno Haible <bruno@clisp.org>
12205 Make it possible to use module 'gethostname' without module 'close'.
12206 * lib/unistd.in.h (close): Evoke a link error only if
12207 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12208 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12209 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12210 * modules/unistd (Makefile.am): Substitute
12211 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12212 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12213 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12214 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12215 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12216 * modules/sys_ioctl (Makefile.am): Substitute
12217 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12218 * modules/socket (configure.ac): On native Windows, set
12219 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12220 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12221 Reported by Sam Steingold <sds@gnu.org>.
12223 2009-08-10 Bruno Haible <bruno@clisp.org>
12225 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12226 * modules/ioctl (configure.ac): Likewise.
12228 2009-08-10 Bruno Haible <bruno@clisp.org>
12230 Avoid collision between gnulib wrapper and libintl wrapper.
12231 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12232 already defined in intl/printf.c.
12233 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12234 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12236 2009-08-09 Bruno Haible <bruno@clisp.org>
12238 Make <sys/select.h> really self-contained, also on Solaris 10.
12239 * lib/sys_select.in.h: Include <string.h>.
12240 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12241 Solaris 10 problem.
12242 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12243 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12244 Reported by Jim Meyering.
12246 2009-08-09 Bruno Haible <bruno@clisp.org>
12248 Avoid warnings from 'aclocal' that are due to a use of macro name
12249 AM_XGETTEXT_OPTION that is not defined in automake.
12250 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12252 * modules/error (configure.ac): Likewise.
12253 * modules/propername (configure.ac): Likewise.
12254 * modules/vasprintf (configure.ac): Likewise.
12255 * modules/verror (configure.ac): Likewise.
12256 * modules/xprintf (configure.ac): Likewise.
12257 * modules/xvasprintf (configure.ac): Likewise.
12259 2009-08-08 Bruno Haible <bruno@clisp.org>
12261 Avoid compilation error in C++ mode.
12262 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12263 Reported by Sam Steingold <sds@gnu.org>.
12265 2009-08-08 Bruno Haible <bruno@clisp.org>
12267 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12268 for the various Unix platforms.
12269 * doc/posix-headers/limits.texi: Update platforms list regarding
12271 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12273 2009-08-07 Jim Meyering <meyering@redhat.com>
12275 selinux-at: fix typo in a comment
12276 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12277 Spotted by Paolo Bonzini.
12279 selinux-at: remove redundant m4 code, add documentation
12280 * modules/selinux-at (configure.ac): Remove redundant code.
12281 LIB_SELINUX is already set via the dependent module, selinux-h.
12282 (Include): Add quotes around selinux-at.h.
12283 * lib/selinux-at.h: Add documentation.
12284 Reported by Bruno Haible in
12285 http://marc.info/?l=gnulib-bug&m=124958988300749
12287 2009-08-07 Bruno Haible <bruno@clisp.org>
12289 Avoid link error on MacOS X 10.3 and 10.4.
12290 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12291 on non-ELF systems.
12292 * lib/argp-pv.c (argp_program_version): Likewise.
12293 Reported by Simon Josefsson.
12295 2009-08-07 Simon Josefsson <simon@josefsson.org>
12297 * tests/test-version-etc.sh: Use $EXEEXT.
12299 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
12301 update-copyright: update documentation to point to maint.mk
12302 * build-aux/update-copyright: Here.
12304 2009-08-06 Jim Meyering <meyering@redhat.com>
12306 maint.mk: support update-copyright-local
12307 * top/maint.mk (update-copyright-local): Define place-holder.
12308 (update-copyright): Depend on $(update-copyright-local).
12310 2009-08-06 Jim Meyering <meyering@redhat.com>
12312 selinux-at: new module
12313 Initially written for coreutils, this module will soon be
12314 used by findutils, too.
12315 * MODULES.html.sh [Misc]: Add selinux-at.
12316 * lib/selinux-at.h: New file, from coreutils.
12317 * lib/selinux-at.c: Likewise.
12318 * modules/selinux-at: Likewise.
12319 (License): Change from LGPL to GPL, since it depends
12320 on the GPL'd openat module.
12323 * README: Remove references to cogito.
12324 Remove cvs-repo-updating instructions from 2007.
12325 Don't imply that CVS is better if you have limited disk space.
12327 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
12329 update-copyright: support C-style comments
12330 * build-aux/update-copyright: Implement and document.
12331 * tests/test-update-copyright.sh: Test.
12333 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
12335 update-copyright: support omitted "(C)"
12336 * build-aux/update-copyright: Implement and document. Also,
12337 allow variable whitespace before "(C)".
12338 * tests/test-update-copyright.sh: Test.
12340 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
12342 update-copyright: don't trip on non-FSF copyright statements
12343 * build-aux/update-copyright: Fix so that the first correctly
12344 formatted FSF copyright statement is recognized no matter what
12345 appears before it. Update documentation.
12346 * tests/test-update-copyright.sh: Test that.
12348 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
12350 update-copyright: clean up code a little
12351 * build-aux/update-copyright: Append "_re" to the name of any
12352 variable holding a regular expression.
12353 Replace "old" and "new" with "stmt" in variable names.
12354 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12356 Format code more consistently.
12358 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
12360 update-copyright-tests: improve portability
12361 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12362 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
12364 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
12366 update-copyright: support @copyright{} and ©
12367 * build-aux/update-copyright: Implement and document.
12368 * tests/test-update-copyright.sh: Test.
12370 2009-08-04 Jim Meyering <meyering@redhat.com>
12372 update-copyright-tests: correctly test EOL=\r\n handling
12373 * tests/test-update-copyright.sh: Put \r at the end of some lines
12374 for the dos-eol tests. Based on a patch by Joel E. Denny.
12376 maint.mk: make update-copyright exclusion list more configurable
12377 * top/maint.mk (update-copyright): Default to excluding COPYING,
12378 but allow an override, in case someone does want to update that file.
12380 maint.mk: don't update copyright date in COPYING
12381 * top/maint.mk (update-copyright): Exclude COPYING.
12383 maint.mk: add a copyright-updating rule
12384 * top/maint.mk (update-copyright): New rule.
12385 Derived from coreutils/Makefile.am.
12387 update-copyright: rename some variables
12388 * build-aux/update-copyright: Rename a few variables for clarity.
12389 Tweak syntax. List Joel E. Denny as coauthor.
12391 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
12393 update-copyright: fix bug for 2-digit last year and add tests
12394 * build-aux/update-copyright: Fix bug.
12395 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12397 * modules/update-copyright-tests: New
12398 * tests/test-update-copyright.sh: New.
12400 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
12402 update-copyright: handle leading tabs in line prefix
12403 * build-aux/update-copyright: Count leading tabs as 8 spaces
12404 when computing margin. This helps with the formatting of
12405 ChangeLogs, for example.
12406 Fix documentation a little.
12408 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
12410 update-copyright: support EOL=\r\n
12411 * build-aux/update-copyright: Implement that.
12413 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
12415 update-copyright: automatically format copyright statements
12416 * build-aux/update-copyright: Implement that.
12417 Also, be a little more predictable and safer by always failing
12418 when the full copyright format is not perfectly recognized as an
12419 unbroken whole. Discussed at
12420 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12421 Rewrite documentation.
12423 2009-08-03 Bruno Haible <bruno@clisp.org>
12425 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12427 2009-08-02 Bruno Haible <bruno@clisp.org>
12429 Tests for module 'uname'.
12430 * modules/uname-tests: New file.
12431 * tests/test-uname.c: New file.
12433 New module 'uname'.
12434 * lib/uname.c: New file.
12435 * m4/uname.m4: New file.
12436 * modules/uname: New file.
12437 * doc/posix-functions/uname.texi: Mention the new module.
12439 2009-08-02 Bruno Haible <bruno@clisp.org>
12441 Tests for module 'sys_utsname'.
12442 * modules/sys_utsname-tests: New file.
12443 * tests/test-sys_utsname.c: New file.
12445 New module 'sys_utsname'.
12446 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12447 * m4/sys_utsname_h.m4: New file.
12448 * modules/sys_utsname: New file.
12449 * doc/posix-headers/sys_utsname.texi: Mention the new module.
12451 2009-08-02 Bruno Haible <bruno@clisp.org>
12453 Implicitly initialize the sockets library.
12454 * lib/gethostname.c: Include sockets.h.
12455 (rpl_gethostname): Invoke gl_sockets_startup.
12456 * lib/socket.c: Include sockets.h.
12457 (rpl_socket): Invoke gl_sockets_startup.
12458 * modules/gethostname (Depends-on): Add sockets.
12459 * modules/socket (Depends-on): Likewise.
12460 * tests/test-poll.c: Don't include sockets.h.
12461 (main): Don't invoke gl_sockets_startup.
12462 * tests/test-select.c: Don't include sockets.h.
12463 (main): Don't invoke gl_sockets_startup.
12465 2009-08-02 Bruno Haible <bruno@clisp.org>
12467 Allow multiple calls to gl_sockets_startup.
12468 * lib/sockets.c (initialized_sockets_version): New variable.
12469 (gl_sockets_startup): Do nothing if already called for this or a higher
12471 (gl_sockets_cleanup): Reset initialized_sockets_version.
12473 2009-08-03 Simon Josefsson <simon@josefsson.org>
12475 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
12476 different project/version.
12478 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
12479 Bruno Haible <bruno@clisp.org>
12481 Tests for module 'pipe-filter-gi'.
12482 * modules/pipe-filter-gi-tests: New file.
12483 * tests/test-pipe-filter-gi1.sh: New file.
12484 * tests/test-pipe-filter-gi1.c: New file.
12485 * tests/test-pipe-filter-gi2.sh: New file.
12486 * tests/test-pipe-filter-gi2-main.c: New file.
12487 * tests/test-pipe-filter-gi2-child.c: New file.
12489 New module 'pipe-filter-gi'.
12490 * lib/pipe-filter-gi.c: New file.
12491 * modules/pipe-filter-gi: New file.
12493 2009-08-02 Bruno Haible <bruno@clisp.org>
12494 Paolo Bonzini <bonzini@gnu.org>
12496 Tests for module 'pipe-filter-ii'.
12497 * modules/pipe-filter-ii-tests: New file.
12498 * tests/test-pipe-filter-ii1.sh: New file.
12499 * tests/test-pipe-filter-ii1.c: New file.
12500 * tests/test-pipe-filter-ii2.sh: New file.
12501 * tests/test-pipe-filter-ii2-main.c: New file.
12502 * tests/test-pipe-filter-ii2-child.c: New file.
12504 New module 'pipe-filter-ii'.
12505 * lib/pipe-filter.h: New file.
12506 * lib/pipe-filter-ii.c: New file.
12507 * lib/pipe-filter-aux.h: New file.
12508 * modules/pipe-filter-ii: New file.
12510 2009-08-02 Simon Josefsson <simon@josefsson.org>
12512 * lib/gc-libgcrypt.c: Change copyright to FSF.
12513 * lib/gc-gnulib.c: Likewise.
12515 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
12517 * lib/gethostname.c: Include limits.h.
12519 2009-08-02 Simon Josefsson <simon@josefsson.org>
12520 Bruno Haible <bruno@clisp.org>
12522 Ensure HOST_NAME_MAX as part of the gethostname module.
12523 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12524 define also HOST_NAME_MAX.
12525 * tests/test-gethostname.c: Include <limits.h>.
12526 (main): Check also HOST_NAME_MAX.
12527 * doc/posix-headers/limits.texi: Document the mingw problem.
12529 2009-08-02 Bruno Haible <bruno@clisp.org>
12531 * lib/gethostname.c (gethostname): Fix handling of large len argument.
12534 2009-03-31 Simon Josefsson <simon@josefsson.org>
12536 * lib/gethostname.c: Add Windows wrapper.
12537 * m4/gethostname.m4: Look for gethostname in -lws2_32.
12538 * modules/gethostname: Depend on sys_socket & errno, for also
12539 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
12540 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12542 2009-07-31 Jim Meyering <meyering@redhat.com>
12544 getloadavg: fix symbol name in comment
12545 * lib/getloadavg.c: Correct a typo I introduced when adding
12546 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12547 Matt Kraai spotted the problem.
12549 2009-07-29 Matt Kraai <mkraai@beckman.com>
12551 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12552 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12553 code also if ! defined N_NAME_POINTER.
12554 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12555 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12556 but the n_name member is a 12-byte array.
12558 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
12560 update-copyright: generalize comment handling
12561 * build-aux/update-copyright: Handle copyright statements
12562 within more comment styles.
12564 Report any file with an external copyright holder or parse failure.
12566 2009-07-29 Jim Meyering <meyering@redhat.com>
12568 mktime: correct setting of REPLACE_MKTIME
12569 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12571 update-copyright: new module
12572 * modules/update-copyright: New file.
12573 * build-aux/update-copyright: New file.
12574 * MODULES.html.sh (maint+release support): Add update-copyright.
12576 2009-07-27 Bruno Haible <bruno@clisp.org>
12578 Fix compilation error when <ctime> is used and mktime is replaced.
12579 * lib/time.in.h (mktime): New declaration.
12580 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12581 REPLACE_MKTIME instead of defining mktime in config.h.
12582 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12583 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12584 Reported by Ross McFarland <rwmcfa1@neces.com>.
12586 2009-07-27 Bruno Haible <bruno@clisp.org>
12588 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12589 Reported by Matt Kraai <mkraai@beckman.com>.
12591 2009-07-25 Jim Meyering <meyering@redhat.com>
12593 maint.mk: avoid warnings about missing files
12594 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12595 diagnostic when .prev-version does not exist.
12596 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12597 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12598 nonexistent cfg.mk.
12599 Suggestions from Simon Josefsson.
12601 2009-07-25 Bruno Haible <bruno@clisp.org>
12603 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12604 defined as macros. Needed on QNX 6.4.1.
12605 Reported by Matt Kraai <mkraai@beckman.com>.
12607 2009-07-23 Jim Meyering <meyering@redhat.com>
12609 maint.mk: invoke "make dist" with a working value of XZ_OPT
12610 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12612 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
12614 Make fseeko.c compile on QNX.
12615 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12617 2009-07-22 Peter Simons <simons@cryp.to>
12619 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12620 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12621 * lib/md4.h: Likewise.
12622 * lib/md5.h: Likewise.
12623 * lib/sha1.h: Likewise.
12624 * lib/sha256.h: Likewise.
12625 * lib/sha512.h: Likewise.
12627 tests-sha1: don't assign literal string to 'char *' variable
12628 * tests/test-sha1.c (main): Declare locals with "const" to match
12629 attributes of the right hand side.
12631 2009-07-21 Eric Blake <ebb9@byu.net>
12633 dup2: fix more mingw problems
12634 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12636 * doc/posix-functions/dup2.texi (dup2): Document the bug.
12637 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12638 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12639 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12640 care of mingw bugs.
12642 2009-07-21 Jim Meyering <meyering@redhat.com>
12644 vc-list-files: avoid failure when /bin/sh is dash
12645 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12646 On some Debian based systems, /bin/sh is a symlink to dash, and running
12647 this command would omit the "/" following each 'tests' prefix:
12648 dash -x build-aux/vc-list-files -C . tests
12649 That is because bash and dash work differently:
12650 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12654 2009-07-21 Eric Blake <ebb9@byu.net>
12656 dup2-tests: test previous patch
12657 * modules/dup2-tests: New file.
12658 * tests/test-dup2.c: Likewise.
12659 * tests/test-open.c (main): Avoid unspecified behavior.
12660 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12663 dup2: work around mingw and cygwin 1.5 bug
12664 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12665 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12666 * modules/unistd (Makefile.am): Substitute it.
12667 * lib/unistd.in.h (dup2): Declare the replacement.
12668 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12669 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12670 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12671 * modules/execute (Depends-on): Add dup2.
12672 * modules/fseterr (Depends-on): Likewise.
12673 * modules/pipe (Depends-on): Likewise.
12674 * modules/posix_spawn-internal (Depends-on): Likewise.
12676 2009-07-21 Bruno Haible <bruno@clisp.org>
12678 * modules/.gitattributes: New file.
12680 2009-07-20 Bruno Haible <bruno@clisp.org>
12682 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12685 2009-07-20 Eric Blake <ebb9@byu.net>
12687 test-pipe: make a bit more robust.
12688 * tests/test-pipe.c (myerr): Allow error messages regardless of
12689 what we do to stderr.
12690 (test_pipe): Rearrange to avoid deadlock.
12691 (child_main): Try a larger read, to ensure we avoided deadlock.
12692 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12693 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12696 2009-07-19 Jim Meyering <meyering@redhat.com>
12698 fts: avoid false-positive cycle-detection
12699 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12700 for each new command line argument.
12702 2009-07-19 Bruno Haible <bruno@clisp.org>
12704 Fix build error on mingw with the modules sys_select and unistd.
12705 * modules/acl-tests (Depends-on): Add close.
12706 * modules/binary-io-tests (Depends-on): Likewise.
12707 * modules/closein-tests (Depends-on): Likewise.
12708 * modules/flock-tests (Depends-on): Likewise.
12709 * modules/fsync-tests (Depends-on): Likewise.
12710 * modules/lseek-tests (Depends-on): Likewise.
12711 * modules/pipe-tests (Depends-on): Likewise.
12712 * modules/posix_spawn-tests (Depends-on): Likewise.
12713 * modules/posix_spawnp-tests (Depends-on): Likewise.
12714 * modules/stat-time-tests (Depends-on): Likewise.
12715 * modules/yesno-tests (Depends-on): Likewise.
12717 2009-07-19 Bruno Haible <bruno@clisp.org>
12719 Unify conditionals.
12720 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12721 macros, not at the compiler macros.
12722 * lib/pipe.c: Likewise.
12723 * lib/execute.c: Likewise.
12724 * lib/spawni.c: Likewise.
12726 2009-07-19 Bruno Haible <bruno@clisp.org>
12728 Fix handling of closed stdin/stdout/stderr on mingw.
12729 * lib/w32spawn.h: Include unistd.h.
12730 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12731 file descriptor with O_NOINHERIT flag.
12732 (fd_safer_noinherit): New function, based on fd-safer.c.
12733 (dup_safer_noinherit): New function, based on dup-safer.c.
12734 (undup_safer_noinherit): New function.
12735 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12736 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12737 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12738 instead of fd_safer.
12739 * tests/test-pipe.c: Include <windows.h>.
12740 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12742 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12744 (test_pipe): Pass an extra argument for disambiguation.
12745 (main): Invoke parent_main or child_main.
12747 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12750 2009-07-18 Eric Blake <ebb9@byu.net>
12752 test-pipe: fix mingw build
12753 * tests/test-pipe.c (main): Avoid fcntl on mingw.
12755 2009-07-18 Bruno Haible <bruno@clisp.org>
12757 * modules/pipe-tests (Makefile.am): Fix typo.
12759 2009-07-18 Eric Blake <ebb9@byu.net>
12761 error: fix mingw build
12762 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12763 Reported by Bruno Haible.
12765 error: avoid undefined use of stdout
12766 * lib/error.c (error, error_at_line): Check that fd 1 is open
12767 before flushing stdout. Avoids a crash on cygwin when libsigsegv
12768 is handling faults and the close_stdout module wants to report the
12769 detection of closed stdout as an error.
12771 2009-07-17 Eric Blake <ebb9@byu.net>
12773 pipe: be robust in face of closed fds
12774 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12775 should cause child to misbehave.
12776 * modules/pipe-tests: New module.
12777 * tests/test-pipe.c: New file.
12778 * tests/test-pipe.sh: New file.
12779 Reported by Akim Demaille.
12781 2009-07-14 Bruno Haible <bruno@clisp.org>
12783 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12784 Reported by anonymous kc.
12786 2009-07-07 Jim Meyering <meyering@redhat.com>
12788 maint.mk: don't look for translatable strings in *.m4 or *.mk
12789 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12790 when searching for translatable strings.
12792 2009-07-05 Jim Meyering <meyering@redhat.com>
12794 remove superfluous parentheses in STREQ definition
12795 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12796 * lib/getugroups.c (STREQ): Likewise.
12797 * lib/fnmatch.c (STREQ): Likewise.
12798 Spotted by Bruno Haible.
12800 2009-07-04 Jim Meyering <meyering@redhat.com>
12802 argv-iter: new module
12803 * MODULES.html.sh: Add argv-iter.
12804 * lib/argv-iter.c, lib/argv-iter.h: New files.
12805 * modules/argv-iter: New file.
12806 * modules/argv-iter-tests: New file.
12807 * tests/test-argv-iter.c: Test it.
12809 2009-07-04 Bruno Haible <bruno@clisp.org>
12812 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12813 contains more exact copies of a given entry than file2, leave the extra
12814 copies unpaired rather than aborting.
12815 Reported by Eric Blake.
12817 2009-07-02 Bruno Haible <bruno@clisp.org>
12819 Speedup git-merge-changelog for git cherry-pick.
12820 * lib/git-merge-changelog.c (struct entries_mapping): New type.
12821 (entries_mapping_get): New function, extracted from compute_mapping.
12822 (entries_mapping_reverse_get): New function.
12823 (compute_mapping): Add a 'full' argument. Return the result in a
12824 'struct entries_mapping'.
12825 (main): Update. Access the mappings through entries_mapping_get.
12826 Reported by Eric Blake.
12828 2009-07-02 Bruno Haible <bruno@clisp.org>
12830 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12833 2009-07-02 Bruno Haible <bruno@clisp.org>
12835 Speed up approximate search for matching ChangeLog entries.
12836 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12837 argument. Call fstrcmp_bounded instead of fstrcmp.
12838 (compute_mapping, try_split_merged_entry, main): Update callers.
12840 2009-07-02 Bruno Haible <bruno@clisp.org>
12842 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12844 2009-06-30 Bruno Haible <bruno@clisp.org>
12846 Reduce the number of uc_is_cased calls.
12847 * lib/unicase.h (casing_suffix_context_t): Add
12848 'first_char_except_ignorable' field.
12849 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12850 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12851 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12852 Update initializer.
12853 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12854 case-ignorable characters.
12855 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12856 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12857 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12858 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12859 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12861 2009-06-30 Bruno Haible <bruno@clisp.org>
12863 Tests for module 'unicase/ignorable'.
12864 * modules/unicase/ignorable-tests: New file.
12865 * tests/unicase/test-ignorable.c: New file, generated by
12868 Tests for module 'unicase/cased'.
12869 * modules/unicase/cased-tests: New file.
12870 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12871 * tests/unicase/test-predicate-part1.h: New file, derived from
12872 tests/unictype/test-predicate-part1.h.
12873 * tests/unicase/test-predicate-part2.h: New file, same as
12874 tests/unictype/test-predicate-part2.h.
12876 Fix evaluation of "Before C" condition of FINAL_SIGMA.
12877 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12878 (output_casing_properties): New function.
12880 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12881 * lib/unicase/cased.c: Include unictype/bitmap.h.
12882 (uc_is_cased): Define through a bitmap lookup.
12883 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12884 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12885 (uc_is_case_ignorable): Define through a bitmap lookup.
12886 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12887 lib/unictype/bitmap.h.
12888 (Depends-on): Add inline. Clean up.
12889 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12890 lib/unictype/bitmap.h.
12891 (Depends-on): Add inline. Clean up.
12892 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12894 * tests/unicase/test-u16-tolower.c (main): Likewise.
12895 * tests/unicase/test-u32-tolower.c (main): Likewise.
12897 2009-06-30 Bruno Haible <bruno@clisp.org>
12899 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12900 * lib/unicase/u16-casemap.c: Likewise.
12901 * lib/unicase/u32-casemap.c: Likewise.
12903 2009-06-29 Bruno Haible <bruno@clisp.org>
12905 Define u32_casefold as a wrapper around u32_ct_casefold.
12906 * lib/unicase/u32-casefold.c: Update.
12907 * modules/unicase/u32-casefold (Depends-on): Add
12908 unicase/u32-ct-casefold, unicase/empty-prefix-context,
12909 unicase/empty-suffix-context. Clean up.
12911 Define u16_casefold as a wrapper around u16_ct_casefold.
12912 * lib/unicase/u16-casefold.c: Update.
12913 * modules/unicase/u16-casefold (Depends-on): Add
12914 unicase/u16-ct-casefold, unicase/empty-prefix-context,
12915 unicase/empty-suffix-context. Clean up.
12917 Define u8_casefold as a wrapper around u8_ct_casefold.
12918 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12919 * lib/unicase/u8-casefold.c: Update.
12920 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12921 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12923 Define u32_totitle as a wrapper around u32_ct_totitle.
12924 * lib/unicase/u32-totitle.c: Update.
12925 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12926 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12928 Define u16_totitle as a wrapper around u16_ct_totitle.
12929 * lib/unicase/u16-totitle.c: Update.
12930 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12931 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12933 Define u8_totitle as a wrapper around u8_ct_totitle.
12934 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12936 (FUNC): Delegate to U_CT_TOTITLE.
12937 * lib/unicase/u8-totitle.c: Update.
12938 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12939 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12941 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12943 * modules/unicase/u32-tolower (Depends-on): Add
12944 unicase/empty-prefix-context, unicase/empty-suffix-context.
12946 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12948 * modules/unicase/u16-tolower (Depends-on): Add
12949 unicase/empty-prefix-context, unicase/empty-suffix-context.
12951 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12952 * modules/unicase/u8-tolower (Depends-on): Add
12953 unicase/empty-prefix-context, unicase/empty-suffix-context.
12955 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12957 * modules/unicase/u32-toupper (Depends-on): Add
12958 unicase/empty-prefix-context, unicase/empty-suffix-context.
12960 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12962 * modules/unicase/u16-toupper (Depends-on): Add
12963 unicase/empty-prefix-context, unicase/empty-suffix-context.
12965 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12966 * modules/unicase/u8-toupper (Depends-on): Add
12967 unicase/empty-prefix-context, unicase/empty-suffix-context.
12969 New module 'unicase/u32-ct-casefold'.
12970 * lib/unicase/u32-ct-casefold.c: New file.
12971 * modules/unicase/u32-ct-casefold: New file.
12973 New module 'unicase/u16-ct-casefold'.
12974 * lib/unicase/u16-ct-casefold.c: New file.
12975 * modules/unicase/u16-ct-casefold: New file.
12977 New module 'unicase/u8-ct-casefold'.
12978 * lib/unicase/u8-ct-casefold.c: New file.
12979 * lib/unicase/u-ct-casefold.h: New file, derived from
12980 lib/unicase/u-casefold.h.
12981 * modules/unicase/u8-ct-casefold: New file.
12983 New module 'unicase/u32-ct-totitle'.
12984 * lib/unicase/u32-ct-totitle.c: New file.
12985 * modules/unicase/u32-ct-totitle: New file.
12987 New module 'unicase/u16-ct-totitle'.
12988 * lib/unicase/u16-ct-totitle.c: New file.
12989 * modules/unicase/u16-ct-totitle: New file.
12991 New module 'unicase/u8-ct-totitle'.
12992 * lib/unicase/u8-ct-totitle.c: New file.
12993 * lib/unicase/u-ct-totitle.h: New file, derived from
12994 lib/unicase/u-totitle.h.
12995 * modules/unicase/u8-ct-totitle: New file.
12997 New module 'unicase/u32-ct-tolower'.
12998 * lib/unicase/u32-ct-tolower.c: New file.
12999 * modules/unicase/u32-ct-tolower: New file.
13001 New module 'unicase/u16-ct-tolower'.
13002 * lib/unicase/u16-ct-tolower.c: New file.
13003 * modules/unicase/u16-ct-tolower: New file.
13005 New module 'unicase/u8-ct-tolower'.
13006 * lib/unicase/u8-ct-tolower.c: New file.
13007 * modules/unicase/u8-ct-tolower: New file.
13009 New module 'unicase/u32-ct-toupper'.
13010 * lib/unicase/u32-ct-toupper.c: New file.
13011 * modules/unicase/u32-ct-toupper: New file.
13013 New module 'unicase/u16-ct-toupper'.
13014 * lib/unicase/u16-ct-toupper.c: New file.
13015 * modules/unicase/u16-ct-toupper: New file.
13017 New module 'unicase/u8-ct-toupper'.
13018 * lib/unicase/u8-ct-toupper.c: New file.
13019 * modules/unicase/u8-ct-toupper: New file.
13021 Add context arguments to u*_casemap functions.
13022 * lib/unicase/unicasemap.h: Include unicase.h.
13023 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13024 suffix_context arguments.
13025 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13027 (FUNC): Add prefix_context and suffix_context arguments. Use
13028 uc_is_cased and uc_is_case_ignorable.
13029 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13030 * lib/unicase/u16-casemap.c: Likewise.
13031 * lib/unicase/u32-casemap.c: Likewise.
13032 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13033 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13034 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13035 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13036 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13037 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13039 New module 'unicase/u32-suffix-context'.
13040 * lib/unicase/u32-suffix-context.c: New file.
13041 * modules/unicase/u32-suffix-context: New file.
13043 New module 'unicase/u16-suffix-context'.
13044 * lib/unicase/u16-suffix-context.c: New file.
13045 * modules/unicase/u16-suffix-context: New file.
13047 New module 'unicase/u8-suffix-context'.
13048 * lib/unicase/u8-suffix-context.c: New file.
13049 * lib/unicase/u-suffix-context.h: New file.
13050 * modules/unicase/u8-suffix-context: New file.
13052 New module 'unicase/empty-suffix-context'.
13053 * lib/unicase/empty-suffix-context.c: New file.
13054 * modules/unicase/empty-suffix-context: New file.
13056 New module 'unicase/u32-prefix-context'.
13057 * lib/unicase/u32-prefix-context.c: New file.
13058 * modules/unicase/u32-prefix-context: New file.
13060 New module 'unicase/u16-prefix-context'.
13061 * lib/unicase/u16-prefix-context.c: New file.
13062 * modules/unicase/u16-prefix-context: New file.
13064 New module 'unicase/u8-prefix-context'.
13065 * lib/unicase/u8-prefix-context.c: New file.
13066 * lib/unicase/u-prefix-context.h: New file.
13067 * lib/unicase/context.h: New file.
13068 * modules/unicase/u8-prefix-context: New file.
13070 New module 'unicase/empty-prefix-context'.
13071 * lib/unicase/empty-prefix-context.c: New file.
13072 * modules/unicase/empty-prefix-context: New file.
13074 New module 'unicase/ignorable'.
13075 * lib/unicase/ignorable.c: New file.
13076 * modules/unicase/ignorable: New file.
13078 New module 'unicase/cased'.
13079 * lib/unicase/caseprop.h: New file.
13080 * lib/unicase/cased.c: New file.
13081 * modules/unicase/cased: New file.
13083 New functions for case mapping of substrings.
13084 * lib/unicase.h (casing_prefix_context_t): New type.
13085 (unicase_empty_prefix_context): New variable.
13086 (u8_casing_prefix_context, u16_casing_prefix_context,
13087 u32_casing_prefix_context, u8_casing_prefixes_context,
13088 u16_casing_prefixes_context, u32_casing_prefixes_context): New
13090 (casing_suffix_context_t): New type.
13091 (unicase_empty_suffix_context): New variable.
13092 (u8_casing_suffix_context, u16_casing_suffix_context,
13093 u32_casing_suffix_context, u8_casing_suffixes_context,
13094 u16_casing_suffixes_context, u32_casing_suffixes_context,
13095 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13096 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13097 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13100 2009-06-28 Jim Meyering <meyering@redhat.com>
13102 boostrap: indent only with spaces
13103 * build-aux/bootstrap: Indent only with spaces, never TABs.
13105 bootstrap: split long lines
13106 * build-aux/bootstrap: Keep line length < 80.
13108 bootstrap: sync from coreutils
13109 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13110 just as autoreconf does. Verify a list of prerequisite
13111 package-name,version-number pairs if defined in bootstrap.conf.
13112 Refer to README-prereq, if prerequisites are not satisfied.
13114 2009-06-27 Eric Blake <ebb9@byu.net>
13116 tests: add test for bogus NULL definition
13117 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13118 * tests/test-stdlib.c: Likewise.
13119 * tests/test-string.c: Likewise.
13120 * tests/test-locale.c: Likewise.
13121 * tests/test-unistd.c: Likewise.
13122 * modules/stdio-tests (Depends-on): Add verify.
13123 * modules/stdlib-tests (Depends-on): Likewise.
13124 * modules/string-tests (Depends-on): Likewise.
13125 * modules/locale-tests (Depends-on): Likewise.
13126 * modules/unistd-tests (Depends-on): Likewise.
13128 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13130 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13131 self-explaining comment.
13132 * m4/selinux-selinux-h: Update serial.
13133 (gl_LIBSELINUX): New macro, adding a warning for missing development
13134 packages to code extracted from...
13135 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
13136 Add warning for missing development packages here, too.
13138 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
13140 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13142 2009-06-25 Eric Blake <ebb9@byu.net>
13144 version-etc: fix regression
13145 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13147 (version_etc): Use it, to catch bugs with trailing NULL.
13148 * lib/version-etc.c (version_etc_arn): Delete unused argument.
13149 (version_etc_va): Fix logic bug.
13150 * modules/version-etc-tests: Add test.
13151 * tests/test-version-etc.c: New file.
13152 * tests/test-version-etc.sh: Likewise.
13154 2009-06-25 Sam Steingold <sds@gnu.org>
13156 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13157 mbtowc declaration.
13159 2009-06-25 Eric Blake <ebb9@byu.net>
13161 fpurge: migrate into <stdio.h>
13162 * lib/fpurge.h: Delete...
13163 * lib/stdio.in.h (fpurge): ...and declare here, instead.
13164 * lib/fpurge.c (fpurge): Change declaring header.
13165 * modules/fpurge (Files): Drop deleted file.
13166 (Depends-on): Add stdio.
13167 (configure.ac): Set witness.
13168 * modules/stdio (Makefile.am): Support fpurge macros.
13169 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13170 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13171 * lib/fflush.c: Update client.
13172 * tests/test-fpurge.c: Likewise.
13173 * NEWS: Mention the change.
13175 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
13177 * lib/argp-version-etc.c (program_authors): Add const
13179 * lib/version-etc.c: Fix typos in the comments.
13180 * modules/argp-version-etc: Depends on version-etc.
13182 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
13184 argp-version-etc: new module.
13186 * lib/argp-version-etc.c: New file.
13187 * lib/argp-version-etc.h: New file.
13188 * modules/argp-version-etc: New file.
13189 * modules/argp-version-etc-tests: New file.
13190 * tests/test-argp-version-etc.c: New test.
13191 * tests/test-argp-version-etc-1.sh: New test.
13193 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
13195 Provide additional interfaces and documentation for version-etc
13198 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13200 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13203 2009-06-24 Bruno Haible <bruno@clisp.org>
13205 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13206 HAVE_LIB${NAME} macro.
13207 Reported by Sam Steingold <sds@gnu.org>.
13209 2009-06-23 Simon Josefsson <simon@josefsson.org>
13211 * modules/hash-tests (test_hash_LDADD): Link to libintl when
13214 2009-06-21 Bruno Haible <bruno@clisp.org>
13216 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13218 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13219 together with LIB${NAME}, LTLIB${NAME}.
13220 Reported by Sam Steingold <sds@gnu.org>.
13222 2009-06-20 Jim Meyering <meyering@redhat.com>
13224 tests: make sc_require_test_exit_idiom more generic
13225 * top/maint.mk (Exit_witness_file): New overridable variable.
13226 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13227 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13229 2009-06-19 Jim Meyering <meyering@redhat.com>
13231 hash: reverse order of src/dst parameters in an internal interface
13232 * lib/hash.c (transfer_entries): Reverse order of parameters to
13233 put DST before SRC. Adjust callers.
13235 tests: test-hash: avoid wholesale duplication
13236 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13237 Instead, use a loop and add a single conditional.
13239 tests: test-hash: allow seed selection via a command line argument
13240 * tests/test-hash.c (get_seed): New function.
13243 2009-06-19 Eric Blake <ebb9@byu.net>
13245 hash: avoid memory leak on allocation failure
13246 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13247 failure. Factor repeated algorithm...
13248 (transfer_entries): ...into new helper routine.
13249 (hash_delete): React to hash_rehash return value.
13251 hash: reduce memory pressure in hash_rehash no-op case
13252 * lib/hash.c (next_prime): Avoid overflow.
13253 (hash_initialize): Factor bucket size computation...
13254 (compute_bucket_size): ...into new helper function.
13255 (hash_rehash): Use new function and open coding to reduce memory
13256 pressure, and avoid a memory leak in USE_OBSTACK code.
13257 Reported by Jim Meyering.
13259 2009-06-18 Eric Blake <ebb9@byu.net>
13261 hash: make rotation more obvious
13262 * modules/hash (Depends-on): Add bitrotate and stdint.
13263 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13264 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
13265 (SIZE_MAX): Rely on headers for definition.
13266 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13267 (raw_hasher): Use rotr_sz.
13268 Suggested by Jim Meyering.
13270 hash: fix memory leak in last patch
13271 * lib/hash.c (hash_rehash): Avoid memory leak.
13273 hash: avoid no-op rehashing
13274 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13276 hash: provide default callback functions
13277 * lib/hash.c (raw_hasher, raw_comparator): New functions.
13278 (hash_initialize): Use them as defaults.
13279 * tests/test-hash.c (main): Test this.
13281 hash: minor optimization
13282 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13284 (hash_initialize): Document this promise.
13285 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13286 * tests/test-hash.c (hash_compare_strings): Test this.
13288 2009-06-18 Bruno Haible <bruno@clisp.org>
13290 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13291 going to be replaced anyway.
13293 2009-06-18 Bruno Haible <bruno@clisp.org>
13295 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13297 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13298 be replaced anyway.
13300 2009-06-18 Eric Blake <ebb9@byu.net>
13302 hash: check for resize before insertion
13303 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13304 threshold before insertion, so that a pathological hash_rehash
13305 that fills every bucket can still trigger another rehash.
13307 2009-06-18 Jim Meyering <meyering@redhat.com>
13309 hash-tests: add a loop around the small tests
13310 * tests/test-hash.c (main): Repeat small tests with selected
13311 small initial table sizes.
13313 2009-06-17 Eric Blake <ebb9@byu.net>
13315 hash: minor cleanups
13316 * lib/hash.h (hash_entry): Make opaque, by moving...
13317 * lib/hash.c (hash_entry): ...here.
13318 (hash_insert): Clarify restrictions on what can be inserted.
13319 (hash_get_next): Clarify when it is safe to remove an element
13321 (check_tuning): Skip verification when tuning is known safe.
13322 (hash_initialize): Clarify restrictions on tuning.
13324 2009-06-17 Jim Meyering <jim@meyering.net>
13325 and Eric Blake <ebb9@byu.net>
13327 hash-tests: new module
13328 * modules/hash-tests: New file.
13329 * tests/test-hash.c: New file.
13331 2009-06-17 Eric Blake <ebb9@byu.net>
13333 strstr-simple: document new module
13334 * MODULES.html.sh: Document new module.
13336 strstr, strcasestr: replace on platforms with broken memchr
13337 * modules/strstr: Split into...
13338 * modules/strstr-simple: ...new module that does not care about
13339 performance, but does care about glibc bug.
13340 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13341 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13342 if platform memchr is broken, per Debian bug 521737.
13343 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13345 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13346 * doc/posix-functions/strstr.texi (strstr): Document the fix.
13347 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13348 * modules/mountlist (Depends-on): Add strstr-simple.
13349 * modules/gen-uni-tables (Depends-on): Likewise.
13350 * modules/argz (Depends-on): Add strstr.
13352 2009-06-17 Bruno Haible <bruno@clisp.org>
13354 * modules/posix_spawn-internal (Depends-on): Add errno.
13356 2009-06-17 Bruno Haible <bruno@clisp.org>
13358 Define missing ESTALE on Interix 3.5.
13359 * lib/errno.in.h (ESTALE): Assign a value if missing.
13360 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13361 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13363 * doc/posix-headers/errno.texi: Mention the Interix bug.
13364 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13366 2009-06-15 Eric Blake <ebb9@byu.net>
13368 memchr, memchr2: add valgrind exception
13369 * lib/memchr.valgrind: New file.
13370 * lib/memchr2.valgrind: New file.
13371 * modules/memchr (Files): Distribute valgrind file.
13372 * modules/memchr2 (Files): Likewise.
13374 docs: memchr is no longer obsolete
13375 * MODULES.html.sh: Move memchr from obsolete to string.h section.
13376 * lib/string.in.h (memchr): Simplify logic.
13378 2009-06-14 Jim Meyering <meyering@redhat.com>
13380 link-follow: fix the "checking..." message to not mention trailing slash
13381 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13382 never considered trailing slashes.
13384 2009-06-14 Bruno Haible <bruno@clisp.org>
13386 * m4/memchr.m4: Mention also the bug on IA-64.
13387 * doc/posix-functions/memchr.texi: Likewise.
13389 2009-06-12 Eric Blake <ebb9@byu.net>
13391 memchr: detect broken x86_64 and alpha implementations
13392 * modules/memchr-tests (Depends-on): Move mmap detection...
13393 * modules/memchr (Depends-on): ...here.
13394 (configure.ac): Set indicator.
13395 * lib/string.in.h (memchr): Declare replacement.
13396 * modules/string (Makefile.am): Trigger replacement.
13397 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13398 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13400 * doc/posix-functions/memchr.texi (memchr): Document the bug.
13401 * modules/getpagesize (License): Relax license.
13403 2009-06-11 Bruno Haible <bruno@clisp.org>
13405 * lib/idpriv.h: Add more references.
13407 2009-06-08 Bruno Haible <bruno@clisp.org>
13409 Tests for module 'idpriv-droptemp'.
13410 * modules/idpriv-droptemp-tests: New file.
13411 * tests/test-idpriv-droptemp.sh: New file.
13412 * tests/test-idpriv-droptemp.su.sh: New file.
13413 * tests/test-idpriv-droptemp.c: New file.
13415 New module 'idpriv-droptemp'.
13416 * lib/idpriv-droptemp.c: New file.
13417 * modules/idpriv-droptemp: New file.
13419 2009-06-08 Bruno Haible <bruno@clisp.org>
13421 Tests for module 'idpriv-drop'.
13422 * modules/idpriv-drop-tests: New file.
13423 * tests/test-idpriv-drop.sh: New file.
13424 * tests/test-idpriv-drop.su.sh: New file.
13425 * tests/test-idpriv-drop.c: New file.
13427 New module 'idpriv-drop'.
13428 * lib/idpriv.h: New file.
13429 * lib-idpriv-drop.c: New file.
13430 * m4/idpriv.m4: New file.
13431 * modules/idpriv-drop: New file.
13433 2009-06-08 Bruno Haible <bruno@clisp.org>
13435 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13436 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13437 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13438 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13439 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13440 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13441 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13443 2009-06-08 Eric Blake <ebb9@byu.net>
13445 test-strstr: use memory fence, when possible
13446 * tests/test-strstr.c (main): Use memory fence, in order to be
13447 more likely to trigger Debian bug 521737.
13448 * modules/strstr-tests (Files): Pull in additional files.
13450 memchr: no longer obsolete, for wider field testing
13451 * modules/memchr (Status, Notice): Delete, this module is no
13453 * modules/vasnprintf (Depends-on): Add memchr.
13455 2009-06-07 Jim Meyering <meyering@redhat.com>
13457 hash: declare some functions with the warn_unused_result attribute
13458 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13460 2009-06-07 Bruno Haible <bruno@clisp.org>
13462 * tests/test-alignof.c: Don't test int64_t if it does not exist.
13463 Reported by Eric Blake.
13465 2009-06-06 Eric Blake <ebb9@byu.net>
13467 test-alignof: fix typo with long double
13468 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13471 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
13473 Escape non-texinfo { and }s.
13474 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13477 2009-06-04 Jim Meyering <meyering@redhat.com>
13479 gitlog-to-changelog: don't infloop on an empty commit log
13480 * build-aux/gitlog-to-changelog: Warn about an empty log message.
13481 Reported by Boris Petersen <transacid@centerim.org>.
13483 2009-06-03 Mike Frysinger <vapier@gentoo.org>
13485 version-etc: extend for packagers
13486 Add three new configure options, intended for packagers:
13487 --with-packager="packager name"
13488 --with-packager-version="packager-specific version"
13489 --with-packager-bug-reports="packager bug reporting"
13490 An example with coreutils:
13492 --with-packager=Gentoo \
13493 --with-packager-bug-report=http://bugs.gentoo.org/ \
13494 --with-packager-version="patchset 1.6"
13495 $ ./src/ls --version | head -n2
13496 ls (GNU coreutils) 7.1-dirty
13497 Packaged by Gentoo (patchset 1.6)
13498 Note that the bug reporting info via --help doesn't show up because
13499 coreutils uses its own custom emit_bug_reporting_address() implementation
13500 in src/system.h. If it didn't, it'd look like:
13501 $ ./src/ls --help | tail -n4
13502 Report bugs to <bug-coreutils@gnu.org>.
13503 Report Gentoo bugs to <http://bugs.gentoo.org/>.
13504 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13505 General help using GNU software: <http://www.gnu.org/gethelp/>.
13506 * lib/version-etc.c: Print new information, if provided.
13507 * m4/version-etc.m4: New file.
13508 * modules/version-etc (Files): Add m4/version-etc.m4.
13509 (configure.ac): Add gl_VERSION_ETC.
13511 2009-05-31 Bruno Haible <bruno@clisp.org>
13513 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13515 * modules/alignof-tests (Dependencies): Add stdint.
13516 Reported by Eric Blake.
13518 2009-05-31 Bruno Haible <bruno@clisp.org>
13520 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13521 restriction due to compiler bugs.
13522 Reported by Eric Blake.
13524 2009-05-31 Simon Josefsson <simon@josefsson.org>
13525 Bruno Haible <bruno@clisp.org>
13527 Fix test-alignof failure.
13528 * lib/alignof.h (alignof_slot): New macro.
13529 (alignof_type): New macro, with the same semantics as the previous
13531 (alignof): Alias to alignof_slot.
13532 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13533 check that the results are usable as constant expressions.
13535 2009-05-31 Bruno Haible <bruno@clisp.org>
13537 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13538 * tests/test-memchr.c (main): Check that memchr does not read past the
13539 first occurrence of the byte.
13540 * tests/test-strstr.c (main): Update comment.
13541 Suggested by Eric Blake.
13543 2009-05-30 Bruno Haible <bruno@clisp.org>
13545 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13546 detail how to use dumpbin.
13547 Reported by David Byron <dbyron@dbyron.com>.
13549 2009-06-02 Simon Josefsson <simon@josefsson.org>
13551 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13553 2009-06-02 Simon Josefsson <simon@josefsson.org>
13555 * m4/manywarnings.m4: Add GCC 4.4 warnings.
13557 2009-05-28 Bruno Haible <bruno@clisp.org>
13559 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13562 2009-05-28 Simon Josefsson <simon@josefsson.org>
13564 * gnulib-tool (func_import): Transform license on build-aux/ files too.
13566 2009-05-27 Simon Josefsson <simon@josefsson.org>
13568 * gnulib-tool (sed_transform_main_lib_file)
13569 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13572 2009-05-26 Simon Josefsson <simon@josefsson.org>
13574 * tests/test-strstr.c: Add another self-test.
13575 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13576 strdup. Suggested by Eric Blake <ebb9@byu.net>.
13578 2009-05-23 Bruno Haible <bruno@clisp.org>
13580 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13583 2009-05-21 Bruno Haible <bruno@clisp.org>
13585 Simplify use of mode_t varargs.
13586 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13587 uses 'mode_t' or 'int'.
13588 * lib/openat.c (openat): Likewise.
13589 * lib/open-safer.c (open_safer): Likewise.
13590 * m4/mode_t.m4: New file.
13591 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13592 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13593 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13594 * modules/open (Files): Add m4/mode_t.m4.
13595 * modules/openat (Files): Likewise.
13596 * modules/fcntl-safer (Files): Likewise.
13597 Suggested by Eric Blake.
13599 2009-05-21 Pádraig Brady <P@draigbrady.com>
13601 * doc/glibc-functions/fallocate.texi: New file.
13602 * doc/gnulib.texi: Include it.
13604 2009-05-21 Eric Blake <ebb9@byu.net>
13605 Bruno Haible <bruno@clisp.org>
13607 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13609 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13611 2009-05-21 Eric Blake <ebb9@byu.net>
13612 Bruno Haible <bruno@clisp.org>
13614 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13615 include_next. Fix of 2008-11-20 commit.
13616 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13617 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13618 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13620 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13621 instead of NEXT_MATH_H.
13623 2009-05-21 Bruno Haible <bruno@clisp.org>
13625 Avoid redefinition warnings for SIZE_MAX.
13626 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13627 Reported by Simon Josefsson.
13629 2009-05-21 Bruno Haible <bruno@clisp.org>
13631 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13634 2009-05-20 Bruno Haible <bruno@clisp.org>
13636 Make zeroptr.h work on mingw.
13637 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13639 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13640 * modules/memchr2-tests (configure.ac): Likewise.
13641 * modules/memcmp-tests (configure.ac): Likewise.
13642 * modules/memmem-tests (configure.ac): Likewise.
13643 * modules/memrchr-tests (configure.ac): Likewise.
13644 Reported by Simon Josefsson.
13646 2009-05-20 Simon Josefsson <simon@josefsson.org>
13648 * tests/test-glob.c: Include string.h for strcmp prototype.
13650 2009-05-20 Simon Josefsson <simon@josefsson.org>
13652 * modules/getdelim (Depends-on): Add explicit stdint, although it
13653 was implicitly already pulled in via realloc-posix.
13654 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13656 2009-05-20 Simon Josefsson <simon@josefsson.org>
13658 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
13659 G. Christensen" <tgc@jupiterrise.com>.
13660 * m4/sys_socket_h.m4: Check for sa_family_t.
13661 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13662 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13663 * tests/test-sys_socket.c: Check that sa_family_t works.
13665 2009-05-18 Eric Blake <ebb9@byu.net>
13667 maint.mk: allow gnulib_dir in VPATH build
13668 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13670 2009-05-15 Jim Meyering <meyering@redhat.com>
13672 maint.mk: Give gnulib_dir a default definition.
13673 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13674 Thus, most packages no longer need to specify this variable in cfg.mk
13676 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
13678 rename.m4: fix typos that would make non-mingw cross-configure fail
13679 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13681 2009-05-13 Eric Blake <ebb9@byu.net>
13683 mmap-anon: avoid out-of-order autoconf expansion
13684 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13685 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13686 * modules/memchr-tests (Depends-on): Add extensions.
13687 * modules/memchr2-tests (Depends-on): Add extensions.
13688 * modules/memcmp-tests (Depends-on): Add extensions.
13689 * modules/memmem-tests (Depends-on): Add extensions.
13690 * modules/memrchr-tests (Depends-on): Add extensions.
13692 2009-05-13 Bruno Haible <bruno@clisp.org>
13694 Make some tests ISO C 99 compliant.
13695 * tests/zerosize-ptr.h: New file.
13696 * tests/test-memchr.c: Include zerosize-ptr.h.
13697 (main): Use a zero-size object pointer instead of NULL.
13698 * tests/test-memchr2.c: Include zerosize-ptr.h.
13699 (main): Use a zero-size object pointer instead of NULL.
13700 * tests/test-memcmp.c: Include zerosize-ptr.h.
13701 (main): Use a zero-size object pointer instead of NULL.
13702 * tests/test-memmem.c: Include zerosize-ptr.h.
13703 (main): Use a zero-size object pointer instead of NULL.
13704 * tests/test-memrchr.c: Include zerosize-ptr.h.
13705 (main): Use a zero-size object pointer instead of NULL.
13706 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13708 (Depends-on): Add getpagesize.
13709 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13710 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13712 (Depends-on): Add getpagesize.
13713 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13714 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13716 (Depends-on): Add getpagesize.
13717 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13718 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13720 (Depends-on): Add getpagesize.
13721 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13722 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13724 (Depends-on): Add getpagesize.
13725 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13727 2009-05-12 Bruno Haible <bruno@clisp.org>
13729 Tests for module 'alignof'.
13730 * modules/alignof-tests: New file.
13731 * tests/test-alignof.c: New file.
13733 2009-05-12 Bruno Haible <bruno@clisp.org>
13736 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13737 vendor compilers that are always correct.
13739 2009-05-12 Bruno Haible <bruno@clisp.org>
13741 Make the MAP_ANONYMOUS detection work on HP-UX 11.
13742 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13743 not whether its fully works.
13745 2009-05-12 Bruno Haible <bruno@clisp.org>
13747 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13749 2009-05-12 Jim Meyering <meyering@redhat.com>
13751 * top/maint.mk: Adjust backslash alignment.
13753 2009-05-11 Simon Josefsson <simon@josefsson.org>
13755 * top/maint.mk: Make $(srcdir)/build-aux configurable.
13757 2009-05-11 Eric Blake <ebb9@byu.net>
13759 argp: avoid undefined behavior
13760 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13763 2009-05-08 Simon Josefsson <simon@josefsson.org>
13765 * tests/test-vc-list-files-git.sh: Do git config of user.email and
13766 user.name to prevent git commit from complaining.
13768 2009-05-10 Bruno Haible <bruno@clisp.org>
13770 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13771 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13772 it rewrites every file name only once.
13773 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13775 2009-05-08 Bruno Haible <bruno@clisp.org>
13777 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13780 2009-05-08 Simon Josefsson <simon@josefsson.org>
13782 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13783 sockaddr_storage test.
13785 2009-05-07 Simon Josefsson <simon@josefsson.org>
13787 * modules/sys_socket (Makefile.am): Substitute
13788 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
13789 * m4/sys_socket_h.m4: Check for sockaddr_storage.
13790 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13791 * tests/test-sys_socket.c: Check sockaddr_storage.
13793 2009-05-08 Bruno Haible <bruno@clisp.org>
13795 New module 'alignof'.
13796 * lib/alignof.h: New file.
13797 * modules/alignof: New file.
13799 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13800 Bruno Haible <bruno@clisp.org>
13802 Fix test-file-has-acl on FreeBSD.
13803 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13804 mask is implicitly added.
13805 * tests/test-file-has-acl.c: Include <signal.h>.
13806 (main): Terminate the test after 5 seconds.
13807 * modules/acl-tests (configure.ac): Check for alarm function.
13809 2009-05-04 Bruno Haible <bruno@clisp.org>
13811 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13812 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13813 * modules/errno (configure.ac): Drop AC_REQUIRE.
13814 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13815 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13817 2009-05-04 Simon Josefsson <simon@josefsson.org>
13819 * modules/glob-tests: New module.
13820 * tests/test-glob.c: Add.
13822 2009-05-04 Simon Josefsson <simon@josefsson.org>
13824 * modules/fnmatch-tests: New module.
13825 * tests/test-fnmatch.c: Add.
13827 2009-05-04 Eric Blake <ebb9@byu.net>
13829 maint: make the new no-submodule-changes rule VPATH-safe
13830 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13832 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13833 Bruno Haible <bruno@clisp.org>
13835 acl: Fix infinite loop on FreeBSD.
13836 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13837 of return value from acl_get_entry.
13838 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13841 2009-05-03 Bruno Haible <bruno@clisp.org>
13843 * lib/acl-internal.h (acl_entries): Clarify return value.
13844 * lib/acl_entries.c (acl_entries): Likewise.
13846 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
13848 Bug fix in acl module.
13849 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13851 2009-05-03 Bruno Haible <bruno@clisp.org>
13853 Create gperf-generated file in the source dir, not in the build dir.
13854 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13855 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13856 * modules/unicase/locale-language (unicase/locale-languages.h):
13858 * modules/unicase/special-casing (unicase/special-casing-table.h):
13860 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13861 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13862 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13863 Reported by Ralf Wildenhues.
13865 2009-05-03 Bruno Haible <bruno@clisp.org>
13867 * modules/fnmatch (Description, configure.ac): Taken from
13869 * modules/fnmatch-posix: Turn into a symbolic reference to the
13870 'fnmatch' module, and deprecate.
13871 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13873 2009-05-03 Bruno Haible <bruno@clisp.org>
13875 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13876 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13877 Reported by Ralf Wildenhues.
13879 2009-05-04 Simon Josefsson <simon@josefsson.org>
13881 * m4/fnmatch.m4: Fix fnmatch re-define.
13883 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
13885 priv-set: new module and tests; adapt write-any-file
13886 * lib/priv-set.c: New file.
13887 * lib/priv-set.h: New file.
13888 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13889 * lib/write-any-file.c: Simplify by using priv-set module.
13890 * m4/priv-set.m4: New file.
13891 * modules/priv-set: New file.
13892 * modules/unlinkdir: Add dependency on priv-set module.
13893 * modules/write-any-file: Likewise.
13895 Tests for module 'priv-set'.
13896 * modules/priv-set-tests: New file.
13897 * tests/test-priv-set.c: New file.
13899 2009-05-03 Jim Meyering <meyering@redhat.com>
13900 Bruno Haible <bruno@clisp.org>
13902 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13903 use the converted UTF-8 variant of the name instead.
13905 2009-05-03 Jim Meyering <meyering@redhat.com>
13907 tests: tighten some getdate tests
13908 * tests/test-getdate.c (main): Tighten tests: require equality,
13909 not just greater than. Set TZ envvar to UTC0.
13911 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
13913 getdate: correctly interpret "next monday" when run on a Monday
13914 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13915 that e.g., "next tues" (when run on a tuesday) results in a date
13916 that is one week in the future, and not today's date.
13917 I.e., add a week when the wday is the same as the current one.
13918 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13919 and earlier by Martin Bernreuther and Jan Minář.
13920 * tests/test-getdate.c (main): Check that "next DAY" is always in
13921 the future and that "last DAY" is always in the past.
13923 2009-05-02 Jim Meyering <meyering@redhat.com>
13925 build: ensure that a release build fails when a submodule is unclean
13926 * top/maint.mk (no-submodule-changes): New rule.
13927 (alpha beta major): Depend on it.
13929 2009-05-02 Bruno Haible <bruno@clisp.org>
13931 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13932 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13933 shell variable gl_fnmatch_required to detect which variant is
13935 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13936 gl_FUNC_FNMATCH_POSIX.
13937 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13938 exclude fnmatch-posix.
13940 2009-05-02 Bruno Haible <bruno@clisp.org>
13942 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13943 * modules/mbsrtowcs (License): Change to LGPLv2+.
13944 * modules/strnlen1 (License): Likewise.
13945 Reported by Simon Josefsson.
13947 2009-05-02 Bruno Haible <bruno@clisp.org>
13949 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13951 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13952 gnulib-tool was called with option --source-base=lib.
13954 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13956 Use automake *-local hooks without commands, for extensibility.
13957 * modules/localcharset (Makefile.am): Rename install-exec-local
13958 rule to install-exec-localcharset, and make it a prerequisite of
13959 install-exec-local. Likewise, rename the uninstall-local rule to
13960 uninstall-localcharset, and make it a prerequisite of the former.
13962 2009-05-01 Bruno Haible <bruno@clisp.org>
13964 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13965 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13966 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13967 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13968 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13969 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13970 m4/locale-zh.m4, m4/codeset.m4.
13972 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13973 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13974 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13977 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13978 REPLACE_WCRTOMB if mbstate_t must be replaced.
13979 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13980 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13982 2009-05-01 Bruno Haible <bruno@clisp.org>
13984 Avoid compiler warnings when redefining macros defined by <libintl.h>.
13985 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13986 dngettext, dcngettext, textdomain, bindtextdomain,
13987 bind_textdomain_codeset): Undefine before redefining.
13989 2009-04-30 Bruno Haible <bruno@clisp.org>
13991 Fix bug introduced on 2009-04-25.
13992 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13993 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13994 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13996 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13998 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14000 Reported by Elbert_Pol <elbert.pol@gmail.com>.
14002 2009-04-28 Bruno Haible <bruno@clisp.org>
14005 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14006 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14007 * lib/unicase.h (u*_casexfrm): Likewise.
14008 Reported by Paolo Bonzini.
14010 2009-04-28 Bruno Haible <bruno@clisp.org>
14012 Fix a compilation error.
14013 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14014 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14015 Reported by Jim Meyering.
14017 2009-04-27 Bruno Haible <bruno@clisp.org>
14019 New module 'libunistring'.
14020 * modules/libunistring: New file.
14021 * m4/libunistring.m4: New file.
14022 * MODULES.html.sh (Unicode string functions): Add it.
14024 2009-04-27 Eric Blake <ebb9@byu.net>
14026 maint.mk: allow package-specific header to provide <config.h>
14027 * top/maint.mk (sc_require_config_h): New variable.
14028 (sc_require_config_h, sc_require_config_h_first): Use it.
14030 2009-04-27 Simon Josefsson <simon@josefsson.org>
14032 * top/maint.mk (sc_avoid_if_before_free): Except
14033 useless-if-before-free script.
14035 2009-04-27 Eric Blake <ebb9@byu.net>
14037 maintainer-makefile: depend on all required helper scripts
14038 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14039 useless-if-before-free.
14040 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14041 version, rather than assuming gnulib checkout is available.
14042 Reported by Simen Josefsson.
14044 2009-04-26 Bruno Haible <bruno@clisp.org>
14046 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14047 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14050 2009-04-26 Bruno Haible <bruno@clisp.org>
14052 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14053 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14054 AC_LIB_HAVE_LINKFLAGS.
14056 2009-04-26 Bruno Haible <bruno@clisp.org>
14058 Simplify calling convention of u*_conv_from_encoding.
14059 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14060 u32_conv_from_encoding): Expect a resultbuf argument and return the
14061 result directly as a pointer.
14062 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14063 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14064 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14065 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14066 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14067 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14069 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14070 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14071 * lib/vasnprintf.c (VASNPRINTF): Update.
14072 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14073 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14074 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14075 * NEWS: Mention the change.
14077 2009-04-26 Bruno Haible <bruno@clisp.org>
14079 Simplify calling convention of u*_conv_to_encoding.
14080 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14081 u32_conv_to_encoding): Expect a resultbuf argument and return the
14082 result directly as a pointer.
14083 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14084 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14085 freeing scaled_offsets if mem_iconveha failed.
14086 * lib/unicase/u-casexfrm.h (FUNC): Update.
14087 * lib/uninorm/u-normxfrm.h (FUNC): Update.
14088 * lib/vasnprintf.c (VASNPRINTF): Update.
14089 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14090 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14091 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14092 * NEWS: Mention the change.
14094 2009-04-26 Bruno Haible <bruno@clisp.org>
14096 Avoid test failures on AIX and OSF/1.
14097 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14099 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14100 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14102 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14103 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14104 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14105 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14106 * doc/posix-functions/malloc.texi: Document the portability problem
14107 related to malloc(0).
14109 2009-04-26 Bruno Haible <bruno@clisp.org>
14111 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14112 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14113 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14115 2009-04-25 Bruno Haible <bruno@clisp.org>
14117 Avoid link error when creating a namespace clean library.
14118 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14119 as macro with arguments if already defined as an alias.
14120 * lib/signbitf.c (gl_signbitf): Don't undefine.
14121 * lib/signbitd.c (gl_signbitd): Don't undefine.
14122 * lib/signbitl.c (gl_signbitl): Don't undefine.
14124 2009-04-25 Jim Meyering <meyering@redhat.com>
14126 vc-list-files: fix another quoting bug
14127 * build-aux/vc-list-files: Avoid sed backslash expansion
14128 of pathological directory names.
14130 2009-04-25 Eric Blake <ebb9@byu.net>
14132 vc-list-files: fix shell quoting error
14133 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
14136 2009-04-25 Jim Meyering <meyering@redhat.com>
14138 vc-list-files: restore lost functionality with subdir argument
14139 * build-aux/vc-list-files: When given a non-"." sub-directory
14140 argument, substitute the $dir/ prefix back onto each resulting name.
14141 Otherwise, coreutils' root_tests check would fail.
14143 2009-04-24 Eric Blake <ebb9@byu.net>
14145 vc-list-files: ignore git symlinks
14146 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14147 than ls-files, to ignore git symlinks.
14149 maint.mk: import improvements from m4
14150 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14151 (move_if_change): Delete unused macro.
14152 (news-date-check, vc-diff-check): Support VPATH builds.
14153 (announcement): Likewise. Split --bootstrap-tools list...
14154 (boostrap-tools): ...into separate list, which can be overridden
14156 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14157 requiring dependency on useless-if-before-free module.
14158 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14159 Support VPATH builds.
14161 2009-04-24 Jim Meyering <meyering@redhat.com>
14163 maint.mk: remove coreutils-specific rules and variables
14164 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14165 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14166 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14168 maint.mk: remove obsolete rule
14169 * top/maint.mk (rel-check): Remove rule.
14170 (WGET, WGETFLAGS): Remove now-unused variables.
14172 2009-04-24 Simon Josefsson <simon@josefsson.org>
14174 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14177 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14178 '$(PATH_SEPARATOR)' instead of ':'.
14180 2009-04-24 Simon Josefsson <simon@josefsson.org>
14182 * lib/getopt1.c (main): Use 'const' for static array.
14184 2009-04-24 Simon Josefsson <simon@josefsson.org>
14186 * top/maint.mk: Sync with coreutils.
14187 * NEWS: Explain incompatibilities.
14189 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14190 Bruno Haible <bruno@clisp.org>
14192 Fix cross-compilation results.
14193 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14194 statement, as third argument of AC_TRY_RUN.
14195 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14196 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14198 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14199 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14201 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14202 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14203 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14205 2009-04-20 Bruno Haible <bruno@clisp.org>
14207 Avoid test failure on mingw.
14208 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14210 2009-04-20 Bruno Haible <bruno@clisp.org>
14212 Avoid compilation error on mingw.
14213 * modules/localename-tests (Depends-on): Add locale.
14215 2009-04-19 Bruno Haible <bruno@clisp.org>
14217 Support for building a shared library on Windows platforms.
14218 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14219 (main): Test the presence of UNINORM_NFC here.
14220 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14221 (main): Test the presence of UNINORM_NFD here.
14222 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14223 (main): Test the presence of UNINORM_NFKC here.
14224 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14225 (main): Test the presence of UNINORM_NFKD here.
14227 2009-04-19 Bruno Haible <bruno@clisp.org>
14229 Avoid a compiler warning.
14230 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14231 Change type of variable 'sequence'.
14233 2009-04-19 Bruno Haible <bruno@clisp.org>
14235 * modules/configmake (Makefile.am): When the contents of configmake.h
14236 does not change, arrange to preserve its modification time.
14238 2009-04-17 Simon Josefsson <simon@josefsson.org>
14240 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14243 2009-04-16 Jim Meyering <meyering@redhat.com>
14245 useless-if-before-free: improve conversion code
14246 * build-aux/useless-if-before-free: Adjust code-in-comment to match
14247 "...!= 0" as well as "...!= NULL". emacs has one of the former.
14249 2009-04-14 Bruno Haible <bruno@clisp.org>
14251 * modules/fcntl (Depends-on): Add extensions.
14252 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14254 2009-04-12 Ben Pfaff <blp@gnu.org>
14256 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14257 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14259 2009-03-20 Ben Pfaff <blp@gnu.org>
14261 Make rename replace existing destinations on Windows.
14262 * m4/rename.m4: Add test for Mingw.
14263 * lib/rename.c: Add rename replacement that uses MoveFileEx with
14264 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14265 * doc/posix-functions/rename.texi: Document.
14267 2009-04-10 Bruno Haible <bruno@clisp.org>
14269 New include file "iconveh.h".
14270 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14271 * lib/striconveh.h: Include it.
14272 (enum iconv_ilseq_handler): Remove definition.
14273 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14275 * lib/striconveha.c: Include striconveh.h.
14276 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14277 * modules/striconveh (Files): Add lib/iconveh.h.
14278 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14281 2009-04-10 Bruno Haible <bruno@clisp.org>
14283 * lib/uniconv.h: Update comment.
14285 2009-04-10 Bruno Haible <bruno@clisp.org>
14287 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14289 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14290 * lib/unistr/u16-mbtouc-aux.c: Likewise.
14291 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14292 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14293 "unistring-notinline.h", so that the function gets defined always.
14294 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14295 * lib/unistr/u8-uctomb.c: Likewise.
14296 * lib/unistr/u16-mbtouc.c: Likewise.
14297 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14298 * lib/unistr/u16-uctomb.c: Likewise.
14299 * lib/unistr/u32-mbtouc.c: Likewise.
14300 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14301 * lib/unistr/u32-uctomb.c: Likewise.
14303 2009-04-10 Bruno Haible <bruno@clisp.org>
14305 Mark 'utime' obsolete.
14306 * modules/utime (Status, Notice): New sections.
14307 Suggested by Jim Meyering.
14309 Fix cross-compile guess for utime test.
14310 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14312 * doc/posix-functions/utime.texi: Give more precisions.
14313 Reported by Jan <ipif@ymail.com>.
14315 2009-04-09 Kamil Dudka <kdudka@redhat.com>
14317 filevercmp: correct today's change
14318 * lib/filevercmp.c: Also handle coreutils' test inputs.
14319 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14321 Fix regression in 'filevercmp' module. Thanks Sven Joachim
14323 * lib/filevercmp.c: Special handle for "", "." and "..".
14324 * tests/test-filevercmp.c: Enlarge the set suite.
14326 2009-04-07 Jim Meyering <meyering@redhat.com>
14328 useless-if-before-free: show how to remove braced useless free, too
14329 * build-aux/useless-if-before-free: still only in a comment, though.
14331 2009-04-07 Reuben Thomas <rrt@sc3d.org>
14333 maint.mk: import changes to syntax-check macros from coreutils
14334 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14335 Use them in the relevant macros.
14337 2009-04-06 Bruno Haible <bruno@clisp.org>
14339 Fix unportable use of bit-fields.
14340 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14341 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14342 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14344 2009-04-06 Bruno Haible <bruno@clisp.org>
14346 Avoid test failures on AIX and OSF/1.
14347 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14348 that malloc(0) = NULL.
14349 * tests/unicase/test-u8-tolower.c (check): Likewise.
14350 * tests/unicase/test-u8-totitle.c (check): Likewise.
14351 * tests/unicase/test-u8-toupper.c (check): Likewise.
14352 * tests/unicase/test-u16-casefold.c (check): Likewise.
14353 * tests/unicase/test-u16-tolower.c (check): Likewise.
14354 * tests/unicase/test-u16-totitle.c (check): Likewise.
14355 * tests/unicase/test-u16-toupper.c (check): Likewise.
14356 * tests/unicase/test-u32-casefold.c (check): Likewise.
14357 * tests/unicase/test-u32-tolower.c (check): Likewise.
14358 * tests/unicase/test-u32-totitle.c (check): Likewise.
14359 * tests/unicase/test-u32-toupper.c (check): Likewise.
14360 * tests/uninorm/test-u8-nfc.c (check): Likewise.
14361 * tests/uninorm/test-u8-nfd.c (check): Likewise.
14362 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14363 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14364 * tests/uninorm/test-u16-nfc.c (check): Likewise.
14365 * tests/uninorm/test-u16-nfd.c (check): Likewise.
14366 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14367 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14368 * tests/uninorm/test-u32-nfc.c (check): Likewise.
14369 * tests/uninorm/test-u32-nfd.c (check): Likewise.
14370 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14371 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14373 2009-04-05 Bruno Haible <bruno@clisp.org>
14375 Work around an autoconf limitation.
14376 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14377 comment line if it would be longer than 3 KB.
14379 2009-04-05 Bruno Haible <bruno@clisp.org>
14381 Avoid test failure with libiconv-1.13.
14382 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14383 of the expected test results.
14385 2009-04-05 Bruno Haible <bruno@clisp.org>
14387 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14388 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14389 that it should be installed.
14391 2009-04-05 Bruno Haible <bruno@clisp.org>
14393 * gnulib-tool: New option --copy-file.
14394 (func_usage): Document it.
14395 (func_dest_tmpfilename): Moved out of func_import.
14396 (func_add_file, func_update_file): New functions, extracted from
14398 (func_import): Update.
14400 2009-04-05 Karl Berry <karl@gnu.org>
14402 * README: prominently mention gnulib-tool.
14403 Rearrange sections so getting the code is near the top.
14405 2009-04-05 Bruno Haible <bruno@clisp.org>
14407 * lib/unicase.h: Mention u*_cmp2.
14408 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14409 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14410 * lib/unicase/ulc-casecmp.c: Likewise.
14411 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14412 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14413 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14415 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14416 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14418 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14421 * lib/uninorm.h: Mention u*_cmp2.
14422 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14423 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14424 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14425 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14426 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14428 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14430 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14433 New module 'unistr/u32-cmp2'.
14434 * lib/unistr/u32-cmp2.c: New file.
14435 * modules/unistr/u32-cmp2: New file.
14437 New module 'unistr/u16-cmp2'.
14438 * lib/unistr/u16-cmp2.c: New file.
14439 * modules/unistr/u16-cmp2: New file.
14441 New module 'unistr/u8-cmp2'.
14442 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14443 * lib/unistr/u8-cmp2.c: New file.
14444 * lib/unistr/u-cmp2.h: New file.
14445 * modules/unistr/u8-cmp2: New file.
14447 2009-04-05 Bruno Haible <bruno@clisp.org>
14449 * lib/unictype.h (uc_property_is_valid): New macro.
14450 * tests/unictype/test-pr_byname.c (main): Use it.
14452 * lib/unistr.h: Doc fixes.
14453 * lib/uniconv.h: Doc fixes.
14454 * lib/unictype.h: Doc fixes.
14456 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
14458 Port coreutils 7.2 to Solaris 8.
14460 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14461 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14462 for Solaris 8. This is a bit of a hack, as it means it's the
14463 caller's responsibility to add -lnsl if needed, but most likely it
14464 won't be needed since only getaddrinfo uses this and getaddrinfo
14465 isn't needed on Solaris 8.
14467 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14468 problem to Solaris 8 encountered with coreutils 7.2, which
14469 resulted in a message "fnmatch.c:292: warning: passing argument 4
14470 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
14471 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14473 2009-04-03 Simon Josefsson <simon@josefsson.org>
14475 * m4/ld-version-script.m4: Add FIXME comment.
14477 2009-04-02 Simon Josefsson <simon@josefsson.org>
14479 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14480 SOVERSION variable.
14482 2009-04-02 Bruno Haible <bruno@clisp.org>
14484 * Makefile (info, html, dvi, pdf): Combine the rules.
14485 Suggested by Jim Meyering.
14487 2009-04-01 Bruno Haible <bruno@clisp.org>
14489 * Makefile (info, html, dvi, pdf): New targets.
14490 Reported by Reuben Thomas <rrt@sc3d.org>.
14492 2009-04-01 Bruno Haible <bruno@clisp.org>
14494 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14495 can be put into PATH.
14496 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14498 2009-04-01 Bruno Haible <bruno@clisp.org>
14500 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14502 2009-04-01 Bruno Haible <bruno@clisp.org>
14504 Rename module 'visibility'.
14505 * modules/lib-symbol-visibility: Renamed from modules/visibility.
14506 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14507 * doc/gnulib.texi: Update.
14508 * MODULES.html.sh (Misc): Update.
14509 * NEWS: Mention the change.
14511 2009-04-01 Simon Josefsson <simon@josefsson.org>
14513 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
14514 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14515 Eric Blake <ebb9@byu.net> for review.
14516 * MODULES.html.sh: Add lib-msvc-compat.
14517 * doc/gnulib.texi: Link to new section.
14518 * m4/ld-output-def.m4: New file.
14519 * doc/ld-output-def.texi: New file.
14521 2009-04-01 Simon Josefsson <simon@josefsson.org>
14523 Rename ld-version-script to lib-symbol-versions. Suggested by
14524 Bruno Haible <bruno@clisp.org>.
14525 * modules/ld-version-script: Renamed to lib-symbol-versions.
14526 * doc/ld-version-script.texi: Fix module name.
14527 * MODULES.html.sh: Add lib-symbol-versions.
14529 2009-03-31 Simon Josefsson <simon@josefsson.org>
14531 * modules/u64-tests: New file.
14532 * tests/test-u64.c: New file.
14534 2009-03-04 Simon Josefsson <simon@josefsson.org>
14536 * MODULES.html.sh: Mention u64.
14537 * modules/u64: New module.
14538 * modules/crypto/sha512: Depend on u64 module instead of providing
14541 2009-03-27 Eric Blake <ebb9@byu.net>
14543 test-strerror: make debugging EAI_SYSTEM easier
14544 * modules/getaddrinfo-tests (Depends-on): Add strerror.
14545 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14546 failure was EAI_SYSTEM.
14548 2009-03-25 Bruno Haible <bruno@clisp.org>
14550 Fix a problem with --enable-relocatable on Solaris 7.
14551 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14554 2009-03-25 Eric Blake <ebb9@byu.net>
14556 test-sockets: avoid gcc warning
14557 * tests/test-sockets.c (main): Silence compiler warning.
14559 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
14561 New modules nproc, pthread, contributed by Glen Lenker.
14563 * MODULES.html.sh: Add pthread, nproc.
14564 * lib/nproc.c: New file.
14565 * lib/nproc.h: New file.
14566 * lib/pthread.in.h: New file.
14567 * m4/pthread.m4: New file.
14568 * modules/nproc: New file.
14569 * modules/pthread: New file.
14571 2009-03-24 Simon Josefsson <simon@josefsson.org>
14573 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14576 2009-03-24 Kamil Dudka <kdudka@redhat.com>
14578 filevercmp: handle simple~ and numbered.~3~ backup suffixes
14579 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14580 * tests/test-filevercmp.c: Add tests for backup suffixes.
14582 2009-03-24 Simon Josefsson <simon@josefsson.org>
14584 * modules/stdlib (Depends-on): Add stdint, needed when defining
14585 struct random_data on, for example, HP-UX 10.20. Reported by
14586 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14588 2009-03-24 Simon Josefsson <simon@josefsson.org>
14590 * lib/readline.c (readline): Call fflush on stdout after printing
14593 2009-03-20 Bruno Haible <bruno@clisp.org>
14595 Remove dependency from 'close' module to -lws2_32 on native Windows.
14596 * lib/close-hook.h: New file.
14597 * lib/close-hook.c: New file.
14598 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14600 (_gl_close_fd_maybe_socket): Remove function.
14601 (rpl_close): Invoke execute_all_close_hooks instead of
14602 _gl_close_fd_maybe_socket.
14603 * lib/sockets.c: Include close-hook.h, w32sock.h.
14604 (close_fd_maybe_socket): New function, essentially from lib/close.c.
14605 (close_sockets_hook): New variable.
14606 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14607 (gl_sockets_cleanup): Unregister it.
14608 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14609 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14610 * modules/close-hook: New file.
14611 * modules/close (Files): Remove lib/w32sock.h.
14612 (Depends-on): Add close-hook.
14613 (Link): Remove section.
14614 * modules/sockets (Files): Add lib/w32sock.h.
14615 (Depends-on): Add close-hook.
14616 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14618 * NEWS: Mention that LIB_CLOSE is gone.
14620 2009-03-23 Eric Blake <ebb9@byu.net>
14622 signal-tests: test previous patch
14623 * tests/test-signal.c: New file.
14624 * modules/signal-tests: Likewise.
14626 signal.h: always support 'volatile sig_atomic_t'
14627 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14628 (gl_SIGNAL_H_DEFAULTS): Add a default.
14629 * modules/signal (Makefile.am): Substitute if needed.
14630 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14631 users can blindly add volatile.
14632 * doc/posix-headers/signal.texi (signal.h): Document it.
14633 Reported by Matthew Woehlke.
14635 2009-03-23 Jim Meyering <meyering@redhat.com>
14637 pathmax: PATH_MAX: use pathconf only when available
14638 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14639 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
14640 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14641 This avoids a link failure in a PSP cross-compilation environment
14642 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14644 * lib/vasnprintf.c (divide): Fix typo in comment.
14646 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14648 * gnulib-tool (func_filter_filelist): Fix comment.
14650 2009-03-20 Bruno Haible <bruno@clisp.org>
14652 Make sockets.h self-contained.
14653 * lib/sockets.c: Include sockets.h first.
14654 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14656 2009-03-19 Eric Blake <ebb9@byu.net>
14658 doc: mention more functions added in cygwin 1.7.0
14659 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14661 * doc/posix-functions/log2f.texi: Likewise.
14663 2009-03-19 Jim Meyering <meyering@redhat.com>
14665 fsusage: avoid syntax error due to statement-before-declaration
14666 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14667 after all declarations. Reported by Matthew Woehlke in
14668 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14670 2009-03-18 Eric Blake <ebb9@byu.net>
14672 build-aux/compile: sync from automake
14673 * build-aux/compile: New file, from automake.
14674 * config/srclist.txt: Mention build-aux/compile.
14676 2009-03-17 Bruno Haible <bruno@clisp.org>
14678 * lib/git-merge-changelog.c: Fix typo in comment.
14679 Reported by Reuben Thomas <rrt@sc3d.org>.
14681 2009-03-17 Reuben Thomas <rrt@sc3d.org>
14683 * m4/regex.m4: update and improve help for
14684 --without-included-regex.
14686 2009-03-17 Simon Josefsson <simon@josefsson.org>
14688 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14689 failure on missing include files.
14691 2009-03-17 Eric Blake <ebb9@byu.net>
14693 doc: mention more functions added in cygwin 1.7.0
14694 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14696 * doc/posix-functions/fwscanf.texi: Likewise.
14697 * doc/posix-functions/swprintf.texi: Likewise.
14698 * doc/posix-functions/swscanf.texi: Likewise.
14699 * doc/posix-functions/vfwprintf.texi: Likewise.
14700 * doc/posix-functions/vfwscanf.texi: Likewise.
14701 * doc/posix-functions/vswprintf.texi: Likewise.
14702 * doc/posix-functions/vswscanf.texi: Likewise.
14703 * doc/posix-functions/vwprintf.texi: Likewise.
14704 * doc/posix-functions/vwscanf.texi: Likewise.
14705 * doc/posix-functions/wcscasecmp.texi: Likewise.
14706 * doc/posix-functions/wcsdup.texi: Likewise.
14707 * doc/posix-functions/wcsftime.texi: Likewise.
14708 * doc/posix-functions/wcsncasecmp.texi: Likewise.
14709 * doc/posix-functions/wprintf.texi: Likewise.
14710 * doc/posix-functions/wscanf.texi: Likewise.
14711 * doc/glibc-functions/gethostbyname2.texi: Likewise.
14713 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14715 maint.mk: really add $(AM_MAKEFLAGS)
14716 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14717 was inadvertently omitted in the last commit.
14718 Spotted by Bruno Haible.
14720 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14721 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14722 $(AM_MAKEFLAGS)' rather than plain `make'.
14724 gnulib-tool: execute $MAKE not make
14725 * gnulib-tool: Default $MAKE to 'make'.
14726 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14727 than make. Initialize $MAKE in the do-autobuild script.
14729 gnulib-tool: use $MAKE not make in generated files
14730 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14731 make, in generated files. Initialize $MAKE in the do-autobuild
14734 * top/GNUmakefile (_have-git-version-gen): Fix typo.
14736 GNUmakefile: disable parallelism only for multiple, recursive targets
14737 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14738 additions in the Makefile.
14739 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14741 (.NOTPARALLEL): Only disable parallel builds if multiple targets
14742 are listed on the command line and at least one of them is
14743 listed in $(ALL_RECURSIVE_TARGETS).
14745 2009-03-14 Bruno Haible <bruno@clisp.org>
14747 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14748 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14749 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14750 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14751 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14752 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14753 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14755 * modules/unistr/u8-strchr (Depends-on): Likewise.
14756 * modules/unistr/u8-strrchr (Depends-on): Likewise.
14757 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14759 * modules/unistr/u16-strchr (Depends-on): Likewise.
14760 * modules/unistr/u16-strrchr (Depends-on): Likewise.
14762 2009-03-12 Bruno Haible <bruno@clisp.org>
14764 Work around select() bug on Interix 3.5.
14765 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14766 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14767 * m4/select.m4: New file.
14768 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14769 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14770 * modules/select (Files): Add m4/select.m4.
14771 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14772 * modules/nanosleep (Depends-on): Add select.
14773 * modules/poll (Depends-on): Likewise.
14774 * doc/posix-functions/select.texi: Mention the Interix bug.
14775 Reported by Markus Duft <mduft@gentoo.org>.
14777 * lib/select.c: Renamed from lib/winsock-select.c.
14778 * modules/select (Files): Add lib/select.c, remove
14779 lib/winsock-select.c.
14780 (configure.ac): Update.
14782 2009-03-12 Jim Meyering <meyering@redhat.com>
14784 avoid gcc warnings about unused macro definitions
14785 * lib/readtokens.c (STREQ): Remove unused definition.
14786 * lib/xmalloc.c (SIZE_MAX): Likewise.
14787 * lib/openat-die.c (N_): Likewise.
14788 * lib/mountlist.c (SIZE_MAX): Remove definition.
14789 Instead, include <stdint.h>.
14790 * lib/readutmp.c: Likewise.
14791 * modules/readutmp (Depends-on): Add stdint.
14792 * modules/mountlist (Depends-on): Add stdint.
14793 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14795 2009-03-10 Bruno Haible <bruno@clisp.org>
14797 Tests for module 'mbmemcasecoll'.
14798 * modules/mbmemcasecoll-tests: New file.
14799 * tests/test-mbmemcasecoll1.sh: New file.
14800 * tests/test-mbmemcasecoll2.sh: New file.
14801 * tests/test-mbmemcasecoll3.sh: New file.
14802 * tests/test-mbmemcasecoll.c: New file.
14804 New module 'mbmemcasecoll'.
14805 * lib/mbmemcasecoll.h: New file.
14806 * lib/mbmemcasecoll.c: New file.
14807 * modules/mbmemcasecoll: New file.
14809 * tests/test-mbmemcasecmp.h: New file, extracted from
14810 tests/test-mbmemcasecmp.c.
14811 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14812 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14814 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14816 2009-03-09 Bruno Haible <bruno@clisp.org>
14818 Tests for module 'mbmemcasecmp'.
14819 * modules/mbmemcasecmp-tests: New file.
14820 * tests/test-mbmemcasecmp1.sh: New file.
14821 * tests/test-mbmemcasecmp2.sh: New file.
14822 * tests/test-mbmemcasecmp3.sh: New file.
14823 * tests/test-mbmemcasecmp.c: New file.
14825 New module 'mbmemcasecmp'.
14826 * lib/mbmemcasecmp.h: New file.
14827 * lib/mbmemcasecmp.c: New file.
14828 * modules/mbmemcasecmp: New file.
14830 2009-03-09 Bruno Haible <bruno@clisp.org>
14832 Tests for module 'unicase/ulc-casecoll'.
14833 * modules/unicase/ulc-casecoll-tests: New file.
14834 * tests/unicase/test-ulc-casecoll1.sh: New file.
14835 * tests/unicase/test-ulc-casecoll2.sh: New file.
14836 * tests/unicase/test-ulc-casecoll.c: New file.
14838 New module 'unicase/ulc-casecoll'.
14839 * lib/unicase.h (ulc_casecoll): New declaration.
14840 * lib/unicase/ulc-casecoll.c: New file.
14841 * modules/unicase/ulc-casecoll: New file.
14843 New module 'unicase/ulc-casexfrm'.
14844 * lib/unicase.h (ulc_casexfrm): New declaration.
14845 * lib/unicase/ulc-casexfrm.c: New file.
14846 * modules/unicase/ulc-casexfrm: New file.
14848 2009-03-09 Bruno Haible <bruno@clisp.org>
14850 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14853 * m4/mbscasecmp.m4: Remove file.
14854 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14855 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14857 * m4/mbscasestr.m4: Remove file.
14858 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14859 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14861 * m4/mbschr.m4: Remove file.
14862 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14863 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14865 * m4/mbscspn.m4: Remove file.
14866 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14867 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14869 * m4/mbslen.m4: Remove file.
14870 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14871 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14873 * m4/mbsncasecmp.m4: Remove file.
14874 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14875 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14877 * m4/mbsnlen.m4: Remove file.
14878 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14879 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14881 * m4/mbspbrk.m4: Remove file.
14882 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14883 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14885 * m4/mbspcasecmp.m4: Remove file.
14886 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14887 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14889 * m4/mbsrchr.m4: Remove file.
14890 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14891 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14893 * m4/mbssep.m4: Remove file.
14894 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14895 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14897 * m4/mbsspn.m4: Remove file.
14898 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14899 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14901 * m4/mbsstr.m4: Remove file.
14902 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14903 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14905 * m4/mbstok_r.m4: Remove file.
14906 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14907 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14909 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14911 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14912 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14914 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14916 2009-03-08 Bruno Haible <bruno@clisp.org>
14918 Tests for module 'unicase/ulc-casecmp'.
14919 * modules/unicase/ulc-casecmp-tests: New file.
14920 * tests/unicase/test-ulc-casecmp1.sh: New file.
14921 * tests/unicase/test-ulc-casecmp2.sh: New file.
14922 * tests/unicase/test-ulc-casecmp.c: New file.
14924 New module 'unicase/ulc-casecmp'.
14925 * lib/unicase.h (ulc_casecmp): New declaration.
14926 * lib/unicase/ulc-casecmp.c: New file.
14927 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14928 'const SRC_UNIT *'.
14929 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14930 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14931 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14932 * modules/unicase/ulc-casecmp: New file.
14934 Tests for module 'unicase/u32-is-cased'.
14935 * modules/unicase/u32-is-cased-tests: New file.
14936 * tests/unicase/test-u32-is-cased.c: New file.
14938 Tests for module 'unicase/u16-is-cased'.
14939 * modules/unicase/u16-is-cased-tests: New file.
14940 * tests/unicase/test-u16-is-cased.c: New file.
14942 Tests for module 'unicase/u8-is-cased'.
14943 * modules/unicase/u8-is-cased-tests: New file.
14944 * tests/unicase/test-u8-is-cased.c: New file.
14945 * tests/unicase/test-is-cased.h: New file.
14947 New module 'unicase/u32-is-cased'.
14948 * lib/unicase/u32-is-cased.c: New file.
14949 * modules/unicase/u32-is-cased: New file.
14951 New module 'unicase/u16-is-cased'.
14952 * lib/unicase/u16-is-cased.c: New file.
14953 * modules/unicase/u16-is-cased: New file.
14955 New module 'unicase/u8-is-cased'.
14956 * lib/unicase/u8-is-cased.c: New file.
14957 * lib/unicase/u-is-cased.h: New file.
14958 * modules/unicase/u8-is-cased: New file.
14960 Tests for module 'unicase/u32-is-casefolded'.
14961 * modules/unicase/u32-is-casefolded-tests: New file.
14962 * tests/unicase/test-u32-is-casefolded.c: New file.
14964 Tests for module 'unicase/u16-is-casefolded'.
14965 * modules/unicase/u16-is-casefolded-tests: New file.
14966 * tests/unicase/test-u16-is-casefolded.c: New file.
14968 Tests for module 'unicase/u8-is-casefolded'.
14969 * modules/unicase/u8-is-casefolded-tests: New file.
14970 * tests/unicase/test-u8-is-casefolded.c: New file.
14971 * tests/unicase/test-is-casefolded.h: New file.
14973 New module 'unicase/u32-is-casefolded'.
14974 * lib/unicase/u32-is-casefolded.c: New file.
14975 * modules/unicase/u32-is-casefolded: New file.
14977 New module 'unicase/u16-is-casefolded'.
14978 * lib/unicase/u16-is-casefolded.c: New file.
14979 * modules/unicase/u16-is-casefolded: New file.
14981 New module 'unicase/u8-is-casefolded'.
14982 * lib/unicase/u8-is-casefolded.c: New file.
14983 * modules/unicase/u8-is-casefolded: New file.
14985 Tests for module 'unicase/u32-is-titlecase'.
14986 * modules/unicase/u32-is-titlecase-tests: New file.
14987 * tests/unicase/test-u32-is-titlecase.c: New file.
14989 Tests for module 'unicase/u16-is-titlecase'.
14990 * modules/unicase/u16-is-titlecase-tests: New file.
14991 * tests/unicase/test-u16-is-titlecase.c: New file.
14993 Tests for module 'unicase/u8-is-titlecase'.
14994 * modules/unicase/u8-is-titlecase-tests: New file.
14995 * tests/unicase/test-u8-is-titlecase.c: New file.
14996 * tests/unicase/test-is-titlecase.h: New file.
14998 New module 'unicase/u32-is-titlecase'.
14999 * lib/unicase/u32-is-titlecase.c: New file.
15000 * modules/unicase/u32-is-titlecase: New file.
15002 New module 'unicase/u16-is-titlecase'.
15003 * lib/unicase/u16-is-titlecase.c: New file.
15004 * modules/unicase/u16-is-titlecase: New file.
15006 New module 'unicase/u8-is-titlecase'.
15007 * lib/unicase/u8-is-titlecase.c: New file.
15008 * modules/unicase/u8-is-titlecase: New file.
15010 Tests for module 'unicase/u32-is-lowercase'.
15011 * modules/unicase/u32-is-lowercase-tests: New file.
15012 * tests/unicase/test-u32-is-lowercase.c: New file.
15014 Tests for module 'unicase/u16-is-lowercase'.
15015 * modules/unicase/u16-is-lowercase-tests: New file.
15016 * tests/unicase/test-u16-is-lowercase.c: New file.
15018 Tests for module 'unicase/u8-is-lowercase'.
15019 * modules/unicase/u8-is-lowercase-tests: New file.
15020 * tests/unicase/test-u8-is-lowercase.c: New file.
15021 * tests/unicase/test-is-lowercase.h: New file.
15023 New module 'unicase/u32-is-lowercase'.
15024 * lib/unicase/u32-is-lowercase.c: New file.
15025 * modules/unicase/u32-is-lowercase: New file.
15027 New module 'unicase/u16-is-lowercase'.
15028 * lib/unicase/u16-is-lowercase.c: New file.
15029 * modules/unicase/u16-is-lowercase: New file.
15031 New module 'unicase/u8-is-lowercase'.
15032 * lib/unicase/u8-is-lowercase.c: New file.
15033 * modules/unicase/u8-is-lowercase: New file.
15035 Tests for module 'unicase/u32-is-uppercase'.
15036 * modules/unicase/u32-is-uppercase-tests: New file.
15037 * tests/unicase/test-u32-is-uppercase.c: New file.
15039 Tests for module 'unicase/u16-is-uppercase'.
15040 * modules/unicase/u16-is-uppercase-tests: New file.
15041 * tests/unicase/test-u16-is-uppercase.c: New file.
15043 Tests for module 'unicase/u8-is-uppercase'.
15044 * modules/unicase/u8-is-uppercase-tests: New file.
15045 * tests/unicase/test-u8-is-uppercase.c: New file.
15046 * tests/unicase/test-is-uppercase.h: New file.
15048 New module 'unicase/u32-is-uppercase'.
15049 * lib/unicase/u32-is-uppercase.c: New file.
15050 * modules/unicase/u32-is-uppercase: New file.
15052 New module 'unicase/u16-is-uppercase'.
15053 * lib/unicase/u16-is-uppercase.c: New file.
15054 * modules/unicase/u16-is-uppercase: New file.
15056 New module 'unicase/u8-is-uppercase'.
15057 * lib/unicase/u8-is-uppercase.c: New file.
15058 * modules/unicase/u8-is-uppercase: New file.
15060 New module 'unicase/u32-is-invariant'.
15061 * lib/unicase/u32-is-invariant.c: New file.
15062 * modules/unicase/u32-is-invariant: New file.
15064 New module 'unicase/u16-is-invariant'.
15065 * lib/unicase/u16-is-invariant.c: New file.
15066 * modules/unicase/u16-is-invariant: New file.
15068 New module 'unicase/u8-is-invariant'.
15069 * lib/unicase/u8-is-invariant.c: New file.
15070 * lib/unicase/invariant.h: New file.
15071 * lib/unicase/u-is-invariant.h: New file.
15072 * modules/unicase/u8-is-invariant: New file.
15074 Tests for module 'unicase/u32-casecoll'.
15075 * modules/unicase/u32-casecoll-tests: New file.
15076 * tests/unicase/test-u32-casecoll.c: New file.
15078 Tests for module 'unicase/u16-casecoll'.
15079 * modules/unicase/u16-casecoll-tests: New file.
15080 * tests/unicase/test-u16-casecoll.c: New file.
15082 Tests for module 'unicase/u8-casecoll'.
15083 * modules/unicase/u8-casecoll-tests: New file.
15084 * tests/unicase/test-u8-casecoll.c: New file.
15086 New module 'unicase/u32-casecoll'.
15087 * lib/unicase/u32-casecoll.c: New file.
15088 * modules/unicase/u32-casecoll: New file.
15090 New module 'unicase/u16-casecoll'.
15091 * lib/unicase/u16-casecoll.c: New file.
15092 * modules/unicase/u16-casecoll: New file.
15094 New module 'unicase/u8-casecoll'.
15095 * lib/unicase/u8-casecoll.c: New file.
15096 * lib/unicase/u-casecoll.h: New file.
15097 * modules/unicase/u8-casecoll: New file.
15099 New module 'unicase/u32-casexfrm'.
15100 * lib/unicase/u32-casexfrm.c: New file.
15101 * modules/unicase/u32-casexfrm: New file.
15103 New module 'unicase/u16-casexfrm'.
15104 * lib/unicase/u16-casexfrm.c: New file.
15105 * modules/unicase/u16-casexfrm: New file.
15107 New module 'unicase/u8-casexfrm'.
15108 * lib/unicase/u8-casexfrm.c: New file.
15109 * lib/unicase/u-casexfrm.h: New file.
15110 * modules/unicase/u8-casexfrm: New file.
15112 Tests for module 'unicase/u32-casecmp'.
15113 * modules/unicase/u32-casecmp-tests: New file.
15114 * tests/unicase/test-u32-casecmp.c: New file.
15116 Tests for module 'unicase/u16-casecmp'.
15117 * modules/unicase/u16-casecmp-tests: New file.
15118 * tests/unicase/test-u16-casecmp.c: New file.
15120 Tests for module 'unicase/u8-casecmp'.
15121 * modules/unicase/u8-casecmp-tests: New file.
15122 * tests/unicase/test-u8-casecmp.c: New file.
15123 * tests/unicase/test-casecmp.h: New file.
15125 New module 'unicase/u32-casecmp'.
15126 * lib/unicase/u32-casecmp.c: New file.
15127 * modules/unicase/u32-casecmp: New file.
15129 New module 'unicase/u16-casecmp'.
15130 * lib/unicase/u16-casecmp.c: New file.
15131 * modules/unicase/u16-casecmp: New file.
15133 New module 'unicase/u8-casecmp'.
15134 * lib/unicase/u8-casecmp.c: New file.
15135 * lib/unicase/u-casecmp.h: New file.
15136 * modules/unicase/u8-casecmp: New file.
15138 Tests for module 'unicase/u32-casefold'.
15139 * modules/unicase/u32-casefold-tests: New file.
15140 * tests/unicase/test-u32-casefold.c: New file.
15142 Tests for module 'unicase/u16-casefold'.
15143 * modules/unicase/u16-casefold-tests: New file.
15144 * tests/unicase/test-u16-casefold.c: New file.
15146 Tests for module 'unicase/u8-casefold'.
15147 * modules/unicase/u8-casefold-tests: New file.
15148 * tests/unicase/test-u8-casefold.c: New file.
15150 New module 'unicase/u32-casefold'.
15151 * lib/unicase/u32-casefold.c: New file.
15152 * modules/unicase/u32-casefold: New file.
15154 New module 'unicase/u16-casefold'.
15155 * lib/unicase/u16-casefold.c: New file.
15156 * modules/unicase/u16-casefold: New file.
15158 New module 'unicase/u8-casefold'.
15159 * lib/unicase/u8-casefold.c: New file.
15160 * lib/unicase/u-casefold.h: New file.
15161 * modules/unicase/u8-casefold: New file.
15163 New module 'unicase/tocasefold'.
15164 * lib/unicase/casefold.h: New file.
15165 * lib/unicase/tocasefold.c: New file.
15166 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15167 * modules/unicase/tocasefold: New file.
15169 Tests for module 'unicase/u32-totitle'.
15170 * modules/unicase/u32-totitle-tests: New file.
15171 * tests/unicase/test-u32-totitle.c: New file.
15173 Tests for module 'unicase/u16-totitle'.
15174 * modules/unicase/u16-totitle-tests: New file.
15175 * tests/unicase/test-u16-totitle.c: New file.
15177 Tests for module 'unicase/u8-totitle'.
15178 * modules/unicase/u8-totitle-tests: New file.
15179 * tests/unicase/test-u8-totitle.c: New file.
15181 New module 'unicase/u32-totitle'.
15182 * lib/unicase/u32-totitle.c: New file.
15183 * modules/unicase/u32-totitle: New file.
15185 New module 'unicase/u16-totitle'.
15186 * lib/unicase/u16-totitle.c: New file.
15187 * modules/unicase/u16-totitle: New file.
15189 New module 'unicase/u8-totitle'.
15190 * lib/unicase/u8-totitle.c: New file.
15191 * lib/unicase/u-totitle.h: New file.
15192 * modules/unicase/u8-totitle: New file.
15194 Tests for module 'unicase/u32-tolower'.
15195 * modules/unicase/u32-tolower-tests: New file.
15196 * tests/unicase/test-u32-tolower.c: New file.
15198 Tests for module 'unicase/u16-tolower'.
15199 * modules/unicase/u16-tolower-tests: New file.
15200 * tests/unicase/test-u16-tolower.c: New file.
15202 Tests for module 'unicase/u8-tolower'.
15203 * modules/unicase/u8-tolower-tests: New file.
15204 * tests/unicase/test-u8-tolower.c: New file.
15206 New module 'unicase/u32-tolower'.
15207 * lib/unicase/u32-tolower.c: New file.
15208 * modules/unicase/u32-tolower: New file.
15210 New module 'unicase/u16-tolower'.
15211 * lib/unicase/u16-tolower.c: New file.
15212 * modules/unicase/u16-tolower: New file.
15214 New module 'unicase/u8-tolower'.
15215 * lib/unicase/u8-tolower.c: New file.
15216 * modules/unicase/u8-tolower: New file.
15218 Tests for module 'unicase/u32-toupper'.
15219 * modules/unicase/u32-toupper-tests: New file.
15220 * tests/unicase/test-u32-toupper.c: New file.
15222 Tests for module 'unicase/u16-toupper'.
15223 * modules/unicase/u16-toupper-tests: New file.
15224 * tests/unicase/test-u16-toupper.c: New file.
15226 Tests for module 'unicase/u8-toupper'.
15227 * modules/unicase/u8-toupper-tests: New file.
15228 * tests/unicase/test-u8-toupper.c: New file.
15230 New module 'unicase/u32-toupper'.
15231 * lib/unicase/u32-toupper.c: New file.
15232 * modules/unicase/u32-toupper: New file.
15234 New module 'unicase/u16-toupper'.
15235 * lib/unicase/u16-toupper.c: New file.
15236 * modules/unicase/u16-toupper: New file.
15238 New module 'unicase/u8-toupper'.
15239 * lib/unicase/u8-toupper.c: New file.
15240 * modules/unicase/u8-toupper: New file.
15242 New module 'unicase/u32-casemap'.
15243 * lib/unicase/u32-casemap.c: New file.
15244 * modules/unicase/u32-casemap: New file.
15246 New module 'unicase/u16-casemap'.
15247 * lib/unicase/u16-casemap.c: New file.
15248 * modules/unicase/u16-casemap: New file.
15250 New module 'unicase/u8-casemap'.
15251 * lib/unicase/unicasemap.h: New file.
15252 * lib/unicase/u8-casemap.c: New file.
15253 * lib/unicase/u-casemap.h: New file.
15254 * modules/unicase/u8-casemap: New file.
15256 New module 'unicase/special-casing'.
15257 * lib/unicase/special-casing.h: New file.
15258 * lib/unicase/special-casing.c: New file.
15259 * lib/unicase/special-casing-table.gperf: New file, generated by
15261 * modules/unicase/special-casing: New file.
15263 Tests for module 'unicase/locale-language'.
15264 * modules/unicase/locale-language-tests: New file.
15265 * tests/unicase/test-locale-language.sh: New file.
15266 * tests/unicase/test-locale-language.c: New file.
15268 New module 'unicase/locale-language'.
15269 * lib/unicase/locale-language.c: New file.
15270 * lib/unicase/locale-languages.gperf: New file.
15271 * modules/unicase/locale-language: New file.
15273 Generate more tables for case conversion and case folding.
15274 * lib/gen-uni-tables.c (SCC_*): New enum items.
15275 (struct special_casing_rule): New type.
15276 (casing_rules, num_casing_rules, allocated_casing_rules): New
15278 (add_casing_rule, fill_casing_rules): New functions.
15279 (struct casefold_rule): New type.
15280 (casefolding_rules, num_casefolding_rules,
15281 allocated_casefolding_rules): New variables.
15282 (fill_casefolding_rules): New function.
15283 (unicode_casefold): New variable.
15284 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15285 sort_casing_rules, output_casing_rules): New functions.
15286 (main): Accept to more arguments: SpecialCasing.txt and
15287 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15288 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15289 Output mapping for casefolding.
15291 * lib/unicase.h: Include stdbool.h, uninorm.h.
15292 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15293 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15294 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15296 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15298 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15299 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15301 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15302 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15303 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15304 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15306 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15308 2009-03-08 Bruno Haible <bruno@clisp.org>
15310 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15311 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15312 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15313 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15315 2009-03-07 Bruno Haible <bruno@clisp.org>
15317 Adjust u*_normcmp, u*_normcoll API.
15318 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15319 u16_normcoll, u32_normcoll): Change failure conventions.
15320 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15321 errno and return -1.
15322 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15324 2009-03-07 Bruno Haible <bruno@clisp.org>
15326 Tests for module 'uninorm/u32-normcoll'.
15327 * modules/uninorm/u32-normcoll-tests: New file.
15328 * tests/uninorm/test-u32-normcoll.c: New file.
15330 Tests for module 'uninorm/u16-normcoll'.
15331 * modules/uninorm/u16-normcoll-tests: New file.
15332 * tests/uninorm/test-u16-normcoll.c: New file.
15334 Tests for module 'uninorm/u8-normcoll'.
15335 * modules/uninorm/u8-normcoll-tests: New file.
15336 * tests/uninorm/test-u8-normcoll.c: New file.
15338 2009-03-07 Bruno Haible <bruno@clisp.org>
15340 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15341 tests/uninorm/test-u32-normcmp.c.
15342 * tests/uninorm/test-u32-normcmp.c: Include it.
15343 (test_nonascii): New function, extracted from main. Add some more
15345 (main): Invoke test_ascii and test_nonascii.
15346 * modules/uninorm/u32-normcmp-tests (Files): Add
15347 tests/uninorm/test-u32-normcmp.h.
15348 (Depends-on): Remove uninorm/u32-normcmp.
15350 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15351 tests/uninorm/test-u16-normcmp.c.
15352 * tests/uninorm/test-u16-normcmp.c: Include it.
15353 (test_nonascii): New function, extracted from main. Add some more
15355 (main): Invoke test_ascii and test_nonascii.
15356 * modules/uninorm/u16-normcmp-tests (Files): Add
15357 tests/uninorm/test-u16-normcmp.h.
15358 (Depends-on): Remove uninorm/u16-normcmp.
15360 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15361 tests/uninorm/test-u8-normcmp.c.
15362 * tests/uninorm/test-u8-normcmp.c: Include it.
15363 (test_nonascii): New function, extracted from main. Add some more
15365 (main): Invoke test_ascii and test_nonascii.
15366 * modules/uninorm/u8-normcmp-tests (Files): Add
15367 tests/uninorm/test-u8-normcmp.h.
15368 (Depends-on): Remove uninorm/u8-normcmp.
15370 2009-03-07 Bruno Haible <bruno@clisp.org>
15372 New module 'uninorm/u32-normcoll'.
15373 * lib/uninorm/u32-normcoll.c: New file.
15374 * modules/uninorm/u32-normcoll: New file.
15376 New module 'uninorm/u16-normcoll'.
15377 * lib/uninorm/u16-normcoll.c: New file.
15378 * modules/uninorm/u16-normcoll: New file.
15380 New module 'uninorm/u8-normcoll'.
15381 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15383 * lib/uninorm/u8-normcoll.c: New file.
15384 * lib/uninorm/u-normcoll.h: New file.
15385 * modules/uninorm/u8-normcoll: New file.
15387 New module 'uninorm/u32-normxfrm'.
15388 * lib/uninorm/u32-normxfrm.c: New file.
15389 * modules/uninorm/u32-normxfrm: New file.
15391 New module 'uninorm/u16-normxfrm'.
15392 * lib/uninorm/u16-normxfrm.c: New file.
15393 * modules/uninorm/u16-normxfrm: New file.
15395 New module 'uninorm/u8-normxfrm'.
15396 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15398 * lib/uninorm/u8-normxfrm.c: New file.
15399 * lib/uninorm/u-normxfrm.h: New file.
15400 * modules/uninorm/u8-normxfrm: New file.
15402 2009-03-07 Bruno Haible <bruno@clisp.org>
15404 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15405 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15406 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15408 2009-03-07 Bruno Haible <bruno@clisp.org>
15410 New module 'memxfrm'.
15411 * lib/memxfrm.h: New file.
15412 * lib/memxfrm.c: New file.
15413 * modules/memxfrm: New file.
15415 2009-03-07 Bruno Haible <bruno@clisp.org>
15417 New module 'memcmp2'.
15418 * lib/memcmp2.h: New file.
15419 * lib/memcmp2.c: New file.
15420 * modules/memcmp2: New file.
15422 2009-03-07 Bruno Haible <bruno@clisp.org>
15424 Tests for module 'uninorm/decomposing-form'.
15425 * modules/uninorm/decomposing-form-tests: New file.
15426 * tests/uninorm/test-decomposing-form.c: New file.
15428 New module 'uninorm/decomposing-form'.
15429 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15430 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15431 Add 'decomposing_variant' field.
15432 * lib/uninorm/decomposing-form.c: New file.
15433 * lib/uninorm/nfc.c (uninorm_nfc): Update.
15434 * lib/uninorm/nfd.c (uninorm_nfd): Update.
15435 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15436 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15437 * modules/uninorm/decomposing-form: New file.
15438 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15439 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15441 2009-03-07 Bruno Haible <bruno@clisp.org>
15443 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15446 2009-03-06 Bruno Haible <bruno@clisp.org>
15448 Tests for module 'uninorm/u32-normcmp'.
15449 * tests/uninorm/test-u32-normcmp.c: New file.
15450 * modules/uninorm/u32-normcmp-tests: New file.
15452 Tests for module 'uninorm/u16-normcmp'.
15453 * tests/uninorm/test-u16-normcmp.c: New file.
15454 * modules/uninorm/u16-normcmp-tests: New file.
15456 Tests for module 'uninorm/u8-normcmp'.
15457 * tests/uninorm/test-u8-normcmp.c: New file.
15458 * modules/uninorm/u8-normcmp-tests: New file.
15460 New module 'uninorm/u32-normcmp'.
15461 * lib/uninorm/u32-normcmp.c: New file.
15462 * modules/uninorm/u32-normcmp: New file.
15464 New module 'uninorm/u16-normcmp'.
15465 * lib/uninorm/u16-normcmp.c: New file.
15466 * modules/uninorm/u16-normcmp: New file.
15468 New module 'uninorm/u8-normcmp'.
15469 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15471 * lib/uninorm/u8-normcmp.c: New file.
15472 * lib/uninorm/u-normcmp.h: New file.
15473 * modules/uninorm/u8-normcmp: New file.
15475 2009-03-06 Bruno Haible <bruno@clisp.org>
15477 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15478 Reported by Eric Blake.
15480 2009-03-06 Eric Blake <ebb9@byu.net>
15481 Bruno Haible <bruno@clisp.org>
15483 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15484 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15486 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15487 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15489 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15491 2009-03-06 Eric Blake <ebb9@byu.net>
15493 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15494 to avoid compiler warnings.
15495 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15497 2009-03-05 Bruno Haible <bruno@clisp.org>
15499 * tests/test-ftell.c (main): Disable test beyond end of file on
15501 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15503 2009-03-05 Kamil Dudka <kdudka@redhat.com>
15505 * lib/filevercmp.c: Move hidden files up in ordering.
15506 * tests/test-filevercmp.c: Add tests for hidden files.
15508 2009-03-04 Bruno Haible <bruno@clisp.org>
15510 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15511 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15513 Reported by Simon Josefsson.
15515 2009-03-03 Bruno Haible <bruno@clisp.org>
15517 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15518 Reported by Simon Josefsson.
15520 * doc/ld-version-script.texi: Update node reference.
15522 2009-03-03 Bruno Haible <bruno@clisp.org>
15524 * modules/visibility (License): Change to 'unlimited'.
15525 Suggested by Simon Josefsson.
15527 2009-03-03 Jim Meyering <meyering@redhat.com>
15529 unlinkdir: cannot_unlink_dir may modify process state
15530 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15531 it's neither thread-safe nor appropriate for use in a library.
15533 2009-03-03 Eric Blake <ebb9@byu.net>
15535 test-closein: silence test under Darwin
15536 * tests/test-closein.sh: Ignore stderr from cat, since we don't
15537 care if it dies from EPIPE or EBADF.
15539 2009-03-03 Bruno Haible <bruno@clisp.org>
15541 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15543 * doc/visibility.texi: Fix @node and @section.
15545 2009-03-03 Simon Josefsson <simon@josefsson.org>
15547 * doc/gnulib.texi: Link to sections for ld version script and
15549 * doc/visibility.texi: Add @node and @section.
15550 * modules/ld-version-script: New module.
15551 * m4/ld-version-script.m4: New file.
15552 * doc/ld-version-script.texi: New file.
15554 2009-03-02 David Lutterkort <lutter@redhat.com>
15556 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15557 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15559 2009-03-02 Bruno Haible <bruno@clisp.org>
15561 * doc/visibility.texi: Mention libtool's -export-symbols option.
15563 2009-03-02 Jim Meyering <meyering@redhat.com>
15565 announce-gen: new option: --no-print-checksums
15566 * build-aux/announce-gen (usage): Describe it.
15567 (print_checksums): Print a newline here, not in the [*] footnote.
15570 2009-03-01 Bruno Haible <bruno@clisp.org>
15572 Use socklen_t in the native Windows replacements prototypes.
15573 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15575 * lib/getsockopt.c (rpl_getsockopt): Likewise.
15576 * lib/setsockopt.c (rpl_setsockopt): Likewise.
15577 * modules/getsockopt (Depends-on): Add socklen.
15578 * modules/setsockopt (Depends-on): Add socklen.
15580 2009-03-01 Bruno Haible <bruno@clisp.org>
15582 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15585 2009-03-01 Eric Blake <ebb9@byu.net>
15586 Bruno Haible <bruno@clisp.org>
15588 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15590 * lib/wait-process.c (wait_subprocess): Omit error message about
15591 deadly signal sent to the child of termsigp != NULL.
15593 2009-03-01 Eric Blake <ebb9@byu.net>
15595 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15597 2009-03-01 Bruno Haible <bruno@clisp.org>
15599 Avoid a gcc warning.
15600 * tests/test-sched.c (b): Make global.
15601 Reported by Eric Blake.
15603 2009-01-19 Martin Lambers <marlam@marlam.de>
15605 Provide POSIX semantics for socket timeout options on W32.
15606 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15607 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15608 * modules/setsockopt: Depend on sys_time module for struct timeval.
15609 * modules/getsockopt: Depend on sys_time module for struct timeval.
15611 2009-03-01 Simon Josefsson <simon@josefsson.org>
15613 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15614 __USE_GNU, for consistency with netdb.in.h.
15615 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15617 2009-03-01 Bruno Haible <bruno@clisp.org>
15619 More support for FreeMiNT.
15620 * lib/fseeko.c (rpl_fseeko): Complete last commit.
15621 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15623 2009-03-01 Bruno Haible <bruno@clisp.org>
15625 More support for FreeMiNT.
15626 * lib/fpurge.c (fpurge): Correct last commit.
15627 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15629 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15631 Fix unportable awk script in vc-list-files.
15632 * build-aux/vc-list-files: In the replacement awk script, use
15633 substr with a second argument of 1, not zero.
15634 Report by Simon Josefsson.
15636 2009-02-28 Bruno Haible <bruno@clisp.org>
15638 More support for FreeMiNT.
15639 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15641 * lib/fwriting.c (fwriting): Likewise.
15642 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15644 2009-02-28 Bruno Haible <bruno@clisp.org>
15646 * tests/test-freadseek.c (main): Disable test beyond end of file on
15648 * tests/test-ftello.c (main): Likewise.
15649 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15651 2009-02-28 Bruno Haible <bruno@clisp.org>
15653 Add tentative support for FreeMiNT.
15654 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15655 * lib/fpurge.c (fpurge): Likewise.
15656 * lib/freadable.c (freadable): Likewise.
15657 * lib/freading.c (freading): Likewise.
15658 * lib/freadptr.c (freadptr): Likewise.
15659 * lib/freadseek.c (freadptrinc): Likewise.
15660 * lib/fseeko.c (rpl_fseeko): Likewise.
15661 * lib/fseterr.c (fseterr): Likewise.
15662 * lib/fwritable.c (fwritable): Likewise.
15663 * lib/fwriting.c (fwriting): Likewise.
15664 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15666 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15668 2009-02-28 Bruno Haible <bruno@clisp.org>
15670 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15672 Reported by Jim Meyering.
15674 2009-02-28 Bruno Haible <bruno@clisp.org>
15676 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15677 Mention the results of these tests on various platforms.
15678 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15680 * doc/posix-functions/printf.texi: Likewise.
15681 * doc/posix-functions/snprintf.texi: Likewise.
15682 * doc/posix-functions/sprintf.texi: Likewise.
15683 * doc/posix-functions/vfprintf.texi: Likewise.
15684 * doc/posix-functions/vprintf.texi: Likewise.
15685 * doc/posix-functions/vsnprintf.texi: Likewise.
15686 * doc/posix-functions/vsprintf.texi: Likewise.
15687 * doc/glibc-functions/obstack_printf.texi: Likewise.
15688 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15690 2009-02-28 Bruno Haible <bruno@clisp.org>
15692 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15693 Reported by Loïc Minier <lool@dooz.org>.
15695 2009-02-27 Bruno Haible <bruno@clisp.org>
15697 * gnulib-tool (func_import): Make the sed expression used to create the
15698 sed script for updating the .gitignore file POSIX compliant.
15699 Reported by Eric Blake.
15701 2009-02-27 Bruno Haible <bruno@clisp.org>
15703 * gnulib-tool (sed): Don't alias as "sed --posix".
15704 Reported by Eric Blake.
15706 2009-02-27 Bruno Haible <bruno@clisp.org>
15708 Avoid test link errors.
15709 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15710 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15711 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15712 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15713 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15715 2009-02-27 Bruno Haible <bruno@clisp.org>
15717 Avoid spurious "(cached)" in configure output.
15718 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15719 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15720 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15721 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15722 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15723 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15724 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15725 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15726 Reported by Eric Blake.
15728 2009-02-27 Eric Blake <ebb9@byu.net>
15730 printf: fix regression in previous patch
15731 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15733 2009-02-27 Bruno Haible <bruno@clisp.org>
15735 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15737 * lib/stdint.in.h: Likewise.
15738 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15740 2009-02-27 Eric Blake <ebb9@byu.net>
15742 doc: mention more functions added in cygwin 1.7.0
15743 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15745 * doc/posix-functions/open_wmemstream.texi: Likewise.
15746 * doc/posix-functions/wcsnlen.texi: Likewise.
15747 * doc/posix-functions/wcsnrtombs.texi: Likewise.
15748 * doc/posix-functions/wcstod.texi: Likewise.
15749 * doc/posix-functions/wcstof.texi: Likewise.
15750 * doc/posix-functions/wcstoimax.texi: Likewise.
15751 * doc/posix-functions/wcstok.texi: Likewise.
15752 * doc/posix-functions/wcstoumax.texi: Likewise.
15754 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15755 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15756 * doc/posix-functions/fprintf.texi: Update.
15757 * doc/posix-functions/printf.texi: Update.
15758 * doc/posix-functions/snprintf.texi: Update.
15759 * doc/posix-functions/sprintf.texi: Update.
15760 * doc/posix-functions/vfprintf.texi: Update.
15761 * doc/posix-functions/vprintf.texi: Update.
15762 * doc/posix-functions/vsnprintf.texi: Update.
15763 * doc/posix-functions/vsprintf.texi: Update.
15764 * doc/glibc-functions/obstack_printf.texi: Update.
15765 * doc/glibc-functions/obstack_vprintf.texi: Update.
15767 2009-02-26 Eric Blake <ebb9@byu.net>
15769 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15770 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15771 compilation bug by using runtime conversion.
15772 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15773 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15774 * modules/ceill-tests (Files): Use nan.h.
15775 * modules/floorl-tests (Files): Likewise.
15776 * modules/frexpl-tests (Files): Likewise.
15777 * modules/isnanl-tests (Files): Likewise.
15778 * modules/ldexpl-tests (Files): Likewise.
15779 * modules/roundl-tests (Files): Likewise.
15780 * modules/truncl-tests (Files): Likewise.
15781 * tests/test-ceill.c (main): Use a working NaN.
15782 * tests/test-floorl.c (main): Likewise.
15783 * tests/test-frexpl.c (main): Likewise.
15784 * tests/test-isnan.c (test_long_double): Likewise.
15785 * tests/test-isnanl.h (main): Likewise.
15786 * tests/test-ldexpl.h (main): Likewise.
15787 * tests/test-roundl.h (main): Likewise.
15788 * tests/test-truncl.h (main): Likewise.
15789 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15791 2009-02-26 Eric Blake <ebb9@byu.net>
15792 Bruno Haible <bruno@clisp.org>
15794 Work around a *printf bug with %ls on Solaris.
15795 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15796 precision is specified, sprintf stops converting the wide string
15797 argument when the number of bytes that have been produced by this
15798 conversion equals or exceeds the precision.
15799 * doc/posix-functions/fprintf.texi: Update.
15800 * doc/posix-functions/printf.texi: Update.
15801 * doc/posix-functions/snprintf.texi: Update.
15802 * doc/posix-functions/sprintf.texi: Update.
15803 * doc/posix-functions/vfprintf.texi: Update.
15804 * doc/posix-functions/vprintf.texi: Update.
15805 * doc/posix-functions/vsnprintf.texi: Update.
15806 * doc/posix-functions/vsprintf.texi: Update.
15807 * doc/glibc-functions/obstack_printf.texi: Update.
15808 * doc/glibc-functions/obstack_vprintf.texi: Update.
15810 2009-02-26 Eric Blake <ebb9@byu.net>
15812 stdlib: favor compiler check of random.h
15813 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
15814 to avoid an ObjC random.h installed by Swarm.
15816 2009-02-26 Bruno Haible <bruno@clisp.org>
15818 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15819 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15820 Reported by Gary V. Vaughan <gary@gnu.org>.
15822 2009-02-26 Bruno Haible <bruno@clisp.org>
15824 Fix *printf behaviour regarding the %ls directive.
15825 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15826 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15827 NEED_PRINTF_DIRECTIVE_LS.
15828 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15829 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15830 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15831 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15832 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15833 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15834 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15835 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15836 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15837 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15838 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15839 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15840 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15841 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15842 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15843 * doc/posix-functions/fprintf.texi: Update.
15844 * doc/posix-functions/printf.texi: Update.
15845 * doc/posix-functions/snprintf.texi: Update.
15846 * doc/posix-functions/sprintf.texi: Update.
15847 * doc/posix-functions/vfprintf.texi: Update.
15848 * doc/posix-functions/vprintf.texi: Update.
15849 * doc/posix-functions/vsnprintf.texi: Update.
15850 * doc/posix-functions/vsprintf.texi: Update.
15851 * doc/glibc-functions/obstack_printf.texi: Update.
15852 * doc/glibc-functions/obstack_vprintf.texi: Update.
15853 Reported by Eric Blake.
15855 2009-02-25 Bruno Haible <bruno@clisp.org>
15857 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15859 Reported by Gary V. Vaughan <gary@gnu.org>.
15861 2009-02-25 Bruno Haible <bruno@clisp.org>
15863 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15864 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15865 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15866 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15867 Reported by Gary V. Vaughan <gary@gnu.org>.
15869 2009-02-25 Bruno Haible <bruno@clisp.org>
15871 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15872 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15873 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15874 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15875 Reported by Gary V. Vaughan <gary@gnu.org>.
15877 2009-02-25 Eric Blake <ebb9@byu.net>
15879 tests: skip fseek/ftell tests if ungetc is broken
15880 * m4/ungetc.m4: New file.
15881 * modules/fseek-tests: Split test, so ungetc dependency is
15882 separate from rest of test.
15883 * modules/fseeko-tests: Likewise.
15884 * modules/ftell-tests: Likewise.
15885 * modules/ftello-tests: Likewise.
15886 * tests/test-fseek.c (main): Isolate ungetc dependency.
15887 * tests/test-fseeko.c (main): Likewise.
15888 * tests/test-ftell.c (main): Likewise.
15889 * tests/test-ftello.c (main): Likewise.
15890 * tests/test-fseek2.sh: New file.
15891 * tests/test-fseeko2.sh: Likewise.
15892 * tests/test-ftell2.sh: Likewise.
15893 * tests/test-ftello2.sh: Likewise.
15895 2009-02-25 Ondřej Vašík <ovasik@redhat.com>
15897 test-getaddrinfo: fix usage of skip return code 77
15898 * tests/test-gettaddrinfo.c: Return skip code 77 only
15899 for first occurance of skip (4x77 is not 77)
15901 2009-02-25 Gary V. Vaughan <gary@gnu.org>
15903 strtod: avoid C99 decl-after-statement
15904 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15906 2009-02-24 Eric Blake <ebb9@byu.net>
15908 strtod: detect HP-UX 11.31 bug
15909 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15910 Reported by Gary V. Vaughan.
15912 2009-02-23 Bruno Haible <bruno@clisp.org>
15914 Fix invalid read past end of memory block.
15915 * lib/vasnprintf.c (DCHAR_SET): Define.
15916 (local_wcslen): Define only when needed.
15917 (local_strnlen, local_wcsnlen): New functions.
15918 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15919 directives that involve a conversion ourselves.
15920 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15921 wcsnlen, mbrtowc, wcrtomb.
15922 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15923 * tests/test-vasprintf-posix.c (test_function): Likewise.
15924 * tests/test-snprintf-posix.h (test_function): Likewise.
15925 * tests/test-sprintf-posix.h (test_function): Likewise.
15926 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15928 2009-02-22 Bruno Haible <bruno@clisp.org>
15930 Implement new clarified decomposition of Hangul syllables.
15931 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15932 of type LTV, return only a pairwise decomposition.
15933 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15935 * tests/uninorm/test-decomposition.c (main): Updated expected result.
15936 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15937 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15939 2009-02-22 Bruno Haible <bruno@clisp.org>
15941 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15942 zero-length results and shrink excess allocated memory.
15943 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15944 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15945 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15946 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15947 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15948 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15949 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15950 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15951 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15952 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15953 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15954 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15956 2009-02-21 Bruno Haible <bruno@clisp.org>
15958 * doc/gnulib.texi: Include safe-alloc.texi earlier.
15959 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15960 spaces after a period. Put a space between a macro name and its
15961 argument list. Trivial rewordings.
15962 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15963 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15964 (main): Return 0 explicitly.
15966 2009-02-21 Bruno Haible <bruno@clisp.org>
15968 Tests for module 'uninorm/filter'.
15969 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15970 * modules/uninorm/filter-tests: New file.
15972 New module 'uninorm/filter'.
15973 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15974 uninorm_filter_flush, uninorm_filter_free): New declarations.
15975 * lib/uninorm/uninorm-filter.c: New file.
15976 * modules/uninorm/filter: New file.
15978 2009-02-21 Bruno Haible <bruno@clisp.org>
15980 Tests for module 'uninorm/nfkc'.
15981 * tests/uninorm/test-nfkc.c: New file.
15982 * tests/uninorm/test-u8-nfkc.c: New file.
15983 * tests/uninorm/test-u16-nfkc.c: New file.
15984 * tests/uninorm/test-u32-nfkc.c: New file.
15985 * tests/uninorm/test-u32-nfkc-big.sh: New file.
15986 * tests/uninorm/test-u32-nfkc-big.c: New file.
15987 * modules/uninorm/nfkc-tests: New file.
15989 New module 'uninorm/nfkc'.
15990 * lib/uninorm/nfkc.c: New file.
15991 * modules/uninorm/nfkc: New file.
15993 Tests for module 'uninorm/nfkd'.
15994 * tests/uninorm/test-nfkd.c: New file.
15995 * tests/uninorm/test-u8-nfkd.c: New file.
15996 * tests/uninorm/test-u16-nfkd.c: New file.
15997 * tests/uninorm/test-u32-nfkd.c: New file.
15998 * tests/uninorm/test-u32-nfkd-big.sh: New file.
15999 * tests/uninorm/test-u32-nfkd-big.c: New file.
16000 * modules/uninorm/nfkd-tests: New file.
16002 New module 'uninorm/nfkd'.
16003 * lib/uninorm/nfkd.c: New file.
16004 * modules/uninorm/nfkd: New file.
16006 Tests for module 'uninorm/nfc'.
16007 * tests/uninorm/test-nfc.c: New file.
16008 * tests/uninorm/test-u8-nfc.c: New file.
16009 * tests/uninorm/test-u16-nfc.c: New file.
16010 * tests/uninorm/test-u32-nfc.c: New file.
16011 * tests/uninorm/test-u32-nfc-big.sh: New file.
16012 * tests/uninorm/test-u32-nfc-big.c: New file.
16013 * modules/uninorm/nfc-tests: New file.
16015 New module 'uninorm/nfc'.
16016 * lib/uninorm/nfc.c: New file.
16017 * modules/uninorm/nfc: New file.
16019 Tests for module 'uninorm/nfd'.
16020 * tests/uninorm/test-nfd.c: New file.
16021 * tests/uninorm/test-u8-nfd.c: New file.
16022 * tests/uninorm/test-u16-nfd.c: New file.
16023 * tests/uninorm/test-u32-nfd.c: New file.
16024 * tests/uninorm/test-u32-nfd-big.sh: New file.
16025 * tests/uninorm/test-u32-nfd-big.c: New file.
16026 * tests/uninorm/test-u32-normalize-big.h: New file.
16027 * tests/uninorm/test-u32-normalize-big.c: New file.
16028 * tests/uninorm/NormalizationTest.txt: New file, created from
16029 Unicode 5.1.0 NormalizationTest.txt.
16030 * modules/uninorm/nfd-tests: New file.
16032 New module 'uninorm/nfd'.
16033 * lib/uninorm/nfd.c: New file.
16034 * modules/uninorm/nfd: New file.
16036 New module 'uninorm/u32-normalize'.
16037 * lib/uninorm/u32-normalize.c: New file.
16038 * modules/uninorm/u32-normalize: New file.
16040 New module 'uninorm/u16-normalize'.
16041 * lib/uninorm/u16-normalize.c: New file.
16042 * modules/uninorm/u16-normalize: New file.
16044 New module 'uninorm/u8-normalize'.
16045 * lib/uninorm/u8-normalize.c: New file.
16046 * lib/uninorm/normalize-internal.h: New file.
16047 * lib/uninorm/u-normalize-internal.h: New file.
16048 * modules/uninorm/u8-normalize: New file.
16050 New module 'uninorm/decompose-internal'.
16051 * lib/uninorm/decompose-internal.c: New file.
16052 * modules/uninorm/decompose-internal: New file.
16054 Tests for module 'uninorm/composition'.
16055 * tests/uninorm/test-composition.c: New file.
16056 * modules/uninorm/composition-tests: New file.
16058 New module 'uninorm/composition'.
16059 * lib/uninorm/composition.c: New file.
16060 * lib/uninorm/composition-table.gperf: New file, generated by
16062 * modules/uninorm/composition: New file.
16064 Tests for module 'uninorm/compat-decomposition'.
16065 * tests/uninorm/test-compat-decomposition.c: New file.
16066 * modules/uninorm/compat-decomposition-tests: New file.
16068 New module 'uninorm/compat-decomposition'.
16069 * lib/uninorm/decompose-internal.h: New file.
16070 * lib/uninorm/compat-decomposition.c: New file.
16071 * modules/uninorm/compat-decomposition: New file.
16073 Tests for module 'uninorm/canonical-decomposition'.
16074 * tests/uninorm/test-canonical-decomposition.c: New file.
16075 * modules/uninorm/canonical-decomposition-tests: New file.
16077 New module 'uninorm/canonical-decomposition'.
16078 * lib/uninorm/canonical-decomposition.c: New file.
16079 * modules/uninorm/canonical-decomposition: New file.
16081 Tests for module 'uninorm/decomposition'.
16082 * tests/uninorm/test-decomposition.c: New file.
16083 * modules/uninorm/decomposition-tests: New file.
16085 New module 'uninorm/decomposition'.
16086 * lib/uninorm/decomposition.c: New file.
16087 * modules/uninorm/decomposition: New file.
16089 New module 'uninorm/decomposition-table'.
16090 * lib/uninorm/decomposition-table.h: New file.
16091 * lib/uninorm/decomposition-table.c: New file.
16092 * lib/uninorm/decomposition-table1.h: New file, generated by
16094 * lib/uninorm/decomposition-table2.h: New file, generated by
16096 * modules/uninorm/decomposition-table: New file.
16098 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16099 (UC_DECOMP_*): New enumeration items.
16100 (get_decomposition): New function.
16101 (struct decomp_table): New type.
16102 (output_decomposition, output_decomposition_tables): New functions.
16103 (unicode_composition_exclusions): New variable.
16104 (fill_composition_exclusions, debug_output_composition_tables): New
16106 (main): Accept one more argument. Invoke fill_composition_exclusions.
16107 Output decomposition and composition tables.
16109 New module 'uninorm/base'.
16110 * lib/uninorm.h: New file.
16111 * lib/unictype.h: Update comment.
16112 * modules/uninorm/base: New file.
16114 2009-02-21 David Lutterkort <lutter@redhat.com>
16116 Tests for module 'safe-alloc'.
16117 * tests/test-safe-alloc.c: New file.
16118 * modules/safe-alloc-tests: New file.
16120 New module 'safe-alloc'.
16121 * lib/safe-alloc.h: New file.
16122 * lib/safe-alloc.c: New file.
16123 * m4/safe-alloc.m4: New file.
16124 * modules/safe-alloc: New file.
16125 * doc/safe-alloc.texi: New file.
16126 * doc/gnulib.texi: Include it.
16127 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16130 2009-02-18 Bruno Haible <bruno@clisp.org>
16132 Fix link error on non-glibc systems.
16133 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16135 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16137 2009-02-18 Jim Meyering <meyering@redhat.com>
16139 fts: avoid used-uninitialized error due to recent change
16140 * lib/fts.c (fts_read): Guard uses of the new member,
16141 parent->fts_n_dirs_remaining, since it's not relevant for
16142 the parent of a directory specified on the command-line.
16144 2009-02-17 James Youngman <jay@gnu.org>
16145 Bruno Haible <bruno@clisp.org>
16147 * m4/include_next.m4: Reformulate comment.
16149 2009-02-16 Jim Meyering <meyering@redhat.com>
16151 fts: add #if guards so that the fts_lgpl module still builds
16152 * lib/fts.c: Guard just-added hash-table-using parts with
16153 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16154 Reported by Simon Josefsson.
16156 2009-02-15 Bruno Haible <bruno@clisp.org>
16158 * modules/array-mergesort-tests: New file.
16159 * tests/test-array-mergesort.c: New file.
16161 New module 'array-mergesort'.
16162 * modules/array-mergesort: New file.
16163 * lib/array-mergesort.h: New file.
16165 2009-02-15 Bruno Haible <bruno@clisp.org>
16167 Fix 2009-02-07 commit.
16168 * lib/gen-uni-tables.c (output_predicate, output_category,
16169 output_combclass, output_bidi_category, output_decimal_digit,
16170 output_digit, output_numeric, output_mirror, output_scripts,
16171 output_ident_category, output_simple_mapping): Fix format directives.
16172 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16174 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
16176 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16177 fixes are available from IBM.
16179 2009-02-13 Jim Meyering <meyering@redhat.com>
16181 fts: arrange not to stat non-directories in more cases
16182 This makes GNU find (when it doesn't need to stat each file)
16183 *much* more efficient at traversing reiserfs file systems.
16184 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16185 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16186 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16187 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16188 (leaf_optimization_applies): New function.
16189 (LCO_hash, LCO_compare): New helper functions.
16190 (link_count_optimize_ok): New function.
16191 (fts_stat): Initialize new member (if dir).
16192 (fts_read): Decrement parent's fts_n_dirs_remaining count if
16193 we've just stat'ed a directory. Skip the stat call when possible.
16195 Note this AFS-related exchange:
16196 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16197 and note find's pioctl call in find/fstype.c.
16198 But that is necessary only if you want to enable the
16199 optimization for AFS, and for now, I don't.
16201 fts: move a function definition "up" (no semantic change)
16202 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16203 "up" to precede upcoming use of a related function.
16205 2009-02-11 Jim Meyering <meyering@redhat.com>
16207 fts: correct internal computation of nlinks (optimization-related)
16208 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16209 whether the current entry is a directory, so don't test it.
16211 2009-02-10 Bruno Haible <bruno@clisp.org>
16213 Tests for module 'uniwbrk/ulc-wordbreaks'.
16214 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16215 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16216 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16218 Tests for module 'uniwbrk/u32-wordbreaks'.
16219 * modules/uniwbrk/u32-wordbreaks-tests: New file.
16220 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16222 Tests for module 'uniwbrk/u16-wordbreaks'.
16223 * modules/uniwbrk/u16-wordbreaks-tests: New file.
16224 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16226 Tests for module 'uniwbrk/u8-wordbreaks'.
16227 * modules/uniwbrk/u8-wordbreaks-tests: New file.
16228 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16230 2009-02-10 Bruno Haible <bruno@clisp.org>
16232 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16234 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16235 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16236 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16238 2009-02-10 Simon Josefsson <simon@josefsson.org>
16240 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16241 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
16243 2009-02-10 Bruno Haible <bruno@clisp.org>
16245 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16246 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16247 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16248 * lib/unilbrk/u8-possible-linebreaks.c: Update.
16249 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16250 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16252 2009-02-09 Simon Josefsson <simon@josefsson.org>
16254 * lib/sockets.h (gl_fd_to_handle): New function.
16256 * tests/test-sockets.c: Call gl_fd_to_handle.
16258 2009-02-09 Bruno Haible <bruno@clisp.org>
16260 * doc/havelib.texi: Document the conventions on bi-arch systems.
16262 2009-02-08 Bruno Haible <bruno@clisp.org>
16264 Document the AC_LIB_LINKFLAGS macro.
16265 * doc/havelib.texi: New file, mostly written on 2005-05-24.
16266 * doc/gnulib.texi: Include it.
16268 2009-02-08 Bruno Haible <bruno@clisp.org>
16270 Fix wrong order of sections, compared to TOC.
16271 * doc/gnulib.texi: Include relocatable-maint.texi after the
16272 "Regular expressions" node, not before.
16274 2009-02-08 Bruno Haible <bruno@clisp.org>
16276 Tests for module 'unicase/totitle'.
16277 * modules/unicase/totitle-tests: New file.
16279 Tests for module 'unicase/tolower'.
16280 * modules/unicase/tolower-tests: New file.
16282 Tests for module 'unicase/toupper'.
16283 * modules/unicase/toupper-tests: New file.
16284 * tests/unicase/test-mapping-part1.h: New file.
16285 * tests/unicase/test-mapping-part2.h: New file.
16287 New module 'unicase/totitle'.
16288 * modules/unicase/totitle: New file.
16289 * lib/unicase/totitle.c: New file.
16291 New module 'unicase/tolower'.
16292 * modules/unicase/tolower: New file.
16293 * lib/unicase/tolower.c: New file.
16295 New module 'unicase/toupper'.
16296 * modules/unicase/toupper: New file.
16297 * lib/unicase/toupper.c: New file.
16298 * lib/unicase/simple-mapping.h: New file.
16300 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16301 (mapping_table): New structure.
16302 (output_simple_mapping): New function.
16303 (main): Invoke output_simple_mapping_test and output_simple_mapping.
16304 * modules/gen-uni-tables (Description): Update.
16305 * lib/unicase/toupper.h: New file, automatically generated by
16307 * lib/unicase/tolower.h: New file, automatically generated by
16309 * lib/unicase/totitle.h: New file, automatically generated by
16311 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16313 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16315 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16318 New module 'unicase/base'.
16319 * modules/unicase/base: New file.
16320 * lib/unicase.h: New file.
16322 2009-02-08 Bruno Haible <bruno@clisp.org>
16324 New module 'uniwbrk/ulc-wordbreaks'.
16325 * modules/uniwbrk/ulc-wordbreaks: New file.
16326 * lib/uniwbrk/ulc-wordbreaks.c: New file.
16328 New module 'uniwbrk/u32-wordbreaks'.
16329 * modules/uniwbrk/u32-wordbreaks: New file.
16330 * lib/uniwbrk/u32-wordbreaks.c: New file.
16332 New module 'uniwbrk/u16-wordbreaks'.
16333 * modules/uniwbrk/u16-wordbreaks: New file.
16334 * lib/uniwbrk/u16-wordbreaks.c: New file.
16336 New module 'uniwbrk/u8-wordbreaks'.
16337 * modules/uniwbrk/u8-wordbreaks: New file.
16338 * lib/uniwbrk/u8-wordbreaks.c: New file.
16339 * lib/uniwbrk/u-wordbreaks.h: New file.
16341 New module 'uniwbrk/table'.
16342 * modules/uniwbrk/table: New file.
16343 * lib/uniwbrk/wbrktable.h: New file.
16344 * lib/uniwbrk/wbrktable.c: New file.
16346 New module 'uniwbrk/wordbreak-property'.
16347 * modules/uniwbrk/wordbreak-property: New file.
16348 * lib/uniwbrk/wordbreak-property.c: New file.
16350 * lib/gen-uni-tables.c (WBP_*): New enum items.
16351 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16352 (unicode_org_wbp): New variable.
16353 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16355 (wbp_table): New structure.
16356 (output_wbp, output_wbrk_tables): New functions.
16357 (main): Accept additional argument. Invoke fill_org_wbp,
16358 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16359 output_wbrk_tables.
16360 * modules/gen-uni-tables (Description): Update.
16361 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16364 New module 'uniwbrk/base'.
16365 * modules/uniwbrk/base: New file.
16366 * lib/uniwbrk.h: New file.
16368 2009-02-08 Bruno Haible <bruno@clisp.org>
16370 Update to Unicode 5.1.0.
16371 * lib/gen-uni-tables.c (is_property_alphabetic): Include
16373 (is_property_default_ignorable_code_point): Don't include characters
16374 of category Cc or Cs and not-a-characters.
16375 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16376 U+0D79, U+109E, U+109F, U+A60C.
16377 * lib/unictype/bidi_of.h: Regenerated.
16378 * lib/unictype/blocks.h: Regenerated.
16379 * lib/unictype/categ_C.h: Regenerated.
16380 * lib/unictype/categ_Cf.h: Regenerated.
16381 * lib/unictype/categ_Cn.h: Regenerated.
16382 * lib/unictype/categ_L.h: Regenerated.
16383 * lib/unictype/categ_Ll.h: Regenerated.
16384 * lib/unictype/categ_Lm.h: Regenerated.
16385 * lib/unictype/categ_Lo.h: Regenerated.
16386 * lib/unictype/categ_Lu.h: Regenerated.
16387 * lib/unictype/categ_M.h: Regenerated.
16388 * lib/unictype/categ_Mc.h: Regenerated.
16389 * lib/unictype/categ_Me.h: Regenerated.
16390 * lib/unictype/categ_Mn.h: Regenerated.
16391 * lib/unictype/categ_N.h: Regenerated.
16392 * lib/unictype/categ_Nd.h: Regenerated.
16393 * lib/unictype/categ_Nl.h: Regenerated.
16394 * lib/unictype/categ_No.h: Regenerated.
16395 * lib/unictype/categ_P.h: Regenerated.
16396 * lib/unictype/categ_Pd.h: Regenerated.
16397 * lib/unictype/categ_Pe.h: Regenerated.
16398 * lib/unictype/categ_Pf.h: Regenerated.
16399 * lib/unictype/categ_Pi.h: Regenerated.
16400 * lib/unictype/categ_Po.h: Regenerated.
16401 * lib/unictype/categ_Ps.h: Regenerated.
16402 * lib/unictype/categ_S.h: Regenerated.
16403 * lib/unictype/categ_Sk.h: Regenerated.
16404 * lib/unictype/categ_Sm.h: Regenerated.
16405 * lib/unictype/categ_So.h: Regenerated.
16406 * lib/unictype/categ_of.h: Regenerated.
16407 * lib/unictype/combining.h: Regenerated.
16408 * lib/unictype/ctype_alnum.h: Regenerated.
16409 * lib/unictype/ctype_alpha.h: Regenerated.
16410 * lib/unictype/ctype_graph.h: Regenerated.
16411 * lib/unictype/ctype_lower.h: Regenerated.
16412 * lib/unictype/ctype_print.h: Regenerated.
16413 * lib/unictype/ctype_punct.h: Regenerated.
16414 * lib/unictype/ctype_upper.h: Regenerated.
16415 * lib/unictype/decdigit.h: Regenerated.
16416 * lib/unictype/digit.h: Regenerated.
16417 * lib/unictype/mirror.h: Regenerated.
16418 * lib/unictype/numeric.h: Regenerated.
16419 * lib/unictype/pr_alphabetic.h: Regenerated.
16420 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16421 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16422 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16423 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16424 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16425 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16426 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16427 * lib/unictype/pr_combining.h: Regenerated.
16428 * lib/unictype/pr_dash.h: Regenerated.
16429 * lib/unictype/pr_decimal_digit.h: Regenerated.
16430 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16431 * lib/unictype/pr_deprecated.h: Regenerated.
16432 * lib/unictype/pr_diacritic.h: Regenerated.
16433 * lib/unictype/pr_extender.h: Regenerated.
16434 * lib/unictype/pr_format_control.h: Regenerated.
16435 * lib/unictype/pr_grapheme_base.h: Regenerated.
16436 * lib/unictype/pr_grapheme_extend.h: Regenerated.
16437 * lib/unictype/pr_grapheme_link.h: Regenerated.
16438 * lib/unictype/pr_id_continue.h: Regenerated.
16439 * lib/unictype/pr_id_start.h: Regenerated.
16440 * lib/unictype/pr_ideographic.h: Regenerated.
16441 * lib/unictype/pr_ignorable_control.h: Regenerated.
16442 * lib/unictype/pr_lowercase.h: Regenerated.
16443 * lib/unictype/pr_math.h: Regenerated.
16444 * lib/unictype/pr_numeric.h: Regenerated.
16445 * lib/unictype/pr_other_alphabetic.h: Regenerated.
16446 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16447 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16448 * lib/unictype/pr_other_id_continue.h: Regenerated.
16449 * lib/unictype/pr_other_lowercase.h: Regenerated.
16450 * lib/unictype/pr_other_math.h: Regenerated.
16451 * lib/unictype/pr_punctuation.h: Regenerated.
16452 * lib/unictype/pr_sentence_terminal.h: Regenerated.
16453 * lib/unictype/pr_soft_dotted.h: Regenerated.
16454 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16455 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16456 * lib/unictype/pr_unified_ideograph.h: Regenerated.
16457 * lib/unictype/pr_uppercase.h: Regenerated.
16458 * lib/unictype/pr_xid_continue.h: Regenerated.
16459 * lib/unictype/pr_xid_start.h: Regenerated.
16460 * lib/unictype/pr_zero_width.h: Regenerated.
16461 * lib/unictype/scripts.h: Regenerated.
16462 * lib/unictype/scripts_byname.gperf: Regenerated.
16463 * lib/unictype/sy_java_ident.h: Regenerated.
16464 * lib/unilbrk/lbrkprop1.h: Regenerated.
16465 * lib/unilbrk/lbrkprop2.h: Regenerated.
16466 * tests/unictype/test-categ_C.c: Regenerated.
16467 * tests/unictype/test-categ_Cf.c: Regenerated.
16468 * tests/unictype/test-categ_Cn.c: Regenerated.
16469 * tests/unictype/test-categ_L.c: Regenerated.
16470 * tests/unictype/test-categ_Ll.c: Regenerated.
16471 * tests/unictype/test-categ_Lm.c: Regenerated.
16472 * tests/unictype/test-categ_Lo.c: Regenerated.
16473 * tests/unictype/test-categ_Lu.c: Regenerated.
16474 * tests/unictype/test-categ_M.c: Regenerated.
16475 * tests/unictype/test-categ_Mc.c: Regenerated.
16476 * tests/unictype/test-categ_Me.c: Regenerated.
16477 * tests/unictype/test-categ_Mn.c: Regenerated.
16478 * tests/unictype/test-categ_N.c: Regenerated.
16479 * tests/unictype/test-categ_Nd.c: Regenerated.
16480 * tests/unictype/test-categ_Nl.c: Regenerated.
16481 * tests/unictype/test-categ_No.c: Regenerated.
16482 * tests/unictype/test-categ_P.c: Regenerated.
16483 * tests/unictype/test-categ_Pd.c: Regenerated.
16484 * tests/unictype/test-categ_Pe.c: Regenerated.
16485 * tests/unictype/test-categ_Pf.c: Regenerated.
16486 * tests/unictype/test-categ_Pi.c: Regenerated.
16487 * tests/unictype/test-categ_Po.c: Regenerated.
16488 * tests/unictype/test-categ_Ps.c: Regenerated.
16489 * tests/unictype/test-categ_S.c: Regenerated.
16490 * tests/unictype/test-categ_Sk.c: Regenerated.
16491 * tests/unictype/test-categ_Sm.c: Regenerated.
16492 * tests/unictype/test-categ_So.c: Regenerated.
16493 * tests/unictype/test-ctype_alnum.c: Regenerated.
16494 * tests/unictype/test-ctype_alpha.c: Regenerated.
16495 * tests/unictype/test-ctype_graph.c: Regenerated.
16496 * tests/unictype/test-ctype_lower.c: Regenerated.
16497 * tests/unictype/test-ctype_print.c: Regenerated.
16498 * tests/unictype/test-ctype_punct.c: Regenerated.
16499 * tests/unictype/test-ctype_upper.c: Regenerated.
16500 * tests/unictype/test-decdigit.h: Regenerated.
16501 * tests/unictype/test-digit.h: Regenerated.
16502 * tests/unictype/test-numeric.h: Regenerated.
16503 * tests/unictype/test-pr_alphabetic.c: Regenerated.
16504 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16505 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16506 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16507 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16508 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16509 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16510 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16511 * tests/unictype/test-pr_combining.c: Regenerated.
16512 * tests/unictype/test-pr_dash.c: Regenerated.
16513 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16514 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16515 * tests/unictype/test-pr_deprecated.c: Regenerated.
16516 * tests/unictype/test-pr_diacritic.c: Regenerated.
16517 * tests/unictype/test-pr_extender.c: Regenerated.
16518 * tests/unictype/test-pr_format_control.c: Regenerated.
16519 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16520 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16521 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16522 * tests/unictype/test-pr_id_continue.c: Regenerated.
16523 * tests/unictype/test-pr_id_start.c: Regenerated.
16524 * tests/unictype/test-pr_ideographic.c: Regenerated.
16525 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16526 * tests/unictype/test-pr_lowercase.c: Regenerated.
16527 * tests/unictype/test-pr_math.c: Regenerated.
16528 * tests/unictype/test-pr_numeric.c: Regenerated.
16529 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16530 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16532 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16533 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16534 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16535 * tests/unictype/test-pr_other_math.c: Regenerated.
16536 * tests/unictype/test-pr_punctuation.c: Regenerated.
16537 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16538 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16539 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16540 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16541 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16542 * tests/unictype/test-pr_uppercase.c: Regenerated.
16543 * tests/unictype/test-pr_xid_continue.c: Regenerated.
16544 * tests/unictype/test-pr_xid_start.c: Regenerated.
16545 * tests/unictype/test-pr_zero_width.c: Regenerated.
16547 Update to Unicode 5.1.0.
16548 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16549 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16550 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16551 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16552 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16553 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16554 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16555 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16556 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16557 (nonspacing_table_ind): Update.
16558 * tests/uniwidth/test-uc_width2.sh: Update expected result.
16560 Update to Unicode 5.1.0.
16561 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16563 * lib/uniname/uniname.c (unicode_character_name,
16564 unicode_name_character): Add the range 0x1Fxxx to the code transform.
16565 * lib/uniname/uninames.h: Regenerated.
16566 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16568 2009-02-07 Bruno Haible <bruno@clisp.org>
16570 Merge gen-ctype and gen-lbrk into a single program.
16571 * lib/gen-uni-tables.c: New file, incorporating
16572 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16573 Add directory prefixes to the names of the generated files.
16574 * lib/unictype/gen-ctype.c: Remove file.
16575 * lib/unilbrk/gen-lbrk.c: Remove file.
16576 * modules/gen-uni-tables: New file.
16577 * modules/unictype/gen-ctype: Remove file.
16578 * modules/unilbrk/gen-lbrk: Remove file.
16580 2009-02-07 Bruno Haible <bruno@clisp.org>
16582 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16584 New module 'unistr/u32-strcoll'.
16585 * modules/unistr/u32-strcoll: New file.
16586 * lib/unistr/u32-strcoll.c: New file.
16588 New module 'unistr/u16-strcoll'.
16589 * modules/unistr/u16-strcoll: New file.
16590 * lib/unistr/u16-strcoll.c: New file.
16592 New module 'unistr/u8-strcoll'.
16593 * modules/unistr/u8-strcoll: New file.
16594 * lib/unistr/u8-strcoll.c: New file.
16595 * lib/unistr/u-strcoll.h: New file.
16597 2009-02-07 Bruno Haible <bruno@clisp.org>
16599 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16600 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16601 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16602 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16603 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16604 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16606 2009-02-07 Bruno Haible <bruno@clisp.org>
16609 * lib/unictype/gen-ctype.c (output_predicate, output_category,
16610 output_combclass, output_bidi_category, output_decimal_digit,
16611 output_digit, output_numeric, output_mirror, output_scripts,
16612 output_ident_category): Use proper width specifier in format strings.
16614 2009-02-07 Bruno Haible <bruno@clisp.org>
16616 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16619 2009-02-07 Jim Meyering <meyering@redhat.com>
16621 regex: avoid compilation failure with upcoming gcc-4.4
16622 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16623 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
16624 "... error: integer overflow in preprocessor expression".
16626 2009-02-05 Ben Pfaff <blp@gnu.org>
16628 Fix link errors on Windows when close module is used.
16629 * modules/close: Add $(LIB_CLOSE) to Link section.
16630 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16631 $(LIB_CLOSE) on Windows.
16633 2009-02-05 Jim Meyering <meyering@redhat.com>
16635 still avoid unused-parameter warnings, but do it cleanly
16636 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16637 (get_fs_usage): Cast to void instead.
16638 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16639 (dev_from_mount_options, read_file_system_list): Cast to void.
16640 Prompted by Bruno Haible.
16642 2009-02-04 Jim Meyering <meyering@redhat.com>
16644 fsusage.c: correct copyright year
16645 * lib/fsusage.c: Reflect year in which the change is pushed into
16647 avoid misc. warnings
16648 * lib/fsusage.c (UNUSED_PARAM): Define.
16649 (get_fs_usage): Mark parameter "disk" as unused.
16650 * lib/getugroups.c (getgrent): Use "void" in prototype.
16651 * lib/mountlist.c: Mark unused parameters.
16652 (read_file_system_list): Declare a local with "const".
16653 * lib/nanosleep.c (getnow): Declare static.
16654 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16656 dirfd: set errno upon failure
16657 * lib/dirfd.c: Include <errno.h>.
16658 Set errno to ENOTSUP when returning -1.
16659 * modules/dirfd (Depends-on): Add errno.
16660 Suggested by John Kodis <kodis@comcast.net>.
16662 2009-02-01 Bruno Haible <bruno@clisp.org>
16664 Don't assume sizeof (long) >= sizeof (void *).
16665 * lib/memcmp.c: Include stdint.h.
16666 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16667 srcp2 to 'const byte *'.
16668 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16669 types to uintptr_t.
16670 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16671 * modules/memcmp (Depends-on): Add stdint.
16672 Reported by Ozkan Sezer <sezeroz@gmail.com>.
16674 2009-01-30 Eric Blake <ebb9@byu.net>
16676 fix more require-before-expand issues
16677 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16678 expand, AC_PROG_AWK.
16679 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16681 2009-01-28 Eric Blake <ebb9@byu.net>
16683 version-etc: use consistent URL formatting
16684 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16685 Improve formatting. Use fputs for string without %.
16687 2009-01-28 Jim Meyering <meyering@redhat.com>
16689 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16690 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16691 "underquoted definition of NAME" from autoconf-2.59.
16693 2009-01-28 Bruno Haible <bruno@clisp.org>
16695 * doc/gnulib.texi: Add "Obsolete modules" to index.
16697 2009-01-28 Jim Meyering <meyering@redhat.com>
16699 useless-if-before-free: recognize more variants
16700 * build-aux/useless-if-before-free: Also recognize e.g.,
16701 if (NULL != p) free (p);
16703 2009-01-27 Mark McLoughlin <markmc@redhat.com>
16705 test-getaddrinfo: skip (don't fail) this test when there's no network
16706 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16707 on the presumption that it means you lack network access.
16709 2009-01-26 Jim Meyering <meyering@redhat.com>
16711 fflush: avoid warnings on modern systems
16712 * lib/fflush.c (rpl_fflush): Move declarations of locals,
16713 pos and result, into scopes where they're used.
16715 2009-01-26 Eric Blake <ebb9@byu.net>
16717 Silence warning reintroduced by recent extensions patch.
16718 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16719 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16722 Backport improved autoconf semantics of AC_DEFUN_ONCE.
16723 * m4/00gnulib.m4: New file.
16724 * gnulib-tool (func_get_filelist): Always use it.
16725 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16726 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16728 2009-01-25 Bruno Haible <bruno@clisp.org>
16730 Make test-quotearg work on MacOS X and AIX.
16731 * tests/test-quotearg.sh: New file.
16732 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16733 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16734 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16735 include <libintl.h>.
16736 (fake_locale): Remove variable.
16737 (gettext, dgettext, dcgettext): Remove functions.
16738 (main): Instead of setting a fake locale, set a real locale. Call
16739 textdomain and bindtextdomain.
16740 * modules/quotearg-tests (Files): Add the new files.
16741 (Depends-on): Add gettext, setenv, unsetenv.
16742 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16743 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16744 Augment TESTS_ENVIRONMENT.
16746 2009-01-25 Bruno Haible <bruno@clisp.org>
16748 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16749 fr_FR.ISO8859-1 locale on MacOS X.
16750 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16751 ja_JP.eucJP locale on MacOS X.
16752 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16753 zh_CN.GB18030 locale on MacOS X.
16755 2009-01-25 Bruno Haible <bruno@clisp.org>
16757 Avoid link errors on MacOS X 10.3.
16758 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16759 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16761 2009-01-25 Bruno Haible <bruno@clisp.org>
16763 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16764 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16765 * modules/pipe (Files): Remove m4/posix_spawn.m4.
16766 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16767 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16768 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16769 posix_spawnattr_init, posix_spawnattr_setsigmask,
16770 posix_spawnattr_setflags, posix_spawnattr_destroy.
16772 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16773 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16774 * modules/execute (Files): Remove m4/posix_spawn.m4.
16775 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16776 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16777 posix_spawnattr_init, posix_spawnattr_setsigmask,
16778 posix_spawnattr_setflags, posix_spawnattr_destroy.
16780 2009-01-25 Bruno Haible <bruno@clisp.org>
16782 * lib/glthread/threadlib.c: Include <stdlib.h>.
16784 2009-01-25 Bruno Haible <bruno@clisp.org>
16786 * lib/glthread/threadlib.c (dummy): New declaration.
16788 2009-01-25 Bruno Haible <bruno@clisp.org>
16790 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16791 multibyte characters also for the GB18030 encoding. Don't crash when
16792 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16794 2009-01-25 Bruno Haible <bruno@clisp.org>
16796 Avoid redefining 'struct random_data' on OSF/1 5.1.
16797 * lib/stdlib.in.h: Include <random.h> if it exists.
16798 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16799 HAVE_RANDOM_H. Include <random.h> when testing whether
16800 'struct random_data' exists.
16801 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16803 2009-01-25 Bruno Haible <bruno@clisp.org>
16805 Don't install charset.alias on MacOS X >= 10.3.
16806 * lib/localcharset.c (DARWIN7): New macro.
16807 (get_charset_aliases): Hardcode the result for Darwin7.
16808 * modules/localcharset (install-exec-local): Don't install
16809 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16811 2009-01-25 Bruno Haible <bruno@clisp.org>
16813 Don't install charset.alias on mingw and Cygwin.
16814 * modules/localcharset (install-exec-local): Don't install
16815 charset.alias on mingw and Cygwin, if the file does not yet exist.
16816 The result for these platforms is hardcoded in localcharset.c.
16818 2009-01-25 Bruno Haible <bruno@clisp.org>
16820 Make it possible again to use AC_GNU_SOURCE together with gnulib.
16821 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16822 before requiring AC_USE_SYSTEM_EXTENSIONS.
16824 2009-01-25 Jim Meyering <meyering@redhat.com>
16826 c-strtod: avoid warnings
16827 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16828 "assignment discards qualifiers from pointer target type" warnings.
16830 2009-01-24 Bruno Haible <bruno@clisp.org>
16832 Add support for non-UTF-8 locales on MacOS X.
16833 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16834 canonical encodings. For Darwin 7 and newer, don't map traditional
16835 encodings to UTF-8.
16836 Reported by Vincent Lefevre <vincent@vinc17.org>
16837 at <http://savannah.gnu.org/bugs/?25235>.
16839 2009-01-24 Bruno Haible <bruno@clisp.org>
16841 * doc/gnulib.texi (Obsolete modules): New section.
16842 Reported by Mike Frysinger <vapier@gentoo.org>.
16844 2009-01-24 Bruno Haible <bruno@clisp.org>
16846 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16849 2009-01-24 Bruno Haible <bruno@clisp.org>
16851 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16852 Reported by Eric Blake.
16854 2009-01-24 Bruno Haible <bruno@clisp.org>
16856 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16857 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16858 Reported by Gary V. Vaughan <gary@gnu.org>.
16860 2009-01-24 Bruno Haible <bruno@clisp.org>
16862 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16864 2009-01-23 Bruno Haible <bruno@clisp.org>
16866 Make c-strtod, c-strtold usable in libraries.
16867 * lib/c-strtod.c: Include string.h instead of xalloc.h.
16868 (C_STRTOD): Call strdup instead of xstrdup.
16869 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16870 * modules/c-strtold (Depends-on): Likewise.
16871 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16872 * NEWS: Mention the change.
16873 Reported by Michael Gold <mgold@ncf.ca>.
16875 2009-01-23 Jim Meyering <meyering@redhat.com>
16877 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16878 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16879 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16881 2009-01-23 Simon Josefsson <simon@josefsson.org>
16883 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16885 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16886 * modules/version-etc (Description): Update.
16888 2009-01-22 Bruno Haible <bruno@clisp.org>
16890 Cache the C locale object.
16891 * lib/c-strtod.c (c_locale_cache): New variable.
16892 (c_locale): New function.
16893 (C_STRTOD): Use it, and don't call freelocale.
16894 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16895 Suggested by Paolo Bonzini.
16897 2009-01-21 Bruno Haible <bruno@clisp.org>
16899 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16900 conditions other than overflow.
16902 2009-01-21 Bruno Haible <bruno@clisp.org>
16904 * lib/c-strtod.c: Include errno.h.
16905 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16906 value from STRTOD_L and STRTOD.
16908 2009-01-21 Bruno Haible <bruno@clisp.org>
16909 and Jim Meyering <meyering@redhat.com>
16911 nanosleep: skip configure test (fail it) for apple universal builds
16912 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16913 universal builds, assume that nanosleep does not work.
16914 * modules/nanosleep (Depends-on): Add multiarch.
16916 mktime: skip configure test (fail it) for apple universal builds
16917 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16918 universal builds, assume that mktime does not work.
16919 * modules/mktime (Depends-on): Add multiarch.
16921 2009-01-21 Eric Blake <ebb9@byu.net>
16923 multiarch: avoid expand-before-require warning
16924 * modules/multiarch (configure.ac): Require, rather than expand,
16926 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16927 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16928 enforce that all clients require it. Partial reversion of
16931 error: avoid expand-before-require warning
16932 * modules/errno (configure.ac): Require, rather than expand,
16934 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16935 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16936 enforce that all clients require it.
16938 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16939 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16940 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16941 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16943 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
16946 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16948 regex: do not depend on obsolete modules.
16949 * modules/regex: Remove memcmp and memmove.
16951 2009-01-20 Bruno Haible <bruno@clisp.org>
16953 Make the 'link' module link on Windows NT 4.
16954 * lib/link.c (_WIN32_WINNT): Don't define.
16955 (CreateHardLinkFuncType): New type.
16956 (CreateHardLinkFunc, initialized): New variables.
16957 (initialize): New function.
16958 (link): Invoke CreateHardLink indirectly through the function pointer.
16960 2009-01-20 Bruno Haible <bruno@clisp.org>
16962 Fix compilation failure on mingw.
16963 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16965 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
16967 * doc/c-strtod.texi: Mention a couple of restrictions.
16969 2009-01-20 Jim Meyering <meyering@redhat.com>
16971 gettimeofday: move more declarations out of functions
16972 * lib/gettimeofday.c: Move extern declarations of tzset and
16973 gmtime out of containing functions. Prompted by Bruno Haible.
16975 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
16977 regex: do not depend on obsolete modules.
16978 * modules/regex: Remove memcmp and memmove.
16980 2009-01-19 Bruno Haible <bruno@clisp.org>
16982 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16983 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16984 gl_BIGENDIAN, not AC_C_BIGENDIAN.
16985 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16986 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16988 2009-01-19 Bruno Haible <bruno@clisp.org>
16990 * tests/test-link.c: Include <errno.h>.
16991 (main): Exit with code 77 when a hard link cannot be created due to
16993 * tests/test-link.sh: Skip test when a hard link cannot be created due
16994 to the file system.
16995 Suggested by Eric Blake.
16997 2009-01-19 Martin Lambers <marlam@marlam.de>
16999 * modules/link-tests: New file.
17000 * tests/test-link.sh: New file.
17001 * tests/test-link.c: New file.
17003 2009-01-19 Eric Blake <ebb9@byu.net>
17005 doc: mention another function added in cygwin 1.7.0
17006 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17007 Another new function in cygwin 1.7.
17009 2009-01-19 Bruno Haible <bruno@clisp.org>
17011 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17012 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17013 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17014 gl_BIGENDIAN, not AC_C_BIGENDIAN.
17015 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17016 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17017 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17018 * m4/md4.m4 (gl_MD4): Likewise.
17019 * m4/md5.m4 (gl_MD5): Likewise.
17020 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17021 * m4/sha1.m4 (gl_SHA1): Likewise.
17022 * m4/sha256.m4 (gl_SHA256): Likewise.
17023 * m4/sha512.m4 (gl_SHA512): Likewise.
17025 2009-01-19 Bruno Haible <bruno@clisp.org>
17027 * modules/uniname/uniname-tests (Depends-on): Add progname.
17028 * tests/uniname/test-uninames.c: Include progname.h.
17029 (main): Call set_program_name.
17031 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17032 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17033 (main): Call set_program_name.
17035 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17036 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17037 (main): Call set_program_name.
17039 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17040 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17041 (main): Call set_program_name.
17043 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17044 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17045 (main): Call set_program_name.
17047 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17048 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17049 (main): Call set_program_name.
17051 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17052 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17053 (main): Call set_program_name.
17055 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17056 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17057 (main): Call set_program_name.
17059 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17060 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17061 (main): Call set_program_name.
17063 2009-01-19 Eric Blake <ebb9@byu.net>
17065 test-unistd: test previous patch
17066 * tests/test-unistd.c: Test *_FILENO macros.
17068 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17069 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17070 Guarantee a definition.
17071 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17072 * modules/unistd-safer (Depends-on): Add dependency on unistd.
17073 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17074 * lib/dup-safer.c (STDERR_FILENO): Likewise.
17075 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17077 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17078 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17079 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17081 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17082 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17083 (STDERR_FILENO): Likewise.
17084 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17085 (STDERR_FILENO): Likewise.
17086 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17087 (STDERR_FILENO): Likewise.
17088 Reported by Elbert Pol.
17090 2009-01-19 Eric Blake <ebb9@byu.net>
17092 doc: mention more functions added in cygwin 1.7.0
17093 * doc/posix-functions/abort.texi (abort): Update wording related
17095 * doc/posix-functions/daylight.texi (daylight): Likewise.
17096 * doc/posix-functions/optarg.texi (optarg): Likewise.
17097 * doc/posix-functions/optarg.texi (opterr): Likewise.
17098 * doc/posix-functions/optarg.texi (optind): Likewise.
17099 * doc/posix-functions/optarg.texi (optopt): Likewise.
17100 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17101 worked in 1.5.x, and was withdrawn in 1.7.
17102 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17103 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17105 * doc/posix-functions/perror.texi (perror): Likewise.
17106 * doc/posix-functions/printf.texi (printf): Likewise.
17107 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17108 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17109 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17110 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17111 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17112 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17113 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17115 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17117 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17119 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17120 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17122 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17123 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17124 * doc/posix-functions/confstr.texi (confstr): Likewise.
17125 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17126 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17127 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17128 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17129 * doc/posix-functions/fputws.texi (fputws): Likewise.
17130 * doc/posix-functions/fwide.texi (fwide): Likewise.
17131 * doc/posix-functions/getwc.texi (getwc): Likewise.
17132 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17133 * doc/posix-functions/putwc.texi (putwc): Likewise.
17134 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17135 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17136 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17137 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17138 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17139 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17140 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17141 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17142 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17143 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17144 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17146 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
17148 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17149 * lib/ioctl.c: Include <sys/ioctl.h>.
17151 2009-01-19 Simon Josefsson <simon@josefsson.org>
17153 * modules/getdate-tests (Depends-on): Add progname.
17154 * tests/test-getdate.c: Use progname module, to avoid link errors
17155 on non-glibc systems.
17157 2009-01-18 Simon Josefsson <simon@josefsson.org>
17159 * modules/filenamecat-tests (Depends-on): Add progname.
17160 * modules/fstrcmp-tests (Depends-on): Likewise.
17162 * tests/test-filenamecat.c: Use progname module, to avoid link
17163 errors on non-glibc systems.
17164 * tests/test-fstrcmp.c: Likewise.
17166 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
17168 gettimeofday: avoid warning: nested extern declaration of 'localtime'
17169 * lib/gettimeofday.c: Move extern declaration out of function.
17171 2009-01-18 Bruno Haible <bruno@clisp.org>
17173 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17174 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17175 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17177 2009-01-18 Bruno Haible <bruno@clisp.org>
17179 * lib/strftime.c (MEMPCPY): Remove unused macro.
17180 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17182 2009-01-18 Martin Lambers <marlam@marlam.de>
17185 * lib/unistd.in.h (link): New declaration.
17186 * lib/link.c: New file.
17187 * m4/link.m4: New file.
17188 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17190 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17191 * modules/link: New file.
17192 * doc/posix-functions/link.texi: Mention the new module.
17194 2009-01-18 Bruno Haible <bruno@clisp.org>
17196 * tests/test-avltree_list.c (main): Call set_program_name.
17197 * tests/test-avltree_oset.c (main): Likewise.
17198 * tests/test-obstack-printf.c: Include progname.h.
17199 (main): Call set_program_name.
17200 * tests/test-quotearg.c: Include progname.h.
17201 (main): Call set_program_name.
17202 * tests/test-xmemdup0.c: Include progname.h.
17203 (main): Call set_program_name.
17205 2009-01-18 Bruno Haible <bruno@clisp.org>
17207 New module 'alphasort'.
17208 * lib/dirent.in.h (alphasort): New declaration.
17209 * lib/alphasort.c: New file, from glibc with modifications.
17210 * m4/alphasort.m4: New file.
17211 * modules/alphasort: New file.
17212 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17214 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17216 * doc/posix-functions/alphasort.texi: Mention the new module and the
17217 portability problems.
17219 2009-01-18 Bruno Haible <bruno@clisp.org>
17221 New module 'scandir'.
17222 * lib/dirent.in.h (scandir): New declaration.
17223 * lib/scandir.c: New file, from glibc with modifications.
17224 * m4/scandir.m4: New file.
17225 * modules/scandir: New file.
17226 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17228 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17230 * doc/posix-functions/scandir.texi: Mention the new module and the
17231 portability problems.
17233 2009-01-17 Bruno Haible <bruno@clisp.org>
17235 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17236 Update documentation.
17237 (func_remove_suffix): Escape all dots in the suffix. Update
17239 (func_filter_filelist): Update documentation.
17240 Reported by Ralf Wildenhues.
17242 2009-01-17 Bruno Haible <bruno@clisp.org>
17244 * modules/dprintf-posix-tests: New file.
17245 * tests/test-dprintf-posix.sh: New file.
17246 * tests/test-dprintf-posix.c: New file.
17248 New modules 'dprintf', 'dprintf-posix'.
17249 * lib/stdio.in.h (dprintf): New declaration.
17250 * lib/dprintf.c: New file.
17251 * m4/dprintf.m4: New file.
17252 * m4/dprintf-posix.m4: New file.
17253 * modules/dprintf: New file.
17254 * modules/dprintf-posix: New file.
17255 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17256 HAVE_DPRINTF, REPLACE_DPRINTF.
17257 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17258 HAVE_DPRINTF, REPLACE_DPRINTF.
17259 * doc/posix-functions/dprintf.texi: Mention the new modules.
17261 2009-01-17 Bruno Haible <bruno@clisp.org>
17263 * modules/vdprintf-posix-tests: New file.
17264 * tests/test-vdprintf-posix.sh: New file.
17265 * tests/test-vdprintf-posix.c: New file.
17267 New modules 'vdprintf', 'vdprintf-posix'.
17268 * lib/stdio.in.h (vdprintf): New declaration.
17269 * lib/vdprintf.c: New file.
17270 * m4/vdprintf.m4: New file.
17271 * m4/vdprintf-posix.m4: New file.
17272 * modules/vdprintf: New file.
17273 * modules/vdprintf-posix: New file.
17274 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17275 HAVE_VDPRINTF, REPLACE_VDPRINTF.
17276 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17277 HAVE_VDPRINTF, REPLACE_VDPRINTF.
17278 * doc/posix-functions/vdprintf.texi: Mention the new modules.
17280 2009-01-17 Bruno Haible <bruno@clisp.org>
17282 Fix replacement of fopen on mingw.
17283 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17286 2009-01-17 Bruno Haible <bruno@clisp.org>
17288 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17289 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17291 2009-01-17 Bruno Haible <bruno@clisp.org>
17293 Avoid test-fflush2.sh failure on mingw.
17294 * tests/test-fflush2.c: Include binary-io.h.
17295 (main): Put standard input into binary mode.
17296 * modules/fflush-tests (Depends-on): Add binary-io.
17298 2009-01-17 Bruno Haible <bruno@clisp.org>
17300 * lib/wchar.in.h: In another particular situation, include only the
17301 system's <wchar.h> file.
17302 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17303 Reported by Albert Chin-A-Young <china@thewrittenword.com>
17304 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17306 2009-01-17 Bruno Haible <bruno@clisp.org>
17308 Support for stripping executables in --enable-relocatable.
17309 * build-aux/install-reloc: Expect one more argument, or an environment
17310 variable RELOC_STRIP_PROG. If set, strip the destination program and
17312 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17314 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17315 to set RELOCATABLE_STRIP.
17316 * NEWS: Mention the new Makefile requirement.
17318 2009-01-17 Bruno Haible <bruno@clisp.org>
17320 * build-aux/install-reloc: Remove debugging information left over by
17321 C compiler on MacOS X.
17323 2009-01-17 Bruno Haible <bruno@clisp.org>
17325 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17326 * lib/progreloc.c (find_executable): Fix type of pointer passed to
17327 _NSGetExecutablePath.
17329 2009-01-16 Jim Meyering <meyering@redhat.com>
17331 strerror: avoid warnings about discarding "const"
17332 * lib/strerror.c (rpl_strerror): Instead of returning a const
17333 string from each and every "case", use a variable, and add a single
17334 cast after the switch.
17336 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
17338 * lib/arpa_inet.in.h: Add extern "C" block for C++.
17340 2009-01-16 Bruno Haible <bruno@clisp.org>
17342 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17343 array initializer syntax that also works in C++ mode.
17344 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17346 2009-01-16 Jim Meyering <meyering@redhat.com>
17348 poll: suppress a warning
17349 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17350 to ignore "...unsigned expression < 0 is always false" warnings.
17352 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
17354 poll: remove declarations of unused variables
17355 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17356 sockbuf and optlen.
17358 2009-01-15 Bruno Haible <bruno@clisp.org>
17360 Make fflush-after-ungetc POSIX compliant on BSD systems.
17361 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17362 (clear_ungetc_buffer): Implement also for other systems.
17363 (rpl_fflush): On glibc systems, invoke
17364 clear_ungetc_buffer_preserving_position. Otherwise, invoke
17365 clear_ungetc_buffer after fetching the stream's position, not before.
17367 2009-01-15 Bruno Haible <bruno@clisp.org>
17369 Make fflush-after-ungetc POSIX compliant on glibc systems.
17370 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17372 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17373 (rpl_fflush): On glibc systems, simply call the system's fflush
17374 function after clearing the ungetc buffer.
17375 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17376 Instead, lseek only to the end of file, then use the system's fseeko
17377 for the rest. On glibc systems, reset the EOF indicator bit.
17379 2009-01-15 Jim Meyering <meyering@redhat.com>
17381 openmp.m4: revert quote-adding change, for portability to older autoconf
17382 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17383 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17384 Simon Josefsson noticed the problem when using autoconf-2.61.
17386 2009-01-15 Bruno Haible <bruno@clisp.org>
17388 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17389 * tests/test-fflush2.c (ASSERT): Always fail.
17390 (main): Add two tests for fflush() after ungetc(), taking into account
17391 the Austin Group's clarification.
17392 Suggested by Eric Blake.
17394 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
17396 mktime.m4: remove K&R-style function prototypes
17397 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17398 for the Sun C++ compiler.
17400 2009-01-14 Bruno Haible <bruno@clisp.org>
17402 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17403 while including <wchar.h>.
17404 * lib/wchar.in.h: In two particular situations on HP-UX, include only
17405 the system's <wchar.h> file.
17406 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17408 2009-01-14 Bruno Haible <bruno@clisp.org>
17410 * m4/csharp.m4: Don't mention gettext on the serial number line.
17411 * m4/csharpexec.m4: Likewise.
17412 * m4/eaccess.m4: Likewise.
17413 * m4/javaexec.m4: Likewise.
17414 * m4/sig_atomic_t.m4: Likewise.
17415 * m4/tmpdir.m4: Likewise.
17416 * m4/intldir.m4: Bump gettext version.
17417 * m4/lib-ld.m4: Likewise.
17419 2009-01-14 Bruno Haible <bruno@clisp.org>
17421 * lib/progname.c (set_program_name): Add more comments.
17422 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17424 2009-01-14 Simon Josefsson <simon@josefsson.org>
17426 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17427 were sys/stat.h does not define it.
17429 2009-01-14 Jim Meyering <meyering@redhat.com>
17431 many *.m4 files: improve m4 quoting
17432 99% of this change was performed by running the following commands:
17433 git ls-files | grep '\.m4$' | xargs perl -pi \
17434 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17435 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17436 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17437 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17438 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17439 The remainder were to add Copyright dates, increment serial numbers,
17440 undo some changes in comments, exclude m4/intl.m4, and add quotes
17441 around the "1" in ",1" where the unusual spacing prohibited the
17442 above regexps from doing the job. For more details, see
17443 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17444 * m4/acl.m4: Modified.
17445 * m4/afs.m4: Likewise.
17446 * m4/alloca.m4: Likewise.
17447 * m4/argp.m4: Likewise.
17448 * m4/argz.m4: Likewise.
17449 * m4/atexit.m4: Likewise.
17450 * m4/bison-i18n.m4: Likewise.
17451 * m4/bison.m4: Likewise.
17452 * m4/byteswap.m4: Likewise.
17453 * m4/c-stack.m4: Likewise.
17454 * m4/c-strtod.m4: Likewise.
17455 * m4/calloc.m4: Likewise.
17456 * m4/canonicalize-lgpl.m4: Likewise.
17457 * m4/chown.m4: Likewise.
17458 * m4/clock_time.m4: Likewise.
17459 * m4/codeset.m4: Likewise.
17460 * m4/copy-file.m4: Likewise.
17461 * m4/csharp.m4: Likewise.
17462 * m4/csharpcomp.m4: Likewise.
17463 * m4/csharpexec.m4: Likewise.
17464 * m4/d-ino.m4: Likewise.
17465 * m4/d-type.m4: Likewise.
17466 * m4/dirfd.m4: Likewise.
17467 * m4/double-slash-root.m4: Likewise.
17468 * m4/eaccess.m4: Likewise.
17469 * m4/eealloc.m4: Likewise.
17470 * m4/environ.m4: Likewise.
17471 * m4/errno_h.m4: Likewise.
17472 * m4/euidaccess.m4: Likewise.
17473 * m4/execute.m4: Likewise.
17474 * m4/fatal-signal.m4: Likewise.
17475 * m4/fchdir.m4: Likewise.
17476 * m4/fcntl_h.m4: Likewise.
17477 * m4/fileblocks.m4: Likewise.
17478 * m4/filenamecat.m4: Likewise.
17479 * m4/findprog.m4: Likewise.
17480 * m4/flexmember.m4: Likewise.
17481 * m4/fnmatch.m4: Likewise.
17482 * m4/fopen.m4: Likewise.
17483 * m4/fpending.m4: Likewise.
17484 * m4/fprintf-posix.m4: Likewise.
17485 * m4/free.m4: Likewise.
17486 * m4/frexp.m4: Likewise.
17487 * m4/frexpl.m4: Likewise.
17488 * m4/fsusage.m4: Likewise.
17489 * m4/ftruncate.m4: Likewise.
17490 * m4/gc-camellia.m4: Likewise.
17491 * m4/gc-random.m4: Likewise.
17492 * m4/gc.m4: Likewise.
17493 * m4/getaddrinfo.m4: Likewise.
17494 * m4/getcwd-abort-bug.m4: Likewise.
17495 * m4/getcwd-path-max.m4: Likewise.
17496 * m4/getdate.m4: Likewise.
17497 * m4/getdomainname.m4: Likewise.
17498 * m4/getgroups.m4: Likewise.
17499 * m4/gethostname.m4: Likewise.
17500 * m4/gethrxtime.m4: Likewise.
17501 * m4/getline.m4: Likewise.
17502 * m4/getloadavg.m4: Likewise.
17503 * m4/getndelim2.m4: Likewise.
17504 * m4/getpass.m4: Likewise.
17505 * m4/gettext.m4: Likewise.
17506 * m4/gettime.m4: Likewise.
17507 * m4/gettimeofday.m4: Likewise.
17508 * m4/gnulib-common.m4: Likewise.
17509 * m4/group-member.m4: Likewise.
17510 * m4/host-os.m4: Likewise.
17511 * m4/iconv.m4: Likewise.
17512 * m4/iconv_open.m4: Likewise.
17513 * m4/inet_ntop.m4: Likewise.
17514 * m4/inet_pton.m4: Likewise.
17515 * m4/inline.m4: Likewise.
17516 * m4/intldir.m4: Likewise.
17517 * m4/intlmacosx.m4: Likewise.
17518 * m4/intmax.m4: Likewise.
17519 * m4/intmax_t.m4: Likewise.
17520 * m4/inttypes.m4: Likewise.
17521 * m4/inttypes_h.m4: Likewise.
17522 * m4/inttypes-pri.m4: Likewise.
17523 * m4/isapipe.m4: Likewise.
17524 * m4/isnand.m4: Likewise.
17525 * m4/isnanf.m4: Likewise.
17526 * m4/isnanl.m4: Likewise.
17527 * m4/javacomp.m4: Likewise.
17528 * m4/javaexec.m4: Likewise.
17529 * m4/jm-winsz1.m4: Likewise.
17530 * m4/jm-winsz2.m4: Likewise.
17531 * m4/lchown.m4: Likewise.
17532 * m4/lcmessage.m4: Likewise.
17533 * m4/ldexpl.m4: Likewise.
17534 * m4/lib-ld.m4: Likewise.
17535 * m4/lib-link.m4: Likewise.
17536 * m4/libsigsegv.m4: Likewise.
17537 * m4/link-follow.m4: Likewise.
17538 * m4/localcharset.m4: Likewise.
17539 * m4/locale-fr.m4: Likewise.
17540 * m4/locale-ja.m4: Likewise.
17541 * m4/locale-tr.m4: Likewise.
17542 * m4/locale-zh.m4: Likewise.
17543 * m4/lock.m4: Likewise.
17544 * m4/longlong.m4: Likewise.
17545 * m4/ls-mntd-fs.m4: Likewise.
17546 * m4/lstat.m4: Likewise.
17547 * m4/malloc.m4: Likewise.
17548 * m4/mathl.m4: Likewise.
17549 * m4/mbrtowc.m4: Likewise.
17550 * m4/mbstate_t.m4: Likewise.
17551 * m4/mbswidth.m4: Likewise.
17552 * m4/memchr.m4: Likewise.
17553 * m4/memcmp.m4: Likewise.
17554 * m4/memcpy.m4: Likewise.
17555 * m4/memmem.m4: Likewise.
17556 * m4/memmove.m4: Likewise.
17557 * m4/mempcpy.m4: Likewise.
17558 * m4/memrchr.m4: Likewise.
17559 * m4/memset.m4: Likewise.
17560 * m4/minmax.m4: Likewise.
17561 * m4/mkdir-slash.m4: Likewise.
17562 * m4/mkdtemp.m4: Likewise.
17563 * m4/mktime.m4: Likewise.
17564 * m4/mmap-anon.m4: Likewise.
17565 * m4/mountlist.m4: Likewise.
17566 * m4/nanosleep.m4: Likewise.
17567 * m4/nls.m4: Likewise.
17568 * m4/nocrash.m4: Likewise.
17569 * m4/open.m4: Likewise.
17570 * m4/openat.m4: Likewise.
17571 * m4/openmp.m4: Likewise.
17572 * m4/pathmax.m4: Likewise.
17573 * m4/perl.m4: Likewise.
17574 * m4/physmem.m4: Likewise.
17575 * m4/pipe.m4: Likewise.
17576 * m4/po.m4: Likewise.
17577 * m4/poll.m4: Likewise.
17578 * m4/posixtm.m4: Likewise.
17579 * m4/posixver.m4: Likewise.
17580 * m4/printf-frexp.m4: Likewise.
17581 * m4/printf-frexpl.m4: Likewise.
17582 * m4/printf-posix.m4: Likewise.
17583 * m4/printf-posix-rpl.m4: Likewise.
17584 * m4/printf.m4: Likewise.
17585 * m4/progtest.m4: Likewise.
17586 * m4/putenv.m4: Likewise.
17587 * m4/readline.m4: Likewise.
17588 * m4/readlink.m4: Likewise.
17589 * m4/readutmp.m4: Likewise.
17590 * m4/realloc.m4: Likewise.
17591 * m4/regex.m4: Likewise.
17592 * m4/relocatable.m4: Likewise.
17593 * m4/relocatable-lib.m4: Likewise.
17594 * m4/rename-dest-slash.m4: Likewise.
17595 * m4/rename.m4: Likewise.
17596 * m4/rmdir-errno.m4: Likewise.
17597 * m4/rmdir.m4: Likewise.
17598 * m4/roundf.m4: Likewise.
17599 * m4/roundl.m4: Likewise.
17600 * m4/rpmatch.m4: Likewise.
17601 * m4/save-cwd.m4: Likewise.
17602 * m4/selinux-selinux-h.m4: Likewise.
17603 * m4/setenv.m4: Likewise.
17604 * m4/settime.m4: Likewise.
17605 * m4/sig2str.m4: Likewise.
17606 * m4/sig_atomic_t.m4: Likewise.
17607 * m4/signalblocking.m4: Likewise.
17608 * m4/signbit.m4: Likewise.
17609 * m4/sigpipe.m4: Likewise.
17610 * m4/sockets.m4: Likewise.
17611 * m4/sockpfaf.m4: Likewise.
17612 * m4/st_dm_mode.m4: Likewise.
17613 * m4/stat-time.m4: Likewise.
17614 * m4/stdbool.m4: Likewise.
17615 * m4/stdint.m4: Likewise.
17616 * m4/stdint_h.m4: Likewise.
17617 * m4/stpcpy.m4: Likewise.
17618 * m4/stpncpy.m4: Likewise.
17619 * m4/strcase.m4: Likewise.
17620 * m4/strchrnul.m4: Likewise.
17621 * m4/strcspn.m4: Likewise.
17622 * m4/strdup.m4: Likewise.
17623 * m4/strftime.m4: Likewise.
17624 * m4/strndup.m4: Likewise.
17625 * m4/strnlen.m4: Likewise.
17626 * m4/strpbrk.m4: Likewise.
17627 * m4/strptime.m4: Likewise.
17628 * m4/strsep.m4: Likewise.
17629 * m4/strtod.m4: Likewise.
17630 * m4/strtoimax.m4: Likewise.
17631 * m4/strtok_r.m4: Likewise.
17632 * m4/strtol.m4: Likewise.
17633 * m4/strtoll.m4: Likewise.
17634 * m4/strtoul.m4: Likewise.
17635 * m4/strtoull.m4: Likewise.
17636 * m4/strtoumax.m4: Likewise.
17637 * m4/strverscmp.m4: Likewise.
17638 * m4/threadlib.m4: Likewise.
17639 * m4/timegm.m4: Likewise.
17640 * m4/tm_gmtoff.m4: Likewise.
17641 * m4/tmpdir.m4: Likewise.
17642 * m4/tmpfile.m4: Likewise.
17643 * m4/tzset.m4: Likewise.
17644 * m4/uintmax_t.m4: Likewise.
17645 * m4/unlinkdir.m4: Likewise.
17646 * m4/unlocked-io.m4: Likewise.
17647 * m4/uptime.m4: Likewise.
17648 * m4/userspec.m4: Likewise.
17649 * m4/utimbuf.m4: Likewise.
17650 * m4/utime.m4: Likewise.
17651 * m4/utimes-null.m4: Likewise.
17652 * m4/utimes.m4: Likewise.
17653 * m4/vararrays.m4: Likewise.
17654 * m4/vasnprintf.m4: Likewise.
17655 * m4/vfprintf-posix.m4: Likewise.
17656 * m4/vprintf-posix.m4: Likewise.
17657 * m4/wait-process.m4: Likewise.
17658 * m4/wchar_t.m4: Likewise.
17659 * m4/wint_t.m4: Likewise.
17660 * m4/write-any-file.m4: Likewise.
17661 * m4/yield.m4: Likewise.
17663 2009-01-13 Bruno Haible <bruno@clisp.org>
17665 Avoid test-copy-file.sh failures when ACL support insufficient.
17666 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17668 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17669 Reported by Jim Meyering.
17671 2009-01-13 Bruno Haible <bruno@clisp.org>
17673 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17674 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17675 * modules/unistdio/u8-printf-parse (Files): Likewise.
17676 * modules/unistdio/u32-printf-parse (Files): Likewise.
17677 * modules/unistdio/ulc-printf-parse (Files): Likewise.
17679 2009-01-13 Simon Josefsson <simon@josefsson.org>
17681 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17682 and m4/inttypes_h.m4 too.
17684 2009-01-12 Eric Blake <ebb9@byu.net>
17686 tests: IRIX 6.2 cc can't compile -0.0 into .data
17687 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17688 rather than at compile-time.
17689 * tests/test-floorl.c (minus_zero): Likewise.
17690 * tests/test-frexpl.c (minus_zero): Likewise.
17691 * tests/test-isnan.c (minus_zerol): Likewise.
17692 * tests/test-isnanl.h (minus_zero): Likewise.
17693 * tests/test-ldexpl.c (minus_zero): Likewise.
17694 * tests/test-roundl.c (minus_zero): Likewise.
17695 * tests/test-signbit.c (minus_zerol): Likewise.
17696 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17697 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17698 * tests/test-truncl.c (minus_zero): Likewise.
17699 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17700 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17701 Reported by Tom G. Christensen and Nelson H. F. Beebe.
17703 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
17705 regex: fix glibc bug 9697
17706 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17709 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
17711 regex: fix glibc bug 697
17712 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17713 being NULL also if there are no backreferences.
17715 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
17717 regex: merge glibc changes
17718 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17719 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17720 re_string_skip_chars, re_string_reconstruct): Likewise.
17721 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17723 2009-01-07 Jim Meyering <meyering@redhat.com>
17725 poll: filter through cppi
17726 * lib/poll.c: Indent cpp directives to reflect nesting.
17728 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
17730 poll: don't return uninitialized
17731 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17733 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
17735 avoid compile failure on AIX 6.1
17736 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17737 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17739 2009-01-04 Jim Meyering <meyering@redhat.com>
17741 remove duplicate inclusion of <stdio.h>
17742 * tests/test-fprintf-posix.c: Likewise.
17743 * tests/test-printf-posix.c: Likewise.
17744 * tests/test-snprintf-posix.c: Likewise.
17745 * tests/test-sprintf-posix.c: Likewise.
17746 * tests/test-vasprintf-posix.c: Likewise.
17747 * tests/test-vfprintf-posix.c: Likewise.
17748 * tests/test-vprintf-posix.c: Likewise.
17749 * tests/test-vsnprintf-posix.c: Likewise.
17750 * tests/test-vsprintf-posix.c: Likewise.
17752 2009-01-03 Jim Meyering <meyering@redhat.com>
17754 gnulib-tool: fix sed-based filtering
17755 * gnulib-tool (func_filter_filelist): Remove extra backslash
17756 in sed_fff_filter definition.
17758 2009-01-02 Jim Meyering <meyering@redhat.com>
17760 strftime: avoid compilation failure on Solaris 2.6
17761 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17762 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17763 Don't #define mbrlen or mbsinit, since now they're guaranteed to
17764 be available. Reported by Tom G. Christensen. Details in
17765 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17767 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17768 Bruno Haible <bruno@clisp.org>
17770 Speed up gnulib-tool by doing more string processing through shell
17772 * gnulib-tool (fast_func_append): New variable.
17773 (func_remove_prefix, func_remove_suffix): New functions.
17774 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17775 (func_filter_filelist): New function.
17776 (func_get_dependencies): Use func_remove_suffix instead of sed.
17777 (func_get_automake_snippet): Use func_filter_filelist instead of a
17778 subshell and sed invocation.
17780 2009-01-01 Bruno Haible <bruno@clisp.org>
17782 Fix a security bug.
17783 * gnulib-tool (func_import, import, update): Don't allow the characters
17784 '"', '$', '`', '\' in macro arguments that become part of commands that
17787 2009-01-01 Bruno Haible <bruno@clisp.org>
17789 * gnulib-tool (func_reset_sigpipe): Add more comments.
17791 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17793 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17794 func_emit_tests_Makefile_am, func_import): Abort loops early if we
17795 already know the answer.
17797 2009-01-01 Jim Meyering <meyering@redhat.com>
17799 * lib/version-etc.c (version_etc_va): Update copyright year.
17801 2008-12-30 Bruno Haible <bruno@clisp.org>
17803 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17804 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17805 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17807 2008-12-29 Eric Blake <ebb9@byu.net>
17809 multiarch: avoid autoconf AC_REQUIRE bug
17810 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17811 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17813 Reported by Bruno Haible, and analyzed in
17814 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17816 2008-12-29 Bruno Haible <bruno@clisp.org>
17818 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17819 files in subdirectories correctly.
17820 Reported by Ralf Wildenhues.
17822 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17824 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17825 rather than 'join FILE -', for Solaris join.
17827 2008-12-29 Bruno Haible <bruno@clisp.org>
17829 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17831 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17832 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17833 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17834 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17835 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17836 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17837 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17838 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17839 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17840 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17841 * m4/nls.m4 (AM_NLS): Likewise.
17842 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17843 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17844 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17845 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17846 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17847 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17848 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17849 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17850 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17851 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17852 * m4/xsize.m4 (gl_XSIZE): Likewise.
17853 Suggested by Jim Meyering.
17855 2008-11-17 Bruce Korb <bkorb@gnu.org>
17857 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17858 * lib/parse-duration.c: use a switch instead of cascading if's.
17860 2008-12-29 Eric Blake <ebb9@byu.net>
17862 wchar.h: supply WEOF on Irix 5.3
17863 * lib/wchar.in.h (wint_t): Also supply WEOF.
17864 * lib/wctype.in.h (wint_t): Likewise.
17865 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17866 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17867 Reported by Tom G. Christensen.
17869 2008-12-26 Bruno Haible <bruno@clisp.org>
17871 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17874 2008-12-26 Bruno Haible <bruno@clisp.org>
17876 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17878 2008-12-26 Bruno Haible <bruno@clisp.org>
17880 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17881 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17882 not __STDC_CONSTANT_MACROS.
17883 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17885 2008-12-25 Bruno Haible <bruno@clisp.org>
17887 Add support for universal builds to vasnprintf.
17888 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17889 universal builds, guess no.
17890 * modules/vasnprintf-posix (Depends-on): Add multiarch.
17891 * modules/vasprintf-posix (Depends-on): Likewise.
17892 * modules/fprintf-posix (Depends-on): Likewise.
17893 * modules/vfprintf-posix (Depends-on): Likewise.
17894 * modules/snprintf-posix (Depends-on): Likewise.
17895 * modules/vsnprintf-posix (Depends-on): Likewise.
17896 * modules/sprintf-posix (Depends-on): Likewise.
17897 * modules/vsprintf-posix (Depends-on): Likewise.
17898 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17899 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17900 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17901 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17902 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17903 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17904 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17906 Add support for universal builds to <inttypes.h>.
17907 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17908 _SCNu64_PREFIX): In Apple
17909 universal builds, define directly, using _LP64.
17910 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17911 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17912 * modules/inttypes (Depends-on): Add multiarch.
17913 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17915 Add support for universal builds to <stdint.h>.
17916 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17917 universal builds, define directly, using _LP64.
17918 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17919 Apple universal builds, don't test for the size and suffix of ptrdiff_t
17921 * modules/stdint (Depends-on): Add multiarch.
17922 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17924 New module 'multiarch'.
17925 * modules/multiarch: New file.
17926 * m4/multiarch.m4: New file.
17928 2008-12-25 Bruno Haible <bruno@clisp.org>
17930 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17932 2008-12-25 Bruno Haible <bruno@clisp.org>
17934 * modules/btowc (License): Relicense under LGPLv2+.
17935 * modules/mbsinit (License): Likewise.
17936 * modules/mbrtowc (License): Likewise.
17937 * modules/wcrtomb (License): Likewise.
17938 * modules/streq (License): Likewise.
17939 Reported by David Lutterkort <lutter@redhat.com>.
17941 2008-12-23 Bruno Haible <bruno@clisp.org>
17943 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17945 2008-12-23 Bruno Haible <bruno@clisp.org>
17947 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17948 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17949 GETADDRINFO_LIB, not in LIBS.
17950 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17951 * modules/canon-host (Link): Likewise.
17952 * NEWS: Mention the change.
17953 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17956 2008-12-22 Bruno Haible <bruno@clisp.org>
17958 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17959 * doc/posix-functions/iswalpha_l.texi: Likewise.
17960 * doc/posix-functions/iswblank_l.texi: Likewise.
17961 * doc/posix-functions/iswcntrl_l.texi: Likewise.
17962 * doc/posix-functions/iswctype_l.texi: Likewise.
17963 * doc/posix-functions/iswdigit_l.texi: Likewise.
17964 * doc/posix-functions/iswgraph_l.texi: Likewise.
17965 * doc/posix-functions/iswlower_l.texi: Likewise.
17966 * doc/posix-functions/iswprint_l.texi: Likewise.
17967 * doc/posix-functions/iswpunct_l.texi: Likewise.
17968 * doc/posix-functions/iswspace_l.texi: Likewise.
17969 * doc/posix-functions/iswupper_l.texi: Likewise.
17970 * doc/posix-functions/iswxdigit_l.texi: Likewise.
17971 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17972 * doc/posix-functions/open_wmemstream.texi: Likewise.
17973 * doc/posix-functions/swscanf.texi: Likewise.
17974 * doc/posix-functions/towctrans_l.texi: Likewise.
17975 * doc/posix-functions/towlower.texi: Likewise.
17976 * doc/posix-functions/towlower_l.texi: Likewise.
17977 * doc/posix-functions/towupper.texi: Likewise.
17978 * doc/posix-functions/towupper_l.texi: Likewise.
17979 * doc/posix-functions/vfwprintf.texi: Likewise.
17980 * doc/posix-functions/vfwscanf.texi: Likewise.
17981 * doc/posix-functions/vswscanf.texi: Likewise.
17982 * doc/posix-functions/vwprintf.texi: Likewise.
17983 * doc/posix-functions/vwscanf.texi: Likewise.
17984 * doc/posix-functions/wcpcpy.texi: Likewise.
17985 * doc/posix-functions/wcpncpy.texi: Likewise.
17986 * doc/posix-functions/wcscasecmp.texi: Likewise.
17987 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17988 * doc/posix-functions/wcscoll_l.texi: Likewise.
17989 * doc/posix-functions/wcsdup.texi: Likewise.
17990 * doc/posix-functions/wcsncasecmp.texi: Likewise.
17991 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17992 * doc/posix-functions/wcsnlen.texi: Likewise.
17993 * doc/posix-functions/wcsnrtombs.texi: Likewise.
17994 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17995 * doc/posix-functions/wctrans_l.texi: Likewise.
17996 * doc/posix-functions/wctype_l.texi: Likewise.
17997 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17998 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17999 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18000 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18001 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18002 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18003 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18004 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18005 * doc/glibc-functions/wcschrnul.texi: Likewise.
18006 * doc/glibc-functions/wcsftime_l.texi: Likewise.
18007 * doc/glibc-functions/wcstod_l.texi: Likewise.
18008 * doc/glibc-functions/wcstof_l.texi: Likewise.
18009 * doc/glibc-functions/wcstol_l.texi: Likewise.
18010 * doc/glibc-functions/wcstold_l.texi: Likewise.
18011 * doc/glibc-functions/wcstoll_l.texi: Likewise.
18012 * doc/glibc-functions/wcstoq.texi: Likewise.
18013 * doc/glibc-functions/wcstoul_l.texi: Likewise.
18014 * doc/glibc-functions/wcstoull_l.texi: Likewise.
18015 * doc/glibc-functions/wcstouq.texi: Likewise.
18016 * doc/glibc-functions/wmempcpy.texi: Likewise.
18018 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
18019 Eric Blake <ebb9@byu.net>
18020 Paolo Bonzini <bonzini@gnu.org>
18021 Bruno Haible <bruno@clisp.org>
18023 Make c-stack work on Haiku.
18024 * lib/c-stack.c (SA_ONSTACK): Define fallback.
18025 (c_stack_action): Use SA_ONSTACK flag.
18027 2008-12-22 Bruno Haible <bruno@clisp.org>
18029 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18031 2008-12-22 Bruno Haible <bruno@clisp.org>
18033 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18034 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18036 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18038 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18039 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18040 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18041 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18043 2008-12-22 Bruno Haible <bruno@clisp.org>
18045 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18048 2008-12-22 Eric Blake <ebb9@byu.net>
18050 Avoid gcc warnings on cygwin.
18051 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18052 Avoid unused variable.
18053 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18056 2008-12-22 Bruno Haible <bruno@clisp.org>
18058 Remove HAVE_MBRTOWC conditionals.
18059 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18060 (mbscasecmp): Assume mbrtowc function.
18061 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18062 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18063 * lib/mbschr.c: Include mbuiter.h unconditionally.
18064 (mbschr): Assume mbrtowc function.
18065 * lib/mbscspn.c: Include mbuiter.h unconditionally.
18066 (mbscspn): Assume mbrtowc function.
18067 * lib/mbslen.c: Include mbuiter.h unconditionally.
18068 (mbslen): Assume mbrtowc function.
18069 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18070 (mbsncasecmp): Assume mbrtowc function.
18071 * lib/mbsnlen.c: Include mbiter.h unconditionally.
18072 (mbsnlen): Assume mbrtowc function.
18073 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18074 (mbspbrk): Assume mbrtowc function.
18075 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18076 (mbspcasecmp): Assume mbrtowc function.
18077 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18078 (mbsrchr): Assume mbrtowc function.
18079 * lib/mbssep.c: Include mbuiter.h unconditionally.
18080 (mbssep): Assume mbrtowc function.
18081 * lib/mbsspn.c: Include mbuiter.h unconditionally.
18082 (mbsspn): Assume mbrtowc function.
18083 * lib/mbsstr.c: Include mbuiter.h unconditionally.
18084 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18085 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18086 (mbstok_r): Assume mbrtowc function.
18087 * lib/propername.c: Include mbuiter.h unconditionally.
18088 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18089 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18090 (trim2): Assume mbrtowc function.
18091 * lib/mbswidth.c (mbsinit): Remove fallback definition.
18092 (mbsnwidth): Assume mbrtowc function.
18093 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18094 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18095 fallback definitions.
18096 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18098 2008-12-22 Bruno Haible <bruno@clisp.org>
18100 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18102 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
18104 * modules/regex: Request emulations for the mb*/wc* functions we need.
18105 * m4/regex.m4: Don't look for those functions here.
18106 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18108 2008-12-22 Bruno Haible <bruno@clisp.org>
18110 * modules/fnmatch (Depends-on): Remove duplicated dependency.
18112 2008-12-21 Bruno Haible <bruno@clisp.org>
18114 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18115 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18116 (Include): Remove conditionalization.
18117 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18118 (Include): Remove conditionalization.
18119 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18120 (Include): Remove conditionalization.
18121 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18122 * m4/mbfile.m4 (gl_MBFILE): Likewise.
18123 * NEWS: Mention the change.
18124 Reported by Alan Hourihane <alanh@fairlite.co.uk>
18125 via Sergey Poznyakoff <gray@gnu.org.ua>.
18127 2008-12-21 Bruno Haible <bruno@clisp.org>
18129 * MODULES.html.sh (Extended multibyte and wide character utilities
18130 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18131 wcrtomb, wcsrtombs.
18132 (Support for systems lacking POSIX:2008): Add accept, bind, close,
18133 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18134 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18135 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18137 2008-12-21 Bruno Haible <bruno@clisp.org>
18139 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18141 2008-12-21 Bruno Haible <bruno@clisp.org>
18143 * modules/wcsnrtombs-tests: New file.
18144 * tests/test-wcsnrtombs1.sh: New file.
18145 * tests/test-wcsnrtombs2.sh: New file.
18146 * tests/test-wcsnrtombs3.sh: New file.
18147 * tests/test-wcsnrtombs4.sh: New file.
18148 * tests/test-wcsnrtombs.c: New file.
18150 New module 'wcsnrtombs'.
18151 * lib/wchar.in.h (wcsnrtombs): New declaration.
18152 * lib/wcsnrtombs.c: New file.
18153 * lib/wcsrtombs-state.c: New file.
18154 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18155 (internal_state): Remove variable.
18156 * m4/wcsnrtombs.m4: New file.
18157 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18159 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18161 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18163 * modules/wcsnrtombs: New file.
18164 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18165 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18167 2008-12-21 Bruno Haible <bruno@clisp.org>
18169 * modules/wcsrtombs-tests: New file.
18170 * tests/test-wcsrtombs1.sh: New file.
18171 * tests/test-wcsrtombs2.sh: New file.
18172 * tests/test-wcsrtombs3.sh: New file.
18173 * tests/test-wcsrtombs4.sh: New file.
18174 * tests/test-wcsrtombs.c: New file.
18176 New module 'wcsrtombs'.
18177 * lib/wchar.in.h (wcsrtombs): New declaration.
18178 * lib/wcsrtombs.c: New file.
18179 * m4/wcsrtombs.m4: New file.
18180 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18181 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18182 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18183 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18184 * modules/wcsrtombs: New file.
18185 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18188 2008-12-21 Bruno Haible <bruno@clisp.org>
18190 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18191 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18192 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18193 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18195 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18196 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18197 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18198 m4/locale-zh.m4, m4/codeset.m4.
18199 * doc/posix-functions/wcrtomb.texi: Document the bug.
18201 2008-12-21 Bruno Haible <bruno@clisp.org>
18203 Work around a btowc() bug on IRIX 6.5.
18204 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18205 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18206 REPLACE_WTOBC if not.
18207 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18208 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18209 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18211 2008-12-21 Bruno Haible <bruno@clisp.org>
18213 * modules/wcrtomb-tests: New file.
18214 * tests/test-wcrtomb.sh: New file.
18215 * tests/test-wcrtomb.c: New file.
18217 New module 'wcrtomb'.
18218 * lib/wchar.in.h (wcrtomb): New declaration.
18219 * lib/wcrtomb.c: New file.
18220 * m4/wcrtomb.m4: New file.
18221 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18223 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18225 * modules/wcrtomb: New file.
18226 * doc/posix-functions/wcrtomb.texi: Mention the new module.
18228 2008-12-21 Bruno Haible <bruno@clisp.org>
18230 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18231 * modules/mbsrtowcs (Files): Likewise.
18232 * modules/wctob (Files): Likewise.
18233 * modules/c-strcase-tests (Files): Likewise.
18234 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18235 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18236 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18237 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18238 * modules/vasnprintf-posix-tests (Files): Likewise.
18240 2008-12-21 William Pursell <bill.pursell@gmail.com>
18242 gitlog-to-changelog: pass all command-line arguments to git-log
18243 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18244 it is sometimes convenient to filter the commits in various ways.
18245 gitlog-to-changelog only allows --since to specify a start date,
18246 but git-log itself supports many other filtering mechanisms.
18247 At the moment, I want to filter by branch name. Rather than
18248 adding a --branch option to gitlog-to-changelog, it seems more
18249 flexible to simply pass all options directly to git-log and let
18250 git do the work. Notice that this effectively makes --since a
18251 redundant option for gitlog-to-changelog, but removing it would
18252 require current usage to change since calls would then require
18253 an additional '--'.
18255 2008-12-21 Bruno Haible <bruno@clisp.org>
18257 * modules/mbsnrtowcs-tests: New file.
18258 * tests/test-mbsnrtowcs1.sh: New file.
18259 * tests/test-mbsnrtowcs2.sh: New file.
18260 * tests/test-mbsnrtowcs3.sh: New file.
18261 * tests/test-mbsnrtowcs4.sh: New file.
18262 * tests/test-mbsnrtowcs.c: New file.
18264 New module 'mbsnrtowcs'.
18265 * lib/wchar.in.h (mbsnrtowcs): New declaration.
18266 * lib/mbsnrtowcs.c: New file.
18267 * lib/mbsrtowcs-state.c: New file.
18268 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18269 (internal_state): Remove variable.
18270 * m4/mbsnrtowcs.m4: New file.
18271 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18273 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18274 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18275 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18276 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18277 * modules/mbsnrtowcs: New file.
18278 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18279 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18280 portability problem.
18282 2008-12-21 Bruno Haible <bruno@clisp.org>
18284 Work around mbsrtowcs bug.
18285 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18286 (gl_FUNC_MBSRTOWCS): Invoke it.
18287 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18289 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18291 2008-12-21 Bruno Haible <bruno@clisp.org>
18293 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18295 2008-12-21 Bruno Haible <bruno@clisp.org>
18297 Update doc for AIX.
18298 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18299 16-bit wchar_t type.
18300 * doc/posix-functions/btowc.texi: Likewise.
18301 * doc/posix-functions/fgetwc.texi: Likewise.
18302 * doc/posix-functions/fgetws.texi: Likewise.
18303 * doc/posix-functions/fputwc.texi: Likewise.
18304 * doc/posix-functions/fputws.texi: Likewise.
18305 * doc/posix-functions/fwide.texi: Likewise.
18306 * doc/posix-functions/fwprintf.texi: Likewise.
18307 * doc/posix-functions/fwscanf.texi: Likewise.
18308 * doc/posix-functions/getwchar.texi: Likewise.
18309 * doc/posix-functions/getwc.texi: Likewise.
18310 * doc/posix-functions/iswalnum.texi: Likewise.
18311 * doc/posix-functions/iswalpha.texi: Likewise.
18312 * doc/posix-functions/iswblank.texi: Likewise.
18313 * doc/posix-functions/iswcntrl.texi: Likewise.
18314 * doc/posix-functions/iswctype.texi: Likewise.
18315 * doc/posix-functions/iswdigit.texi: Likewise.
18316 * doc/posix-functions/iswgraph.texi: Likewise.
18317 * doc/posix-functions/iswlower.texi: Likewise.
18318 * doc/posix-functions/iswprint.texi: Likewise.
18319 * doc/posix-functions/iswpunct.texi: Likewise.
18320 * doc/posix-functions/iswspace.texi: Likewise.
18321 * doc/posix-functions/iswupper.texi: Likewise.
18322 * doc/posix-functions/iswxdigit.texi: Likewise.
18323 * doc/posix-functions/mbrtowc.texi: Likewise.
18324 * doc/posix-functions/mbsrtowcs.texi: Likewise.
18325 * doc/posix-functions/mbstowcs.texi: Likewise.
18326 * doc/posix-functions/mbtowc.texi: Likewise.
18327 * doc/posix-functions/putwchar.texi: Likewise.
18328 * doc/posix-functions/putwc.texi: Likewise.
18329 * doc/posix-functions/swprintf.texi: Likewise.
18330 * doc/posix-functions/tolower.texi: Likewise.
18331 * doc/posix-functions/toupper.texi: Likewise.
18332 * doc/posix-functions/towctrans.texi: Likewise.
18333 * doc/posix-functions/ungetwc.texi: Likewise.
18334 * doc/posix-functions/vswprintf.texi: Likewise.
18335 * doc/posix-functions/wcrtomb.texi: Likewise.
18336 * doc/posix-functions/wcscat.texi: Likewise.
18337 * doc/posix-functions/wcschr.texi: Likewise.
18338 * doc/posix-functions/wcscmp.texi: Likewise.
18339 * doc/posix-functions/wcscoll.texi: Likewise.
18340 * doc/posix-functions/wcscpy.texi: Likewise.
18341 * doc/posix-functions/wcscspn.texi: Likewise.
18342 * doc/posix-functions/wcsftime.texi: Likewise.
18343 * doc/posix-functions/wcslen.texi: Likewise.
18344 * doc/posix-functions/wcsncat.texi: Likewise.
18345 * doc/posix-functions/wcsncmp.texi: Likewise.
18346 * doc/posix-functions/wcsncpy.texi: Likewise.
18347 * doc/posix-functions/wcspbrk.texi: Likewise.
18348 * doc/posix-functions/wcsrchr.texi: Likewise.
18349 * doc/posix-functions/wcsrtombs.texi: Likewise.
18350 * doc/posix-functions/wcsspn.texi: Likewise.
18351 * doc/posix-functions/wcsstr.texi: Likewise.
18352 * doc/posix-functions/wcstod.texi: Likewise.
18353 * doc/posix-functions/wcstof.texi: Likewise.
18354 * doc/posix-functions/wcstoimax.texi: Likewise.
18355 * doc/posix-functions/wcstok.texi: Likewise.
18356 * doc/posix-functions/wcstold.texi: Likewise.
18357 * doc/posix-functions/wcstoll.texi: Likewise.
18358 * doc/posix-functions/wcstol.texi: Likewise.
18359 * doc/posix-functions/wcstombs.texi: Likewise.
18360 * doc/posix-functions/wcstoull.texi: Likewise.
18361 * doc/posix-functions/wcstoul.texi: Likewise.
18362 * doc/posix-functions/wcstoumax.texi: Likewise.
18363 * doc/posix-functions/wcswidth.texi: Likewise.
18364 * doc/posix-functions/wcsxfrm.texi: Likewise.
18365 * doc/posix-functions/wctob.texi: Likewise.
18366 * doc/posix-functions/wctomb.texi: Likewise.
18367 * doc/posix-functions/wctrans.texi: Likewise.
18368 * doc/posix-functions/wctype.texi: Likewise.
18369 * doc/posix-functions/wcwidth.texi: Likewise.
18370 * doc/posix-functions/wmemchr.texi: Likewise.
18371 * doc/posix-functions/wmemcmp.texi: Likewise.
18372 * doc/posix-functions/wmemcpy.texi: Likewise.
18373 * doc/posix-functions/wmemmove.texi: Likewise.
18374 * doc/posix-functions/wmemset.texi: Likewise.
18375 * doc/posix-functions/wprintf.texi: Likewise.
18376 * doc/posix-functions/wscanf.texi: Likewise.
18378 2008-12-21 Bruno Haible <bruno@clisp.org>
18380 Update doc for HP-UX 11.11.
18381 * doc/posix-functions/btowc.texi: Clarify that the function is missing
18382 in HP-UX version 11.00, not in all versions of HP-UX 11.
18383 * doc/posix-functions/fwide.texi: Likewise.
18384 * doc/posix-functions/fwprintf.texi: Likewise.
18385 * doc/posix-functions/fwscanf.texi: Likewise.
18386 * doc/posix-functions/inet_ntop.texi: Likewise.
18387 * doc/posix-functions/inet_pton.texi: Likewise.
18388 * doc/posix-functions/mbrlen.texi: Likewise.
18389 * doc/posix-functions/mbrtowc.texi: Likewise.
18390 * doc/posix-functions/mbsinit.texi: Likewise.
18391 * doc/posix-functions/mbsrtowcs.texi: Likewise.
18392 * doc/posix-functions/swprintf.texi: Likewise.
18393 * doc/posix-functions/swscanf.texi: Likewise.
18394 * doc/posix-functions/towctrans.texi: Likewise.
18395 * doc/posix-functions/vfwprintf.texi: Likewise.
18396 * doc/posix-functions/vswprintf.texi: Likewise.
18397 * doc/posix-functions/vwprintf.texi: Likewise.
18398 * doc/posix-functions/wcrtomb.texi: Likewise.
18399 * doc/posix-functions/wcsrtombs.texi: Likewise.
18400 * doc/posix-functions/wcsstr.texi: Likewise.
18401 * doc/posix-functions/wctob.texi: Likewise.
18402 * doc/posix-functions/wctrans.texi: Likewise.
18403 * doc/posix-functions/wmemchr.texi: Likewise.
18404 * doc/posix-functions/wmemcmp.texi: Likewise.
18405 * doc/posix-functions/wmemcpy.texi: Likewise.
18406 * doc/posix-functions/wmemmove.texi: Likewise.
18407 * doc/posix-functions/wmemset.texi: Likewise.
18408 * doc/posix-functions/wprintf.texi: Likewise.
18409 * doc/posix-functions/wscanf.texi: Likewise.
18411 2008-12-21 Bruno Haible <bruno@clisp.org>
18413 Work around a portability problem.
18414 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18415 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18417 2008-12-20 Bruno Haible <bruno@clisp.org>
18419 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18420 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18421 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18422 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18423 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18425 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18426 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18428 (GNULIB_defined_mbstate_t): New macro.
18429 (mbsinit): Redefine if REPLACE_MBSINIT is set.
18430 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18431 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18432 reuses the system's mbrtowc function but works around the bugs.
18433 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18434 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18436 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18437 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18438 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18439 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18440 REPLACE_MBSINIT if mbsinit needs to be overridden.
18441 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18442 REPLACE_MBSINIT, REPLACE_MBRTOWC.
18443 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18444 REPLACE_MBSINIT, REPLACE_MBRTOWC.
18445 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18447 (Depends): Add mbsinit.
18448 * modules/mbsinit (Depends): Add mbrtowc.
18449 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18451 2008-12-20 Bruno Haible <bruno@clisp.org>
18453 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18454 so that there are no conversion errors on AIX.
18455 * tests/test-mbsrtowcs.c (main): LIkewise.
18457 2008-12-20 Bruno Haible <bruno@clisp.org>
18459 Work around wctob bug on Solaris <= 9.
18460 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18461 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18462 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18463 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18464 * modules/wctob (Files): Add m4/locale-fr.m4.
18465 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18467 2008-12-20 Bruno Haible <bruno@clisp.org>
18469 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18471 * tests/test-select-in.sh: Likewise.
18472 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18474 2008-12-20 Bruno Haible <bruno@clisp.org>
18476 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18477 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18480 2008-12-20 Bruno Haible <bruno@clisp.org>
18482 Ensure mbstate_t is defined on HP-UX 11.11.
18483 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18484 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18485 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18486 AC_USE_SYSTEM_EXTENSIONS.
18487 * modules/fnmatch (Depends-on): Add extensions.
18488 * modules/mbrlen (Depends-on): Likewise.
18489 * modules/mbrtowc (Depends-on): Likewise.
18490 * modules/mbsinit (Depends-on): Likewise.
18491 * modules/mbsrtowcs (Depends-on): Likewise.
18492 * modules/mbswidth (Depends-on): Likewise.
18493 * modules/quotearg (Depends-on): Likewise.
18494 * modules/strftime (Depends-on): Likewise.
18496 2008-12-20 Bruno Haible <bruno@clisp.org>
18498 Ensure wctob is declared on IRIX 6.5.
18499 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18500 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18501 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18502 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18504 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18506 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18508 2008-12-19 Bruno Haible <bruno@clisp.org>
18510 * modules/mbsrtowcs-tests: New file.
18511 * tests/test-mbsrtowcs1.sh: New file.
18512 * tests/test-mbsrtowcs2.sh: New file.
18513 * tests/test-mbsrtowcs3.sh: New file.
18514 * tests/test-mbsrtowcs4.sh: New file.
18515 * tests/test-mbsrtowcs.c: New file.
18517 New module 'mbsrtowcs'.
18518 * lib/wchar.in.h (mbsrtowcs): New declaration.
18519 * lib/mbsrtowcs.c: New file.
18520 * m4/mbsrtowcs.m4: New file.
18521 * modules/mbsrtowcs: New file.
18522 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18524 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18526 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18528 2008-12-19 Bruno Haible <bruno@clisp.org>
18530 New module 'mbrlen'.
18531 * lib/wchar.in.h (mbrlen): New declaration.
18532 * lib/mbrlen.c: New file.
18533 * m4/mbrlen.m4: New file.
18534 * modules/mbrlen: New file.
18535 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18537 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18539 * doc/posix-functions/mbrlen.texi: Document the new module.
18541 2008-12-19 Bruno Haible <bruno@clisp.org>
18543 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18544 * modules/mbrtowc (Depends-on): Add verify.
18545 Suggested by Paul Eggert.
18547 2008-12-18 Bruno Haible <bruno@clisp.org>
18549 * modules/mbsinit-tests: New file.
18550 * tests/test-mbsinit.sh: New file.
18551 * tests/test-mbsinit.c: New file.
18553 2008-12-18 Bruno Haible <bruno@clisp.org>
18555 * modules/mbrtowc-tests: New file.
18556 * tests/test-mbrtowc1.sh: New file.
18557 * tests/test-mbrtowc2.sh: New file.
18558 * tests/test-mbrtowc3.sh: New file.
18559 * tests/test-mbrtowc4.sh: New file.
18560 * tests/test-mbrtowc.c: New file.
18562 New module 'mbrtowc'.
18563 * lib/wchar.in.h (mbstate_t): Override when the system does not have
18564 mbsinit and mbrtowc.
18565 (mbrtowc): New declaration.
18566 * lib/mbrtowc.c: New file.
18567 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18568 * modules/mbrtowc: New file.
18569 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18571 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18573 * doc/posix-functions/mbrtowc.texi: Document the new module.
18575 2008-12-18 Bruno Haible <bruno@clisp.org>
18577 New module 'wctob'.
18578 * lib/wchar.in.h (wctob): New declaration.
18579 * lib/wctob.c: New file.
18580 * m4/wctob.m4: New file.
18581 * modules/wctob: New file.
18582 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18584 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18585 * doc/posix-functions/wctob.texi: Document the new module.
18587 2008-12-18 Bruno Haible <bruno@clisp.org>
18589 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18590 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18592 2008-12-18 Simon Josefsson <simon@josefsson.org>
18594 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
18595 G. Christensen" <tgc@jupiterrise.com>.
18597 * lib/flock.c: Need to include errno.h. Reported by "Tom
18598 G. Christensen" <tgc@jupiterrise.com>.
18600 * lib/flock.c: Need to include string.h. Reported by "Tom
18601 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18604 2008-12-18 Bruno Haible <bruno@clisp.org>
18606 * m4/locale-ja.m4: New file, from GNU gettext.
18608 2008-12-17 Bruno Haible <bruno@clisp.org>
18610 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18611 Suggested by Eric Blake.
18613 2008-12-17 Bruno Haible <bruno@clisp.org>
18615 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18617 2008-12-17 Bruno Haible <bruno@clisp.org>
18619 * lib/mbsinit.c: Include verify.h. Verify an assumption.
18620 * modules/mbsinit (Depends-on): Add verify.
18621 Suggested by Paul Eggert.
18623 2008-12-17 Bruno Haible <bruno@clisp.org>
18625 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18626 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18628 * m4/mbiter.m4 (gl_MBITER): LIkewise.
18629 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18630 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18631 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18632 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18633 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18634 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18635 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18636 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18637 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18638 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18639 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18640 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18641 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18642 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18643 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18644 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18645 * modules/trim (configure.ac): Likewise.
18647 2008-12-17 Bruno Haible <bruno@clisp.org>
18649 * modules/btowc-tests: New file.
18650 * tests/test-btowc1.sh: New file.
18651 * tests/test-btowc2.sh: New file.
18652 * tests/test-btowc.c: New file.
18654 New module 'btowc'.
18655 * lib/wchar.in.h (btowc): New declaration.
18656 * lib/btowc.c: New file.
18657 * m4/btowc.m4: New file.
18658 * modules/btowc: New file.
18659 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18661 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18662 * doc/posix-functions/btowc.texi: Document the new module.
18664 2008-12-17 Bruno Haible <bruno@clisp.org>
18666 New module 'mbsinit'.
18667 * lib/wchar.in.h (mbsinit): New declaration.
18668 * lib/mbsinit.c: New file.
18669 * m4/mbsinit.m4: New file.
18670 * modules/mbsinit: New file.
18671 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18673 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18675 * doc/posix-functions/mbsinit.texi: Document the new module.
18677 2008-12-16 Bruno Haible <bruno@clisp.org>
18679 * lib/unistd.in.h: Add comment.
18680 * tests/test-environ.c: Don't include <stdlib.h>.
18682 2008-12-16 Bruno Haible <bruno@clisp.org>
18684 * lib/parse-duration.h (parse_duration): Document return value
18686 * lib/parse-duration.c: Include specification header first. Add
18689 (parse_year_month_day, parse_hour_minute_second): Move side effects
18690 outside of strchr call.
18691 (parse_non_iso8601): Move side effects outside of isspace call.
18692 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18695 2008-12-16 Bruno Haible <bruno@clisp.org>
18697 * tests/test-parse-duration.sh: Produce no output when the test
18700 2008-12-16 Bruno Haible <bruno@clisp.org>
18702 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18705 2008-12-15 Bruno Haible <bruno@clisp.org>
18707 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18708 * doc/glibc-functions/flistxattr.texi: Likewise.
18709 * doc/glibc-functions/fopencookie.texi: Likewise.
18710 * doc/glibc-functions/fremovexattr.texi: Likewise.
18711 * doc/glibc-functions/fsetxattr.texi: Likewise.
18712 * doc/glibc-functions/getxattr.texi: Likewise.
18713 * doc/glibc-functions/lgetxattr.texi: Likewise.
18714 * doc/glibc-functions/listxattr.texi: Likewise.
18715 * doc/glibc-functions/llistxattr.texi: Likewise.
18716 * doc/glibc-functions/lremovexattr.texi: Likewise.
18717 * doc/glibc-functions/lsetxattr.texi: Likewise.
18718 * doc/glibc-functions/removexattr.texi: Likewise.
18719 * doc/glibc-functions/setxattr.texi: Likewise.
18720 * doc/posix-functions/open_memstream.texi: Likewise.
18722 2008-12-15 Eric Blake <ebb9@byu.net>
18724 Update doc for cygwin 1.7.
18725 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18727 * doc/posix-functions/fchmodat.texi: Likewise.
18728 * doc/posix-functions/fchownat.texi: Likewise.
18729 * doc/posix-functions/fdopendir.texi: Likewise.
18730 * doc/posix-functions/fmemopen.texi: Likewise.
18731 * doc/posix-functions/freeaddrinfo.texi: Likewise.
18732 * doc/posix-functions/fstatat.texi: Likewise.
18733 * doc/posix-functions/futimens.texi: Likewise.
18734 * doc/posix-functions/gai_strerror.texi: Likewise.
18735 * doc/posix-functions/getaddrinfo.texi: Likewise.
18736 * doc/posix-functions/getnameinfo.texi: Likewise.
18737 * doc/posix-functions/if_freenameindex.texi: Likewise.
18738 * doc/posix-functions/if_indextoname.texi: Likewise.
18739 * doc/posix-functions/if_nameindex.texi: Likewise.
18740 * doc/posix-functions/if_nametoindex.texi: Likewise.
18741 * doc/posix-functions/insque.texi: Likewise.
18742 * doc/posix-functions/linkat.texi: Likewise.
18743 * doc/posix-functions/llrint.texi: Likewise.
18744 * doc/posix-functions/llrintf.texi: Likewise.
18745 * doc/posix-functions/llrintl.texi: Likewise.
18746 * doc/posix-functions/lockf.texi: Likewise.
18747 * doc/posix-functions/lrintl.texi: Likewise.
18748 * doc/posix-functions/mkdirat.texi: Likewise.
18749 * doc/posix-functions/mkfifoat.texi: Likewise.
18750 * doc/posix-functions/mknodat.texi: Likewise.
18751 * doc/posix-functions/mq_close.texi: Likewise.
18752 * doc/posix-functions/mq_getattr.texi: Likewise.
18753 * doc/posix-functions/mq_notify.texi: Likewise.
18754 * doc/posix-functions/mq_open.texi: Likewise.
18755 * doc/posix-functions/mq_receive.texi: Likewise.
18756 * doc/posix-functions/mq_send.texi: Likewise.
18757 * doc/posix-functions/mq_setattr.texi: Likewise.
18758 * doc/posix-functions/mq_timedreceive.texi: Likewise.
18759 * doc/posix-functions/mq_timedsend.texi: Likewise.
18760 * doc/posix-functions/mq_unlink.texi: Likewise.
18761 * doc/posix-functions/open_memstream.texi: Likewise.
18762 * doc/posix-functions/openat.texi: Likewise.
18763 * doc/posix-functions/posix_fadvise.texi: Likewise.
18764 * doc/posix-functions/posix_fallocate.texi: Likewise.
18765 * doc/posix-functions/posix_madvise.texi: Likewise.
18766 * doc/posix-functions/posix_memalign.texi: Likewise.
18767 * doc/posix-functions/posix_openpt.texi: Likewise.
18768 * doc/posix-functions/readlinkat.texi: Likewise.
18769 * doc/posix-functions/remque.texi: Likewise.
18770 * doc/posix-functions/renameat.texi: Likewise.
18771 * doc/posix-functions/rintl.texi: Likewise.
18772 * doc/posix-functions/sem_unlink.texi: Likewise.
18773 * doc/posix-functions/shm_open.texi: Likewise.
18774 * doc/posix-functions/shm_unlink.texi: Likewise.
18775 * doc/posix-functions/signgam.texi: Likewise.
18776 * doc/posix-functions/sigset.texi: Likewise.
18777 * doc/posix-functions/stpcpy.texi: Likewise.
18778 * doc/posix-functions/stpncpy.texi: Likewise.
18779 * doc/posix-functions/strerror.texi: Likewise.
18780 * doc/posix-functions/strtod.texi: Likewise.
18781 * doc/posix-functions/symlinkat.texi: Likewise.
18782 * doc/posix-functions/unlinkat.texi: Likewise.
18783 * doc/posix-functions/utimensat.texi: Likewise.
18784 * doc/glibc-functions/bindresvport.texi: Likewise.
18785 * doc/glibc-functions/dn_expand.texi: Likewise.
18786 * doc/glibc-functions/exp10.texi: Likewise.
18787 * doc/glibc-functions/exp10f.texi: Likewise.
18788 * doc/glibc-functions/fgetxattr.texi: Likewise.
18789 * doc/glibc-functions/flistxattr.texi: Likewise.
18790 * doc/glibc-functions/fopencookie.texi: Likewise.
18791 * doc/glibc-functions/freeifaddrs.texi: Likewise.
18792 * doc/glibc-functions/fremovexattr.texi: Likewise.
18793 * doc/glibc-functions/fsetxattr.texi: Likewise.
18794 * doc/glibc-functions/getifaddrs.texi: Likewise.
18795 * doc/glibc-functions/getxattr.texi: Likewise.
18796 * doc/glibc-functions/lgetxattr.texi: Likewise.
18797 * doc/glibc-functions/listxattr.texi: Likewise.
18798 * doc/glibc-functions/llistxattr.texi: Likewise.
18799 * doc/glibc-functions/lremovexattr.texi: Likewise.
18800 * doc/glibc-functions/lsetxattr.texi: Likewise.
18801 * doc/glibc-functions/pow10.texi: Likewise.
18802 * doc/glibc-functions/pow10f.texi: Likewise.
18803 * doc/glibc-functions/rcmd_af.texi: Likewise.
18804 * doc/glibc-functions/removexattr.texi: Likewise.
18805 * doc/glibc-functions/res_init.texi: Likewise.
18806 * doc/glibc-functions/res_mkquery.texi: Likewise.
18807 * doc/glibc-functions/res_query.texi: Likewise.
18808 * doc/glibc-functions/res_querydomain.texi: Likewise.
18809 * doc/glibc-functions/res_send.texi: Likewise.
18810 * doc/glibc-functions/rresvport_af.texi: Likewise.
18811 * doc/glibc-functions/setxattr.texi: Likewise.
18812 * doc/glibc-functions/strcasestr.texi: Likewise.
18814 2008-12-15 Bruno Haible <bruno@clisp.org>
18816 Fix compilation error on OSF/1 4.0.
18817 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18818 <sys/time.h>, simply delegate to the system header.
18819 Reported by Daniel Richard G. <oss@teragram.com>.
18821 2008-12-15 Bruno Haible <bruno@clisp.org>
18823 * doc/posix-functions/openat.texi: Mention the 'openat' module.
18824 * doc/posix-functions/fchmodat.texi: Likewise.
18825 * doc/posix-functions/fchownat.texi: Likewise.
18826 * doc/posix-functions/fdopendir.texi: Likewise.
18827 * doc/posix-functions/fstatat.texi: Likewise.
18828 * doc/posix-functions/mkdirat.texi: Likewise.
18829 * doc/posix-functions/unlinkat.texi: Likewise.
18831 2008-12-14 Bruno Haible <bruno@clisp.org>
18833 Update doc for POSIX:2008.
18834 * doc/posix-functions/faccessat.texi: New file.
18835 * doc/posix-functions/fchmodat.texi: New file.
18836 * doc/posix-functions/fchownat.texi: New file.
18837 * doc/posix-functions/fdopendir.texi: New file.
18838 * doc/posix-functions/fstatat.texi: New file.
18839 * doc/posix-functions/futimens.texi: New file.
18840 * doc/posix-functions/linkat.texi: New file.
18841 * doc/posix-functions/mkdirat.texi: New file.
18842 * doc/posix-functions/mkfifoat.texi: New file.
18843 * doc/posix-functions/mknodat.texi: New file.
18844 * doc/posix-functions/open_wmemstream.texi: New file.
18845 * doc/posix-functions/openat.texi: New file.
18846 * doc/posix-functions/psiginfo.texi: New file.
18847 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18848 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18849 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18850 * doc/posix-functions/readlinkat.texi: New file.
18851 * doc/posix-functions/renameat.texi: New file.
18852 * doc/posix-functions/strerror_l.texi: New file.
18853 * doc/posix-functions/symlinkat.texi: New file.
18854 * doc/posix-functions/unlinkat.texi: New file.
18855 * doc/posix-functions/utimensat.texi: New file.
18856 * doc/gnulib.texi (Function Substitutes): Add these subsections.
18858 2008-12-14 Bruno Haible <bruno@clisp.org>
18860 Update doc for POSIX:2008.
18861 * doc/posix-functions/alphasort.texi: Renamed from
18862 doc/glibc-functions/alphasort.texi.
18863 * doc/posix-functions/dirfd.texi: Renamed from
18864 doc/glibc-functions/dirfd.texi.
18865 * doc/posix-functions/dprintf.texi: Renamed from
18866 doc/glibc-functions/dprintf.texi.
18867 * doc/posix-functions/duplocale.texi: Renamed from
18868 doc/glibc-functions/duplocale.texi.
18869 * doc/posix-functions/fexecve.texi: Renamed from
18870 doc/glibc-functions/fexecve.texi.
18871 * doc/posix-functions/fmemopen.texi: Renamed from
18872 doc/glibc-functions/fmemopen.texi.
18873 * doc/posix-functions/freelocale.texi: Renamed from
18874 doc/glibc-functions/freelocale.texi.
18875 * doc/posix-functions/getdate_err.texi: Renamed from
18876 doc/glibc-functions/getdate_err.texi.
18877 * doc/posix-functions/isalnum_l.texi: Renamed from
18878 doc/glibc-functions/isalnum_l.texi.
18879 * doc/posix-functions/isalpha_l.texi: Renamed from
18880 doc/glibc-functions/isalpha_l.texi.
18881 * doc/posix-functions/isblank_l.texi: Renamed from
18882 doc/glibc-functions/isblank_l.texi.
18883 * doc/posix-functions/iscntrl_l.texi: Renamed from
18884 doc/glibc-functions/iscntrl_l.texi.
18885 * doc/posix-functions/isdigit_l.texi: Renamed from
18886 doc/glibc-functions/isdigit_l.texi.
18887 * doc/posix-functions/isgraph_l.texi: Renamed from
18888 doc/glibc-functions/isgraph_l.texi.
18889 * doc/posix-functions/islower_l.texi: Renamed from
18890 doc/glibc-functions/islower_l.texi.
18891 * doc/posix-functions/isprint_l.texi: Renamed from
18892 doc/glibc-functions/isprint_l.texi.
18893 * doc/posix-functions/ispunct_l.texi: Renamed from
18894 doc/glibc-functions/ispunct_l.texi.
18895 * doc/posix-functions/isspace_l.texi: Renamed from
18896 doc/glibc-functions/isspace_l.texi.
18897 * doc/posix-functions/isupper_l.texi: Renamed from
18898 doc/glibc-functions/isupper_l.texi.
18899 * doc/posix-functions/iswalnum_l.texi: Renamed from
18900 doc/glibc-functions/iswalnum_l.texi.
18901 * doc/posix-functions/iswalpha_l.texi: Renamed from
18902 doc/glibc-functions/iswalpha_l.texi.
18903 * doc/posix-functions/iswblank_l.texi: Renamed from
18904 doc/glibc-functions/iswblank_l.texi.
18905 * doc/posix-functions/iswcntrl_l.texi: Renamed from
18906 doc/glibc-functions/iswcntrl_l.texi.
18907 * doc/posix-functions/iswctype_l.texi: Renamed from
18908 doc/glibc-functions/iswctype_l.texi.
18909 * doc/posix-functions/iswdigit_l.texi: Renamed from
18910 doc/glibc-functions/iswdigit_l.texi.
18911 * doc/posix-functions/iswgraph_l.texi: Renamed from
18912 doc/glibc-functions/iswgraph_l.texi.
18913 * doc/posix-functions/iswlower_l.texi: Renamed from
18914 doc/glibc-functions/iswlower_l.texi.
18915 * doc/posix-functions/iswprint_l.texi: Renamed from
18916 doc/glibc-functions/iswprint_l.texi.
18917 * doc/posix-functions/iswpunct_l.texi: Renamed from
18918 doc/glibc-functions/iswpunct_l.texi.
18919 * doc/posix-functions/iswspace_l.texi: Renamed from
18920 doc/glibc-functions/iswspace_l.texi.
18921 * doc/posix-functions/iswupper_l.texi: Renamed from
18922 doc/glibc-functions/iswupper_l.texi.
18923 * doc/posix-functions/iswxdigit_l.texi: Renamed from
18924 doc/glibc-functions/iswxdigit_l.texi.
18925 * doc/posix-functions/isxdigit_l.texi: Renamed from
18926 doc/glibc-functions/isxdigit_l.texi.
18927 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18928 doc/glibc-functions/mbsnrtowcs.texi.
18929 * doc/posix-functions/mkdtemp.texi: Renamed from
18930 doc/glibc-functions/mkdtemp.texi.
18931 * doc/posix-functions/newlocale.texi: Renamed from
18932 doc/glibc-functions/newlocale.texi.
18933 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18934 doc/glibc-functions/nl_langinfo_l.texi.
18935 * doc/posix-functions/open_memstream.texi: Renamed from
18936 doc/glibc-functions/open_memstream.texi.
18937 * doc/posix-functions/opterr.texi: Renamed from
18938 doc/glibc-functions/opterr.texi.
18939 * doc/posix-functions/optind.texi: Renamed from
18940 doc/glibc-functions/optind.texi.
18941 * doc/posix-functions/optopt.texi: Renamed from
18942 doc/glibc-functions/optopt.texi.
18943 * doc/posix-functions/psignal.texi: Renamed from
18944 doc/glibc-functions/psignal.texi.
18945 * doc/posix-functions/scandir.texi: Renamed from
18946 doc/glibc-functions/scandir.texi.
18947 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18948 doc/glibc-functions/sched_get_priority_min.texi.
18949 * doc/posix-functions/signgam.texi: Renamed from
18950 doc/glibc-functions/signgam.texi.
18951 * doc/posix-functions/stpcpy.texi: Renamed from
18952 doc/glibc-functions/stpcpy.texi.
18953 * doc/posix-functions/stpncpy.texi: Renamed from
18954 doc/glibc-functions/stpncpy.texi.
18955 * doc/posix-functions/strcasecmp_l.texi: Renamed from
18956 doc/glibc-functions/strcasecmp_l.texi.
18957 * doc/posix-functions/strcoll_l.texi: Renamed from
18958 doc/glibc-functions/strcoll_l.texi.
18959 * doc/posix-functions/strfmon_l.texi: Renamed from
18960 doc/glibc-functions/strfmon_l.texi.
18961 * doc/posix-functions/strftime_l.texi: Renamed from
18962 doc/glibc-functions/strftime_l.texi.
18963 * doc/posix-functions/strncasecmp_l.texi: Renamed from
18964 doc/glibc-functions/strncasecmp_l.texi.
18965 * doc/posix-functions/strndup.texi: Renamed from
18966 doc/glibc-functions/strndup.texi.
18967 * doc/posix-functions/strnlen.texi: Renamed from
18968 doc/glibc-functions/strnlen.texi.
18969 * doc/posix-functions/strsignal.texi: Renamed from
18970 doc/glibc-functions/strsignal.texi.
18971 * doc/posix-functions/strxfrm_l.texi: Renamed from
18972 doc/glibc-functions/strxfrm_l.texi.
18973 * doc/posix-functions/timer_gettime.texi: Renamed from
18974 doc/glibc-functions/timer_gettime.texi.
18975 * doc/posix-functions/tolower_l.texi: Renamed from
18976 doc/glibc-functions/tolower_l.texi.
18977 * doc/posix-functions/toupper_l.texi: Renamed from
18978 doc/glibc-functions/toupper_l.texi.
18979 * doc/posix-functions/towctrans_l.texi: Renamed from
18980 doc/glibc-functions/towctrans_l.texi.
18981 * doc/posix-functions/towlower_l.texi: Renamed from
18982 doc/glibc-functions/towlower_l.texi.
18983 * doc/posix-functions/towupper_l.texi: Renamed from
18984 doc/glibc-functions/towupper_l.texi.
18985 * doc/posix-functions/uselocale.texi: Renamed from
18986 doc/glibc-functions/uselocale.texi.
18987 * doc/posix-functions/vdprintf.texi: Renamed from
18988 doc/glibc-functions/vdprintf.texi.
18989 * doc/posix-functions/wcpcpy.texi:
18990 Renamed from doc/glibc-functions/wcpcpy.texi.
18991 * doc/posix-functions/wcpncpy.texi: Renamed from
18992 doc/glibc-functions/wcpncpy.texi.
18993 * doc/posix-functions/wcscasecmp.texi: Renamed from
18994 doc/glibc-functions/wcscasecmp.texi.
18995 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18996 doc/glibc-functions/wcscasecmp_l.texi.
18997 * doc/posix-functions/wcscoll_l.texi: Renamed from
18998 doc/glibc-functions/wcscoll_l.texi.
18999 * doc/posix-functions/wcsdup.texi: Renamed from
19000 doc/glibc-functions/wcsdup.texi.
19001 * doc/posix-functions/wcsncasecmp.texi: Renamed from
19002 doc/glibc-functions/wcsncasecmp.texi.
19003 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19004 doc/glibc-functions/wcsncasecmp_l.texi.
19005 * doc/posix-functions/wcsnlen.texi: Renamed from
19006 doc/glibc-functions/wcsnlen.texi.
19007 * doc/posix-functions/wcsnrtombs.texi: Renamed from
19008 doc/glibc-functions/wcsnrtombs.texi.
19009 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19010 doc/glibc-functions/wcsxfrm_l.texi.
19011 * doc/posix-functions/wctrans_l.texi: Renamed from
19012 doc/glibc-functions/wctrans_l.texi.
19013 * doc/posix-functions/wctype_l.texi: Renamed from
19014 doc/glibc-functions/wctype_l.texi.
19015 * doc/gnulib.texi (Function Substitutes): Add these subsections.
19016 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19017 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19018 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19020 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19023 2008-12-14 Bruno Haible <bruno@clisp.org>
19025 Update doc for POSIX:2008.
19026 * doc/posix-functions/*.texi: Update URL of POSIX specification.
19028 2008-12-14 Bruno Haible <bruno@clisp.org>
19030 Update doc for POSIX:2008.
19031 * doc/pastposix-functions/bcmp.texi: Renamed from
19032 doc/posix-functions/bcmp.texi.
19033 * doc/pastposix-functions/bcopy.texi: Renamed from
19034 doc/posix-functions/bcopy.texi.
19035 * doc/pastposix-functions/bsd_signal.texi: Renamed from
19036 doc/posix-functions/bsd_signal.texi.
19037 * doc/pastposix-functions/bzero.texi: Renamed from
19038 doc/posix-functions/bzero.texi.
19039 * doc/pastposix-functions/ecvt.texi: Renamed from
19040 doc/posix-functions/ecvt.texi.
19041 * doc/pastposix-functions/fcvt.texi: Renamed from
19042 doc/posix-functions/fcvt.texi.
19043 * doc/pastposix-functions/ftime.texi: Renamed from
19044 doc/posix-functions/ftime.texi.
19045 * doc/pastposix-functions/gcvt.texi: Renamed from
19046 doc/posix-functions/gcvt.texi.
19047 * doc/pastposix-functions/getcontext.texi: Renamed from
19048 doc/posix-functions/getcontext.texi.
19049 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19050 doc/posix-functions/gethostbyaddr.texi.
19051 * doc/pastposix-functions/gethostbyname.texi: Renamed from
19052 doc/posix-functions/gethostbyname.texi.
19053 * doc/pastposix-functions/getwd.texi: Renamed from
19054 doc/posix-functions/getwd.texi.
19055 * doc/pastposix-functions/h_errno.texi: Renamed from
19056 doc/posix-functions/h_errno.texi.
19057 * doc/pastposix-functions/index.texi: Renamed from
19058 doc/posix-functions/index.texi.
19059 * doc/pastposix-functions/makecontext.texi: Renamed from
19060 doc/posix-functions/makecontext.texi.
19061 * doc/pastposix-functions/mktemp.texi: Renamed from
19062 doc/posix-functions/mktemp.texi.
19063 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19064 doc/posix-functions/pthread_attr_getstackaddr.texi.
19065 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19066 doc/posix-functions/pthread_attr_setstackaddr.texi.
19067 * doc/pastposix-functions/rindex.texi: Renamed from
19068 doc/posix-functions/rindex.texi.
19069 * doc/pastposix-functions/scalb.texi: Renamed from
19070 doc/posix-functions/scalb.texi.
19071 * doc/pastposix-functions/setcontext.texi: Renamed from
19072 doc/posix-functions/setcontext.texi.
19073 * doc/pastposix-functions/swapcontext.texi: Renamed from
19074 doc/posix-functions/swapcontext.texi.
19075 * doc/pastposix-functions/ualarm.texi: Renamed from
19076 doc/posix-functions/ualarm.texi.
19077 * doc/pastposix-functions/usleep.texi: Renamed from
19078 doc/posix-functions/usleep.texi.
19079 * doc/pastposix-functions/vfork.texi: Renamed from
19080 doc/posix-functions/vfork.texi.
19081 * doc/pastposix-functions/wcswcs.texi: Renamed from
19082 doc/posix-functions/wcswcs.texi.
19083 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19084 (Function Substitutes): Update.
19086 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19088 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19091 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19092 Bruno Haible <bruno@clisp.org>
19094 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19096 2008-12-13 Bruno Haible <bruno@clisp.org>
19098 * modules/strtoull (Depends-on): Remove unistd.
19100 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19102 * modules/strtoull (Depends-on): Add stdlib.
19104 2008-12-11 Simon Josefsson <simon@josefsson.org>
19106 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19108 2008-12-10 Jim Meyering <meyering@redhat.com>
19110 gl_ASSERT: don't say assertions are disabled when they're not
19111 * m4/assert.m4 (gl_ASSERT): Do not make configure report
19112 "checking whether to enable assertions... no", when they are in
19113 fact enabled. This is solely a bug in the output of configure.
19114 In spite of saying "no", NDEBUG was not defined in that case.
19115 Also, as noted by Eric Blake, leave assertions enabled upon
19116 --enable-assert=INVALID.
19118 2008-12-10 Bruno Haible <bruno@clisp.org>
19120 Change MODULES.html to refer to POSIX:2008 where possible.
19121 * MODULES.html.sh (POSIX2008_URL): New variable.
19122 (posix_headers): Remove sys/timeb, ucontext.
19123 (posix2001_headers): New variable.
19124 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19125 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19126 index, makecontext, mktemp, pthread_attr_getstackaddr,
19127 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19128 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19129 (posix2001_functions): New variable.
19130 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19133 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19135 add missing include to parse-duration.c
19136 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19137 * modules/parse-duration (Depends-on): Add xalloc.
19139 fix sed script reading maint.mk
19140 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19141 (syntax-check-rules): Use it.
19143 2008-12-09 Bruno Haible <bruno@clisp.org>
19145 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19146 MacOS X 10.4/PowerPC.
19147 Reported by Simon Josefsson.
19149 2008-12-08 Jim Meyering <meyering@redhat.com>
19151 work around mingw's lack of some S_IF definitions
19152 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19153 Reported by Simon Josefsson.
19155 2008-12-08 Bruno Haible <bruno@clisp.org>
19157 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19158 applied to variables. Needed on MacOS X 10.4/PowerPC.
19159 Reported by Simon Josefsson.
19161 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
19162 and Eric Blake <ebb9@byu.net>
19164 assert: honor --enable-assert
19165 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19166 order to honor --enable-assert, rather than treating it as a
19167 synonym for --disable-assert.
19169 2008-12-08 Jim Meyering <meyering@redhat.com>
19171 * lib/posixtm.c: Remove now-useless declaration of mktime.
19173 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19175 2008-12-07 Bruno Haible <bruno@clisp.org>
19177 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19178 test_once): Mark functions as static.
19179 * tests/test-tls.c (test_tls): Likewise.
19181 2008-12-07 Bruno Haible <bruno@clisp.org>
19183 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19184 iconv_register_autodetect.
19186 2008-12-07 Jim Meyering <meyering@redhat.com>
19188 posixtm.c: avoid a warning
19189 * lib/posixtm.c (posixtime): Don't initialize tm0.
19190 It's no longer needed to placate gcc4's -Wuninitialized,
19191 and the attempt to placate would elicit a new warning.
19193 unicodeio.c: mark unused parameters
19194 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19195 (fallback_failure_callback): Likewise.
19197 2008-12-07 Bruno Haible <bruno@clisp.org>
19199 * gnulib-tool (func_create_testdir): When building the tests
19200 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19201 Reported by Simon Josefsson.
19203 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19205 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19207 2008-12-06 Bruno Haible <bruno@clisp.org>
19209 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19210 Suggested by Eric Blake.
19212 2008-12-06 Bruno Haible <bruno@clisp.org>
19214 Fix a c-stack test failure on MacOS X.
19215 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19216 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19217 handler for SIGBUS as well.
19218 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19219 install a signal handler for SIGBUS as well.
19220 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19222 2008-12-06 Bruno Haible <bruno@clisp.org>
19224 Advocacy documentation.
19225 * doc/gnulib-intro.texi (Benefits): New section.
19226 * doc/gnulib.texi: Update.
19228 2008-12-06 Bruno Haible <bruno@clisp.org>
19230 Document the 'manywarnings' module.
19231 * doc/manywarnings.texi: New file.
19232 * doc/gnulib.texi: Include it.
19234 2008-12-05 Eric Blake <ebb9@byu.net>
19236 tests: silence some gcc warnings
19237 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19238 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19241 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19242 Bruno Haible <bruno@clisp.org>
19244 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19246 2008-11-29 Jim Meyering <meyering@redhat.com>
19248 unicodeio.c: mark unused parameters
19249 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19250 (fallback_failure_callback): Likewise.
19253 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
19254 (set_stat_type): Return S_IF*-valued "type" directly.
19255 Prompted by James Youngman's spotting a related bug.
19256 Confirmed by further testing through find.
19258 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19259 * lib/fts.c (D_TYPE): Define.
19260 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19261 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19262 (s_ifmt_shift_bits): New function.
19263 (set_stat_type): New function.
19264 (fts_build): When not calling fts_stat, call set_stat_type
19265 to propagate dirent.d_type info to fts_read caller.
19266 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19267 fts_statp->st_mode type information may be valid.
19269 2008-11-28 Simon Josefsson <simon@josefsson.org>
19271 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
19272 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
19275 2008-11-20 Bruno Haible <bruno@clisp.org>
19277 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19278 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19280 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19281 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19282 * modules/math (Makefile.am): Substitute
19283 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19284 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19286 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
19287 Bruno Haible <bruno@clisp.org>
19289 * lib/stdint.in.h: Define all type macros so that their expansion is
19290 a single typedef'ed token. Fixes a compilation failure in Boost which
19291 does "using ::int8_t;".
19293 2008-11-18 Simon Josefsson <simon@josefsson.org>
19295 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19296 gl_MANYWARN_ALL_GCC.
19297 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19298 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
19299 * modules/manywarnings: New file.
19300 * MODULES.html.sh: Mention manywarnings module.
19302 2008-11-18 Bruno Haible <bruno@clisp.org>
19304 * doc/gnulib-tool.texi (Unit tests): New section.
19306 2008-11-18 Simon Josefsson <simon@josefsson.org>
19308 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19309 paths like 'lib/po/foo.po'.
19311 2008-11-17 Simon Josefsson <simon@josefsson.org>
19313 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
19314 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19316 2008-11-17 Simon Josefsson <simon@josefsson.org>
19318 * m4/warnings.m4: Use CPPFLAGS to really check whether the
19321 2008-11-17 Simon Josefsson <simon@josefsson.org>
19323 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19325 2008-11-17 Bruce Korb <bkorb@gnu.org>
19327 * modules/parse-duration-tests: New file.
19328 * tests/test-parse-duration.sh: New file.
19329 * tests/test-parse-duration.c: New file.
19331 New module 'parse-duration'.
19332 * lib/parse-duration.h: New file.
19333 * lib/parse-duration.c: New file.
19334 * modules/parse-duration: New file.
19336 2008-11-17 Bruno Haible <bruno@clisp.org>
19338 * tests/test-select-out.sh: Comment out the first pipe test.
19339 Reported by Simon Josefsson.
19341 2008-11-17 Bruno Haible <bruno@clisp.org>
19343 * modules/getaddrinfo (Depends-on): Add servent, hostent.
19344 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19347 2008-11-17 Bruno Haible <bruno@clisp.org>
19349 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19350 -lnetwork and -lnet. Needed for Haiku and BeOS.
19352 2008-11-16 Bruno Haible <bruno@clisp.org>
19354 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19356 2008-11-16 Bruno Haible <bruno@clisp.org>
19358 Avoid test failure on Haiku.
19359 * tests/test-fsync.c: Include <errno.h>.
19360 (main): Don't require that fsync (0) fails.
19362 2008-11-15 Bruno Haible <bruno@clisp.org>
19364 New module 'hostent'.
19365 * modules/hostent: New file.
19366 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19368 2008-11-15 Bruno Haible <bruno@clisp.org>
19370 New module 'servent'.
19371 * modules/servent: New file.
19372 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19374 2008-11-15 Bruno Haible <bruno@clisp.org>
19376 Avoid generating same test program with two different rules.
19377 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19378 test-frexp to test-frexp-nolibm.
19379 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19380 test-frexpl to test-frexpl-nolibm.
19382 2008-11-15 Bruno Haible <bruno@clisp.org>
19384 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19387 2008-11-15 Bruno Haible <bruno@clisp.org>
19389 * lib/netdb.in.h: Activate the definitions also when the system's
19390 <netdb.h> has 'struct addrinfo'.
19391 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19392 EAI_OVERFLOW or AI_NUMERICSERV.
19393 * doc/posix-headers/netdb.texi: Document the problem.
19395 2008-11-15 Bruno Haible <bruno@clisp.org>
19397 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19399 Make the 'sched' module work on platforms where <sched.h> exists but
19400 is incomplete (such as Haiku).
19401 * lib/sched.in.h; Include the system's <sched.h> if it exists.
19402 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19403 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19404 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19405 HAVE_STRUCT_SCHED_PARAM.
19406 * modules/sched (Depends-on): Add include_next.
19407 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19408 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19409 * doc/posix-headers/sched.texi: Document the issue.
19411 2008-11-13 Jim Meyering <meyering@redhat.com>
19413 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19414 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19415 test would fail due to the difference in the Report bugs to ...
19416 line. The expected address is empty, "<>", while the actual
19417 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
19419 2008-11-12 Bruno Haible <bruno@clisp.org>
19421 lstat: don't compile lstat.c on systems lacking lstat
19422 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19423 which don't have lstat; this is handled by lib/sys_stat.in.h already.
19424 Reported by Daniel P. Berrange via Jim Meyering.
19426 2008-11-12 Jim Meyering <meyering@redhat.com>
19428 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19430 2008-11-12 Simon Josefsson <simon@josefsson.org>
19432 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19435 2008-11-12 Bruno Haible <bruno@clisp.org>
19437 * lib/unicodeio.c: Include unistr.h.
19438 (utf8_wctomb): Remove function.
19439 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19441 2008-11-12 Simon Josefsson <simon@josefsson.org>
19443 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19444 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19446 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19448 2008-11-12 Simon Josefsson <simon@josefsson.org>
19450 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19451 * doc/gnulib.texi: Add section for warnings.
19453 2008-11-11 Bruno Haible <bruno@clisp.org>
19455 * lib/sockets.h: Add a comment.
19457 2008-11-11 Karl Berry <karl@gnu.org>
19459 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19461 2008-11-11 Eric Blake <ebb9@byu.net>
19463 fdl.texi: avoid git symlinks
19464 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19466 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19468 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19470 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19472 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19473 (gl_WARN_ADD): Substitute $2 if literal.
19475 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19477 * m4/warning.m4: Remove.
19479 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
19481 * m4/warnings.m4: Almost complete rewrite. :-)
19483 2008-11-10 Simon Josefsson <simon@josefsson.org>
19485 * modules/warnings: New module.
19486 * m4/warnings.m4: New file.
19487 * MODULES.html.sh: Mention warnings module.
19488 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19489 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19491 2008-11-10 Eric Blake <ebb9@byu.net>
19493 fdl.texi: make a symlink to the latest version
19494 * doc/standards.texi: Revert today's earlier change.
19495 * doc/fdl-1.2.texi: Rename from old fdl.texi...
19496 * doc/fdl.texi: ...and replace this with a symlink to the newer
19499 2008-11-10 Bruno Haible <bruno@clisp.org>
19501 * tests/test-select-fd.c (main): Accept the result file name as fourth
19503 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19504 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19506 2008-11-10 Bruno Haible <bruno@clisp.org>
19508 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19509 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19510 as autoconf-substituted macros.
19511 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19512 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19513 gl_NETDB_H_DEFAULTS. Set these variables.
19514 * modules/netdb (Makefile.am): Substitute these variables.
19516 2008-11-10 Eric Blake <ebb9@byu.net>
19518 standards.texi: include correct file for FDL 1.3
19519 * doc/standards.texi (GNU Free Documentation License): Change
19520 include file to pull in FDL 1.3, not 1.2.
19522 fdl.texi: revert accidental change to license
19523 * doc/fdl.texi: This is FDL 1.2, not 1.3.
19525 2008-11-10 Bruno Haible <bruno@clisp.org>
19527 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19528 cross-compiling guesses also when the native compile gives no result.
19530 2008-11-10 Bruno Haible <bruno@clisp.org>
19532 * lib/spawni.c (__spawni): Force variable into the stack.
19534 2008-11-10 Bruno Haible <bruno@clisp.org>
19536 Add support for Haiku.
19537 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19538 glibc and BeOS, but also on Haiku.
19539 * lib/fpurge.c (fpurge): Likewise.
19540 * lib/freadable.c (freadable): Likewise.
19541 * lib/freadahead.c (freadahead): Likewise.
19542 * lib/freading.c (freading): Likewise.
19543 * lib/freadptr.c (freadptr): Likewise.
19544 * lib/freadseek.c (freadptrinc): Likewise.
19545 * lib/fseeko.c (rpl_fseeko): Likewise.
19546 * lib/fseterr.c (fseterr): Likewise.
19547 * lib/fwritable.c (fwritable): Likewise.
19548 * lib/fwriting.c (fwriting): Likewise.
19549 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19551 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
19553 * lib/config.charset: Treat Haiku like BeOS.
19555 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
19557 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19558 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19560 2008-11-08 Bruno Haible <bruno@clisp.org>
19562 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19565 2008-11-08 Bruno Haible <bruno@clisp.org>
19567 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19569 2008-11-08 Bruno Haible <bruno@clisp.org>
19571 * tests/test-select-fd.c: New file.
19572 * tests/test-select-in.sh: New file.
19573 * tests/test-select-out.sh: New file.
19574 * tests/test-select-stdin.c: New file.
19575 * modules/select-tests (Files): Add the new files.
19576 (Depends-on): Add gettimeofday.
19577 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19578 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19579 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19581 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
19582 Bruno Haible <bruno@clisp.org>
19584 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19586 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
19588 * build-aux/pmccabe2html: Added support for C++ source files.
19590 2008-11-05 Ben Pfaff <blp@gnu.org>
19592 Fix lib/close.c build on Windows.
19593 * modules/close (Files): Add lib/w32sock.h.
19595 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
19597 Accept Bison's NEWS format.
19598 * build-aux/announce-gen (print_news_deltas): Tweak
19601 2008-11-04 Bruno Haible <bruno@clisp.org>
19603 * modules/random_r (Maintainer): Add glibc.
19605 2008-11-04 Simon Josefsson <simon@josefsson.org>
19607 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19608 by karl@freefriends.org (Karl Berry).
19609 * doc/alloca.texi: Likewise.
19610 * doc/c-ctype.texi: Likewise.
19611 * doc/c-strcase.texi: Likewise.
19612 * doc/c-strcaseeq.texi: Likewise.
19613 * doc/c-strcasestr.texi: Likewise.
19614 * doc/c-strstr.texi: Likewise.
19615 * doc/c-strtod.texi: Likewise.
19616 * doc/c-strtold.texi: Likewise.
19617 * doc/ctime.texi: Likewise.
19618 * doc/error.texi: Likewise.
19619 * doc/fdl.texi: Likewise.
19620 * doc/gcd.texi: Likewise.
19621 * doc/getdate.texi: Likewise.
19622 * doc/gnulib-intro.texi: Likewise.
19623 * doc/gnulib-tool.texi: Likewise.
19624 * doc/gnulib.texi: Likewise.
19625 * doc/inet_ntoa.texi: Likewise.
19626 * doc/maintain.texi: Likewise.
19627 * doc/make-stds.texi: Likewise.
19628 * doc/quote.texi: Likewise.
19629 * doc/regexprops-generic.texi: Likewise.
19630 * doc/standards.texi: Likewise.
19631 * doc/verify.texi: Likewise.
19632 * doc/visibility.texi: Likewise.
19633 * doc/gnulib.texi (GNU Free Documentation License): Include
19634 fdl-1.3.texi instead of fdl.texi.
19636 2008-11-04 Simon Josefsson <simon@josefsson.org>
19638 * doc/fdl-1.3.texi: New file, from
19639 <http://www.gnu.org/licenses/fdl-1.3.texi>.
19640 * modules/fdl-1.3: Add.
19641 * MODULES.html.sh: Add fdl-1.3.
19643 2008-11-03 Bruno Haible <bruno@clisp.org>
19645 Make determination of absolute name of header file work with AIX xlc.
19646 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19647 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19649 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19650 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19652 2008-11-03 Simon Josefsson <simon@josefsson.org>
19654 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19655 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
19658 2008-11-02 Bruno Haible <bruno@clisp.org>
19660 Mark 'strpbrk' obsolete.
19661 * modules/strpbrk (Status, Notice): New sections.
19662 * modules/strtok_r (Depends-on): Add strpbrk.
19664 2008-11-02 Bruno Haible <bruno@clisp.org>
19666 Mark 'strdup' obsolete.
19667 * modules/strdup (Status, Notice): New sections.
19668 * modules/findprog (Depends-on): Add strdup.
19669 * modules/getaddrinfo (Depends-on): Likewise.
19670 * modules/localename (Depends-on): Likewise.
19671 * modules/relocatable-lib (Depends-on): Likewise.
19672 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19673 * modules/relocatable-prog (Depends-on): Likewise.
19674 * modules/trim (Depends-on): Likewise.
19675 * modules/unictype/gen-ctype (Depends-on): Likewise.
19676 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19678 2008-11-02 Bruno Haible <bruno@clisp.org>
19680 Mark 'strcspn' obsolete.
19681 * modules/strcspn (Status, Notice): New sections.
19683 2008-11-02 Bruno Haible <bruno@clisp.org>
19685 Mark 'rmdir' obsolete.
19686 * modules/rmdir (Status, Notice): New sections.
19687 * modules/clean-temp (Depends-on): Add rmdir.
19688 * modules/openat (Depends-on): Likewise.
19690 2008-11-02 Bruno Haible <bruno@clisp.org>
19692 Mark 'raise' obsolete.
19693 * modules/raise (Status, Notice): New sections.
19694 (Include): Specify <signal.h>.
19695 * modules/stdio (Depends-on): Add raise.
19696 * modules/write (Depends-on): Likewise.
19698 2008-11-02 Bruno Haible <bruno@clisp.org>
19700 Mark 'memset' obsolete.
19701 * modules/memset (Status, Notice): New sections.
19703 2008-11-02 Bruno Haible <bruno@clisp.org>
19705 Mark 'memmove' obsolete.
19706 * modules/memmove (Status, Notice): New sections.
19707 * modules/argp (Depends-on): Add memmove.
19708 * modules/argz (Depends-on): Likewise.
19709 * modules/canonicalize (Depends-on): Likewise.
19710 * modules/canonicalize-lgpl (Depends-on): Likewise.
19711 * modules/fts (Depends-on): Likewise.
19712 * modules/getcwd (Depends-on): Likewise.
19713 * modules/human (Depends-on): Likewise.
19714 * modules/regex (Depends-on): Likewise.
19715 * modules/striconveh (Depends-on): Likewise.
19716 * modules/trim (Depends-on): Likewise.
19717 * modules/unistr/u8-move (Depends-on): Likewise.
19718 * modules/unistr/u16-move (Depends-on): Likewise.
19719 * modules/unistr/u32-move (Depends-on): Likewise.
19721 2008-11-02 Bruno Haible <bruno@clisp.org>
19723 Mark 'memcpy' obsolete.
19724 * modules/memcpy (Status, Notice): New sections.
19726 2008-11-02 Bruno Haible <bruno@clisp.org>
19728 Mark 'memcmp' obsolete.
19729 * modules/memcmp (Status, Notice): New sections.
19730 * modules/argmatch (Depends-on): Add memchr.
19731 * modules/backupfile (Depends-on): Likewise.
19732 * modules/c-strcasestr (Depends-on): Likewise.
19733 * modules/crypto/des (Depends-on): Likewise.
19734 * modules/csharpcomp (Depends-on): Likewise.
19735 * modules/fnmatch (Depends-on): Likewise.
19736 * modules/git-merge-changelog (Depends-on): Likewise.
19737 * modules/isnand (Depends-on): Likewise.
19738 * modules/isnand-nolibm (Depends-on): Likewise.
19739 * modules/isnanf (Depends-on): Likewise.
19740 * modules/isnanf-nolibm (Depends-on): Likewise.
19741 * modules/isnanl (Depends-on): Likewise.
19742 * modules/isnanl-nolibm (Depends-on): Likewise.
19743 * modules/mbchar (Depends-on): Likewise.
19744 * modules/memcoll (Depends-on): Likewise.
19745 * modules/quotearg (Depends-on): Likewise.
19746 * modules/regex (Depends-on): Likewise.
19747 * modules/relocatable-prog (Depends-on): Likewise.
19748 * modules/same (Depends-on): Likewise.
19749 * modules/signbit (Depends-on): Likewise.
19750 * modules/strcasestr-simple (Depends-on): Likewise.
19751 * modules/unictype/gen-ctype (Depends-on): Likewise.
19752 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19753 * modules/uniname/uniname (Depends-on): Likewise.
19754 * modules/unistr/u8-cmp (Depends-on): Likewise.
19756 2008-11-02 Bruno Haible <bruno@clisp.org>
19758 Mark 'memchr' obsolete.
19759 * modules/memchr (Status, Notice): New sections.
19760 * modules/argp (Depends-on): Add memchr.
19761 * modules/base64 (Depends-on): Likewise.
19762 * modules/c-strcasestr (Depends-on): Likewise.
19763 * modules/chdir-long (Depends-on): Likewise.
19764 * modules/fnmatch (Depends-on): Likewise.
19765 * modules/getsubopt (Depends-on): Likewise.
19766 * modules/git-merge-changelog (Depends-on): Likewise.
19767 * modules/glob (Depends-on): Likewise.
19768 * modules/strcasestr-simple (Depends-on): Likewise.
19769 * modules/strnlen (Depends-on): Likewise.
19771 2008-11-02 Bruno Haible <bruno@clisp.org>
19773 Mark 'atexit' obsolete.
19774 * modules/atexit (Status, Notice): New sections.
19775 * modules/chdir-long (Depends-on): Add atexit.
19776 * modules/wait-process (Depends-on): Likewise.
19778 2008-11-02 Bruno Haible <bruno@clisp.org>
19780 * gnulib-tool: New option --with-obsolete.
19781 (func_usage): Document it.
19782 (func_modules_transitive_closure): Drop obsolete dependencies if
19783 incobsolete is not true.
19784 (func_import): Read and save the incobsolete variable to the cache.
19786 2008-11-02 Bruno Haible <bruno@clisp.org>
19788 * modules/TEMPLATE-EXTENDED: New field 'Status'.
19789 * gnulib-tool: New option --extract-status.
19790 (func_usage): Document it.
19791 (sed_extract_prog): Recognize it.
19792 (func_get_status): New function.
19794 2008-10-30 Simon Josefsson <simon@josefsson.org>
19796 * modules/sockets (License): Change from LGPL to LGPLv2+.
19798 2008-10-28 Simon Josefsson <simon@josefsson.org>
19800 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19802 2008-10-28 Simon Josefsson <simon@josefsson.org>
19804 * MODULES.html.sh (Support for systems lacking POSIX:2001):
19805 Mention times and sys_times.
19806 * modules/sys_times, modules/sys_times-tests: New modules.
19807 * modules/times, modules/times-tests: Likewise
19808 * m4/sys_times_h.m4: New file.
19809 * lib/sys_times.in.h: Likewise
19810 * lib/times.c: Likewise.
19811 * tests/test-sys_times.c: Likewise.
19812 * tests/test-times.c: Likewise.
19813 * doc/posix-headers/sys_times.texi: Update.
19814 * doc/posix-functions/times.texi: Update.
19816 2008-10-28 Jim Meyering <meyering@redhat.com>
19818 * modules/tempname (Depends-on): Add lstat.
19820 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19822 2008-10-28 Simon Josefsson <simon@josefsson.org>
19824 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19825 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19826 using idiom used elsewhere in gnulib.
19828 2008-10-27 Jim Meyering <meyering@redhat.com>
19830 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19832 2008-10-27 Simon Josefsson <simon@josefsson.org>
19834 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19835 TESTS_ENVIRONMENT, for shell scripts that needs to call built
19837 * tests/test-argp-2.sh: Use $EXEEXT when needed.
19839 2008-10-27 Simon Josefsson <simon@josefsson.org>
19841 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19843 2008-10-27 Bruno Haible <bruno@clisp.org>
19845 * tests/test-lstat.c: Include <stdio.h>.
19847 2008-10-27 Simon Josefsson <simon@josefsson.org>
19849 * modules/lstat-tests: New module.
19850 * tests/test-lstat.c: New file.
19852 2008-10-26 Jim Meyering <meyering@redhat.com>
19854 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19856 2008-10-26 Simon Josefsson <simon@josefsson.org>
19857 Bruno Haible <bruno@clisp.org>
19859 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19860 * modules/configmake (Include): Add a note that the include must come
19861 after all system headers.
19862 * lib/javaversion.c: Include configmake.h after all other includes.
19864 2008-10-26 Bruno Haible <bruno@clisp.org>
19866 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19867 HAVE_STRUCT_RANDOM_DATA to 1.
19868 (gl_STDLIB_H): Simplify.
19870 2008-10-26 Simon Josefsson <simon@josefsson.org>
19872 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
19873 substitute HAVE_STRUCT_RANDOM_DATA.
19874 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19876 * modules/stdlib (Makefile.am): Substitute
19877 HAVE_STRUCT_RANDOM_DATA.
19879 2008-10-26 Simon Josefsson <simon@josefsson.org>
19881 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19882 * doc/gnulib-intro.texi (Copyright): Likewise.
19884 2008-10-26 Simon Josefsson <simon@josefsson.org>
19886 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19889 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
19890 Bruno Haible <bruno@clisp.org>
19892 * lib/unistd.in.h: Include <winsock2.h>.
19893 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19894 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19895 Provide dummy declarations.
19896 (gethostname): Override.
19897 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19898 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19899 gl_PREREQ_SYS_H_WINSOCK2.
19900 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19901 * doc/posix-functions/gethostname.texi: More details.
19903 2008-10-25 Bruno Haible <bruno@clisp.org>
19905 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19906 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19907 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19909 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19911 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19912 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19913 gl_UNISTD_H_DEFAULTS.
19915 2008-10-25 Eric Blake <ebb9@byu.net>
19917 signbit: avoid spurious compiler failure
19918 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19919 declarations inside function.
19921 2008-10-24 Simon Josefsson <simon@josefsson.org>
19922 Bruno Haible <bruno@clisp.org>
19924 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19925 * modules/random_r (Depends-on): Add stdint.
19927 2008-10-24 Bruno Haible <bruno@clisp.org>
19929 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19931 * modules/strerror (License): Likewise.
19933 2008-10-24 Jim Meyering <meyering@redhat.com>
19935 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19936 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19938 2008-10-24 Eric Blake <ebb9@byu.net>
19940 getgroups: fix compilation when getgroups is available
19941 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19942 but with <config.h> override of getgroups disabled.
19944 2008-10-24 Simon Josefsson <simon@josefsson.org>
19946 * doc/gnulib.texi (Header files): Add note about C++ problems.
19947 Explained by Bruno Haible <bruno@clisp.org>.
19949 2008-10-23 Bruno Haible <bruno@clisp.org>
19951 Define a dummy SA_NODEFER macro on Interix.
19952 * lib/signal.in.h (SA_NODEFER): Define fallback.
19953 Reported by Aleksey Cheusov <cheusov@tut.by> via
19954 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19956 2008-10-23 Bruno Haible <bruno@clisp.org>
19958 * modules/freadahead (License): Change to LGPLv2+.
19959 Suggested by Simon Josefsson.
19961 2008-10-23 Jim Meyering <meyering@redhat.com>
19963 random_r: new module
19964 * modules/random_r: New file.
19965 * m4/random_r.m4: New file.
19966 * lib/random_r.c: New file, from glibc.
19967 * modules/random_r-tests: New file.
19968 * tests/test-random_r.c: New file.
19969 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19971 (RAND_MAX): Define.
19972 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19973 * modules/stdlib: Substitute them, too.
19974 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19975 * doc/glibc-functions/initstate_r.texi: Mention the new module.
19976 * doc/glibc-functions/random_r.texi: Likewise.
19977 * doc/glibc-functions/setstate_r.texi: Likewise.
19978 * doc/glibc-functions/srandom_r.texi: Likewise.
19979 * config/srclist.txt: Mention it.
19981 2008-10-23 David Lutterkort <lutter@redhat.com>
19983 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19986 2008-10-23 Jim Meyering <meyering@redhat.com>
19988 selinux-h: mark parameters of stub functions as intentionally unused
19989 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19990 * lib/se-context.in.h: Likewise.
19992 2008-10-22 Simon Josefsson <simon@josefsson.org>
19994 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19996 2008-10-22 Simon Josefsson <simon@josefsson.org>
19998 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20000 2008-10-22 Eric Blake <ebb9@byu.net>
20002 glthread/thread: avoid compiler warning
20003 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20004 Add unreachable abort to silence compiler.
20006 2008-10-22 Eric Blake <ebb9@byu.net>
20008 netdb: also supply struct addrinfo for cygwin 1.5.x
20009 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20011 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20013 * doc/posix-headers/netdb.texi (netdb.h): Document this.
20015 2008-10-22 Bruno Haible <bruno@clisp.org>
20017 * users.txt: Update entry about pspp.
20019 2008-10-21 Bruno Haible <bruno@clisp.org>
20022 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20023 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20026 * lib/ioctl.c (ioctl): Don't undefine.
20027 * lib/socket.c (socket): Don't undefine.
20029 Remove unused module indicator macros.
20030 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20031 GNULIB_$1 as a C macro.
20033 * doc/posix-functions/close.texi: Undo last change.
20034 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20037 2008-10-21 Bruno Haible <bruno@clisp.org>
20039 Add gethostname() declaration to <unistd.h>.
20040 * lib/unistd.in.h (gethostname): New declaration.
20041 * lib/gethostname.c: Include <unistd.h>.
20042 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20043 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20044 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20045 and HAVE_GETHOSTNAME.
20046 * modules/gethostname (Depends-on): Add unistd.
20047 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20048 (Include): Specify <unistd.h>.
20049 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20051 * tests/test-gethostname.c: Include <unistd.h> first.
20053 2008-10-21 Bruno Haible <bruno@clisp.org>
20055 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20056 * modules/select-tests (Depends-on): Likewise.
20057 Reported by Simon Josefsson.
20059 2008-10-21 Simon Josefsson <simon@josefsson.org>
20061 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20062 * lib/accept.c: New file, based on winsock.c.
20063 * lib/bind.c: New file, based on winsock.c.
20064 * lib/connect.c: New file, based on winsock.c.
20065 * lib/getpeername.c: New file, based on winsock.c.
20066 * lib/getsockname.c: New file, based on winsock.c.
20067 * lib/getsockopt.c: New file, based on winsock.c.
20068 * lib/ioctl.c: New file, based on winsock.c.
20069 * lib/listen.c: New file, based on winsock.c.
20070 * lib/recv.c: New file, based on winsock.c.
20071 * lib/recvfrom.c: New file, based on winsock.c.
20072 * lib/send.c: New file, based on winsock.c.
20073 * lib/sendto.c: New file, based on winsock.c.
20074 * lib/setsockopt.c: New file, based on winsock.c.
20075 * lib/shutdown.c: New file, based on winsock.c.
20076 * lib/socket.c: New file, based on winsock.c.
20077 * lib/w32sock.h: New file, based on winsock.c.
20078 * lib/winsock.c: Remove file.
20079 * modules/accept: Likewise.
20080 * modules/bind: Likewise.
20081 * modules/connect: Likewise.
20082 * modules/getpeername: Likewise.
20083 * modules/getsockname: Likewise.
20084 * modules/getsockopt: Likewise.
20085 * modules/ioctl: Likewise.
20086 * modules/listen: Likewise.
20087 * modules/recv: Likewise.
20088 * modules/recvfrom: Likewise.
20089 * modules/send: Likewise.
20090 * modules/sendto: Likewise.
20091 * modules/setsockopt: Likewise.
20092 * modules/shutdown: Likewise.
20093 * modules/socket: Use socket.c instead of winsock.c.
20094 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20095 * doc/posix-functions/accept.texi: Doc fix.
20096 * doc/posix-functions/bind.texi: Doc fix.
20097 * doc/posix-functions/close.texi: Doc fix.
20098 * doc/posix-functions/connect.texi: Doc fix.
20099 * doc/posix-functions/getpeername.texi: Doc fix.
20100 * doc/posix-functions/getsockname.texi: Doc fix.
20101 * doc/posix-functions/getsockopt.texi: Doc fix.
20102 * doc/posix-functions/ioctl.texi: Doc fix.
20103 * doc/posix-functions/listen.texi: Doc fix.
20104 * doc/posix-functions/recv.texi: Doc fix.
20105 * doc/posix-functions/recvfrom.texi: Doc fix.
20106 * doc/posix-functions/send.texi: Doc fix.
20107 * doc/posix-functions/sendto.texi: Doc fix.
20108 * doc/posix-functions/setsockopt.texi: Doc fix.
20109 * doc/posix-functions/shutdown.texi: Doc fix.
20110 * doc/posix-functions/socket.texi: Doc fix.
20112 2008-10-20 Bruno Haible <bruno@clisp.org>
20114 Take into account the role of SIGABRT_COMPAT on Windows 2008.
20115 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20116 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20117 as an alias for SIGABRT.
20118 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20119 (sigaction): Map it to SIGABRT.
20120 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20122 2008-10-20 Bruno Haible <bruno@clisp.org>
20124 * lib/fts.c: Don't include lstat.h.
20125 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20127 Move the lstat() declaration to <sys/stat.h>.
20128 * lib/lstat.h: Remove file.
20129 * lib/sys_stat.in.h: Add special invocation convention.
20130 (lstat): New declaration.
20131 * lib/lstat.c (orig_lstat): New function.
20132 (rpl_lstat): Use orig_lstat instead of lstat.
20133 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20134 AC_C_INLINE. Set REPLACE_LSTAT.
20135 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20137 * modules/lstat (Files): Remove lib/lstat.h.
20138 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20139 (Include): Specify <sys/stat.h> instead of lstat.h.
20140 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20142 * NEWS: Mention the change.
20144 2008-10-20 Bruno Haible <bruno@clisp.org>
20146 * modules/posix_spawn-tests: New file.
20147 * tests/test-posix_spawn3.c: New file.
20149 2008-10-20 Bruno Haible <bruno@clisp.org>
20151 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20152 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20153 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20154 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20155 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20157 2008-10-20 Bruno Haible <bruno@clisp.org>
20159 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20160 of posix_spawn on AIX 5.3.
20162 2008-10-20 Bruno Haible <bruno@clisp.org>
20164 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20166 2008-10-20 Bruno Haible <bruno@clisp.org>
20168 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20169 of AC_LANG_PROGRAM.
20171 2008-10-20 Simon Josefsson <simon@josefsson.org>
20173 * lib/netdb.in.h: Don't define GNU specific constants until they
20174 are supported or needed. Reported by Bruno Haible
20177 2008-10-20 Simon Josefsson <simon@josefsson.org>
20179 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20181 2008-10-20 Simon Josefsson <simon@josefsson.org>
20183 * lib/getaddrinfo.h: Remove file.
20184 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20185 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
20186 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20187 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20188 * modules/netdb: Substitute GNULIB_GETADDRINFO.
20189 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20190 * tests/test-getaddrinfo.c: Likewise.
20191 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
20192 * NEWS: Mention change.
20194 2008-10-19 Bruno Haible <bruno@clisp.org>
20196 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20198 2008-10-19 Bruno Haible <bruno@clisp.org>
20200 * lib/wait-process.c: Include simply <sys/wait.h>.
20201 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20202 WIFSTOPPED): Remove fallback definitions.
20203 * modules/wait-process (Depends-on): Add sys_wait.
20205 New module 'sys_wait'.
20206 * modules/sys_wait: New file.
20207 * lib/sys_wait.in.h: New file, partially copied from
20208 lib/wait-process.c.
20209 * m4/sys_wait_h.m4: New file.
20210 * doc/posix-headers/sys_wait.texi: Mention the new module.
20212 2008-10-19 Bruno Haible <bruno@clisp.org>
20214 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20216 2008-10-19 Bruno Haible <bruno@clisp.org>
20218 Assume that waitpid() fills an 'int' status, not a 'union wait'.
20219 * lib/wait-process.c (WAIT_T): Remove type.
20220 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20221 (wait_subprocess): Update.
20223 2008-10-19 Bruno Haible <bruno@clisp.org>
20225 New module 'atoll'.
20226 * modules/atoll: New file.
20227 * lib/stdlib.in.h (atoll): New declaration.
20228 * lib/atoll.c: New file, from glibc with modifications.
20229 * m4/atoll.m4: New file.
20230 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20232 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20233 * doc/posix-functions/atoll.texi: Mention the new module.
20235 2008-10-19 Bruno Haible <bruno@clisp.org>
20237 Add strtoull() declaration to <stdlib.h>.
20238 * lib/stdlib.in.h (strtoull): New declaration.
20239 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20241 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20243 * modules/strtoull (Depends-on): Add stdlib.
20244 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20245 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20248 2008-10-19 Bruno Haible <bruno@clisp.org>
20250 Add strtoll() declaration to <stdlib.h>.
20251 * lib/stdlib.in.h (strtoll): New declaration.
20252 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20254 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20256 * modules/strtoll (Depends-on): Add stdlib.
20257 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20258 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20260 2008-10-19 Bruno Haible <bruno@clisp.org>
20262 * modules/bcopy (Depends-on): Add strings.
20263 (Include): Specify <strings.h>.
20265 2008-10-19 Bruno Haible <bruno@clisp.org>
20267 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20269 2008-10-19 Bruno Haible <bruno@clisp.org>
20271 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20272 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20275 2008-10-19 Bruno Haible <bruno@clisp.org>
20277 * lib/atanl.c: Don't include isnanl.h.
20278 * lib/cosl.c: Likewise.
20279 * lib/ldexpl.c: Likewise.
20280 * lib/logl.c: Likewise.
20281 * lib/sinl.c: Likewise.
20282 * lib/sqrtl.c: Likewise.
20283 * lib/tanl.c: Likewise.
20285 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20286 * lib/isnanf.h: Remove file.
20287 * lib/isnand.h: Remove file.
20288 * lib/isnanl.h: Remove file.
20289 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20290 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20292 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20293 HAVE_ISNANF, don't define it as a C macro.
20294 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20295 HAVE_ISNAND, don't define it as a C macro.
20296 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20297 HAVE_ISNANL, don't define it as a C macro.
20298 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20300 * modules/isnanf (Files): Remove lib/isnanf.h.
20301 (Depends-on): Add math.
20302 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20303 (Include): Specify <math.h> instead of isnanf.h.
20304 * modules/isnand (Files): Remove lib/isnand.h.
20305 (Depends-on): Add math.
20306 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20307 (Include): Specify <math.h> instead of isnand.h.
20308 * modules/isnanl (Files): Remove lib/isnanl.h.
20309 (Depends-on): Add math.
20310 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20311 (Include): Specify <math.h> instead of isnanl.h.
20312 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20314 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20315 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20316 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20317 * NEWS: Mention the change.
20319 2008-10-18 Bruno Haible <bruno@clisp.org>
20321 Add getusershell(), setusershell(), endusershell() declarations to
20323 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20325 * lib/getusershell.c: Include unistd.h.
20326 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20327 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20329 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20330 and HAVE_GETUSERSHELL.
20331 * modules/getusershell (Depends-on): Add unistd, extensions.
20332 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20333 (Include): Specify <unistd.h>.
20334 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20337 2008-10-18 Bruno Haible <bruno@clisp.org>
20339 Add a getloadavg() declaration to <stdlib.h>.
20340 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20341 getloadavg declaration.
20342 (getloadavg): New declaration.
20343 * lib/getloadavg.c: Include <stdlib.h> first.
20344 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20345 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20346 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20347 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20348 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20349 * modules/getloadavg (Depends-on): Add stdlib, extensions.
20350 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20351 (Include): Specify <stdlib.h>.
20352 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20353 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20355 2008-10-18 Bruno Haible <bruno@clisp.org>
20357 * lib/dirchownmod.c: Don't include lchmod.h.
20359 Move the lchmod() declaration to <sys/stat.h>.
20360 * lib/lchmod.h: Remove file.
20361 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20362 (lchmod): New declaration, moved here from lib/lchown.h.
20363 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20364 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20365 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20367 * modules/lchmod (Files): Remove lib/lchmod.h.
20368 (Depends-on): Add sys_stat, extensions.
20369 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20370 (Include): Specify <sys/stat.h> instead of lchmod.h.
20371 * modules/sys_stat (Depends-on): Add link-warning.
20372 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20373 definition of GL_LINK_WARNING.
20374 * NEWS: Mention the change.
20376 2008-10-18 Bruno Haible <bruno@clisp.org>
20378 * lib/fchdir.c: Don't include dirfd.h.
20379 * lib/fts.c: Likewise.
20380 * lib/getcwd.c: Likewise.
20381 * lib/glob.c: Likewise.
20383 Move the dirfd() declaration to <dirent.h>.
20384 * lib/dirfd.h: Remove file.
20385 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20386 (dirfd): New declaration.
20387 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20388 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20389 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20391 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20393 * modules/dirfd (Files): Remove lib/dirfd.h.
20394 (Depends-on): Add dirent, extensions.
20395 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20396 (Include): Specify <dirent.h> instead of dirfd.h.
20397 * modules/dirent (Depends-on): Add link-warning.
20398 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20399 definition of GL_LINK_WARNING.
20400 * NEWS: Mention the change.
20402 2008-10-18 Bruno Haible <bruno@clisp.org>
20404 Move the euidaccess() declaration to <unistd.h>.
20405 * lib/euidaccess.h: Remove file.
20406 * lib/unistd.in.h (euidaccess): New declaration.
20407 * lib/euidaccess.c: Don't include euidaccess.h.
20408 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20409 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20410 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20411 and HAVE_EUIDACCESS.
20412 * modules/euidaccess (Files): Remove lib/euidaccess.h.
20413 (Depends-on): Add unistd.
20414 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20415 (Include): Specify <unistd.h> instead of euidaccess.h.
20416 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20418 * NEWS: Mention the change.
20420 2008-10-18 Bruno Haible <bruno@clisp.org>
20422 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20424 Move the getdomainname() declaration to <unistd.h>.
20425 * lib/getdomainname.h: Remove file.
20426 * lib/unistd.in.h (getdomainname): New declaration.
20427 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20428 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20429 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20430 HAVE_GETDOMAINNAME.
20431 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20432 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20433 * modules/getdomainname (Files): Remove lib/getdomainname.h.
20434 (Depends-on): Add unistd, extensions.
20435 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20436 (Includes): Specify <unistd.h> instead of getdomainname.h.
20437 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20438 HAVE_GETDOMAINNAME.
20439 * NEWS: Mention the change.
20441 2008-10-18 Bruno Haible <bruno@clisp.org>
20443 * modules/dirent: New file.
20444 * m4/dirent_h.m4: New file.
20445 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20446 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20447 * modules/fchdir (Files): Remove lib/dirent.in.h.
20448 (Depends-on): Add dirent.
20449 (Makefile.am): Move rules to modules/dirent.
20450 * doc/posix-headers/dirent.texi: Mention the new module.
20452 2008-10-18 Bruno Haible <bruno@clisp.org>
20454 Avoid -Wunused-parameter warnings in public gnulib header files.
20455 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20457 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20459 2008-10-18 Bruno Haible <bruno@clisp.org>
20461 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20462 * doc/glibc-functions/error.texi: Mention the module 'error'.
20463 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20464 * doc/glibc-functions/getdomainname.texi: Mention the module
20466 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20467 * doc/glibc-functions/getpagesize.texi: Mention the module
20469 * doc/glibc-functions/getusershell.texi: Mention the module
20471 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20472 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20473 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20474 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20475 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20476 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20477 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20478 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20479 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20480 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20481 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20482 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20483 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20484 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20486 2008-10-17 Bruno Haible <bruno@clisp.org>
20488 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20489 HP-UX and IRIX, use -0.0L.
20490 * tests/test-ceill.c (minus_zero): Likewise.
20491 * tests/test-floorl.c (minus_zero): Likewise.
20492 * tests/test-frexpl.c (minus_zero): Likewise.
20493 * tests/test-isnan.c (minus_zerol): Likewise.
20494 * tests/test-isnanl.h (minus_zero): Likewise.
20495 * tests/test-ldexpl.c (minus_zero): Likewise.
20496 * tests/test-roundl.c (minus_zero): Likewise.
20497 * tests/test-signbit.c (minus_zerol): Likewise.
20498 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20499 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20500 * tests/test-truncl.c (minus_zero): Likewise.
20501 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20502 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20503 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20504 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20506 2008-10-17 Bruno Haible <bruno@clisp.org>
20508 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20509 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20510 that it gets activated only for gcc >= 3.0.
20511 * lib/dirent.in.h: Likewise.
20512 * lib/errno.in.h: Likewise.
20513 * lib/fcntl.in.h: Likewise.
20514 * lib/float.in.h: Likewise.
20515 * lib/iconv.in.h: Likewise.
20516 * lib/inttypes.in.h: Likewise.
20517 * lib/locale.in.h: Likewise.
20518 * lib/math.in.h: Likewise.
20519 * lib/netdb.in.h: Likewise.
20520 * lib/netinet_in.in.h: Likewise.
20521 * lib/search.in.h: Likewise.
20522 * lib/signal.in.h: Likewise.
20523 * lib/spawn.in.h: Likewise.
20524 * lib/stdarg.in.h: Likewise.
20525 * lib/stdint.in.h: Likewise.
20526 * lib/stdio.in.h: Likewise.
20527 * lib/stdlib.in.h: Likewise.
20528 * lib/string.in.h: Likewise.
20529 * lib/strings.in.h: Likewise.
20530 * lib/sys_file.in.h: Likewise.
20531 * lib/sys_ioctl.in.h: Likewise.
20532 * lib/sys_select.in.h: Likewise.
20533 * lib/sys_socket.in.h: Likewise.
20534 * lib/sys_stat.in.h: Likewise.
20535 * lib/sys_time.in.h: Likewise.
20536 * lib/sysexits.in.h: Likewise.
20537 * lib/time.in.h: Likewise.
20538 * lib/unistd.in.h: Likewise.
20539 * lib/wchar.in.h: Likewise.
20540 * lib/wctype.in.h: Likewise.
20541 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20543 2008-10-17 Jim Meyering <meyering@redhat.com>
20545 ignore-value: don't depend on inline module
20546 * modules/ignore-value (Depends-on): Remove 'inline'.
20547 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20548 Suggestion from Bruno Haible.
20550 2008-10-17 Bruno Haible <bruno@clisp.org>
20552 New implementation of condition variables for Win32.
20553 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20554 (gl_linked_waitqueue_t): New type.
20555 (gl_cond_t): Use it.
20556 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20557 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20558 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20559 (glthread_cond_init_func, glthread_cond_wait_func,
20560 glthread_cond_timedwait_func, glthread_cond_signal_func,
20561 glthread_cond_broadcast_func, glthread_cond_destroy_func):
20562 Reimplemented on the basis of gl_linked_waitqueue_t.
20563 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20565 (gl_rwlock_t): Update.
20566 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20568 2008-10-17 Simon Josefsson <simon@josefsson.org>
20570 * modules/recvfrom (Depends-on): Add dependency on getpeername.
20571 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20573 2008-10-17 Jim Meyering <meyering@redhat.com>
20575 ignore-value: new module
20576 * modules/ignore-value: New file.
20577 * lib/ignore-value.h: New file.
20578 * MODULES.html.sh (Compiler warning management): New section,
20579 just for this module. More to come.
20581 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
20583 open-safer.c: avoid 'signed and unsigned in conditional...' warning
20584 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20585 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
20587 2008-10-16 Jim Meyering <meyering@redhat.com>
20589 openat-die.c: avoid 'no previous prototype' warning
20590 * lib/openat-die.c: Include "openat.h".
20591 Reported by Reuben Thomas <rrt@sc3d.org>.
20593 2008-10-16 Simon Josefsson <simon@josefsson.org>
20595 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20596 * lib/netdb.in.h: Fix typo.
20597 Reported by Bruno Haible <bruno@clisp.org>
20599 * lib/netdb.in.h: Include sys/socket.h for platforms without
20600 netdb.h, to get structures like hostent on MinGW.
20601 * modules/netdb (Depends-on): Add sys_socket.
20603 2008-10-15 Simon Josefsson <simon@josefsson.org>
20605 * modules/netdb, modules/netdb-tests: New file.
20606 * m4/netdb_h.m4: New file.
20607 * lib/netdb.in.h: Add, currently just an empty file pending
20609 * tests/test-netdb.c: New file.
20610 * doc/posix-headers/netdb.texi: Mention that we replace it if
20612 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20615 2008-10-15 Simon Josefsson <simon@josefsson.org>
20617 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20620 2008-10-13 Bruno Haible <bruno@clisp.org>
20622 * lib/glthread/cond.c (glthread_cond_wait_func,
20623 glthread_cond_timedwait_func): Add a comment.
20625 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
20627 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20628 * tests/test-select.c: Likewise,
20630 2008-10-13 Bruno Haible <bruno@clisp.org>
20632 * lib/glthread/cond.c (glthread_cond_wait_func,
20633 glthread_cond_timedwait_func): Fix variable name.
20634 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20636 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
20638 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20639 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20640 struct sockaddr.sa_len.
20641 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20643 2008-10-13 Simon Josefsson <simon@josefsson.org>
20645 * build-aux/pmccabe2html: Add css and css_url parameters.
20647 2008-10-12 Bruno Haible <bruno@clisp.org>
20649 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20651 Reported by Rainer Tammer <tammer@tammer.net>.
20653 2008-10-12 Bruno Haible <bruno@clisp.org>
20655 Use msvcrt aware primitives for creation/termination of Win32 threads.
20656 * lib/glthread/thread.c: Include <process.h>.
20657 (glthread_create_func): Use _beginthreadex instead of CreateThread.
20658 (wrapper_func): Update signature.
20659 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20661 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
20662 Bruno Haible <bruno@clisp.org>
20664 Provide a Win32 implementation of the 'cond' module.
20665 * lib/glthread/cond.h [USE_WIN32]: New implementation.
20666 * lib/glthread/cond.c (glthread_cond_init_func,
20667 glthread_cond_wait_func, glthread_cond_timedwait_func,
20668 glthread_cond_signal_func, glthread_cond_broadcast_func,
20669 glthread_cond_destroy_func) [USE_WIN32]: New functions.
20670 * modules/cond (Dependencies): Add gettimeofday.
20672 2008-10-11 Bruno Haible <bruno@clisp.org>
20674 Make sleep work on older versions of mingw.
20675 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20676 only whether it exists.
20677 * doc/posix-functions/sleep.texi: Mention the problem with older
20680 2008-10-11 Bruno Haible <bruno@clisp.org>
20682 New module 'shutdown'.
20683 * modules/shutdown: New file.
20684 * lib/sys_socket.in.h (shutdown): New declaration.
20685 * lib/winsock.c (shutdown): New function.
20686 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20688 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20689 * doc/posix-functions/shutdown.texi: Document the new module.
20691 2008-10-11 Jim Meyering <meyering@redhat.com>
20693 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20695 2008-10-11 Bruno Haible <bruno@clisp.org>
20697 New module 'fclose'.
20698 * modules/fclose: New file.
20699 * lib/stdio.in.h (fclose): New declaration.
20700 * lib/fclose.c: New file.
20701 * m4/fclose.m4: New file.
20702 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20704 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20705 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20707 * modules/close (Depends-on): fclose.
20708 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20710 2008-10-11 Bruno Haible <bruno@clisp.org>
20712 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20713 set errno and don't call _close.
20715 2008-10-10 Bruno Haible <bruno@clisp.org>
20717 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20718 ACL, not afterwards. Fixes test failure on Cygwin.
20720 2008-10-09 Ben Pfaff <blp@gnu.org>
20722 * build-aux/announce-gen: Fix gnulib version related part of usage
20723 message. Die with a useful error message if no tarballs are
20726 2008-10-10 Jim Meyering <meyering@redhat.com>
20728 bootstrap: use git's --depth=N option only if it's supported
20729 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20730 recognize the --depth option. Reported by Pádraig Brady.
20732 2008-10-09 Bruno Haible <bruno@clisp.org>
20734 New module 'ioctl'.
20735 * modules/ioctl: New file.
20736 * lib/sys_socket.in.h (ioctl): Remove declaration.
20737 * lib/winsock.c: Include <sys/ioctl.h>.
20738 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20739 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20740 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20741 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20742 * doc/posix-functions/ioctl.texi: Mention the new module.
20744 2008-10-09 Bruno Haible <bruno@clisp.org>
20746 New module 'sys_ioctl'.
20747 * lib/sys_ioctl.in.h: New file.
20748 * m4/sys_ioctl_h.m4: New file.
20749 * modules/sys_ioctl: New file.
20750 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20752 2008-10-09 Bruno Haible <bruno@clisp.org>
20754 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20755 * lib/winsock.c: Include <stdarg.h>.
20756 (rpl_ioctl): Change to second argument 'int' and then varargs.
20758 2008-10-09 Bruno Haible <bruno@clisp.org>
20760 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20761 when the sys_socket module is present and the system has <winsock2.h>.
20763 2008-10-09 Bruno Haible <bruno@clisp.org>
20765 * doc/posix-functions/close.texi: Mention module 'close' instead of
20766 module 'sys_socket'.
20768 2008-10-09 Bruno Haible <bruno@clisp.org>
20770 * doc/glibc-headers/sys_ioctl.texi: New file.
20771 * doc/gnulib.texi: Include it.
20773 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20774 Bruno Haible <bruno@clisp.org>
20776 Combine the two replacements of 'close'.
20777 * lib/sys_socket.in.h (close): Define to a reminder to include
20779 (_gl_close_fd_maybe_socket): New declaration.
20780 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20781 * lib/winsock.c (close): Remove undefinition.
20782 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20783 needed for the gnulib module 'close'.
20784 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20785 define to an error symbol or to a warning, if suitable.
20786 * lib/close.c: Include <sys/socket.h>.
20787 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20788 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20789 UNISTD_H_HAVE_WINSOCK2_H.
20790 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20791 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20792 UNISTD_H_HAVE_WINSOCK2_H.
20793 * modules/sys_socket (Files): Add m4/unistd_h.m4.
20794 (configure.ac): Set a module indicator.
20795 (Makefile.am): Substitute GNULIB_CLOSE.
20796 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20797 * modules/poll-tests (Depends-on): Add close.
20798 * modules/select-tests (Depends-on): Likewise.
20800 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20801 Bruno Haible <bruno@clisp.org>
20803 New module 'close'.
20804 * modules/close: New file.
20805 * lib/unistd.in.h (close): Move declaration out of the
20806 FCHDIR_REPLACEMENT scope.
20807 (_gl_unregister_fd): New declaration.
20808 * lib/close.c: New file.
20809 * lib/fchdir.c (rpl_close): Remove function.
20810 * m4/close.m4: New file.
20811 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20813 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20815 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20817 * modules/fchdir (Depends-on): Add close.
20819 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20820 Bruno Haible <bruno@clisp.org>
20822 * lib/fcntl.in.h (open): Simplify conditionals.
20823 (_gl_register_fd): New declaration.
20824 * lib/fchdir.c (rpl_open): Remove function.
20825 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20827 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20828 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20831 2008-10-09 Jim Meyering <meyering@redhat.com>
20833 GNUmakefile: use the more name-space-friendly "_version"
20834 * top/GNUmakefile (_dummy): Update.
20835 (_version): Rename from "version".
20837 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20838 Bruno Haible <bruno@clisp.org>
20840 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20842 (_gl_register_fd): New function, extracted from rpl_open.
20843 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20844 (rpl_open, rpl_opendir): Use _gl_register_fd.
20846 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
20848 Fix organization of 'open' replacement.
20849 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20850 (gl_FUNC_OPEN): Use it.
20851 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20853 2008-10-08 Bruno Haible <bruno@clisp.org>
20855 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20857 2008-10-08 Simon Josefsson <simon@josefsson.org>
20859 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
20860 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20863 2008-10-08 Eric Blake <ebb9@byu.net>
20865 GNUmakefile: add 'make version' target
20866 * top/GNUmakefile (_curr-ver): Split version update rules...
20867 (version): ...into a target.
20869 2008-10-07 Bruno Haible <bruno@clisp.org>
20871 Use a more portable replacement expression for -0.0L.
20872 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20873 instead of -0.0L. Fix m4 quotation.
20875 * tests/test-signbit.c: Include <float.h>.
20876 (minus_zero): New variable.
20877 (test_signbitl): Use minus_zero instead of -zero.
20878 * modules/signbit-tests (Depends-on): Add float.
20880 * tests/test-ceill.c: Include <float.h>.
20881 (zero): Remove variable.
20882 (minus_zero): New variable.
20883 (main): Use minus_zero instead of -zero.
20884 * modules/ceill-tests (Depends-on): Add float.
20886 * tests/test-floorl.c: Include <float.h>.
20887 (zero): Remove variable.
20888 (minus_zero): New variable.
20889 (main): Use minus_zero instead of -zero.
20890 * modules/floorl-tests (Depends-on): Add float.
20892 * tests/test-roundl.c: Include <float.h>.
20893 (zero): Remove variable.
20894 (minus_zero): New variable.
20895 (main): Use minus_zero instead of -zero.
20896 * modules/roundl-tests (Depends-on): Add float.
20898 * tests/test-truncl.c: Include <float.h>.
20899 (zero): Remove variable.
20900 (minus_zero): New variable.
20901 (main): Use minus_zero instead of -zero.
20902 * modules/truncl-tests (Depends-on): Add float.
20904 * tests/test-frexpl.c (zero): Remove variable.
20905 (minus_zero): New variable.
20906 (main): Use minus_zero instead of -zero.
20907 * modules/frexpl-tests (Depends-on): Add float.
20909 * tests/test-isnan.c (zerol): Remove variable.
20910 (minus_zerol): New variable.
20911 (test_long_double): Use minus_zerol instead of -zerol.
20912 * modules/isnan-tests (Depends-on): Add float.
20914 * tests/test-isnanl.h (zero): Remove variable.
20915 (minus_zero): New variable.
20916 (main): Use minus_zero instead of -zero.
20917 * modules/isnanl-nolibm-tests (Depends-on): Add float.
20918 * modules/isnanl-tests (Depends-on): Add float.
20920 * tests/test-ldexpl.c (zero): Remove variable.
20921 (minus_zero): New variable.
20922 (main): Use minus_zero instead of -zero.
20923 * modules/ldexpl-tests (Depends-on): Add float.
20925 * tests/test-snprintf-posix.h (zerol): Remove variable.
20926 (minus_zerol): New variable.
20927 (test_function): Use minus_zerol instead of -zerol.
20928 * modules/snprintf-posix-tests (Depends-on): Add float.
20929 * modules/vsnprintf-posix-tests (Depends-on): Add float.
20931 * tests/test-sprintf-posix.h (zerol): Remove variable.
20932 (minus_zerol): New variable.
20933 (test_function): Use minus_zerol instead of -zerol.
20934 * modules/sprintf-posix-tests (Depends-on): Add float.
20935 * modules/vsprintf-posix-tests (Depends-on): Add float.
20937 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20938 (minus_zerol): New variable.
20939 (test_function): Use minus_zerol instead of -zerol.
20940 * modules/vasnprintf-posix-tests (Depends-on): Add float.
20942 * tests/test-vasprintf-posix.c (zerol): Remove variable.
20943 (minus_zerol): New variable.
20944 (test_function): Use minus_zerol instead of -zerol.
20945 * modules/vasprintf-posix-tests (Depends-on): Add float.
20947 2008-10-07 Simon Josefsson <simon@josefsson.org>
20949 * MODULES.html.sh (Support for building documentation): Mention
20950 pmccabe2html. Sort entries.
20952 Add pmccabe2html module, from gnupdf.
20953 * build-aux/pmccabe.css: New file.
20954 * build-aux/pmccabe2html: New file.
20955 * m4/pmccabe2html.m4: New file.
20956 * modules/pmccabe2html: New file.
20958 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
20961 * MODULES.html.sh: Add to list of modules.
20962 * lib/flock.c: flock implementation for Windows and Unix systems
20964 * doc/glibc-functions/flock.texi: Update documentation.
20965 * lib/sys_file.in.h: <sys/file.h> header file.
20966 * m4/flock.m4: M4 macros.
20967 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20968 * modules/flock: flock module.
20969 * modules/flock-tests: flock tests module.
20970 * modules/sys_file: sys/file.h module.
20971 * tests/test-flock.c: test suite for flock.
20973 2008-10-06 Jim Meyering <meyering@redhat.com>
20975 bootstrap: check for LT_INIT more portably still ;-)
20976 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20977 Spotted by Bruno Haible.
20979 2008-10-06 Eric Blake <ebb9@byu.net>
20981 test-signbit: avoid tripping Irix cc bug on -0.0L
20982 * tests/test-signbit.c (minus_zerol): Delete, and replace with
20983 '-zerol'. This may break on HP-UX/hppa, but at least makes the
20984 entire testsuite consistent and avoids an Irix 6.2 bug.
20986 2008-10-05 Bruno Haible <bruno@clisp.org>
20987 Jim Meyering <jim@meyering.net>
20989 Add an option for ignoring EPIPE during close_stdout.
20990 * lib/closeout.h: Include <stdbool.h>.
20991 (close_stdout_set_ignore_EPIPE): New declaration.
20992 * lib/closeout.c: Include <stdbool.h>.
20993 (ignore_EPIPE): New variable.
20994 (close_stdout_set_ignore_EPIPE): New function.
20995 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20996 * lib/close-stream.c (close_stream): Mention the possible EPIPE
20998 * modules/closeout (Depends-on): Add stdbool.
21000 2008-10-05 Bruno Haible <bruno@clisp.org>
21002 * modules/accept: New file.
21003 * modules/bind: New file.
21004 * modules/connect: New file.
21005 * modules/getpeername: New file.
21006 * modules/getsockname: New file.
21007 * modules/getsockopt: New file.
21008 * modules/listen: New file.
21009 * modules/recv: New file.
21010 * modules/recvfrom: New file.
21011 * modules/send: New file.
21012 * modules/sendto: New file.
21013 * modules/setsockopt: New file.
21014 * modules/socket: New file.
21015 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21016 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21017 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21018 the particular module is requested. Add a link warning when the
21019 particular module is not requested.
21020 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21021 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21022 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21023 the particular module is requested.
21024 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21025 gl_SYS_SOCKET_H_DEFAULTS): New macros.
21026 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21027 * modules/sys_socket (Depends-on): Add link-warning.
21028 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21029 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21030 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21031 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21033 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21034 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21035 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21036 * doc/posix-functions/getpeername.texi: Mention the new module
21038 * doc/posix-functions/getsockname.texi: Mention the new module
21040 * doc/posix-functions/getsockopt.texi: Mention the new module
21042 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21043 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21044 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21045 * doc/posix-functions/send.texi: Mention the new module 'send'.
21046 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21047 * doc/posix-functions/setsockopt.texi: Mention the new module
21049 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21050 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21051 listen, connect, accept.
21052 * modules/select-tests (Depends-on): Likewise.
21054 2008-10-05 Bruno Haible <bruno@clisp.org>
21056 * lib/winsock.c (strerror): Remove unused #undef.
21057 (rpl_close): Remove unused local variable.
21059 * modules/sys_socket (Depends-on); Add errno.
21061 2008-10-05 Bruno Haible <bruno@clisp.org>
21063 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21064 (select): Add a link warning when the 'select' module is not used.
21065 * modules/sys_select (Depends-on): Add link-warning.
21066 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21067 Suggested by Paolo Bonzini.
21069 2008-10-05 Jim Meyering <meyering@redhat.com>
21071 bootstrap: check for LT_INIT more portably
21072 * build-aux/bootstrap: Avoid using grep -E, since it's not
21073 portable enough. Suggestion from Bruno Haible.
21075 2008-10-05 Bruno Haible <bruno@clisp.org>
21077 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21078 as being fixed by gnulib.
21080 2008-10-05 Bruno Haible <bruno@clisp.org>
21082 * modules/select-tests: New file, mostly copied from
21083 modules/sys_select-tests.
21084 * tests/test-select.c: New file, mostly copied from
21085 tests/test-sys_select.c.
21086 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21087 * modules/sys_select-tests (Depends-on): Remove all dependencies.
21088 (Makefile.am): Remove test_sys_select_LDADD.
21090 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21091 to an undefined symbol, for an error message.
21092 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21093 (gl_SYS_SELECT_H_DEFAULTS): New macro.
21094 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21095 winsock-select.c here.
21096 * modules/sys_select (Files): Remove lib/winsock-select.c.
21097 (Depends-on): Remove alloca.
21098 (Makefile.am): Substitute GNULIB_SELECT.
21099 * modules/select: New file.
21100 * doc/posix-functions/select.texi: Update.
21102 2008-10-05 Bruno Haible <bruno@clisp.org>
21104 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21105 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21106 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21107 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21109 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21110 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21112 2008-10-05 Bruno Haible <bruno@clisp.org>
21114 * modules/getdtablesize-tests: New file.
21115 * tests/test-getdtablesize.c: New file.
21117 New module 'getdtablesize'.
21118 * lib/unistd.in.h (getdtablesize): New declaration.
21119 * lib/getdtablesize.c: New file.
21120 * m4/getdtablesize.m4: New file.
21121 * modules/getdtablesize: New file.
21122 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21123 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21124 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21125 HAVE_GETDTABLESIZE.
21126 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21128 2008-10-05 Bruno Haible <bruno@clisp.org>
21130 * modules/sched (Makefile.am): Fix typo.
21131 Reported by Simon Josefsson.
21133 2008-10-05 Jim Meyering <meyering@redhat.com>
21135 bootstrap: check for LT_INIT, too
21136 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21137 are deprecated. Suggestion from Ralf Wildenhues.
21139 2008-10-05 Bruno Haible <bruno@clisp.org>
21141 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21142 overriding them by ours.
21143 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21145 2008-10-05 Jim Meyering <meyering@redhat.com>
21147 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21148 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21149 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
21151 2008-10-04 Bruno Haible <bruno@clisp.org>
21153 * modules/dup2 (License): Change to LGPLv2+.
21154 * modules/sleep (License): Likewise.
21155 * modules/perror (License): Likewise.
21156 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21158 * modules/signal (License): Likewise.
21159 * modules/sigprocmask (License): Likewise.
21160 * modules/raise (License): Change to LGPLv2+, with approval by Jim
21163 2008-10-04 Bruno Haible <bruno@clisp.org>
21165 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21166 Reported by Rainer Tammer <tammer@tammer.net>.
21168 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
21169 Bruno Haible <bruno@clisp.org>
21171 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21172 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21173 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21175 2008-10-03 Kamil Dudka <kdudka@redhat.com>
21177 filevercmp: new module
21178 * lib/filevercmp.h: New function filevercmp comparing version strings.
21179 * lib/filevercmp.c: Implementation of filevercmp function.
21180 * modules/filevercmp: Module metadata.
21181 * tests/test-filevercmp.c: Unit test for new module.
21182 * modules/filevercmp-tests: Unit test metadata.
21183 * MODULES.html.sh: Add filevercmp module.
21185 2008-10-03 Bruno Haible <bruno@clisp.org>
21187 * lib/c-ctype.h: Add comment.
21188 Reported by Jim Meyering.
21190 2008-10-02 Bruno Haible <bruno@clisp.org>
21192 * modules/posix_spawn-internal (Depends-on): Add 'open'.
21194 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
21196 * build-aux/bootstrap: Allow renaming bootstrap, and change the
21197 name of bootstrap.conf accordingly.
21199 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
21201 * build-aux/bootstrap: Install git-merge-changelog configuration
21202 items into .gitconfig if needed.
21204 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
21206 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21207 git repository, and initialize/update it accordingly.
21209 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
21211 * modules/fsync-tests: New file.
21212 * tests/test-fsync.c: New file.
21214 New module 'fsync'.
21215 * lib/fsync.c: New file.
21216 * m4/fsync.m4: New file.
21217 * modules/fsync: New file.
21218 * lib/unistd.in.h (fsync): New declaration.
21219 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21220 GNULIB_FSYNC and HAVE_FSYNC.
21221 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21222 * MODULES.html.sh (posix_functions): Add fsync.
21223 * doc/posix-functions/fsync.texi: Mention the new module.
21225 2008-10-02 Jim Meyering <meyering@redhat.com>
21227 fts.c: sync with similar code from coreutils' remove.c
21228 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21229 Guard also with "#if defined __linux__", since for now at least,
21230 this code is Linux-kernel-specific.
21232 2008-10-02 Jim Meyering <meyering@redhat.com>
21235 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21236 Include <sys/vfs.h>, not <sys/statfs.h>.
21238 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21239 Include <sys/vfs.h>, not <sys/statfs.h>.
21241 2008-10-01 Bruno Haible <bruno@clisp.org>
21243 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21244 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21245 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21246 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21247 * doc/posix-functions/posix_spawnp.texi: Likewise.
21248 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21249 whether posix_spawn actually works.
21250 * m4/pipe.m4 (gl_PIPE): Likewise.
21251 * modules/execute (Files): Add m4/posix_spawn.m4.
21252 * modules/pipe (Files): Add m4/posix_spawn.m4.
21253 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21255 2008-10-01 Jim Meyering <meyering@redhat.com>
21257 remove trailing spaces
21259 * lib/poll.c (poll): Likewise.
21260 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21261 * lib/winsock.c (rpl_close): Likewise.
21262 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21263 * modules/yield: Likewise.
21264 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21265 * tests/test-sys_select.c (connect_to_socket): Likewise.
21267 fts.c: adjust a new interface to be more generally useful
21268 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21269 (fts_build): Adjust caller.
21271 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21273 * modules/cond-tests: New file.
21274 * tests/test-cond.c: New file.
21276 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21277 Bruno Haible <bruno@clisp.org>
21279 * modules/cond (Dependencies): Add errno, time.
21280 * lib/glthread/cond.h: Include <time.h>.
21281 (gl_cond_define, gl_cond_define_initialized): Use the same definition
21284 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21285 Bruno Haible <bruno@clisp.org>
21287 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21289 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21290 Bruno Haible <bruno@clisp.org>
21292 * modules/tls-tests (Depends-on): Add thread, yield.
21293 (configure.ac): Remove all checks.
21294 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21295 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21296 gl_thread_self): Remove definitions. Include glthread/thread.h and
21297 glthread/yield.h instead.
21298 (test_tls): Pass an additional NULL argument to gl_thread_join.
21300 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21301 Bruno Haible <bruno@clisp.org>
21303 * modules/lock-tests (Depends-on): Add thread, yield.
21304 (configure.ac): Remove all checks.
21305 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21306 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21307 gl_thread_self): Remove definitions. Include glthread/thread.h and
21308 glthread/yield.h instead.
21309 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21310 additional NULL argument to gl_thread_join.
21312 2008-09-30 Bruno Haible <bruno@clisp.org>
21314 Fix the Win32 implementation of the 'thread' module.
21315 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21317 (gl_thread_self): Invoke gl_thread_self_func.
21318 (gl_thread_self_func): New declaration.
21319 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21320 (do_init_self_key, init_self_key): New functions.
21321 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21322 Remove some fields.
21323 (running_threads, running_lock): Remove variables.
21324 (get_current_thread_handle): New function.
21325 (gl_thread_self_func, wrapper_func, glthread_create_func,
21326 glthread_join_func, gl_thread_exit_func): Largely rewritten and
21329 2008-09-30 Bruno Haible <bruno@clisp.org>
21331 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21334 2008-09-30 Jim Meyering <meyering@redhat.com>
21336 fts.m4: correct the test for statfs.f_type
21337 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21338 when checking for statfs.f_type.
21340 2008-09-15 Simon Josefsson <simon@josefsson.org>
21342 tests: avoid some compiler warnings
21343 * tests/test-memchr.c (main): Pass NULL indirectly.
21344 * tests/test-getdate.c (main): Remove unused variable 'ret'.
21346 2008-09-29 Ondřej Vašík <ovasik@redhat.com>
21348 getdate.y: disallow countable dayshifts like "4 yesterday ago"
21349 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21350 exactly specified dayshifts.
21351 (dayshift): New rule.
21352 (rel): Add dayshift.
21353 (relative_time_table) [tomorrow, yesterday, today, now]:
21354 Use tDAY_SHIFT in place of tDAY_UNIT.
21355 * tests/test-getdate.c: Add tests for now-disallowed countable
21356 dayshifts, e.g., "4 yesterday ago".
21358 2008-09-29 Bruno Haible <bruno@clisp.org>
21360 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21361 * tests/test-posix_spawn1.in.sh: Renamed from
21362 tests/test-posix_spawn.in.sh.
21363 * tests/test-posix_spawn2.c: New file.
21364 * tests/test-posix_spawn2.in.sh: New file.
21365 * modules/posix_spawnp-tests (Files): Update.
21366 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21368 2008-09-29 Bruno Haible <bruno@clisp.org>
21370 Propagate effects of putenv/setenv/unsetenv to child processes.
21371 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21372 * lib/pipe.c (create_pipe): Likewise.
21374 2008-09-29 Bruno Haible <bruno@clisp.org>
21376 Enable use of shell scripts as executables in mingw.
21377 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21378 run the program as a shell script.
21379 * lib/pipe.c (create_pipe): Likewise.
21380 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21383 2008-09-29 Eric Blake <ebb9@byu.net>
21385 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21387 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
21389 * doc/posix-functions/accept.texi: Update mingw problems.
21390 * doc/posix-functions/bind.texi: Update mingw problems.
21391 * doc/posix-functions/close.texi: Update mingw problems.
21392 * doc/posix-functions/connect.texi: Update mingw problems.
21393 * doc/posix-functions/getpeername.texi: Update mingw problems.
21394 * doc/posix-functions/getsockname.texi: Update mingw problems.
21395 * doc/posix-functions/getsockopt.texi: Update mingw problems.
21396 * doc/posix-functions/ioctl.texi: Update mingw problems.
21397 * doc/posix-functions/listen.texi: Update mingw problems.
21398 * doc/posix-functions/recv.texi: Update mingw problems.
21399 * doc/posix-functions/recvfrom.texi: Update mingw problems.
21400 * doc/posix-functions/select.texi: Update mingw problems.
21401 * doc/posix-functions/send.texi: Update mingw problems.
21402 * doc/posix-functions/sendto.texi: Update mingw problems.
21403 * doc/posix-functions/setsockopt.texi: Update mingw problems.
21404 * doc/posix-functions/socket.texi: Update mingw problems.
21406 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
21407 Bruno Haible <bruno@clisp.org>
21409 * lib/sys_select.in.h: Include sys/time.h.
21410 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21411 * modules/sys_select: Depend on sys_time.
21412 * tests/test-sys_select.c: Test that sys/select.h defines struct
21415 2008-09-29 Bruno Haible <bruno@clisp.org>
21417 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21418 * lib/sys_select.in.h: Likewise.
21420 2008-09-29 Bruno Haible <bruno@clisp.org>
21422 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21424 2008-09-29 Bruno Haible <bruno@clisp.org>
21426 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21427 Set LIBSOCKET instead of augmenting LIBS.
21428 * modules/sockets (Link): New section.
21429 * modules/sockets-tests (test_sockets_LDADD): New variable.
21430 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21431 * modules/poll-tests (test_poll_LDADD): New variable.
21432 * NEWS: Document the change.
21434 2008-09-29 Bruno Haible <bruno@clisp.org>
21436 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21437 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21438 ARPA_INET_H directly.
21439 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21441 2008-09-28 Bruno Haible <bruno@clisp.org>
21443 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21444 from gl_HEADER_SYS_SOCKET.
21445 (gl_HEADER_SYS_SOCKET): Invoke it.
21446 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21448 2008-09-28 Bruno Haible <bruno@clisp.org>
21450 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21451 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21452 Needed on OSF/1 4.0.
21454 2008-09-28 Bruno Haible <bruno@clisp.org>
21456 Override open more carefully.
21457 * lib/open.c (orig_open): New function.
21458 (rpl_open): Use orig_open instead of open.
21459 * lib/fcntl.in.h: Add special invocation convention.
21460 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21461 (gl_FUNC_OPEN): Invoke it.
21463 Override freopen more carefully.
21464 * lib/freopen.c (orig_freopen): New function.
21465 (rpl_freopen): Use orig_freopen instead of freopen.
21466 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21467 (gl_FUNC_FREOPEN): Invoke it.
21469 Override fopen more carefully.
21470 * lib/fopen.c (orig_fopen): New function.
21471 (rpl_fopen): Use orig_fopen instead of fopen.
21472 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21473 (gl_FUNC_FOPEN): Invoke it.
21474 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21476 2008-09-28 Bruno Haible <bruno@clisp.org>
21478 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21481 2008-09-28 Bruno Haible <bruno@clisp.org>
21483 * tests/test-sigaction.c (handler, main): Disable the check whether
21484 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21485 glibc systems with LinuxThreads.
21487 2008-09-28 Bruno Haible <bruno@clisp.org>
21489 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21491 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21493 * lib/fcntl.in.h (open): Likewise.
21494 Reported by Rainer Tammer <tammer@tammer.net>.
21496 2008-09-28 Bruno Haible <bruno@clisp.org>
21498 * modules/posix_spawnp-tests: New file.
21499 * tests/test-posix_spawn.c: New file.
21500 * tests/test-posix_spawn.in.sh: New file.
21502 New module 'posix_spawnp'.
21503 * modules/posix_spawnp: New file.
21504 * lib/spawnp.c: New file, from GNU libc with modifications.
21505 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21507 New module 'posix_spawn'.
21508 * modules/posix_spawn: New file.
21509 * lib/spawn.c: New file, from GNU libc with modifications.
21510 * doc/posix-functions/posix_spawn.texi: Mention the new module.
21512 New module 'posix_spawnattr_destroy'.
21513 * modules/posix_spawnattr_destroy: New file.
21514 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21515 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21518 New module 'posix_spawnattr_setsigmask'.
21519 * modules/posix_spawnattr_setsigmask: New file.
21520 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21522 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21525 New module 'posix_spawnattr_getsigmask'.
21526 * modules/posix_spawnattr_getsigmask: New file.
21527 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21529 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21532 New module 'posix_spawnattr_setsigdefault'.
21533 * modules/posix_spawnattr_setsigdefault: New file.
21534 * lib/spawnattr_setdefault.c: New file, from GNU libc with
21536 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21539 New module 'posix_spawnattr_getsigdefault'.
21540 * modules/posix_spawnattr_getsigdefault: New file.
21541 * lib/spawnattr_getdefault.c: New file, from GNU libc with
21543 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21546 New module 'posix_spawnattr_setschedpolicy'.
21547 * modules/posix_spawnattr_setschedpolicy: New file.
21548 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21550 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21553 New module 'posix_spawnattr_getschedpolicy'.
21554 * modules/posix_spawnattr_getschedpolicy: New file.
21555 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21557 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21560 New module 'posix_spawnattr_setschedparam'.
21561 * modules/posix_spawnattr_setschedparam: New file.
21562 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21564 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21567 New module 'posix_spawnattr_getschedparam'.
21568 * modules/posix_spawnattr_getschedparam: New file.
21569 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21571 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21574 New module 'posix_spawnattr_setpgroup'.
21575 * modules/posix_spawnattr_setpgroup: New file.
21576 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21578 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21581 New module 'posix_spawnattr_getpgroup'.
21582 * modules/posix_spawnattr_getpgroup: New file.
21583 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21585 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21588 New module 'posix_spawnattr_setflags'.
21589 * modules/posix_spawnattr_setflags: New file.
21590 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21591 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21594 New module 'posix_spawnattr_getflags'.
21595 * modules/posix_spawnattr_getflags: New file.
21596 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21597 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21600 New module 'posix_spawnattr_init'.
21601 * modules/posix_spawnattr_init: New file.
21602 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21603 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21606 New module 'posix_spawn_file_actions_destroy'.
21607 * modules/posix_spawn_file_actions_destroy: New file.
21608 * lib/spawn_faction_destroy.c: New file, from GNU libc with
21610 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21613 New module 'posix_spawn_file_actions_addopen'.
21614 * modules/posix_spawn_file_actions_addopen: New file.
21615 * lib/spawn_faction_addopen.c: New file, from GNU libc with
21617 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21620 New module 'posix_spawn_file_actions_adddup2'.
21621 * modules/posix_spawn_file_actions_adddup2: New file.
21622 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21624 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21627 New module 'posix_spawn_file_actions_addclose'.
21628 * modules/posix_spawn_file_actions_addclose: New file.
21629 * lib/spawn_faction_addclose.c: New file, from GNU libc with
21631 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21634 New module 'posix_spawn_file_actions_init'.
21635 * modules/posix_spawn_file_actions_init: New file.
21636 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21637 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21640 New module 'posix_spawn-internal'.
21641 * modules/posix_spawn-internal: New file.
21642 * lib/spawn_int.h: New file, from GNU libc with modifications.
21643 * lib/spawni.c: New file, from GNU libc with modifications.
21644 * m4/posix_spawn.m4: New file.
21646 New module 'spawn'.
21647 * modules/spawn: New file.
21648 * lib/spawn.in.h: New file, from GNU libc with modifications.
21649 * m4/spawn_h.m4: New file.
21650 * doc/posix-headers/spawn.texi: Mention the new module.
21652 2008-09-28 Bruno Haible <bruno@clisp.org>
21654 * modules/sched-tests: New file.
21655 * tests/test-sched.c: New file.
21657 New module 'sched'.
21658 * modules/sched: New file.
21659 * lib/sched.in.h: New file.
21660 * m4/sched_h.m4: New file.
21661 * doc/posix-headers/sched.texi: Mention the new module.
21663 2008-09-27 Eric Blake <ebb9@byu.net>
21665 Fix previous patch, and tweak references to $0.
21666 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21667 (func_version, func_gnulib_dir): Don't call this program
21669 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21670 with using $0 in function.
21671 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21672 (func_fatal_error): Reuse the name the user invoked us with.
21674 2008-09-27 Bruno Haible <bruno@clisp.org>
21676 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21677 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21678 (gl_ICONV_H): Not here.
21679 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21680 instead of assigning ICONV_H directly.
21682 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21683 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21686 2008-09-27 Bruno Haible <bruno@clisp.org>
21688 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21689 * modules/arpa_inet (Depends-on): Add link-warning.
21690 (Makefile.am): Insert the definition of GL_LINK-WARNING.
21691 * modules/unistd (Makefile.am): Likewise.
21693 2008-09-26 Bruno Haible <bruno@clisp.org>
21695 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21697 (func_version): Essentially copied from gnulib-tool.
21698 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21699 func_readlink): Copied from gnulib-tool.
21701 2008-09-26 Bruno Haible <bruno@clisp.org>
21703 * gnulib-tool (func_version): Change directory to $gnulib_dir before
21704 invoking git-version-gen.
21706 2008-09-26 Bruno Haible <bruno@clisp.org>
21708 * posix-modules: Update to directory names changed on 2008-01-19.
21709 Remove commas in output before splitting into words. No more need to
21710 avoid 'ftruncate' since 2007-02-19.
21712 2008-09-26 Bruno Haible <bruno@clisp.org>
21714 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21716 2008-09-26 Bruno Haible <bruno@clisp.org>
21718 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21719 * modules/fwriteerror (Depends-on): Add errno.
21721 2008-09-26 Bruno Haible <bruno@clisp.org>
21723 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21724 * tests/test-vc-list-files-cvs.sh: Likewise.
21726 2008-09-26 Bruno Haible <bruno@clisp.org>
21728 * doc/posix-headers/sys_resource.texi: Reorder items.
21730 2008-09-26 Jim Meyering <meyering@redhat.com>
21732 fts: tweak inode comparison function
21733 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21734 inode numbers, as documented.
21736 fts: sort dirent entries on inode number before traversing
21737 This avoids a quadratic, seek-related performance penalty when
21738 operating on a directory containing many entries (measurable at 10k;
21739 3.5 hours at 2 million entries with a cold cache) on certain types
21740 of file systems, including ext3 and ext4, but not tmpfs.
21741 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21742 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21743 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21744 (fs_handles_readdir_ordered_dirents_efficiently): New function.
21745 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21746 (fts_build): Set the stat.st_ino member from D_INO.
21747 If it is likely to be useful, sort dirent entries on inode number.
21749 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21750 and the struct statfs.f_type member.
21751 * modules/fts (Depends-on): Add d-ino.
21753 2008-09-26 Bruno Haible <bruno@clisp.org>
21755 * modules/sigpipe-die (Depends-on): Add sigpipe.
21757 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21758 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21759 and GNULIB_STDIO_H_SIGPIPE are set.
21760 * lib/stdio-write.c: New file.
21761 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21762 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21763 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21764 REPLACE_STDIO_WRITE_FUNCS.
21765 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21766 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21767 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21768 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21769 * modules/stdio (Files): Add lib/stdio-write.c.
21770 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21771 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21772 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21773 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21774 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21775 REPLACE_FPRINTF_POSIX.
21776 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21777 REPLACE_PRINTF_POSIX.
21778 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21779 REPLACE_VFPRINTF_POSIX.
21780 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21781 REPLACE_VPRINTF_POSIX.
21782 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21784 * doc/posix-functions/fputc.texi: Likewise.
21785 * doc/posix-functions/fputs.texi: Likewise.
21786 * doc/posix-functions/fwrite.texi: Likewise.
21787 * doc/posix-functions/printf.texi: Likewise.
21788 * doc/posix-functions/putc.texi: Likewise.
21789 * doc/posix-functions/putchar.texi: Likewise.
21790 * doc/posix-functions/puts.texi: Likewise.
21791 * doc/posix-functions/vfprintf.texi: Likewise.
21792 * doc/posix-functions/vprintf.texi: Likewise.
21794 * modules/safe-write (Depends-on): Add write.
21796 * modules/sigpipe-tests: New file.
21797 * tests/test-sigpipe.c: New file.
21798 * tests/test-sigpipe.sh: New file.
21800 * modules/write: New file.
21801 * lib/unistd.in.h: Include <sys/types.h>.
21802 (write): New declaration.
21803 * lib/write.c: New file.
21804 * m4/write.m4: New file.
21805 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21806 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21807 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21808 GNULIB_WRITE, REPLACE_WRITE.
21809 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21810 and the SIGPIPE issue.
21812 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21813 (raise): New declaration.
21814 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21815 (ext_signal): New function.
21816 (rpl_raise): New function.
21817 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21818 GNULIB_SIGNAL_H_SIGPIPE.
21819 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21820 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21822 * modules/sigpipe: New file.
21823 * m4/sigpipe.m4: New file.
21825 2008-09-25 Derek Price <derek@ximbiot.com>
21826 Bruno Haible <bruno@clisp.org>
21828 * gnulib-tool (func_import): Report all license incompatibilities, not
21829 just the first one.
21831 2008-09-25 Bruno Haible <bruno@clisp.org>
21833 * gnulib-tool (func_import): When computing the edits, consider not
21834 only the Makefile.ams that exist but also those that will be generated.
21836 2008-09-25 Simon Josefsson <simon@josefsson.org>
21838 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21839 fixes gnulib-tool --test warning about duplicate dependency.
21841 2008-09-25 Bruno Haible <bruno@clisp.org>
21843 * gnulib-tool: Don't ask the user to perform edits in the generated
21845 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21846 apply to the Makefile.am being generated.
21847 (func_emit_tests_Makefile_am): Execute edits that apply to the
21848 Makefile.am being generated.
21849 (func_import): Setup list of Makefile.am edits before emitting the
21850 Makefile.ams, not at the end.
21851 (func_create_testdir): Update.
21852 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21854 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21856 * gnulib-tool (func_import): Store the --tests-base option in the
21857 comment in gnulib-cache.m4.
21859 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
21861 * NEWS: Document increased portability that sys_select now provides.
21863 * lib/sys_select.in.h: Install select wrapper.
21864 * lib/sys_socket.in.h: Use more descriptive name when there is no
21866 * lib/winsock-select.c: New.
21867 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21868 Require gl_HEADER_SYS_SOCKET.
21869 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21870 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21871 * tests/test-sys_select.c: Add functional tests.
21873 2008-09-24 Eric Blake <ebb9@byu.net>
21875 open, fopen: close fd leak in last patch
21876 * lib/open.c (rpl_open): Close fd before returning error.
21877 * lib/fopen.c (rpl_fopen): Close fd before returning error.
21878 * doc/posix-functions/open.texi (open): Document that Irix also
21880 * doc/posix-functions/fopen.texi (fopen): Likewise.
21881 Reported by Paolo Bonzini.
21883 2008-09-24 Bruno Haible <bruno@clisp.org>
21885 Ensure that a filename ending in a slash cannot be used to access a
21887 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21888 to check whether it's really a directory.
21889 * lib/fopen.c: Include fcntl.h, unistd.h.
21890 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21892 * modules/fopen (Depends-on): Add unistd.
21893 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21894 * tests/test-fopen.c (main): Likewise.
21895 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21896 * doc/posix-functions/fopen.texi: Likewise.
21897 Reported by Eric Blake.
21899 2008-09-23 Eric Blake <ebb9@byu.net>
21901 c-stack: avoid compiler optimizations when provoking overflow
21902 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21903 recursion harder to optimize, to ensure a stack overflow occurs.
21904 * tests/test-c-stack.c (recurse): Likewise.
21905 Borrowed from libsigsegv.
21907 c-stack: work around Irix sigaltstack bug
21908 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21909 whether sigaltstack uses wrong end of stack_t (copied in part from
21911 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21912 Irix bug, without requiring an over-allocation.
21913 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21916 fopen: document mingw bug on directories
21917 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21918 not allowing a stream visiting a directory, even though reading
21919 from such a stream is not portable.
21921 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21923 * lib/poll.c: Rewrite.
21924 * modules/poll: Depend on alloca.
21926 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21928 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21929 instead define prototypes for a full set of wrappers. Ensure
21930 that Cygwin does not use the compatibility code, which is only
21932 * lib/winsock.c: New.
21933 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21934 * modules/sys_socket: Add lib/winsock.c.
21936 * modules/poll-tests: Add errno and perror.
21937 * tests/test-poll.c: Use ioctl, not ioctlsocket.
21939 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
21941 * tests/test-poll.c: Downgrade minimum needed Winsock version.
21943 2008-09-23 Bruno Haible <bruno@clisp.org>
21945 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21946 * doc/glibc-functions/*: Likewise.
21948 2008-09-23 Simon Josefsson <simon@josefsson.org>
21950 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21953 2008-09-22 Eric Blake <ebb9@byu.net>
21954 Bruno Haible <bruno@clisp.org>
21956 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21957 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21958 supply %A but mishandle pseudo-NaN.
21959 Reported by Simon Josefsson.
21961 2008-09-21 Bruno Haible <bruno@clisp.org>
21963 * tests/test-lock.c (main): Tweak skip message.
21964 * tests/test-tls.c (main): Likewise.
21966 2008-09-21 Bruno Haible <bruno@clisp.org>
21968 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21969 whether 'struct sigaction' has sa_sigaction here...
21970 (gl_PREREQ_SIG_HANDLER_H): ... not here.
21971 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21973 2008-09-21 Bruno Haible <bruno@clisp.org>
21975 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21977 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21978 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21980 (Support for obsolete systems lacking POSIX:2001): New section.
21981 (String handling <string.h>): Move strdup to the new section.
21982 Suggested by Simon Josefsson and Paolo Bonzini.
21984 2008-09-21 Bruno Haible <bruno@clisp.org>
21986 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21987 exponents in %e and %g results on 'long double'. Needed for mingw's
21988 improved *printf functions.
21989 * tests/test-vasprintf-posix.c (test_function): Likewise.
21990 * tests/test-snprintf-posix.h (test_function): Likewise.
21991 * tests/test-sprintf-posix.h (test_function): Likewise.
21992 Reported by Eric Blake.
21994 2008-09-21 Bruno Haible <bruno@clisp.org>
21996 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21997 * tests/test-sprintf-posix.h (test_function): Likewise.
21999 2008-09-21 Bruno Haible <bruno@clisp.org>
22001 * modules/getpass (Depends-on): Add strdup-posix.
22003 New module 'strdup-posix'.
22004 * modules/strdup-posix: New file.
22005 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22006 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22007 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22009 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22010 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22011 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22014 * modules/strdup (Depends-on): Remove malloc-posix.
22016 2008-09-20 Bruno Haible <bruno@clisp.org>
22018 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22021 2008-09-20 Bruno Haible <bruno@clisp.org>
22023 Ensure that wint_t gets defined on IRIX 5.3.
22024 * lib/wchar.in.h (wint_t): Define if not defined by the system.
22025 * lib/wctype.in.h (wint_t): Likewise.
22026 (__wctype_wint_t): Remove type.
22027 (isw*): Use wint_t instead of __wctype_wint_t.
22028 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22029 * modules/wchar (Files): Add m4/wint_t.m4.
22030 (Makefile.am): Substitute HAVE_WINT_T.
22031 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22032 * tests/test-wctype.c: Check that wint_t is defined.
22033 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22034 * doc/posix-headers/wctype.texi: Likewise.
22035 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22037 2008-09-18 Bruno Haible <bruno@clisp.org>
22039 * gnulib-tool (func_exit): Update comment.
22041 2008-09-18 Simon Josefsson <simon@josefsson.org>
22043 * modules/getaddrinfo (Depends-on): Remove strdup, this module
22044 assumes strdup exists and does not depend on strdup to return
22045 ENOMEM on out of memory conditions.
22047 2008-09-18 Bruno Haible <bruno@clisp.org>
22049 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
22050 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22051 digits for the exponent.
22053 2008-09-18 Jim Meyering <meyering@redhat.com>
22054 Bruno Haible <bruno@clisp.org>
22056 * lib/vasnprintf.c (decimal_point_char): Define also if
22057 NEED_PRINTF_INFINITE_LONG_DOUBLE.
22059 2008-09-16 Bruno Haible <bruno@clisp.org>
22060 and Eric Blake <ebb9@byu.net>
22062 vasnprintf: support Irix 5.3
22063 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22064 that mishandle long double infinity.
22065 Reported by Tom G. Christensen.
22067 2008-09-16 Bruno Haible <bruno@clisp.org>
22069 * doc/glibc-functions/scandir.texi: Mention the function is missing on
22071 * doc/glibc-functions/alphasort.texi: Likewise.
22072 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22074 2008-09-16 Jim Meyering <meyering@redhat.com>
22076 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22077 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22078 a umask modification leak out of a subshell. Otherwise, the
22079 opensolaris /bin/sh would be accepted and thus cause unwarranted
22080 failures in the coreutils test suite.
22082 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
22084 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22087 2008-09-16 Jim Meyering <meyering@redhat.com>
22089 avoid spurious test failure when library is built without ACL support
22090 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22091 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22092 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22093 * tests/test-copy-acl.sh: Likewise.
22095 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22097 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22098 based on character occurrence counts.
22100 2008-09-15 Eric Blake <ebb9@byu.net>
22102 tests: avoid some compiler warnings
22103 * tests/test-memchr.c (main): Pass NULL indirectly.
22104 * tests/test-closein.c (main): Avoid unused variable.
22106 2008-09-15 Bruno Haible <bruno@clisp.org>
22108 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22109 are missing on OpenBSD 4.0 individually.
22110 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22112 2008-09-15 Bruno Haible <bruno@clisp.org>
22114 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22115 * doc/posix-functions/strerror.texi: Mention also Cygwin.
22116 * doc/posix-functions/perror.texi: Likewise.
22117 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22119 Reported by Eric Blake.
22121 * lib/errno.in.h: Use replacement values >= 2000.
22122 Reported by Eric Blake.
22124 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22126 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22127 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22129 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22130 compareseq was aborted.
22132 2008-09-14 Bruno Haible <bruno@clisp.org>
22134 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22136 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22137 (fstrcmp_bounded): Simplify result computation accordingly.
22139 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22141 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22142 (fstrcmp): Define in terms of fstrcmp_bounded.
22143 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22144 lower_bound argument.
22145 Return quickly if the result is certainly < lower_bound.
22146 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22148 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22150 * lib/diffseq.h (EARLY_ABORT): New macro.
22151 (compareseq): Change return type to bool. Return true when EARLY_ABORT
22154 2008-09-14 Bruno Haible <bruno@clisp.org>
22156 * modules/perror-tests: New file.
22157 * tests/test-perror.sh: New file.
22158 * tests/test-perror.c: New file.
22160 New module 'perror'.
22161 * lib/stdio.in.h (perror): New declaration.
22162 * lib/perror.c: New file.
22163 * m4/perror.m4: New file.
22164 * modules/perror: New file.
22165 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22166 * doc/posix-functions/perror.texi: Mention the perror module.
22167 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22169 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22172 2008-09-14 Bruno Haible <bruno@clisp.org>
22174 * modules/stdio (Makefile.am): Reorder to match the order in
22176 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22178 2008-09-13 Bruno Haible <bruno@clisp.org>
22180 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22182 2008-09-13 Bruno Haible <bruno@clisp.org>
22184 Extend strerror to cover the added errno values.
22185 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22186 (rpl_strerror): Provide error messages for the added errno values and
22187 for the WSA* values.
22188 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22189 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22191 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22192 * modules/strerror (Depends-on): Add errno.
22193 * doc/posix-functions/strerror.texi: Document the change.
22194 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22197 2008-09-13 Bruno Haible <bruno@clisp.org>
22199 * modules/EOVERFLOW: Remove file.
22200 * m4/eoverflow.m4: Remove file.
22201 * modules/EOVERFLOW-tests: Remove file.
22202 * tests/test-EOVERFLOW.c: Remove file.
22203 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22204 * modules/ftell (Depends-on): Likewise.
22205 * modules/getdelim (Depends-on): Likewise.
22206 * modules/getugroups (Depends-on): Likewise.
22207 * modules/poll (Depends-on): Likewise.
22208 * modules/snprintf (Depends-on): Likewise.
22209 * modules/sprintf-posix (Depends-on): Likewise.
22210 * modules/vasnprintf (Depends-on): Likewise.
22211 * modules/vasprintf (Depends-on): Likewise.
22212 * modules/vfprintf-posix (Depends-on): Likewise.
22213 * modules/vsnprintf (Depends-on): Likewise.
22214 * modules/vsprintf-posix (Depends-on): Likewise.
22215 * modules/xvasprintf (Depends-on): Likewise.
22216 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22217 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22218 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22219 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22220 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22221 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22222 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22223 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22224 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22225 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22226 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22227 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22228 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22229 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22230 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22231 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22232 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22233 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22234 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22235 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22236 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22237 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22238 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22239 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22240 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22241 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22242 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22243 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22244 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22245 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22246 * MODULES.html.sh: Remove EOVERFLOW.
22247 * NEWS: Mention the change.
22249 2008-09-13 Bruno Haible <bruno@clisp.org>
22251 * modules/errno-tests: New file.
22252 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22254 * lib/errno.in.h: New file.
22255 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22256 * modules/errno: New file.
22257 * doc/posix-headers/errno.texi: Update documentation.
22258 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22260 2008-09-13 Bruno Haible <bruno@clisp.org>
22262 * tests/test-poll.c: Use #if for native Windows, rather than testing
22265 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22266 Bruno Haible <bruno@clisp.org>
22268 * lib/glob.c: Don't include <pwd.h> on native Windows.
22269 (WINDOWS32): New macro.
22270 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22272 2008-09-13 Bruno Haible <bruno@clisp.org>
22274 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22275 (ETIMEDOUT): Remove macro.
22276 (glthread_cond_timedwait_multithreaded): New declaration.
22277 (glthread_cond_timedwait): Use it.
22278 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22279 (glthread_cond_timedwait_multithreaded): New function.
22281 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
22283 * modules/poll-tests: Do not check for io.h.
22284 * tests/test-poll.c: Check for __MSVCRT__ instead.
22286 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
22288 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22289 * modules/poll-tests: Add inet_pton, stdbool, sockets.
22290 * tests/test-poll.c: Use them. Use _pipe on Windows.
22292 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
22294 * modules/poll-tests: New.
22295 * tests/test-poll.c: New.
22297 2008-09-12 Eric Blake <ebb9@byu.net>
22299 frexp: test for NetBSD failure on -0.0
22300 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22301 not all, bugs from NetBSD 3.0 have been fixed.
22302 * doc/posix-functions/frexp.texi (frexp): Document bug.
22303 Reported by Thomas Klausner.
22305 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22306 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22308 Reported by Jonathan C. Patschke <jp@centtech.com>.
22310 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22312 * lib/glthread/cond.h: Use dummy implementation also if
22315 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22317 * modules/fnmatch-posix (License): Change to LGPLv2+.
22318 * modules/fnmatch-gnu (License): Likewise.
22320 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22322 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22324 2008-09-11 Jim Meyering <meyering@redhat.com>
22326 * users.txt: Add gtk-vnc.
22328 2008-09-08 Simon Josefsson <simon@josefsson.org>
22330 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22333 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22334 required for 16-bit and 8-bit rotates.
22335 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22336 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22337 UINT8_MAX instead of hard-coded constants.
22338 Suggested by Paul Eggert.
22340 2008-09-07 Bruno Haible <bruno@clisp.org>
22342 * tests/test-striconveh.c (main): Check behaviour when converting from
22345 Make striconveh work better with stateful encodings.
22346 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22347 that iconv does not increment the inptr when returning -1/EINVAL.
22349 2008-09-07 Bruno Haible <bruno@clisp.org>
22351 * build-aux/config.rpath: Update according to libtool-2.2.6.
22352 * build-aux/config.libpath: Likewise.
22354 2008-09-06 Bruno Haible <bruno@clisp.org>
22356 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22357 * lib/freadptr.c (freadptr): Likewise.
22358 * lib/freadseek.c (freadptrinc): Likewise.
22359 Reported by Simon Josefsson.
22361 2008-09-06 Bruno Haible <bruno@clisp.org>
22363 * modules/freadptr (License): Change to LGPLv2+.
22364 * modules/freadseek (License): Likewise.
22365 Suggested by Eric Blake.
22367 * modules/memchr2 (License): Change to LGPLv2+.
22368 Approved by Eric Blake.
22370 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22371 Bruno Haible <bruno@clisp.org>
22373 Make gnulib-tool work with native 'sed' on AIX.
22374 * gnulib-tool (sed_noop): New variable.
22375 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22376 func_add_or_update, func_create_testdir): Use it to initialize sed
22378 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22380 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
22381 Bruno Haible <bruno@clisp.org>
22383 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22384 also works after #include directives.
22386 2008-09-04 Ondřej Vašík <ovasik@redhat.com>
22388 getdate.y: reject an out-of-range timezone value
22389 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22390 the range [-24...+24]. When specified with only one or two digits,
22391 * tests/test-getdate.c: Tests for the fix.
22392 * doc/getdate.texi: Document this change.
22394 2008-09-03 Bruno Haible <bruno@clisp.org>
22396 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22398 2008-09-02 Simon Josefsson <simon@josefsson.org>
22400 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
22401 <bruce.korb@gmail.com> with ideas from Ben Pfaff
22402 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22403 Blake <ebb9@byu.net>.
22405 * tests/test-bitrotate.c: Add more test vectors.
22407 2008-09-02 Eric Blake <ebb9@byu.net>
22409 vasnprintf-posix: handle large precision via %.*d
22410 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22411 when handling it ourselves.
22412 * tests/test-vasnprintf-posix.c (test_function): Add test.
22413 * tests/test-snprintf-posix.h (test_function): Likewise.
22414 * tests/test-sprintf-posix.h (test_function): Likewise.
22415 * tests/test-vasprintf-posix.c (test_function): Likewise.
22416 Reported by Alain Guibert.
22418 2008-09-01 Eric Blake <ebb9@byu.net>
22420 c-stack: make configure-time check more robust
22421 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22422 successful sigaction call.
22423 Reported by Tom G. Christensen.
22425 2008-09-01 Bruno Haible <bruno@clisp.org>
22427 New module 'findprog-lgpl'.
22428 * modules/findprog-lgpl: New file.
22429 * lib/findprog-lgpl.c: New file.
22430 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22431 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22432 to decide whether to use strdup or xstrdup, concatenated_filename or
22433 xconcatenated_filename.
22435 2008-09-01 Bruno Haible <bruno@clisp.org>
22437 Split module 'concat-filename' into 'concat-filename' (LGPL) and
22438 'xconcat-filename' (GPL).
22439 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22440 (License): Change to LGPLv2+.
22441 * modules/xconcat-filename: New file.
22442 * lib/concat-filename.h (concatenated_filename): Change specification.
22443 (xconcatenated_filename): New declaration.
22444 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22445 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22447 * lib/xconcat-filename.c: New file.
22448 * NEWS: Mention the change.
22449 * lib/findprog.c: Include concat-filename.h, not filename.h.
22450 (find_in_path): Use xconcatenated_filename instead of
22451 concatenated_filename.
22452 * lib/javacomp.c: Include concat-filename.h, not filename.h.
22453 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22454 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22455 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22456 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22457 instead of concatenated_filename.
22458 * lib/javaexec.c: Include concat-filename.h, not filename.h.
22459 (execute_java_class): Use xconcatenated_filename instead of
22460 concatenated_filename.
22461 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22462 * modules/javacomp (Depends-on): Likewise.
22463 * modules/javaexec (Depends-on): Likewise.
22465 2008-09-01 Bruno Haible <bruno@clisp.org>
22467 Split module 'filename' into 'filename' and 'concat-filename'.
22468 * modules/filename: Keep only lib/filename.h.
22469 (License): Change to LGPLv2+.
22470 * modules/concat-filename: New file, extracted from modules/filename.
22471 * lib/filename.h (concatenated_filename): Remove declaration.
22472 * lib/concat-filename.h: New file, extracted from lib/filename.h.
22473 * lib/concat-filename.c: Include concat-filename.h.
22474 * NEWS: Mention the change.
22476 2008-09-01 Simon Josefsson <simon@josefsson.org>
22478 * lib/bitrotate.h (rotl8, rotr8): Add.
22480 * modules/bitrotate (configure.ac): Need
22481 AC_REQUIRE([AC_C_INLINE]).
22482 (Description): Mention stdint.h. Reported by Bruno Haible
22485 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
22486 Paolo Bonzini <bonzini@gnu.org>.
22488 2008-08-31 Bruno Haible <bruno@clisp.org>
22490 Assume Solaris specific bi-arch conventions on Solaris systems.
22491 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22492 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22493 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22494 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22495 like acl_libdirstem.
22496 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22498 * NEWS: Mention the change.
22499 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22501 2008-08-31 Jim Meyering <meyering@redhat.com>
22503 * lib/strftime.h: Add comments describing the two added arguments.
22505 remove duplicate #include directives
22506 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22507 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22509 2008-08-31 Bruno Haible <bruno@clisp.org>
22511 New module 'sigpipe-die'.
22512 * modules/sigpipe-die: New file.
22513 * lib/sigpipe-die.h: New file.
22514 * lib/sigpipe-die.c: New file.
22515 * MODULES.html.sh (Signal handling): Add sigpipe-die.
22517 2008-08-31 Bruno Haible <bruno@clisp.org>
22519 Don't override previously installed signal handlers.
22520 * lib/fatal-signal.c (saved_sigactions): New variable.
22521 (uninstall_handlers): Reset the signal to the saved handler, not
22522 to SIG_DFL (except when ignored).
22523 (install_handlers): Save the previous handlers.
22525 2008-08-30 Bruno Haible <bruno@clisp.org>
22527 * gnulib-tool (func_reset_sigpipe): New function.
22528 (func_get_automake_snippet, func_modules_transitive_closure,
22529 func_import): Invoke it before a join command that reads from stdin,
22530 to avoid "echo: write error: Broken pipe" error messages on stderr.
22531 Reported by Sam Steingold <sds@gnu.org>.
22533 2008-08-30 Bruno Haible <bruno@clisp.org>
22535 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22536 Code copied from m4/open.m4.
22537 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22538 access and the filename ends in a slash. Code copied from lib/open.c.
22539 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22540 * tests/test-fopen.c (main): Check against bug with trailing slash.
22542 2008-08-29 Bruno Haible <bruno@clisp.org>
22544 Avoid some "gcc -pedantic" warnings.
22545 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22546 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22547 * lib/dirent.in.h: Likewise.
22548 * lib/fcntl.in.h: Likewise.
22549 * lib/float.in.h: Likewise.
22550 * lib/iconv.in.h: Likewise.
22551 * lib/inttypes.in.h: Likewise.
22552 * lib/locale.in.h: Likewise.
22553 * lib/math.in.h: Likewise.
22554 * lib/netinet_in.in.h: Likewise.
22555 * lib/search.in.h: Likewise.
22556 * lib/signal.in.h: Likewise.
22557 * lib/stdarg.in.h: Likewise.
22558 * lib/stdint.in.h: Likewise.
22559 * lib/stdio.in.h: Likewise.
22560 * lib/stdlib.in.h: Likewise.
22561 * lib/string.in.h: Likewise.
22562 * lib/strings.in.h: Likewise.
22563 * lib/sys_select.in.h: Likewise.
22564 * lib/sys_socket.in.h: Likewise.
22565 * lib/sys_stat.in.h: Likewise.
22566 * lib/sys_time.in.h: Likewise.
22567 * lib/sysexits.in.h: Likewise.
22568 * lib/time.in.h: Likewise.
22569 * lib/unistd.in.h: Likewise.
22570 * lib/wchar.in.h: Likewise.
22571 * lib/wctype.in.h: Likewise.
22572 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22573 * modules/fchdir (Makefile.am): Likewise.
22574 * modules/fcntl (Makefile.am): Likewise.
22575 * modules/float (Makefile.am): Likewise.
22576 * modules/iconv_open (Makefile.am): Likewise.
22577 * modules/inttypes (Makefile.am): Likewise.
22578 * modules/locale (Makefile.am): Likewise.
22579 * modules/math (Makefile.am): Likewise.
22580 * modules/netinet_in (Makefile.am): Likewise.
22581 * modules/search (Makefile.am): Likewise.
22582 * modules/signal (Makefile.am): Likewise.
22583 * modules/stdarg (Makefile.am): Likewise.
22584 * modules/stdint (Makefile.am): Likewise.
22585 * modules/stdio (Makefile.am): Likewise.
22586 * modules/stdlib (Makefile.am): Likewise.
22587 * modules/string (Makefile.am): Likewise.
22588 * modules/strings (Makefile.am): Likewise.
22589 * modules/sys_select (Makefile.am): Likewise.
22590 * modules/sys_socket (Makefile.am): Likewise.
22591 * modules/sys_stat (Makefile.am): Likewise.
22592 * modules/sys_time (Makefile.am): Likewise.
22593 * modules/sysexits (Makefile.am): Likewise.
22594 * modules/time (Makefile.am): Likewise.
22595 * modules/unistd (Makefile.am): Likewise.
22596 * modules/wchar (Makefile.am): Likewise.
22597 * modules/wctype (Makefile.am): Likewise.
22598 Reported by Reuben Thomas <rrt@sc3d.org>.
22600 2008-08-29 Bruno Haible <bruno@clisp.org>
22602 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22605 2008-08-29 Simon Josefsson <simon@josefsson.org>
22607 * MODULES.html.sh (Misc): Add bitrotate.
22609 * modules/bitrotate: New file.
22611 * lib/bitrotate.h: New file.
22613 * modules/bitrotate-tests: New file.
22615 * tests/test-bitrotate.c: New file.
22617 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22618 on the bitrotate module.
22620 * lib/arctwo.c: Use new bitrotate module.
22622 2008-08-29 Jim Meyering <meyering@redhat.com>
22624 bootstrap: merge changes from coreutils
22625 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22626 of copied files. Remove a kludge, now that this is fixed.
22627 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22628 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22629 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22631 2008-08-29 Bruno Haible <bruno@clisp.org>
22633 * MODULES.html.sh: Remove --cvs-urls option.
22635 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
22637 maint.mk: adjust to file name change
22638 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22640 2008-08-28 Jim Meyering <meyering@redhat.com>
22642 * modules/getndelim2 (License): Relicense to LGPLv2+.
22643 Approved by Richard Stallman for the version of 1995, and by
22644 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22646 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
22648 * lib/getdelim.c (flockfile, funlockfile): Make all of them
22649 dummy if one is not available. Do not touch them if
22650 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22651 (getc_maybe_unlocked): New.
22652 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22654 2008-08-26 Eric Blake <ebb9@byu.net>
22656 doc/INSTALL: resync from autoconf
22657 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22658 (INSTALL_PRELUDE): Delete; this is done more efficiently by
22660 * install.texi [!autoconf]: ...here. Resync from autoconf.
22661 * INSTALL: Regenerate.
22662 * INSTALL.ISO: New file.
22663 * INSTALL.UTF-8: Likewise.
22665 2008-08-26 Jim Meyering <meyering@redhat.com>
22667 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22668 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22669 these definitions conditional, so that they may be overridden, too.
22671 2008-08-26 Bruno Haible <bruno@clisp.org>
22673 Generate INSTALL file variants with prettier quotes.
22674 * doc/Makefile (INSTALL_PRELUDE): New macro.
22676 (INSTALL.ISO, INSTALL.UTF-8): New rules.
22678 2008-08-26 Bruno Haible <bruno@clisp.org>
22680 Run makeinfo in an English locale.
22681 * doc/Makefile (MAKEINFO): New variable.
22683 2008-08-26 Bruno Haible <bruno@clisp.org>
22685 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22686 Suggested by Eric Blake.
22688 2008-08-25 Bruno Haible <bruno@clisp.org>
22690 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22692 2008-08-25 Eric Blake <ebb9@byu.net>
22694 c-stack: test that stack overflow can be caught
22695 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22696 that platform allows handling stack overflow; at least OS/2 EMX
22697 has sigaltstack, but crashes before transferring control to
22698 handler on stack overflow.
22699 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22700 check for HAVE_STACK_OVERFLOW_HANDLING.
22701 Reported by Elbert Pol.
22703 2008-08-25 Bruno Haible <bruno@clisp.org>
22705 * doc/posix-functions/strftime.texi: Fix description of strftime
22708 2008-08-24 Bruno Haible <bruno@clisp.org>
22710 * tests/uniwidth/test-uc_width2.c: New file.
22711 * tests/uniwidth/test-uc_width2.sh: New file.
22712 * modules/uniwidth/width-tests (Files): Add the new files.
22713 (TESTS): Add uniwidth/test-uc_width2.sh.
22714 (TESTS_ENVIRONMENT): New variable.
22715 (check_PROGRAMS): Add test-uc_width2.
22716 (test_uc_width2_SOURCES): New variable.
22718 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22719 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22721 Reported by Alexander V. Lukyanov <lav@netis.ru>.
22723 2008-08-22 Eric Blake <ebb9@byu.net>
22725 test-lock, test-tls: mention why a test is skipped
22726 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22728 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22730 count-one-bits: relax license
22731 * modules/count-one-bits (License): Relicense to LGPLv2+.
22732 Suggested by Ludovic Courtès, approved by Ben Pfaff.
22734 2008-08-22 Andreas Schwab <schwab@suse.de>
22736 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22737 Remove spurious space in assignment.
22739 2008-08-21 Simon Josefsson <simon@josefsson.org>
22741 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
22742 Paul Eggert <eggert@CS.UCLA.EDU>.
22744 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
22746 * modules/gettext: Add m4/threadlib.m4.
22748 2008-08-19 Eric Blake <ebb9@byu.net>
22750 test-c-stack: fix compilation failure on FreeBSD 5.0
22751 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22752 headers before <sys/resource.h>.
22753 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22755 Reported by Nelson H. F. Beebe.
22757 strverscmp: migrate from "strverscmp.h" to <string.h>
22758 * modules/string (Makefile.am): Add new hooks.
22759 * modules/strverscmp (Files): Remove strverscmp.h.
22760 (Depends-on): Add string.
22761 (configure.ac): Add indicator.
22762 (Include): Mention new header.
22763 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22765 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22767 * lib/strverscmp.h: Delete.
22768 * lib/string.in.h (strverscmp): Provide declaration, when needed.
22769 * tests/test-strverscmp.c (includes): Adjust client.
22770 * lib/check-version.c (includes): Likewise.
22771 * NEWS: Document the change.
22773 strverscmp: add unit test
22774 * modules/strverscmp-tests: New file.
22775 * tests/test-strverscmp.c: Likewise.
22777 2008-08-19 Simon Josefsson <simon@josefsson.org>
22779 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
22780 regarding Windows crypto stuff, from Mono.
22782 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
22784 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
22785 if present, for intel RND. Return error on failures.
22787 2008-08-18 Ben Pfaff <blp@gnu.org>
22789 gitlog-to-changelog: give better diagnostic for failed pipe-open
22790 * build-aux/gitlog-to-changelog: Improve error message: suggest
22791 that the version of Git may be too old.
22793 2008-08-18 Simon Josefsson <simon@josefsson.org>
22795 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
22796 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
22798 2008-08-18 Bruno Haible <bruno@clisp.org>
22800 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22803 2008-08-18 Bruno Haible <bruno@clisp.org>
22805 * lib/glthread/threadlib.c: Include <pthread.h>.
22807 2008-08-18 Bruno Haible <bruno@clisp.org>
22809 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22810 glthread_recursive_lock_* macros.
22811 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22814 2008-08-18 Bruno Haible <bruno@clisp.org>
22816 * lib/glthread/thread.c: Avoid forcing a context switch right after
22819 2008-08-17 Bruno Haible <bruno@clisp.org>
22821 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22822 * lib/glthread/thread.h: Provide Win32 specific implementation.
22823 * modules/thread (Files): Add lib/glthread/thread.c.
22824 (Depends-on): Add lock.
22825 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22827 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22829 New module 'yield'.
22830 * modules/yield: New file.
22831 * lib/glthread/yield.h: New file.
22832 * m4/yield.m4: New file.
22833 * MODULES.html.sh (Multithreading): Add yield.
22835 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22837 New module 'thread'.
22838 * modules/thread: New file.
22839 * lib/glthread/thread.h: New file.
22840 * m4/thread.m4: New file.
22841 * MODULES.html.sh (Multithreading): Add thread.
22843 2008-08-17 Bruno Haible <bruno@clisp.org>
22845 * lib/glthread/lock.h: Include <stdlib.h> always.
22846 * lib/glthread/tls.h: Likewise.
22847 * lib/glthread/cond.h: Likewise.
22849 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22852 * modules/cond: New file.
22853 * lib/glthread/cond.h: New file.
22854 * lib/glthread/cond.c: New file.
22855 * m4/cond.m4: New file.
22856 * MODULES.html.sh (Multithreading): Add cond.
22858 2008-08-16 Eric Blake <ebb9@byu.net>
22860 c-stack: fix regression on Irix 5.3 from 2008-06-21
22861 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22863 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22864 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22865 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22866 * modules/signal (Makefile.am): Use the value.
22867 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22868 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22869 * doc/posix-headers/signal.texi (signal.h): Document this
22871 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22872 Reported by Tom G. Christensen.
22874 2008-08-17 Bruno Haible <bruno@clisp.org>
22876 New module 'threadlib'.
22877 * modules/threadlib: New file.
22878 * lib/glthread/threadlib.c: New file, extracted from
22879 lib/glthread/lock.c.
22880 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22882 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22883 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22884 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22886 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22887 (gl_DISABLE_THREADS): Remove macro.
22888 * modules/lock (Files): Remove build-aux/config.rpath.
22889 (Depends-on): Remove havelib. Add threadlib.
22890 (configure.ac-early): Remove section.
22891 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22892 * modules/tls (Depends-on): Remove lock. Add threadlib.
22893 (Link): New section, copied from threadlib.
22894 * MODULES.html.sh (Multithreading): Add threadlib.
22896 2008-08-14 Bruno Haible <bruno@clisp.org>
22898 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22899 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22900 glthread_rwlock_unlock, glthread_rwlock_destroy,
22901 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22902 glthread_recursive_lock_destroy): Define as macros always.
22903 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22904 glthread_lock_lock.
22905 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22906 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22907 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22908 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22909 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22910 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22911 (glthread_recursive_lock_lock_func): Renamed from
22912 glthread_recursive_lock_lock.
22913 (glthread_recursive_lock_unlock_func): Renamed from
22914 glthread_recursive_lock_unlock.
22915 (glthread_recursive_lock_destroy_func): Renamed from
22916 glthread_recursive_lock_destroy.
22918 2008-08-14 Bruno Haible <bruno@clisp.org>
22920 * lib/glthread/lock.h: Renamed from lib/lock.h.
22921 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22922 * lib/glthread/tls.h: Renamed from lib/tls.h.
22923 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22924 * lib/fstrcmp.c: Update includes.
22925 * lib/strsignal.c: Update includes.
22926 * modules/lock (Files, Makefile.am): Update.
22927 (Include): Change to "glthread/lock.h".
22928 * modules/tls (Files, Makefile.am): Update.
22929 (Include): Change to "glthread/tls.h".
22930 * tests/test-lock.c: Update includes.
22931 * tests/test-tls.c: Update includes.
22932 * NEWS: Mention the renamed header files.
22934 2008-08-11 Jim Meyering <meyering@redhat.com>
22936 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22938 2008-08-11 Eric Blake <ebb9@byu.net>
22940 test-c-stack: avoid C99-ism
22941 * tests/test-c-stack.c (main): Fix whitespace, move declaration
22943 Reported by Alain Guibert.
22945 2008-08-10 Jim Meyering <meyering@redhat.com>
22947 ensure that return value of uinttostr et al are not ignored
22948 * lib/inttostr.h (__GNUC_PREREQ): Define.
22949 (__attribute_warn_unused_result__): Define.
22950 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22952 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
22954 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22955 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22957 2008-08-07 Jim Meyering <meyering@redhat.com>
22959 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22961 * modules/mkstemp (License): Relicense under LGPLv2+.
22962 * modules/tempname (License): Likewise.
22964 2008-08-06 Bruno Haible <bruno@clisp.org>
22966 * lib/poll.c (poll): Further micro-optimization.
22968 2008-08-06 Jim Meyering <meyering@redhat.com>
22970 inet_pton.c: use locale-independent tolower
22971 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22972 (inet_pton6): Use c_tolower rather than tolower.
22973 * modules/inet_pton (Depends-on): Add c-ctype.
22975 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
22977 * lib/poll.c (poll): Avoid division when timeout is 0, cache
22978 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
22980 2008-08-06 Jim Meyering <meyering@redhat.com>
22982 * modules/inet_pton (License): Relicense under LGPLv2+.
22984 2008-08-03 Bruno Haible <bruno@clisp.org>
22986 Additional non-aborting API for lock and tls.
22987 * lib/lock.h: Include <errno.h>.
22988 (glthread_lock_init): New macro/function.
22989 (gl_lock_init): Define as wrapper around glthread_lock_init.
22990 (glthread_lock_lock): New macro/function.
22991 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22992 (glthread_lock_unlock): New macro/function.
22993 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22994 (glthread_lock_destroy): New macro/function.
22995 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22996 (glthread_rwlock_init): New macro/function.
22997 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22998 (glthread_rwlock_rdlock): New macro/function.
22999 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23000 (glthread_rwlock_wrlock): New macro/function.
23001 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23002 (glthread_rwlock_unlock): New macro/function.
23003 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23004 (glthread_rwlock_destroy): New macro/function.
23005 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23006 (glthread_recursive_lock_init): New macro/function.
23007 (gl_recursive_lock_init): Define as wrapper around
23008 glthread_recursive_lock_init.
23009 (glthread_recursive_lock_lock): New macro/function.
23010 (gl_recursive_lock_lock): Define as wrapper around
23011 glthread_recursive_lock_lock.
23012 (glthread_recursive_lock_unlock): New macro/function.
23013 (gl_recursive_lock_unlock): Define as wrapper around
23014 glthread_recursive_lock_unlock.
23015 (glthread_recursive_lock_destroy): New macro/function.
23016 (gl_recursive_lock_destroy): Define as wrapper around
23017 glthread_recursive_lock_destroy.
23018 (glthread_once): New macro/function.
23019 (gl_once): Define as wrapper around glthread_once.
23020 Update function declarations.
23021 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23022 glthread_rwlock_init. Return error code.
23023 (glthread_rwlock_rdlock_multithreaded): Renamed from
23024 glthread_rwlock_rdlock. Return error code.
23025 (glthread_rwlock_wrlock_multithreaded): Renamed from
23026 glthread_rwlock_wrlock. Return error code.
23027 (glthread_rwlock_unlock_multithreaded): Renamed from
23028 glthread_rwlock_unlock. Return error code.
23029 (glthread_rwlock_destroy_multithreaded): Renamed from
23030 glthread_rwlock_destroy. Return error code.
23031 (glthread_recursive_lock_init_multithreaded): Renamed from
23032 glthread_recursive_lock_init. Return error code.
23033 (glthread_recursive_lock_lock_multithreaded): Renamed from
23034 glthread_recursive_lock_lock. Return error code.
23035 (glthread_recursive_lock_unlock_multithreaded): Renamed from
23036 glthread_recursive_lock_unlock. Return error code.
23037 (glthread_recursive_lock_destroy_multithreaded): Renamed from
23038 glthread_recursive_lock_destroy. Return error code.
23039 (glthread_once_call): Make static.
23040 (glthread_once_multithreaded): Renamed from glthread_once.
23041 * lib/tls.h: Include <errno.h>.
23042 (glthread_tls_key_init): New macro/function.
23043 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23044 (glthread_tls_set): New macro/function.
23045 (gl_tls_set): Define as wrapper around glthread_tls_set.
23046 (glthread_tls_key_destroy): New macro/function.
23047 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23048 Update function declarations.
23049 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23051 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23053 2008-08-04 Eric Blake <ebb9@byu.net>
23055 gnumakefile: use space, not TAB, outside of targets
23056 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23058 2008-08-02 Jim Meyering <meyering@redhat.com>
23060 getdate.y: avoid locale-dependent date parsing failure
23061 In Turkish locales, getdate would fail to recognize keywords
23062 containing a lowercase "i". The solution is not to rely on
23063 locale-sensitive case-conversion.
23064 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23065 (lookup_word): Use c_toupper in place of toupper.
23066 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23067 Reported by Vefa Bicakci <bicave@superonline.com> in
23068 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23069 * modules/getdate (Depends-on): Add c-ctype.
23071 2008-08-02 Bruno Haible <bruno@clisp.org>
23073 * gnulib-tool (func_import): When updating or creating a .gitignore
23074 file, prepend each added line with a slash, and ignore leading slashes
23075 from the existing lines.
23076 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23078 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23080 Portability fix for GNU make 3.79.1.
23081 * top/GNUmakefile: Avoid 'else COND', which older GNU make
23082 versions do not understand.
23084 2008-08-01 Bruno Haible <bruno@clisp.org>
23086 Work around bug of HP-UX 10.20 cc with -0.0 literal.
23087 * tests/test-isnanf.h (zero): New variable.
23088 (main): Avoid literal -0.0f.
23089 * tests/test-isnand.h (zero): New variable.
23090 (main): Avoid literal -0.0.
23091 * tests/test-isnanl.h (zero): New variable.
23092 (main): Avoid literal -0.0L.
23093 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23094 (test_float, test_double, test_long_double): Avoid literals -0.0f,
23096 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23097 (test_signbitd): Avoid literal -0.0.
23098 (test_signbitl): Avoid literal -0.0L.
23099 * tests/test-ceilf1.c (zero): New variable.
23100 (main): Avoid literal -0.0f.
23101 * tests/test-ceill.c (zero): New variable.
23102 (main): Avoid literal -0.0L.
23103 * tests/test-floorf1.c (zero): New variable.
23104 (main): Avoid literal -0.0f.
23105 * tests/test-floorl.c (zero): New variable.
23106 (main): Avoid literal -0.0L.
23107 * tests/test-roundf1.c (zero): New variable.
23108 (main): Avoid literal -0.0f.
23109 * tests/test-round1.c (zero): New variable.
23110 (main): Avoid literal -0.0.
23111 * tests/test-roundl.c (zero): New variable.
23112 (main): Avoid literal -0.0L.
23113 * tests/test-truncf1.c (zero): New variable.
23114 (main): Avoid literal -0.0f.
23115 * tests/test-trunc1.c (zero): New variable.
23116 (main): Avoid literal -0.0.
23117 * tests/test-truncl.c (zero): New variable.
23118 (main): Avoid literal -0.0L.
23119 * tests/test-frexp.c (zero): New variable.
23120 (main): Avoid literal -0.0.
23121 * tests/test-frexpl.c (zero): New variable.
23122 (main): Avoid literal -0.0L.
23123 * tests/test-ldexpl.c (zero): New variable.
23124 (main): Avoid literal -0.0L.
23125 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23126 (zerod, zerol): New variables.
23127 (test_function): Avoid literals -0.0, -0.0L.
23128 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23129 (zerod, zerol): New variables.
23130 (test_function): Avoid literals -0.0, -0.0L.
23131 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23132 (zerod, zerol): New variables.
23133 (test_function): Avoid literals -0.0, -0.0L.
23134 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23135 (zerod, zerol): New variables.
23136 (test_function): Avoid literals -0.0, -0.0L.
23137 * tests/test-strtod.c (zero): New variable.
23138 (main): Avoid literal -0.0.
23139 Reported by Jonathan C. Patschke <jp@centtech.com>.
23141 2008-07-31 Jim Meyering <meyering@redhat.com>
23143 sha256.h: correct definition of SHA224_DIGEST_SIZE
23144 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23145 Reported by Paulie Pena IV <paulie4@gmail.com>.
23146 Define as 224 / 8, rather than as a literal.
23147 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23148 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23149 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23151 2008-07-31 Bruno Haible <bruno@clisp.org>
23153 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23154 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23155 Reported by Jonathan Patschke <jp@centtech.com>.
23157 2008-07-31 Bruno Haible <bruno@clisp.org>
23159 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23160 Reported by Paolo Bonzini <bonzini@gnu.org>.
23162 2008-07-30 Eric Blake <ebb9@byu.net>
23164 test-strtod: allow compilation without -lm
23165 * tests/test-strtod.c (main): Avoid link dependence on fabs.
23166 Reported by Dennis Clarke <blastwave@gmail.com>.
23168 2008-07-28 Jim Meyering <meyering@redhat.com>
23170 bootstrap: work also when there are no .po files in po/
23171 * build-aux/bootstrap (update_po_files): Complete the change
23172 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23174 2008-07-27 Jim Meyering <meyering@redhat.com>
23176 * users.txt: Add zile.
23178 2008-07-26 Ben Pfaff <blp@gnu.org>
23180 Add missing dependencies on new m4/exponent[fdl].m4 files.
23181 * modules/isnanf-nolibm: Add m4/exponentf.m4.
23182 * modules/isnand-nolibm: Add m4/exponentd.m4.
23183 * modules/isnanl-nolibm: Add m4/exponentl.m4.
23184 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23185 m4/isnan[fdl].m4, because the macros actually used moved.
23186 Reported by Jim Meyering.
23188 2008-07-14 Ben Pfaff <blp@gnu.org>
23191 * lib/isinf.c: New file.
23192 * lib/math.in.h: Define isinf macro if we have decided to replace
23194 * m4/isinf.m4: New file.
23195 * m4/math_h.m4: Initialize and substitute variables for isinf
23197 * modules/isinf: New file.
23198 * modules/isinf-tests: New file.
23199 * modules/math: Add substitutions for new module.
23200 * tests/test-isinf.c: New file.
23201 * doc/posix-functions/isinf.texi: Mention new module.
23202 * MODULES.html.sh: Mention new module.
23204 2008-07-14 Ben Pfaff <blp@gnu.org>
23206 Factor out some macros for use by additional modules.
23207 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23209 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23211 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23213 * m4/exponentf.m4: New file.
23214 * m4/exponentd.m4: New file.
23215 * m4/exponentl.m4: New file.
23216 * modules/isnanf: Use new file m4/exponentf.m4.
23217 * modules/isnand: Use new file m4/exponentd.m4.
23218 * modules/isnanl: Use new file m4/exponentl.m4.
23220 2008-07-23 Ulrich Drepper <drepper@redhat.com>
23222 mktime.c: normalize tp->tm_isdst value to -1/0/1.
23223 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23224 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23225 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23227 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23228 readlink on platforms without PATH_MAX.
23230 2008-07-21 Eric Blake <ebb9@byu.net>
23232 Warn, not fail, on stale version.
23233 * top/GNUmakefile (_curr-ver): Tone down previous patch.
23235 Don't allow installation with stale devel version number.
23236 * top/GNUmakefile (_is-install-target): New macro.
23237 (_curr-ver): Forbid installation with stale version number.
23239 2008-07-20 Bruno Haible <bruno@clisp.org>
23241 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23243 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23245 2008-07-20 Bruno Haible <bruno@clisp.org>
23247 * lib/c-stack.h (c_stack_action): Add documentation.
23248 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23250 2008-07-20 Bruno Haible <bruno@clisp.org>
23252 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23253 * modules/readlink (License): Likewise.
23255 2008-07-17 Eric Blake <ebb9@byu.net>
23257 * modules/c-stack (Link): Fix typo.
23259 Make c-stack use libsigsegv, when available.
23260 * modules/c-stack (Depends-on): Add libsigsegv.
23261 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23263 * lib/c-stack.c (SIGSTKSZ): Define fallback.
23264 (segv_handler, overflow_handler, c_stack_action)
23265 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23266 implementation when libsigsegv is available, but only when using
23267 the library is necessary.
23268 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23269 comment, explaining why XSI check fails on Linux.
23270 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23271 * tests/test-c-stack2.sh: Tweak skip message.
23272 * NEWS: Document new link-time requirements.
23274 2008-07-16 Eric Blake <ebb9@byu.net>
23276 c-stack: Expose false positives when not using libsigsegv.
23277 * modules/c-stack-tests (Files): Expand test.
23278 * tests/test-c-stack.c (main): Add means to conditionally trigger
23279 non-overflow SIGSEGV.
23280 * tests/test-c-stack2.sh: New file.
23282 2008-07-14 Bruno Haible <bruno@clisp.org>
23284 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23285 Reported by Eric Blake.
23287 2008-07-14 Sam Steingold <sds@gnu.org>
23288 Bruno Haible <bruno@clisp.org>
23290 New module libsigsegv.
23291 * modules/libsigsegv: New file.
23292 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23294 * MODULES.html.sh (Signal handling): New section.
23296 2008-07-14 Bruno Haible <bruno@clisp.org>
23298 * modules/unictype/ctype-* (Description): Add the word "function".
23299 Improves the resulting doc in MODULES.html.
23301 2008-07-12 Ben Pfaff <blp@gnu.org>
23303 Add longlong module.
23304 * modules/longlong: New file.
23306 2008-07-12 Bruno Haible <bruno@clisp.org>
23308 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23311 2008-07-10 Ben Pfaff <blp@gnu.org>
23314 * doc/posix-functions/isnan.texi: Mention new module.
23315 * lib/math.in.h: Define isnan macro if we have decided to replace
23317 * m4/isnan.m4: New file.
23318 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23319 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23321 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23323 * m4/math_h.m4: Initialize and substitute variables for isnan
23325 * modules/isnan: New file.
23326 * modules/isnan-tests: New file.
23327 * modules/math: Add substitutions for new module.
23328 * tests/test-isnan.c: New file.
23329 * MODULES.html.sh: Mention new module.
23331 2008-07-10 Ben Pfaff <blp@gnu.org>
23334 * lib/isnanf.m4: New file.
23335 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23336 (gl_HAVE_ISNANF_IN_LIBM): New macro.
23337 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23338 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23339 * modules/isnanf: New file.
23340 * modules/isnanf-tests: New file.
23341 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23343 * tests/test-isnanf-nolibm.c: factored most of its contents into
23344 new file tests/test-isnanf.h.
23345 * tests/test-isnanf.h: New file.
23346 * tests/test-isnanf.c: New file.
23347 * MODULES.html.sh: Mention new module.
23348 * doc/glibc-functions/isnanf.texi: Mention new module.
23350 2008-07-10 Ben Pfaff <blp@gnu.org>
23353 * lib/isnand.h: New file.
23354 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23355 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23356 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23357 functionality also.
23358 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23359 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23360 (gl_HAVE_ISNAND_IN_LIBM): New macro.
23361 * modules/isnand: New file.
23362 * modules/isnand-tests: New file.
23363 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23365 * tests/test-isnand-nolibm.c: factored most of its contents into
23366 new file tests/test-isnand.h.
23367 * tests/test-isnand.h: New file.
23368 * tests/test-isnand.c: New file.
23369 * MODULES.html.sh: Mention new module.
23371 2008-07-10 Ben Pfaff <blp@gnu.org>
23373 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23374 * lib/isnand.h: Rename lib/isnand-nolibm.h.
23375 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23376 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23377 * modules/isnanf-nolibm: Update references to renamed files.
23378 * modules/isnand-nolibm: Likewise.
23379 * modules/isnanf-nolibm-tests: Likewise.
23380 * modules/isnand-nolibm-tests: Likewise.
23381 * lib/frexp.c: Likewise.
23382 * lib/isfinite.c: Likewise.
23383 * lib/signbitd.c: Likewise.
23384 * lib/signbitf.c: Likewise.
23385 * lib/vasnprintf.c: Likewise.
23386 * tests/test-ceilf1.c: Likewise.
23387 * tests/test-ceilf2.c: Likewise.
23388 * tests/test-floorf1.c: Likewise.
23389 * tests/test-floorf2.c: Likewise.
23390 * tests/test-frexp.c: Likewise.
23391 * tests/test-round1.c: Likewise.
23392 * tests/test-round2.c: Likewise.
23393 * tests/test-roundf1.c: Likewise.
23394 * tests/test-strtod.c: Likewise.
23395 * tests/test-trunc1.c: Likewise.
23396 * tests/test-trunc2.c: Likewise.
23397 * tests/test-truncf1.c: Likewise.
23398 * tests/test-truncf2.c: Likewise.
23399 * NEWS: Mention the renamed header files.
23401 2008-07-11 Jim Meyering <meyering@redhat.com>
23403 vc-list-files: make the last-resort awk code more portable
23404 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23405 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23406 does not support it.
23408 2008-07-10 Eric Blake <ebb9@byu.net>
23410 Work with tar's bootstrap.
23411 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23412 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23415 2008-07-09 Jim Meyering <meyering@redhat.com>
23417 posix-shell.m4: fix typo that made this test malfunction
23418 * m4/posix-shell.m4: Remove capitalization in variable name.
23420 2008-07-08 Bruno Haible <bruno@clisp.org>
23422 * m4/onceonly.m4: Update comments.
23423 Reported by Ben Pfaff <blp@cs.stanford.edu>.
23425 2008-07-04 Jim Meyering <meyering@redhat.com>
23427 * users.txt: Add vc-dwim.
23428 (bison, coreutils): Use the gitweb URL.
23430 2008-07-03 Jim Meyering <meyering@redhat.com>
23432 * users.txt: Add libffcall. From Sam Steingold.
23434 2008-07-03 Ondřej Vašík <ovasik@redhat.com>
23436 getdate.y: do not ignore TZ with relative day, month or year offset
23437 * lib/getdate.y (get_date): Move the tz-handling block to follow the
23438 relative-date-handling, since otherwise, the latter would clobber the
23439 sole output (an updated Start value) of the tz-handling block.
23440 * tests/test-getdate.c: Tests for the fix
23442 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23444 Recognize 'foo_LIBRARIES += libgnu.a'.
23445 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23446 makefile snippet has already specified an installation location,
23449 2008-07-02 Ondřej Vašík <ovasik@redhat.com>
23451 getdate.y: factor out common actions
23452 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23453 Use them in place of open-coded actions.
23455 2008-07-01 Simon Josefsson <simon@josefsson.org>
23457 Add self-test for getdate module.
23458 * modules/getdate-tests: New file.
23459 * tests/test-getdate.c: New file.
23461 2008-06-29 Bruno Haible <bruno@clisp.org>
23463 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23465 Reported by Sylvain Beucler <beuc@beuc.net>.
23467 2008-06-29 Bruno Haible <bruno@clisp.org>
23469 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23470 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23472 2008-06-29 Bruno Haible <bruno@clisp.org>
23474 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23476 Reported by Sylvain Beucler <beuc@beuc.net>.
23478 2008-06-26 Jim Meyering <meyering@redhat.com>
23480 make several modules depend on the "open" module
23481 This provides slightly increased consistency when opening-for-write
23482 the name of a non-directory spelled with a trailing slash.
23483 * modules/chdir-safer: Likewise.
23484 * modules/chown: Likewise.
23485 * modules/clean-temp: Likewise.
23486 * modules/copy-file: Likewise.
23487 * modules/fchdir: Likewise.
23488 * modules/fcntl-safer: Likewise.
23489 * modules/pipe: Likewise.
23490 * modules/utime: Likewise.
23491 Prompted by Eric Blake and Bruno Haible.
23493 2008-06-24 Andreas Schwab <schwab@suse.de>
23495 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23496 literals can be used as initializers for global variables.
23498 2008-06-23 Eric Blake <ebb9@byu.net>
23500 Make gnulib-cache.m4 easier to diff.
23501 * gnulib-tool (func_import): Allow newlines when reading cached
23502 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23504 2008-06-23 Bruno Haible <bruno@clisp.org>
23506 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23507 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23508 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23509 m4/signalblocking.m4.
23510 (gl_PREREQ_SIGACTION): Don't invoke it.
23511 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23512 gl_PREREQ_SIG_HANDLER_H.
23513 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23514 Don't check for sigaction here.
23516 2008-06-23 Bruno Haible <bruno@clisp.org>
23518 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23519 (install_handlers): Don't set the SA_RESETHAND flag.
23521 2008-06-23 Bruno Haible <bruno@clisp.org>
23523 * m4/sigaction.m4: Comment fixes.
23524 * lib/signal.in.h: Likewise.
23526 2008-06-23 Eric Blake <ebb9@byu.net>
23529 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23531 Avoid SA_ namespace.
23532 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23533 Reported by Ralf Wildenhues.
23535 Avoid test failure due to SA_RESTORER.
23536 * tests/test-sigaction.c (SA_MASK): New macro.
23537 (main): Avoid failing due to extension flags being set.
23538 Reported by Jim Meyering.
23540 Revert use of sig-handler.h in sigprocmask.c.
23541 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23542 it requires the existence of struct sigaction.
23543 * lib/sigprocmask.c (handler_t): Restore typedef.
23544 (rpl_signal, old_handlers): Use local type.
23546 2008-06-22 Bruno Haible <bruno@clisp.org>
23548 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23550 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23552 2008-06-22 Bruno Haible <bruno@clisp.org>
23554 * doc/posix-functions/siginterrupt.texi: Move note.
23556 * lib/signal.in.h (SA_RESTART): New macro.
23557 * lib/sigaction.c: Update comment.
23559 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23561 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23562 (gl_PREREQ_SIGPROCMASK): Invoke it.
23563 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23565 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23567 * lib/sigprocmask.c: Update a comment.
23569 2008-06-21 Eric Blake <ebb9@byu.net>
23571 Use sigaction module rather than signal().
23572 * modules/c-stack (Depends-on): Add sigaction.
23573 * modules/fatal-signal (Depends-on): Likewise.
23574 * modules/nanosleep (Depends-on): Likewise.
23575 * modules/sigprocmask (Files): Add sig-handler.h.
23576 * modules/sigaction (Files): Likewise.
23577 * lib/sig-handler.h (get_handler): New file, suggested by Paul
23579 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23580 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23581 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23582 (init_fatal_signals): Likewise.
23583 * lib/nanosleep.c (rpl_nanosleep): Likewise.
23584 (siginterrupt): Delete fallback.
23585 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23587 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23590 New module sigaction, for mingw.
23591 * modules/sigaction: New module...
23592 * modules/sigaction-tests: ...and its test.
23593 * m4/sigaction.m4: New file.
23594 * lib/sigaction.c: Likewise.
23595 * tests/test-sigaction.c: Likewise.
23596 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23597 * modules/signal (Makefile.am): Likewise.
23598 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23600 * doc/posix-headers/signal.texi (signal.h): Mention provided
23602 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23603 that sigaction is preferable.
23604 * doc/posix-functions/sigaction.texi (sigaction): Mention new
23606 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23609 Improve robustness of sigprocmask by overriding signal.
23610 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23612 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23613 (SIGKILL, SIGSTOP): Provide fallbacks.
23614 (rpl_signal): Implement.
23615 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23616 signal can be called inside handlers.
23618 Fix nanosleep module on mingw.
23619 * modules/nanosleep (Depends-on): Add sys_select.
23620 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23622 Fix licensing of sigprocmask.
23623 * modules/raise (License): Relicense as LGPL.
23625 2008-06-21 Bruno Haible <bruno@clisp.org>
23627 * lib/propername.c (proper_name_utf8): Don't use the transliterated
23628 result if it contains question marks.
23629 Reported by Michael Geng <linux@michaelgeng.de>.
23631 2008-06-19 Bruno Haible <bruno@clisp.org>
23634 * doc/gnulib.texi: Include updated-stamp.texi.
23635 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23636 (updated-stamp.texi): New rule.
23637 (gnulib.info): Depend on it.
23638 * doc/.gitignore: Add updated-stamp.texi.
23639 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23641 2008-06-19 Bruno Haible <bruno@clisp.org>
23643 * doc/Makefile (gnulib.info): Update and simplify dependencies.
23644 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23646 2008-06-19 Eric Blake <ebb9@byu.net>
23648 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23649 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23650 Reported by Stepan Kasal.
23652 2008-06-18 Bruno Haible <bruno@clisp.org>
23654 * lib/fatal-signal.c (init_fatal_signals): Add comment.
23655 Reported by Eric Blake.
23657 2008-06-18 Eric Blake <ebb9@byu.net>
23659 Work around cygwin 1.5.25 strsignal bug.
23660 * tests/test-strsignal.c: Allow for const char *.
23661 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23663 2008-06-18 Simon Josefsson <simon@josefsson.org>
23665 * users.txt: Update URL to article and add author/date
23668 2008-06-17 Bruno Haible <bruno@clisp.org>
23670 New macro gl_DISABLE_THREADS.
23671 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23672 if the user did not pass --enable-threads or --disable-threads option.
23673 (gl_DISABLE_THREADS): New macro.
23674 Reported by Eric Blake <ebb9@byu.net>.
23676 2008-06-17 Bruno Haible <bruno@clisp.org>
23678 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23679 when the macro ignores it.
23680 Based on a patch by Eric Blake <ebb9@byu.net>.
23682 2008-06-17 Bruno Haible <bruno@clisp.org>
23684 * modules/tls (License): Change to LGPLv2+.
23685 Reported by Eric Blake.
23687 2008-06-17 Eric Blake <ebb9@byu.net>
23689 Simplify c-stack prerequisites.
23690 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23691 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23692 no longer requires <ucontext.h> to exist. Optimize setrlimit
23694 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23697 Move c-stack test into testsuite.
23698 * modules/c-stack-tests: New file.
23699 * lib/c-stack.c [DEBUG]: Move test program...
23700 * tests/test-c-stack.c: ...into this new file. Skip rather than
23701 fail test if sigaltstack is lacking.
23702 * tests/test-c-stack.sh: New driver file.
23704 2008-06-16 Eric Blake <ebb9@byu.net>
23706 Use raise module consistently.
23707 * modules/fatal-signal (Depends-on): Add raise.
23708 * modules/sigprocmask (Depends-on): Likewise.
23709 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23710 * lib/sigprocmask.c (sigprocmask): Likewise.
23711 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23712 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23714 Fix compliance bug in sigpending.
23715 * lib/sigprocmask.c (sigpending): Return pending array via
23716 parameter, not return value.
23718 2008-06-14 Eric Blake <ebb9@byu.net>
23720 Improve obstack-printf test code.
23721 * tests/test-obstack-printf.c (test_function): Fix comment, and
23722 simplify usage of obstack_* in macros. Add a test for coverage.
23723 Reported by Bruno Haible.
23725 2008-06-14 Bruno Haible <bruno@clisp.org>
23727 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23728 array size as a constant, not as a const variable.
23729 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23730 AC_USE_SYSTEM_EXTENSIONS.
23731 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23732 Test whether the obstack_printf function actually exists.
23733 * modules/obstack-printf (Depends-on): Add extensions.
23734 (Include): Remove obstack.h.
23735 * modules/obstack-printf-posix (Depends-on): Add extensions.
23736 (Include): Remove obstack.h.
23738 2008-06-13 Eric Blake <ebb9@byu.net>
23740 Add obstack-printf and obstack-printf-posix modules.
23741 * modules/obstack-printf: New file.
23742 * modules/obstack-printf-posix: Likewise.
23743 * MODULES.html.sh (Misc): Mention them.
23744 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23746 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23748 * modules/stdio (Makefile.am): Accomodate new modules.
23749 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23750 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23752 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23754 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23755 (gl_REPLACE_OBSTACK_PRINTF): New macros
23756 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23757 * tests/test-obstack-printf.c: New file.
23758 * modules/obstack-printf-tests: Likewise.
23759 * modules/obstack-printf-posix-tests: Likewise.
23761 2008-06-11 Bruno Haible <bruno@clisp.org>
23763 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23764 * lib/open.c: Include errno.h.
23765 (open): Fail when attempting to write to a file that has a trailing
23767 * tests/test-open.c (main): Test against trailing slash bug.
23768 * doc/posix-functions/open.texi: Mention the trailing slash bug.
23770 2008-06-10 Bruno Haible <bruno@clisp.org>
23772 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23773 for $? to work inside the trap command, with various /bin/sh-s.
23774 * tests/test-vc-list-files-cvs.sh: Likewise.
23776 2008-06-10 Bruno Haible <bruno@clisp.org>
23778 * lib/acl-internal.h: Don't include gettext.h here.
23779 * lib/set-mode-acl.c: Include gettext.h here.
23780 * lib/copy-acl.c: Likewise.
23782 2008-06-10 Bruno Haible <bruno@clisp.org>
23784 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23785 * lib/wait-process.c (wait_subprocess): Likewise.
23786 * lib/execute.h (execute): Add termsigp argument.
23787 * lib/execute.c (execute): Likewise.
23788 * lib/csharpcomp.c (compile_csharp_using_pnet,
23789 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23790 * lib/csharpexec.c (execute_csharp_using_pnet,
23791 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23792 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23793 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23794 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23795 is_jikes_present): Update.
23796 * lib/javaexec.c (execute_java_class): Update.
23797 * lib/javaversion.c (execute_and_read_line): Update.
23798 * NEWS: Document the changes.
23799 Reported by Eric Blake.
23801 2008-06-10 Eric Blake <ebb9@byu.net>
23803 Add missing include.
23804 * tests/test-strstr.c (includes): Add <signal.h>.
23805 * tests/test-strcasestr.c (includes): Likewise.
23806 * tests/test-memmem.c (includes): Likewise.
23808 2008-06-10 Bruno Haible <bruno@clisp.org>
23810 * lib/wait-process.c (wait_subprocess): Add an assertion.
23812 2008-06-10 Bruno Haible <bruno@clisp.org>
23814 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23816 2008-06-10 Bruno Haible <bruno@clisp.org>
23818 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23820 * tests/test-strcasestr.c (main): Likewise.
23821 * tests/test-strstr.c (main): Likewise.
23823 2008-06-09 Bruno Haible <bruno@clisp.org>
23825 Work around the Solaris 10 ACE ACLs ABI change.
23826 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23827 declare if ACL_NO_TRIVIAL is present.
23828 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23829 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23830 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23831 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23832 define if ACL_NO_TRIVIAL is present.
23833 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23834 and use the current ABI.
23835 (file_has_acl): Use same #if condition as elsewhere.
23836 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23837 in use, and use the current ABI.
23838 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23839 Reported by Jim Meyering.
23841 2008-06-09 Eric Blake <ebb9@byu.net>
23843 Work around environments that (stupidly) ignore SIGALRM.
23844 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23845 before using alarm().
23846 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23847 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23848 Reported by Ian Beckwith <ianb@erislabs.net>.
23850 Produce autobuild blurb earlier in log.
23851 * modules/autobuild (configure.ac-early): Move AB_INIT here.
23853 2008-06-09 Jim Meyering <meyering@redhat.com>
23854 and Ondřej Vašík <ovasik@redhat.com>
23856 utimens.c: correct kernel bug work-around
23857 Ondřej Vašík found that the invalid return value of 280 indicates
23858 failure, not success, and the kernel bug we're trying to work
23859 around affects not just the utimensat call, but also the fallback
23861 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23863 [HAVE_FUTIMENS]: Use the same work-around, here.
23865 2008-06-09 Jim Meyering <meyering@redhat.com>
23867 add more guards around definition of ACE_-related code
23868 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23869 ALLOW and ACE_OWNER are also defined.
23871 2008-06-08 Bruno Haible <bruno@clisp.org>
23873 * lib/acl-internal.h: Add me as co-author.
23874 * lib/file-has-acl.c: Likewise.
23875 * lib/set-mode-acl.c: Likewise.
23876 * lib/copy-acl.c: Likewise.
23878 2008-06-08 Bruno Haible <bruno@clisp.org>
23880 Add support for AIX ACLs.
23881 * lib/acl-internal.h (acl_nontrivial): New declaration.
23882 * lib/file-has-acl.c (acl_nontrivial): New function.
23883 (file_has_acl): Add implementation using AIX 4 ACL API.
23884 * lib/set-mode-acl.c (qset_acl): Likewise.
23885 * lib/copy-acl.c (qcopy_acl): Likewise.
23887 2008-06-08 Bruno Haible <bruno@clisp.org>
23889 Add support for HP-UX ACLs.
23890 * lib/acl-internal.h (acl_nontrivial): New declaration.
23891 * lib/file-has-acl.c (acl_nontrivial): New function.
23892 (file_has_acl): Add implementation using HP-UX 11 ACL API.
23893 * lib/set-mode-acl.c (qset_acl): Likewise.
23894 * lib/copy-acl.c (qcopy_acl): Likewise.
23896 2008-06-08 Bruno Haible <bruno@clisp.org>
23898 Add support for Cygwin ACLs.
23899 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23900 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23901 the chmod_or_fchmod call.
23902 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23904 2008-06-08 Bruno Haible <bruno@clisp.org>
23906 Fix bug with setuid modes in Solaris 10+ code.
23907 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23908 succeeded, when the mode contains some special bits.
23910 2008-06-08 Bruno Haible <bruno@clisp.org>
23912 Add support for Solaris 7..10 ACLs.
23913 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23915 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23917 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23918 * lib/set-mode-acl.c (qset_acl): Likewise.
23919 * lib/copy-acl.c (qcopy_acl): Likewise.
23921 2008-06-08 Bruno Haible <bruno@clisp.org>
23923 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23925 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23926 (acl_access_nontrivial): Remove MacOS X case.
23927 (file_has_acl): Use acl_extended_nontrivial.
23928 * lib/copy-acl.c (qcopy_acl): Likewise.
23930 2008-06-08 Bruno Haible <bruno@clisp.org>
23932 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23934 2008-06-08 Jim Meyering <meyering@redhat.com>
23936 * modules/acl (Maintainer): Add Bruno Haible.
23938 2008-06-07 Bruno Haible <bruno@clisp.org>
23940 Improve support for Tru64 ACLs.
23941 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23944 2008-06-07 Bruno Haible <bruno@clisp.org>
23946 Add support for MacOS X ACLs.
23947 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23948 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23949 * lib/set-mode-acl.c (qset_acl): Likewise.
23950 * lib/copy-acl.c (qcopy_acl): Likewise.
23952 2008-06-07 Bruno Haible <bruno@clisp.org>
23954 Fix memory leak introduced on 2008-05-22.
23955 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23958 2008-06-07 Bruno Haible <bruno@clisp.org>
23960 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23961 to construct an empty ACL.
23963 2008-06-07 Bruno Haible <bruno@clisp.org>
23965 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23967 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23969 2008-06-07 Bruno Haible <bruno@clisp.org>
23971 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23972 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23974 2008-06-07 Bruno Haible <bruno@clisp.org>
23976 * doc/posix-functions/_setjmp.texi: Explain the use of this function
23977 regardless of POSIX.
23978 * doc/posix-functions/_longjmp.texi: Likewise.
23979 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23980 SystemV platform in this case.
23982 2008-06-06 Eric Blake <ebb9@byu.net>
23984 Document abort() bugs.
23985 * doc/posix-functions/abort.texi (abort): Mention anomalies.
23987 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23988 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23990 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23991 siglongjmp, but only as a macro.
23992 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23994 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23996 Tweak documentation to cover cygwin argz bugs.
23997 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23998 argz bug fix; no code change needed since no cygwin releases
23999 occurred between the last fix and the bug being tested.
24000 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24001 module and recently fixed cygwin bugs.
24002 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24003 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24004 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24005 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24006 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24008 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24009 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24010 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24011 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24012 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24013 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24016 Avoid gcc warning on cygwin.
24017 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24018 !ACL_NO_TRIVIAL]: Avoid unused variable.
24020 2008-06-05 Eric Blake <ebb9@byu.net>
24022 Be tolerant of UNKNOWN version in gnulib-tool test dir.
24023 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24024 git-version-gen fails to come up with a version.
24025 Reported by Simon Josefsson.
24027 2008-06-05 Jim Meyering <meyering@redhat.com>
24028 Paul Eggert <eggert@cs.ucla.edu>
24030 utimens.c: work around a probable Linux kernel bug
24031 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24032 appears to be a kernel bug that causes utimensat to return 280
24033 instead of 0, indicating success.
24035 2008-06-04 Bruno Haible <bruno@clisp.org>
24037 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24040 2008-06-04 Bruno Haible <bruno@clisp.org>
24042 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24043 * lib/file-has-acl.c (acl_access_nontrivial): New function.
24044 (file_has_acl): Use it. Save errno afterwards.
24045 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24047 2008-06-03 Bruno Haible <bruno@clisp.org>
24049 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24050 draft code. Simplify #ifs.
24051 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24052 Put Solaris code after POSIX-draft code. Fix comments regarding
24053 Solaris 10, HP-UX. Mention Cygwin.
24054 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24056 2008-06-03 Eric Blake <ebb9@byu.net>
24058 Provide fallback for older kernels.
24059 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24060 Provide runtime fallback if kernel lacks support.
24061 Reported by Mike Frysinger.
24063 2008-06-02 Bruno Haible <bruno@clisp.org>
24065 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24068 2008-06-02 Bruno Haible <bruno@clisp.org>
24070 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24071 * lib/copy-acl.c (qcopy_acl): Update comment.
24073 2008-06-02 Bruno Haible <bruno@clisp.org>
24075 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24078 2008-06-02 Bruno Haible <bruno@clisp.org>
24080 * tests/test-file-has-acl.sh: Use different code for Cygwin.
24081 * tests/test-set-mode-acl.sh: Likewise.
24082 * tests/test-copy-acl.sh: Likewise.
24083 * tests/test-copy-file.sh: Likewise.
24085 2008-06-02 Bruno Haible <bruno@clisp.org>
24087 * tests/test-file-has-acl.sh: Remove unused code.
24089 2008-06-01 Bruno Haible <bruno@clisp.org>
24091 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24092 (copy_acl): Just a wrapper around qcopy_acl that emits the error
24094 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24096 2008-06-01 Bruno Haible <bruno@clisp.org>
24098 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24099 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24100 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24102 * modules/acl-tests (configure.ac): Remove tests now contained in
24105 2008-06-02 Jim Meyering <meyering@redhat.com>
24107 announce-gen: use a better key-server host name
24108 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24109 it may be more consistently reliable. Suggested by Werner Koch
24110 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24112 2008-06-01 Bruno Haible <bruno@clisp.org>
24114 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24115 Reported by Voroskoi Andras <voroskoi@gmail.com>.
24117 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
24119 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24121 2008-06-01 Bruno Haible <bruno@clisp.org>
24124 * tests/test-file-has-acl.sh: New file.
24125 * tests/test-file-has-acl.c: New file.
24126 * tests/test-set-mode-acl.sh: New file.
24127 * tests/test-set-mode-acl.c: New file.
24128 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24129 * tests/test-copy-acl.c: New file.
24130 * modules/acl-tests: New file, based on modules/copy-file-tests.
24131 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24132 (Depends-on): Add acl-tests.
24133 (configure.ac): Remove checks.
24134 (Makefile.am): Don't create test-sameacls program here any more.
24136 2008-06-01 Bruno Haible <bruno@clisp.org>
24138 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24139 * tests/test-sameacls.c: Include progname.h.
24140 (main): Invoke set_program_name. Portability fixes for MacOS X,
24143 2008-06-01 Bruno Haible <bruno@clisp.org>
24145 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24147 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24149 2008-06-01 Bruno Haible <bruno@clisp.org>
24151 * modules/rpmatch (Depends-on): Add strdup.
24153 2008-06-01 Bruno Haible <bruno@clisp.org>
24155 * lib/pipe.c: Include unistd-safer.h.
24156 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24157 * modules/pipe (Depends-on): Add unistd-safer.
24159 2008-05-30 Simon Josefsson <simon@josefsson.org>
24161 * modules/autobuild (configure.ac): Call AB_INIT.
24163 2008-05-30 Simon Josefsson <simon@josefsson.org>
24165 * tests/test-getaddrinfo.c: Don't print debug messages by default.
24166 Suggested by Bruno Haible <bruno@clisp.org>.
24168 2008-05-30 Simon Josefsson <simon@josefsson.org>
24170 * tests/test-base64.c: Cast size_t to unsigned long when invoking
24171 printf. Use %lu instead of %d. Reported by Bruno Haible
24174 2008-05-29 Eric Blake <ebb9@byu.net>
24176 Prefer new POSIX 200x interfaces over futimesat.
24177 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24178 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24180 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24182 2008-05-28 Bruno Haible <bruno@clisp.org>
24184 * modules/stpcpy (License): Change to LGPLv2+.
24185 Requested by David Lutterkort <dlutter@redhat.com>.
24187 2008-05-27 Bruno Haible <bruno@clisp.org>
24189 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24191 Reported by Jose E. Marchesi <jemarch@gnu.org>.
24193 2008-05-27 Bruno Haible <bruno@clisp.org>
24195 * modules/iconv_open (Link): New section, from module 'iconv'.
24196 * modules/striconv (Link): Likewise.
24197 * modules/striconveh (Link): Likewise.
24198 * modules/xstriconv (Link): Likewise.
24199 * modules/unicodeio (Link): Likewise.
24200 * modules/propername (Link): Likewise.
24201 Reported by Jim Meyering.
24203 2008-05-26 Jim Meyering <meyering@redhat.com>
24205 sha256: do not artificially restrict buffer length to be < 2^32
24206 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24207 uint32_t to size_t.
24208 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24211 avoid unaligned access errors, e.g., on sparc
24212 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24213 direct access through a possibly-unaligned uint64* pointer.
24214 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24215 direct access through a possibly-unaligned uint32* pointer.
24216 Prompted by this patch from Tom "spot" Callaway:
24217 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24219 sha512.c: fix typo in comment
24220 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24222 2008-05-25 Bruno Haible <bruno@clisp.org>
24224 * lib/set-mode-acl.c: Renamed from lib/acl.c.
24225 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24226 (Makefile.am): Update lib_SOURCES.
24228 2008-05-25 Bruno Haible <bruno@clisp.org>
24230 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24232 2008-05-25 Jim Meyering <meyering@redhat.com>
24234 useless-if-before-free: freed expr may have white-space differences
24235 * build-aux/useless-if-before-free: Recognize cases in which the
24236 freed expression differs from the tested one in embedded white
24237 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
24238 $1 was used, so we can't make any regexp shy. Improved tests now
24241 useless-if-before-free: accept white space in the expression.
24242 * build-aux/useless-if-before-free: For now, any white space
24243 in the expression must be identical in the free argument.
24245 useless-if-before-free: efficiency tweak
24246 * build-aux/useless-if-before-free: Make the expression-matching
24248 Make the *outer* regexp shy, not the expr-matching one.
24250 update code-in-comment to accept cast of free arg
24251 * build-aux/useless-if-before-free: Update regexp.
24253 2008-05-25 Bruno Haible <bruno@clisp.org>
24255 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24256 * modules/copy-file-tests (Files, Makefile.am): Update.
24257 * tests/test-copy-file.c (func_test_copy): Update.
24259 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
24261 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24263 2008-05-23 Bruno Haible <bruno@clisp.org>
24265 Improve support for ACLs on OSF/1.
24266 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24267 Remove fallback for unknown flavors of ACLs.
24269 2008-05-22 Bruno Haible <bruno@clisp.org>
24271 Add support for ACLs on OSF/1.
24272 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24274 (acl_free_text): New macro fallback.
24275 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24277 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24278 acl_free_text function. Require AC_C_INLINE.
24280 2008-05-22 Bruno Haible <bruno@clisp.org>
24282 Make copy_acl work on MacOS X 10.5.
24283 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24284 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24285 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24286 If MODE_INSIDE_ACL, don't assume that every system has the same text
24287 representation for ACLs as FreeBSD.
24288 * lib/copy-acl.c (copy_acl): Add support for platforms with
24290 * lib/file-has-acl.c (file_has_acl): Likewise.
24291 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24292 FreeBSD, MacOS X, or IRIX, respectively.
24294 2008-05-22 Bruno Haible <bruno@clisp.org>
24296 * lib/acl.h: Don't include <sys/acl.h>.
24297 (GETACLCNT): Move fallback to lib/acl-internal.h.
24298 * lib/acl-internal.h: Include <sys/acl.h> here.
24299 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24301 2008-05-22 Bruno Haible <bruno@clisp.org>
24303 Split off copy_acl function to separate file.
24304 * lib/copy-acl.c: New file, extracted from lib/acl.c.
24305 * lib/acl.c (copy_acl): Moved function to separate file.
24306 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24307 * modules/acl (Files): Add lib/copy-acl.c.
24308 (Makefiles.am): Augment lib_SOURCES.
24310 2008-05-22 Bruno Haible <bruno@clisp.org>
24312 * modules/copy-file-tests: New file.
24313 * tests/test-copy-file.sh: New file.
24314 * tests/test-copy-file.c: New file.
24315 * tests/test-copy-file-sameacls.c: New file.
24317 2008-05-22 Eric Blake <ebb9@byu.net>
24320 * tests/test-memcmp.c (main): Pass NULL indirectly.
24322 2008-05-21 Bruno Haible <bruno@clisp.org>
24324 Add reference doc about ACLs.
24325 * doc/acl-resources.txt: New file.
24326 * doc/acl-cygwin.txt: New file.
24328 2008-05-21 Bruno Haible <bruno@clisp.org>
24330 Avoid one more warning from gcc.
24331 * lib/vasnprintf.c (IF_LINT): Update comments.
24332 (VASNPRINTF): Use it also for the 'prefix' array initializer.
24334 2008-05-21 Jim Meyering <meyering@redhat.com>
24336 avoid a warning from gcc
24337 * lib/vasnprintf.c (IF_LINT): Define.
24338 (scale10_round_decimal_long_double):
24339 Use it to avoid a "may be used uninitialized" warning.
24340 (scale10_round_decimal_double): Likewise.
24342 2008-05-21 Simon Josefsson <simon@josefsson.org>
24344 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24347 2008-05-20 Bruno Haible <bruno@clisp.org>
24349 * tests/test-memcmp.c (main): Test also the sign of the result. Test
24350 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24352 2008-05-20 Simon Josefsson <simon@josefsson.org>
24354 * modules/memcmp-tests: New file.
24355 * tests/test-memcmp.c: New file.
24357 2008-05-19 Bruno Haible <bruno@clisp.org>
24359 * modules/propername (Notice, configure.ac): Put quoted "..." into
24361 * lib/propername.h: Update comments accordingly.
24362 Reported by Eric Blake.
24364 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
24366 * modules/getpass-gnu (Depends-on): Add fseeko.
24368 2008-05-19 Simon Josefsson <simon@josefsson.org>
24370 * modules/base64-tests: New file.
24372 2008-05-19 Bo Borgerson <gigabo@gmail.com>
24374 * lib/base64.c (base64_decode_ctx): If a decode context structure
24375 was passed in use it to ignore newlines. If a context structure
24376 was _not_ passed in, continue to treat newlines as garbage (this
24377 is the historical behavior). Formerly base64_decode.
24378 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
24379 takes a decode context structure.
24380 * lib/base64.h (base64_decode): Macro for four-argument calls.
24381 (base64_decode_alloc): Likewise.
24382 * lib/base64.c (base64_decode_ctx): If a decode context structure
24383 was passed in use it to ignore newlines. If a context structure
24384 was _not_ passed in, continue to treat newlines as garbage (this
24385 is the historical behavior). Formerly base64_decode.
24386 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
24387 takes a decode context structure.
24388 * lib/base64.h (base64_decode): Macro for four-argument calls.
24389 (base64_decode_alloc): Likewise.
24391 2008-05-19 Jim Meyering <meyering@redhat.com>
24393 avoid a warning from gcc
24394 * lib/trim.c (IF_LINT): Define.
24395 (trim2): Use it to avoid a "may be used uninitialized" warning.
24398 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24400 2008-05-19 Bruno Haible <bruno@clisp.org>
24402 * doc/glibc-functions/getpass.texi: Document limits of other
24405 2008-05-19 Simon Josefsson <simon@josefsson.org>
24406 Bruno Haible <bruno@clisp.org>
24408 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24410 2008-05-18 Bruno Haible <bruno@clisp.org>
24412 * modules/propername: New file, from GNU gettext.
24413 * lib/propername.h: New file, from GNU gettext.
24414 * lib/propername.c: New file, from GNU gettext.
24415 * MODULES.html.sh (Internationalization functions): Add propername.
24417 2008-05-16 Jim Meyering <meyering@redhat.com>
24418 Bruno Haible <bruno@clisp.org>
24420 Avoid some warnings from "gcc -Wshadow".
24421 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24423 2008-05-15 Eric Blake <ebb9@byu.net>
24425 Extend previous patch to cygwin 1.7.0.
24426 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24427 fast implementation in cygwin >= 1.7.0.
24428 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24429 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24431 2008-05-15 Bruno Haible <bruno@clisp.org>
24433 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24434 implementation in glibc >= 2.9.
24435 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24436 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24438 2008-05-15 Bruno Haible <bruno@clisp.org>
24440 * MODULES.html.sh (Internationalization functions): Remove linebreak.
24441 (Unicode string functions): Add unilbrk/*.
24442 Reported by Karl Berry.
24444 2008-05-15 Eric Blake <ebb9@byu.net>
24446 Fix violation of <stdbool.h> replacement in regex.
24447 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24448 * lib/regexec.c (re_search_internal): Likewise.
24449 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24451 2008-05-15 Jim Meyering <meyering@redhat.com>
24453 avoid distracting test output when git or cvs is not found
24454 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24455 * tests/test-vc-list-files-git.sh: Likewise.
24457 2008-05-15 Eric Blake <ebb9@byu.net>
24459 Glibc finally accepted the memmem speedup code, bugzilla #5514.
24460 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24462 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24463 * doc/posix-functions/strstr.texi (strstr): Likewise.
24464 * lib/str-two-way.h (MAX): Sychronize with glibc.
24466 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
24468 * lib/regcomp.c (optimize_utf8): Add a note on why we test
24470 (calc_first): Initialize constraint field.
24471 (duplicate_node_closure): Use it instead of special casing ANCHORS.
24473 (duplicate_node): Merge constraint field for all node types.
24474 (calc_eclosure_iter): Look at constraint field for all node types.
24475 * lib/regex_internal.c (create_cd_newstate): Don't look at
24478 2008-05-14 Bruno Haible <bruno@clisp.org>
24480 Help GCC to do better code generation.
24481 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24482 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24483 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24484 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24485 Declare with attribute 'malloc' if supported.
24487 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
24489 use "echo STR|wc -c" rather than unportable "expr length STR"
24490 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24491 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24493 2008-05-14 Jim Meyering <meyering@redhat.com>
24495 use dd ibs=$n count=1 ... rather than less-portable head -c$n
24496 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24497 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24498 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24501 2008-05-14 Eric Blake <ebb9@byu.net>
24503 Avoid quadratic growth in gl_LIBSOURCES.
24504 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24505 Suggested by Bruno Haible.
24508 * modules/xmemdup0-tests: New file.
24509 * tests/test-xmemdup0.c: Likewise.
24511 2008-05-13 Eric Blake <ebb9@byu.net>
24513 Split xmemdup0 into its own module.
24514 * modules/xmemdup0: New file.
24515 * lib/xmemdup0.h: Likewise.
24516 * lib/xmemdup0.c: Likewise.
24517 * MODULES.html.sh (Memory management functions): Add xmemdup0.
24518 * lib/xalloc.h (xmemdup0): Remove.
24519 * lib/xmalloc.c (xmemdup0): Likewise.
24521 2008-05-13 Eric Blake <ebb9@byu.net>
24522 Bruno Haible <bruno@clisp.org>
24524 Reduce number of forks required during autoconf.
24525 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24526 and gl_LIBSOURCES_DIR.
24527 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24528 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24529 m4_syscmd per file.
24530 <m4_foreach_w>: Move...
24531 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24533 2008-05-13 Eric Blake <ebb9@byu.net>
24535 * gnulib-tool: Fix various comment typos.
24537 2008-05-12 Bruno Haible <bruno@clisp.org>
24539 Tailor the linebreaking algorithm.
24540 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24542 2008-05-12 Bruno Haible <bruno@clisp.org>
24544 Update to Unicode 5.0.0.
24545 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24546 LBP_JV, LBP_JT. Redistribute values.
24547 (unilbrk_table): Change size.
24548 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24549 Unicode TR#14 rev. 22.
24550 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24551 LBP_JV, LBP_JT. Redistribute values.
24552 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24553 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24555 * lib/unilbrk/lbrkprop1.h: Regenerated.
24556 * lib/unilbrk/lbrkprop2.h: Regenerated.
24557 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24558 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24559 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24561 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24563 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24565 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24566 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24567 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24568 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24569 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24570 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24572 2008-05-11 Bruno Haible <bruno@clisp.org>
24574 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24576 2008-05-11 Bruno Haible <bruno@clisp.org>
24578 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24579 * modules/unilbrk/gen-lbrk: New file.
24581 2008-05-11 Bruno Haible <bruno@clisp.org>
24583 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24584 * m4/sha512.m4 (gl_SHA512): Likewise.
24586 2008-05-11 Jim Meyering <meyering@redhat.com>
24588 New modules: crypto/sha256, crypto/sha512 (from coreutils)
24589 * modules/crypto/sha256: New file.
24590 * modules/crypto/sha512: Likewise.
24591 * lib/sha256.c: Likewise.
24592 * lib/sha256.h: Likewise.
24593 * lib/sha512.c: Likewise.
24594 * lib/sha512.h: Likewise.
24595 * lib/u64.h: Likewise.
24596 * m4/sha256.m4: Likewise.
24597 * m4/sha512.m4: Likewise.
24598 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24600 2008-05-10 Bruno Haible <bruno@clisp.org>
24602 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24603 (Input/Output <stdio.h>): Add xprintf.
24604 (Signal handling <signal.h>): Add strsignal.
24605 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24606 (Core language properties): Add func.
24607 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24608 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24610 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24611 (Input/output): New section.
24612 (File system functions): Add openat-die, stat-macros.
24613 (Networking functions): Add sockets.
24614 (Unicode string functions): Add unictype/*.
24615 (Support for building libraries and executables): Add gperf.
24616 (Support for building documentation): Add agpl-3.0.
24617 (Misc): Add nocrash.
24619 2008-05-10 Bruno Haible <bruno@clisp.org>
24621 * modules/unictype/gen-ctype: New file.
24623 2008-05-10 Jim Meyering <meyering@redhat.com>
24625 Make chdir-safer.c more efficient on a system with no symlinks.
24626 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24627 also if ELOOP is zero. Suggested by Bruno Haible.
24629 Make chdir-safer.c slightly safer.
24630 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24631 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24633 Avoid compile failure on systems without ELOOP (like mingw).
24634 * lib/chdir-safer.c (ELOOP): Define if not already defined.
24635 Reported by Bruno Haible.
24637 2008-05-10 Bruno Haible <bruno@clisp.org>
24639 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24640 (is_utf8_encoding): Use a case-insensitive comparison.
24641 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24644 2008-05-10 Bruno Haible <bruno@clisp.org>
24646 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24647 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24648 * lib/unilbrk/ulc-common.h (iconv_string_length,
24649 iconv_string_keeping_offsets): Remove declarations.
24650 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24651 Don't include <iconv.h>, streq.h, xsize.h.
24652 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24654 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24655 <iconv.h>, streq.h, xsize.h.
24656 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24658 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24659 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24660 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24661 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24663 2008-05-10 Bruno Haible <bruno@clisp.org>
24665 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24666 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24668 * modules/unilbrk/u32-width-linebreaks-tests: New file.
24669 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24671 * modules/unilbrk/u16-width-linebreaks-tests: New file.
24672 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24674 * modules/unilbrk/u8-width-linebreaks-tests: New file.
24675 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24677 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24678 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24680 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24681 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24683 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24684 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24686 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24687 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24689 2008-05-10 Bruno Haible <bruno@clisp.org>
24691 Split up 'linebreak' module.
24692 * lib/unilbrk.h: New file, based on lib/linebreak.h.
24693 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24694 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24696 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24697 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24698 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24700 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24702 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24704 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24705 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24706 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24708 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24710 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24712 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24714 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24716 * modules/unilbrk/base: New file.
24717 * modules/unilbrk/tables: New file.
24718 * modules/unilbrk/u8-possible-linebreaks: New file.
24719 * modules/unilbrk/u16-possible-linebreaks: New file.
24720 * modules/unilbrk/u32-possible-linebreaks: New file.
24721 * modules/unilbrk/ulc-common: New file.
24722 * modules/unilbrk/ulc-possible-linebreaks: New file.
24723 * modules/unilbrk/u8-width-linebreaks: New file.
24724 * modules/unilbrk/u16-width-linebreaks: New file.
24725 * modules/unilbrk/u32-width-linebreaks: New file.
24726 * modules/unilbrk/ulc-width-linebreaks: New file.
24727 * lib/linebreak.h: Remove file.
24728 * lib/linebreak.c: Remove file.
24729 * m4/linebreak.m4: Remove file.
24730 * modules/linebreak: Remove file.
24731 * NEWS: Mention the changes.
24733 2008-05-09 Eric Blake <ebb9@byu.net>
24736 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24738 * lib/xmalloc.c (xmemdup0): New C implementation.
24740 2008-05-08 Bruno Haible <bruno@clisp.org>
24742 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24744 2008-05-07 Eric Blake <ebb9@byu.net>
24746 Support cross-compilation of <wctype.h>.
24747 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24750 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
24752 * build-aux/vc-list-files: Add support for bzr.
24754 2008-05-03 Jim Meyering <meyering@redhat.com>
24756 avoid failed assertion with tight malloc
24757 * tests/test-getndelim2.c: Correct an off-by-one assertion.
24759 2008-05-03 Simon Josefsson <simon@josefsson.org>
24761 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24762 are needed from arpa/inet.h.
24763 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24764 Reported by Bruno Haible.
24766 2008-05-02 Jim Meyering <meyering@redhat.com>
24768 avoid compilation error on FreeBSD 6
24769 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24771 2008-05-01 Jim Meyering <meyering@redhat.com>
24773 useless-if-before-free: correct --help's exit status description
24774 * build-aux/useless-if-before-free (usage): Like grep, exit 0
24775 for one or more matches, etc. Reported by Bruno Haible.
24777 vc-list-files: make the stand-alone gnulib test work
24778 * modules/vc-list-files-tests (configure.ac):
24779 Define and AC_SUBST abs_aux_dir.
24780 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24781 $(abs_top_srcdir) to each script and having each of them
24782 duplicate the work of setting PATH, set PATH here, using
24783 the new variable, abs_aux_dir instead.
24784 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24785 * tests/test-vc-list-files-git.sh: Likewise.
24786 Reported by Bruno Haible.
24788 2008-05-01 Bruno Haible <bruno@clisp.org>
24790 * lib/getndelim2.c (getndelim2): Fix newsize computation during
24791 reallocation. Rename 'done' to 'found_delimiter'.
24793 2008-05-01 Jim Meyering <meyering@redhat.com>
24795 vc-list-files: accommodate /bin/sh like the one from Solaris 10
24796 * build-aux/vc-list-files: Use `...`, not $(...).
24798 2008-04-30 Jim Meyering <meyering@redhat.com>
24800 add tests for vc-list-files
24801 * modules/vc-list-files-tests: New module.
24802 * tests/test-vc-list-files-cvs.sh: New file.
24803 * tests/test-vc-list-files-git.sh: New file.
24805 avoid a warning from gcc
24806 * lib/getndelim2.c (IF_LINT): Define.
24807 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24809 vc-list-files: work properly with build-aux/cvsu, too
24810 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24811 to all cvs-based clauses.
24813 vc-list-files: work properly in the CVS+awk case, too
24814 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24816 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24817 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24818 take more than one file argument, so . Add quotes, just in case $dir
24819 ever contains a shell meta-character. Prompted by Soren Hansen in
24820 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24822 2008-04-29 Eric Blake <ebb9@byu.net>
24824 Optimize getndelim2 to use block operations when possible.
24825 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24826 freadseek, and memchr2.
24827 * lib/getndelim2.c (getndelim2): Use them for block reads.
24829 2008-04-29 Bruno Haible <bruno@clisp.org>
24831 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24832 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24833 * modules/inet_ntop (Depends-on): Add extensions.
24834 * modules/inet_pton (Depends-on): Likewise.
24835 Reported by Simon Josefsson.
24837 2008-04-29 Jim Meyering <meyering@redhat.com>
24839 When the is more than one match in a block, match all of them.
24840 * build-aux/useless-if-before-free: Iterate through each block
24841 until there are no more matches.
24843 Fix broken useless-if-before-free script.
24844 * build-aux/useless-if-before-free: Fix typo: missing "?" after
24845 the expression to match cast of argument to free-like function.
24847 2008-04-29 Eric Blake <ebb9@byu.net>
24850 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24852 2008-04-29 Jim Meyering <meyering@redhat.com>
24854 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24855 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24856 by gnulib to exist and to declare e.g., inet_ntop.
24857 Don't include "inet_ntop.h", now removed.
24859 * m4/arpa_inet_h.m4: Remove trailing blanks.
24861 2008-04-29 Eric Blake <ebb9@byu.net>
24863 Silence valgrind on safe reads beyond potential array bounds.
24864 * lib/rawmemchr.valgrind: New file.
24865 * lib/strchrnul.valgrind: Likewise.
24866 * modules/rawmemchr (Files): Distribute new file.
24867 * modules/strchrnul (Files): Likewise.
24868 Suggested by Bruno Haible.
24870 2008-04-29 Bruno Haible <bruno@clisp.org>
24872 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24873 (inet_ntop, inet_pton): Change portability warning's wording.
24874 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24875 Invoke gl_CHECK_NEXT_HEADERS.
24876 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24877 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24879 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24880 * modules/arpa_inet (Description): No longer only for systems that
24882 (Depends-on): Add include_next.
24883 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24886 2008-04-29 Jim Meyering <meyering@redhat.com>
24888 * modules/mkdir (License): Re-license as LGPLv2+.
24890 2008-04-29 Bruno Haible <bruno@clisp.org>
24892 * modules/rawmemchr (Maintainer): Set to Eric.
24893 * modules/strchrnul (Maintainer): Likewise.
24895 2008-04-29 Simon Josefsson <simon@josefsson.org>
24897 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24898 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24900 * modules/arpa_inet (arpa/inet.h): Use them.
24902 2008-04-28 Eric Blake <ebb9@byu.net>
24905 * modules/getndelim2-tests: New file.
24906 * tests/test-getndelim2.c: Likewise.
24907 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
24909 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24911 * MODULES.html.sh: Document new module.
24913 2008-04-20 Bruno Haible <bruno@clisp.org>
24915 * lib/c-stack.c (die): Use raise.
24916 * modules/c-stack (Depends-on): Add raise.
24918 2008-04-28 Bruno Haible <bruno@clisp.org>
24920 Expect rpmatch to be declared.
24921 * lib/yesno.c (rpmatch): Remove declaration.
24924 * lib/stdlib.in.h (rpmatch): New declaration.
24925 * lib/rpmatch.c: Include <stdlib.h> first.
24926 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24927 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24928 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24930 * modules/rpmatch (Depends-on): Add stdlib, extensions.
24931 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24932 (Include): Set to <stdlib.h>.
24933 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24935 * NEWS: Document the change.
24937 2008-04-28 Bruno Haible <bruno@clisp.org>
24939 Change rpmatch to use nl_langinfo when appropriate.
24940 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24942 (localized_pattern): New function/macro.
24943 (try): Remove match, nomatch arguments. Copy the pattern into safe
24944 memory before caching it.
24945 (rpmatch): Use localized_pattern. Add translator comments.
24946 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24947 Suggested by Eric Blake.
24948 * modules/rpmatch (Depends-on): Add stdbool.
24950 2008-04-28 Eric Blake <ebb9@byu.net>
24952 Add rawmemchr module, matching glibc.
24953 * modules/string (Makefile.am): New indicator.
24954 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24955 * lib/string.in.h (rawmemchr): Declare when appropriate.
24956 * modules/rawmemchr: New file.
24957 * m4/rawmemchr.m4: Likewise.
24958 * lib/rawmemchr.c: Likewise.
24959 * modules/rawmemchr-tests: Likewise.
24960 * tests/test-rawmemchr.c: Likewise.
24961 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24963 * modules/strchrnul (Depends-on): Add rawmemchr.
24964 * lib/strchrnul.c (strchrnul): Optimize a corner case.
24966 Whitespace cleanup.
24967 * tests/test-strchrnul.c: Reindent.
24968 * lib/strchrnul.c: Likewise.
24970 Optimize and test strchrnul.
24971 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24972 * modules/strchrnul-tests: New file.
24973 * tests/test-strchrnul.c: Likewise.
24975 Remove intprops dependency.
24976 * modules/memchr (Depends-on): Remove intprops.
24977 * modules/memrchr (Depends-on): Likewise.
24978 * modules/memchr2 (Depends-on): Likewise.
24979 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24980 * lib/memrchr.c (__memrchr): Likewise.
24981 * lib/memrchr2.c (memchr2): Likewise.
24982 Reported by Simon Josefsson.
24984 2008-04-28 Simon Josefsson <simon@josefsson.org>
24986 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24987 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24989 2008-04-28 Simon Josefsson <simon@josefsson.org>
24991 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24993 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24995 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24997 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24999 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25001 * m4/inet_pton.m4: Don't check for header files.
25003 * m4/inet_ntop.m4: Don't check for header files.
25005 2008-04-28 Simon Josefsson <simon@josefsson.org>
25007 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25008 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25009 trigger for cygwin).
25010 Reported by Bruno Haible <bruno@clisp.org>.
25012 2008-04-28 Bruno Haible <bruno@clisp.org>
25014 * doc/posix-functions/strdup.texi: Mention mingw problem.
25016 2008-04-27 Bruno Haible <bruno@clisp.org>
25018 * modules/stat-time-tests (Depends-on): Add sleep.
25019 * tests/test-stat-time.c (force_unlink): New function.
25021 (test_mtime): Remove the ctime related tests.
25022 (test_ctime): New function, containing the ctime related tests.
25023 (main): Call test_ctime, except on native Windows platforms.
25025 2008-04-27 Bruno Haible <bruno@clisp.org>
25027 * lib/rpmatch.c (rpmatch): Add some comments.
25028 Reported by James Youngman <jay@gnu.org>.
25030 2008-04-27 Bruno Haible <bruno@clisp.org>
25032 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25035 2008-04-27 Bruno Haible <bruno@clisp.org>
25037 Make test-yesno.sh work on mingw.
25038 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25039 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25040 (main): Set stdin to binary mode.
25041 * modules/yesno-tests (Depends-on): Add binary-io.
25043 2008-04-27 Bruno Haible <bruno@clisp.org>
25045 Fix 'isfinite' on x86, x86_64, ia64 platforms.
25046 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25047 argument that lie outside the IEEE 854 domain.
25048 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25049 (gl_ISFINITE): Use it.
25050 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25052 2008-04-27 Bruno Haible <bruno@clisp.org>
25054 Allow local renaming in config.h.
25055 * lib/memrchr.c (memrchr): Don't undefine outside libc.
25057 2008-04-27 Bruno Haible <bruno@clisp.org>
25059 * lib/memchr.c (__memchr): Change type of 'i'.
25060 * lib/memchr2.c (memchr2): Likewise.
25062 2008-04-26 Eric Blake <ebb9@byu.net>
25063 and Bruno Haible <bruno@clisp.org>
25065 Optimize and test memrchr.
25066 * modules/memrchr (Depends-on): Add intprops.
25067 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25068 * modules/memrchr-tests: New file.
25069 * tests/test-memrchr.c: New file.
25071 2008-04-26 Bruno Haible <bruno@clisp.org>
25073 Add tentative support for DragonFly BSD.
25074 * lib/stdio-impl.h: Add macros for DragonFly BSD.
25075 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25077 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25078 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25079 * lib/fpurge.c (fpurge): Likewise.
25080 * lib/freadable.c (freaadable): Likewise.
25081 * lib/freadahead.c (freadahead): Likewise.
25082 * lib/freading.c (freading): Likewise.
25083 * lib/freadptr.c (freadptr): Likewise.
25084 * lib/freadseek.c (freadptrinc): Likewise.
25085 * lib/fseeko.c (fseeko): Likewise.
25086 * lib/fseterr.c (fseterr): Likewise.
25087 * lib/fwritable.c (fwritable): Likewise.
25088 * lib/fwriting.c (fwriting): Likewise.
25090 2008-04-26 Bruno Haible <bruno@clisp.org>
25092 * lib/stdio-impl.h: New file.
25093 * lib/fbufmode.c: Include stdio-impl.h.
25094 (fbufmode): Use fp_, remove redundant #defines.
25095 * lib/fflush.c: Include stdio-impl.h.
25096 (clear_ungetc_buffer): Remove redundant #defines.
25097 * lib/fpurge.c: Include stdio-impl.h.
25098 (fpurge): Remove redundant #defines.
25099 * lib/freadable.c: Include stdio-impl.h.
25100 (freadable): Remove redundant #defines.
25101 * lib/freadahead.c: Include stdio-impl.h.
25102 (freadahead): Remove redundant #defines.
25103 * lib/freading.c: Include stdio-impl.h.
25104 (freading): Remove redundant #defines.
25105 * lib/freadptr.c: Include stdio-impl.h.
25106 (freadptr): Remove redundant #defines.
25107 * lib/freadseek.c: Include stdio-impl.h.
25108 (freadptrinc): Remove redundant #defines.
25109 * lib/fseeko.c: Include stdio-impl.h.
25110 (rpl_fseeko): Remove redundant #defines.
25111 * lib/fseterr.c: Include stdio-impl.h.
25112 (fseterr): Remove redundant #defines.
25113 * lib/fwritable.c: Include stdio-impl.h.
25114 (fwritable: Remove redundant #defines.
25115 * lib/fwriting.c: Include stdio-impl.h.
25116 (fwriting): Remove redundant #defines.
25117 * modules/fbufmode (Files): Add lib/stdio-impl.h.
25118 * modules/fflush (Files): Likewise.
25119 * modules/fpurge (Files): Likewise.
25120 * modules/freadable (Files): Likewise.
25121 * modules/freadahead (Files): Likewise.
25122 * modules/freading (Files): Likewise.
25123 * modules/freadptr (Files): Likewise.
25124 * modules/freadseek (Files): Likewise.
25125 * modules/fseeko (Files): Likewise.
25126 * modules/fseterr (Files): Likewise.
25127 * modules/fwritable (Files): Likewise.
25128 * modules/fwriting (Files): Likewise.
25130 2008-04-26 Bruno Haible <bruno@clisp.org>
25132 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25133 restore_seek_optimization, update_fpos_cache): New functions, extracted
25135 (rpl_fflush): Use them.
25136 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25137 (gl_REPLACE_FFLUSH): Use it.
25139 2008-04-26 Bruno Haible <bruno@clisp.org>
25141 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25143 * tests/test-xstrtoimax.sh: Likewise.
25144 * tests/test-xstrtoumax.sh: Likewise.
25145 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25147 2008-04-26 Bruno Haible <bruno@clisp.org>
25149 * modules/memchr-tests: New file.
25150 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25152 2008-04-26 Eric Blake <ebb9@byu.net>
25153 Bruno Haible <bruno@clisp.org>
25155 * lib/memchr.c: Include intprops.h.
25156 (__memchr): Optimize parallel detection of matching bytes. Rename local
25157 variables. Add explanatory comments.
25159 2008-04-26 Bruno Haible <bruno@clisp.org>
25161 Fix module 'memchr', broken since 2000-10-28.
25162 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25164 2008-04-26 Bruno Haible <bruno@clisp.org>
25166 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25169 2008-04-25 Eric Blake <ebb9@byu.net>
25171 Use native fstatat on cygwin 1.7.0.
25172 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25175 2008-04-23 Eric Blake <ebb9@byu.net>
25177 Improve memchr2 performance.
25178 * lib/memchr2.c (memchr2): Further optimize parallel detection of
25180 * modules/memchr2 (Depends-on): Use intprops.h.
25182 2008-04-23 Simon Josefsson <simon@josefsson.org>
25184 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25185 an inline function instead of a CPP macro. Patch by Ben Pfaff
25186 <blp@cs.stanford.edu>.
25188 2008-04-23 Simon Josefsson <simon@josefsson.org>
25190 * lib/arpa_inet.in.h: New file.
25192 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25193 (Makefile.am): Sed in substitute header file.
25195 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25196 gl_ARPA_INET_MODULE_INDICATOR. Use them.
25198 * modules/inet_ntop (configure.ac): Use
25199 gl_ARPA_INET_MODULE_INDICATOR.
25201 * modules/inet_pton (configure.ac): Use
25202 gl_ARPA_INET_MODULE_INDICATOR.
25204 2008-04-22 Jim Meyering <meyering@redhat.com>
25206 * modules/verify (License): Re-license as LGPLv2+.
25208 2008-04-22 Simon Josefsson <simon@josefsson.org>
25210 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25211 parameter to void* as per POSIX standard (MinGW uses char*).
25213 2008-04-21 Bruno Haible <bruno@clisp.org>
25215 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25216 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25217 Define to replacements if REPLACE_ISWCNTRL is 1.
25218 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25219 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25220 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25221 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25223 * doc/posix-functions/iswalpha.texi: Likewise.
25224 * doc/posix-functions/iswblank.texi: Likewise.
25225 * doc/posix-functions/iswcntrl.texi: Likewise.
25226 * doc/posix-functions/iswdigit.texi: Likewise.
25227 * doc/posix-functions/iswgraph.texi: Likewise.
25228 * doc/posix-functions/iswlower.texi: Likewise.
25229 * doc/posix-functions/iswprint.texi: Likewise.
25230 * doc/posix-functions/iswpunct.texi: Likewise.
25231 * doc/posix-functions/iswspace.texi: Likewise.
25232 * doc/posix-functions/iswupper.texi: Likewise.
25233 * doc/posix-functions/iswxdigit.texi: Likewise.
25234 Reported by Alain Guibert.
25236 2008-04-21 Bruno Haible <bruno@clisp.org>
25238 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25239 Patch by Alain Guibert.
25241 2008-04-21 Bruno Haible <bruno@clisp.org>
25243 Fix test failures on mingw.
25244 * tests/test-xstrtol.c (print_no_progname): New function.
25245 (main): Install it in error_print_progname hook.
25246 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25247 * tests/test-xstrtoimax.sh: Likewise.
25248 * tests/test-xstrtoumax.sh: Likewise.
25250 2008-04-21 Bruno Haible <bruno@clisp.org>
25252 Fix test failure on mingw.
25253 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25255 2008-04-21 Bruno Haible <bruno@clisp.org>
25257 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25258 Actually assign a value.
25260 2008-04-20 Bruno Haible <bruno@clisp.org>
25262 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25264 * lib/canonicalize.c (canonicalize_file_name): Elide if the
25265 'canonicalize-lgpl' module is also used.
25266 * lib/canonicalize-lgpl.c: Undo last change.
25267 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25269 2008-04-20 Bruno Haible <bruno@clisp.org>
25271 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25272 config.h. Provide _mkdir based fallback for mingw.
25273 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25274 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25275 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25276 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25277 rather than defining mkdir in config.h.
25278 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25279 (gl_SYS_STAT_H_DEFAULTS): New macro.
25280 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25281 HAVE_IO_H any more.
25282 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25283 HAVE_DECL_MKDIR and HAVE_IO_H.
25285 2008-04-20 Bruno Haible <bruno@clisp.org>
25287 * lib/isapipe.c: Port to native Windows platforms.
25289 2008-04-20 Bruno Haible <bruno@clisp.org>
25291 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25293 2008-04-21 Eric Blake <ebb9@byu.net>
25295 Work around preprocessors that don't handle UINTMAX_MAX.
25296 * lib/memchr2.c (memchr2): Avoid embedded #if.
25297 Reported by Alain Guibert, fix suggested by Bruno Haible.
25299 2008-04-21 Simon Josefsson <simon@josefsson.org>
25301 * doc/posix-functions/strftime.texi (strftime): Explain better
25302 Windows incompatibility. Suggested by Micah Cowan
25303 <micah@cowan.name>.
25305 2008-04-20 Bruno Haible <bruno@clisp.org>
25307 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25310 2008-04-20 Bruno Haible <bruno@clisp.org>
25312 Fix test failure on platforms with non-GNU iconv.
25313 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25314 (U_TO_U8): Use it, rather than u16_to_u8.
25315 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25316 units at the end of the input string.
25317 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25319 2008-04-20 Bruno Haible <bruno@clisp.org>
25321 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25322 when the resulting length is 0.
25323 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25325 2008-04-20 Bruno Haible <bruno@clisp.org>
25327 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25329 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25331 2008-04-20 Bruno Haible <bruno@clisp.org>
25333 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25334 * modules/tsearch-tests (configure.ac): Test for initstate function.
25336 2008-04-20 Bruno Haible <bruno@clisp.org>
25338 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25339 for nlink_t if missing.
25340 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25342 2008-04-19 Bruno Haible <bruno@clisp.org>
25344 Work around snprintf bug on Linux libc5.
25345 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25346 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25348 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25349 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25351 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25352 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25353 * modules/snprintf (Files): Add m4/printf.m4.
25354 * modules/vsnprintf (Files): Likewise.
25355 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25356 * doc/posix-functions/vsnprintf.texi: Likewise.
25358 2008-04-19 Bruno Haible <bruno@clisp.org>
25360 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25361 from 0.0058 to less than 10^-7.
25363 2008-04-19 Bruno Haible <bruno@clisp.org>
25365 Fix rounding when a precision is given.
25366 * lib/vasnprintf.c (is_borderline): New function.
25367 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25369 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25371 * tests/test-vasprintf-posix.c (test_function): Likewise.
25372 * tests/test-snprintf-posix.h (test_function): Likewise.
25373 * tests/test-sprintf-posix.h (test_function): Likewise.
25374 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25375 * tests/test-printf-posix.h (test_function): Likewise.
25376 * tests/test-printf-posix.output: Update.
25377 Reported by John Darrington <john@darrington.wattle.id.au> via
25378 Ben Pfaff <blp@cs.stanford.edu>.
25380 2008-04-18 Simon Josefsson <simon@josefsson.org>
25382 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25383 Suggested by Bruno Haible <bruno@clisp.org>.
25385 2008-04-17 Bruno Haible <bruno@clisp.org>
25387 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25388 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25390 Patch by Bruce Merry <bmerry@gmail.com>.
25392 2008-04-17 Simon Josefsson <simon@josefsson.org>
25394 * doc/posix-functions/strftime.texi (strftime): Mention that %e
25395 doesn't work under Windows.
25397 2008-04-16 Bruno Haible <bruno@clisp.org>
25399 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25401 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25402 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25403 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25404 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25405 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25406 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25407 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25409 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25410 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25411 Northern Sotho, Uighur.
25413 2008-04-16 Bruno Haible <bruno@clisp.org>
25415 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25416 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25417 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25418 Reported by Daniel Bergström <daniel@octocode.com>.
25420 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
25421 Bruno Haible <bruno@clisp.org>
25423 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25425 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25426 New functions, mostly extracted from gl_locale_name_default.
25427 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25429 2008-04-16 Eric Blake <ebb9@byu.net>
25431 Adjust strtod detection to catch glibc 2.7 bug.
25432 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25433 Reported by John Gatewood Ham.
25435 2008-04-16 Bruno Haible <bruno@clisp.org>
25437 Add tentative support for Linux libc5.
25438 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25439 * lib/fpurge.c (fpurge): Likewise.
25440 * lib/freadable.c (freadable): Likewise.
25441 * lib/freadahead.c (freadahead): Likewise.
25442 * lib/freading.c (freading): Likewise.
25443 * lib/freadptr.c (freadptr): Likewise.
25444 * lib/freadseek.c (freadptrinc): Likewise.
25445 * lib/fseeko.c (rpl_fseeko): Likewise.
25446 * lib/fseterr.c (fseterr): Likewise.
25447 * lib/fwritable.c (fwritable): Likewise.
25448 * lib/fwriting.c (fwriting): Likewise.
25449 Reported by Alain Guibert <alguibert+bts@free.fr>.
25451 2008-04-15 Bruno Haible <bruno@clisp.org>
25453 * modules/mathl (configure.ac): Define module indicator.
25455 2008-04-15 Bruno Haible <bruno@clisp.org>
25457 * lib/logl.c (logl): Remove unused variables.
25459 2008-04-15 Bruno Haible <bruno@clisp.org>
25461 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25464 2008-04-15 Bruno Haible <bruno@clisp.org>
25466 * lib/trim.c (trim2): Fix argument of isspace() macro.
25468 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
25470 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25472 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25474 2008-04-14 Bruno Haible <bruno@clisp.org>
25476 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25477 AC_LANG_PROGRAM argument.
25478 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25479 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25480 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25481 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25482 * m4/math_h.m4 (gl_MATH_H): Likewise.
25483 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25484 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25485 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25486 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25487 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25488 * m4/regex.m4 (gl_REGEX): Likewise.
25489 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25490 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25491 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25492 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25493 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25494 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25495 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25496 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25498 2008-04-14 Jim Meyering <meyering@redhat.com>
25500 test-strtod: fix typos: s/abs/fabs/
25501 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25503 2008-04-13 Bruno Haible <bruno@clisp.org>
25505 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25506 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25507 module is also used and while not building the reloc-wrapper.
25509 2008-04-13 Bruno Haible <bruno@clisp.org>
25511 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25513 2008-04-13 Bruno Haible <bruno@clisp.org>
25515 Fix AIX compilation failure introduced on 2008-04-02.
25516 * tests/test-frexp.c (exp): Undefine before redefining.
25517 * tests/test-frexpl.c (exp): Likewise.
25519 2008-04-13 Bruno Haible <bruno@clisp.org>
25521 Work around a HP-UX stdio bug.
25522 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25523 * tests/test-ftello.c (main): Likewise.
25524 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25525 * doc/posix-functions/ftello.texi: Likewise.
25527 2008-04-13 Bruno Haible <bruno@clisp.org>
25529 Make test-signbit pass on HP-UX/hppa.
25530 * tests/test-signbit.c (minus_zerol): New variable.
25531 (test_signbitl): Use it.
25533 2008-04-13 Bruno Haible <bruno@clisp.org>
25535 Make truncl work on OSF/1 4.0.
25536 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25537 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25538 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25539 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25541 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25543 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25545 2008-04-13 Bruno Haible <bruno@clisp.org>
25547 * lib/unictype.h: Remove trailing comma from enumeration definitions.
25549 2008-04-13 Bruno Haible <bruno@clisp.org>
25551 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25552 expression, so as to avoid HP-UX 11 cc compiler bug.
25554 2008-04-13 Bruno Haible <bruno@clisp.org>
25556 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25558 2008-04-13 Bruno Haible <bruno@clisp.org>
25560 * lib/git-merge-changelog.c: Remove empty declaration outside of
25563 2008-04-13 Bruno Haible <bruno@clisp.org>
25565 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25567 2008-04-13 Bruno Haible <bruno@clisp.org>
25569 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25570 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25571 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25572 also if it exists but lacks definitions of the SHUT_* macros.
25573 * modules/sys_socket (Description): Update.
25574 Reported by Elbert Pol <e.pol@chello.nl>.
25576 2008-04-13 Bruno Haible <bruno@clisp.org>
25578 * lib/localcharset.c (OS2): Don't redefine if already defined.
25579 Reported by Elbert Pol <e.pol@chello.nl>.
25581 2008-04-13 Bruno Haible <bruno@clisp.org>
25583 * lib/binary-io.h [__EMX__]: Include <io.h>.
25584 Reported by Elbert Pol <e.pol@chello.nl>.
25586 2008-04-12 Bruno Haible <bruno@clisp.org>
25588 * lib/fpucw.h: Enable the definitions also for x86_64.
25589 Needed for NetBSD/x86_64.
25590 Reported by Thomas Klausner <tk@giga.or.at>.
25592 2008-04-12 Bruno Haible <bruno@clisp.org>
25594 * tests/test-strtod.c: Include isnand.h.
25595 (main): Use isnand instead of isnan.
25596 Reported by Jim Meyering.
25598 2008-04-12 Bruno Haible <bruno@clisp.org>
25600 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25601 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25603 2008-04-12 Jim Meyering <meyering@redhat.com>
25605 * m4/math_h.m4 (gl_MATH_H): Fix typos.
25607 2008-04-12 Bruno Haible <bruno@clisp.org>
25609 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25610 Reported by Elbert Pol <e.pol@chello.nl>.
25612 2008-04-12 Eric Blake <ebb9@byu.net>
25614 Work around Solaris 10 math.h bug.
25615 * m4/math_h.m4 (gl_MATH_H): Check for bug.
25616 (gl_MATH_H_DEFAULTS): Set up default.
25617 * modules/math (Makefile.am): Replace new indicators.
25618 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25619 * tests/test-math.c (main): Test this.
25620 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25621 * doc/posix-headers/math.texi (math.h): Mention bug.
25622 Reported by Nelson H. F. Beebe and Jim Meyering.
25624 2008-04-11 Bruno Haible <bruno@clisp.org>
25626 Adapt to future versions of Apple GCC.
25627 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25628 Reported by Peter O'Gorman <peter@pogma.com>.
25630 2008-04-11 Bruno Haible <bruno@clisp.org>
25632 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25634 2008-04-11 Bruno Haible <bruno@clisp.org>
25636 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25638 * modules/getaddrinfo-tests (Makefile.am): Define
25639 test_getaddrinfo_LDADD.
25641 2008-04-11 Bruno Haible <bruno@clisp.org>
25643 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25644 (init): Fix syntax error.
25645 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25648 2008-04-11 Bruno Haible <bruno@clisp.org>
25650 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25651 * modules/glob (Depends-on): Add stdbool.
25653 2008-04-11 Bruno Haible <bruno@clisp.org>
25655 * lib/trim.c: Include <string.h>.
25657 2008-04-11 Eric Blake <ebb9@byu.net>
25659 Avoid compile failure on OS/2.
25660 * lib/regex_internal.h (internal_function): Disable optimization
25661 on OS/2 (__EMX__), where it caused compiler error.
25662 Reported by Elbert Pol.
25664 2008-04-11 Bruno Haible <bruno@clisp.org>
25666 Flush the standard error stream before aborting. Needed on mingw.
25667 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25668 * tests/test-array_list.c (ASSERT): Likewise.
25669 * tests/test-array_oset.c (ASSERT): Likewise.
25670 * tests/test-avltree_list.c (ASSERT): Likewise.
25671 * tests/test-avltree_oset.c (ASSERT): Likewise.
25672 * tests/test-avltreehash_list.c (ASSERT): Likewise.
25673 * tests/test-binary-io.c (ASSERT): Likewise.
25674 * tests/test-byteswap.c (ASSERT): Likewise.
25675 * tests/test-c-ctype.c (ASSERT): Likewise.
25676 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25677 * tests/test-c-strcasestr.c (ASSERT): Likewise.
25678 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25679 * tests/test-c-strstr.c (ASSERT): Likewise.
25680 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25681 * tests/test-canonicalize.c (ASSERT): Likewise.
25682 * tests/test-carray_list.c (ASSERT): Likewise.
25683 * tests/test-ceilf1.c (ASSERT): Likewise.
25684 * tests/test-ceilf2.c (ASSERT): Likewise.
25685 * tests/test-ceill.c (ASSERT): Likewise.
25686 * tests/test-count-one-bits.c (ASSERT): Likewise.
25687 * tests/test-fbufmode.c (ASSERT): Likewise.
25688 * tests/test-fflush2.c (ASSERT): Likewise.
25689 * tests/test-floorf1.c (ASSERT): Likewise.
25690 * tests/test-floorf2.c (ASSERT): Likewise.
25691 * tests/test-floorl.c (ASSERT): Likewise.
25692 * tests/test-fopen.c (ASSERT): Likewise.
25693 * tests/test-fpending.c (ASSERT): Likewise.
25694 * tests/test-fprintf-posix.c (ASSERT): Likewise.
25695 * tests/test-fpurge.c (ASSERT): Likewise.
25696 * tests/test-freadable.c (ASSERT): Likewise.
25697 * tests/test-freadahead.c (ASSERT): Likewise.
25698 * tests/test-freading.c (ASSERT): Likewise.
25699 * tests/test-freadptr.c (ASSERT): Likewise.
25700 * tests/test-freadptr2.c (ASSERT): Likewise.
25701 * tests/test-freadseek.c (ASSERT): Likewise.
25702 * tests/test-freopen.c (ASSERT): Likewise.
25703 * tests/test-frexp.c (ASSERT): Likewise.
25704 * tests/test-frexpl.c (ASSERT): Likewise.
25705 * tests/test-fseek.c (ASSERT): Likewise.
25706 * tests/test-fseeko.c (ASSERT): Likewise.
25707 * tests/test-fstrcmp.c (ASSERT): Likewise.
25708 * tests/test-ftell.c (ASSERT): Likewise.
25709 * tests/test-ftello.c (ASSERT): Likewise.
25710 * tests/test-func.c (ASSERT): Likewise.
25711 * tests/test-fwritable.c (ASSERT): Likewise.
25712 * tests/test-fwriting.c (ASSERT): Likewise.
25713 * tests/test-getdelim.c (ASSERT): Likewise.
25714 * tests/test-getline.c (ASSERT): Likewise.
25715 * tests/test-i-ring.c (ASSERT): Likewise.
25716 * tests/test-iconv-utf.c (ASSERT): Likewise.
25717 * tests/test-iconv.c (ASSERT): Likewise.
25718 * tests/test-isfinite.c (ASSERT): Likewise.
25719 * tests/test-isnand.c (ASSERT): Likewise.
25720 * tests/test-isnanf.c (ASSERT): Likewise.
25721 * tests/test-isnanl.h (ASSERT): Likewise.
25722 * tests/test-ldexpl.c (ASSERT): Likewise.
25723 * tests/test-linked_list.c (ASSERT): Likewise.
25724 * tests/test-linkedhash_list.c (ASSERT): Likewise.
25725 * tests/test-localename.c (ASSERT): Likewise.
25726 * tests/test-lseek.c (ASSERT): Likewise.
25727 * tests/test-mbscasecmp.c (ASSERT): Likewise.
25728 * tests/test-mbscasestr1.c (ASSERT): Likewise.
25729 * tests/test-mbscasestr2.c (ASSERT): Likewise.
25730 * tests/test-mbscasestr3.c (ASSERT): Likewise.
25731 * tests/test-mbscasestr4.c (ASSERT): Likewise.
25732 * tests/test-mbschr.c (ASSERT): Likewise.
25733 * tests/test-mbscspn.c (ASSERT): Likewise.
25734 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25735 * tests/test-mbspbrk.c (ASSERT): Likewise.
25736 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25737 * tests/test-mbsrchr.c (ASSERT): Likewise.
25738 * tests/test-mbsspn.c (ASSERT): Likewise.
25739 * tests/test-mbsstr1.c (ASSERT): Likewise.
25740 * tests/test-mbsstr2.c (ASSERT): Likewise.
25741 * tests/test-mbsstr3.c (ASSERT): Likewise.
25742 * tests/test-memchr2.c (ASSERT): Likewise.
25743 * tests/test-memmem.c (ASSERT): Likewise.
25744 * tests/test-open.c (ASSERT): Likewise.
25745 * tests/test-printf-frexp.c (ASSERT): Likewise.
25746 * tests/test-printf-frexpl.c (ASSERT): Likewise.
25747 * tests/test-printf-posix.c (ASSERT): Likewise.
25748 * tests/test-quotearg.c (ASSERT): Likewise.
25749 * tests/test-rbtree_list.c (ASSERT): Likewise.
25750 * tests/test-rbtree_oset.c (ASSERT): Likewise.
25751 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25752 * tests/test-round1.c (ASSERT): Likewise.
25753 * tests/test-roundf1.c (ASSERT): Likewise.
25754 * tests/test-roundl.c (ASSERT): Likewise.
25755 * tests/test-signbit.c (ASSERT): Likewise.
25756 * tests/test-sleep.c (ASSERT): Likewise.
25757 * tests/test-snprintf-posix.c (ASSERT): Likewise.
25758 * tests/test-snprintf.c (ASSERT): Likewise.
25759 * tests/test-sprintf-posix.c (ASSERT): Likewise.
25760 * tests/test-stat-time.c (ASSERT): Likewise.
25761 * tests/test-strcasestr.c (ASSERT): Likewise.
25762 * tests/test-strerror.c (ASSERT): Likewise.
25763 * tests/test-striconv.c (ASSERT): Likewise.
25764 * tests/test-striconveh.c (ASSERT): Likewise.
25765 * tests/test-striconveha.c (ASSERT): Likewise.
25766 * tests/test-strsignal.c (ASSERT): Likewise.
25767 * tests/test-strstr.c (ASSERT): Likewise.
25768 * tests/test-strtod.c (ASSERT): Likewise.
25769 * tests/test-trunc1.c (ASSERT): Likewise.
25770 * tests/test-trunc2.c (ASSERT): Likewise.
25771 * tests/test-truncf1.c (ASSERT): Likewise.
25772 * tests/test-truncf2.c (ASSERT): Likewise.
25773 * tests/test-truncl.c (ASSERT): Likewise.
25774 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25775 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25776 * tests/test-vasnprintf.c (ASSERT): Likewise.
25777 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25778 * tests/test-vasprintf.c (ASSERT): Likewise.
25779 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25780 * tests/test-vprintf-posix.c (ASSERT): Likewise.
25781 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25782 * tests/test-vsnprintf.c (ASSERT): Likewise.
25783 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25784 * tests/test-wcwidth.c (ASSERT): Likewise.
25785 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25786 * tests/test-xprintf-posix.c (ASSERT): Likewise.
25787 * tests/test-xvasprintf.c (ASSERT): Likewise.
25788 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25789 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25790 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25791 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25792 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25793 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25794 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25795 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25796 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25797 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25798 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25799 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25800 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25801 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25802 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25803 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25804 * tests/unictype/test-block_list.c (ASSERT): Likewise.
25805 * tests/unictype/test-block_of.c (ASSERT): Likewise.
25806 * tests/unictype/test-block_test.c (ASSERT): Likewise.
25807 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25808 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25809 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25810 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25811 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25812 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25813 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25814 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25815 * tests/unictype/test-combining.c (ASSERT): Likewise.
25816 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25817 * tests/unictype/test-digit.c (ASSERT): Likewise.
25818 * tests/unictype/test-mirror.c (ASSERT): Likewise.
25819 * tests/unictype/test-numeric.c (ASSERT): Likewise.
25820 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25821 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25822 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25823 * tests/unictype/test-scripts.c (ASSERT): Likewise.
25824 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25825 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25826 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25827 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25828 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25829 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25830 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25831 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25832 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25833 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25834 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25835 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25836 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25837 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25838 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25839 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25840 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25841 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25842 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25843 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25844 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25845 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25846 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25847 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25848 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25849 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25850 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25851 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25852 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25853 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25854 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25855 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25856 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25857 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25858 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25859 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25860 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25861 Reported by Eric Blake.
25863 2008-04-11 Bruno Haible <bruno@clisp.org>
25865 * lib/wchar.in.h: Tweak comment.
25867 2008-04-11 Bruno Haible <bruno@clisp.org>
25869 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25870 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25872 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25874 2008-04-11 Bruno Haible <bruno@clisp.org>
25876 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25878 2008-04-11 Simon Josefsson <simon@josefsson.org>
25880 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25881 of attempting to use non-existing /dev/*random. Based on patch
25882 from Adam Strzelecki <ono@java.pl> in
25883 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25885 2008-04-08 Bruno Haible <bruno@clisp.org>
25887 Add tentative support for emx+gcc.
25888 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25889 * lib/fpurge.c (fpurge): Likewise.
25890 * lib/freadable.c (freadable): Likewise.
25891 * lib/freadahead.c (freadahead): Likewise.
25892 * lib/freading.c (freading): Likewise.
25893 * lib/freadptr.c (freadptr): Likewise.
25894 * lib/freadseek.c (freadptrinc): Likewise.
25895 * lib/fseeko.c (rpl_fseeko): Likewise.
25896 * lib/fseterr.c (fseterr): Likewise.
25897 * lib/fwritable.c (fwritable): Likewise.
25898 * lib/fwriting.c (fwriting): Likewise.
25899 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25901 2008-04-09 Eric Blake <ebb9@byu.net>
25903 Avoid some autoconf warnings.
25904 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25905 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25906 * m4/afs.m4 (gl_AFS): Likewise.
25907 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25908 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25909 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25910 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25911 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25912 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25913 (AC_CHECK_DECLS_ONCE): Likewise.
25915 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25916 gnulib-tool requires autoconf 2.59 or better.
25917 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25919 2008-04-08 Eric Blake <ebb9@byu.net>
25921 Use 'git describe --match' if present (added in git 1.5.5).
25922 * build-aux/git-version-gen: Limit result to tags that match 'v*'
25925 2008-04-08 Bruno Haible <bruno@clisp.org>
25927 Add tentative support for OpenServer.
25928 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25930 * lib/fpurge.c (fpurge): Likewise.
25931 * lib/freadable.c (freadable): Likewise.
25932 * lib/freadahead.c (freadahead): Likewise.
25933 * lib/freading.c (freading): Likewise.
25934 * lib/freadptr.c (freadptr): Likewise.
25935 * lib/freadseek.c (freadptrinc): Likewise.
25936 * lib/fseeko.c (rpl_fseeko): Likewise.
25937 * lib/fseterr.c (fseterr): Likewise.
25938 * lib/fwritable.c (fwritable): Likewise.
25939 * lib/fwriting.c (fwriting): Likewise.
25940 Reported by Roger Cornelius <rac@tenzing.org> and
25941 Brian K. White <brian@aljex.com>.
25943 2008-04-06 Jim Meyering <meyering@redhat.com>
25945 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25947 2008-04-06 Bruno Haible <bruno@clisp.org>
25949 Avoid possible error with non-ASCII bytes in UTF-8 locales.
25950 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25951 * tests/test-printf-posix.sh: Likewise.
25952 * tests/test-vfprintf-posix.sh: Likewise.
25953 * tests/test-vprintf-posix.sh: Likewise.
25954 * tests/test-xprintf-posix.sh: Likewise.
25956 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25958 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25959 hide error from 'ls', needed on OS/2.
25960 Report by Elbert Pol <elbert.pol@gmail.com>.
25962 2008-04-04 Eric Blake <ebb9@byu.net>
25964 Make test-fseeko.c failures meaningful.
25965 * tests/test-fseeko.c: Print line number on failure.
25966 * tests/test-fseek.c: Likewise.
25967 Reported by Nelson H. F. Beebe.
25969 Improve strtod bug detection check.
25970 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25971 required for Solaris 10.
25972 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25974 2008-04-04 Bruno Haible <bruno@clisp.org>
25976 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25979 2008-04-03 Eric Blake <ebb9@byu.net>
25981 Ensure sane .version contents.
25982 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25984 * build-aux/git-version-gen: Improve documentation.
25986 Make GNU make output nicer.
25987 * top/GNUmakefile [!_have-Makefile]: Add dependency on
25988 MAKECMDGOALS to enforce message for all command line targets. Set
25989 srcdir for use in maint.mk.
25991 Another maintainer tweak.
25992 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25993 a target that regenerates version.
25995 2008-04-03 Jim Meyering <meyering@redhat.com>
25997 vc-list-files: don't cause coreutils "make po-check" failure
25998 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26000 2008-04-03 Eric Blake <ebb9@byu.net>
26002 Allow VPATH usage of vc-list-files.
26003 * build-aux/vc-list-files (scriptversion): Add timestamp.
26004 (options): Add --help, --version, -C.
26005 (CVS): Support installed cvsu.
26007 2008-04-02 Bruno Haible <bruno@clisp.org>
26009 Avoid some "statement with no effect" warnings from gcc.
26010 * tests/test-wctype.c (main): Explicitly ignore unused values.
26011 Reported by Jim Meyering.
26013 2008-04-02 Jim Meyering <meyering@redhat.com>
26015 Avoid some warnings from "gcc -Wshadow".
26016 * tests/test-frexp.c (exp): Define to a different identifier.
26017 * tests/test-frexpl.c (exp): Likewise.
26019 2008-04-03 Jim Meyering <meyering@redhat.com>
26021 bootstrap: remove dangling *.[ch] symlinks from lib
26022 * build-aux/bootstrap [dangling symlink removal]: Move find's
26023 -depth option to precede all others, to avoid a warning.
26024 Remove *.[ch] files too, and from "$source_base" (usually lib/).
26026 2008-04-02 Bruno Haible <bruno@clisp.org>
26028 Avoid some warnings from "gcc -Wshadow".
26029 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26030 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26031 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26032 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26033 Reported by Jim Meyering.
26035 2008-04-01 Bruno Haible <bruno@clisp.org>
26037 Fix test to work on IRIX 6.5 with cc.
26038 * tests/test-math.c (numeric_equal): New function.
26041 2008-04-01 Bruno Haible <bruno@clisp.org>
26043 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26045 2008-04-01 Bruno Haible <bruno@clisp.org>
26047 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26048 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26049 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26050 (Depends-on): Remove math.
26052 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26053 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26054 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26055 (Depends-on): Remove math.
26057 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26058 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26059 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26060 (Depends-on): Remove math.
26061 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26062 (Depends-on): Remove math.
26064 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26065 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26066 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26067 (Depends-on): Remove math.
26068 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26069 (Depends-on): Remove math.
26071 * tests/test-round1.c: Include nan.h.
26072 (main): Use NaNd instead of NAN.
26073 * modules/round-tests (Files): Add tests/nan.h.
26075 * tests/test-trunc1.c: Include nan.h.
26076 (main): Use NaNd instead of NAN.
26077 * modules/trunc-tests (Files): Add tests/nan.h.
26079 * tests/test-roundf1.c: Include nan.h.
26080 (main): Use NaNf instead of NAN.
26081 * modules/roundf-tests (Files): Add tests/nan.h.
26083 * tests/test-truncf1.c: Include nan.h.
26084 (main): Use NaNf instead of NAN.
26085 * modules/truncf-tests (Files): Add tests/nan.h.
26087 * tests/test-ceilf1.c: Include nan.h.
26088 (main): Use NaNf instead of NAN.
26089 * modules/ceilf-tests (Files): Add tests/nan.h.
26091 * tests/test-floorf1.c: Include nan.h.
26092 (main): Use NaNf instead of NAN.
26093 * modules/floorf-tests (Files): Add tests/nan.h.
26095 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26096 (main): Use NaNf instead of NAN.
26097 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26099 * tests/test-isnand.c: Include nan.h instead of <math.h>.
26100 (main): Use NaNd instead of NAN.
26101 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26103 * tests/test-frexp.c: Include nan.h.
26104 (main): Use NaNd instead of NAN.
26105 * modules/frexp-tests (Files): Add tests/nan.h.
26107 * lib/isnan.c: Don't include <math.h>.
26108 (FUNC): Don't use NAN macro.
26109 * modules/isnand-nolibm (Depends-on): Remove math.
26110 * modules/isnanf-nolibm (Depends-on): Remove math.
26111 * modules/isnanl (Depends-on): Remove math.
26112 * modules/isnanl-nolibm (Depends-on): Remove math.
26114 * tests/nan.h: New file.
26116 2008-04-01 Eric Blake <ebb9@byu.net>
26119 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26120 values to be the right type.
26122 For now, cater to gnulib strtod inaccuracies.
26123 * tests/test-strtod.c (main): Allow 1-ulp error on expected
26124 fractional results. While not as nice from a QoI perspective, it
26125 is a quicker patch than correctly implementing decimal to binary
26128 2008-03-31 Eric Blake <ebb9@byu.net>
26130 Guarantee a definition of NAN.
26131 * lib/math.in.h (NAN): Define if missing.
26132 * tests/test-math.c (main): Test it.
26133 * doc/posix-headers/math.texi (math.h): Document this.
26134 * lib/isnan.c (rpl_isnand): Use it.
26135 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26136 * tests/test-floorf1.c (NaN): Likewise.
26137 * tests/test-frexp.c (NaN): Likewise.
26138 * tests/test-isnand.c (NaN): Likewise.
26139 * tests/test-isnanf.c (NaN): Likewise.
26140 * tests/test-round1.c (NaN): Likewise.
26141 * tests/test-roundf1.c (NaN): Likewise.
26142 * tests/test-snprintf-posix.h (NaN): Likewise.
26143 * tests/test-sprintf-posix.h (NaN): Likewise.
26144 * tests/test-trunc1.c (NaN): Likewise.
26145 * tests/test-truncf1.c (NaN): Likewise.
26146 * tests/test-vasnprintf-posix.c (NaN): Likewise.
26147 * tests/test-vasprintf-posix.c (NaN): Likewise.
26148 * modules/isnand-nolibm (Depends-on): Add math.
26149 * modules/isnanf-nolibm (Depends-on): Likewise.
26150 * modules/isnanl (Depends-on): Likewise.
26151 * modules/isnanl-nolibm (Depends-on): Likewise.
26152 * modules/snprintf-posix-tests (Depends-on): Likewise.
26153 * modules/sprintf-posix-tests (Depends-on): Likewise.
26154 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26155 * modules/vsprintf-posix-tests (Depends-on): Likewise.
26156 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26157 * modules/vasprintf-posix-tests (Depends-on): Likewise.
26159 2008-03-31 Bruno Haible <bruno@clisp.org>
26161 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26162 * doc/posix-functions/strtod.texi: Likewise.
26164 2008-03-31 Bruno Haible <bruno@clisp.org>
26166 * tests/test-strtod.c (main): Don't use C99 syntax.
26168 2008-03-31 Bruno Haible <bruno@clisp.org>
26170 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26171 Reported by Eric Blake.
26173 2008-03-31 Jim Meyering <meyering@redhat.com>
26175 Don't compare actual signbit return values.
26176 * tests/test-strtod.c (main): Rather, compare only their
26177 zero/non-zero nature.
26179 2008-03-31 Eric Blake <ebb9@byu.net>
26181 More strtod documentation.
26182 * doc/posix-functions/strtod.texi (strtod): Interpret more test
26183 failures as distinct bugs.
26185 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
26187 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26188 Problem reported by Erik Benada in
26189 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26191 2008-03-30 Bruno Haible <bruno@clisp.org>
26193 * tests/test-strtod.c: Add comments about which assertion fails on which
26195 * doc/posix-functions/strtod.texi: Add info about many more platforms.
26197 2008-03-30 Eric Blake <ebb9@byu.net>
26199 Test signbit behavior on zeros.
26200 * tests/test-signbit.c (test_signbitf): Add tests for zero.
26201 (test_signbitd, test_signbitl): Likewise.
26203 More strtod touchups.
26204 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26205 sign of negative underflow, for now. Use .5, not .1.
26206 * doc/posix-functions/strtod.texi (strtod): Mention these
26208 Reported by Jim Meyering.
26210 2008-03-30 Bruno Haible <bruno@clisp.org>
26212 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26213 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26215 2008-03-30 Bruno Haible <bruno@clisp.org>
26217 Avoid failure when attempting to return empty iconv results on some
26219 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26220 allocation, don't report ENOMEM when the resulting string is empty.
26222 2008-03-30 Bruno Haible <bruno@clisp.org>
26224 Fix buffer overrun.
26225 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26226 Don't consider the width for tmp_length. Check count against tmp_length
26227 before doing the padding. Ensure enough allocation during padding.
26229 2008-03-30 Eric Blake <ebb9@byu.net>
26232 * lib/strtod.c (strtod): Avoid compiler warnings.
26233 Reported by Jim Meyering.
26235 2008-03-30 Bruno Haible <bruno@clisp.org>
26237 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26238 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26239 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26240 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26241 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26242 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26243 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26244 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26246 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26247 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26248 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26249 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26250 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26251 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26252 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26253 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26255 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26256 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26257 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26258 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26259 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26260 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26261 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26262 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26264 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26265 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26267 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26268 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26270 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26271 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26273 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26274 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26275 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26277 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26278 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26279 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26281 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26282 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26283 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26285 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26286 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26287 * modules/vasprintf (Depends-on): Add EOVERFLOW.
26289 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26290 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26291 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26292 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26293 (Depends-on): Add EOVERFLOW.
26294 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26295 (Depends-on): Add EOVERFLOW.
26296 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26297 (Depends-on): Add EOVERFLOW.
26298 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26299 (Depends-on): Add EOVERFLOW.
26300 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26301 (Depends-on): Add EOVERFLOW.
26302 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26303 (Depends-on): Add EOVERFLOW.
26304 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26305 (Depends-on): Add EOVERFLOW.
26306 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26307 (Depends-on): Add EOVERFLOW.
26309 * lib/sprintf.c (EOVERFLOW): Remove fallback.
26310 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26311 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26313 * lib/snprintf.c (EOVERFLOW): Remove fallback.
26314 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26315 * modules/snprintf (Depends-on): Add EOVERFLOW.
26317 * lib/poll.c (EOVERFLOW): Remove fallback.
26318 * modules/poll (Depends-on): Add EOVERFLOW.
26320 * lib/getugroups.c (EOVERFLOW): Remove fallback.
26321 * modules/getugroups (Depends-on): Add EOVERFLOW.
26323 * lib/getdelim.c (EOVERFLOW): Remove fallback.
26324 * modules/getdelim (Depends-on): Add EOVERFLOW.
26326 * lib/ftell.c (EOVERFLOW): Remove fallback.
26327 * modules/ftell (Depends-on): Add EOVERFLOW.
26329 * lib/fprintf.c (EOVERFLOW): Remove fallback.
26330 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26331 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26333 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26335 * modules/EOVERFLOW-tests: New file.
26336 * tests/test-EOVERFLOW.c: New file.
26338 * modules/EOVERFLOW: New file.
26339 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26341 2008-03-30 Bruno Haible <bruno@clisp.org>
26343 Fix bug introduced on 2007-06-10.
26344 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26345 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26347 2008-03-30 Bruno Haible <bruno@clisp.org>
26349 Improve freadseek's efficiency after ungetc.
26350 * lib/freadseek.c: Include freadahead.h.
26351 (freadptrinc): New function, extracted from freadseek.
26352 (freadseek): Use it in a loop. Use freadahead to determine the number
26353 of loop iterations.
26354 * modules/freadseek (Depends-on): Add freadahead.
26355 (configure.ac): Require AC_C_INLINE.
26357 2008-03-30 Bruno Haible <bruno@clisp.org>
26359 * lib/freadseek.c (freadseek): Don't ignore the return value of
26362 2008-03-29 Eric Blake <ebb9@byu.net>
26364 Add hex float support.
26365 * modules/strtod (Depends-on): Add c-ctype.
26366 (Link): Mention POW_LIB.
26367 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
26368 whitespace between 'e' and exponent.
26369 * tests/test-strtod.c (main): Enable hex float tests.
26370 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26373 Document various strtod bugs, with some fixes.
26374 * doc/posix-functions/strtod.texi (strtod): Document bugs with
26375 "-0x", "inf", "nan", and hex constants.
26376 * doc/posix-functions/atof.texi (atof): Likewise.
26377 * modules/stdlib (Makefile.am): Support strtod.
26378 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26379 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26380 detect additional strtod bugs.
26381 * lib/stdlib.in.h (rpl_strtod): Add declarations.
26382 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
26383 bool where appropriate. Parse 'inf' and 'nan'.
26384 * tests/test-strtod.c: New file.
26385 * modules/strtod (Depends-on): Add stdbool, stdlib.
26386 (configure.ac): Turn on module indicator.
26387 * modules/strtod-tests: New module.
26389 2008-03-29 Eric Blake <ebb9@byu.net>
26391 Fix ftell on mingw.
26392 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26393 * modules/ftell-tests (Depends-on): Add binary-io.
26394 * modules/ftello-tests (Depends-on): Likewise.
26395 * tests/test-ftell.c (main): Enhance test to cover behavior after
26396 ungetc. Enforce binary mode.
26397 * tests/test-ftello.c (main): Likewise.
26399 Pass test-freadseek on cygwin.
26400 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26401 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26404 * tests/test-fflush2.c (main): Fix typo.
26406 2008-03-29 Bruno Haible <bruno@clisp.org>
26408 * tests/test-fflush2.c (main): Temporarily disable the contents of
26410 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26411 Reported by Eric Blake.
26413 2008-03-28 Simon Josefsson <simon@josefsson.org>
26415 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26416 (GC_SHA224_DIGEST_SIZE): Add.
26418 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26419 (gc_hash_digest_length): Likewise.
26420 (gc_hash_buffer): Likewise.
26422 2008-03-25 Bruno Haible <bruno@clisp.org>
26424 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26425 detail which gettext release to use.
26426 Reported by Simon Josefsson.
26428 2008-03-26 Jim Meyering <meyering@redhat.com>
26430 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26431 * modules/gnumakefile (clean-GNUmakefile): Also, use
26432 test ... && ... || : syntax rather than if-then ... fi.
26434 gnumakefile: Don't double-quote-expand $(VPATH) value.
26435 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26437 2008-03-24 Eric Blake <ebb9@byu.net>
26439 Alter GNUmakefile to install into top directory.
26440 * modules/maintainer-makefile: Split, and add dependency...
26441 * modules/gnumakefile: to this new module.
26442 * build-aux/GNUmakefile: Move...
26443 * top/GNUmakefile: ...here.
26444 * build-aux/maint.mk: Move...
26445 * top/maint.mk: ...here.
26446 * MODULES.html.sh (Support for maintaining...): Document new
26449 2008-03-23 Bruno Haible <bruno@clisp.org>
26451 * gnulib-tool: New options --vc-files, --no-vc-files.
26452 (func_usage): Document them.
26453 (vc_files): New variable.
26454 (func_import): Consider vc_files.
26455 (func_create_testdir): Set vc_files to empty.
26456 Suggested by Jim Meyering and Karl Berry.
26458 2008-03-23 Bruno Haible <bruno@clisp.org>
26460 Fix regex compilation error on HP-UX 11.
26461 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26462 * modules/regex (Files): Add m4/mbstate_t.m4.
26463 Reported by Ton Voon <ton.voon@altinity.com>.
26465 2008-03-23 Bruno Haible <bruno@clisp.org>
26467 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26469 2008-03-23 Eric Blake <ebb9@byu.net>
26470 Bruno Haible <bruno@clisp.org>
26472 Install files from top/ in the destination directory.
26473 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26474 augmentation also for the files from top/.
26475 (func_import, func_create_testdir): Rewrite file names:
26476 top/filename -> filename.
26478 2008-03-23 Bruno Haible <bruno@clisp.org>
26480 Tweak "gnulib --version" output.
26481 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26483 2008-03-23 Bruno Haible <bruno@clisp.org>
26485 Tweak "gnulib --version" output.
26486 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26487 rather than contents of ChangeLog, when possible.
26489 2008-03-21 Eric Blake <ebb9@byu.net>
26491 More --version tweaks.
26492 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
26493 date of last ChangeLog entry.
26495 2008-03-21 Jim Meyering <meyering@redhat.com>
26497 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26499 2008-03-20 Eric Blake <ebb9@byu.net>
26502 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26504 2008-03-20 Simon Josefsson <simon@josefsson.org>
26506 * build-aux/GNUmakefile: Make git-version-gen optional. Add
26507 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
26509 2008-03-20 Eric Blake <ebb9@byu.net>
26511 Sync GNUmakefile with coreutils.
26512 * build-aux/GNUmakefile (have-Makefile): Rename...
26513 (_have-Makefile): ...to this, for namespace consideration.
26514 (GNUmakefile.cfg): Include, if present.
26515 (_autoreconf): Define a default.
26516 (_is-dist-target): New rule for rebuilds to pick up intra-release
26518 (maint-cfg.mk): Rename...
26519 (cfg.mk): ...to this.
26521 2008-03-18 Jim Meyering <meyering@redhat.com>
26523 New script and module: mktempd
26524 * MODULES.html.sh (maint+release support): Add mktempd.
26525 * build-aux/mktempd: New file.
26526 * modules/mktempd: New file.
26528 2008-03-15 Jim Meyering <meyering@redhat.com>
26531 * lib/sha1.c, lib/md5.c: 63 != ~63.
26532 Reported by Andreas Schwab.
26534 sha1.c, md5.c: Hoist a redundant expression.
26535 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26536 "ctx->buflen" only once, before calling *_process_block.
26537 * lib/md5.c (md5_process_bytes): Likewise.
26539 2008-03-14 Eric Blake <ebb9@byu.net>
26541 Bump copyright year in files generated by gnulib-tool.
26542 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26543 gnulib-tool, rather than hard-coding it.
26545 Fix 'gnulib-tool --version' output to work with git.
26546 * gnulib-tool (func_gnulib_dir): New function, extracted from...
26547 (startup): ...here.
26548 (func_version): Use it to invoke git-version-gen, rather than
26549 relying on CVS keyword expansion. Modernize wording.
26550 (cvsdatestamp, last_checkin_date, version): Kill unused
26553 2008-03-12 Jim Meyering <meyering@redhat.com>
26555 Recognize optional cast of the argument to free.
26556 * build-aux/useless-if-before-free: Update regexps.
26558 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26560 2008-03-11 Bruno Haible <bruno@clisp.org>
26562 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26563 by a single package.
26564 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26565 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26566 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26567 Reported by Sam Steingold <sds@gnu.org>.
26569 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
26571 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26574 2008-03-11 Bruno Haible <bruno@clisp.org>
26576 Avoid conflicts between local macro definitions.
26577 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26578 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26580 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
26581 Bruno Haible <bruno@clisp.org>
26583 Make va_copy work with some version of xlc on AIX 5.1.
26584 * lib/stdarg.in.h: New file.
26585 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26586 On AIX, use a <stdarg.h> file substitute.
26587 * modules/stdarg (Files): Add lib/stdarg.in.h.
26588 (Depends-on): Add include_next.
26589 (Makefile.am): Build a stdarg.h substitute if requested.
26590 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26592 2008-03-10 Bruno Haible <bruno@clisp.org>
26594 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26595 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26596 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26598 2008-03-10 Bruno Haible <bruno@clisp.org>
26600 * modules/stdlib (Depends-on): Add include_next, remove
26603 2008-03-09 Bruno Haible <bruno@clisp.org>
26605 * lib/freadahead.h (freadahead): Document more precisely.
26606 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26607 the sum of both buffer sizes.
26608 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26609 * NEWS: Document the change.
26611 2008-03-09 Bruno Haible <bruno@clisp.org>
26613 Extend freadptr to return also the buffer size.
26614 * lib/freadptr.h (freadptr): Add sizep argument.
26615 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26616 (freadptr): Add sizep argument. Determine buffer size like freadahead
26618 * tests/test-freadptr.c: Don't include freadahead.h.
26619 (main): Adapt for new calling convention of freadptr.
26620 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26621 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26622 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26623 tests/test-freadptr2.sh.
26624 (Depends): Remove freadahead.
26625 (TESTS): Add test-freadptr2.sh.
26626 (check_PROGRAMS): Add test-freadptr2.
26628 2008-03-09 Bruno Haible <bruno@clisp.org>
26630 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26631 Report and solution by Simon Josefsson.
26633 2008-03-06 Bruno Haible <bruno@clisp.org>
26635 Make fflush after ungetc work on BSD platforms.
26636 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26637 * tests/test-fflush2.c: New file.
26638 * tests/test-fflush2.sh: New file.
26639 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26640 tests/test-fflush2.c.
26641 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26642 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26644 2008-03-06 Eric Blake <ebb9@byu.net>
26646 Likewise for ftello.
26647 * modules/ftello (Dependencies): Add extensions.
26648 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26650 2008-03-06 Bruno Haible <bruno@clisp.org>
26652 * modules/fseeko (Dependencies): Add extensions.
26653 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26654 Needed on glibc systems.
26656 2008-03-06 Bruno Haible <bruno@clisp.org>
26658 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26660 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26662 2008-03-06 Bruno Haible <bruno@clisp.org>
26664 * users.txt: Add libgnupdf.
26666 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
26668 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26669 (Header File Substitutes, Function Substitutes,
26670 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26671 (Build robot for gnulib): Fix typo.
26673 2008-03-06 Bruno Haible <bruno@clisp.org>
26675 * doc/gnulib-tool.texi (VCS Issues): Small updates.
26676 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26678 2008-03-06 Bruno Haible <bruno@clisp.org>
26680 * doc/func.texi: New file, extracted from doc/gnulib.texi.
26681 * doc/gnulib.texi: Include it.
26683 2008-03-06 Simon Josefsson <simon@josefsson.org>
26685 * modules/func (License): Change license to unlimited; there was
26686 no LGPL parts in the module anyway.
26688 2008-03-06 Simon Josefsson <simon@josefsson.org>
26690 * modules/__func__: Renamed to modules/func.
26691 * modules/__func__-tests: Renamed to modules/func-tests.
26692 * tests/test-__func__.c: Renamed to tests/test-func.c.
26693 * m4/__func__.m4: Renamed to m4/func.m4.
26694 * doc/gnulib.texi (__func__): Section renamed to func.
26695 Suggested by Eric Blake <ebb9@byu.net>.
26697 2008-03-06 Simon Josefsson <simon@josefsson.org>
26699 * doc/gnulib.texi (__func__): Use C99 terminology when talking
26700 about __func__. Make example self-contained. Suggested by Eric
26701 Blake <ebb9@byu.net>.
26703 * tests/test-__func__.c (main): Avoid extraneous () around __func.
26704 Suggested by Eric Blake <ebb9@byu.net>.
26706 2008-03-06 Simon Josefsson <simon@josefsson.org>
26708 * modules/__func__: New file.
26709 * modules/__func__-tests: New file.
26710 * tests/test-__func__.c: New file.
26711 * m4/__func__.m4: New file.
26712 * doc/gnulib.texi (__func__): Document __func__ module.
26714 2008-03-05 Simon Josefsson <simon@josefsson.org>
26716 * modules/byteswap (License): Re-license as LGPLv2+.
26718 2008-03-05 Simon Josefsson <simon@josefsson.org>
26720 * doc/Makefile: Add pdf target.
26722 2008-03-05 Simon Josefsson <simon@josefsson.org>
26724 * modules/inline (License): Use 'unlimited', since there are only
26725 *.m4 files in this module.
26727 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
26728 Bruno Haible <bruno@clisp.org>
26730 Add support for HP C 7.1 on OpenVMS 8.3.
26731 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26733 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
26735 Update VMS specifics.
26736 * lib/getopt.c [VMS]: Remove include of unixlib.h.
26738 2008-03-02 Jim Meyering <meyering@redhat.com>
26740 Remove the last dependency on the "free" module.
26741 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26742 Reported by Bob Proulx.
26744 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26746 Remove useless "if" tests before free. Deprecate "free" module.
26747 * doc/posix-functions/free.texi: Mention that this
26748 module is no longer useful.
26749 * modules/free (Notice): Say this module is obsolete.
26750 * modules/readutmp (Depends-on): Remove free.
26751 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26752 * lib/putenv.c (putenv): Likewise.
26753 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26754 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26755 * tests/test-c-strcasestr.c (main): Likewise.
26756 * tests/test-c-strstr.c (main): Likewise.
26757 * tests/test-mbscasestr1.c (main): Likewise.
26758 * tests/test-mbscasestr2.c (main): Likewise.
26759 * tests/test-mbsstr1.c (main): Likewise.
26760 * tests/test-mbsstr2.c (main): Likewise.
26761 * tests/test-memmem.c (main): Likewise.
26762 * tests/test-strcasestr.c (main): Likewise.
26763 * tests/test-striconv.c (main): Likewise.
26764 * tests/test-striconveh.c (main): Likewise.
26765 * tests/test-striconveha.c (main): Likewise.
26766 * tests/test-strstr.c (main): Likewise.
26768 * build-aux/git-version-gen: Adjust a comment and the Usage string.
26770 bootstrap: sync from coreutils again
26771 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26773 2008-03-01 Jim Meyering <meyering@redhat.com>
26775 bootstrap: sync from coreutils
26776 * build-aux/bootstrap (update_po_files): Copy a .po file into place
26777 also when the target doesn't exist.
26779 2008-03-01 Eric Blake <ebb9@byu.net>
26781 Fix bugs in last patch.
26782 * lib/memchr2.c (memchr2): Fix typo.
26783 * tests/test-memchr2.c: Test previous bug, and don't use GNU
26785 Reported by Bruce Korb.
26787 New module 'memchr2'.
26788 * modules/memchr2: New file.
26789 * modules/memchr2-tests: Likewise.
26790 * lib/memchr2.h: Likewise.
26791 * lib/memchr2.c: Likewise, based on memchr.c.
26792 * tests/test-memchr2.c: New test.
26793 * MODULES.html.sh (String handling): Add memchr2.
26795 2008-02-29 Bruno Haible <bruno@clisp.org>
26797 * modules/freadseek-tests: New file.
26798 * tests/test-freadseek.sh: New file.
26799 * tests/test-freadseek.c: New file.
26801 New module 'freadseek'.
26802 * modules/freadseek: New file.
26803 * lib/freadseek.h: New file.
26804 * lib/freadseek.c: New file.
26805 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26807 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
26809 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26812 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26813 program_invocation_name and program_invocation_short_name are
26816 2008-02-28 Bruno Haible <bruno@clisp.org>
26818 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26819 * tests/test-freadptr.sh: Also test non-seekable stdin.
26821 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
26823 * build-aux/bootstrap (source_base, m4_base)
26824 (doc_base, tests_base): New variables.
26825 (gnulib_tool_options): Do not hardcode base directories, use
26826 the above variables instead.
26828 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
26830 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26832 2008-02-28 Bruno Haible <bruno@clisp.org>
26834 * modules/freadptr-tests: New file.
26835 * tests/test-freadptr.sh: New file.
26836 * tests/test-freadptr.c: New file.
26838 New module 'freadptr'.
26839 * modules/freadptr: New file.
26840 * lib/freadptr.h: New file.
26841 * lib/freadptr.c: New file.
26842 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26844 2008-02-26 Karl Berry <karl@freefriends.org>
26847 * libltdl/argz.c (argz_add, argz_count): New functions.
26848 * libltdl/argz.in.h: Declare them.
26849 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26851 2008-02-22 Bruno Haible <bruno@clisp.org>
26853 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26854 is a pointer type. Needed for HP-UX 10.
26855 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26856 * doc/posix-functions/gmtime_r.texi: Likewise.
26857 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26859 2008-02-24 Bruno Haible <bruno@clisp.org>
26861 * modules/environ-tests: New file.
26862 * tests/test-environ.c: New file.
26864 New module 'environ'.
26865 * modules/environ: New file.
26866 * lib/unistd.in.h (environ): New declaration.
26867 * m4/environ.m4: New file.
26868 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26870 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26872 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26874 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26875 wrong claim that 'environ' is missing on some systems.
26876 * modules/execute (Depends-on): Add environ.
26877 * lib/execute.c (environ): Remove fallback declaration.
26878 * modules/pipe (Depends-on): Add environ.
26879 * lib/pipe.c (environ): Remove fallback declaration.
26880 * modules/setenv (Depends-on): Add environ.
26881 * lib/setenv.c (environ): Remove fallback declaration.
26882 * modules/unsetenv (Depends-on): Add environ.
26883 * lib/unsetenv.c (environ): Remove fallback declaration.
26884 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26886 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26887 (gl_PREREQ_UNSETENV): Likewise.
26889 2008-02-24 Bruno Haible <bruno@clisp.org>
26891 * doc/posix-functions/environ.texi: Document the MacOS X problem.
26893 2008-02-20 Bob Proulx <bob@proulx.com>
26895 Enable use of older two part flavor 'git describe'.
26896 * build-aux/git-version-gen: If using the older two part flavor of
26897 git version then recreate the third part now present in the
26898 newer three part flavor of git describe.
26900 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
26902 * lib/fts.c (fts_build): Typo correction to comment.
26904 2008-02-17 Bruno Haible <bruno@clisp.org>
26906 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26907 generating no-op conflicts.
26909 2008-02-17 Bruno Haible <bruno@clisp.org>
26912 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26913 result_entries, rather than an index-based loop.
26915 2008-02-17 Bruno Haible <bruno@clisp.org>
26918 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26920 (entry_create): New function.
26921 (entry_hashcode): Use the cached hashcode if possible.
26922 (read_changelog_file, try_split_merged_entry): Use entry_create.
26924 2008-02-17 Bruno Haible <bruno@clisp.org>
26926 Speed up from O(n^2) to O(n) for long ChangeLog files.
26927 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26928 (read_changelog_file): Change implementation of entries_reversed list
26930 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26932 2008-02-17 Bruno Haible <bruno@clisp.org>
26934 New option --split-merged-entry.
26935 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26936 (find_paragraph_end, try_split_merged_entry): New functions.
26937 (long_options): Add option --split-merged-entry.
26938 (usage): Document option --split-merged-entry.
26939 (main): Implement option --split-merged-entry.
26940 Reported by Eric Blake.
26942 2008-02-17 Bruno Haible <bruno@clisp.org>
26944 * lib/git-merge-changelog.c: Include c-strstr.h.
26945 (main): Support the "git pull --rebase" situation.
26946 * modules/git-merge-changelog (Depends-on): Add c-strstr.
26947 Reported by Eric Blake.
26949 2008-02-16 Eric Blake <ebb9@byu.net>
26951 Avoid doubling \ in common case of "c-maybe" quoting style.
26952 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26953 eliding outer quotes.
26954 * lib/quotearg.h: Document this.
26955 * tests/test-quotearg.c (result_strings, inputs, results_g)
26956 (flag_results, locale_results): Test it by adding a new string to
26958 (compare_strings): Test new string.
26960 2008-02-13 Eric Blake <ebb9@byu.net>
26962 Avoid trigraph quoting in default output.
26963 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26964 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26965 unless explicitly requested.
26966 * tests/test-quotearg.c (flag_results, main): Add additional tests.
26968 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
26970 Don't rely on signed integer overflowing to negative value.
26971 * lib/getugroups.c (getugroups): Include <limits.h>.
26972 Instead, compare against INT_MAX, and increment only if the test passes.
26974 2008-02-13 Jim Meyering <meyering@redhat.com>
26975 and Eric Blake <ebb9@byu.net>
26977 Avoid shadowing warning and compile errors on Linux.
26978 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26979 forwarding macros on Linux.
26980 (dcgettext): Define a stub, for Linux.
26981 (results_g, main): Avoid warnings.
26983 2008-02-12 Eric Blake <ebb9@byu.net>
26985 Silence warning in last patch.
26986 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26988 Quotearg part 4: add tests, fix c-maybe colon quoting.
26989 * lib/quotearg.h: Improve documentation.
26990 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26991 escapes when adding outer quotes. When quoting trigraphs, use
26992 valid C notation. When quoting NUL, omit extra characters if next
26993 character is not digit. Alter prototype.
26994 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26996 * modules/quotearg-tests: New module.
26997 * tests/test-quotearg.c: New test.
26999 2008-02-07 Eric Blake <ebb9@byu.net>
27001 Quotearg part 3: add flag to control outer quote elision.
27002 * lib/quotearg.h (c_maybe_quoting_style): New style.
27003 (enum quoting_flags): Better documentation of flags.
27004 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27006 (quotearg_buffer_restyled): Handle new flag to elide outer
27009 Quotearg part 2: add flag that can control NUL elision.
27010 * lib/quotearg.h (set_quoting_flags): New prototype.
27011 * lib/quotearg.c (struct quoting_options): Add flag field.
27012 (set_quoting_flags): New function.
27013 (quotearg_buffer_restyled): Add flags parameter.
27014 (quotearg_alloc_mem): Set the flag if length cannot be returned.
27015 (quotearg_n_options): Set the flag, since length cannot be
27017 (quoting_options_from_style): Default flags correctly.
27019 Quotearg part 1: more wrappers, restore quotearg_char state.
27020 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27021 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27022 (quotearg_colon_mem): New wrappers.
27023 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27024 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27026 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27027 (quotearg_colon_mem): New functions.
27029 2008-02-11 Bruno Haible <bruno@clisp.org>
27031 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27032 library in the current directory: it does not work with parallel make.
27033 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27035 2008-02-11 Bruno Haible <bruno@clisp.org>
27037 * .gitattributes: New file.
27039 2008-02-11 Jim Meyering <meyering@redhat.com>
27041 useless-if-before-free: Fix reversed exit values.
27042 * build-aux/useless-if-before-free: Use correct values
27043 for EXIT_MATCH and EXIT_NO_MATCH.
27045 * build-aux/useless-if-before-free: Close stdout carefully.
27047 2008-02-10 Bruno Haible <bruno@clisp.org>
27049 New module 'git-merge-changelog'.
27050 * modules/git-merge-changelog: New file.
27051 * lib/git-merge-changelog.c: New file.
27053 2008-02-10 Jim Meyering <meyering@redhat.com>
27055 useless-if-before-free: New option: --list (-l).
27057 useless-if-before-free: Don't exit immediately upon open failure.
27058 * build-aux/useless-if-before-free: Exit 2 for errors.
27059 Upon failure to open a file, don't exit immediately.
27060 Rather, just warn and continue with any remaining files.
27062 2008-02-10 Bruno Haible <bruno@clisp.org>
27064 New abstract list operation 'node_set_value'.
27065 * lib/gl_list.h (gl_list_node_set_value): New function.
27066 (struct gl_list_implementation): New field node_set_value.
27067 * lib/gl_list.c (gl_list_node_set_value): New function.
27068 * lib/gl_array_list.c (gl_array_node_set_value): New function.
27069 (gl_array_list_implementation): Update.
27070 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27071 (gl_carray_list_implementation): Update.
27072 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27073 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27074 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27075 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27076 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27077 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27078 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27080 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27081 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27082 (gl_sublist_list_implementation): Update.
27084 2008-02-10 Bruno Haible <bruno@clisp.org>
27086 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27087 Needed when ELEMENT is #defined to 'some_type *'.
27089 2008-02-10 Jim Meyering <meyering@redhat.com>
27091 New script and module: useless-if-before-free
27092 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27093 * build-aux/useless-if-before-free: New file.
27094 * modules/useless-if-before-free: New file.
27096 * build-aux/gitlog-to-changelog: Use committer date, not author date.
27098 xstrtol_error: Fix typo.
27099 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27100 s/exit_failure/exit_status/.
27102 2008-02-09 Jim Meyering <meyering@redhat.com>
27104 New script and module: gitlog-to-changelog
27105 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27106 * modules/gitlog-to-changelog: New file.
27107 * build-aux/gitlog-to-changelog: New file.
27109 2008-02-08 Jim Meyering <meyering@redhat.com>
27111 Avoid two "parameter unused" warnings.
27112 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27115 Use "git COMMAND", not "git-COMMAND".
27116 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27117 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27118 * build-aux/git-version-gen: Use "git status", not "git-status".
27120 2008-02-07 Bruno Haible <bruno@clisp.org>
27122 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27123 Avoids a crash on Windows Vista.
27124 Reported by Adam Strzelecki <ono@java.pl> via
27125 Simon Josefsson <simon@josefsson.org>.
27127 2008-02-06 Bruno Haible <bruno@clisp.org>
27129 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27130 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27131 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27132 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27133 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27134 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27135 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27136 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27137 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27138 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27139 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27140 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27141 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27142 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27143 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27144 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27146 * tests/test-snprintf-posix.h (test_function): Likewise.
27147 * tests/test-sprintf-posix.h (test_function): Likewise.
27148 * tests/test-vasprintf-posix.c (test_function): Likewise.
27149 * doc/posix-functions/fprintf.texi: Update.
27150 * doc/posix-functions/printf.texi: Update.
27151 * doc/posix-functions/snprintf.texi: Update.
27152 * doc/posix-functions/sprintf.texi: Update.
27153 * doc/posix-functions/vfprintf.texi: Update.
27154 * doc/posix-functions/vprintf.texi: Update.
27155 * doc/posix-functions/vsnprintf.texi: Update.
27156 * doc/posix-functions/vsprintf.texi: Update.
27157 Reported by Peter Fales <psfales@alcatel-lucent.com>.
27159 2008-02-06 Bruno Haible <bruno@clisp.org>
27161 Fix bug introduced on 2008-01-26.
27162 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27164 2008-02-06 Bruno Haible <bruno@clisp.org>
27166 Fix bug introduced on 2007-06-10.
27167 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27168 !NEED_PRINTF_FLAG_ZERO.
27170 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
27172 getloadavg: use libperfstat on AIX5
27173 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27175 2008-02-03 Bruno Haible <bruno@clisp.org>
27177 * lib/diffseq.h: Add comments about required #includes.
27178 Reported by Michael Biggs <gnulib@doubleplum.net>.
27180 2008-02-01 Bruno Haible <bruno@clisp.org>
27182 * users.txt: Add gnuit.
27184 2008-01-31 Bruno Haible <bruno@clisp.org>
27186 * lib/md4.c (set_uint32): Mark as inline.
27187 * lib/md5.c (set_uint32): Likewise.
27188 * lib/sha1.c (set_uint32): Likewise.
27189 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27190 * m4/md5.m4 (gl_MD5): Likewise.
27191 * m4/sha1.m4 (gl_SHA1): Likewise.
27193 2008-01-31 Jim Meyering <meyering@redhat.com>
27195 Use "sizeof VAR", rather than a literal "4".
27196 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27197 * lib/md4.c (md4_read_ctx): Likewise.
27198 * lib/sha1.c (sha1_read_ctx): Likewise.
27200 2008-01-31 Simon Josefsson <simon@josefsson.org>
27202 * tests/test-sha1.c: New file, based on test-md5.c.
27204 * modules/crypto/sha1-tests: New file.
27206 2008-01-31 Simon Josefsson <simon@josefsson.org>
27208 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27210 2008-01-31 Jim Meyering <meyering@redhat.com>
27212 Prefer "sizeof v" over the equivalent "4".
27213 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27214 * lib/md5.c (set_uint32): Likewise.
27215 * lib/sha1.c (set_uint32): Likewise.
27217 2008-01-31 Simon Josefsson <simon@josefsson.org>
27219 * lib/sha1.c (set_uint32): Mark function as static.
27221 2008-01-31 Simon Josefsson <simon@josefsson.org>
27223 md2: clarify comments to say that alignment is not required.
27224 * lib/md2.h: Remove warning about alignment in comment.
27225 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27226 never been required.
27228 2008-01-31 Simon Josefsson <simon@josefsson.org>
27230 md4: adapt alignment constraint fix from sha1.
27231 * lib/md4.c (set_uint32): New function, from sha1.c
27232 (md4_read_ctx): Use it.
27233 (md4_finish_ctx): Doc fix.
27234 * lib/md4.h: Doc fix.
27236 2008-01-31 Simon Josefsson <simon@josefsson.org>
27238 md5: adapt alignment constraint fix from sha1.
27239 * lib/md5.c (set_uint32): New function, from sha1.c
27240 (md5_read_ctx): Use it.
27241 (md5_finish_ctx): Doc fix.
27242 * lib/md5.h: Doc fix.
27244 2008-01-30 Peter Palfrader <weasel@debian.org>
27246 sha1: remove the result buffer alignment constraint
27247 * lib/sha1.c (set_uint32): New function.
27248 (sha1_read_ctx): Rewrite to remove the result buffer alignment
27250 (sha1_finish_ctx): Remove comment warning about alignment constraint.
27251 * lib/sha1.h: Likewise.
27253 2008-01-30 Andreas Schwab <schwab@suse.de>
27254 Bruno Haible <bruno@clisp.org>
27256 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27257 correct definition of LDBL_MIN_EXP.
27259 2008-01-30 Karl Berry <karl@gnu.org>
27261 * config/srclist-update: try to preserve x bit on updates.
27262 * config/srclistvars.sh: update for karl.
27264 2008-01-29 Jim Meyering <meyering@redhat.com>
27266 vasnprintf.c: Avoid warning about unused label
27267 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27268 "overflow" label definition and associated code with the
27269 same cpp condition that guards the sole use of that label.
27271 2008-01-26 Bruno Haible <bruno@clisp.org>
27273 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27274 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27275 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27276 * lib/isnanl-nolibm.h (isnanl): Likewise.
27277 Reported by Paul Eggert <eggert@cs.ucla.edu>.
27279 2008-01-26 Bruno Haible <bruno@clisp.org>
27281 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27282 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27284 2008-01-26 Bruno Haible <bruno@clisp.org>
27286 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27287 GCC >= 4.0 built-in.
27288 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27290 2008-01-26 Bruno Haible <bruno@clisp.org>
27292 Rename isnan, applicable to 'double' only, to isnand.
27293 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27294 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27295 (configure.ac): Update.
27296 (Include): Replace "isnan.h" with "isnand.h".
27297 * m4/isnand.m4: Renamed from m4/isnan.m4.
27298 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27299 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27300 instead of isnan.c.
27301 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27302 instead of HAVE_ISNAN_IN_LIBC.
27303 (isnand): Renamed from isnan.
27304 * lib/isnand.c: New file.
27305 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27306 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27307 (Makefile.am): Update.
27308 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27309 Include isnand.h instead of isnan.h.
27310 (main): Test isnand instead of isnan.
27311 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27313 * modules/frexp (Depends-on): Likewise.
27314 * modules/frexp-tests (Depends-on): Likewise.
27315 * modules/frexp-nolibm (Depends-on): Likewise.
27316 * modules/frexp-nolibm-tests (Depends-on): Likewise.
27317 * modules/isfinite (Depends-on): Likewise.
27318 * modules/round-tests (Depends-on): Likewise.
27319 * modules/signbit (Depends-on): Likewise.
27320 * modules/signbit-tests (Depends-on): Likewise.
27321 * modules/snprintf-posix (Depends-on): Likewise.
27322 * modules/sprintf-posix (Depends-on): Likewise.
27323 * modules/trunc-tests (Depends-on): Likewise.
27324 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27325 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27326 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27327 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27328 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27329 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27330 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27331 * modules/vasnprintf-posix (Depends-on): Likewise.
27332 * modules/vasprintf-posix (Depends-on): Likewise.
27333 * modules/vfprintf-posix (Depends-on): Likewise.
27334 * modules/vsnprintf-posix (Depends-on): Likewise.
27335 * modules/vsprintf-posix (Depends-on): Likewise.
27336 * lib/frexp.c: Include isnand.h instead of isnan.h.
27337 (ISNAN): Set to isnand instead of isnan.
27338 * lib/isfinite.c: Include isnand.h instead of isnan.h.
27339 (gl_isfinited): Use isnand instead of isnan.
27340 * lib/signbitd.c: Include isnand.h instead of isnan.h.
27341 (gl_signbitd): Use isnand instead of isnan.
27342 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27343 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27344 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27345 (main): Use isnand instead of isnan.
27346 * tests/test-round1.c: Include isnand.h.
27347 (main): Use isnand instead of isnan.
27348 * tests/test-round2.c: Include isnand.h instead of isnan.h.
27349 (ISNAN): Set to isnand instead of isnan.
27350 * tests/test-trunc1.c: Include isnand.h.
27351 (main): Use isnand instead of isnan.
27352 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27353 (equal): Use isnand instead of isnan.
27354 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27356 * NEWS: Mention the change.
27358 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
27359 Bruno Haible <bruno@clisp.org>
27361 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27362 the GCC builtins for signbits are present and set
27363 REPLACE_SIGNBIT_USING_GCC if so.
27364 * lib/math.in.h (signbit): Define using GCC builtins if
27365 REPLACE_SIGNBIT_USING_GCC is set.
27366 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27367 REPLACE_SIGNBIT_USING_GCC.
27368 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27370 2008-01-25 Jim Meyering <meyering@redhat.com>
27372 Prefer <config.h> over "config.h". See autoconf doc for explanation.
27373 * lib/poll.c: Include <config.h>, not "config.h".
27374 * tests/test-getaddrinfo.c: Likewise.
27376 2008-01-25 Simon Josefsson <simon@josefsson.org>
27378 * modules/sockets-tests: New file.
27380 2008-01-24 Simon Josefsson <simon@josefsson.org>
27382 * modules/sockets: New module, can be used to call WSA_Startup and
27383 WSA_Cleanup when needed.
27385 * lib/sockets.h, lib/sockets.c: New files.
27387 * m4/sockets.m4: New file.
27389 * tests/test-sockets.c: New file.
27391 2008-01-19 Bruno Haible <bruno@clisp.org>
27393 * doc/posix-headers: Renamed from doc/headers.
27394 * doc/posix-functions: Renamed from doc/functions.
27395 * doc/gnulib.texi: Update.
27397 2008-01-19 Bruno Haible <bruno@clisp.org>
27399 * doc/glibc-functions/strcasestr.texi: Include contents of
27400 doc/functions/strcasestr.texi, fixing the list of platforms.
27401 * doc/functions/strcasestr.texi: Remove file.
27403 2008-01-19 Bruno Haible <bruno@clisp.org>
27405 * doc/glibc-functions/memmem.texi: Include contents of
27406 doc/functions/memmem.texi.
27407 * doc/functions/memmem.texi: Remove file.
27409 2008-01-18 Bruno Haible <bruno@clisp.org>
27411 * doc/glibc-functions/*.texi: New files.
27412 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27413 to use the new files.
27415 2008-01-17 Bruno Haible <bruno@clisp.org>
27417 * tests/test-gethostname.c (main): Fix printf statement.
27419 2008-01-17 Simon Josefsson <simon@josefsson.org>
27421 * modules/gethostname-tests: New file.
27423 * tests/test-gethostname.c: New file.
27425 2008-01-17 Simon Josefsson <simon@josefsson.org>
27427 * lib/gethostname.c: Include string.h unconditionally, strncpy is
27428 used by the UNAME case. Reported by Bruno Haible
27431 2008-01-17 Eric Blake <ebb9@byu.net>
27433 Convert c-strcasestr to be more efficient.
27434 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27435 (Depends-on): Add c-strcase, remove malloca, strnlen.
27436 * tests/test-c-strcasestr.c (main): Enhance test.
27437 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27439 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
27441 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27442 Use it in creating po/Makevars.
27444 2008-01-15 Simon Josefsson <simon@josefsson.org>
27446 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27447 Applications that requires it should initialize libgcrypt
27450 2008-01-16 Simon Josefsson <simon@josefsson.org>
27452 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27454 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
27456 Fix problem with getdate on mingw32 reported by Simon Josefsson
27457 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27458 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27459 tzname", when deciding whether to declare tzname.
27460 * lib/strftime.c (tzname): Likewise.
27462 2008-01-15 Bruno Haible <bruno@clisp.org>
27464 Work around a MacOS X 10.5 bug in frexpl().
27465 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27466 * doc/functions/frexpl.texi: Document the bug.
27467 Reported by Elias Pipping <pipping@gentoo.org>.
27469 2008-01-14 Eric Blake <ebb9@byu.net>
27471 Touch up previous patch.
27472 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27473 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27475 Convert strcasestr module to use Two-Way algorithm.
27476 * modules/strcasestr-simple: New module, based on the old
27477 strcasestr, but with Two-Way rather than KMP.
27478 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27479 * lib/string.in.h (rpl_strcasestr): Declare.
27480 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27482 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27483 * modules/string (Makefile.am): Support strcasestr.
27484 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27485 * modules/strcasestr-tests (Depends-on): Check for alarm.
27486 * tests/test-strcasestr.c: Augment test.
27487 * lib/str-two-way.h: Clean up stray macro.
27488 * NEWS: Document new module.
27489 * MODULES.html.sh (string handling): Likewise.
27490 * doc/functions/strcasestr.texi: New file.
27491 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
27492 here, since it is not a POSIX function.
27494 2008-01-14 Colin Watson <cjwatson@debian.org>
27495 Bruno Haible <bruno@clisp.org>
27497 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27498 works fine; if not, set REPLACE_STRSIGNAL.
27499 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27500 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27502 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27503 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27504 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27506 2008-01-14 Bruno Haible <bruno@clisp.org>
27508 * modules/strsignal (Include): Change to <string.h>.
27510 2008-01-14 Colin Watson <cjwatson@debian.org>
27512 * modules/argp (Notice): Add a notice recommending to change
27514 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27516 2008-01-13 Colin Watson <cjwatson@debian.org>
27518 * modules/strsignal-tests: New file.
27519 * tests/test-strsignal.c: New file.
27521 * lib/strsignal.c: New file, from glibc with modifications.
27522 * lib/siglist.h: New file, from glibc with modifications.
27523 * lib/string.in.h (strsignal): New declaration.
27524 * m4/strsignal.m4: New file.
27525 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27526 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27527 * modules/strsignal: New file.
27528 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27529 HAVE_DECL_STRSIGNAL.
27531 2008-01-13 Bruno Haible <bruno@clisp.org>
27533 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27534 locale encoding is not ASCII. Needed for OpenBSD 4.0.
27535 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27536 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27538 2008-01-13 Bruno Haible <bruno@clisp.org>
27540 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27541 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27542 * lib/argp.h (__attribute__): Likewise.
27543 * lib/c-stack.c (__attribute__): Likewise.
27544 * lib/error.h (__attribute__): Likewise.
27545 * lib/fts.c (__attribute__): Likewise.
27546 * lib/openat.h (__attribute__): Likewise.
27547 * lib/stdio.in.h (__attribute__): Likewise.
27548 * lib/string.in.h (__attribute__): Likewise.
27549 * lib/utimens.c (__attribute__): Likewise.
27550 * lib/vasnprintf.h (__attribute__): Likewise.
27551 * lib/xalloc.h (__attribute__): Likewise.
27552 * lib/xprintf.h (__attribute__): Likewise.
27553 * lib/xstrtol.h (__attribute__): Likewise.
27554 * lib/xvasprintf.h (__attribute__): Likewise.
27556 2008-01-12 Bruno Haible <bruno@clisp.org>
27558 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27559 * doc/glibc-headers/a.out.texi: New file.
27560 * doc/glibc-headers/aliases.texi: New file.
27561 * doc/glibc-headers/alloca.texi: New file.
27562 * doc/glibc-headers/ar.texi: New file.
27563 * doc/glibc-headers/argp.texi: New file.
27564 * doc/glibc-headers/argz.texi: New file.
27565 * doc/glibc-headers/byteswap.texi: New file.
27566 * doc/glibc-headers/crypt.texi: New file.
27567 * doc/glibc-headers/endian.texi: New file.
27568 * doc/glibc-headers/envz.texi: New file.
27569 * doc/glibc-headers/err.texi: New file.
27570 * doc/glibc-headers/error.texi: New file.
27571 * doc/glibc-headers/execinfo.texi: New file.
27572 * doc/glibc-headers/fpu_control.texi: New file.
27573 * doc/glibc-headers/fstab.texi: New file.
27574 * doc/glibc-headers/fts.texi: New file.
27575 * doc/glibc-headers/getopt.texi: New file.
27576 * doc/glibc-headers/ieee754.texi: New file.
27577 * doc/glibc-headers/ifaddrs.texi: New file.
27578 * doc/glibc-headers/libintl.texi: New file.
27579 * doc/glibc-headers/mcheck.texi: New file.
27580 * doc/glibc-headers/mntent.texi: New file.
27581 * doc/glibc-headers/obstack.texi: New file.
27582 * doc/glibc-headers/paths.texi: New file.
27583 * doc/glibc-headers/printf.texi: New file.
27584 * doc/glibc-headers/pty.texi: New file.
27585 * doc/glibc-headers/resolv.texi: New file.
27586 * doc/glibc-headers/shadow.texi: New file.
27587 * doc/glibc-headers/sysexits.texi: New file.
27588 * doc/glibc-headers/ttyent.texi: New file.
27590 2008-01-12 Jim Meyering <meyering@redhat.com>
27592 announce-gen: emit Gnulib's git-based version string.
27593 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27594 New option --gnulib-version=V, where V is expected to be
27595 the output of running git describe in the gnulib directory.
27596 (get_tool_versions): Request feedback on xdelta. I suspect it's
27597 not useful, and plan to stop publishing an xdelta file with each
27600 * build-aux/announce-gen: Also check for lzma-compressed files.
27602 2008-01-11 Bruno Haible <bruno@clisp.org>
27604 * tests/test-memmem.c (main): Increase maximum allowed time.
27605 * tests/test-strstr.c (main): Likewise.
27607 2008-01-11 Bruno Haible <bruno@clisp.org>
27609 * doc/functions/memmem.texi: Add more precisions about platforms.
27610 * doc/functions/strstr.texi: Likewise.
27612 2008-01-10 Eric Blake <ebb9@byu.net>
27614 * m4/strstr.m4: Delete cruft from copy-n-paste.
27615 Reported by Bruno Haible.
27617 2008-01-10 Bruno Haible <bruno@clisp.org>
27619 Make c-strstr rely on strstr.
27620 * lib/c-strstr.c: Don't include str-kmp.h.
27621 (c_strstr): Define in terms of strstr.
27622 * modules/c-strstr (Files): Remove lib/str-kmp.h.
27623 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27625 2008-01-10 Bruno Haible <bruno@clisp.org>
27627 * doc/gnulib.texi (String Functions in C Locale): New section.
27628 * doc/c-ctype.texi: New file.
27629 * doc/c-strcase.texi: New file.
27630 * doc/c-strcaseeq.texi: New file.
27631 * doc/c-strcasestr.texi: New file.
27632 * doc/c-strstr.texi: New file.
27633 * doc/c-strtod.texi: New file.
27634 * doc/c-strtold.texi: New file.
27636 2008-01-10 Eric Blake <ebb9@byu.net>
27638 * lib/relocatable.h: Fix a comment.
27640 2008-01-10 Eric Blake <ebb9@byu.net>
27642 Share two-way algorithm.
27643 * lib/str-two-way.h: New file, merged from...
27644 * lib/memmem.c: ...here...
27645 * lib/strstr.c: ...and here.
27646 * modules/memmem (Files): Use it.
27647 * modules/strstr (Files): Likewise.
27649 Avoid quadratic strstr implementations.
27650 * lib/strstr.c: New file.
27651 * m4/strstr.m4: Likewise.
27652 * modules/strstr: Likewise.
27653 * modules/strstr-tests: Likewise.
27654 * tests/test-strstr.c: Likewise.
27655 * lib/string.in.h (rpl_strstr): Declare.
27656 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27657 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27658 * modules/string (Makefile.am): Likewise.
27659 * MODULES.html.sh (string handling): Mention new module.
27660 * doc/functions/strstr.texi (strstr): Document the bug.
27662 2008-01-10 Bruno Haible <bruno@clisp.org>
27664 * lib/relocatable.h (relocate): State whether result is freshly
27666 * lib/relocatable.c (relocate): Return a freshly allocated string
27667 instead of a pointer to a privately held string.
27668 Reported by Sylvain Beucler <beuc@gnu.org>.
27670 2008-01-10 Colin Watson <cjwatson@debian.org>
27672 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27673 s/S_ISNLK/S_ISLNK/.
27675 2008-01-09 Bruno Haible <bruno@clisp.org>
27677 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27679 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27680 if it's only a guess.
27681 * modules/memmem: Simplify by depending on memmem-simple.
27683 2008-01-09 Bruno Haible <bruno@clisp.org>
27685 Work around OpenBSD 4.0 tdelete() bug.
27686 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27687 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27688 macros and don't redefine the enum values.
27689 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27690 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27691 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27693 2008-01-09 Bruno Haible <bruno@clisp.org>
27695 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27696 (main): Don't perform the tests if setlocale did not install a UTF-8
27697 locale. Needed on OpenBSD 4.0.
27698 * modules/wcwidth-tests (Depends-on): Add localcharset.
27700 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
27702 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27703 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27704 * NEWS: announce this.
27705 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27707 2008-01-09 Simon Josefsson <simon@josefsson.org>
27708 and Eric Blake <ebb9@byu.net>
27710 Add memmem-simple module.
27711 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27712 (gl_FUNC_MEMMEM): Separate performance from presence checks.
27713 * modules/memmem-simple: New file.
27714 * modules/memmem (Description): Tweak.
27715 * MODULES.html.sh (string handling): Mention new module.
27716 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27717 addressed by memmem-simple.
27718 * NEWS: Document the difference.
27720 2008-01-09 Eric Blake <ebb9@byu.net>
27722 Give gcc some memmem optimization hints.
27723 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27724 (strcasestr): Declare as pure.
27725 * modules/memmem (Maintainer): Claim my implementation.
27727 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27729 Support AIX 6.1 and higher.
27730 * build-aux/config.libpath: Likewise.
27731 * build-aux/config.rpath: Likewise.
27733 2008-01-08 Jim Meyering <meyering@redhat.com>
27734 Bruno Haible <bruno@clisp.org>
27736 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27737 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27738 Reported by Peter Fales in
27739 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27741 2008-01-08 Bruno Haible <bruno@clisp.org>
27743 * modules/unictype/category-of (Depends-on): Add
27744 unictype/category-none.
27745 * modules/unictype/category-and-tests (Depends-on): Add
27746 unictype/category-{L,N,Lu,Nd}.
27747 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27748 * modules/unictype/category-or-tests (Depends-on): Add
27749 unictype/category-{L,N}.
27750 * modules/unictype/category-name-tests (Depends-on): Add
27751 unictype/category-{Z,Nl}.
27752 Reported by Simon Josefsson.
27754 2008-01-08 Bruno Haible <bruno@clisp.org>
27756 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27758 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27759 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27760 Reported by Peter Miller <millerp@canb.auug.org.au>.
27762 2008-01-08 Eric Blake <ebb9@byu.net>
27764 Rewrite memmem to guarantee linear complexity without malloc.
27765 * lib/memmem.c (memmem): Use Two-Way rather than
27766 Knuth-Morris-Pratt, to allow O(1) space usage.
27767 (critical_factorization, two_way_short_needle)
27768 (two_way_long_needle): New functions.
27769 (knuth_morris_pratt): Delete.
27770 * modules/memmem (Depends-on): No longer need malloca or stdbool.
27772 * tests/test-memmem.c (main): Add tests for periodic needle and
27773 sublinear performance.
27774 * doc/functions/memmem.texi (memmem): Document other deficiencies
27775 in cygwin and older glibc.
27777 2008-01-08 Bruno Haible <bruno@clisp.org>
27779 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27782 2008-01-08 Mike Frysinger <vapier@gentoo.org>
27784 Add a configure time option: --disable-acl.
27785 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27786 AC_ARG_ENABLE(acl).
27788 2008-01-06 Simon Josefsson <simon@josefsson.org>
27790 * tests/test-localename.c: Don't include obsolete "setenv.h".
27792 * modules/localename-tests (Depends-on): Need unsetenv.
27794 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27796 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27798 2008-01-06 Colin Watson <cjwatson@debian.org>
27800 * users.txt: Add man-db.
27802 2008-01-07 Bruno Haible <bruno@clisp.org>
27804 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27805 previous section name.
27807 2008-01-07 Bruno Haible <bruno@clisp.org>
27809 * lib/progname.c (set_program_name): Don't strip off a leading
27810 "lt-" prefix outside a .libs directory.
27811 Suggested by Paul Eggert.
27813 2008-01-01 Sylvain Beucler <beuc@gnu.org>
27814 Bruno Haible <bruno@clisp.org>
27816 Improve memory cleanup in 'relocatable' module.
27817 * lib/relocatable.h (compute_curr_prefix): Change return type to
27819 * lib/relocatable.c (compute_curr_prefix): Change return type to
27820 'char *'. Free curr_installdir after use.
27821 (relocate): Free curr_prefix_better after use.
27822 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27824 2008-01-01 Bruno Haible <bruno@clisp.org>
27826 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27827 failure on older glibc systems.
27828 Reported by Peter Fales <psfales@alcatel-lucent.com>.
27830 2008-01-05 Eric Blake <ebb9@byu.net>
27832 Avoid quadratic system memmem.
27833 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27834 Reported by Ralf Wildenhues.
27836 Fix memmem test for mingw.
27837 * modules/memmem-tests (configure.ac): Check for alarm.
27838 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27840 * doc/functions/memmem.texi: New file.
27841 * doc/gnulib.texi (Function Substitutes): Add memmem.
27842 Reported by Bruno Haible.
27844 2008-01-04 Bruno Haible <bruno@clisp.org>
27846 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27847 Require gl_HEADER_STRINGS_H_DEFAULTS, not
27848 gl_HEADER_STRING_H_DEFAULTS.
27850 2008-01-04 Eric Blake <ebb9@byu.net>
27852 Shorten duration of memmem test.
27853 * tests/test-memmem.c (main): Use alarm to declare failure if test
27854 is taking too long.
27855 Reported by Ralf Wildenhues.
27857 2007-12-21 Simon Josefsson <simon@josefsson.org>
27859 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27860 string, needed by strerror.
27862 2008-01-03 Colin Watson <cjwatson@debian.org>
27863 Bruno Haible <bruno@clisp.org>
27865 * doc/gnulib-tool.texi (Localization): New section.
27867 2008-01-02 Bruno Haible <bruno@clisp.org>
27869 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27870 variables to 'unsigned char *' type.
27871 Reported by Paul Eggert.
27873 2008-01-02 Jim Meyering <jim@meyering.net>
27875 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27877 2007-12-31 Jim Meyering <jim@meyering.net>
27879 Avoid use of private FTS type name.
27880 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27882 2007-12-30 Karl Berry <karl@gnu.org>
27884 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27885 work around defect in Texinfo and/or the standalone Info browser.
27887 2007-12-30 Bruno Haible <bruno@clisp.org>
27889 Unify 5 copies of the KMP code.
27890 * lib/str-kmp.h: New file.
27891 * lib/c-strcasestr.c: Include str-kmp.h.
27892 (knuth_morris_pratt): Remove function.
27893 (c_strcasestr): Update.
27894 * lib/c-strstr.c: Include str-kmp.h.
27895 (knuth_morris_pratt): Remove function.
27896 (c_strcasestr): Update.
27897 * lib/mbscasestr.c: Include str-kmp.h.
27898 (knuth_morris_pratt_unibyte): Remove function.
27899 * lib/mbsstr.c: Include str-kmp.h.
27900 (knuth_morris_pratt_unibyte): Remove function.
27901 * lib/strcasestr.c: Include str-kmp.h.
27902 (knuth_morris_pratt): Remove function.
27903 (strcasestr): Update.
27904 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27905 * modules/c-strstr (Files): Likewise.
27906 * modules/mbscasestr (Files): Likewise.
27907 * modules/mbsstr (Files): Likewise.
27908 * modules/strcasestr (Files): Likewise.
27909 Suggested by Paul Eggert.
27911 2007-12-30 Bruno Haible <bruno@clisp.org>
27913 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27916 2007-12-30 Bruno Haible <bruno@clisp.org>
27918 * lib/xmalloca.h: Include xalloc.h.
27919 (xnmalloca): New macro.
27921 2007-12-30 Bruno Haible <bruno@clisp.org>
27923 * lib/malloca.h (nmalloca): New macro.
27924 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27925 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27926 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27927 knuth_morris_pratt_multibyte): Likewise.
27928 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27929 knuth_morris_pratt_multibyte): Likewise.
27930 * lib/memmem.c (knuth_morris_pratt): Likewise.
27931 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27933 2007-12-25 Bruno Haible <bruno@clisp.org>
27935 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27936 * lib/glob.c: Don't include openat.h.
27937 (link_exists2_p): Add back the code that deals with the
27938 !GLOB_ALTDIRFUNC case.
27939 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27940 let it do the filename concatenation.
27941 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27942 * modules/glob (Depends-on): Remove openat.
27944 2007-12-31 Bruno Haible <bruno@clisp.org>
27946 * modules/dirfd (License): Change to LGPLv2+.
27947 Approved by Jim Meyering.
27949 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
27951 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27952 when multiplying M by sizeof (size_t).
27954 2007-12-10 Martin Lambers <marlam@marlam.de>
27956 Override getpagesize on mingw.
27957 * lib/getpagesize.c: New file.
27958 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27959 * modules/getpagesize (Files): Add lib/getpagesize.c.
27960 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27961 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27962 REPLACE_GETPAGESIZE.
27963 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27965 2007-12-25 Bruno Haible <bruno@clisp.org>
27967 * modules/localcharset (Notice): New field.
27968 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27969 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27971 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
27972 Bruno Haible <bruno@clisp.org>
27974 Avoid using the syntax symbol() in formatted documentation.
27975 * MODULES.html.sh (func_module): When replacing symbol() with a
27976 hyperlink, remove the parentheses. Show an error if some remain.
27977 Recognize and render the '...' syntax.
27978 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27979 Rework. Add paragraph about GCC's inlining.
27980 * doc/alloca.texi: Likewise.
27981 * doc/error.texi: Remove parentheses from symbol reference.
27982 * doc/gnulib-intro.texi: Likewise.
27983 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27984 * modules/fnmatch (Description): Reword to say "the ... function".
27985 * modules/full-read (Description): Likewise.
27986 * modules/full-write (Description): Likewise.
27987 * modules/safe-read (Description): Likewise.
27988 * modules/safe-write (Description): Likewise.
27989 * modules/strchrnul (Description): Likewise.
27990 * modules/trim (Description): Likewise.
27991 * modules/error (Description): Remove parentheses from symbol
27993 * modules/verror (Description): Likewise.
27994 Reported by Karl Berry.
27996 2007-12-25 Bruno Haible <bruno@clisp.org>
27998 Fixup after 2007-10-16 commit.
27999 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28001 2007-12-24 Bruno Haible <bruno@clisp.org>
28003 Make --enable-relocatable work with DESTDIR.
28004 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28005 to compute installdir from destprog.
28006 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28007 also set the RELOC_DESTDIR variable.
28008 Reported by Левашев Иван <octagram@bluebottle.com>.
28010 2007-12-24 Bruno Haible <bruno@clisp.org>
28012 Fix link error due to xalloc_die().
28013 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28015 * lib/relocwrapper.c: Update comments.
28016 * build-aux/install-reloc: Remove xreadlink.c from file list.
28017 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28019 Reported by Левашев Иван <octagram@bluebottle.com>.
28021 2007-12-24 Bruno Haible <bruno@clisp.org>
28023 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28024 * lib/setenv.h: Remove file.
28025 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28027 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28028 (Depends-on): Add stdlib.
28029 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28031 (Include): Replace setenv.h with <stdlib.h>.
28032 * modules/unsetenv: New file.
28033 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28034 * lib/unsetenv.c: Include <stdlib.h> first.
28035 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28036 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28037 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28038 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28039 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28040 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28041 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28042 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28043 * doc/functions/unsetenv.texi: Update.
28044 * modules/xsetenv (Depends-on): Add unsetenv.
28045 * modules/getdate (Depends-on): Likewise.
28046 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28047 * lib/xsetenv.c: Don't include setenv.h.
28048 * lib/getdate.y: Likewise.
28049 * lib/relocwrapper.c: Likewise.
28050 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28051 (Depends-on): Add stdlib.
28052 * NEWS: Mention the changes.
28053 Reported by Левашев Иван <octagram@bluebottle.com>.
28055 2007-12-23 Bruno Haible <bruno@clisp.org>
28057 * lib/memmem.c (memmem): Use lowercase variable names. Tab
28060 2007-12-23 Bruno Haible <bruno@clisp.org>
28062 * lib/c-strcasestr.c: Add more comments.
28063 * lib/c-strstr.c: Likewise.
28064 * lib/mbscasestr.c: Likewise.
28065 * lib/mbsstr.c: Likewise.
28066 * lib/strcasestr.c: Likewise.
28067 * lib/memmem.c: Likewise.
28069 2007-12-23 Bruno Haible <bruno@clisp.org>
28071 * tests/test-memmem.c: Include <string.h> first.
28073 2007-12-22 Bruno Haible <bruno@clisp.org>
28075 * gnulib-tool (func_create_testdir): Change $auxdir while generating
28076 the contents of $testsbase.
28077 Reported by Ralf Wildenhues.
28079 2007-12-22 Bruno Haible <bruno@clisp.org>
28081 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28082 two variables local_ldadd_before, local_ldadd_last.
28084 2007-12-20 Eric Blake <ebb9@byu.net>
28086 Work around circular library issue when cross-compiling.
28087 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28088 that progname.o does not need to pull in rpl_memcmp.
28090 2007-12-19 Eric Blake <ebb9@byu.net>
28092 Fix memmem to avoid O(n^2) worst-case complexity.
28093 * lib/memmem.c (knuth_morris_pratt): New function.
28094 (memmem): Use it if first few naive iterations fail.
28095 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28096 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28097 * modules/memchr (License): Likewise.
28098 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28100 * tests/test-memmem.c: Rewrite, borrowing ideas from
28101 test-mbsstr1.c; the old version wouldn't even compile!
28102 * modules/memmem-tests: New file.
28103 * lib/string.in.h (rpl_memmem): Add declaration.
28104 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28105 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28108 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
28110 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28111 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28112 before any system include files, and undef after them all. This
28113 should fix a problem on VMS reported by John E. Malmberg in
28114 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28116 2007-12-17 Eric Blake <ebb9@byu.net>
28118 Revert addition of verify, for BSD/OS.
28119 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28120 can't handle large files, for the sake of obsolete platforms.
28121 * modules/fseeko (Depends-on): Remove verify.
28122 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28123 * doc/functions/ftello.texi (ftello): Likewise.
28124 * doc/functions/fgetpos.texi (fgetpos): Likewise.
28125 Reported by Larry Jones.
28127 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
28129 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28130 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28132 2007-12-17 Jim Meyering <meyering@redhat.com>
28134 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28135 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28136 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28137 * modules/getcwd (Depends-on): Add openat.
28138 Reported by Petr Salinger.
28140 2007-12-17 Bruno Haible <bruno@clisp.org>
28142 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28143 avoid a segmentation fault of the configure test on x86_64 systems.
28145 2007-12-15 Jim Meyering <meyering@redhat.com>
28147 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28149 2007-12-13 Eric Blake <ebb9@byu.net>
28151 Another fseek test.
28152 * tests/test-fseek.c (main): Also test ungetc handling.
28153 * tests/test-fseeko.c (main): Likewise.
28154 * modules/fseeko (Depends-on): Add verify.
28155 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28157 Reported by Larry Jones.
28159 Fix fseeko on mingw.
28160 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28163 Beef up fseek tests.
28164 * tests/test-fseek.c (main): Also test eof handling.
28165 * tests/test-fseeko.c (main): Likewise.
28166 Reported by Larry Jones.
28168 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
28170 Fix fseeko on BSD-based platforms.
28171 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28174 2007-12-12 Eric Blake <ebb9@byu.net>
28176 Allow circular dependency of separate libtests.a
28177 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28180 2007-12-11 Eric Blake <ebb9@byu.net>
28182 Fix bug with -0.0L in previous patch.
28183 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28184 * tests/test-isnan.c (main): Also test on zeroes.
28185 * tests/test-isnanf.c (main): Likewise.
28186 * tests/test-isnanl.h (main): Likewise.
28188 Detect pseudo-denormals on x86 even when cross-compiling.
28189 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28190 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28191 invalid bit patterns that happen to satisfy ==.
28193 Avoid link failures with separate libtests.a.
28194 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28195 last, to satisfy circular dependencies.
28197 2007-12-11 Eric Blake <ebb9@byu.net>
28198 and Bruno Haible <bruno@clisp.org>
28200 Fix OpenBSD 4.0 <float.h> handling of long double.
28201 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28202 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28203 * doc/headers/float.texi (float.h): Document OpenBSD bug.
28205 2007-12-11 Jim Meyering <meyering@redhat.com>
28207 * users.txt: Add libvirt.
28209 Support versions of autoconf prior to 2.59c.
28210 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28211 if it is not already defined.
28213 2007-12-09 Bruno Haible <bruno@clisp.org>
28215 Let 'gnulib-tool --import' collect sources needed for the tests in
28216 tests/ rather than in lib/.
28217 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28218 argument. If true, add rules to generate libtests.a, and put libtests.a
28219 into $(LDADD). Consider source files in subdirectories and set
28221 (func_emit_initmacro_start, func_emit_initmacro_end,
28222 func_emit_initmacro_done): Pass all arguments explicitly.
28223 (func_import): Determine two module lists main_modules,
28224 testsrelated_modules. Determine use_libtests. Determine two variables
28225 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28226 instead of just sed_transform_lib_file. Determine two variables
28227 main_files and testsrelated_files. Compute 'files' as the union of
28228 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28229 func_add_or_update. In the generated gnulib-comp.m4, collect the
28230 object files for tests/ in different variables than those for lib/.
28231 Substitute LIBTESTS_LIBDEPS.
28232 (func_create_testdir): Combine the uses_subdirs results from
28233 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28235 2007-12-09 Bruno Haible <bruno@clisp.org>
28237 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28238 the build-aux directory.
28240 2007-12-09 Bruno Haible <bruno@clisp.org>
28242 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28243 introduced on 2006-09-09.
28245 2007-12-07 Jim Meyering <meyering@redhat.com>
28247 Let these macros work also with autoconf-2.59.
28248 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
28249 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28250 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28252 2007-12-06 Jim Meyering <meyering@redhat.com>
28254 Avoid a configure-time syntax error in gl_FUNC_ACL.
28255 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28256 function in each branch, before testing the cache variable.
28258 2007-12-04 Eric Blake <ebb9@byu.net>
28260 Make scripts executable.
28261 * build-aux/config.guess: Add execute permissions.
28262 * build-aux/config.sub: Likewise.
28263 * build-aux/gendocs.sh: Likewise.
28265 Fix frexp on mingw.
28266 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28268 * doc/functions/frexp.texi (frexp): Document the bug.
28270 Make cygwin fseeko check more reliable.
28271 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28272 version numbers, rather than unrelated feature check.
28273 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28274 * doc/functions/ftello.texi (ftello): Likewise.
28275 Reported by Bruno Haible.
28277 * m4/strerror.m4: Bump version number.
28279 2007-12-03 Bruno Haible <bruno@clisp.org>
28281 * doc/functions/mprotect.texi: Mention the mingw problem.
28283 2007-12-03 Eric Blake <ebb9@byu.net>
28285 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28286 REPLACE_STRERROR is initialized before this macro.
28288 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
28290 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
28291 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28292 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
28293 put -lsec in even for programs other than 'ls'. This fixes a problem
28294 for gettext reported by Bruno Haible in
28295 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28296 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28297 Add support for Solaris 10. This isn't efficient, but should get the
28300 2007-12-03 James Youngman <jay@gnu.org>
28302 * doc/regexprops-generic.texi: change "an close-group" to "a
28303 close-group" and "illegal" to "not allowed".
28305 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28307 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28308 pr_byname.h. Needed for the rare case when the maintainer has done
28309 "make maintainer-clean" in the source directory and then attempts a
28310 build outside the source directory.
28311 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28314 2007-12-02 Martin Lambers <marlam@marlam.de>
28315 Bruno Haible <bruno@clisp.org>
28317 * lib/getpagesize.h: Remove file.
28318 * lib/unistd.in.h: Include declaration of getpagesize here.
28319 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28320 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28322 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28323 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28324 * modules/getpagesize (Files): Remove lib/getpagesize.h.
28325 (Depends-on): Add unistd.
28326 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28327 (Include): Use <unistd.h> instead of getpagesize.h.
28328 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28329 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28330 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28331 gl_GETPAGESIZE invocation, already handled by module dependency.
28332 * lib/pagealign_alloc.c: Don't include getpagesize.h.
28334 2007-12-02 Bruno Haible <bruno@clisp.org>
28336 * modules/strings-tests: New file.
28337 * tests/test-strings.c: New file.
28339 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28340 * lib/strings.in.h: New file.
28341 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28342 * m4/strings_h.m4: New file.
28343 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28344 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28345 * modules/strings: New file.
28346 * modules/string (Makefile.am): Update.
28347 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28348 Reported by Karl Berry.
28350 2007-12-01 Eric Blake <ebb9@byu.net>
28352 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28353 accomodate fix in cygwin 1.5.25.
28355 2007-12-01 Jim Meyering <meyering@redhat.com>
28357 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28358 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28359 that would inhibit utf8-optimization of a regexp containing line-
28360 or buffer-anchors, e.g., `^', `$'.
28362 2007-11-30 Bruno Haible <bruno@clisp.org>
28364 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28365 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28366 glthread_recursive_lock_init.
28367 * lib/lock.c (glthread_recursive_lock_init)
28368 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28369 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28371 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
28373 New function qset_acl, like set_acl but with syscall semantics.
28374 * lib/acl.h (qset_acl): New decl.
28375 * lib/acl.c (qset_acl): New function.
28376 (set_acl): Use new function. Use more-consistent diagnostics.
28378 2007-11-28 Jim Meyering <meyering@redhat.com>
28380 * modules/physmem (License): Change from GPL to LGPLv2+.
28382 2007-11-26 Bruno Haible <bruno@clisp.org>
28384 * lib/vasnprintf.c (decode_long_double): Don't abort if the
28385 'long double' type has excess precision.
28386 Reported by Jim Meyering in
28387 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28389 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28391 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28392 Sync from <http://gnu.org/licenses>.
28393 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28394 with license text from same location.
28395 * doc/maintain.texi, doc/standards.texi: Sync from
28396 <http://savannah.gnu.org/projects/gnustandards>.
28398 2007-11-22 Ondřej Vašík <ovasik@redhat.com>
28399 and Jim Meyering <meyering@redhat.com>
28401 Adjust getdate' grammar to accept a slightly more regular language.
28402 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28403 Before, the former was rejected.
28404 * lib/getdate.y (digits_to_date_time): New function, factored
28406 (number): ...here. Just call digits_to_date_time.
28407 (hybrid): New non-terminal to handle an <unsigned number,
28408 signed relative offset> sequence consistently.
28410 2007-11-18 Jim Meyering <meyering@redhat.com>
28412 Pull my changes from coreutils:
28413 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28414 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28415 use of $gnulib_tool_option_extras, so that it's separated from the
28416 preceding argument.
28418 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28419 * build-aux/bootstrap (cp_mark_as_generated): Create any required
28420 parent destination directories before copying a file into place.
28422 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
28424 bootstrap: work also with 4-argument variant of AC_INIT
28425 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28427 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
28429 Port test-getaddrinfo to Solaris.
28430 Problem reported by Bruno Haible in
28431 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28432 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28433 explanation of setting 'hints'.
28434 Don't reject an implementation merely because it returns EAI_SERVICE.
28435 (EAI_SERVICE): Define to 0 if not defined.
28437 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
28439 The license of gnu-make and posix-shell is now "GPLed build tool".
28440 * modules/gnu-make (License): Likewise.
28441 * modules/posix-shell (License): Likewise.
28443 New module posix-shell, for determining a POSIX shell
28444 or perhaps something that is close enough to a POSIX shell.
28445 * m4/posix-shell.m4: New file.
28446 * modules/posix-shell: New file.
28448 * MODULES.html.sh: Mention new module.
28450 New module gnu-make, for determining whether we're using GNU Make.
28451 * m4/gnu-make.m4: New file.
28452 * modules/gnu-make: New file.
28453 * MODULES.html.sh: Mention new module.
28455 2007-11-14 Jim Meyering <meyering@redhat.com>
28457 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28458 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28459 use this macro to create a function _definition_.
28460 Remove useless "#undef ARGMATCH_DIE".
28462 2007-11-14 Bruno Haible <bruno@clisp.org>
28464 * lib/config.charset: Update for OpenBSD 4.1.
28465 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28467 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
28469 Document 64-bit #if problems in stdint.texi.
28470 * doc/headers/stdint.texi (stdint.h): Mention problems with
28471 64-bit-#if, and how to work around them.
28473 Don't insist on 'long long int' support in the preprocessor. It
28474 breaks too many things. For example, PRIdMAX still uses a 'long
28475 long int' format with the latest Sun compiler, even though
28476 HAVE_LONG_LONG_INT isn't defined due to that compiler's
28477 preprocessor problem. This causes the latest coreutils to dump
28478 core on Solaris 10 sparc with the Sun C compiler.
28479 Instead, fix the 2007-10-16 problem in a different way, by evaluating
28480 the troublesome expressions at configure-time, not at #if-time.
28481 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28483 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28484 compile-time C checks, done at 'configure'-time.
28485 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28486 * modules/inttypes (Makefile): Substitute the new symbols that
28487 gl_INTTYPES_H now generates.
28488 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28490 2007-11-12 Bruno Haible <bruno@clisp.org>
28492 Tests for Unicode character classification functions.
28494 * modules/unictype/bidicategory-byname-tests: New file.
28495 * modules/unictype/bidicategory-name-tests: New file.
28496 * modules/unictype/bidicategory-of-tests: New file.
28497 * modules/unictype/bidicategory-test-tests: New file.
28498 * modules/unictype/block-list-tests: New file.
28499 * modules/unictype/block-of-tests: New file.
28500 * modules/unictype/block-test-tests: New file.
28501 * modules/unictype/category-C-tests: New file.
28502 * modules/unictype/category-Cc-tests: New file.
28503 * modules/unictype/category-Cf-tests: New file.
28504 * modules/unictype/category-Cn-tests: New file.
28505 * modules/unictype/category-Co-tests: New file.
28506 * modules/unictype/category-Cs-tests: New file.
28507 * modules/unictype/category-L-tests: New file.
28508 * modules/unictype/category-Ll-tests: New file.
28509 * modules/unictype/category-Lm-tests: New file.
28510 * modules/unictype/category-Lo-tests: New file.
28511 * modules/unictype/category-Lt-tests: New file.
28512 * modules/unictype/category-Lu-tests: New file.
28513 * modules/unictype/category-M-tests: New file.
28514 * modules/unictype/category-Mc-tests: New file.
28515 * modules/unictype/category-Me-tests: New file.
28516 * modules/unictype/category-Mn-tests: New file.
28517 * modules/unictype/category-N-tests: New file.
28518 * modules/unictype/category-Nd-tests: New file.
28519 * modules/unictype/category-Nl-tests: New file.
28520 * modules/unictype/category-No-tests: New file.
28521 * modules/unictype/category-P-tests: New file.
28522 * modules/unictype/category-Pc-tests: New file.
28523 * modules/unictype/category-Pd-tests: New file.
28524 * modules/unictype/category-Pe-tests: New file.
28525 * modules/unictype/category-Pf-tests: New file.
28526 * modules/unictype/category-Pi-tests: New file.
28527 * modules/unictype/category-Po-tests: New file.
28528 * modules/unictype/category-Ps-tests: New file.
28529 * modules/unictype/category-S-tests: New file.
28530 * modules/unictype/category-Sc-tests: New file.
28531 * modules/unictype/category-Sk-tests: New file.
28532 * modules/unictype/category-Sm-tests: New file.
28533 * modules/unictype/category-So-tests: New file.
28534 * modules/unictype/category-Z-tests: New file.
28535 * modules/unictype/category-Zl-tests: New file.
28536 * modules/unictype/category-Zp-tests: New file.
28537 * modules/unictype/category-Zs-tests: New file.
28538 * modules/unictype/category-and-not-tests: New file.
28539 * modules/unictype/category-and-tests: New file.
28540 * modules/unictype/category-byname-tests: New file.
28541 * modules/unictype/category-name-tests: New file.
28542 * modules/unictype/category-none-tests: New file.
28543 * modules/unictype/category-of-tests: New file.
28544 * modules/unictype/category-or-tests: New file.
28545 * modules/unictype/category-test-withtable-tests: New file.
28546 * modules/unictype/combining-class-tests: New file.
28547 * modules/unictype/ctype-alnum-tests: New file.
28548 * modules/unictype/ctype-alpha-tests: New file.
28549 * modules/unictype/ctype-blank-tests: New file.
28550 * modules/unictype/ctype-cntrl-tests: New file.
28551 * modules/unictype/ctype-digit-tests: New file.
28552 * modules/unictype/ctype-graph-tests: New file.
28553 * modules/unictype/ctype-lower-tests: New file.
28554 * modules/unictype/ctype-print-tests: New file.
28555 * modules/unictype/ctype-punct-tests: New file.
28556 * modules/unictype/ctype-space-tests: New file.
28557 * modules/unictype/ctype-upper-tests: New file.
28558 * modules/unictype/ctype-xdigit-tests: New file.
28559 * modules/unictype/decimal-digit-tests: New file.
28560 * modules/unictype/digit-tests: New file.
28561 * modules/unictype/mirror-tests: New file.
28562 * modules/unictype/numeric-tests: New file.
28563 * modules/unictype/property-alphabetic-tests: New file.
28564 * modules/unictype/property-ascii-hex-digit-tests: New file.
28565 * modules/unictype/property-bidi-arabic-digit-tests: New file.
28566 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28567 * modules/unictype/property-bidi-block-separator-tests: New file.
28568 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28569 * modules/unictype/property-bidi-common-separator-tests: New file.
28570 * modules/unictype/property-bidi-control-tests: New file.
28571 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28572 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28573 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28574 * modules/unictype/property-bidi-european-digit-tests: New file.
28575 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28576 * modules/unictype/property-bidi-left-to-right-tests: New file.
28577 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28578 * modules/unictype/property-bidi-other-neutral-tests: New file.
28579 * modules/unictype/property-bidi-pdf-tests: New file.
28580 * modules/unictype/property-bidi-segment-separator-tests: New file.
28581 * modules/unictype/property-bidi-whitespace-tests: New file.
28582 * modules/unictype/property-byname-tests: New file.
28583 * modules/unictype/property-combining-tests: New file.
28584 * modules/unictype/property-composite-tests: New file.
28585 * modules/unictype/property-currency-symbol-tests: New file.
28586 * modules/unictype/property-dash-tests: New file.
28587 * modules/unictype/property-decimal-digit-tests: New file.
28588 * modules/unictype/property-default-ignorable-code-point-tests: New file.
28589 * modules/unictype/property-deprecated-tests: New file.
28590 * modules/unictype/property-diacritic-tests: New file.
28591 * modules/unictype/property-extender-tests: New file.
28592 * modules/unictype/property-format-control-tests: New file.
28593 * modules/unictype/property-grapheme-base-tests: New file.
28594 * modules/unictype/property-grapheme-extend-tests: New file.
28595 * modules/unictype/property-grapheme-link-tests: New file.
28596 * modules/unictype/property-hex-digit-tests: New file.
28597 * modules/unictype/property-hyphen-tests: New file.
28598 * modules/unictype/property-id-continue-tests: New file.
28599 * modules/unictype/property-id-start-tests: New file.
28600 * modules/unictype/property-ideographic-tests: New file.
28601 * modules/unictype/property-ids-binary-operator-tests: New file.
28602 * modules/unictype/property-ids-trinary-operator-tests: New file.
28603 * modules/unictype/property-ignorable-control-tests: New file.
28604 * modules/unictype/property-iso-control-tests: New file.
28605 * modules/unictype/property-join-control-tests: New file.
28606 * modules/unictype/property-left-of-pair-tests: New file.
28607 * modules/unictype/property-line-separator-tests: New file.
28608 * modules/unictype/property-logical-order-exception-tests: New file.
28609 * modules/unictype/property-lowercase-tests: New file.
28610 * modules/unictype/property-math-tests: New file.
28611 * modules/unictype/property-non-break-tests: New file.
28612 * modules/unictype/property-not-a-character-tests: New file.
28613 * modules/unictype/property-numeric-tests: New file.
28614 * modules/unictype/property-other-alphabetic-tests: New file.
28615 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28616 * modules/unictype/property-other-grapheme-extend-tests: New file.
28617 * modules/unictype/property-other-id-continue-tests: New file.
28618 * modules/unictype/property-other-id-start-tests: New file.
28619 * modules/unictype/property-other-lowercase-tests: New file.
28620 * modules/unictype/property-other-math-tests: New file.
28621 * modules/unictype/property-other-uppercase-tests: New file.
28622 * modules/unictype/property-paired-punctuation-tests: New file.
28623 * modules/unictype/property-paragraph-separator-tests: New file.
28624 * modules/unictype/property-pattern-syntax-tests: New file.
28625 * modules/unictype/property-pattern-white-space-tests: New file.
28626 * modules/unictype/property-private-use-tests: New file.
28627 * modules/unictype/property-punctuation-tests: New file.
28628 * modules/unictype/property-quotation-mark-tests: New file.
28629 * modules/unictype/property-radical-tests: New file.
28630 * modules/unictype/property-sentence-terminal-tests: New file.
28631 * modules/unictype/property-soft-dotted-tests: New file.
28632 * modules/unictype/property-space-tests: New file.
28633 * modules/unictype/property-terminal-punctuation-tests: New file.
28634 * modules/unictype/property-test-tests: New file.
28635 * modules/unictype/property-titlecase-tests: New file.
28636 * modules/unictype/property-unassigned-code-value-tests: New file.
28637 * modules/unictype/property-unified-ideograph-tests: New file.
28638 * modules/unictype/property-uppercase-tests: New file.
28639 * modules/unictype/property-variation-selector-tests: New file.
28640 * modules/unictype/property-white-space-tests: New file.
28641 * modules/unictype/property-xid-continue-tests: New file.
28642 * modules/unictype/property-xid-start-tests: New file.
28643 * modules/unictype/property-zero-width-tests: New file.
28644 * modules/unictype/scripts-tests: New file.
28645 * modules/unictype/syntax-c-ident-tests: New file.
28646 * modules/unictype/syntax-c-whitespace-tests: New file.
28647 * modules/unictype/syntax-java-ident-tests: New file.
28648 * modules/unictype/syntax-java-whitespace-tests: New file.
28649 * tests/unictype/test-bidi_byname.c: New file.
28650 * tests/unictype/test-bidi_name.c: New file.
28651 * tests/unictype/test-bidi_of.c: New file.
28652 * tests/unictype/test-bidi_test.c: New file.
28653 * tests/unictype/test-block_list.c: New file.
28654 * tests/unictype/test-block_of.c: New file.
28655 * tests/unictype/test-block_test.c: New file.
28656 * tests/unictype/test-categ_and.c: New file.
28657 * tests/unictype/test-categ_and_not.c: New file.
28658 * tests/unictype/test-categ_byname.c: New file.
28659 * tests/unictype/test-categ_name.c: New file.
28660 * tests/unictype/test-categ_none.c: New file.
28661 * tests/unictype/test-categ_of.c: New file.
28662 * tests/unictype/test-categ_or.c: New file.
28663 * tests/unictype/test-categ_test_withtable.c: New file.
28664 * tests/unictype/test-combining.c: New file.
28665 * tests/unictype/test-decdigit.c: New file.
28666 * tests/unictype/test-digit.c: New file.
28667 * tests/unictype/test-mirror.c: New file.
28668 * tests/unictype/test-numeric.c: New file.
28669 * tests/unictype/test-pr_byname.c: New file.
28670 * tests/unictype/test-pr_test.c: New file.
28671 * tests/unictype/test-predicate-part1.h: New file.
28672 * tests/unictype/test-predicate-part2.h: New file.
28673 * tests/unictype/test-scripts.c: New file.
28674 * tests/unictype/test-sy_c_ident.c: New file.
28675 * tests/unictype/test-sy_java_ident.c: New file.
28677 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28679 * tests/unictype/test-categ_Cc.c: Likewise.
28680 * tests/unictype/test-categ_Cf.c: Likewise.
28681 * tests/unictype/test-categ_Cn.c: Likewise.
28682 * tests/unictype/test-categ_Co.c: Likewise.
28683 * tests/unictype/test-categ_Cs.c: Likewise.
28684 * tests/unictype/test-categ_L.c: Likewise.
28685 * tests/unictype/test-categ_Ll.c: Likewise.
28686 * tests/unictype/test-categ_Lm.c: Likewise.
28687 * tests/unictype/test-categ_Lo.c: Likewise.
28688 * tests/unictype/test-categ_Lt.c: Likewise.
28689 * tests/unictype/test-categ_Lu.c: Likewise.
28690 * tests/unictype/test-categ_M.c: Likewise.
28691 * tests/unictype/test-categ_Mc.c: Likewise.
28692 * tests/unictype/test-categ_Me.c: Likewise.
28693 * tests/unictype/test-categ_Mn.c: Likewise.
28694 * tests/unictype/test-categ_N.c: Likewise.
28695 * tests/unictype/test-categ_Nd.c: Likewise.
28696 * tests/unictype/test-categ_Nl.c: Likewise.
28697 * tests/unictype/test-categ_No.c: Likewise.
28698 * tests/unictype/test-categ_P.c: Likewise.
28699 * tests/unictype/test-categ_Pc.c: Likewise.
28700 * tests/unictype/test-categ_Pd.c: Likewise.
28701 * tests/unictype/test-categ_Pe.c: Likewise.
28702 * tests/unictype/test-categ_Pf.c: Likewise.
28703 * tests/unictype/test-categ_Pi.c: Likewise.
28704 * tests/unictype/test-categ_Po.c: Likewise.
28705 * tests/unictype/test-categ_Ps.c: Likewise.
28706 * tests/unictype/test-categ_S.c: Likewise.
28707 * tests/unictype/test-categ_Sc.c: Likewise.
28708 * tests/unictype/test-categ_Sk.c: Likewise.
28709 * tests/unictype/test-categ_Sm.c: Likewise.
28710 * tests/unictype/test-categ_So.c: Likewise.
28711 * tests/unictype/test-categ_Z.c: Likewise.
28712 * tests/unictype/test-categ_Zl.c: Likewise.
28713 * tests/unictype/test-categ_Zp.c: Likewise.
28714 * tests/unictype/test-categ_Zs.c: Likewise.
28715 * tests/unictype/test-ctype_alnum.c: Likewise.
28716 * tests/unictype/test-ctype_alpha.c: Likewise.
28717 * tests/unictype/test-ctype_blank.c: Likewise.
28718 * tests/unictype/test-ctype_cntrl.c: Likewise.
28719 * tests/unictype/test-ctype_digit.c: Likewise.
28720 * tests/unictype/test-ctype_graph.c: Likewise.
28721 * tests/unictype/test-ctype_lower.c: Likewise.
28722 * tests/unictype/test-ctype_print.c: Likewise.
28723 * tests/unictype/test-ctype_punct.c: Likewise.
28724 * tests/unictype/test-ctype_space.c: Likewise.
28725 * tests/unictype/test-ctype_upper.c: Likewise.
28726 * tests/unictype/test-ctype_xdigit.c: Likewise.
28727 * tests/unictype/test-decdigit.h: Likewise.
28728 * tests/unictype/test-digit.h: Likewise.
28729 * tests/unictype/test-numeric.h: Likewise.
28730 * tests/unictype/test-pr_alphabetic.c: Likewise.
28731 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28732 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28733 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28734 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28735 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28736 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28737 * tests/unictype/test-pr_bidi_control.c: Likewise.
28738 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28739 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28740 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28741 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28742 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28743 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28744 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28745 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28746 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28747 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28748 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28749 * tests/unictype/test-pr_combining.c: Likewise.
28750 * tests/unictype/test-pr_composite.c: Likewise.
28751 * tests/unictype/test-pr_currency_symbol.c: Likewise.
28752 * tests/unictype/test-pr_dash.c: Likewise.
28753 * tests/unictype/test-pr_decimal_digit.c: Likewise.
28754 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28755 * tests/unictype/test-pr_deprecated.c: Likewise.
28756 * tests/unictype/test-pr_diacritic.c: Likewise.
28757 * tests/unictype/test-pr_extender.c: Likewise.
28758 * tests/unictype/test-pr_format_control.c: Likewise.
28759 * tests/unictype/test-pr_grapheme_base.c: Likewise.
28760 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28761 * tests/unictype/test-pr_grapheme_link.c: Likewise.
28762 * tests/unictype/test-pr_hex_digit.c: Likewise.
28763 * tests/unictype/test-pr_hyphen.c: Likewise.
28764 * tests/unictype/test-pr_id_continue.c: Likewise.
28765 * tests/unictype/test-pr_id_start.c: Likewise.
28766 * tests/unictype/test-pr_ideographic.c: Likewise.
28767 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28768 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28769 * tests/unictype/test-pr_ignorable_control.c: Likewise.
28770 * tests/unictype/test-pr_iso_control.c: Likewise.
28771 * tests/unictype/test-pr_join_control.c: Likewise.
28772 * tests/unictype/test-pr_left_of_pair.c: Likewise.
28773 * tests/unictype/test-pr_line_separator.c: Likewise.
28774 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28775 * tests/unictype/test-pr_lowercase.c: Likewise.
28776 * tests/unictype/test-pr_math.c: Likewise.
28777 * tests/unictype/test-pr_non_break.c: Likewise.
28778 * tests/unictype/test-pr_not_a_character.c: Likewise.
28779 * tests/unictype/test-pr_numeric.c: Likewise.
28780 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28781 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28782 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28783 * tests/unictype/test-pr_other_id_continue.c: Likewise.
28784 * tests/unictype/test-pr_other_id_start.c: Likewise.
28785 * tests/unictype/test-pr_other_lowercase.c: Likewise.
28786 * tests/unictype/test-pr_other_math.c: Likewise.
28787 * tests/unictype/test-pr_other_uppercase.c: Likewise.
28788 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28789 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28790 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28791 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28792 * tests/unictype/test-pr_private_use.c: Likewise.
28793 * tests/unictype/test-pr_punctuation.c: Likewise.
28794 * tests/unictype/test-pr_quotation_mark.c: Likewise.
28795 * tests/unictype/test-pr_radical.c: Likewise.
28796 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28797 * tests/unictype/test-pr_soft_dotted.c: Likewise.
28798 * tests/unictype/test-pr_space.c: Likewise.
28799 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28800 * tests/unictype/test-pr_titlecase.c: Likewise.
28801 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28802 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28803 * tests/unictype/test-pr_uppercase.c: Likewise.
28804 * tests/unictype/test-pr_variation_selector.c: Likewise.
28805 * tests/unictype/test-pr_white_space.c: Likewise.
28806 * tests/unictype/test-pr_xid_continue.c: Likewise.
28807 * tests/unictype/test-pr_xid_start.c: Likewise.
28808 * tests/unictype/test-pr_zero_width.c: Likewise.
28809 * tests/unictype/test-sy_c_whitespace.c: Likewise.
28810 * tests/unictype/test-sy_java_whitespace.c: Likewise.
28812 2007-11-12 Bruno Haible <bruno@clisp.org>
28814 Unicode character classification functions.
28815 * lib/unictype.h: New file.
28816 * modules/unictype/base: New file.
28817 * modules/unictype/category-L: New file.
28818 * modules/unictype/category-Lu: New file.
28819 * modules/unictype/category-Ll: New file.
28820 * modules/unictype/category-Lt: New file.
28821 * modules/unictype/category-Lm: New file.
28822 * modules/unictype/category-Lo: New file.
28823 * modules/unictype/category-M: New file.
28824 * modules/unictype/category-Mn: New file.
28825 * modules/unictype/category-Mc: New file.
28826 * modules/unictype/category-Me: New file.
28827 * modules/unictype/category-N: New file.
28828 * modules/unictype/category-Nd: New file.
28829 * modules/unictype/category-Nl: New file.
28830 * modules/unictype/category-No: New file.
28831 * modules/unictype/category-P: New file.
28832 * modules/unictype/category-Pc: New file.
28833 * modules/unictype/category-Pd: New file.
28834 * modules/unictype/category-Ps: New file.
28835 * modules/unictype/category-Pe: New file.
28836 * modules/unictype/category-Pi: New file.
28837 * modules/unictype/category-Pf: New file.
28838 * modules/unictype/category-Po: New file.
28839 * modules/unictype/category-S: New file.
28840 * modules/unictype/category-Sm: New file.
28841 * modules/unictype/category-Sc: New file.
28842 * modules/unictype/category-Sk: New file.
28843 * modules/unictype/category-So: New file.
28844 * modules/unictype/category-Z: New file.
28845 * modules/unictype/category-Zs: New file.
28846 * modules/unictype/category-Zl: New file.
28847 * modules/unictype/category-Zp: New file.
28848 * modules/unictype/category-C: New file.
28849 * modules/unictype/category-Cc: New file.
28850 * modules/unictype/category-Cf: New file.
28851 * modules/unictype/category-Cs: New file.
28852 * modules/unictype/category-Co: New file.
28853 * modules/unictype/category-Cn: New file.
28854 * modules/unictype/category-or: New file.
28855 * modules/unictype/category-of: New file.
28856 * modules/unictype/category-test: New file.
28857 * modules/unictype/category-test-withtable: New file.
28858 * modules/unictype/category-byname: New file.
28859 * modules/unictype/category-none: New file.
28860 * modules/unictype/category-and: New file.
28861 * modules/unictype/category-and-not: New file.
28862 * modules/unictype/category-name: New file.
28863 * modules/unictype/combining-class: New file.
28864 * modules/unictype/category-all: New file.
28865 * modules/unictype/bidicategory-all: New file.
28866 * modules/unictype/bidicategory-byname: New file.
28867 * modules/unictype/bidicategory-name: New file.
28868 * modules/unictype/bidicategory-of: New file.
28869 * modules/unictype/bidicategory-test: New file.
28870 * modules/unictype/decimal-digit: New file.
28871 * modules/unictype/digit: New file.
28872 * modules/unictype/numeric: New file.
28873 * modules/unictype/mirror: New file.
28874 * modules/unictype/property-white-space: New file.
28875 * modules/unictype/property-alphabetic: New file.
28876 * modules/unictype/property-other-alphabetic: New file.
28877 * modules/unictype/property-not-a-character: New file.
28878 * modules/unictype/property-default-ignorable-code-point: New file.
28879 * modules/unictype/property-other-default-ignorable-code-point: New
28881 * modules/unictype/property-deprecated: New file.
28882 * modules/unictype/property-logical-order-exception: New file.
28883 * modules/unictype/property-variation-selector: New file.
28884 * modules/unictype/property-private-use: New file.
28885 * modules/unictype/property-unassigned-code-value: New file.
28886 * modules/unictype/property-uppercase: New file.
28887 * modules/unictype/property-other-uppercase: New file.
28888 * modules/unictype/property-lowercase: New file.
28889 * modules/unictype/property-other-lowercase: New file.
28890 * modules/unictype/property-titlecase: New file.
28891 * modules/unictype/property-soft-dotted: New file.
28892 * modules/unictype/property-id-start: New file.
28893 * modules/unictype/property-other-id-start: New file.
28894 * modules/unictype/property-id-continue: New file.
28895 * modules/unictype/property-other-id-continue: New file.
28896 * modules/unictype/property-xid-start: New file.
28897 * modules/unictype/property-xid-continue: New file.
28898 * modules/unictype/property-pattern-white-space: New file.
28899 * modules/unictype/property-pattern-syntax: New file.
28900 * modules/unictype/property-join-control: New file.
28901 * modules/unictype/property-grapheme-base: New file.
28902 * modules/unictype/property-grapheme-extend: New file.
28903 * modules/unictype/property-other-grapheme-extend: New file.
28904 * modules/unictype/property-grapheme-link: New file.
28905 * modules/unictype/property-bidi-control: New file.
28906 * modules/unictype/property-bidi-left-to-right: New file.
28907 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28908 * modules/unictype/property-bidi-arabic-right-to-left: New file.
28909 * modules/unictype/property-bidi-european-digit: New file.
28910 * modules/unictype/property-bidi-eur-num-separator: New file.
28911 * modules/unictype/property-bidi-eur-num-terminator: New file.
28912 * modules/unictype/property-bidi-arabic-digit: New file.
28913 * modules/unictype/property-bidi-common-separator: New file.
28914 * modules/unictype/property-bidi-block-separator: New file.
28915 * modules/unictype/property-bidi-segment-separator: New file.
28916 * modules/unictype/property-bidi-whitespace: New file.
28917 * modules/unictype/property-bidi-non-spacing-mark: New file.
28918 * modules/unictype/property-bidi-boundary-neutral: New file.
28919 * modules/unictype/property-bidi-pdf: New file.
28920 * modules/unictype/property-bidi-embedding-or-override: New file.
28921 * modules/unictype/property-bidi-other-neutral: New file.
28922 * modules/unictype/property-hex-digit: New file.
28923 * modules/unictype/property-ascii-hex-digit: New file.
28924 * modules/unictype/property-ideographic: New file.
28925 * modules/unictype/property-unified-ideograph: New file.
28926 * modules/unictype/property-radical: New file.
28927 * modules/unictype/property-ids-binary-operator: New file.
28928 * modules/unictype/property-ids-trinary-operator: New file.
28929 * modules/unictype/property-zero-width: New file.
28930 * modules/unictype/property-space: New file.
28931 * modules/unictype/property-non-break: New file.
28932 * modules/unictype/property-iso-control: New file.
28933 * modules/unictype/property-format-control: New file.
28934 * modules/unictype/property-dash: New file.
28935 * modules/unictype/property-hyphen: New file.
28936 * modules/unictype/property-punctuation: New file.
28937 * modules/unictype/property-line-separator: New file.
28938 * modules/unictype/property-paragraph-separator: New file.
28939 * modules/unictype/property-quotation-mark: New file.
28940 * modules/unictype/property-sentence-terminal: New file.
28941 * modules/unictype/property-terminal-punctuation: New file.
28942 * modules/unictype/property-currency-symbol: New file.
28943 * modules/unictype/property-math: New file.
28944 * modules/unictype/property-other-math: New file.
28945 * modules/unictype/property-paired-punctuation: New file.
28946 * modules/unictype/property-left-of-pair: New file.
28947 * modules/unictype/property-combining: New file.
28948 * modules/unictype/property-composite: New file.
28949 * modules/unictype/property-decimal-digit: New file.
28950 * modules/unictype/property-numeric: New file.
28951 * modules/unictype/property-diacritic: New file.
28952 * modules/unictype/property-extender: New file.
28953 * modules/unictype/property-ignorable-control: New file.
28954 * modules/unictype/property-test: New file.
28955 * modules/unictype/property-byname: New file.
28956 * modules/unictype/property-all: New file.
28957 * modules/unictype/scripts: New file.
28958 * modules/unictype/scripts-all: New file.
28959 * modules/unictype/block-of: New file.
28960 * modules/unictype/block-test: New file.
28961 * modules/unictype/block-list: New file.
28962 * modules/unictype/block-all: New file.
28963 * modules/unictype/syntax-c-whitespace: New file.
28964 * modules/unictype/syntax-java-whitespace: New file.
28965 * modules/unictype/syntax-c-ident: New file.
28966 * modules/unictype/syntax-java-ident: New file.
28967 * modules/unictype/ctype-alnum: New file.
28968 * modules/unictype/ctype-alpha: New file.
28969 * modules/unictype/ctype-cntrl: New file.
28970 * modules/unictype/ctype-digit: New file.
28971 * modules/unictype/ctype-graph: New file.
28972 * modules/unictype/ctype-lower: New file.
28973 * modules/unictype/ctype-print: New file.
28974 * modules/unictype/ctype-punct: New file.
28975 * modules/unictype/ctype-space: New file.
28976 * modules/unictype/ctype-upper: New file.
28977 * modules/unictype/ctype-xdigit: New file.
28978 * modules/unictype/ctype-blank: New file.
28979 * lib/unictype/bidi_byname.c: New file.
28980 * lib/unictype/bidi_name.c: New file.
28981 * lib/unictype/bidi_of.c: New file.
28982 * lib/unictype/bidi_test.c: New file.
28983 * lib/unictype/bitmap.h: New file.
28984 * lib/unictype/block_test.c: New file.
28985 * lib/unictype/blocks.c: New file.
28986 * lib/unictype/categ_C.c: New file.
28987 * lib/unictype/categ_Cc.c: New file.
28988 * lib/unictype/categ_Cf.c: New file.
28989 * lib/unictype/categ_Cn.c: New file.
28990 * lib/unictype/categ_Co.c: New file.
28991 * lib/unictype/categ_Cs.c: New file.
28992 * lib/unictype/categ_L.c: New file.
28993 * lib/unictype/categ_Ll.c: New file.
28994 * lib/unictype/categ_Lm.c: New file.
28995 * lib/unictype/categ_Lo.c: New file.
28996 * lib/unictype/categ_Lt.c: New file.
28997 * lib/unictype/categ_Lu.c: New file.
28998 * lib/unictype/categ_M.c: New file.
28999 * lib/unictype/categ_Mc.c: New file.
29000 * lib/unictype/categ_Me.c: New file.
29001 * lib/unictype/categ_Mn.c: New file.
29002 * lib/unictype/categ_N.c: New file.
29003 * lib/unictype/categ_Nd.c: New file.
29004 * lib/unictype/categ_Nl.c: New file.
29005 * lib/unictype/categ_No.c: New file.
29006 * lib/unictype/categ_P.c: New file.
29007 * lib/unictype/categ_Pc.c: New file.
29008 * lib/unictype/categ_Pd.c: New file.
29009 * lib/unictype/categ_Pe.c: New file.
29010 * lib/unictype/categ_Pf.c: New file.
29011 * lib/unictype/categ_Pi.c: New file.
29012 * lib/unictype/categ_Po.c: New file.
29013 * lib/unictype/categ_Ps.c: New file.
29014 * lib/unictype/categ_S.c: New file.
29015 * lib/unictype/categ_Sc.c: New file.
29016 * lib/unictype/categ_Sk.c: New file.
29017 * lib/unictype/categ_Sm.c: New file.
29018 * lib/unictype/categ_So.c: New file.
29019 * lib/unictype/categ_Z.c: New file.
29020 * lib/unictype/categ_Zl.c: New file.
29021 * lib/unictype/categ_Zp.c: New file.
29022 * lib/unictype/categ_Zs.c: New file.
29023 * lib/unictype/categ_and.c: New file.
29024 * lib/unictype/categ_and_not.c: New file.
29025 * lib/unictype/categ_byname.c: New file.
29026 * lib/unictype/categ_name.c: New file.
29027 * lib/unictype/categ_none.c: New file.
29028 * lib/unictype/categ_of.c: New file.
29029 * lib/unictype/categ_or.c: New file.
29030 * lib/unictype/categ_test.c: New file.
29031 * lib/unictype/combining.c: New file.
29032 * lib/unictype/ctype_alnum.c: New file.
29033 * lib/unictype/ctype_alpha.c: New file.
29034 * lib/unictype/ctype_blank.c: New file.
29035 * lib/unictype/ctype_cntrl.c: New file.
29036 * lib/unictype/ctype_digit.c: New file.
29037 * lib/unictype/ctype_graph.c: New file.
29038 * lib/unictype/ctype_lower.c: New file.
29039 * lib/unictype/ctype_print.c: New file.
29040 * lib/unictype/ctype_punct.c: New file.
29041 * lib/unictype/ctype_space.c: New file.
29042 * lib/unictype/ctype_upper.c: New file.
29043 * lib/unictype/ctype_xdigit.c: New file.
29044 * lib/unictype/decdigit.c: New file.
29045 * lib/unictype/digit.c: New file.
29046 * lib/unictype/identsyntaxmap.h: New file.
29047 * lib/unictype/mirror.c: New file.
29048 * lib/unictype/numeric.c: New file.
29049 * lib/unictype/pr_alphabetic.c: New file.
29050 * lib/unictype/pr_ascii_hex_digit.c: New file.
29051 * lib/unictype/pr_bidi_arabic_digit.c: New file.
29052 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29053 * lib/unictype/pr_bidi_block_separator.c: New file.
29054 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29055 * lib/unictype/pr_bidi_common_separator.c: New file.
29056 * lib/unictype/pr_bidi_control.c: New file.
29057 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29058 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29059 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29060 * lib/unictype/pr_bidi_european_digit.c: New file.
29061 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29062 * lib/unictype/pr_bidi_left_to_right.c: New file.
29063 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29064 * lib/unictype/pr_bidi_other_neutral.c: New file.
29065 * lib/unictype/pr_bidi_pdf.c: New file.
29066 * lib/unictype/pr_bidi_segment_separator.c: New file.
29067 * lib/unictype/pr_bidi_whitespace.c: New file.
29068 * lib/unictype/pr_byname.c: New file.
29069 * lib/unictype/pr_byname.gperf: New file.
29070 * lib/unictype/pr_combining.c: New file.
29071 * lib/unictype/pr_composite.c: New file.
29072 * lib/unictype/pr_currency_symbol.c: New file.
29073 * lib/unictype/pr_dash.c: New file.
29074 * lib/unictype/pr_decimal_digit.c: New file.
29075 * lib/unictype/pr_default_ignorable_code_point.c: New file.
29076 * lib/unictype/pr_deprecated.c: New file.
29077 * lib/unictype/pr_diacritic.c: New file.
29078 * lib/unictype/pr_extender.c: New file.
29079 * lib/unictype/pr_format_control.c: New file.
29080 * lib/unictype/pr_grapheme_base.c: New file.
29081 * lib/unictype/pr_grapheme_extend.c: New file.
29082 * lib/unictype/pr_grapheme_link.c: New file.
29083 * lib/unictype/pr_hex_digit.c: New file.
29084 * lib/unictype/pr_hyphen.c: New file.
29085 * lib/unictype/pr_id_continue.c: New file.
29086 * lib/unictype/pr_id_start.c: New file.
29087 * lib/unictype/pr_ideographic.c: New file.
29088 * lib/unictype/pr_ids_binary_operator.c: New file.
29089 * lib/unictype/pr_ids_trinary_operator.c: New file.
29090 * lib/unictype/pr_ignorable_control.c: New file.
29091 * lib/unictype/pr_iso_control.c: New file.
29092 * lib/unictype/pr_join_control.c: New file.
29093 * lib/unictype/pr_left_of_pair.c: New file.
29094 * lib/unictype/pr_line_separator.c: New file.
29095 * lib/unictype/pr_logical_order_exception.c: New file.
29096 * lib/unictype/pr_lowercase.c: New file.
29097 * lib/unictype/pr_math.c: New file.
29098 * lib/unictype/pr_non_break.c: New file.
29099 * lib/unictype/pr_not_a_character.c: New file.
29100 * lib/unictype/pr_numeric.c: New file.
29101 * lib/unictype/pr_other_alphabetic.c: New file.
29102 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29103 * lib/unictype/pr_other_grapheme_extend.c: New file.
29104 * lib/unictype/pr_other_id_continue.c: New file.
29105 * lib/unictype/pr_other_id_start.c: New file.
29106 * lib/unictype/pr_other_lowercase.c: New file.
29107 * lib/unictype/pr_other_math.c: New file.
29108 * lib/unictype/pr_other_uppercase.c: New file.
29109 * lib/unictype/pr_paired_punctuation.c: New file.
29110 * lib/unictype/pr_paragraph_separator.c: New file.
29111 * lib/unictype/pr_pattern_syntax.c: New file.
29112 * lib/unictype/pr_pattern_white_space.c: New file.
29113 * lib/unictype/pr_private_use.c: New file.
29114 * lib/unictype/pr_punctuation.c: New file.
29115 * lib/unictype/pr_quotation_mark.c: New file.
29116 * lib/unictype/pr_radical.c: New file.
29117 * lib/unictype/pr_sentence_terminal.c: New file.
29118 * lib/unictype/pr_soft_dotted.c: New file.
29119 * lib/unictype/pr_space.c: New file.
29120 * lib/unictype/pr_terminal_punctuation.c: New file.
29121 * lib/unictype/pr_test.c: New file.
29122 * lib/unictype/pr_titlecase.c: New file.
29123 * lib/unictype/pr_unassigned_code_value.c: New file.
29124 * lib/unictype/pr_unified_ideograph.c: New file.
29125 * lib/unictype/pr_uppercase.c: New file.
29126 * lib/unictype/pr_variation_selector.c: New file.
29127 * lib/unictype/pr_white_space.c: New file.
29128 * lib/unictype/pr_xid_continue.c: New file.
29129 * lib/unictype/pr_xid_start.c: New file.
29130 * lib/unictype/pr_zero_width.c: New file.
29131 * lib/unictype/scripts.c: New file.
29132 * lib/unictype/sy_c_ident.c: New file.
29133 * lib/unictype/sy_c_whitespace.c: New file.
29134 * lib/unictype/sy_java_ident.c: New file.
29135 * lib/unictype/sy_java_whitespace.c: New file.
29137 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29139 * lib/unictype/blocks.h: Likewise.
29140 * lib/unictype/categ_C.h: Likewise.
29141 * lib/unictype/categ_Cc.h: Likewise.
29142 * lib/unictype/categ_Cf.h: Likewise.
29143 * lib/unictype/categ_Cn.h: Likewise.
29144 * lib/unictype/categ_Co.h: Likewise.
29145 * lib/unictype/categ_Cs.h: Likewise.
29146 * lib/unictype/categ_L.h: Likewise.
29147 * lib/unictype/categ_Ll.h: Likewise.
29148 * lib/unictype/categ_Lm.h: Likewise.
29149 * lib/unictype/categ_Lo.h: Likewise.
29150 * lib/unictype/categ_Lt.h: Likewise.
29151 * lib/unictype/categ_Lu.h: Likewise.
29152 * lib/unictype/categ_M.h: Likewise.
29153 * lib/unictype/categ_Mc.h: Likewise.
29154 * lib/unictype/categ_Me.h: Likewise.
29155 * lib/unictype/categ_Mn.h: Likewise.
29156 * lib/unictype/categ_N.h: Likewise.
29157 * lib/unictype/categ_Nd.h: Likewise.
29158 * lib/unictype/categ_Nl.h: Likewise.
29159 * lib/unictype/categ_No.h: Likewise.
29160 * lib/unictype/categ_P.h: Likewise.
29161 * lib/unictype/categ_Pc.h: Likewise.
29162 * lib/unictype/categ_Pd.h: Likewise.
29163 * lib/unictype/categ_Pe.h: Likewise.
29164 * lib/unictype/categ_Pf.h: Likewise.
29165 * lib/unictype/categ_Pi.h: Likewise.
29166 * lib/unictype/categ_Po.h: Likewise.
29167 * lib/unictype/categ_Ps.h: Likewise.
29168 * lib/unictype/categ_S.h: Likewise.
29169 * lib/unictype/categ_Sc.h: Likewise.
29170 * lib/unictype/categ_Sk.h: Likewise.
29171 * lib/unictype/categ_Sm.h: Likewise.
29172 * lib/unictype/categ_So.h: Likewise.
29173 * lib/unictype/categ_Z.h: Likewise.
29174 * lib/unictype/categ_Zl.h: Likewise.
29175 * lib/unictype/categ_Zp.h: Likewise.
29176 * lib/unictype/categ_Zs.h: Likewise.
29177 * lib/unictype/categ_of.h: Likewise.
29178 * lib/unictype/combining.h: Likewise.
29179 * lib/unictype/ctype_alnum.h: Likewise.
29180 * lib/unictype/ctype_alpha.h: Likewise.
29181 * lib/unictype/ctype_blank.h: Likewise.
29182 * lib/unictype/ctype_cntrl.h: Likewise.
29183 * lib/unictype/ctype_digit.h: Likewise.
29184 * lib/unictype/ctype_graph.h: Likewise.
29185 * lib/unictype/ctype_lower.h: Likewise.
29186 * lib/unictype/ctype_print.h: Likewise.
29187 * lib/unictype/ctype_punct.h: Likewise.
29188 * lib/unictype/ctype_space.h: Likewise.
29189 * lib/unictype/ctype_upper.h: Likewise.
29190 * lib/unictype/ctype_xdigit.h: Likewise.
29191 * lib/unictype/decdigit.h: Likewise.
29192 * lib/unictype/digit.h: Likewise.
29193 * lib/unictype/mirror.h: Likewise.
29194 * lib/unictype/numeric.h: Likewise.
29195 * lib/unictype/pr_alphabetic.h: Likewise.
29196 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29197 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29198 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29199 * lib/unictype/pr_bidi_block_separator.h: Likewise.
29200 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29201 * lib/unictype/pr_bidi_common_separator.h: Likewise.
29202 * lib/unictype/pr_bidi_control.h: Likewise.
29203 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29204 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29205 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29206 * lib/unictype/pr_bidi_european_digit.h: Likewise.
29207 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29208 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29209 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29210 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29211 * lib/unictype/pr_bidi_pdf.h: Likewise.
29212 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29213 * lib/unictype/pr_bidi_whitespace.h: Likewise.
29214 * lib/unictype/pr_combining.h: Likewise.
29215 * lib/unictype/pr_composite.h: Likewise.
29216 * lib/unictype/pr_currency_symbol.h: Likewise.
29217 * lib/unictype/pr_dash.h: Likewise.
29218 * lib/unictype/pr_decimal_digit.h: Likewise.
29219 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29220 * lib/unictype/pr_deprecated.h: Likewise.
29221 * lib/unictype/pr_diacritic.h: Likewise.
29222 * lib/unictype/pr_extender.h: Likewise.
29223 * lib/unictype/pr_format_control.h: Likewise.
29224 * lib/unictype/pr_grapheme_base.h: Likewise.
29225 * lib/unictype/pr_grapheme_extend.h: Likewise.
29226 * lib/unictype/pr_grapheme_link.h: Likewise.
29227 * lib/unictype/pr_hex_digit.h: Likewise.
29228 * lib/unictype/pr_hyphen.h: Likewise.
29229 * lib/unictype/pr_id_continue.h: Likewise.
29230 * lib/unictype/pr_id_start.h: Likewise.
29231 * lib/unictype/pr_ideographic.h: Likewise.
29232 * lib/unictype/pr_ids_binary_operator.h: Likewise.
29233 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29234 * lib/unictype/pr_ignorable_control.h: Likewise.
29235 * lib/unictype/pr_iso_control.h: Likewise.
29236 * lib/unictype/pr_join_control.h: Likewise.
29237 * lib/unictype/pr_left_of_pair.h: Likewise.
29238 * lib/unictype/pr_line_separator.h: Likewise.
29239 * lib/unictype/pr_logical_order_exception.h: Likewise.
29240 * lib/unictype/pr_lowercase.h: Likewise.
29241 * lib/unictype/pr_math.h: Likewise.
29242 * lib/unictype/pr_non_break.h: Likewise.
29243 * lib/unictype/pr_not_a_character.h: Likewise.
29244 * lib/unictype/pr_numeric.h: Likewise.
29245 * lib/unictype/pr_other_alphabetic.h: Likewise.
29246 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29247 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29248 * lib/unictype/pr_other_id_continue.h: Likewise.
29249 * lib/unictype/pr_other_id_start.h: Likewise.
29250 * lib/unictype/pr_other_lowercase.h: Likewise.
29251 * lib/unictype/pr_other_math.h: Likewise.
29252 * lib/unictype/pr_other_uppercase.h: Likewise.
29253 * lib/unictype/pr_paired_punctuation.h: Likewise.
29254 * lib/unictype/pr_paragraph_separator.h: Likewise.
29255 * lib/unictype/pr_pattern_syntax.h: Likewise.
29256 * lib/unictype/pr_pattern_white_space.h: Likewise.
29257 * lib/unictype/pr_private_use.h: Likewise.
29258 * lib/unictype/pr_punctuation.h: Likewise.
29259 * lib/unictype/pr_quotation_mark.h: Likewise.
29260 * lib/unictype/pr_radical.h: Likewise.
29261 * lib/unictype/pr_sentence_terminal.h: Likewise.
29262 * lib/unictype/pr_soft_dotted.h: Likewise.
29263 * lib/unictype/pr_space.h: Likewise.
29264 * lib/unictype/pr_terminal_punctuation.h: Likewise.
29265 * lib/unictype/pr_titlecase.h: Likewise.
29266 * lib/unictype/pr_unassigned_code_value.h: Likewise.
29267 * lib/unictype/pr_unified_ideograph.h: Likewise.
29268 * lib/unictype/pr_uppercase.h: Likewise.
29269 * lib/unictype/pr_variation_selector.h: Likewise.
29270 * lib/unictype/pr_white_space.h: Likewise.
29271 * lib/unictype/pr_xid_continue.h: Likewise.
29272 * lib/unictype/pr_xid_start.h: Likewise.
29273 * lib/unictype/pr_zero_width.h: Likewise.
29274 * lib/unictype/scripts.h: Likewise.
29275 * lib/unictype/scripts_byname.gperf: Likewise.
29276 * lib/unictype/sy_c_ident.h: Likewise.
29277 * lib/unictype/sy_c_whitespace.h: Likewise.
29278 * lib/unictype/sy_java_ident.h: Likewise.
29279 * lib/unictype/sy_java_whitespace.h: Likewise.
29281 * lib/unictype/Makefile: New file.
29282 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29284 * lib/unictype/3level.h: New file, copied from glibc.
29285 * lib/unictype/3levelbit.h: New file.
29287 2007-11-11 Bruno Haible <bruno@clisp.org>
29289 * modules/gperf: New file.
29290 * modules/iconv_open (Depends-on): Add it.
29291 (Makefile.am): Remove the GPERF definition.
29293 2007-11-11 Bruno Haible <bruno@clisp.org>
29295 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29296 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29298 2007-11-11 Bruno Haible <bruno@clisp.org>
29300 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29301 (usage): Remove function.
29303 2007-11-11 Bruno Haible <bruno@clisp.org>
29305 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29306 gl_FUNC_CEILF_LIBS.
29307 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29309 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29310 gl_FUNC_CEILL_LIBS.
29311 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29312 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29313 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29315 2007-11-11 Bruno Haible <bruno@clisp.org>
29317 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29318 roundf were declared but do not exist on functions.
29319 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29320 roundl were declared but do not exist on functions.
29321 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29322 HAVE_FLOORL_AND_CEILL, respectively.
29323 Needed for Sun C on Solaris 10.
29325 2007-11-11 Bruno Haible <bruno@clisp.org>
29327 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29328 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29329 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29330 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29331 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29332 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29333 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29335 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29336 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29337 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29338 of HAVE_DECL_ROUND*.
29339 * modules/math (Makefile.am): Update.
29341 2007-11-10 Bruno Haible <bruno@clisp.org>
29343 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29344 ptrdiff_t as m4/intl.m4.
29346 2007-11-10 Jim Meyering <meyering@redhat.com>
29348 Avoid link failure for the argmatch test.
29349 * tests/test-argmatch.c (usage): Define function to avoid a link
29350 failure: argmatch_die requires a usage function.
29352 2007-11-09 Bruno Haible <bruno@clisp.org>
29354 * doc/functions/snprintf.texi: Mention BeOS deficiency.
29355 * doc/functions/vsnprintf.texi: Likewise.
29356 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29357 with a size argument < 2.
29359 2007-11-09 Bruno Haible <bruno@clisp.org>
29361 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29362 buffer. Fixes an inefficiency introduced on 2007-11-03.
29364 2007-11-09 Bruno Haible <bruno@clisp.org>
29366 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29367 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29369 2007-11-08 Jim Meyering <meyering@redhat.com>
29371 Change cache variable name prefix "jm_" to "gl_" everywhere.
29372 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29373 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29374 * m4/uptime.m4: s/gl_/jm_/
29376 2007-11-07 Bruno Haible <bruno@clisp.org>
29378 Update to GNU gettext 0.17.
29379 * m4/intl.m4: Update to GNU gettext 0.17.
29380 * m4/po.m4: Likewise.
29381 * modules/gettext (Files): Remove m4/ulonglong.m4.
29382 (configure.ac): Require gettext infrastructure from version 0.17.
29384 2007-11-06 Bruno Haible <bruno@clisp.org>
29386 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29387 symbolic values are not defined in a public header.
29388 * lib/freadable.c (freadable) [QNX]: Likewise.
29389 * lib/freadahead.c (freadahead) [QNX]: Likewise.
29390 * lib/freading.c (freading) [QNX]: Likewise.
29391 * lib/fseterr.c (fseterr) [QNX]: Likewise.
29392 * lib/fwritable.c (fwritable) [QNX]: Likewise.
29393 * lib/fwriting.c (fwriting) [QNX]: Likewise.
29394 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29395 Reported by Alain Magloire.
29397 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29399 2007-11-05 Bruno Haible <bruno@clisp.org>
29401 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29402 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29403 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29404 Reported by Eric Blake.
29406 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29407 Bruno Haible <bruno@clisp.org>
29409 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29410 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29411 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29412 (malloc): Undefine also before including <stdlib.h>.
29413 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29414 Needed on OSF/1 4.0.
29416 2007-11-05 Jim Meyering <meyering@redhat.com>
29418 git-version-gen: sync from coreutils.
29419 * build-aux/git-version-gen: Add comments.
29420 Change the first '-' to '.' in the snapshot version string,
29421 e.g., 6.9-377-08144 -> 6.9.377-08144
29422 Remove first parameter.
29423 Don't declare a version "-dirty" merely because a time
29426 2007-11-04 Bruno Haible <bruno@clisp.org>
29428 * lib/lock.h: Protect all macro definitions containing an 'if'
29429 statement through a "do { ... } while (0)".
29430 * lib/tls.h: Likewise.
29432 2007-11-04 Bruno Haible <bruno@clisp.org>
29434 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29436 2007-11-04 Bruno Haible <bruno@clisp.org>
29438 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29439 * modules/fprintf-posix (Depends-on): Add nocrash.
29440 * modules/snprintf-posix (Depends-on): Likewise.
29441 * modules/sprintf-posix (Depends-on): Likewise.
29442 * modules/vasnprintf-posix (Depends-on): Likewise.
29443 * modules/vasprintf-posix (Depends-on): Likewise.
29444 * modules/vfprintf-posix (Depends-on): Likewise.
29445 * modules/vsnprintf-posix (Depends-on): Likewise.
29446 * modules/vsprintf-posix (Depends-on): Likewise.
29447 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29448 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29449 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29450 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29451 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29452 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29453 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29455 2007-11-04 Bruno Haible <bruno@clisp.org>
29457 * modules/nocrash: New file.
29458 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29459 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29461 2007-11-04 Bruno Haible <bruno@clisp.org>
29463 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29464 precision handling.
29465 * tests/test-vasprintf-posix.c (test_function): Likewise.
29466 * tests/test-snprintf-posix.h (test_function): Likewise.
29467 * tests/test-sprintf-posix.h (test_function): Likewise.
29469 Fix *printf behaviour for large precisions on mingw and BeOS.
29470 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29471 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29472 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29473 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29474 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29475 gl_PRINTF_PRECISION and test its result. Invoke
29476 gl_PREREQ_VASNPRINTF_PRECISION.
29477 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29478 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29479 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29480 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29481 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29482 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29483 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29484 * doc/functions/fprintf.texi: Update.
29485 * doc/functions/printf.texi: Update.
29486 * doc/functions/snprintf.texi: Update.
29487 * doc/functions/sprintf.texi: Update.
29488 * doc/functions/vfprintf.texi: Update.
29489 * doc/functions/vprintf.texi: Update.
29490 * doc/functions/vsnprintf.texi: Update.
29491 * doc/functions/vsprintf.texi: Update.
29493 2007-11-04 Bruno Haible <bruno@clisp.org>
29495 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29497 2007-11-04 Bruno Haible <bruno@clisp.org>
29499 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29500 Reported by Sylvain Beucler <beuc@gnu.org>.
29502 2007-11-03 Bruno Haible <bruno@clisp.org>
29504 * tests/test-fprintf-posix2.sh: New file.
29505 * tests/test-fprintf-posix2.c: New file.
29506 * modules/fprintf-posix-tests (Files): Add them.
29507 (TESTS): Add test-fprintf-posix2.sh.
29508 (configure.ac): Check for getrlimit and setrlimit.
29509 (check_PROGRAMS): Add test-fprintf-posix2.
29511 * tests/test-printf-posix2.sh: New file.
29512 * tests/test-printf-posix2.c: New file.
29513 * modules/printf-posix-tests (Files): Add them.
29514 (TESTS): Add test-printf-posix2.sh.
29515 (configure.ac): Check for getrlimit and setrlimit.
29516 (check_PROGRAMS): Add test-printf-posix2.
29518 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29519 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29520 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29521 (decode_double): New function, copied from decode_long_double.
29522 (scale10_round_decimal_decoded): New function, extracted from
29523 scale10_round_decimal_long_double.
29524 (scale10_round_decimal_long_double): Use it.
29525 (scale10_round_decimal_double): New function.
29526 (floorlog10): New function.
29527 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29528 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29529 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29530 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29531 gl_PRINTF_ENOMEM and test its result. Invoke
29532 gl_PREREQ_VASNPRINTF_ENOMEM.
29533 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29534 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29535 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29536 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29537 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29538 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29539 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29540 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29541 * modules/snprintf-posix (Depends-on): Likewise.
29542 * modules/sprintf-posix (Depends-on): Likewise.
29543 * modules/vasnprintf-posix (Depends-on): Likewise.
29544 * modules/vasprintf-posix (Depends-on): Likewise.
29545 * modules/vfprintf-posix (Depends-on): Likewise.
29546 * modules/vsnprintf-posix (Depends-on): Likewise.
29547 * modules/vsprintf-posix (Depends-on): Likewise.
29548 * doc/functions/fprintf.texi: Update.
29549 * doc/functions/printf.texi: Update.
29550 * doc/functions/snprintf.texi: Update.
29551 * doc/functions/sprintf.texi: Update.
29552 * doc/functions/vfprintf.texi: Update.
29553 * doc/functions/vprintf.texi: Update.
29554 * doc/functions/vsnprintf.texi: Update.
29555 * doc/functions/vsprintf.texi: Update.
29557 2007-11-03 Bruno Haible <bruno@clisp.org>
29559 * modules/frexp-nolibm-tests: New file.
29561 * modules/frexp-nolibm: New file.
29562 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29564 2007-11-03 Bruno Haible <bruno@clisp.org>
29566 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29567 value is C99 compliant.
29568 Needed for OSF/1 5.1.
29570 2007-11-03 Bruno Haible <bruno@clisp.org>
29572 Fix out-of-memory handling of vasnprintf.
29573 * lib/printf-parse.c: Include <errno.h>.
29574 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29575 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29578 2007-11-02 Eric Blake <ebb9@byu.net>
29580 Fix tests on cygwin.
29581 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29583 2007-11-01 Bruno Haible <bruno@clisp.org>
29585 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29587 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29588 needed for POSIX compatibility.
29590 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
29592 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29593 for compatibility with GNU.
29595 2007-11-01 Bruno Haible <bruno@clisp.org>
29597 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29598 (putenv): Renamed from rpl_putenv. Change argument type from
29599 'const char *' to 'char *'.
29600 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29601 of defining putenv in config.h, just set REPLACE_PUTENV.
29602 * modules/putenv (Depends-on): Add stdlib.
29603 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29604 (Include): Use <stdlib.h>.
29605 * lib/stdlib.in.h (putenv): New declaration.
29606 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29608 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29610 Needed for MacOS X 10.5.0.
29611 Reported by Peter O'Gorman <peter@pogma.com>.
29613 2007-11-01 Jim Meyering <meyering@redhat.com>
29615 Treat an empty date string exactly like "0".
29616 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29617 if the remaining date string (to be parsed) is empty, use "0".
29618 Reported by Mischa Molhoek and discussed in this thread:
29619 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29621 2007-10-31 Bruno Haible <bruno@clisp.org>
29623 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29624 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29625 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29626 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29627 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29628 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29630 2007-10-31 Bruno Haible <bruno@clisp.org>
29632 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29633 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29634 (AC_TYPE_LONG_LONG_INT): Use it.
29635 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29637 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29639 * modules/stdint (Files): Remove m4/ulonglong.m4.
29640 * modules/strtoull (Files): Use m4/longlong.m4 instead of
29642 * modules/strtoumax (Files): Likewise.
29644 2007-10-30 Bruno Haible <bruno@clisp.org>
29646 * modules/xvasprintf-posix: New file.
29647 Suggested by Eric Blake.
29649 2007-10-30 Bruno Haible <bruno@clisp.org>
29651 * modules/xprintf-posix-tests: New file.
29652 * tests/test-xprintf-posix.sh: New file.
29653 * tests/test-xprintf-posix.c: New file.
29654 * tests/test-xfprintf-posix.c: New file.
29656 * modules/xprintf-posix: New file.
29658 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29660 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29661 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29662 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29664 2007-10-29 Bruno Haible <bruno@clisp.org>
29666 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29667 contain the special marker '_cv_'.
29668 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29669 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29670 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29671 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29672 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29673 Reported by Ralf Wildenhues.
29675 2007-10-29 Bruno Haible <bruno@clisp.org>
29677 * gnulib-tool (func_import): When --lgpl is not specified, set
29678 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29680 Reported by Simon Josefsson.
29682 2007-10-28 Bruno Haible <bruno@clisp.org>
29684 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29685 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29686 HAVE_DECL_ISFINITE.
29687 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29688 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29689 HAVE_DECL_ISFINITE.
29691 2007-10-28 Bruno Haible <bruno@clisp.org>
29693 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29694 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29696 2007-10-28 Bruno Haible <bruno@clisp.org>
29698 Fix link errors with Sun C 5.0 on Solaris 10.
29699 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29700 function is declared but not present in the compiler's libm.
29701 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29702 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29703 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29704 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29705 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29706 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29707 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29708 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29709 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29710 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29711 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29714 2007-10-28 Bruno Haible <bruno@clisp.org>
29716 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29717 gl_FUNC_FLOORL. Cache the result.
29718 (gl_FUNC_FLOORL): Use it.
29719 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29720 gl_FUNC_CEILL. Cache the result.
29721 (gl_FUNC_CEILL): Use it.
29723 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29724 gl_FUNC_FLOOR. Cache the result.
29725 (gl_FUNC_FLOOR): Use it.
29726 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29727 gl_FUNC_CEIL. Cache the result.
29728 (gl_FUNC_CEIL): Use it.
29730 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29731 gl_FUNC_FLOORF. Cache the result.
29732 (gl_FUNC_FLOORF): Use it.
29733 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29734 gl_FUNC_CEILF. Cache the result.
29735 (gl_FUNC_CEILF): Use it.
29737 2007-10-28 Bruno Haible <bruno@clisp.org>
29739 * gnulib-tool: Allow specifying the LGPL version number through
29740 --lgpl=2 or --lgpl=3.
29741 (func_usage): Document --lgpl with argument.
29742 Handle --lgpl=... arguments.
29743 (func_import): Recognize also gl_LGPL calls with an argument. When
29744 --lgpl=2 is used and the module's license is just LGPL, report an
29745 error. Set sed_transform_lib_file according to the lgpl variable. In
29746 the generated files, use --lgpl or gl_LGPL invocations with argument,
29748 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29750 * doc/gnulib-tool.texi (Modified imports): Update explanation of
29753 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29754 Bruno Haible <bruno@clisp.org>
29756 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29757 (u16_uctomb_aux): Likewise.
29758 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29760 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29762 2007-10-28 Bruno Haible <bruno@clisp.org>
29764 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29765 Invoke AM_GETTEXT_OPTION if it exists.
29766 * modules/vasprintf: Likewise.
29767 * modules/verror: Likewise.
29768 * modules/xprintf: Likewise.
29769 * modules/xvasprintf: Likewise.
29771 2007-10-27 Ben Pfaff <blp@gnu.org>
29773 * lib/math.in.h: Define isfinite macro and prototypes for
29774 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29776 * m4/math_h.m4: New substitutions for isfinite module.
29777 * lib/isfinite.c: New file.
29778 * m4/isfinite.m4: New file.
29779 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29780 * modules/isfinite: New file.
29781 * modules/isfinite-tests: New file.
29782 * tests/tests-isfinite.c: New file.
29783 * doc/functions/isfinite.texi: Mention isfinite module.
29784 * MODULES.html.sh: Mention new module.
29786 2007-10-27 Ben Pfaff <blp@gnu.org>
29788 Ralf Wildenhues reported that Tru64 4.0D declares the round
29789 functions but does not have definitions.
29790 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29791 cannot be found in any library, set the output variable to
29792 "missing" instead of "".
29793 * m4/round.m4: Also use our substitute if we cannot find round in
29794 any library, even if it is declared.
29795 * m4/roundf.m4: Likewise for roundf.
29796 * m4/roundl.m4: Likewise for roundl.
29797 * lib/math.in.h: Undefine roundf, round, roundl before defining
29798 their replacements, to allow for hypothetical systems where these
29799 may be defined as macros but not available in libraries.
29801 2007-10-27 Bruno Haible <bruno@clisp.org>
29803 * doc/gnulib.texi: Invoke @firstparagraphindent.
29804 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29806 (Source changes): New section.
29808 2007-10-26 Bruno Haible <bruno@clisp.org>
29810 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29811 borrowed from autoconf.
29813 2007-10-26 Bruno Haible <bruno@clisp.org>
29815 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29816 strerror returned the empty string. Needed on HP-UX 11.00.
29818 2007-10-24 Micah Cowan <micah@cowan.name>
29820 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
29821 * build-aux/bootstrap: Remove support for now-unnecessary option,
29822 --cvs-user, and envvars CVS_USER, CVS_RSH.
29824 2007-10-24 Jim Meyering <meyering@redhat.com>
29826 Avoid diagnostics from sha1sum when there is no cached checksum.
29827 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29828 if the po.s1 file hasn't been created yet.
29830 * build-aux/bootstrap: Sync from coreutils:
29831 2007-10-24 Jim Meyering <meyering@redhat.com>
29832 Get gnulib from the git repository, not from an obsolete cvs one.
29833 * build-aux/bootstrap: Suggestion from Micah Cowan.
29834 2007-10-04 Jim Meyering <jim@meyering.net>
29835 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29836 (update_po_files): Work also when there are no .po files in po/.
29838 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
29840 * README: Append ".git" to git and cg examples.
29841 Problem reported by Benoit Sigoure.
29843 2007-10-23 Micah Cowan <micah@cowan.name>
29845 * users.txt: Add wget.
29847 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29849 Fix linking of some unistdio tests on FreeBSD.
29850 * modules/unistdio/u16-vsnprintf-tests
29851 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29852 * modules/unistdio/u16-vsprintf-tests
29853 (test_u16_vsnprintf1_LDADD): Likewise.
29854 * modules/unistdio/u32-vsnprintf-tests
29855 (test_u32_vsnprintf1_LDADD): Likewise.
29856 * modules/unistdio/u32-vsprintf-tests
29857 (test_u32_vsprintf1_LDADD): Likewise.
29858 * modules/unistdio/u8-vsnprintf-tests
29859 (test_u8_vsnprintf1_LDADD): Likewise.
29860 * modules/unistdio/u8-vsprintf-tests
29861 (test_u8_vsprintf1_LDADD): Likewise.
29862 * modules/unistdio/ulc-vsnprintf-tests
29863 (test_ulc_vsnprintf1_LDADD): Likewise.
29864 * modules/unistdio/ulc-vsprintf-tests
29865 (test_ulc_vsprintf1_LDADD): Likewise.
29867 Fix linking of some uniconv tests on FreeBSD.
29868 * modules/uniconv/u16-conv-from-enc-tests
29869 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29870 * modules/uniconv/u16-conv-to-enc-tests
29871 (test_u16_conv_to_enc_LDADD): Likewise.
29872 * modules/uniconv/u16-strconv-from-enc-tests
29873 (test_u16_strconv_from_enc_LDADD): Likewise.
29874 * modules/uniconv/u16-strconv-to-enc-tests
29875 (test_u16_strconv_to_enc_LDADD): Likewise.
29876 * modules/uniconv/u32-conv-from-enc-tests
29877 (test_u32_conv_from_enc_LDADD): Likewise.
29878 * modules/uniconv/u32-conv-to-enc-tests
29879 (test_u32_conv_to_enc_LDADD): Likewise.
29880 * modules/uniconv/u32-strconv-from-enc-tests
29881 (test_u32_strconv_from_enc_LDADD): Likewise.
29882 * modules/uniconv/u32-strconv-to-enc-tests
29883 (test_u32_strconv_to_enc_LDADD): Likewise.
29884 * modules/uniconv/u8-conv-from-enc-tests
29885 (test_u8_conv_from_enc_LDADD): Likewise.
29886 * modules/uniconv/u8-conv-to-enc-tests
29887 (test_u8_conv_to_enc_LDADD): Likewise.
29888 * modules/uniconv/u8-strconv-from-enc-tests
29889 (test_u8_strconv_from_enc_LDADD): Likewise.
29890 * modules/uniconv/u8-strconv-to-enc-tests
29891 (test_u8_strconv_to_enc_LDADD): Likewise.
29893 2007-10-22 Bruno Haible <bruno@clisp.org>
29895 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29898 2007-10-22 Eric Blake <ebb9@byu.net>
29900 Tweak x*printf documentation.
29901 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29902 variable name and comments.
29903 Suggested by Bruno Haible.
29905 2007-10-22 Bruno Haible <bruno@clisp.org>
29907 * lib/acl.c (copy_acl): Fix file name in comment.
29909 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
29911 Fix Tru64 problem with stdbool.h.
29912 * lib/stdbool.in.h (false, true):
29913 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29914 Don't declare as an enum in this situation; it runs afoul of Tru64.
29915 Problem reported by Steven M. Schweda in
29916 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29918 2007-10-22 Eric Blake <ebb9@byu.net>
29920 Also wrap vf?printf.
29921 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29922 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29923 (xvprintf, xvfprintf): New functions.
29925 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29927 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29928 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29930 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29931 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29933 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
29935 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
29938 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29941 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29942 Undef `sys' after including sys/table.h, for Tru64 4.0D.
29944 * tests/test-i-ring.c: Work for C89.
29946 2007-10-22 Bruno Haible <bruno@clisp.org>
29948 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29949 -1u, in preprocessor expression, so that we don't test for the bug
29950 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
29951 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29953 2007-10-22 Eric Blake <ebb9@byu.net>
29955 * tests/test-yesno.sh: Silence stderr during test.
29957 2007-10-22 Simon Josefsson <simon@josefsson.org>
29959 * modules/crypto/gc-camellia: New file.
29961 * m4/gc-camellia.m4: New file.
29963 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29965 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29967 2007-10-22 Simon Josefsson <simon@josefsson.org>
29969 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29970 --help to stdout. Reported by sms@antinode.org (Steven
29973 2007-10-22 Simon Josefsson <simon@josefsson.org>
29975 * users.txt: Fix link to libksba.
29977 2007-10-21 Ben Pfaff <blp@gnu.org>
29979 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29980 round.c roundf implementation that depends on floorf and ceilf to
29981 be tested unconditionally.
29983 2007-10-21 Ben Pfaff <blp@gnu.org>
29985 * m4/check-libm-func.m4: Removed.
29986 * m4/check-math-lib.m4: New file.
29987 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29988 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29989 definition and lack of AC_LIBOBJ([roundf]).
29990 * m4/roundl.m4: Ditto, and similarly for roundl.
29991 * modules/round: Reference new m4 file.
29992 * modules/roundf: Ditto.
29993 * modules/roundl: Ditto.
29994 * tests/test-round2.c (main): Use ROUND instead of round.
29995 Bug report from Bruno Haible.
29997 2007-10-21 Bruno Haible <bruno@clisp.org>
29999 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30002 2007-10-21 Bruno Haible <bruno@clisp.org>
30004 * tests/test-wcwidth.c (main): Allow negative result for some control
30007 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30008 Needed on OSF/1 5.1.
30010 2007-10-21 Bruno Haible <bruno@clisp.org>
30012 * tests/test-floorf1.c: Include isnanf.h.
30013 (main): Use isnanf() instead of isnan().
30014 * tests/test-ceilf1.c: Include isnanf.h.
30015 (main): Use isnanf() instead of isnan().
30016 * tests/test-truncf1.c: Include isnanf.h.
30017 (main): Use isnanf() instead of isnan().
30018 * tests/test-roundf1.c: Include isnanf.h.
30019 (main): Use isnanf() instead of isnan().
30021 2007-10-21 Eric Blake <ebb9@byu.net>
30023 * users.txt: Update URL for m4.
30025 2007-10-21 Bruno Haible <bruno@clisp.org>
30027 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30029 2007-10-21 Bruno Haible <bruno@clisp.org>
30031 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30032 Git's management files if the CVS files are not present.
30034 2007-10-20 Bruno Haible <bruno@clisp.org>
30036 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30039 2007-10-20 Ben Pfaff <blp@gnu.org>
30041 * lib/math.in.h: Declare round, roundf, roundl if we are providing
30043 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30044 * lib/round.c: New file.
30045 * lib/roundf.c: New file.
30046 * lib/roundl.c: New file.
30047 * m4/round.m4: New file.
30048 * m4/roundf.m4: New file.
30049 * m4/roundl.m4: New file.
30050 * m4/check-libm-func-m4: New file.
30051 * modules/math: Replace round, roundf, roundl related @VARS@ in
30053 * modules/round: New file.
30054 * modules/round-tests: New file.
30055 * modules/roundf: New file.
30056 * modules/roundf-tests: New file.
30057 * modules/roundl: New file.
30058 * modules/roundl-tests: New file.
30059 * tests/test-round1.c: New file.
30060 * tests/test-round2.c: New file.
30061 * tests/test-roundf1.c: New file.
30062 * tests/test-roundf2.c: New file.
30063 * tests/test-roundl.c: New file.
30064 * doc/functions/round.texi: Mention round module.
30065 * doc/functions/roundf.texi: Mention roundf module.
30066 * doc/functions/roundl.texi: Mention roundl module.
30067 * MODULES.html.sh: Mention new modules.
30068 Thanks to Bruno Haible for suggestions.
30070 2007-10-20 Jim Meyering <meyering@redhat.com>
30072 * lib/xprintf.c: Include <config.h> unconditionally.
30074 Change xprintf's license to GPL.
30075 * modules/xprintf (License): s/LGPL/GPL/, since this module
30076 depends on modules (exit and exitfail) which are GPL.
30077 Suggestion from Bruno Haible.
30080 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30081 Use a clearer diagnostic.
30082 Patch from Bruno Haible.
30084 2007-10-20 Bruno Haible <bruno@clisp.org>
30086 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30087 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30088 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30090 2007-10-20 Bruno Haible <bruno@clisp.org>
30092 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30093 precision in the comparison result > x - 1 or similar.
30094 * tests/test-ceilf2.c (correct_result_p): Likewise.
30095 * tests/test-truncf2.c (correct_result_p): Likewise.
30096 * tests/test-trunc2.c (correct_result_p): Likewise.
30097 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30099 2007-10-20 Bruno Haible <bruno@clisp.org>
30101 * modules/ceil: New file.
30102 * m4/ceil.m4: New file.
30103 * doc/functions/ceil.texi: Mention the 'ceil' module.
30105 2007-10-20 Bruno Haible <bruno@clisp.org>
30107 * modules/floor: New file.
30108 * m4/floor.m4: New file.
30109 * doc/functions/floor.texi: Mention the 'floor' module.
30111 2007-10-20 Bruno Haible <bruno@clisp.org>
30113 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30115 * modules/floorf-tests (Depends-on): Likewise.
30116 * modules/truncf-tests (Depends-on): Likewise.
30117 * modules/trunc-tests (Depends-on): Likewise.
30118 Reported by Ben Pfaff.
30120 2007-10-19 Jim Meyering <meyering@redhat.com>
30122 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30123 Don't bother testing specific errno values. Just test ferror.
30125 New module: xprintf
30126 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30128 2007-10-19 Bruno Haible <bruno@clisp.org>
30130 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30132 * modules/javaexec (Makefile.am): Likewise.
30133 * modules/relocatable-prog (Makefile.am): Likewise.
30134 Suggested by Jim Meyering.
30136 2007-10-18 Bruno Haible <bruno@clisp.org>
30138 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30139 Reported by Jim Meyering.
30141 2007-10-18 Eric Blake <ebb9@byu.net>
30143 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30145 2007-10-18 Bruno Haible <bruno@clisp.org>
30147 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30148 the format string into writable memory. Needed in Fortify conditions.
30150 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
30151 Bruno Haible <bruno@clisp.org>
30153 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30154 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30155 * modules/trim (Depends-on): Add mbchar.
30156 (configure.ac): Add gl_FUNC_MBRTOWC.
30157 (Makefile.am): Augment lib_SOURCES.
30159 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
30161 Modify glob.c to use fstatat and dirfd, to simplify it.
30162 Suggested by Eric Blake.
30163 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30164 Don't include <stdbool.h>; not used.
30165 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30166 (link_exists_p): Simplify implementation, since we can now assume
30168 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
30170 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30172 * gnulib-tool (func_get_dependencies): Fix sed script to
30175 2007-10-17 Bruno Haible <bruno@clisp.org>
30177 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30178 allow locale names without encoding suffix.
30179 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30180 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30182 2007-10-16 Bruno Haible <bruno@clisp.org>
30184 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30185 * lib/getgroups.c (getgroups): Likewise.
30186 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30188 2007-10-16 Bruno Haible <bruno@clisp.org>
30190 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30191 * modules/malloc-posix (License): Likewise.
30192 * modules/realloc-posix (License): Likewise.
30193 * modules/calloc-posix (License): Likewise.
30194 * modules/intprops (License): Change from GPL to LGPL, with
30195 Paul Eggert's approval.
30197 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
30199 Merge glibc changes into lib/glob.c.
30201 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30202 2007-10-15 04:59:03 UTC. Here are the changes:
30204 2007-10-14 Ulrich Drepper <drepper@redhat.com>
30206 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30208 * lib/glob.c: Add some branch prediction throughout.
30210 2007-10-07 Ulrich Drepper <drepper@redhat.com>
30213 * lib/glob.c (glob): Recognize patterns starting \/.
30215 2007-02-14 Jakub Jelinek <jakub@redhat.com>
30218 * lib/glob.c (attribute_hidden): Define if not defined.
30219 (glob): Unescape dirname, filename or username when needed and not
30220 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
30221 is NULL. Handle unescaped [ in pattern without closing ].
30222 Don't pass GLOB_CHECK down to recursive glob for directories.
30223 (__glob_pattern_type): New function.
30224 (__glob_pattern_p): Implement using __glob_pattern_type.
30225 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30226 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30227 Remove unreachable code.
30229 2006-09-30 Ulrich Drepper <drepper@redhat.com>
30231 * lib/glob.c (glob_in_dir): Add some comments and asserts to
30232 explain why there are no leaks.
30234 2006-09-25 Jakub Jelinek <jakub@redhat.com>
30237 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30238 time, rather allocate increasingly bigger arrays of pointers, if
30239 possible with alloca, if too large with malloc.
30241 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
30243 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30244 Problem reported by H.Merijn Brand in
30245 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30246 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30247 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30249 2007-10-15 Bruno Haible <bruno@clisp.org>
30251 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30252 with explicit rpl_ prefix.
30253 * lib/fopen.c (fopen): Likewise.
30254 * lib/freopen.c (freopen): Likewise.
30255 * lib/iconv.c (iconv): Likewise.
30256 * lib/iconv_close.c (iconv_close): Likewise.
30258 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30260 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30262 2007-10-15 Bruno Haible <bruno@clisp.org>
30264 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30265 <stddef.h> instead of <stdlib.h> since we only need NULL.
30266 Reported by Ben Pfaff <blp@cs.stanford.edu>.
30268 2007-10-15 Bruno Haible <bruno@clisp.org>
30270 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30271 Replace paragraph talking about LIBOBJS.
30272 Reported by Colin Watson <cjwatson@debian.org>.
30274 2007-10-15 Bruno Haible <bruno@clisp.org>
30276 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30277 <stdlib.h> before using NULL.
30279 2007-10-15 Simon Josefsson <simon@josefsson.org>
30281 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30282 Reported by Albert Chin <china@thewrittenword.com>.
30284 2007-10-14 Bruno Haible <bruno@clisp.org>
30286 * modules/iconv_open-utf-tests: New file.
30287 * tests/test-iconv-utf.c: New file.
30289 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30290 * modules/iconv_open-utf: New file.
30291 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30292 (iconv, iconv_close): New declarations.
30293 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30295 (iconv_open): Add special handling of conversion between UTF-8 and
30296 UTF-{16,32}{BE,LE}.
30297 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30298 * lib/iconv_close.c: New file.
30299 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30300 gl_FUNC_ICONV_OPEN.
30301 (gl_FUNC_ICONV_OPEN): Use it.
30302 (gl_FUNC_ICONV_OPEN_UTF): New macro.
30303 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30304 and REPLACE_ICONV_UTF.
30305 * modules/iconv_open (Depends-on): Add c-strcase.
30306 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30308 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30310 2007-10-13 Albert Chin <china@thewrittenword.com>
30311 Bruno Haible <bruno@clisp.org>
30313 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30314 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30316 2007-10-13 Bruno Haible <bruno@clisp.org>
30318 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30319 defined, use the ISO C99 inline semantics.
30320 * lib/argp.h (ARGP_EI): Likewise.
30322 2007-10-13 Bruno Haible <bruno@clisp.org>
30324 Handle 'inline' change in gcc 4.3.0.
30325 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30326 argp_fmtstream_write, argp_fmtstream_set_lmargin,
30327 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30328 argp_fmtstream_point): Disable 'extern' declaration if the function
30329 definition is going to be provided inline.
30330 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30331 semantics, not the ISO C99 inline semantics.
30332 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30333 'extern' declaration if the function definition is going to be provided
30335 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30336 the GNU C inline semantics, not the ISO C99 inline semantics. With
30337 GCC 4.2, avoid a warning.
30339 2007-10-13 Bruno Haible <bruno@clisp.org>
30341 * lib/freading.h (freading): Enable the use of __freading for
30343 * lib/freading.c (freading): Likewise.
30345 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
30347 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30348 "warning: C99 inline functions are not supported; using GNU89".
30350 2007-10-12 Bruno Haible <bruno@clisp.org>
30352 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30354 * tests/test-ceilf2.c: New file.
30355 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30357 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30358 * modules/ceilf-tests: Update.
30360 2007-10-12 Bruno Haible <bruno@clisp.org>
30362 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30364 * tests/test-floorf2.c: New file.
30365 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30367 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30368 * modules/floorf-tests: Update.
30370 2007-10-12 Bruno Haible <bruno@clisp.org>
30372 * tests/test-trunc2.c: New file.
30373 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30375 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30376 * modules/trunc-tests: Update.
30378 2007-10-12 Bruno Haible <bruno@clisp.org>
30380 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30382 * tests/test-truncf2.c: New file.
30383 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30385 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30386 * modules/truncf-tests: Update.
30388 2007-10-11 Eric Blake <ebb9@byu.net>
30390 Don't claim strerror is broken on Interix.
30391 * doc/functions/strerror.texi (strerror): Known broken systems are
30392 now Solaris 8, and not Interix.
30393 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30394 Interix on cross-compile.
30395 Reported by Martin Koeppe in
30396 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30398 2007-10-11 Bruno Haible <bruno@clisp.org>
30400 * modules/i-ring-tests: New file.
30401 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30404 2007-10-11 Bruno Haible <bruno@clisp.org>
30406 * modules/filenamecat-tests: New file.
30407 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30408 * lib/filenamecat.c: Remove test code.
30410 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
30412 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30414 * lib/strerror.c: Include <string.h> always, to test interface,
30415 and to remove the need for the dummy.
30416 Include intprops.h to compute width instead of doing it ourselves
30417 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30418 (strerror): Define it to return NULL if there's no system strerror.
30419 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30420 Omit !HAVE_STRERROR code. We don't need to worry about supporting
30421 ancient pre-strerror Unix systems well any more. Saying "unknown
30422 system error" is enough.
30423 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30424 simpler strerror.c implementation.
30425 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30426 Simplify the tests to reflect the simpler strerror implementation.
30427 * modules/strerror (Depends-on): Add intprops.
30429 2007-10-09 Eric Blake <ebb9@byu.net>
30431 Silence test-fpending.
30432 * modules/fpending-tests (Files): Add wrapper script.
30433 * tests/test-fpending.sh: New file.
30435 2007-10-09 Bruno Haible <bruno@clisp.org>
30437 * MODULES.html.sh (func_module): Don't create a hyperlink for
30438 function names like 'printf_frexp'.
30439 (Misc): Add crc, memxor.
30440 (Characteristics of floating types): New section.
30441 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30442 isnanf-nolibm, signbit, trunc, truncf, truncl.
30443 (Enhancements for ISO C 99 functions): New subsection Input/output.
30444 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30445 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30446 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30447 (Compatibility checks for POSIX:2001 functions): Add clock-time.
30448 (Enhancements for POSIX:2001 functions): Add chdir-long.
30449 (File system functions): Add areadlink, chdir-safer, read-file.
30450 Remove cycle-check.
30451 (File system as inode set): New section.
30452 (Date and time): Add gethrxtime.
30453 (Multithreading): Add openmp.
30454 (Internationalization functions): Add localename.
30455 (Unicode string functions): Add unistr/u*-mbsnlen.
30456 (Support for maintaining and releasing projects): Add git-version-gen.
30457 (Lone files): Remove directories.
30459 2007-10-08 Ben Pfaff <blp@gnu.org>
30461 * lib/xmalloca.h: Fix typo in comment.
30463 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
30465 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30466 when avoiding problems with integer overflow. Use a portable test
30469 2007-10-08 Simon Josefsson <simon@josefsson.org>
30471 * modules/dummy (License): Change to LGPLv2+.
30472 * modules/float (License): Likewise
30473 * modules/realloc (License): Likewise
30474 * modules/stdlib (License): Likewise
30476 2007-10-07 Bruno Haible <bruno@clisp.org>
30478 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30479 * floor.c (TWO_MANT_DIG): Likewise.
30480 * ceil.c (TWO_MANT_DIG): Likewise.
30481 Reported by Ben Pfaff.
30483 2007-10-07 Bruno Haible <bruno@clisp.org>
30485 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30486 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30487 * lib/frexp.c (FUNC): Likewise.
30488 * lib/printf-frexp.h (printf_frexp): Likewise.
30489 * lib/printf-frexpl.h (printf_frexpl): Likewise.
30490 * lib/printf-frexp.c (FUNC): Likewise.
30491 Suggested by Jim Meyering.
30493 2007-10-07 Jim Meyering <meyering@redhat.com>
30495 Make xnanosleep's integer overflow test more robust.
30496 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30497 so that gcc-4.3.0 doesn't optimize away this test for overflow.
30499 2007-10-07 Bruno Haible <bruno@clisp.org>
30501 * NEWS: Mention the license change.
30503 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30504 abbreviations in the modules files.
30506 Change copyright notice from GPLv2+ to GPLv3+.
30507 * README: Change copyright notice.
30508 * MODULES.html.sh: Likewise.
30509 * build-aux/bootstrap.conf: Likewise.
30510 * build-aux/config.libpath: Likewise.
30511 * build-aux/csharpcomp.sh.in: Likewise.
30512 * build-aux/csharpexec.sh.in: Likewise.
30513 * build-aux/install-reloc: Likewise.
30514 * build-aux/javacomp.sh.in: Likewise.
30515 * build-aux/javaexec.sh.in: Likewise.
30516 * build-aux/ldd.sh.in: Likewise.
30517 * build-aux/reloc-ldflags: Likewise.
30518 * build-aux/relocatable.sh.in: Likewise.
30519 * build-aux/x-to-1.in: Likewise.
30520 * check-module: Likewise.
30521 * config/srclistvars.sh: Likewise.
30522 * gnulib-tool: Likewise.
30523 * lib/acl-internal.h: Likewise.
30524 * lib/acl.c: Likewise.
30525 * lib/acl.h: Likewise.
30526 * lib/acl_entries.c: Likewise.
30527 * lib/areadlink-with-size.c: Likewise.
30528 * lib/areadlink.c: Likewise.
30529 * lib/areadlink.h: Likewise.
30530 * lib/argmatch.c: Likewise.
30531 * lib/argmatch.h: Likewise.
30532 * lib/argp-ba.c: Likewise.
30533 * lib/argp-eexst.c: Likewise.
30534 * lib/argp-fmtstream.c: Likewise.
30535 * lib/argp-fmtstream.h: Likewise.
30536 * lib/argp-fs-xinl.c: Likewise.
30537 * lib/argp-help.c: Likewise.
30538 * lib/argp-namefrob.h: Likewise.
30539 * lib/argp-parse.c: Likewise.
30540 * lib/argp-pin.c: Likewise.
30541 * lib/argp-pv.c: Likewise.
30542 * lib/argp-pvh.c: Likewise.
30543 * lib/argp-xinl.c: Likewise.
30544 * lib/argp.h: Likewise.
30545 * lib/at-func.c: Likewise.
30546 * lib/atanl.c: Likewise.
30547 * lib/backupfile.c: Likewise.
30548 * lib/backupfile.h: Likewise.
30549 * lib/basename.c: Likewise.
30550 * lib/binary-io.h: Likewise.
30551 * lib/byteswap.in.h: Likewise.
30552 * lib/c-stack.c: Likewise.
30553 * lib/c-stack.h: Likewise.
30554 * lib/c-strcasestr.c: Likewise.
30555 * lib/c-strcasestr.h: Likewise.
30556 * lib/c-strstr.c: Likewise.
30557 * lib/c-strstr.h: Likewise.
30558 * lib/c-strtod.c: Likewise.
30559 * lib/calloc.c: Likewise.
30560 * lib/canon-host.c: Likewise.
30561 * lib/canon-host.h: Likewise.
30562 * lib/canonicalize-lgpl.c: Likewise.
30563 * lib/canonicalize.c: Likewise.
30564 * lib/canonicalize.h: Likewise.
30565 * lib/ceil.c: Likewise.
30566 * lib/ceilf.c: Likewise.
30567 * lib/ceill.c: Likewise.
30568 * lib/chdir-long.c: Likewise.
30569 * lib/chdir-long.h: Likewise.
30570 * lib/chdir-safer.c: Likewise.
30571 * lib/chdir-safer.h: Likewise.
30572 * lib/chown.c: Likewise.
30573 * lib/classpath.c: Likewise.
30574 * lib/classpath.h: Likewise.
30575 * lib/clean-temp.c: Likewise.
30576 * lib/clean-temp.h: Likewise.
30577 * lib/cloexec.c: Likewise.
30578 * lib/close-stream.c: Likewise.
30579 * lib/closein.c: Likewise.
30580 * lib/closein.h: Likewise.
30581 * lib/closeout.c: Likewise.
30582 * lib/closeout.h: Likewise.
30583 * lib/concat-filename.c: Likewise.
30584 * lib/copy-file.c: Likewise.
30585 * lib/copy-file.h: Likewise.
30586 * lib/count-one-bits.h: Likewise.
30587 * lib/crc.c: Likewise.
30588 * lib/crc.h: Likewise.
30589 * lib/creat-safer.c: Likewise.
30590 * lib/csharpcomp.c: Likewise.
30591 * lib/csharpcomp.h: Likewise.
30592 * lib/csharpexec.c: Likewise.
30593 * lib/csharpexec.h: Likewise.
30594 * lib/cycle-check.c: Likewise.
30595 * lib/cycle-check.h: Likewise.
30596 * lib/diacrit.c: Likewise.
30597 * lib/diacrit.h: Likewise.
30598 * lib/diffseq.h: Likewise.
30599 * lib/dirchownmod.c: Likewise.
30600 * lib/dirent.in.h: Likewise.
30601 * lib/dirfd.c: Likewise.
30602 * lib/dirfd.h: Likewise.
30603 * lib/dirname.c: Likewise.
30604 * lib/dirname.h: Likewise.
30605 * lib/dummy.c: Likewise.
30606 * lib/dup-safer.c: Likewise.
30607 * lib/dup2.c: Likewise.
30608 * lib/eealloc.h: Likewise.
30609 * lib/error.c: Likewise.
30610 * lib/error.h: Likewise.
30611 * lib/euidaccess.c: Likewise.
30612 * lib/exclude.c: Likewise.
30613 * lib/exclude.h: Likewise.
30614 * lib/execute.c: Likewise.
30615 * lib/execute.h: Likewise.
30616 * lib/exitfail.c: Likewise.
30617 * lib/exitfail.h: Likewise.
30618 * lib/expl.c: Likewise.
30619 * lib/fatal-signal.c: Likewise.
30620 * lib/fatal-signal.h: Likewise.
30621 * lib/fbufmode.c: Likewise.
30622 * lib/fbufmode.h: Likewise.
30623 * lib/fchdir.c: Likewise.
30624 * lib/fchmodat.c: Likewise.
30625 * lib/fchownat.c: Likewise.
30626 * lib/fcntl--.h: Likewise.
30627 * lib/fcntl-safer.h: Likewise.
30628 * lib/fcntl.in.h: Likewise.
30629 * lib/fd-safer.c: Likewise.
30630 * lib/fflush.c: Likewise.
30631 * lib/file-has-acl.c: Likewise.
30632 * lib/file-set.c: Likewise.
30633 * lib/file-type.c: Likewise.
30634 * lib/file-type.h: Likewise.
30635 * lib/fileblocks.c: Likewise.
30636 * lib/filemode.c: Likewise.
30637 * lib/filemode.h: Likewise.
30638 * lib/filename.h: Likewise.
30639 * lib/filenamecat.c: Likewise.
30640 * lib/filenamecat.h: Likewise.
30641 * lib/findprog.c: Likewise.
30642 * lib/findprog.h: Likewise.
30643 * lib/float.in.h: Likewise.
30644 * lib/floor.c: Likewise.
30645 * lib/floorf.c: Likewise.
30646 * lib/floorl.c: Likewise.
30647 * lib/fopen-safer.c: Likewise.
30648 * lib/fopen.c: Likewise.
30649 * lib/fpending.c: Likewise.
30650 * lib/fpending.h: Likewise.
30651 * lib/fprintf.c: Likewise.
30652 * lib/fprintftime.h: Likewise.
30653 * lib/fpucw.h: Likewise.
30654 * lib/fpurge.c: Likewise.
30655 * lib/fpurge.h: Likewise.
30656 * lib/freadable.c: Likewise.
30657 * lib/freadable.h: Likewise.
30658 * lib/freadahead.c: Likewise.
30659 * lib/freadahead.h: Likewise.
30660 * lib/freading.c: Likewise.
30661 * lib/freading.h: Likewise.
30662 * lib/free.c: Likewise.
30663 * lib/freopen.c: Likewise.
30664 * lib/frexp.c: Likewise.
30665 * lib/frexpl.c: Likewise.
30666 * lib/fseek.c: Likewise.
30667 * lib/fseterr.c: Likewise.
30668 * lib/fseterr.h: Likewise.
30669 * lib/fstatat.c: Likewise.
30670 * lib/fstrcmp.c: Likewise.
30671 * lib/fstrcmp.h: Likewise.
30672 * lib/fsusage.c: Likewise.
30673 * lib/fsusage.h: Likewise.
30674 * lib/ftell.c: Likewise.
30675 * lib/ftello.c: Likewise.
30676 * lib/fts-cycle.c: Likewise.
30677 * lib/fts.c: Likewise.
30678 * lib/fts_.h: Likewise.
30679 * lib/full-read.c: Likewise.
30680 * lib/full-read.h: Likewise.
30681 * lib/full-write.c: Likewise.
30682 * lib/full-write.h: Likewise.
30683 * lib/fwritable.c: Likewise.
30684 * lib/fwritable.h: Likewise.
30685 * lib/fwriteerror.c: Likewise.
30686 * lib/fwriteerror.h: Likewise.
30687 * lib/fwriting.c: Likewise.
30688 * lib/fwriting.h: Likewise.
30689 * lib/gcd.c: Likewise.
30690 * lib/gcd.h: Likewise.
30691 * lib/getcwd.c: Likewise.
30692 * lib/getdate.h: Likewise.
30693 * lib/getdate.y: Likewise.
30694 * lib/getdomainname.c: Likewise.
30695 * lib/getdomainname.h: Likewise.
30696 * lib/getgroups.c: Likewise.
30697 * lib/gethostname.c: Likewise.
30698 * lib/gethrxtime.c: Likewise.
30699 * lib/gethrxtime.h: Likewise.
30700 * lib/getloadavg.c: Likewise.
30701 * lib/getndelim2.c: Likewise.
30702 * lib/getndelim2.h: Likewise.
30703 * lib/getnline.c: Likewise.
30704 * lib/getnline.h: Likewise.
30705 * lib/getopt.c: Likewise.
30706 * lib/getopt.in.h: Likewise.
30707 * lib/getopt1.c: Likewise.
30708 * lib/getopt_int.h: Likewise.
30709 * lib/getpagesize.h: Likewise.
30710 * lib/getsubopt.c: Likewise.
30711 * lib/gettime.c: Likewise.
30712 * lib/getugroups.c: Likewise.
30713 * lib/getugroups.h: Likewise.
30714 * lib/getusershell.c: Likewise.
30715 * lib/gl_anyavltree_list1.h: Likewise.
30716 * lib/gl_anyavltree_list2.h: Likewise.
30717 * lib/gl_anyhash_list1.h: Likewise.
30718 * lib/gl_anyhash_list2.h: Likewise.
30719 * lib/gl_anylinked_list1.h: Likewise.
30720 * lib/gl_anylinked_list2.h: Likewise.
30721 * lib/gl_anyrbtree_list1.h: Likewise.
30722 * lib/gl_anyrbtree_list2.h: Likewise.
30723 * lib/gl_anytree_list1.h: Likewise.
30724 * lib/gl_anytree_list2.h: Likewise.
30725 * lib/gl_anytree_oset.h: Likewise.
30726 * lib/gl_anytreehash_list1.h: Likewise.
30727 * lib/gl_anytreehash_list2.h: Likewise.
30728 * lib/gl_array_list.c: Likewise.
30729 * lib/gl_array_list.h: Likewise.
30730 * lib/gl_array_oset.c: Likewise.
30731 * lib/gl_array_oset.h: Likewise.
30732 * lib/gl_avltree_list.c: Likewise.
30733 * lib/gl_avltree_list.h: Likewise.
30734 * lib/gl_avltree_oset.c: Likewise.
30735 * lib/gl_avltree_oset.h: Likewise.
30736 * lib/gl_avltreehash_list.c: Likewise.
30737 * lib/gl_avltreehash_list.h: Likewise.
30738 * lib/gl_carray_list.c: Likewise.
30739 * lib/gl_carray_list.h: Likewise.
30740 * lib/gl_linked_list.c: Likewise.
30741 * lib/gl_linked_list.h: Likewise.
30742 * lib/gl_linkedhash_list.c: Likewise.
30743 * lib/gl_linkedhash_list.h: Likewise.
30744 * lib/gl_list.c: Likewise.
30745 * lib/gl_list.h: Likewise.
30746 * lib/gl_oset.c: Likewise.
30747 * lib/gl_oset.h: Likewise.
30748 * lib/gl_rbtree_list.c: Likewise.
30749 * lib/gl_rbtree_list.h: Likewise.
30750 * lib/gl_rbtree_oset.c: Likewise.
30751 * lib/gl_rbtree_oset.h: Likewise.
30752 * lib/gl_rbtreehash_list.c: Likewise.
30753 * lib/gl_rbtreehash_list.h: Likewise.
30754 * lib/gl_sublist.c: Likewise.
30755 * lib/gl_sublist.h: Likewise.
30756 * lib/group-member.c: Likewise.
30757 * lib/group-member.h: Likewise.
30758 * lib/hard-locale.c: Likewise.
30759 * lib/hard-locale.h: Likewise.
30760 * lib/hash-pjw.c: Likewise.
30761 * lib/hash-pjw.h: Likewise.
30762 * lib/hash-triple.c: Likewise.
30763 * lib/hash.c: Likewise.
30764 * lib/hash.h: Likewise.
30765 * lib/human.c: Likewise.
30766 * lib/human.h: Likewise.
30767 * lib/i-ring.c: Likewise.
30768 * lib/i-ring.h: Likewise.
30769 * lib/idcache.c: Likewise.
30770 * lib/imaxabs.c: Likewise.
30771 * lib/imaxdiv.c: Likewise.
30772 * lib/inet_pton.c: Likewise.
30773 * lib/inet_pton.h: Likewise.
30774 * lib/intprops.h: Likewise.
30775 * lib/inttostr.c: Likewise.
30776 * lib/inttostr.h: Likewise.
30777 * lib/inttypes.in.h: Likewise.
30778 * lib/isapipe.c: Likewise.
30779 * lib/isdir.c: Likewise.
30780 * lib/isnan.c: Likewise.
30781 * lib/isnan.h: Likewise.
30782 * lib/isnanf.c: Likewise.
30783 * lib/isnanf.h: Likewise.
30784 * lib/isnanl-nolibm.h: Likewise.
30785 * lib/isnanl.c: Likewise.
30786 * lib/isnanl.h: Likewise.
30787 * lib/javacomp.c: Likewise.
30788 * lib/javacomp.h: Likewise.
30789 * lib/javaexec.c: Likewise.
30790 * lib/javaexec.h: Likewise.
30791 * lib/javaversion.c: Likewise.
30792 * lib/javaversion.h: Likewise.
30793 * lib/javaversion.java: Likewise.
30794 * lib/lbrkprop.h: Likewise.
30795 * lib/lchmod.h: Likewise.
30796 * lib/lchown.c: Likewise.
30797 * lib/ldexpl.c: Likewise.
30798 * lib/linebreak.c: Likewise.
30799 * lib/linebreak.h: Likewise.
30800 * lib/linebuffer.c: Likewise.
30801 * lib/linebuffer.h: Likewise.
30802 * lib/locale.in.h: Likewise.
30803 * lib/logl.c: Likewise.
30804 * lib/long-options.c: Likewise.
30805 * lib/long-options.h: Likewise.
30806 * lib/lstat.c: Likewise.
30807 * lib/lstat.h: Likewise.
30808 * lib/math.in.h: Likewise.
30809 * lib/mbchar.c: Likewise.
30810 * lib/mbchar.h: Likewise.
30811 * lib/mbfile.h: Likewise.
30812 * lib/mbiter.h: Likewise.
30813 * lib/mbscasecmp.c: Likewise.
30814 * lib/mbscasestr.c: Likewise.
30815 * lib/mbschr.c: Likewise.
30816 * lib/mbscspn.c: Likewise.
30817 * lib/mbslen.c: Likewise.
30818 * lib/mbsncasecmp.c: Likewise.
30819 * lib/mbsnlen.c: Likewise.
30820 * lib/mbspbrk.c: Likewise.
30821 * lib/mbspcasecmp.c: Likewise.
30822 * lib/mbsrchr.c: Likewise.
30823 * lib/mbssep.c: Likewise.
30824 * lib/mbsspn.c: Likewise.
30825 * lib/mbsstr.c: Likewise.
30826 * lib/mbstok_r.c: Likewise.
30827 * lib/mbswidth.c: Likewise.
30828 * lib/mbswidth.h: Likewise.
30829 * lib/mbuiter.h: Likewise.
30830 * lib/memcasecmp.c: Likewise.
30831 * lib/memcasecmp.h: Likewise.
30832 * lib/memchr.c: Likewise.
30833 * lib/memcmp.c: Likewise.
30834 * lib/memcoll.c: Likewise.
30835 * lib/memcoll.h: Likewise.
30836 * lib/memcpy.c: Likewise.
30837 * lib/memrchr.c: Likewise.
30838 * lib/mkancesdirs.c: Likewise.
30839 * lib/mkdir-p.c: Likewise.
30840 * lib/mkdir-p.h: Likewise.
30841 * lib/mkdir.c: Likewise.
30842 * lib/mkdirat.c: Likewise.
30843 * lib/mkdtemp.c: Likewise.
30844 * lib/mkstemp-safer.c: Likewise.
30845 * lib/mkstemp.c: Likewise.
30846 * lib/modechange.c: Likewise.
30847 * lib/modechange.h: Likewise.
30848 * lib/mountlist.c: Likewise.
30849 * lib/mountlist.h: Likewise.
30850 * lib/mpsort.c: Likewise.
30851 * lib/nanosleep.c: Likewise.
30852 * lib/obstack.c: Likewise.
30853 * lib/obstack.h: Likewise.
30854 * lib/open-safer.c: Likewise.
30855 * lib/open.c: Likewise.
30856 * lib/openat-die.c: Likewise.
30857 * lib/openat-priv.h: Likewise.
30858 * lib/openat-proc.c: Likewise.
30859 * lib/openat.c: Likewise.
30860 * lib/openat.h: Likewise.
30861 * lib/pagealign_alloc.c: Likewise.
30862 * lib/pagealign_alloc.h: Likewise.
30863 * lib/physmem.c: Likewise.
30864 * lib/physmem.h: Likewise.
30865 * lib/pipe-safer.c: Likewise.
30866 * lib/pipe.c: Likewise.
30867 * lib/pipe.h: Likewise.
30868 * lib/posixtm.c: Likewise.
30869 * lib/posixtm.h: Likewise.
30870 * lib/posixver.c: Likewise.
30871 * lib/printf-frexp.c: Likewise.
30872 * lib/printf-frexp.h: Likewise.
30873 * lib/printf-frexpl.c: Likewise.
30874 * lib/printf-frexpl.h: Likewise.
30875 * lib/printf.c: Likewise.
30876 * lib/progname.c: Likewise.
30877 * lib/progname.h: Likewise.
30878 * lib/progreloc.c: Likewise.
30879 * lib/putenv.c: Likewise.
30880 * lib/quote.c: Likewise.
30881 * lib/quote.h: Likewise.
30882 * lib/quotearg.c: Likewise.
30883 * lib/quotearg.h: Likewise.
30884 * lib/raise.c: Likewise.
30885 * lib/readline.c: Likewise.
30886 * lib/readline.h: Likewise.
30887 * lib/readlink.c: Likewise.
30888 * lib/readtokens.c: Likewise.
30889 * lib/readtokens.h: Likewise.
30890 * lib/readtokens0.c: Likewise.
30891 * lib/readtokens0.h: Likewise.
30892 * lib/readutmp.c: Likewise.
30893 * lib/readutmp.h: Likewise.
30894 * lib/realloc.c: Likewise.
30895 * lib/relocwrapper.c: Likewise.
30896 * lib/rename-dest-slash.c: Likewise.
30897 * lib/rename.c: Likewise.
30898 * lib/rmdir.c: Likewise.
30899 * lib/rpmatch.c: Likewise.
30900 * lib/safe-read.c: Likewise.
30901 * lib/safe-read.h: Likewise.
30902 * lib/safe-write.c: Likewise.
30903 * lib/safe-write.h: Likewise.
30904 * lib/same-inode.h: Likewise.
30905 * lib/same.c: Likewise.
30906 * lib/same.h: Likewise.
30907 * lib/save-cwd.c: Likewise.
30908 * lib/save-cwd.h: Likewise.
30909 * lib/savedir.c: Likewise.
30910 * lib/savedir.h: Likewise.
30911 * lib/savewd.c: Likewise.
30912 * lib/savewd.h: Likewise.
30913 * lib/search.in.h: Likewise.
30914 * lib/setenv.c: Likewise.
30915 * lib/setenv.h: Likewise.
30916 * lib/settime.c: Likewise.
30917 * lib/sh-quote.c: Likewise.
30918 * lib/sh-quote.h: Likewise.
30919 * lib/sig2str.c: Likewise.
30920 * lib/sig2str.h: Likewise.
30921 * lib/signal.in.h: Likewise.
30922 * lib/signbitd.c: Likewise.
30923 * lib/signbitf.c: Likewise.
30924 * lib/signbitl.c: Likewise.
30925 * lib/sigprocmask.c: Likewise.
30926 * lib/sincosl.c: Likewise.
30927 * lib/sleep.c: Likewise.
30928 * lib/sprintf.c: Likewise.
30929 * lib/sqrtl.c: Likewise.
30930 * lib/stat-time.h: Likewise.
30931 * lib/stdio--.h: Likewise.
30932 * lib/stdio-safer.h: Likewise.
30933 * lib/stdlib--.h: Likewise.
30934 * lib/stdlib-safer.h: Likewise.
30935 * lib/stdlib.in.h: Likewise.
30936 * lib/stpcpy.c: Likewise.
30937 * lib/stpncpy.c: Likewise.
30938 * lib/strchrnul.c: Likewise.
30939 * lib/strcspn.c: Likewise.
30940 * lib/strerror.c: Likewise.
30941 * lib/strftime.c: Likewise.
30942 * lib/strftime.h: Likewise.
30943 * lib/striconveh.c: Likewise.
30944 * lib/striconveh.h: Likewise.
30945 * lib/striconveha.c: Likewise.
30946 * lib/striconveha.h: Likewise.
30947 * lib/stripslash.c: Likewise.
30948 * lib/strnlen1.c: Likewise.
30949 * lib/strnlen1.h: Likewise.
30950 * lib/strtod.c: Likewise.
30951 * lib/strtoimax.c: Likewise.
30952 * lib/strtok_r.c: Likewise.
30953 * lib/strtol.c: Likewise.
30954 * lib/strtoll.c: Likewise.
30955 * lib/strtoul.c: Likewise.
30956 * lib/strtoull.c: Likewise.
30957 * lib/sysexits.in.h: Likewise.
30958 * lib/tempname.c: Likewise.
30959 * lib/tempname.h: Likewise.
30960 * lib/timespec.h: Likewise.
30961 * lib/tls.c: Likewise.
30962 * lib/tls.h: Likewise.
30963 * lib/tmpdir.c: Likewise.
30964 * lib/tmpdir.h: Likewise.
30965 * lib/tmpfile-safer.c: Likewise.
30966 * lib/tmpfile.c: Likewise.
30967 * lib/trigl.c: Likewise.
30968 * lib/trigl.h: Likewise.
30969 * lib/trim.c: Likewise.
30970 * lib/trim.h: Likewise.
30971 * lib/trunc.c: Likewise.
30972 * lib/truncf.c: Likewise.
30973 * lib/truncl.c: Likewise.
30974 * lib/tsearch.c: Likewise.
30975 * lib/unicodeio.c: Likewise.
30976 * lib/unicodeio.h: Likewise.
30977 * lib/unistd--.h: Likewise.
30978 * lib/unistd-safer.h: Likewise.
30979 * lib/unistdio/ulc-fprintf.c: Likewise.
30980 * lib/unistdio/ulc-vfprintf.c: Likewise.
30981 * lib/unlinkdir.c: Likewise.
30982 * lib/unlinkdir.h: Likewise.
30983 * lib/unlocked-io.h: Likewise.
30984 * lib/unsetenv.c: Likewise.
30985 * lib/userspec.c: Likewise.
30986 * lib/utime.c: Likewise.
30987 * lib/utimecmp.c: Likewise.
30988 * lib/utimecmp.h: Likewise.
30989 * lib/utimens.c: Likewise.
30990 * lib/verify.h: Likewise.
30991 * lib/verror.c: Likewise.
30992 * lib/verror.h: Likewise.
30993 * lib/version-etc-fsf.c: Likewise.
30994 * lib/version-etc.c: Likewise.
30995 * lib/version-etc.h: Likewise.
30996 * lib/vfprintf.c: Likewise.
30997 * lib/vprintf.c: Likewise.
30998 * lib/vsprintf.c: Likewise.
30999 * lib/w32spawn.h: Likewise.
31000 * lib/wait-process.c: Likewise.
31001 * lib/wait-process.h: Likewise.
31002 * lib/wcwidth.c: Likewise.
31003 * lib/write-any-file.c: Likewise.
31004 * lib/xalloc-die.c: Likewise.
31005 * lib/xalloc.h: Likewise.
31006 * lib/xasprintf.c: Likewise.
31007 * lib/xgetcwd.c: Likewise.
31008 * lib/xgetcwd.h: Likewise.
31009 * lib/xgetdomainname.c: Likewise.
31010 * lib/xgetdomainname.h: Likewise.
31011 * lib/xgethostname.c: Likewise.
31012 * lib/xmalloc.c: Likewise.
31013 * lib/xmalloca.c: Likewise.
31014 * lib/xmalloca.h: Likewise.
31015 * lib/xmemcoll.c: Likewise.
31016 * lib/xnanosleep.c: Likewise.
31017 * lib/xreadlink.c: Likewise.
31018 * lib/xreadlink.h: Likewise.
31019 * lib/xsetenv.c: Likewise.
31020 * lib/xsetenv.h: Likewise.
31021 * lib/xstriconv.c: Likewise.
31022 * lib/xstriconv.h: Likewise.
31023 * lib/xstrndup.c: Likewise.
31024 * lib/xstrndup.h: Likewise.
31025 * lib/xstrtod.c: Likewise.
31026 * lib/xstrtod.h: Likewise.
31027 * lib/xstrtol-error.c: Likewise.
31028 * lib/xstrtol.c: Likewise.
31029 * lib/xstrtol.h: Likewise.
31030 * lib/xtime.h: Likewise.
31031 * lib/xvasprintf.c: Likewise.
31032 * lib/xvasprintf.h: Likewise.
31033 * lib/yesno.c: Likewise.
31034 * lib/yesno.h: Likewise.
31035 * posix-modules: Likewise.
31036 * tests/test-alloca-opt.c: Likewise.
31037 * tests/test-arcfour.c: Likewise.
31038 * tests/test-arctwo.c: Likewise.
31039 * tests/test-argmatch.c: Likewise.
31040 * tests/test-argp-2.sh: Likewise.
31041 * tests/test-argp.c: Likewise.
31042 * tests/test-arpa_inet.c: Likewise.
31043 * tests/test-array_list.c: Likewise.
31044 * tests/test-array_oset.c: Likewise.
31045 * tests/test-atexit.c: Likewise.
31046 * tests/test-avltree_list.c: Likewise.
31047 * tests/test-avltree_oset.c: Likewise.
31048 * tests/test-avltreehash_list.c: Likewise.
31049 * tests/test-base64.c: Likewise.
31050 * tests/test-binary-io.c: Likewise.
31051 * tests/test-byteswap.c: Likewise.
31052 * tests/test-c-ctype.c: Likewise.
31053 * tests/test-c-strcasecmp.c: Likewise.
31054 * tests/test-c-strcasestr.c: Likewise.
31055 * tests/test-c-strncasecmp.c: Likewise.
31056 * tests/test-c-strstr.c: Likewise.
31057 * tests/test-canonicalize-lgpl.c: Likewise.
31058 * tests/test-canonicalize.c: Likewise.
31059 * tests/test-carray_list.c: Likewise.
31060 * tests/test-ceilf.c: Likewise.
31061 * tests/test-ceill.c: Likewise.
31062 * tests/test-count-one-bits.c: Likewise.
31063 * tests/test-crc.c: Likewise.
31064 * tests/test-dirname.c: Likewise.
31065 * tests/test-fbufmode.c: Likewise.
31066 * tests/test-fcntl.c: Likewise.
31067 * tests/test-fflush.c: Likewise.
31068 * tests/test-floorf.c: Likewise.
31069 * tests/test-floorl.c: Likewise.
31070 * tests/test-fopen.c: Likewise.
31071 * tests/test-fprintf-posix.c: Likewise.
31072 * tests/test-fprintf-posix.h: Likewise.
31073 * tests/test-fpurge.c: Likewise.
31074 * tests/test-freadable.c: Likewise.
31075 * tests/test-freadahead.c: Likewise.
31076 * tests/test-freading.c: Likewise.
31077 * tests/test-freopen.c: Likewise.
31078 * tests/test-frexp.c: Likewise.
31079 * tests/test-frexpl.c: Likewise.
31080 * tests/test-fseek.c: Likewise.
31081 * tests/test-fseeko.c: Likewise.
31082 * tests/test-fseterr.c: Likewise.
31083 * tests/test-fstrcmp.c: Likewise.
31084 * tests/test-ftell.c: Likewise.
31085 * tests/test-ftello.c: Likewise.
31086 * tests/test-fwritable.c: Likewise.
31087 * tests/test-fwriting.c: Likewise.
31088 * tests/test-getaddrinfo.c: Likewise.
31089 * tests/test-getpass.c: Likewise.
31090 * tests/test-gettimeofday.c: Likewise.
31091 * tests/test-hmac-md5.c: Likewise.
31092 * tests/test-hmac-sha1.c: Likewise.
31093 * tests/test-iconv.c: Likewise.
31094 * tests/test-iconvme.c: Likewise.
31095 * tests/test-inttypes.c: Likewise.
31096 * tests/test-isnan.c: Likewise.
31097 * tests/test-isnanf.c: Likewise.
31098 * tests/test-isnanl-nolibm.c: Likewise.
31099 * tests/test-isnanl.c: Likewise.
31100 * tests/test-isnanl.h: Likewise.
31101 * tests/test-ldexpl.c: Likewise.
31102 * tests/test-linked_list.c: Likewise.
31103 * tests/test-linkedhash_list.c: Likewise.
31104 * tests/test-locale.c: Likewise.
31105 * tests/test-localename.c: Likewise.
31106 * tests/test-lock.c: Likewise.
31107 * tests/test-lseek.c: Likewise.
31108 * tests/test-malloca.c: Likewise.
31109 * tests/test-math.c: Likewise.
31110 * tests/test-mbscasecmp.c: Likewise.
31111 * tests/test-mbscasestr1.c: Likewise.
31112 * tests/test-mbscasestr2.c: Likewise.
31113 * tests/test-mbscasestr3.c: Likewise.
31114 * tests/test-mbscasestr4.c: Likewise.
31115 * tests/test-mbschr.c: Likewise.
31116 * tests/test-mbscspn.c: Likewise.
31117 * tests/test-mbsncasecmp.c: Likewise.
31118 * tests/test-mbspbrk.c: Likewise.
31119 * tests/test-mbspcasecmp.c: Likewise.
31120 * tests/test-mbsrchr.c: Likewise.
31121 * tests/test-mbsspn.c: Likewise.
31122 * tests/test-mbsstr1.c: Likewise.
31123 * tests/test-mbsstr2.c: Likewise.
31124 * tests/test-mbsstr3.c: Likewise.
31125 * tests/test-md5.c: Likewise.
31126 * tests/test-memmem.c: Likewise.
31127 * tests/test-netinet_in.c: Likewise.
31128 * tests/test-open.c: Likewise.
31129 * tests/test-printf-frexp.c: Likewise.
31130 * tests/test-printf-frexpl.c: Likewise.
31131 * tests/test-printf-posix.c: Likewise.
31132 * tests/test-printf-posix.h: Likewise.
31133 * tests/test-rbtree_list.c: Likewise.
31134 * tests/test-rbtree_oset.c: Likewise.
31135 * tests/test-rbtreehash_list.c: Likewise.
31136 * tests/test-read-file.c: Likewise.
31137 * tests/test-rijndael.c: Likewise.
31138 * tests/test-search.c: Likewise.
31139 * tests/test-signbit.c: Likewise.
31140 * tests/test-sleep.c: Likewise.
31141 * tests/test-snprintf-posix.c: Likewise.
31142 * tests/test-snprintf-posix.h: Likewise.
31143 * tests/test-snprintf.c: Likewise.
31144 * tests/test-sprintf-posix.c: Likewise.
31145 * tests/test-sprintf-posix.h: Likewise.
31146 * tests/test-stat-time.c: Likewise.
31147 * tests/test-stdbool.c: Likewise.
31148 * tests/test-stdint.c: Likewise.
31149 * tests/test-stdio.c: Likewise.
31150 * tests/test-stdlib.c: Likewise.
31151 * tests/test-stpncpy.c: Likewise.
31152 * tests/test-strcasestr.c: Likewise.
31153 * tests/test-striconv.c: Likewise.
31154 * tests/test-striconveh.c: Likewise.
31155 * tests/test-striconveha.c: Likewise.
31156 * tests/test-string.c: Likewise.
31157 * tests/test-sys_select.c: Likewise.
31158 * tests/test-sys_socket.c: Likewise.
31159 * tests/test-sys_stat.c: Likewise.
31160 * tests/test-sys_time.c: Likewise.
31161 * tests/test-sysexits.c: Likewise.
31162 * tests/test-time.c: Likewise.
31163 * tests/test-tls.c: Likewise.
31164 * tests/test-trunc.c: Likewise.
31165 * tests/test-truncf.c: Likewise.
31166 * tests/test-truncl.c: Likewise.
31167 * tests/test-unistd.c: Likewise.
31168 * tests/test-vasnprintf-posix.c: Likewise.
31169 * tests/test-vasnprintf-posix2.c: Likewise.
31170 * tests/test-vasnprintf.c: Likewise.
31171 * tests/test-vasprintf-posix.c: Likewise.
31172 * tests/test-vasprintf.c: Likewise.
31173 * tests/test-verify.c: Likewise.
31174 * tests/test-vfprintf-posix.c: Likewise.
31175 * tests/test-vprintf-posix.c: Likewise.
31176 * tests/test-vsnprintf-posix.c: Likewise.
31177 * tests/test-vsnprintf.c: Likewise.
31178 * tests/test-vsprintf-posix.c: Likewise.
31179 * tests/test-wchar.c: Likewise.
31180 * tests/test-wctype.c: Likewise.
31181 * tests/test-wcwidth.c: Likewise.
31182 * tests/test-xstrtol.c: Likewise.
31183 * tests/test-xvasprintf.c: Likewise.
31184 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31185 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31186 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31187 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31188 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31189 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31190 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31191 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31192 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31193 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31194 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31195 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31196 * tests/uniname/test-uninames.c: Likewise.
31197 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31198 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31199 * tests/unistdio/test-u16-printf1.h: Likewise.
31200 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31201 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31202 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31203 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31204 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31205 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31206 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31207 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31208 * tests/unistdio/test-u32-printf1.h: Likewise.
31209 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31210 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31211 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31212 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31213 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31214 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31215 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31216 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31217 * tests/unistdio/test-u8-printf1.h: Likewise.
31218 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31219 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31220 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31221 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31222 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31223 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31224 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31225 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31226 * tests/unistdio/test-ulc-printf1.h: Likewise.
31227 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31228 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31229 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31230 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31231 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31232 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31233 * tests/uniwidth/test-u16-strwidth.c: Likewise.
31234 * tests/uniwidth/test-u16-width.c: Likewise.
31235 * tests/uniwidth/test-u32-strwidth.c: Likewise.
31236 * tests/uniwidth/test-u32-width.c: Likewise.
31237 * tests/uniwidth/test-u8-strwidth.c: Likewise.
31238 * tests/uniwidth/test-u8-width.c: Likewise.
31239 * tests/uniwidth/test-uc_width.c: Likewise.
31240 * config/srclist-update: Likewise.
31241 (fixlicense): Update to GPLv3+.
31243 Change copyright notice from LGPLv2.1+ to LGPLv3+.
31244 * tests/test-tsearch.c: Change copyright notice.
31246 Change copyright notice from LGPLv2.0+ to LGPLv3+.
31247 * lib/c-strcaseeq.h: Change copyright notice.
31248 * lib/streq.h: Likewise.
31249 * lib/uniconv.h: Likewise.
31250 * lib/uniconv/u-conv-from-enc.h: Likewise.
31251 * lib/uniconv/u-conv-to-enc.h: Likewise.
31252 * lib/uniconv/u-strconv-from-enc.h: Likewise.
31253 * lib/uniconv/u-strconv-to-enc.h: Likewise.
31254 * lib/uniconv/u16-conv-from-enc.c: Likewise.
31255 * lib/uniconv/u16-conv-to-enc.c: Likewise.
31256 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31257 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31258 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31259 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31260 * lib/uniconv/u32-conv-from-enc.c: Likewise.
31261 * lib/uniconv/u32-conv-to-enc.c: Likewise.
31262 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31263 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31264 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31265 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31266 * lib/uniconv/u8-conv-from-enc.c: Likewise.
31267 * lib/uniconv/u8-conv-to-enc.c: Likewise.
31268 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31269 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31270 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31271 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31272 * lib/uniname.h: Likewise.
31273 * lib/uniname/uniname.c: Likewise.
31274 * lib/unistdio.h: Likewise.
31275 * lib/unistdio/u-asnprintf.h: Likewise.
31276 * lib/unistdio/u-asprintf.h: Likewise.
31277 * lib/unistdio/u-printf-args.c: Likewise.
31278 * lib/unistdio/u-printf-args.h: Likewise.
31279 * lib/unistdio/u-printf-parse.h: Likewise.
31280 * lib/unistdio/u-snprintf.h: Likewise.
31281 * lib/unistdio/u-sprintf.h: Likewise.
31282 * lib/unistdio/u-vasprintf.h: Likewise.
31283 * lib/unistdio/u-vsnprintf.h: Likewise.
31284 * lib/unistdio/u-vsprintf.h: Likewise.
31285 * lib/unistdio/u16-asnprintf.c: Likewise.
31286 * lib/unistdio/u16-asprintf.c: Likewise.
31287 * lib/unistdio/u16-printf-parse.c: Likewise.
31288 * lib/unistdio/u16-snprintf.c: Likewise.
31289 * lib/unistdio/u16-sprintf.c: Likewise.
31290 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31291 * lib/unistdio/u16-u16-asprintf.c: Likewise.
31292 * lib/unistdio/u16-u16-snprintf.c: Likewise.
31293 * lib/unistdio/u16-u16-sprintf.c: Likewise.
31294 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31295 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31296 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31297 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31298 * lib/unistdio/u16-vasnprintf.c: Likewise.
31299 * lib/unistdio/u16-vasprintf.c: Likewise.
31300 * lib/unistdio/u16-vsnprintf.c: Likewise.
31301 * lib/unistdio/u16-vsprintf.c: Likewise.
31302 * lib/unistdio/u32-asnprintf.c: Likewise.
31303 * lib/unistdio/u32-asprintf.c: Likewise.
31304 * lib/unistdio/u32-printf-parse.c: Likewise.
31305 * lib/unistdio/u32-snprintf.c: Likewise.
31306 * lib/unistdio/u32-sprintf.c: Likewise.
31307 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31308 * lib/unistdio/u32-u32-asprintf.c: Likewise.
31309 * lib/unistdio/u32-u32-snprintf.c: Likewise.
31310 * lib/unistdio/u32-u32-sprintf.c: Likewise.
31311 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31312 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31313 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31314 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31315 * lib/unistdio/u32-vasnprintf.c: Likewise.
31316 * lib/unistdio/u32-vasprintf.c: Likewise.
31317 * lib/unistdio/u32-vsnprintf.c: Likewise.
31318 * lib/unistdio/u32-vsprintf.c: Likewise.
31319 * lib/unistdio/u8-asnprintf.c: Likewise.
31320 * lib/unistdio/u8-asprintf.c: Likewise.
31321 * lib/unistdio/u8-printf-parse.c: Likewise.
31322 * lib/unistdio/u8-snprintf.c: Likewise.
31323 * lib/unistdio/u8-sprintf.c: Likewise.
31324 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31325 * lib/unistdio/u8-u8-asprintf.c: Likewise.
31326 * lib/unistdio/u8-u8-snprintf.c: Likewise.
31327 * lib/unistdio/u8-u8-sprintf.c: Likewise.
31328 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31329 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31330 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31331 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31332 * lib/unistdio/u8-vasnprintf.c: Likewise.
31333 * lib/unistdio/u8-vasprintf.c: Likewise.
31334 * lib/unistdio/u8-vsnprintf.c: Likewise.
31335 * lib/unistdio/u8-vsprintf.c: Likewise.
31336 * lib/unistdio/ulc-asnprintf.c: Likewise.
31337 * lib/unistdio/ulc-asprintf.c: Likewise.
31338 * lib/unistdio/ulc-printf-parse.c: Likewise.
31339 * lib/unistdio/ulc-snprintf.c: Likewise.
31340 * lib/unistdio/ulc-sprintf.c: Likewise.
31341 * lib/unistdio/ulc-vasnprintf.c: Likewise.
31342 * lib/unistdio/ulc-vasprintf.c: Likewise.
31343 * lib/unistdio/ulc-vsnprintf.c: Likewise.
31344 * lib/unistdio/ulc-vsprintf.c: Likewise.
31345 * lib/unistr.h: Likewise.
31346 * lib/unistr/u-cpy-alloc.h: Likewise.
31347 * lib/unistr/u-cpy.h: Likewise.
31348 * lib/unistr/u-endswith.h: Likewise.
31349 * lib/unistr/u-move.h: Likewise.
31350 * lib/unistr/u-set.h: Likewise.
31351 * lib/unistr/u-startswith.h: Likewise.
31352 * lib/unistr/u-stpcpy.h: Likewise.
31353 * lib/unistr/u-stpncpy.h: Likewise.
31354 * lib/unistr/u-strcat.h: Likewise.
31355 * lib/unistr/u-strcpy.h: Likewise.
31356 * lib/unistr/u-strcspn.h: Likewise.
31357 * lib/unistr/u-strdup.h: Likewise.
31358 * lib/unistr/u-strlen.h: Likewise.
31359 * lib/unistr/u-strncat.h: Likewise.
31360 * lib/unistr/u-strncpy.h: Likewise.
31361 * lib/unistr/u-strnlen.h: Likewise.
31362 * lib/unistr/u-strpbrk.h: Likewise.
31363 * lib/unistr/u-strspn.h: Likewise.
31364 * lib/unistr/u-strstr.h: Likewise.
31365 * lib/unistr/u-strtok.h: Likewise.
31366 * lib/unistr/u16-check.c: Likewise.
31367 * lib/unistr/u16-chr.c: Likewise.
31368 * lib/unistr/u16-cmp.c: Likewise.
31369 * lib/unistr/u16-cpy-alloc.c: Likewise.
31370 * lib/unistr/u16-cpy.c: Likewise.
31371 * lib/unistr/u16-endswith.c: Likewise.
31372 * lib/unistr/u16-mblen.c: Likewise.
31373 * lib/unistr/u16-mbsnlen.c: Likewise.
31374 * lib/unistr/u16-mbtouc-aux.c: Likewise.
31375 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31376 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31377 * lib/unistr/u16-mbtouc.c: Likewise.
31378 * lib/unistr/u16-mbtoucr.c: Likewise.
31379 * lib/unistr/u16-move.c: Likewise.
31380 * lib/unistr/u16-next.c: Likewise.
31381 * lib/unistr/u16-prev.c: Likewise.
31382 * lib/unistr/u16-set.c: Likewise.
31383 * lib/unistr/u16-startswith.c: Likewise.
31384 * lib/unistr/u16-stpcpy.c: Likewise.
31385 * lib/unistr/u16-stpncpy.c: Likewise.
31386 * lib/unistr/u16-strcat.c: Likewise.
31387 * lib/unistr/u16-strchr.c: Likewise.
31388 * lib/unistr/u16-strcmp.c: Likewise.
31389 * lib/unistr/u16-strcpy.c: Likewise.
31390 * lib/unistr/u16-strcspn.c: Likewise.
31391 * lib/unistr/u16-strdup.c: Likewise.
31392 * lib/unistr/u16-strlen.c: Likewise.
31393 * lib/unistr/u16-strmblen.c: Likewise.
31394 * lib/unistr/u16-strmbtouc.c: Likewise.
31395 * lib/unistr/u16-strncat.c: Likewise.
31396 * lib/unistr/u16-strncmp.c: Likewise.
31397 * lib/unistr/u16-strncpy.c: Likewise.
31398 * lib/unistr/u16-strnlen.c: Likewise.
31399 * lib/unistr/u16-strpbrk.c: Likewise.
31400 * lib/unistr/u16-strrchr.c: Likewise.
31401 * lib/unistr/u16-strspn.c: Likewise.
31402 * lib/unistr/u16-strstr.c: Likewise.
31403 * lib/unistr/u16-strtok.c: Likewise.
31404 * lib/unistr/u16-to-u32.c: Likewise.
31405 * lib/unistr/u16-to-u8.c: Likewise.
31406 * lib/unistr/u16-uctomb-aux.c: Likewise.
31407 * lib/unistr/u16-uctomb.c: Likewise.
31408 * lib/unistr/u32-check.c: Likewise.
31409 * lib/unistr/u32-chr.c: Likewise.
31410 * lib/unistr/u32-cmp.c: Likewise.
31411 * lib/unistr/u32-cpy-alloc.c: Likewise.
31412 * lib/unistr/u32-cpy.c: Likewise.
31413 * lib/unistr/u32-endswith.c: Likewise.
31414 * lib/unistr/u32-mblen.c: Likewise.
31415 * lib/unistr/u32-mbsnlen.c: Likewise.
31416 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31417 * lib/unistr/u32-mbtouc.c: Likewise.
31418 * lib/unistr/u32-mbtoucr.c: Likewise.
31419 * lib/unistr/u32-move.c: Likewise.
31420 * lib/unistr/u32-next.c: Likewise.
31421 * lib/unistr/u32-prev.c: Likewise.
31422 * lib/unistr/u32-set.c: Likewise.
31423 * lib/unistr/u32-startswith.c: Likewise.
31424 * lib/unistr/u32-stpcpy.c: Likewise.
31425 * lib/unistr/u32-stpncpy.c: Likewise.
31426 * lib/unistr/u32-strcat.c: Likewise.
31427 * lib/unistr/u32-strchr.c: Likewise.
31428 * lib/unistr/u32-strcmp.c: Likewise.
31429 * lib/unistr/u32-strcpy.c: Likewise.
31430 * lib/unistr/u32-strcspn.c: Likewise.
31431 * lib/unistr/u32-strdup.c: Likewise.
31432 * lib/unistr/u32-strlen.c: Likewise.
31433 * lib/unistr/u32-strmblen.c: Likewise.
31434 * lib/unistr/u32-strmbtouc.c: Likewise.
31435 * lib/unistr/u32-strncat.c: Likewise.
31436 * lib/unistr/u32-strncmp.c: Likewise.
31437 * lib/unistr/u32-strncpy.c: Likewise.
31438 * lib/unistr/u32-strnlen.c: Likewise.
31439 * lib/unistr/u32-strpbrk.c: Likewise.
31440 * lib/unistr/u32-strrchr.c: Likewise.
31441 * lib/unistr/u32-strspn.c: Likewise.
31442 * lib/unistr/u32-strstr.c: Likewise.
31443 * lib/unistr/u32-strtok.c: Likewise.
31444 * lib/unistr/u32-to-u16.c: Likewise.
31445 * lib/unistr/u32-to-u8.c: Likewise.
31446 * lib/unistr/u32-uctomb.c: Likewise.
31447 * lib/unistr/u8-check.c: Likewise.
31448 * lib/unistr/u8-chr.c: Likewise.
31449 * lib/unistr/u8-cmp.c: Likewise.
31450 * lib/unistr/u8-cpy-alloc.c: Likewise.
31451 * lib/unistr/u8-cpy.c: Likewise.
31452 * lib/unistr/u8-endswith.c: Likewise.
31453 * lib/unistr/u8-mblen.c: Likewise.
31454 * lib/unistr/u8-mbsnlen.c: Likewise.
31455 * lib/unistr/u8-mbtouc-aux.c: Likewise.
31456 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31457 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31458 * lib/unistr/u8-mbtouc.c: Likewise.
31459 * lib/unistr/u8-mbtoucr.c: Likewise.
31460 * lib/unistr/u8-move.c: Likewise.
31461 * lib/unistr/u8-next.c: Likewise.
31462 * lib/unistr/u8-prev.c: Likewise.
31463 * lib/unistr/u8-set.c: Likewise.
31464 * lib/unistr/u8-startswith.c: Likewise.
31465 * lib/unistr/u8-stpcpy.c: Likewise.
31466 * lib/unistr/u8-stpncpy.c: Likewise.
31467 * lib/unistr/u8-strcat.c: Likewise.
31468 * lib/unistr/u8-strchr.c: Likewise.
31469 * lib/unistr/u8-strcmp.c: Likewise.
31470 * lib/unistr/u8-strcpy.c: Likewise.
31471 * lib/unistr/u8-strcspn.c: Likewise.
31472 * lib/unistr/u8-strdup.c: Likewise.
31473 * lib/unistr/u8-strlen.c: Likewise.
31474 * lib/unistr/u8-strmblen.c: Likewise.
31475 * lib/unistr/u8-strmbtouc.c: Likewise.
31476 * lib/unistr/u8-strncat.c: Likewise.
31477 * lib/unistr/u8-strncmp.c: Likewise.
31478 * lib/unistr/u8-strncpy.c: Likewise.
31479 * lib/unistr/u8-strnlen.c: Likewise.
31480 * lib/unistr/u8-strpbrk.c: Likewise.
31481 * lib/unistr/u8-strrchr.c: Likewise.
31482 * lib/unistr/u8-strspn.c: Likewise.
31483 * lib/unistr/u8-strstr.c: Likewise.
31484 * lib/unistr/u8-strtok.c: Likewise.
31485 * lib/unistr/u8-to-u16.c: Likewise.
31486 * lib/unistr/u8-to-u32.c: Likewise.
31487 * lib/unistr/u8-uctomb-aux.c: Likewise.
31488 * lib/unistr/u8-uctomb.c: Likewise.
31489 * lib/unitypes.h: Likewise.
31490 * lib/uniwidth.h: Likewise.
31491 * lib/uniwidth/cjk.h: Likewise.
31492 * lib/uniwidth/u16-strwidth.c: Likewise.
31493 * lib/uniwidth/u16-width.c: Likewise.
31494 * lib/uniwidth/u32-strwidth.c: Likewise.
31495 * lib/uniwidth/u32-width.c: Likewise.
31496 * lib/uniwidth/u8-strwidth.c: Likewise.
31497 * lib/uniwidth/u8-width.c: Likewise.
31498 * lib/uniwidth/width.c: Likewise.
31500 2007-10-07 Bruno Haible <bruno@clisp.org>
31502 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31503 The file is still under LGPL (see modules/inttypes).
31505 2007-10-06 Bruno Haible <bruno@clisp.org>
31507 * modules/trunc (Dependencies): Add 'extensions'.
31508 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31509 Reported by Ben Pfaff <blp@gnu.org>.
31511 2007-10-06 Bruno Haible <bruno@clisp.org>
31513 * modules/freopen-tests: New file.
31514 * tests/test-freopen.c: New file.
31516 * modules/fopen-tests: New file.
31517 * tests/test-fopen.c: New file.
31519 * modules/fopen: New file.
31520 * lib/fopen.c: New file.
31521 * m4/fopen.m4: New file.
31522 * modules/freopen: New file.
31523 * lib/freopen.c: New file.
31524 * m4/freopen.m4: New file.
31525 * lib/stdio.in.h (fopen, freopen): New declarations.
31526 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31527 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31528 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31529 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31530 * doc/functions/fopen.texi: Mention the 'fopen' module.
31531 * doc/functions/freopen.texi: Mention the 'freopen' module.
31533 2007-10-06 Bruno Haible <bruno@clisp.org>
31535 * modules/open-tests: New file.
31536 * tests/test-open.c: New file.
31538 * modules/open: New file.
31539 * lib/open.c: New file.
31540 * m4/open.m4: New file.
31541 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31543 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31544 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31546 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31547 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31549 * doc/functions/open.texi: Mention the 'open' module.
31551 2007-10-04 Bruno Haible <bruno@clisp.org>
31553 * modules/ceill-tests: New file.
31554 * tests/test-ceill.c: New file.
31556 * modules/ceill: New file.
31557 * lib/ceill.c: Replace entire file.
31558 * m4/ceill.m4: New file.
31559 * lib/math.in.h (ceill): Replace declaration.
31560 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31561 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31562 * doc/functions/ceill.texi: Mention the 'ceill' module.
31563 * modules/mathl (Files): Remove lib/ceill.c.
31564 (Depends-on): Add ceill.
31566 2007-10-04 Bruno Haible <bruno@clisp.org>
31568 * modules/ceilf-tests: New file.
31569 * tests/test-ceilf.c: New file.
31571 * modules/ceilf: New file.
31572 * lib/ceil.c: New file.
31573 * lib/ceilf.c: New file.
31574 * m4/ceilf.m4: New file.
31575 * lib/math.in.h (ceilf): New declaration.
31576 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31578 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31580 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31582 2007-10-04 Bruno Haible <bruno@clisp.org>
31584 * modules/floorl-tests: New file.
31585 * tests/test-floorl.c: New file.
31587 * modules/floorl: New file.
31588 * lib/floorl.c: Replace entire file.
31589 * m4/floorl.m4: New file.
31590 * lib/math.in.h (floorl): Replace declaration.
31591 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31592 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31593 * doc/functions/floorl.texi: Mention the 'floorl' module.
31594 * modules/mathl (Files): Remove lib/floorl.c.
31595 (Depends-on): Add floorl.
31597 2007-10-04 Bruno Haible <bruno@clisp.org>
31599 * modules/floorf-tests: New file.
31600 * tests/test-floorf.c: New file.
31602 * modules/floorf: New file.
31603 * lib/floor.c: New file.
31604 * lib/floorf.c: New file.
31605 * m4/floorf.m4: New file.
31606 * lib/math.in.h (floorf): New declaration.
31607 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31609 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31611 * doc/functions/floorf.texi: Mention the 'floorf' module.
31613 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
31614 Bruno Haible <bruno@clisp.org>
31616 Advertise for the Git server instead of the CVS server.
31617 * doc/gnulib-intro.texi (Steady Development): Mention the Git
31618 repository instead of the CVS one.
31619 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31620 about all VCS systems generically.
31621 * doc/gnulib.texi (Introduction): Capitalize `Git'.
31623 2007-10-04 Bruno Haible <bruno@clisp.org>
31625 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31627 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31629 2007-10-04 Bruno Haible <bruno@clisp.org>
31631 * modules/truncl-tests: New file.
31632 * tests/test-truncl.c: New file.
31634 * modules/truncl: New file.
31635 * lib/truncl.c: New file.
31636 * m4/truncl.m4: New file.
31637 * lib/math.in.h (truncl): New declaration.
31638 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31640 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31642 * doc/functions/truncl.texi: Mention the 'truncl' module.
31644 2007-10-04 Bruno Haible <bruno@clisp.org>
31646 * modules/truncf-tests: New file.
31647 * tests/test-truncf.c: New file.
31649 * modules/truncf: New file.
31650 * lib/trunc.c: Make paramerizable through USE_* macros.
31651 * lib/truncf.c: New file.
31652 * m4/truncf.m4: New file.
31653 * lib/math.in.h (truncf): New declaration.
31654 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31656 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31658 * doc/functions/truncf.texi: Mention the 'truncf' module.
31660 2007-10-03 Bruno Haible <bruno@clisp.org>
31662 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31663 augmentation also for tests modules.
31664 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31665 * modules/atexit-tests (Makefile.am): Likewise.
31666 * modules/binary-io-tests (Makefile.am): Likewise.
31667 * modules/c-strcase-tests (Makefile.am): Likewise.
31668 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31669 * modules/canonicalize-tests (Makefile.am): Likewise.
31670 * modules/closein-tests (Makefile.am): Likewise.
31671 * modules/fprintf-posix-tests (Makefile.am): Likewise.
31672 * modules/freadahead-tests (Makefile.am): Likewise.
31673 * modules/fseek-tests (Makefile.am): Likewise.
31674 * modules/fseeko-tests (Makefile.am): Likewise.
31675 * modules/ftell-tests (Makefile.am): Likewise.
31676 * modules/ftello-tests (Makefile.am): Likewise.
31677 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31678 * modules/isnanl-tests (Makefile.am): Likewise.
31679 * modules/lseek-tests (Makefile.am): Likewise.
31680 * modules/mbscasecmp-tests (Makefile.am): Likewise.
31681 * modules/mbscasestr-tests (Makefile.am): Likewise.
31682 * modules/mbschr-tests (Makefile.am): Likewise.
31683 * modules/mbscspn-tests (Makefile.am): Likewise.
31684 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31685 * modules/mbspbrk-tests (Makefile.am): Likewise.
31686 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31687 * modules/mbsrchr-tests (Makefile.am): Likewise.
31688 * modules/mbsspn-tests (Makefile.am): Likewise.
31689 * modules/mbsstr-tests (Makefile.am): Likewise.
31690 * modules/printf-posix-tests (Makefile.am): Likewise.
31691 * modules/snprintf-posix-tests (Makefile.am): Likewise.
31692 * modules/sprintf-posix-tests (Makefile.am): Likewise.
31693 * modules/tsearch-tests (Makefile.am): Likewise.
31694 * modules/uniname/uniname-tests (Makefile.am): Likewise.
31695 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31696 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31697 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31698 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31699 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31700 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31701 * modules/vprintf-posix-tests (Makefile.am): Likewise.
31702 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31703 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31704 * modules/xstrtoimax-tests (Makefile.am): Likewise.
31705 * modules/xstrtol-tests (Makefile.am): Likewise.
31706 * modules/xstrtoumax-tests (Makefile.am): Likewise.
31707 * modules/yesno-tests (Makefile.am): Likewise.
31709 2007-10-03 Bruno Haible <bruno@clisp.org>
31711 * modules/trunc-tests: New file.
31712 * tests/test-trunc.c: New file.
31714 * modules/trunc: New file.
31715 * lib/trunc.c: New file.
31716 * m4/trunc.m4: New file.
31717 * lib/math.in.h (trunc): New declaration.
31718 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31720 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31722 * doc/functions/trunc.texi: Mention the 'trunc' module.
31724 2007-10-03 Bruno Haible <bruno@clisp.org>
31726 * tests/test-fpending.c: New file, mostly copied
31727 from coreutils/lib/t-fpending.c.
31728 * modules/fpending-tests: New file.
31730 2007-10-03 Bruno Haible <bruno@clisp.org>
31732 Port the stdio extensions to QNX (untested).
31733 * lib/fseterr.c (fseterr): Add support for QNX.
31734 * lib/fbufmode.c (fbufmode): Likewise.
31735 * lib/freadable.c (freadable): Likewise.
31736 * lib/fwritable.c (fwritable): Likewise.
31737 * lib/freading.c (freading): Likewise.
31738 * lib/fwriting.c (fwriting): Likewise.
31739 * lib/freadahead.c (freadahed): Likewise.
31740 * lib/fpurge.c (fpurge): Likewise.
31741 * lib/fseeko.c (rpl_fseeko): Likewise.
31743 2007-10-03 Bruno Haible <bruno@clisp.org>
31744 Jim Meyering <jim@meyering.net>
31745 Eric Blake <ebb9@byu.net>
31747 * doc/relocatable.texi: Use @command instead of @program.
31749 2007-10-02 Jim Meyering <jim@meyering.net>
31751 Perform one more "_.h" -> ".in.h" substitution.
31752 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31753 instead of unistd_.h here, too.
31755 2007-10-01 Bruno Haible <bruno@clisp.org>
31757 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31758 Needed for the alloca-opt module.
31760 2007-09-30 Bruno Haible <bruno@clisp.org>
31762 * lib/alloca.in.h: Renamed from lib/alloca_.h.
31763 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31765 * lib/argz.in.h: Renamed from lib/argz_.h.
31766 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31767 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31768 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31770 * lib/dirent.in.h: Renamed from lib/dirent_.h.
31771 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31773 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31774 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31776 * lib/float.in.h: Renamed from lib/float_.h.
31777 * modules/float (Files, Makefile.am): Use float.in.h instead of
31779 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31780 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31782 * lib/getopt.in.h: Renamed from lib/getopt_.h.
31783 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31785 * lib/glob.in.h: Renamed from lib/glob_.h.
31786 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31787 * lib/iconv.in.h: Renamed from lib/iconv_.h.
31788 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31790 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31791 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31793 * lib/locale.in.h: Renamed from lib/locale_.h.
31794 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31796 * lib/math.in.h: Renamed from lib/math_.h.
31797 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31798 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31799 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31800 of netinet_in_.h. Add dependency.
31801 * lib/poll.in.h: Renamed from lib/poll_.h.
31802 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31803 * lib/search.in.h: Renamed from lib/search_.h.
31804 * modules/search (Files, Makefile.am): Use search.in.h instead of
31806 * lib/signal.in.h: Renamed from lib/signal_.h.
31807 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31809 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31810 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31812 * lib/stdint.in.h: Renamed from lib/stdint_.h.
31813 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31815 * lib/stdio.in.h: Renamed from lib/stdio_.h.
31816 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31818 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31819 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31821 * lib/string.in.h: Renamed from lib/string_.h.
31822 * modules/string (Files, Makefile.am): Use string.in.h instead of
31824 * doc/gnulib-tool.texi (Initial import): Update.
31825 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31826 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31827 of sys_select_.h. Add dependency.
31828 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31829 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31831 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31832 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31834 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31835 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31837 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31838 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31840 * lib/time.in.h: Renamed from lib/time_.h.
31841 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31842 * lib/unistd.in.h: Renamed from lib/unistd_.h.
31843 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31845 * lib/wchar.in.h: Renamed from lib/wchar_.h.
31846 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31848 * lib/wctype.in.h: Renamed from lib/wctype_.h.
31849 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31851 * build-aux/bootstrap (slurp): Update.
31852 * lib/.cppi-disable: Update.
31854 2007-09-30 Bruno Haible <bruno@clisp.org>
31856 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31859 2007-09-30 Bruno Haible <bruno@clisp.org>
31861 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31863 2007-09-29 Bruno Haible <bruno@clisp.org>
31865 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31867 2007-09-29 Bruno Haible <bruno@clisp.org>
31869 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31870 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31871 * build-aux/install-reloc: Compile also areadlink.c.
31872 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31874 2007-09-29 Bruno Haible <bruno@clisp.org>
31876 * gnulib-tool (func_emit_initmacro_done): Indentation.
31878 2007-09-29 Bruno Haible <bruno@clisp.org>
31880 * README: Add CVS checkout update instructions.
31881 Info from Bob Proulx <bob@proulx.com>.
31883 2007-09-28 Eric Blake <ebb9@byu.net>
31885 Provide move-if-change.
31886 * build-aux/move-if-change: New file, based on best practice
31887 rather than any canonical upstream location.
31889 2007-09-28 Jim Meyering <jim@meyering.net>
31891 Fix canonicalize loop-detection corner case.
31892 Do not attempt to stat the symlink values stored via seen_triple.
31893 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31894 on linux-2.6.18, (but not 2.6.22).
31895 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31896 triple_compare. The former compares dev,ino,filename, while the latter
31897 would actually stat dirname(filename) when dev and ino were equal.
31898 * lib/hash-triple.c: Install <string.h>.
31900 (triple_compare_ino_str): New function.
31901 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31903 2007-09-28 Eric Blake <ebb9@byu.net>
31905 Enforce that AC_REPLACE_FUNCS files exist.
31906 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31907 override check for typos.
31909 Fix test-closein on Solaris 10.
31910 * tests/test-closein.c (main): Don't assume stdin can be inherited
31911 closed on all systems.
31912 * tests/test-closein.sh: Likewise.
31913 Reported by Piotr Tarnowski.
31915 2007-09-28 Jim Meyering <jim@meyering.net>
31917 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31919 2007-09-27 Jim Meyering <jim@meyering.net>
31921 canonicalize: Avoid a false-positive cycle failure.
31922 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31923 Sort. Remove cycle-check.
31924 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31926 (seen_triple): New function.
31927 (canonicalize_filename_mode): Use it instead of cycle-check.
31928 * tests/test-canonicalize.c: Add a test for this bug.
31929 * tests/test-canonicalize.sh: Set up and run the test.
31931 New module, file-set, from coreutils.
31932 * modules/file-set: Define it.
31933 * lib/file-set.c, lib/file-set.h: Implement.
31935 New module, hash-triple, from coreutils.
31936 * modules/hash-triple: Define it.
31937 * lib/hash-triple.c, lib/hash-triple.h: Implement.
31939 2007-09-25 Eric Blake <ebb9@byu.net>
31941 Fix strerror on Interix.
31942 * lib/string_.h (strerror): Declare replacement.
31943 * doc/functions/strerror.texi (strerror): Document the Interix
31945 * modules/string (Makefile.am): Support new hooks.
31946 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31947 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31948 gl_FUNC_STRERROR_SEPARATE.
31949 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31950 * lib/strerror.c (rpl_strerror): Provide replacement.
31951 * modules/strerror (Depends-on): Add string.
31952 (configure.ac): Detect use of module.
31953 * tests/test-strerror.c: New file.
31954 * modules/strerror-tests: New test module.
31955 * modules/argp (Depends-on): Add strerror.
31956 * modules/error (Depends-on): Likewise.
31957 Reported by Martin Koeppe.
31959 2007-09-24 Bruno Haible <bruno@clisp.org>
31961 * README: Update git instructions.
31963 2007-09-24 Eric Blake <ebb9@byu.net>
31965 Revert fpending breakage from 2007-09-08.
31966 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31969 2007-09-24 Jim Meyering <jim@meyering.net>
31971 filenamecat.c: Add a test.
31972 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31973 showing how the function works when DIR is the empty string.
31975 2007-09-21 Simon Josefsson <simon@josefsson.org>
31977 * tests/test-canonicalize.sh: Turn on executable bit.
31979 2007-09-19 Eric Blake <ebb9@byu.net>
31981 * README: Update CVS instructions.
31983 2007-09-18 Bruno Haible <bruno@clisp.org>
31985 * modules/areadlink: New file.
31986 * lib/areadlink.h (areadlink): New declaration.
31987 * lib/areadlink.c: New file, based on lib/xreadlink.c.
31989 2007-09-17 Jim Meyering <jim@meyering.net>
31991 * lib/savewd.c (ESTALE) [!defined]: Define.
31992 Reported to be required on Interix by Martin Koeppe.
31994 2007-09-17 Bruno Haible <bruno@clisp.org>
31996 * gnulib-tool (func_version): Use $version.
31998 2007-09-16 Bruno Haible <bruno@clisp.org>
32000 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32001 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32002 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32003 Reported by Greg Schafer <gschafer@zip.com.au>.
32005 2007-09-15 Bruno Haible <bruno@clisp.org>
32007 * gnulib-tool (sed): Try a little harder to make bash understand the
32009 Reported by Bruce Korb <bruce.korb@gmail.com>.
32011 2007-09-13 Eric Blake <ebb9@byu.net>
32013 * ChangeLog: Remove conflict markers.
32015 2007-09-13 Simon Josefsson <simon@josefsson.org>
32017 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32018 Reported by Bruno Haible <bruno@clisp.org>.
32020 2007-09-12 Bruno Haible <bruno@clisp.org>
32022 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32023 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32026 2007-09-12 Eric Blake <ebb9@byu.net>
32028 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32029 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32030 Autoconf definition.
32031 * modules/euidaccess (Depends-on): Add extensions, for
32032 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32033 * modules/fnmatch (Depends-on): Likewise.
32034 * modules/getaddrinfo (Depends-on): Likewise.
32035 * modules/getdelim (Depends-on): Likewise.
32036 * modules/getline (Depends-on): Likewise.
32037 * modules/getsubopt (Depends-on): Likewise.
32038 * modules/gettext (Depends-on): Likewise.
32039 * modules/group-member (Depends-on): Likewise.
32040 * modules/mbchar (Depends-on): Likewise.
32041 * modules/memmem (Depends-on): Likewise.
32042 * modules/mempcpy (Depends-on): Likewise.
32043 * modules/memrchr (Depends-on): Likewise.
32044 * modules/pagealign_alloc (Depends-on): Likewise.
32045 * modules/readutmp (Depends-on): Likewise.
32046 * modules/stpcpy (Depends-on): Likewise.
32047 * modules/stpncpy (Depends-on): Likewise.
32048 * modules/strchrnul (Depends-on): Likewise.
32049 * modules/strndup (Depends-on): Likewise.
32050 * modules/strsep (Depends-on): Likewise.
32051 * modules/strverscmp (Depends-on): Likewise.
32052 * modules/vasprintf (Depends-on): Likewise.
32053 * modules/wcwidth (Depends-on): Likewise.
32054 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32055 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32056 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32057 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32058 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32059 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32060 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32061 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32062 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32063 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32064 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32065 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32066 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32067 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32068 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32069 * m4/readutmp.m4 (gl_READUTMP): Likewise.
32070 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32071 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32072 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32073 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32074 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32075 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32076 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32077 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32078 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32079 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32080 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32081 so that lock.m4 can be used in gettext without extensions module.
32083 2007-09-11 Bruno Haible <bruno@clisp.org>
32085 * m4/isc-posix.m4: Remove file.
32086 Suggested by Eric Blake.
32088 2007-09-11 Eric Blake <ebb9@byu.net>
32090 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32092 2007-09-10 Bruno Haible <bruno@clisp.org>
32094 * posix-modules: Fix typo in error message.
32095 Reported by Matt <mkraai@beckman.com>.
32097 2007-09-09 Bruno Haible <bruno@clisp.org>
32099 * doc/functions/getdelim.texi: Update list of platforms lacking the
32101 * doc/functions/getline.texi: Likewise.
32103 2007-09-09 Jim Meyering <jim@meyering.net>
32105 * lib/hash.c (hash_initialize): Detect calloc failure.
32106 Reported by Bruno Haible.
32108 2007-09-09 Bruno Haible <bruno@clisp.org>
32110 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32111 malloc or realloc fails.
32113 2007-09-09 Bruno Haible <bruno@clisp.org>
32115 * modules/getcwd (Depends-on): Add malloc-posix.
32116 * modules/glob (Depends-on): Likewise.
32117 * modules/putenv (Depends-on): Likewise.
32118 * modules/strdup (Depends-on): Likewise.
32119 * modules/getdelim (Depends-on): Add realloc-posix.
32120 * modules/read-file (Depends-on): Likewise.
32122 2007-09-09 Bruno Haible <bruno@clisp.org>
32124 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32125 (gl_FUNC_MALLOC_POSIX): Require it.
32126 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32127 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32128 * modules/realloc (Files): Add m4/malloc.m4.
32129 * modules/calloc (Files): Likewise.
32131 2007-09-09 Bruno Haible <bruno@clisp.org>
32133 * modules/malloc-posix: New file.
32134 * modules/malloc (Depends-on): Add malloc-posix.
32135 * lib/malloc.c: Include errno.h.
32136 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32137 and a POSIX-compatible malloc into a single function. Set ENOMEM
32138 when returning NULL.
32139 * m4/malloc.m4: New file.
32140 * doc/functions/malloc.texi: Mention the malloc-posix module.
32141 * lib/stdlib_.h (malloc): New declaration.
32142 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32143 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32144 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32145 and HAVE_MALLOC_POSIX.
32147 2007-09-09 Bruno Haible <bruno@clisp.org>
32149 * modules/realloc-posix: New file.
32150 * modules/realloc (Depends-on): Add realloc-posix.
32151 * lib/realloc.c: Include errno.h.
32152 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32153 and a POSIX-compatible realloc into a single function. Set ENOMEM
32154 when returning NULL.
32155 * m4/realloc.m4: New file.
32156 * doc/functions/realloc.texi: Mention the realloc-posix module.
32157 * lib/stdlib_.h (realloc): New declaration.
32158 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32159 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32160 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32161 and HAVE_REALLOC_POSIX.
32163 2007-09-09 Bruno Haible <bruno@clisp.org>
32165 * modules/calloc-posix: New file.
32166 * modules/calloc (Depends-on): Add calloc-posix.
32167 * lib/calloc.c: Include errno.h.
32168 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32169 and a POSIX-compatible calloc into a single function. Set ENOMEM
32170 when returning NULL.
32171 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32172 * doc/functions/calloc.texi: Mention the calloc-posix module.
32173 * lib/stdlib_.h (calloc): New declaration.
32174 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32175 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32176 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32177 and HAVE_CALLOC_POSIX.
32179 2007-09-09 Bruno Haible <bruno@clisp.org>
32181 Allow for modules to show an arbitrary notice.
32182 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32183 * gnulib-tool: New option --extract-notice.
32184 (func_usage): Document it.
32185 (sed_extract_prog): Update.
32186 (func_get_notice): New function.
32187 (func_modules_notice): New function.
32188 (func_import, func_create_testdir): Invoke it.
32189 Suggested by Jim Meyering.
32191 2007-09-09 Bruno Haible <bruno@clisp.org>
32193 * gnulib-tool: New options --verbose, --quiet.
32194 (func_usage): Document them.
32195 (verbose): New variable.
32196 (func_execute_command): New function.
32197 (func_import): Don't show the module list and the file list if
32199 (func_create_testdir): Likewise. Use func_execute_command.
32200 (func_create_megatestdir): Use func_execute_command.
32202 2007-09-08 Bruno Haible <bruno@clisp.org>
32204 * gnulib-tool (func_import): Prefer rsync over wget when available,
32205 for fetching the PO files.
32207 2007-09-08 Bruno Haible <bruno@clisp.org>
32209 * posix-modules: New file. Portions copied from gnulib-tool.
32210 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32212 2007-09-08 Jim Meyering <jim@meyering.net>
32214 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32215 * lib/fpending.h: Rename from __fpending.h.
32216 * lib/fpending.c: Rename from __fpending.c.
32217 Include "fpending.h", not "__fpending.h".
32218 * lib/__fpending.h, lib/__fpending.c: Remove files.
32219 * modules/fpending (Files): Reflect new file names.
32220 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32222 2007-09-08 Bruno Haible <bruno@clisp.org>
32224 * m4/inttypes-h.m4: Remove stub file.
32226 2007-09-07 Simon Josefsson <simon@josefsson.org>
32228 * doc/headers/stdint.texi: Discuss #include_next issue.
32230 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
32232 * build-aux/bootstrap: Remove obsolete comment about wget --help.
32234 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32236 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32239 2007-09-03 Jim Meyering <jim@meyering.net>
32241 New module: git-version-gen.
32242 * modules/git-version-gen: New file.
32244 Import changes from coreutils for bootstrap script.
32246 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32248 bootstrap: uses rsync to download the .po files
32249 * build-aux/bootstrap (po_download_command_format): New global.
32250 (download_po_files): Use rsync.
32251 (update_po_files): Don't remove .po files after download,
32252 so future rsync runs can take advantage of the copies.
32254 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32256 Solve the unnecessary-.po-file-regeneration problem once and for all.
32257 * build-aux/bootstrap (download_po_files): New function, renamed from
32258 get_translations. Now, downloads, but doesn't update LINGUAS.
32259 (update_po_files): New function.
32261 bootstrap: Ignore more.
32262 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32263 uniwidth to e.g., lib/.gitignore.
32264 (slurp): Handle the sys_stat_.h -> sys mapping, too.
32266 * build-aux/bootstrap: New setting: vc_ignore.
32267 (insert_sorted_if_absent): Create $file if absent.
32268 Adapt to new, possibly empty, list: $vc_ignore.
32270 bootstrap: generate more ignorable names
32271 * build-aux/bootstrap (slurp): When generating ignorable names,
32272 also map .sin to .sed, .gperf to .c, and .y to .c.
32274 2007-09-03 Jim Meyering <jim@meyering.net>
32276 * build-aux/git-version-gen: New file, from coreutils. For details, see
32277 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32279 2007-09-02 Bruno Haible <bruno@clisp.org>
32281 Fix mis-recognition of 'mcs' on QNX 6.
32282 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32283 output contains the string "Mono".
32284 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32285 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32287 2007-09-01 Bruno Haible <bruno@clisp.org>
32289 Fix collision between uniwidth/* and linebreak modules.
32290 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32291 u32_width): Remove declarations.
32292 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32293 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32294 streq3, streq2, streq1, streq0): Remove functions.
32295 (STREQ): Remove macro.
32296 (is_cjk_encoding): Remove function.
32297 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32298 (uc_width, u8_width, u16_width, u32_width): Remove functions.
32299 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32300 * NEWS: Document the change.
32302 2007-09-01 Bruno Haible <bruno@clisp.org>
32304 * lib/streq.h: Add double-inclusion guard.
32306 2007-09-01 Karl Berry <karl@gnu.org>
32308 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32310 2007-08-28 Jim Meyering <jim@meyering.net>
32312 Rename mreadlink_with_size to areadlink_with_size.
32313 * NEWS: Document the change.
32314 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32315 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32316 * lib/mreadlink.h: Rename this to...
32317 * lib/areadlink.h: ...this.
32318 * modules/mreadlink-with-size: Rename this to...
32319 * modules/areadlink-with-size: ...this.
32320 * lib/canonicalize.c: Reflect the renaming.
32321 * modules/canonicalize: Likewise.
32323 2007-08-26 Bruno Haible <bruno@clisp.org>
32325 * gnulib-tool (func_import): When deciding which files to remove,
32326 consider also dangling symbolic links.
32327 Reported by Eric Blake.
32329 2007-08-26 Bruno Haible <bruno@clisp.org>
32331 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32333 2007-08-23 Simon Josefsson <simon@josefsson.org>
32335 * lib/readline.c: Don't include getline.h, the prototype is now
32338 2007-08-23 Jim Meyering <jim@meyering.net>
32341 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32342 around the funlockfile call, since funlockfile never sets errno.
32343 Don't set errno upon failed realloc.
32345 2007-08-22 Eric Blake <ebb9@byu.net>
32348 * lib/getdelim.c (getdelim): Revert regression that required *n to
32349 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
32350 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32351 getdelim, rather than whether implementation is missing.
32352 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32353 * lib/stdio_.h (getline): Also declare if replacement is
32355 * doc/functions/getdelim.texi: New file.
32356 * doc/functions/getline.texi: Likewise.
32357 * doc/gnulib.texi (Function Substitutes): Add new files.
32358 Reported by Bruno Haible.
32360 2007-08-22 Ludovic Courtès <ludo@gnu.org>
32362 * users.txt: Add Guile.
32364 2007-08-22 Eric Blake <ebb9@byu.net>
32366 * tests/test-getdelim.c (main): Use remove, not unlink.
32367 * tests/test-getline.c (main): Likewise.
32369 Move getline and getdelim into stdio.h, per POSIX 200x.
32370 * modules/getline (Files): Remove getline.h.
32371 (Depends-on): Add stdio.
32372 (configure.ac): Add module indicator.
32373 * modules/getdelim (Files): Remove getdelim.h.
32374 (Depends-on): Add stdio.
32375 (configure.ac): Add module indicator.
32376 * modules/stdio (Makefile.am): Work with new indicators.
32377 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32378 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32379 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32380 * lib/getdelim.h: Delete.
32381 * lib/getline.h: Delete.
32382 * lib/stdio_.h (getdelim, getline): Declare.
32383 * modules/getdelim-tests: New module.
32384 * modules/getline-tests: Likewise.
32385 * tests/test-getdelim.c: New file.
32386 * tests/test-getline.c: Likewise.
32387 * NEWS: Document the change.
32388 * lib/getline.c: Update choice of header.
32389 * lib/csharpcomp.c: Likewise.
32390 * lib/getpass.c: Likewise.
32391 * lib/javacomp.c: Likewise.
32392 * lib/javaversion.c: Likewise.
32393 * lib/yesno.c: Likewise.
32394 * lib/getdelim.c: Likewise.
32395 (getdelim): Set errno on failure, and avoid memory leak.
32397 2007-08-19 Bruno Haible <bruno@clisp.org>
32399 * modules/closein (Depends-on): Add freadahead.
32400 * lib/closein.c: Include freadahead.h.
32401 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32404 2007-08-19 Bruno Haible <bruno@clisp.org>
32406 * modules/freadahead-tests: New file.
32407 * tests/test-freadahead.sh: New file.
32408 * tests/test-freadahead.c: New file.
32410 * modules/freadahead: New file.
32411 * lib/freadahead.h: New file.
32412 * lib/freadahead.c: New file.
32413 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32414 fbufmode, fpurge, freadable, fwritable.
32416 2007-08-19 Eric Blake <ebb9@byu.net>
32418 Test yesno in combination with closein.
32419 * lib/yesno.c (yesno): Document use of stdin.
32420 * modules/yesno-tests (Files): New module.
32421 * tests/test-yesno.c (main): New file.
32422 * tests/test-yesno.sh: Likewise.
32424 2007-08-19 Bruno Haible <bruno@clisp.org>
32426 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32427 * lib/fseeko.c (rpl_fseeko): Likewise.
32428 * lib/fseterr.c (fseterr): Likewise.
32430 2007-08-19 Bruno Haible <bruno@clisp.org>
32432 * tests/test-lseek.c (main): Disable a test for BeOS.
32433 * doc/functions/lseek.texi: Document the BeOS bug.
32435 2007-08-19 Bruno Haible <bruno@clisp.org>
32436 Eric Blake <ebb9@byu.net>
32438 * lib/lseek.c: Include <sys/stat.h>.
32439 (rpl_lseek): Add workaround code also for Unix platforms.
32441 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32442 * doc/functions/lseek.texi: Document BeOS definiency.
32444 2007-08-18 Bruno Haible <bruno@clisp.org>
32446 * modules/fstrcmp-tests: New file.
32447 * tests/test-fstrcmp.c: New file.
32449 2007-08-18 Bruno Haible <bruno@clisp.org>
32451 * modules/fstrcmp: New file, from GNU gettext with modifications.
32452 * lib/fstrcmp.h: New file, from GNU gettext.
32453 * lib/fstrcmp.c: New file, from GNU gettext.
32454 * MODULES.html.sh (String handling): Add fstrcmp.
32456 2007-08-18 Bruno Haible <bruno@clisp.org>
32458 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32460 (diag, compareseq): Remove const from the ctxt argument.
32461 (USE_HEURISTIC): Undefine at the end.
32463 2007-08-18 Jim Meyering <jim@meyering.net>
32465 New file: lib/idcache.h
32466 * NEWS: Mention the addition.
32467 * modules/idcache (Files): Add lib/idcache.h
32468 * lib/idcache.c: Include "idcache.h".
32469 Don't include <sys/types.h>.
32470 Add a FIXME comment.
32471 Move file-scoped "static" declarations to the top.
32472 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
32474 2007-08-17 Bruno Haible <bruno@clisp.org>
32475 and Paul Eggert <eggert@cs.ucla.edu>
32477 * MODULES.html.sh: Add diffseq.
32478 * modules/diffseq: New file.
32479 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32480 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32482 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
32484 Import changes from coreutils for bootstrap script.
32486 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
32488 * build-aux/bootstrap (slurp): Work even in environments where
32489 "ls" defaults to "ls -A". Put in a FIXME, though, since the
32490 current code does not slurp files whose names start with ".", and
32491 this looks like it might be a troublesome area.
32493 2007-07-11 Jim Meyering <jim@meyering.net>
32495 If there's a GPL vN copyright comment, require that N == 3.
32497 2007-07-08 Jim Meyering <jim@meyering.net>
32499 Run the coreutils-specific code only if tests/Makefile.am.in exists.
32500 * build-aux/bootstrap (mam_template): Move definition out of loop.
32502 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32504 * build-aux/bootstrap (symlink_to_dir): Rename function from
32505 symlink_to_gnulib. Add a directory parameter. Update all
32507 (cp_mark_as_generated): Also check for -- and link to -- files in
32510 2007-07-08 Jim Meyering <jim@meyering.net>
32512 Adapt to deeper hierarchy in gnulib.
32513 * build-aux/bootstrap (symlink_to_dir): If the destination
32514 directory doesn't exist, create it. This is required at least for
32515 "lib/uniwidth/cjk.h".
32517 2007-05-15 Jim Meyering <jim@meyering.net>
32519 * build-aux/bootstrap: Now that generated Makefile.am files
32520 are no longer under version control, they must be created at
32523 2007-08-14 Ben Pfaff <blp@gnu.org>
32525 * lib/count-one-bits.h: Add comments. From Bruno Haible.
32527 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
32529 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32530 given the changes below.
32531 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
32532 even on hosts that have padding bits beyond the supported 64.
32534 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
32536 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32537 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32538 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
32540 (xstrtol_error): Remove.
32541 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32542 but with a different signature.
32543 (ATTRIBUTE_NORETURN, __attribute__): New macros.
32544 * lib/xstrtol-error.c: Include exitfail.h.
32545 (xstrtol_fatal): New function, with a different signature from the
32546 old xstrtol_error, so that the caller need not worry about passing
32547 in an exit status, or about storage management of the option argument.
32548 (xstrtol_error): Now a static function. Redo signature to
32549 implement xstrtol_fatal. Output the correct number of hyphens in
32550 front of the option so that the caller need not worry about
32551 storage management.
32553 (_): Remove; not used now.
32554 * modules/xstrtol: Depend on getopt.
32555 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32556 of old STRTOL_FATAL_ERROR macro.
32557 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32559 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32560 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32562 2007-08-08 Eric Blake <ebb9@byu.net>
32564 * lib/xstrtol-error.c: Add missing include.
32566 Move xstrtol messages into gnulib domain, when --pobase is used.
32567 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32568 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32569 * modules/xstrtol (Files): Distribute new file.
32570 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32571 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32572 * tests/test-xstrtol.c: ...into new file.
32573 * tests/test-xstrtoul.c: Also test xstrtoul.
32574 * tests/test-xstrtoimax.c: Also test xstrtoimax.
32575 * tests/test-xstrtoumax.c: Also test xstrtoumax.
32576 * tests/test-xstrtol.sh: Drive the tests.
32577 * tests/test-xstrtoimax.sh: Likewise.
32578 * tests/test-xstrtoumax.sh: Likewise.
32579 * modules/xstrtol-tests: New module.
32580 * modules/xstrtoimax-tests: Likewise.
32581 * modules/xstrtoumax-tests: Likewise.
32583 2007-08-08 Jim Meyering <jim@meyering.net>
32585 New function: mfile_name_concat.
32586 * lib/filenamecat.c (mfile_name_concat): New function, just like
32587 file_name_concat, but return NULL upon failure rather than exiting
32589 * lib/filenamecat.h: Declare it.
32591 2007-08-07 Bruno Haible <bruno@clisp.org>
32593 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32594 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32596 Reported by Eric Blake.
32598 2007-08-07 Simon Josefsson <simon@josefsson.org>
32600 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32601 * modules/crypto/arcfour (License): Likewise.
32602 * modules/crypto/des-tests (License): Likewise.
32603 * modules/crypto/gc-arctwo-tests (License): Likewise.
32604 * modules/crypto/gc-des-tests (License): Likewise.
32605 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32606 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32607 * modules/crypto/gc-md2-tests (License): Likewise.
32608 * modules/crypto/gc-md4-tests (License): Likewise.
32609 * modules/crypto/gc-md5-tests (License): Likewise.
32610 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32611 * modules/crypto/gc-rijndael-tests (License): Likewise.
32612 * modules/crypto/gc-sha1-tests (License): Likewise.
32613 * modules/crypto/gc-tests (License): Likewise.
32614 * modules/crypto/hmac-md5 (License): Likewise.
32615 * modules/crypto/hmac-sha1 (License): Likewise.
32616 * modules/crypto/md2-tests (License): Likewise.
32617 * modules/crypto/md4-tests (License): Likewise.
32618 * modules/crypto/md5 (License): Likewise.
32619 * modules/crypto/rijndael (License): Likewise.
32620 * modules/crypto/sha1 (License): Likewise.
32621 * modules/memxor (License): Likewise.
32623 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
32624 and Bruno Haible <bruno@clisp.org>
32626 * NEWS: Describe interface changes to human, xstrtol.
32627 * lib/human.h: Include <xstrtol.h>.
32628 (human_options): Return enum strtol_error, not int. Remove
32629 bool arg; take int * instead.
32630 * lib/human.c: Don't include "gettext.h".
32631 (_): Remove; no longer used.
32632 Don't include <xstrtol.h>, since human.h does it.
32633 (human_options): Adjust to abovementioned interface changes.
32634 Do not report error to stderr; that's now the caller's
32636 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32638 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32639 Str, Argument_type_string. All uses changed. Put " argument"
32640 in diagnostics to make them clearer. Change wording of suffix
32641 message for clarity.
32642 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32643 Argument_type_string.
32644 (STRTOL_FATAL_WARN): Remove; no longer used.
32645 * modules/human (Depends-on): Remove gettext-h.
32647 2007-08-06 Simon Josefsson <simon@josefsson.org>
32649 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32651 2007-07-31 Bruno Haible <bruno@clisp.org>
32653 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32654 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32655 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32657 2007-07-31 Bruno Haible <bruno@clisp.org>
32659 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32660 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32662 2007-07-30 Bruno Haible <bruno@clisp.org>
32664 * modules/base64 (License): Use the synonymous term "LGPLv2+".
32665 * modules/c-ctype (License): Likewise.
32666 * modules/c-strcase (License): Likewise.
32667 * modules/check-version (License): Likewise.
32668 * modules/iconv (License): Likewise.
32669 * modules/iconv_open (License): Likewise.
32670 * modules/read-file (License): Likewise.
32671 * modules/striconv (License): Likewise.
32672 * modules/strverscmp (License): Likewise.
32673 * modules/vasprintf (License): Likewise.
32674 * modules/crypto/des (License): Likewise.
32675 * modules/crypto/gc (License): Likewise.
32676 * modules/crypto/gc-arcfour (License): Likewise.
32677 * modules/crypto/gc-arctwo (License): Likewise.
32678 * modules/crypto/gc-des (License): Likewise.
32679 * modules/crypto/gc-hmac-md5 (License): Likewise.
32680 * modules/crypto/gc-hmac-sha1 (License): Likewise.
32681 * modules/crypto/gc-md2 (License): Likewise.
32682 * modules/crypto/gc-md4 (License): Likewise.
32683 * modules/crypto/gc-md5 (License): Likewise.
32684 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32685 * modules/crypto/gc-random (License): Likewise.
32686 * modules/crypto/gc-rijndael (License): Likewise.
32687 * modules/crypto/gc-sha1 (License): Likewise.
32688 * modules/crypto/md2 (License): Likewise.
32689 * modules/crypto/md4 (License): Likewise.
32691 2007-07-30 Jim Meyering <jim@meyering.net>
32693 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32694 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32695 it has valid stat data. This bug would cause du not to count the
32696 sizes of inaccessible directories.
32697 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32698 in <http://bugzilla.redhat.com/250077>.
32700 2007-07-25 Peter O'Gorman <peter@pogma.com>
32701 Bruno Haible <bruno@clisp.org>
32703 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32704 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32705 #include_next, gives a diagnostic about it, but reports no error in
32707 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32709 2007-07-24 Ben Pfaff <blp@gnu.org>
32711 Improve name: "count-one-bits" is better than "popcount".
32712 * MODULES.html.sh: Update name.
32713 * lib/popcount.h: Renamed lib/count-one-bits.h.
32714 (popcount): Renamed count_one_bits.
32715 (popcountl): Renamed count_one_bits_l.
32716 (popcountll): Renamed count_one_bits_ll.
32717 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32718 * modules/popcount: Renamed module/count-one-bits.
32719 * modules/popcount-tests: Renamed module/count-one-bits-tests.
32720 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32722 2007-07-23 Ben Pfaff <blp@gnu.org>
32724 * lib/popcount.h (popcount32): Reduce size of constants, to allow
32725 better code generation, and add U to large constants to avoid
32726 warnings, in non-GCC case.
32727 Suggested by Bruno Haible.
32729 2007-07-23 Ben Pfaff <blp@gnu.org>
32731 * lib/popcount.h: Use verify_true instead of if...abort.
32732 * modules/popcount: Depend on verify module.
32733 Suggested by Jim Meyering.
32735 2007-07-23 Bruno Haible <bruno@clisp.org>
32737 * gnulib-tool (func_import): Create a .cvsignore file also when the
32738 directory is not yet in CVS but the toplevel directory is. When
32739 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32740 Reported by Karl Berry.
32742 2007-07-22 Ben Pfaff <blp@gnu.org>
32744 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32746 Suggested by Eric Blake.
32748 2007-07-22 Ben Pfaff <blp@gnu.org>
32750 New module: popcount.
32751 * MODULES.html.sh: Add popcount.
32752 * modules/popcount: New file.
32753 * modules/popcount-tests: New file.
32754 * tests/test-popcount.c: New file.
32755 * lib/popcount.h: New file.
32756 * m4/popcount.m4: New file.
32758 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
32760 * build-aux/announce-gen: Update to GPLv3.
32762 * build-aux/config.guess: Update from config.
32764 2007-07-21 Bruno Haible <bruno@clisp.org>
32766 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32767 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32769 2007-07-20 Jim Meyering <jim@meyering.net>
32771 * check-module: Diagnose a self-dependency.
32773 2007-07-19 Bruno Haible <bruno@clisp.org>
32775 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32777 Reported by Eric Blake.
32779 2007-07-18 Bruno Haible <bruno@clisp.org>
32781 * gnulib-tool: New options --po-base, --po-domain.
32782 (func_usage): Document them.
32783 (pobase, po_domain): New variables.
32784 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32785 DEFAULT_TEXT_DOMAIN.
32786 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32787 (func_import): Consider pobase and po_domain. Create a po/ directory.
32788 (func_create_testdir): Set pobase and po_domain to empty.
32789 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32790 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32792 2007-07-18 Bruno Haible <bruno@clisp.org>
32794 * gnulib-tool (func_get_automake_snippet): Synthesize also an
32795 EXTRA_DIST augmentation for files in build-aux/.
32797 2007-07-16 Bruno Haible <bruno@clisp.org>
32799 * modules/lseek (License): Use the synonymous term "LGPLv2+".
32800 * modules/getdelim (License): Likewise.
32802 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32804 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32805 * modules/d-type (License): Likewise.
32806 * modules/extensions (License): Likewise.
32807 * modules/fnmatch (License): Likewise.
32808 * modules/fseeko (License): Likewise.
32809 * modules/getaddrinfo (License): Likewise.
32810 * modules/getline (License): Likewise.
32811 * modules/getlogin_r (License): Likewise.
32812 * modules/getpass (License): Likewise.
32813 * modules/gettimeofday (License): Likewise.
32814 * modules/glob (License): Likewise.
32815 * modules/inet_ntop (License): Likewise.
32816 * modules/malloc (License): Likewise.
32817 * modules/malloca (License): Likewise.
32818 * modules/memmem (License): Likewise.
32819 * modules/mempcpy (License): Likewise.
32820 * modules/memset (License): Likewise.
32821 * modules/minmax (License): Likewise.
32822 * modules/mktime (License): Likewise.
32823 * modules/netinet_in (License): Likewise.
32824 * modules/pathmax (License): Likewise.
32825 * modules/poll (License): Likewise.
32826 * modules/regex (License): Likewise.
32827 * modules/snprintf (License): Likewise.
32828 * modules/stdbool (License): Likewise.
32829 * modules/stdint (License): Likewise.
32830 * modules/stdio (License): Likewise.
32831 * modules/strcase (License): Likewise.
32832 * modules/strcasestr (License): Likewise.
32833 * modules/strdup (License): Likewise.
32834 * modules/string (License): Likewise.
32835 * modules/strndup (License): Likewise.
32836 * modules/strnlen (License): Likewise.
32837 * modules/strpbrk (License): Likewise.
32838 * modules/strptime (License): Likewise.
32839 * modules/strsep (License): Likewise.
32840 * modules/sys_select (License): Likewise.
32841 * modules/sys_socket (License): Likewise.
32842 * modules/sys_stat (License): Likewise.
32843 * modules/sys_time (License): Likewise.
32844 * modules/time (License): Likewise.
32845 * modules/time_r (License): Likewise.
32846 * modules/timegm (License): Likewise.
32847 * modules/unistd (License): Likewise.
32848 * modules/vsnprintf (License): Likewise.
32849 * modules/wctype (License): Likewise.
32851 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32853 * modules/argz (License): LGPLv2+.
32855 2007-07-15 Karl Berry <karl@gnu.org>
32857 * doc/gnulib.texi: revise node structure per new fdl.texi.
32859 2007-07-14 Bruno Haible <bruno@clisp.org>
32861 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32863 * lib/uniname/uninames.h: Regenerated.
32865 2007-07-14 Karl Berry <karl@gnu.org>
32867 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32868 omitting sectioning and index commands.
32870 2007-07-13 Bruno Haible <bruno@clisp.org>
32872 New gnulib-tool option --more-symlinks.
32873 * gnulib-tool (func_usage): Document --more-symlinks.
32874 (do_copyrights): New variable.
32875 Recognize option --more-symlinks.
32876 (func_import): Don't add a copyright notice transform to
32877 sed_transform_lib_file if do_copyrights is empty.
32879 2007-07-13 Bruno Haible <bruno@clisp.org>
32881 * lib/vasnprintf.c (decimal_point_char): Define also if
32882 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32883 && !NEED_PRINTF_DIRECTIVE_A.
32884 Reported by Clemens Koller <clemens.koller@anagramm.de> via
32885 Gary V. Vaughan <gary@gnu.org>.
32887 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
32889 * lib/inttypes_.h: Undo previous change, since it was fixed
32890 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32892 2007-07-13 Bruno Haible <bruno@clisp.org>
32894 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32895 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32897 2007-07-13 Jim Meyering <jim@meyering.net>
32899 df: Don't fail for Tru64's "file-on-file mount".
32900 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32901 so we fall through and use statfs instead. Details here:
32902 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32903 Reported by Albert Chin.
32905 2007-07-13 Bruno Haible <bruno@clisp.org>
32907 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32908 * modules/configmake (License): Likewise.
32909 * modules/gettext (License): Likewise.
32910 * modules/gettext-h (License): Likewise.
32911 * modules/include_next (License): Likewise.
32912 * modules/link-warning (License): Likewise.
32913 * modules/localcharset (License): Likewise.
32914 * modules/localename (License): Likewise.
32915 * modules/lock (License): Likewise.
32916 * modules/relocatable-lib-lgpl (License): Likewise.
32917 * modules/size_max (License): Likewise.
32918 * modules/vasnprintf (License): Likewise.
32919 * modules/wchar (License): Likewise.
32920 * modules/xsize (License): Likewise.
32922 2007-07-13 Bruno Haible <bruno@clisp.org>
32924 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32925 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32927 2007-07-12 Bruno Haible <bruno@clisp.org>
32929 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32930 in the modules files.
32932 2007-07-11 Karl Berry <karl@gnu.org>
32934 * MODULES.html.sh (func_module): use
32935 sed -e '\|^'"${includefile}"'$|d'
32936 instead of /.../d, to avoid errors on $includefile's containing /.
32938 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
32940 * gnulib-tool (func_import): Avoid duplication of --avoid
32942 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32943 names to `_' in variable names.
32945 2007-07-10 Eric Blake <ebb9@byu.net>
32947 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32948 * NEWS: Document this change.
32950 2007-07-08 Bruno Haible <bruno@clisp.org>
32952 Update to Unicode 5.0.
32953 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32954 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32955 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32956 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32957 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32958 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32959 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32960 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32961 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32962 U+10A3F, U+1D242..U+1D244.
32963 (nonspacing_table_ind): Update.
32964 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32965 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32967 2007-07-08 Bruno Haible <bruno@clisp.org>
32969 Update to Unicode 5.0.
32970 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32971 code transform. Extend the name index field of unicode_name_to_code and
32972 unicode_code_to_name from 16 to 24 bits.
32973 * lib/uniname/uniname.c (unicode_character_name,
32974 unicode_name_character): Add the range 0x12xxx to the code transform.
32975 * lib/uniname/uninames.h: Regenerated.
32976 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32978 2007-07-07 Bruno Haible <bruno@clisp.org>
32980 * modules/wcwidth-tests: New file.
32981 * tests/test-wcwidth.c: New file.
32983 Work around MacOS X wcwidth() bug.
32984 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32985 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32986 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32987 original wcwidth in non-UTF-8 locales.
32988 * modules/wcwidth (Depends-on): Add localcharset, streq,
32990 * doc/functions/wcwidth.texi: Update.
32992 2007-07-07 Bruno Haible <bruno@clisp.org>
32994 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32995 (wcwidth): New declaration.
32996 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32998 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32999 here. Prepare for creating <wchar.h> unconditionally.
33000 * modules/wchar (Depends-on): Add link-warning.
33001 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33002 REPLACE_WCWIDTH, and GL_LINK_WARNING.
33003 * lib/wcwidth.h: Remove file.
33004 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33005 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33006 * modules/wcwidth (Files): Remove lib/wcwidth.h.
33007 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33008 (Include): Replace wcwidth.h with <wchar.h>.
33009 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33010 * lib/mbchar.h: Don't include wcwidth.h.
33011 * lib/mbswidth.c: Likewise.
33012 * NEWS: Mention the change.
33014 2007-07-07 Bruno Haible <bruno@clisp.org>
33016 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33017 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33018 definition with an external declaration.
33019 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33020 defined as a function. Remove AC_C_INLINE requirement.
33021 * modules/wcwidth (Files): Add lib/wcwidth.c.
33022 (Makefile.am): Remove redundant statement.
33024 2007-07-07 Bruno Haible <bruno@clisp.org>
33026 * MODULES.html.sh (Unicode string functions): Add the new modules.
33028 * tests/uniwidth/test-u32-strwidth.c: New file.
33029 * modules/uniwidth/u32-strwidth-tests: New file.
33031 * lib/uniwidth/u32-strwidth.c: New file.
33032 * modules/uniwidth/u32-strwidth: New file.
33034 * tests/uniwidth/test-u16-strwidth.c: New file.
33035 * modules/uniwidth/u16-strwidth-tests: New file.
33037 * lib/uniwidth/u16-strwidth.c: New file.
33038 * modules/uniwidth/u16-strwidth: New file.
33040 * tests/uniwidth/test-u8-strwidth.c: New file.
33041 * modules/uniwidth/u8-strwidth-tests: New file.
33043 * lib/uniwidth/u8-strwidth.c: New file.
33044 * modules/uniwidth/u8-strwidth: New file.
33046 * tests/uniwidth/test-u32-width.c: New file.
33047 * modules/uniwidth/u32-width-tests: New file.
33049 * lib/uniwidth/u32-width.c: New file.
33050 * modules/uniwidth/u32-width: New file.
33052 * tests/uniwidth/test-u16-width.c: New file.
33053 * modules/uniwidth/u16-width-tests: New file.
33055 * lib/uniwidth/u16-width.c: New file.
33056 * modules/uniwidth/u16-width: New file.
33058 * tests/uniwidth/test-u8-width.c: New file.
33059 * modules/uniwidth/u8-width-tests: New file.
33061 * lib/uniwidth/u8-width.c: New file.
33062 * modules/uniwidth/u8-width: New file.
33064 * tests/uniwidth/test-uc_width.c: New file.
33065 * modules/uniwidth/width-tests: New file.
33067 * lib/uniwidth/width.c: New file, from GNU libiconv.
33068 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33069 * modules/uniwidth/width: New file.
33071 * lib/uniwidth.h: New file, from GNU libiconv.
33072 * modules/uniwidth/base: New file.
33074 2007-07-07 Bruno Haible <bruno@clisp.org>
33076 * lib/uniname.h: New file, from GNU gettext.
33077 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33078 * lib/uniname/uninames.h: New file, from GNU gettext.
33079 * lib/uniname/uniname.c: New file, from GNU gettext.
33080 * tests/uniname/test-uninames.sh: New file.
33081 * tests/uniname/test-uninames.c: New file, from GNU gettext.
33082 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33083 * modules/uniname/base: New file.
33084 * modules/uniname/uniname: New file.
33085 * modules/uniname/uniname-tests: New file.
33086 * MODULES.html.sh (Unicode string functions): Add the new modules.
33088 2007-07-06 Bruno Haible <bruno@clisp.org>
33090 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33092 2007-07-06 Bruno Haible <bruno@clisp.org>
33094 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33095 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33096 includes <cygwin/sys_time.h> which includes <sys/select.h> which
33097 include <sys/time.h>.
33098 Reported by Eric Blake.
33100 2007-07-06 Eric Blake <ebb9@byu.net>
33102 Fix testing canonicalize on cygwin.
33103 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33104 Revert patch from 2007-06-19.
33105 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33106 canonicalize module is also in use.
33107 * tests/test-canonicalize.c: New file.
33108 * tests/test-canonicalize.sh: Likewise.
33109 * modules/canonicalize-tests: Likewise.
33111 2007-07-06 Jim Meyering <jim@meyering.net>
33113 * lib/getugroups.c (getugroups): Detect getgrent failure.
33114 Adjust comment to reflect reality: this function may return -1.
33116 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
33118 * build-aux/bootstrap (TP_URL,get_translations): Update to use
33119 the new TP address.
33121 (gnulib_mk): New variable.
33123 2007-07-05 Jim Meyering <jim@meyering.net>
33125 Don't let endgrent clobber errno, no matter how improbable.
33126 * lib/getugroups.c (getugroups): Save and restore errno around
33129 Close the group DB even when failing with 2^31 or more members.
33130 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33132 2007-07-04 Jim Meyering <jim@meyering.net>
33134 * lib/getugroups.h: New file.
33135 * lib/getugroups.c: Include "getugroups.h".
33136 Remove uses of "register" keyword.
33137 Move local variable, "cp", down into scope where used.
33138 Give "username" parameter the "const" attribute.
33139 * modules/getugroups (Files): Add lib/getugroups.h
33141 2007-07-04 Karl Berry <karl@gnu.org>
33143 * MODULES.html.sh (func_all_modules): Complete rename of
33144 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33146 2007-07-02 Bruno Haible <bruno@clisp.org>
33148 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33149 mode, when inttypes.h comes from gnulib.
33150 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33152 2007-07-02 Simon Josefsson <simon@josefsson.org>
33154 * NEWS: Mention lgpl module name change.
33156 * modules/lgpl-2.1: Renamed from lgpl.
33158 * NEWS: Mention gpl module name change.
33160 * modules/gpl-3.0: New file, based on gpl-2.0.
33162 * modules/gpl-2.0: Renamed from gpl.
33164 * modules/gpl: Fix filename, doc/gpl.texi is now found at
33167 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
33169 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33170 #define __STDC_LIMIT_MACROS temporarily while including
33171 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33172 Problem reported by Joel E. Denny in
33173 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33175 2007-07-01 Bruno Haible <bruno@clisp.org>
33177 * lib/unistdio.h: New file.
33178 * lib/unistdio/u-asnprintf.h: New file.
33179 * lib/unistdio/u-asprintf.h: New file.
33180 * lib/unistdio/u-printf-args.c: New file.
33181 * lib/unistdio/u-printf-args.h: New file.
33182 * lib/unistdio/u-printf-parse.h: New file.
33183 * lib/unistdio/u-snprintf.h: New file.
33184 * lib/unistdio/u-sprintf.h: New file.
33185 * lib/unistdio/u-vasprintf.h: New file.
33186 * lib/unistdio/u-vsnprintf.h: New file.
33187 * lib/unistdio/u-vsprintf.h: New file.
33188 * lib/unistdio/ulc-asnprintf.c: New file.
33189 * lib/unistdio/ulc-asprintf.c: New file.
33190 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33191 * lib/unistdio/ulc-printf-parse.c: New file.
33192 * lib/unistdio/ulc-snprintf.c: New file.
33193 * lib/unistdio/ulc-sprintf.c: New file.
33194 * lib/unistdio/ulc-vasnprintf.c: New file.
33195 * lib/unistdio/ulc-vasprintf.c: New file.
33196 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33197 * lib/unistdio/ulc-vsnprintf.c: New file.
33198 * lib/unistdio/ulc-vsprintf.c: New file.
33199 * lib/unistdio/u8-asnprintf.c: New file.
33200 * lib/unistdio/u8-asprintf.c: New file.
33201 * lib/unistdio/u8-printf-parse.c: New file.
33202 * lib/unistdio/u8-snprintf.c: New file.
33203 * lib/unistdio/u8-sprintf.c: New file.
33204 * lib/unistdio/u8-vasnprintf.c: New file.
33205 * lib/unistdio/u8-vasprintf.c: New file.
33206 * lib/unistdio/u8-vsnprintf.c: New file.
33207 * lib/unistdio/u8-vsprintf.c: New file.
33208 * lib/unistdio/u8-u8-asnprintf.c: New file.
33209 * lib/unistdio/u8-u8-asprintf.c: New file.
33210 * lib/unistdio/u8-u8-snprintf.c: New file.
33211 * lib/unistdio/u8-u8-sprintf.c: New file.
33212 * lib/unistdio/u8-u8-vasnprintf.c: New file.
33213 * lib/unistdio/u8-u8-vasprintf.c: New file.
33214 * lib/unistdio/u8-u8-vsnprintf.c: New file.
33215 * lib/unistdio/u8-u8-vsprintf.c: New file.
33216 * lib/unistdio/u16-asnprintf.c: New file.
33217 * lib/unistdio/u16-asprintf.c: New file.
33218 * lib/unistdio/u16-printf-parse.c: New file.
33219 * lib/unistdio/u16-snprintf.c: New file.
33220 * lib/unistdio/u16-sprintf.c: New file.
33221 * lib/unistdio/u16-vasnprintf.c: New file.
33222 * lib/unistdio/u16-vasprintf.c: New file.
33223 * lib/unistdio/u16-vsnprintf.c: New file.
33224 * lib/unistdio/u16-vsprintf.c: New file.
33225 * lib/unistdio/u16-u16-asnprintf.c: New file.
33226 * lib/unistdio/u16-u16-asprintf.c: New file.
33227 * lib/unistdio/u16-u16-snprintf.c: New file.
33228 * lib/unistdio/u16-u16-sprintf.c: New file.
33229 * lib/unistdio/u16-u16-vasnprintf.c: New file.
33230 * lib/unistdio/u16-u16-vasprintf.c: New file.
33231 * lib/unistdio/u16-u16-vsnprintf.c: New file.
33232 * lib/unistdio/u16-u16-vsprintf.c: New file.
33233 * lib/unistdio/u32-asnprintf.c: New file.
33234 * lib/unistdio/u32-asprintf.c: New file.
33235 * lib/unistdio/u32-printf-parse.c: New file.
33236 * lib/unistdio/u32-snprintf.c: New file.
33237 * lib/unistdio/u32-sprintf.c: New file.
33238 * lib/unistdio/u32-vasnprintf.c: New file.
33239 * lib/unistdio/u32-vasprintf.c: New file.
33240 * lib/unistdio/u32-vsnprintf.c: New file.
33241 * lib/unistdio/u32-vsprintf.c: New file.
33242 * lib/unistdio/u32-u32-asnprintf.c: New file.
33243 * lib/unistdio/u32-u32-asprintf.c: New file.
33244 * lib/unistdio/u32-u32-snprintf.c: New file.
33245 * lib/unistdio/u32-u32-sprintf.c: New file.
33246 * lib/unistdio/u32-u32-vasnprintf.c: New file.
33247 * lib/unistdio/u32-u32-vasprintf.c: New file.
33248 * lib/unistdio/u32-u32-vsnprintf.c: New file.
33249 * lib/unistdio/u32-u32-vsprintf.c: New file.
33250 * tests/unistdio/test-ulc-asnprintf1.c: New file.
33251 * tests/unistdio/test-ulc-asnprintf1.h: New file.
33252 * tests/unistdio/test-ulc-printf1.h: New file.
33253 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33254 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33255 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33256 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33257 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33258 * tests/unistdio/test-ulc-vasprintf1.c: New file.
33259 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33260 * tests/unistdio/test-ulc-vsprintf1.c: New file.
33261 * tests/unistdio/test-u8-asnprintf1.c: New file.
33262 * tests/unistdio/test-u8-asnprintf1.h: New file.
33263 * tests/unistdio/test-u8-printf1.h: New file.
33264 * tests/unistdio/test-u8-vasnprintf1.c: New file.
33265 * tests/unistdio/test-u8-vasnprintf2.c: New file.
33266 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33267 * tests/unistdio/test-u8-vasnprintf3.c: New file.
33268 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33269 * tests/unistdio/test-u8-vasprintf1.c: New file.
33270 * tests/unistdio/test-u8-vsnprintf1.c: New file.
33271 * tests/unistdio/test-u8-vsprintf1.c: New file.
33272 * tests/unistdio/test-u16-asnprintf1.c: New file.
33273 * tests/unistdio/test-u16-asnprintf1.h: New file.
33274 * tests/unistdio/test-u16-printf1.h: New file.
33275 * tests/unistdio/test-u16-vasnprintf1.c: New file.
33276 * tests/unistdio/test-u16-vasnprintf2.c: New file.
33277 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33278 * tests/unistdio/test-u16-vasnprintf3.c: New file.
33279 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33280 * tests/unistdio/test-u16-vasprintf1.c: New file.
33281 * tests/unistdio/test-u16-vsnprintf1.c: New file.
33282 * tests/unistdio/test-u16-vsprintf1.c: New file.
33283 * tests/unistdio/test-u32-asnprintf1.c: New file.
33284 * tests/unistdio/test-u32-asnprintf1.h: New file.
33285 * tests/unistdio/test-u32-printf1.h: New file.
33286 * tests/unistdio/test-u32-vasnprintf1.c: New file.
33287 * tests/unistdio/test-u32-vasnprintf2.c: New file.
33288 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33289 * tests/unistdio/test-u32-vasnprintf3.c: New file.
33290 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33291 * tests/unistdio/test-u32-vasprintf1.c: New file.
33292 * tests/unistdio/test-u32-vsnprintf1.c: New file.
33293 * tests/unistdio/test-u32-vsprintf1.c: New file.
33294 * modules/unistdio/base: New file.
33295 * modules/unistdio/u-printf-args: New file.
33296 * modules/unistdio/ulc-asnprintf: New file.
33297 * modules/unistdio/ulc-asprintf: New file.
33298 * modules/unistdio/ulc-fprintf: New file.
33299 * modules/unistdio/ulc-printf-parse: New file.
33300 * modules/unistdio/ulc-snprintf: New file.
33301 * modules/unistdio/ulc-sprintf: New file.
33302 * modules/unistdio/ulc-vasnprintf: New file.
33303 * modules/unistdio/ulc-vasprintf: New file.
33304 * modules/unistdio/ulc-vfprintf: New file.
33305 * modules/unistdio/ulc-vsnprintf: New file.
33306 * modules/unistdio/ulc-vsprintf: New file.
33307 * modules/unistdio/u8-asnprintf: New file.
33308 * modules/unistdio/u8-asprintf: New file.
33309 * modules/unistdio/u8-printf-parse: New file.
33310 * modules/unistdio/u8-snprintf: New file.
33311 * modules/unistdio/u8-sprintf: New file.
33312 * modules/unistdio/u8-vasnprintf: New file.
33313 * modules/unistdio/u8-vasprintf: New file.
33314 * modules/unistdio/u8-vsnprintf: New file.
33315 * modules/unistdio/u8-vsprintf: New file.
33316 * modules/unistdio/u8-u8-asnprintf: New file.
33317 * modules/unistdio/u8-u8-asprintf: New file.
33318 * modules/unistdio/u8-u8-snprintf: New file.
33319 * modules/unistdio/u8-u8-sprintf: New file.
33320 * modules/unistdio/u8-u8-vasnprintf: New file.
33321 * modules/unistdio/u8-u8-vasprintf: New file.
33322 * modules/unistdio/u8-u8-vsnprintf: New file.
33323 * modules/unistdio/u8-u8-vsprintf: New file.
33324 * modules/unistdio/u16-asnprintf: New file.
33325 * modules/unistdio/u16-asprintf: New file.
33326 * modules/unistdio/u16-printf-parse: New file.
33327 * modules/unistdio/u16-snprintf: New file.
33328 * modules/unistdio/u16-sprintf: New file.
33329 * modules/unistdio/u16-vasnprintf: New file.
33330 * modules/unistdio/u16-vasprintf: New file.
33331 * modules/unistdio/u16-vsnprintf: New file.
33332 * modules/unistdio/u16-vsprintf: New file.
33333 * modules/unistdio/u16-u16-asnprintf: New file.
33334 * modules/unistdio/u16-u16-asprintf: New file.
33335 * modules/unistdio/u16-u16-snprintf: New file.
33336 * modules/unistdio/u16-u16-sprintf: New file.
33337 * modules/unistdio/u16-u16-vasnprintf: New file.
33338 * modules/unistdio/u16-u16-vasprintf: New file.
33339 * modules/unistdio/u16-u16-vsnprintf: New file.
33340 * modules/unistdio/u16-u16-vsprintf: New file.
33341 * modules/unistdio/u32-asnprintf: New file.
33342 * modules/unistdio/u32-asprintf: New file.
33343 * modules/unistdio/u32-printf-parse: New file.
33344 * modules/unistdio/u32-snprintf: New file.
33345 * modules/unistdio/u32-sprintf: New file.
33346 * modules/unistdio/u32-vasnprintf: New file.
33347 * modules/unistdio/u32-vasprintf: New file.
33348 * modules/unistdio/u32-vsnprintf: New file.
33349 * modules/unistdio/u32-vsprintf: New file.
33350 * modules/unistdio/u32-u32-asnprintf: New file.
33351 * modules/unistdio/u32-u32-asprintf: New file.
33352 * modules/unistdio/u32-u32-snprintf: New file.
33353 * modules/unistdio/u32-u32-sprintf: New file.
33354 * modules/unistdio/u32-u32-vasnprintf: New file.
33355 * modules/unistdio/u32-u32-vasprintf: New file.
33356 * modules/unistdio/u32-u32-vsnprintf: New file.
33357 * modules/unistdio/u32-u32-vsprintf: New file.
33358 * modules/unistdio/ulc-asnprintf-tests: New file.
33359 * modules/unistdio/ulc-vasnprintf-tests: New file.
33360 * modules/unistdio/ulc-vasprintf-tests: New file.
33361 * modules/unistdio/ulc-vsnprintf-tests: New file.
33362 * modules/unistdio/ulc-vsprintf-tests: New file.
33363 * modules/unistdio/u8-asnprintf-tests: New file.
33364 * modules/unistdio/u8-vasnprintf-tests: New file.
33365 * modules/unistdio/u8-vasprintf-tests: New file.
33366 * modules/unistdio/u8-vsnprintf-tests: New file.
33367 * modules/unistdio/u8-vsprintf-tests: New file.
33368 * modules/unistdio/u16-asnprintf-tests: New file.
33369 * modules/unistdio/u16-vasnprintf-tests: New file.
33370 * modules/unistdio/u16-vasprintf-tests: New file.
33371 * modules/unistdio/u16-vsnprintf-tests: New file.
33372 * modules/unistdio/u16-vsprintf-tests: New file.
33373 * modules/unistdio/u32-asnprintf-tests: New file.
33374 * modules/unistdio/u32-vasnprintf-tests: New file.
33375 * modules/unistdio/u32-vasprintf-tests: New file.
33376 * modules/unistdio/u32-vsnprintf-tests: New file.
33377 * modules/unistdio/u32-vsprintf-tests: New file.
33378 * MODULES.html.sh (Unicode string functions): Add the new modules.
33380 2007-07-01 Bruno Haible <bruno@clisp.org>
33382 * lib/sprintf.c (sprintf): Limit the available length estimation,
33383 to avoid address wraparound.
33384 * lib/vsprintf.c (vsprintf): Likewise.
33385 * modules/sprintf-posix (Dependencies): Add stdint.
33386 * modules/vsprintf-posix (Dependencies): Likewise.
33388 2007-07-01 Bruno Haible <bruno@clisp.org>
33390 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33391 Windows PATH as well. Conservative double-quoting. Comments.
33393 2007-07-01 Bruno Haible <bruno@clisp.org>
33394 Eric Blake <ebb9@byu.net>
33395 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33397 * gnulib-tool (self_abspathname): Fix algorithm to cope with
33398 empty components in $PATH, denoting '.'.
33400 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33402 * gnulib-tool: Fix indentation.
33403 (func_create_megatestdir): Likewise.
33404 Report by Bruno Haible.
33406 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33408 Sync from Automake.
33409 * build-aux/gnupload: Fix shell portability issues with for loops.
33410 Report by Karl Berry.
33412 2007-06-29 Simon Josefsson <simon@josefsson.org>
33414 * build-aux/maint.mk (POURL): Use translationproject.org.
33416 2007-06-27 Simon Josefsson <simon@josefsson.org>
33417 Bruno Haible <bruno@clisp.org>
33419 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33420 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33421 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33422 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33423 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33425 2007-06-27 Bruno Haible <bruno@clisp.org>
33427 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33428 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33430 2007-06-26 Karl Berry <karl@gnu.org>
33432 * MODULES.html.sh: remove xreadlink-with-size.
33434 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
33436 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33437 method that I hope also handles the double-include problem noted
33439 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33441 2007-06-23 Bruno Haible <bruno@clisp.org>
33443 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33444 Don't let the 'mostlyclean' target fail if the last subdirectory could
33446 Reported by Karl Berry.
33448 2007-06-23 Bruno Haible <bruno@clisp.org>
33450 * gnulib-tool (echo): Add a speedier workaround for ksh.
33451 * tests/test-echo.sh: Likewise.
33453 2007-06-23 Bruno Haible <bruno@clisp.org>
33455 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33456 * tests/test-echo.sh: Likewise.
33458 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33460 * gnulib-tool (IFS): Initialize early, so we don't set it to
33462 (self_abspathname): Rewrite algorithm to set it, reindent.
33463 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33464 (func_create_megatestdir): Merge some sed scripts.
33466 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
33468 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33469 exposed by Sun Studio 11 cc on Solaris 8.
33471 2007-06-22 Bruno Haible <bruno@clisp.org>
33473 * gnulib-tool (echo): Ensure the echo primitive does not interpret
33475 * tests/test-echo.sh: New file.
33477 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33479 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33480 simplify `sed_replace_build_aux' scripts, they are portable but
33481 echoing them with `echo' is not.
33482 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33484 2007-06-21 Karl Berry <karl@gnu.org>
33486 * config/srclist.txt: guess we can't handle the licenses via
33487 srclist at the moment.
33489 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
33491 * MODULES.html.sh: Add include_next.
33492 * modules/include_next: New file.
33494 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
33496 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33498 (gl_CHECK_NEXT_HEADERS): New macro.
33499 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33500 the obsolescent gl_ABSOLUTE_HEADER.
33501 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33502 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33503 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33504 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33505 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33506 * m4/math_h.m4 (gl_MATH_H): Likewise.
33507 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33508 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33509 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33510 * m4/stdint.m4 (gl_STDINT_H): Likewise.
33511 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33512 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33513 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33514 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33515 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33516 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33517 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33518 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33519 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33520 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33521 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33522 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33523 * m4/inttypes.m4 (gl_INTTYPES_H): Define
33524 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33525 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33526 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33527 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33528 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33529 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33530 * lib/float_.h: Likewise.
33531 * lib/inttypes_.h: Likewise.
33532 * lib/math_.h: Likewise.
33533 * lib/search_.h: Likewise.
33534 * lib/signal_.h: Likewise.
33535 * lib/stdint_.h: Likewise.
33536 * lib/stdio_.h: Likewise.
33537 * lib/stdlib_.h: Likewise.
33538 * lib/string_.h: Likewise.
33539 * lib/sys_stat_.h: Likewise.
33540 * lib/sys_time_.h: Likewise.
33541 * lib/time_.h: Likewise.
33542 * lib/unistd_.h: Likewise.
33543 * lib/wchar_.h: Likewise.
33544 * lib/wctype_.h: Likewise.
33545 * lib/dirent_.h: Likewise.
33546 * lib/iconv_.h: Likewise.
33547 * lib/locale_.h: Likewise.
33548 * lib/netinet_in_.h: Likewise.
33549 * lib/sys_select_.h: Likewise.
33550 * lib/sys_socket_.h: Likewise.
33551 * lib/sysexits_.h: Likewise.
33552 * modules/fcntl (Depends-on): Depend on include_next, not
33554 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33555 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33556 * modules/fchdir: Likewise.
33557 * modules/float: Likewise.
33558 * modules/iconv_open: Likewise.
33559 * modules/inttypes: Likewise.
33560 * modules/locale: Likewise.
33561 * modules/math: Likewise.
33562 * modules/netinet_in: Likewise.
33563 * modules/search: Likewise.
33564 * modules/signal: Likewise.
33565 * modules/stdint: Likewise.
33566 * modules/stdio: Likewise.
33567 * modules/stdlib: Likewise.
33568 * modules/string: Likewise.
33569 * modules/sys_select: Likewise.
33570 * modules/sys_socket: Likewise.
33571 * modules/sys_stat: Likewise.
33572 * modules/sys_time: Likewise.
33573 * modules/sysexits: Likewise.
33574 * modules/time: Likewise.
33575 * modules/unistd: Likewise.
33576 * modules/wchar: Likewise.
33577 * modules/wctype: Likewise.
33578 * modules/sys_stat: Change maintainer to "all".
33579 * modules/unistd: Likewise.
33581 2007-06-20 Karl Berry <karl@gnu.org>
33583 * config/srclist.txt: track www changes in license files.
33585 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
33587 * build-aux/bootstrap: Remove stray dot.
33588 Make sure build_aux settings are honored when linking
33589 gnulib_extra_files.
33591 2007-06-19 Eric Blake <ebb9@byu.net>
33593 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33594 Allow compilation on cygwin.
33596 2007-06-19 Jim Meyering <jim@meyering.net>
33598 xreadlink-with-size: Remove module. No longer used.
33599 Ex-callers now use xreadlink or mreadlink-with-size.
33600 * modules/xreadlink-with-size: Remove module.
33601 * lib/xreadlink-with-size.c: Remove file.
33602 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33603 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
33604 just before the function definition *is* accurate.
33606 Eliminate one way canonicalize_filename_mode could exit.
33607 * lib/canonicalize.c (canonicalize_filename_mode):
33608 Use mreadlink_with_size, not xreadlink_with_size.
33610 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
33612 Detect porting problems to FreeBSD/arm, which has time_t wider than
33613 long int. Original problem reported for GNU diff by Xin Li in
33614 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33615 * modules/getdate (Depends-on): Add intprops, verify.
33616 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
33617 is an integer type no wider than long int.
33619 2007-06-18 Jim Meyering <jim@meyering.net>
33621 New module: mreadlink-with-size.
33622 * MODULES.html.sh: Add mreadlink-with-size.
33623 * modules/mreadlink-with-size: New module
33624 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33625 not xreadlink-with-size.
33626 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33628 2007-06-16 Bruno Haible <bruno@clisp.org>
33630 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33631 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33632 Reported by Gary V. Vaughan <gary@gnu.org>.
33634 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
33636 Revamp lchown so that it lives in unistd.h where it belongs.
33637 * lib/lchown.h: Remove.
33638 * lib/dirchownmod.c: Don't include lib/lchown.h.
33639 * lib/fchownat.c: Likewise.
33640 * lib/openat.c: Likewise.
33641 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33642 does not follow symlinks.
33643 (EOPNOTSUPP): Define if not defined.
33644 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33646 (lchown): New decl.
33647 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33648 Do not check for lchown decl.
33649 Set REPLACE_LCHOWN.
33650 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33652 * modules/chown: Make it clear it follows symlinks.
33653 * modules/lchown: Make it clear it doesn't follow symlinks.
33654 (Files): Remove lib/lchown.h
33655 (Depends-on): Add unistd.
33656 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33657 (Include): Include <unistd.h>, not "lchown.h".
33658 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33661 2007-06-15 Jim Meyering <jim@meyering.net>
33663 Change license (GPL to LGPL) of fsusage and dependents.
33664 * modules/fsusage (License): Change to LGPL.
33665 * modules/full-read (License): Likewise.
33666 * modules/full-write (License): Likewise.
33667 * modules/safe-read (License): Likewise.
33668 * modules/safe-write (License): Likewise.
33670 2007-06-14 Ben Pfaff <blp@gnu.org>
33672 Missing part of allocsa -> malloca transition.
33673 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33676 2007-06-12 Bruno Haible <bruno@clisp.org>
33678 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33679 to ia64, x86_64, i386.
33680 Reported by Eric Blake.
33682 2007-06-12 Bruno Haible <bruno@clisp.org>
33684 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33685 cross-compiling to x86_64.
33687 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
33689 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33690 glitch reported by Ralf Wildenhues in
33691 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33693 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33696 2007-06-11 Bruno Haible <bruno@clisp.org>
33698 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33699 replacement string.
33700 Reported by Eric Blake.
33702 2007-06-10 Bruno Haible <bruno@clisp.org>
33704 Prepare vasnprintf code for use with Unicode strings.
33705 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33706 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33708 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33709 a_u32_string variants.
33710 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33711 * lib/printf-args.c: Don't include config.h and the specification
33712 header if PRINTF_FETCHARGS is already defined.
33713 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33714 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33715 TYPE_U16_STRING, TYPE_U32_STRING.
33716 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33717 u16_directive, u16_directives, u32_directive, u32_directives): New
33719 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33721 * lib/printf-parse.c: Don't include config.h and the specification
33722 header if PRINTF_PARSE is already defined. Eliminate the set of
33723 parameters for WIDE_CHAR_VERSION; the user of this file must provide
33724 them now. Include c-ctype.h.
33725 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33726 directive and CHAR_T_ONLY_ASCII.
33727 * lib/vasnprintf.c: Don't include config.h and the specification header
33728 if VASNPRINTF is already defined.
33729 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33730 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33731 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33732 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33733 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33734 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33736 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33737 pad_ourselves also in this case, with the 'c' and 's' directives, and
33738 with a different notion of "width".
33739 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33741 2007-06-10 Bruno Haible <bruno@clisp.org>
33743 * modules/unistr/u32-mbsnlen: New file.
33744 * lib/unistr/u32-mbsnlen.c: New file.
33746 * modules/unistr/u16-mbsnlen: New file.
33747 * lib/unistr/u16-mbsnlen.c: New file.
33749 * modules/unistr/u8-mbsnlen: New file.
33750 * lib/unistr/u8-mbsnlen.c: New file.
33752 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33755 2007-06-10 Bruno Haible <bruno@clisp.org>
33757 * lib/string_.h (mbsnlen): New declaration.
33758 * lib/mbsnlen.c: New file.
33759 * m4/mbsnlen.m4: New file.
33760 * modules/mbsnlen: New file.
33761 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33762 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33763 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33765 2007-06-10 Bruno Haible <bruno@clisp.org>
33767 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33769 2007-06-10 Bruno Haible <bruno@clisp.org>
33771 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33772 * lib/mbuiter.h: Likewise.
33774 2007-06-10 Bruno Haible <bruno@clisp.org>
33776 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33779 2007-06-10 Karl Berry <karl@gnu.org>
33781 * config/srclist.txt: remove gettext entries, Bruno prefers
33782 to update individually.
33784 2007-06-10 Bruno Haible <bruno@clisp.org>
33786 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33787 'maxlen'. Ensure only length + width bytes are allocated, not
33788 length + 1 + width.
33790 2007-06-09 Bruno Haible <bruno@clisp.org>
33792 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33793 (CHAR_T): Remove macro.
33794 (VASNPRINTF): Update.
33796 2007-06-09 Bruno Haible <bruno@clisp.org>
33798 * MODULES.html.sh (Unicode string functions): Add the new modules.
33800 * modules/uniconv/u32-conv-to-enc: New file.
33801 * lib/uniconv/u32-conv-to-enc.c: New file.
33802 * modules/uniconv/u32-conv-to-enc-tests: New file.
33803 * tests/uniconv/test-u32-conv-to-enc.c: New file.
33805 * modules/uniconv/u16-conv-to-enc: New file.
33806 * lib/uniconv/u16-conv-to-enc.c: New file.
33807 * lib/uniconv/u-conv-to-enc.h: New file.
33808 * modules/uniconv/u16-conv-to-enc-tests: New file.
33809 * tests/uniconv/test-u16-conv-to-enc.c: New file.
33811 * modules/uniconv/u8-conv-to-enc: New file.
33812 * lib/uniconv/u8-conv-to-enc.c: New file.
33813 * modules/uniconv/u8-conv-to-enc-tests: New file.
33814 * tests/uniconv/test-u8-conv-to-enc.c: New file.
33816 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33817 u32_conv_to_encoding): New declarations.
33819 2007-06-09 Bruno Haible <bruno@clisp.org>
33821 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33823 2007-06-09 Bruno Haible <bruno@clisp.org>
33825 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33826 * modules/malloca: Renamed from modules/allocsa, updated.
33827 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33828 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33829 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33830 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33831 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33832 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33833 * modules/xmalloca: Renamed from modules/xallocsa, updated.
33834 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33835 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33836 * modules/c-strcasestr (Depends-on): Update.
33837 * lib/c-strcasestr.c: Update.
33838 * modules/c-strstr (Depends-on): Update.
33839 * lib/c-strstr.c: Update.
33840 * modules/canonicalize-lgpl (Depends-on): Update.
33841 * lib/canonicalize-lgpl.c: Update.
33842 * modules/clean-temp (Depends-on): Update.
33843 * lib/clean-temp.c: Update.
33844 * modules/csharpcomp (Depends-on): Update.
33845 * lib/csharpcomp.c: Update.
33846 * modules/csharpexec (Depends-on): Update.
33847 * lib/csharpexec.c: Update.
33848 * modules/javacomp (Depends-on): Update.
33849 * lib/javacomp.c: Update.
33850 * modules/javaexec (Depends-on): Update.
33851 * lib/javaexec.c: Update.
33852 * modules/mbscasestr (Depends-on): Update.
33853 * lib/mbscasestr.c: Update.
33854 * modules/mbsstr (Depends-on): Update.
33855 * lib/mbsstr.c: Update.
33856 * modules/setenv (Depends-on): Update.
33857 * lib/setenv.c: Update.
33858 * modules/strcasestr (Depends-on): Update.
33859 * lib/strcasestr.c: Update.
33860 * modules/striconveha (Depends-on): Update.
33861 * lib/striconveha.c: Update.
33862 * modules/relocatable-prog-wrapper (Files): Update.
33863 * lib/relocwrapper.c: Update.
33864 * build-aux/install-reloc: Update.
33865 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33867 2007-06-08 Bruno Haible <bruno@clisp.org>
33870 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33871 * lib/fpurge.c (fpurge): Likewise.
33872 * lib/freading.c (freading): Likewise.
33873 * lib/fseeko.c (rpl_fseeko): Likewise.
33874 * lib/fseterr.c (fseterr): Likewise.
33875 * lib/fwriting.c (fwriting): Likewise.
33876 * tests/test-fflush.c (main): Avoid a failure on uClibc.
33878 2007-06-08 Bruno Haible <bruno@clisp.org>
33880 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33881 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33882 * modules/gettext (Files): Add m4/intlmacosx.m4.
33884 2007-06-07 Bruno Haible <bruno@clisp.org>
33886 * modules/localename-tests: New file.
33887 * tests/test-localename.c: New file.
33889 New module 'localename'.
33890 * lib/localename.h: New file.
33891 * lib/localename.c: New file, from GNU gettext.
33892 * m4/localename.m4: New file.
33893 * modules/localename: New file.
33895 2007-06-07 Bruno Haible <bruno@clisp.org>
33897 Work around the lack of <wchar.h> on some builds of uClibc.
33898 * doc/headers/wchar.texi: Update.
33899 * lib/wchar_.h: Include <wchar.h> only if it exists.
33900 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33901 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33902 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33904 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33905 * modules/mbfile (Depends-on): Add wchar.
33906 * modules/mbiter (Depends-on): Likewise.
33907 * modules/mbuiter (Depends-on): Likewise.
33908 Reported by Simon Josefsson.
33910 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
33912 Work around problem reported by Steven M. Schweda in
33913 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33914 Tru64 5.1B with the Compaq compiler environment installed declares
33915 an 'isblank' function but does not define it in the C library.
33916 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33917 * lib/regex_internal.h (isblank): Likewise.
33918 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33919 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33921 2007-06-05 Bruno Haible <bruno@clisp.org>
33923 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33925 * modules/printf-safe: New file.
33926 * modules/fprintf-posix (Depends-on): Add printf-safe.
33927 * modules/printf-posix (Depends-on): Likewise.
33928 * modules/snprintf-posix (Depends-on): Likewise.
33929 * modules/sprintf-posix (Depends-on): Likewise.
33930 * modules/vasnprintf-posix (Depends-on): Likewise.
33931 * modules/vasprintf-posix (Depends-on): Likewise.
33932 * modules/vfprintf-posix (Depends-on): Likewise.
33933 * modules/vprintf-posix (Depends-on): Likewise.
33934 * modules/vsnprintf-posix (Depends-on): Likewise.
33935 * modules/vsprintf-posix (Depends-on): Likewise.
33936 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33937 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33938 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33939 "no" on i386, x86_64, ia64.
33940 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33941 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33942 on i386, x86_64, ia64.
33943 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33944 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33945 on i386, x86_64, ia64.
33946 * tests/test-vasnprintf-posix.c: Include float.h.
33947 (LDBL80_WORDS): New macro.
33948 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33949 on i386, x86_64, ia64.
33950 * tests/test-vasprintf-posix.c: Include float.h.
33951 (LDBL80_WORDS): New macro.
33952 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33953 on i386, x86_64, ia64.
33954 * tests/test-snprintf-posix.c: Include float.h.
33955 * tests/test-sprintf-posix.c: Likewise.
33956 * tests/test-vsnprintf-posix.c: Likewise.
33957 * tests/test-vsprintf-posix.c: Likewise.
33959 2007-06-05 Bruno Haible <bruno@clisp.org>
33961 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33962 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33963 non-IEEE numbers on i386, x86_64, ia64.
33964 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33965 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33966 * tests/test-isnanl.h: Include float.h.
33967 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33969 2007-06-05 Bruno Haible <bruno@clisp.org>
33971 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33972 also the %a / %A. Handle the %a / %A code before this extra handling.
33974 2007-06-05 Bruno Haible <bruno@clisp.org>
33976 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33977 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33979 2007-06-05 Bruno Haible <bruno@clisp.org>
33981 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33982 typo in variable name.
33984 2007-06-05 Eric Blake <ebb9@byu.net>
33986 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33987 Reported by Simon Josefsson.
33989 2007-06-04 Bruno Haible <bruno@clisp.org>
33991 Avoid test failures on some PowerPC platforms.
33992 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33993 Define differently for PowerPC.
33994 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33995 Reported by Gary V. Vaughan <gary@gnu.org>.
33997 2007-06-02 Bruno Haible <bruno@clisp.org>
33999 Fix test-stdint failure on FreeBSD/ia64.
34000 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34001 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34002 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34003 * doc/headers/stdint.texi: Update.
34005 2007-06-01 Bruno Haible <bruno@clisp.org>
34007 * tests/test-binary-io.c (main): Pass a third argument to open().
34008 Reported by Gary V. Vaughan <gary@gnu.org>.
34010 2007-06-01 Bruno Haible <bruno@clisp.org>
34012 * doc/functions/frexpl.texi: Update for mingw.
34014 2007-06-01 Bruno Haible <bruno@clisp.org>
34016 * tests/test-lseek.c (main): Disable test of errno for invalid third
34018 * doc/functions/lseek.texi: Update.
34019 Reported by Gary V. Vaughan <gary@gnu.org>.
34021 2007-05-28 Bruno Haible <bruno@clisp.org>
34023 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34025 2007-05-31 Eric Blake <ebb9@byu.net>
34027 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34030 2007-05-30 Eric Blake <ebb9@byu.net>
34031 and Bruno Haible <bruno@clisp.org>
34033 Work around mingw test failures exposed by m4-1.4.9b.
34034 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34035 * tests/test-unistd.c: Disable uid_t and git_t tests for the
34038 2007-05-30 Bruno Haible <bruno@clisp.org>
34040 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34041 assuming that they are closed. Needed on HP-UX 11.
34043 2007-05-29 Bruno Haible <bruno@clisp.org>
34045 Fix a problem with #include_next.
34046 * lib/dirent_.h: Split the double-inclusion guard.
34047 * lib/fcntl_.h: Likewise.
34048 * lib/float_.h: Likewise.
34049 * lib/iconv_.h: Likewise.
34050 * lib/inttypes_.h: Likewise.
34051 * lib/locale_.h: Likewise.
34052 * lib/math_.h: Likewise.
34053 * lib/netinet_in_.h: Likewise.
34054 * lib/search_.h: Likewise.
34055 * lib/signal_.h: Likewise.
34056 * lib/stdint_.h: Likewise.
34057 * lib/stdio_.h: Likewise.
34058 * lib/stdlib_.h: Likewise.
34059 * lib/string_.h: Likewise.
34060 * lib/sys_select_.h: Likewise.
34061 * lib/sys_socket_.h: Likewise.
34062 * lib/sys_stat_.h: Likewise.
34063 * lib/sys_time_.h: Likewise.
34064 * lib/sysexits_.h: Likewise.
34065 * lib/time_.h: Likewise.
34066 * lib/unistd_.h: Likewise.
34067 * lib/wchar_.h: Likewise.
34068 * lib/wctype_.h: Likewise.
34070 2007-05-29 Bruno Haible <bruno@clisp.org>
34072 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34075 2007-05-29 Bruno Haible <bruno@clisp.org>
34077 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34079 Reported by Eric Blake.
34081 2007-05-29 Bruno Haible <bruno@clisp.org>
34083 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34086 2007-05-29 Eric Blake <ebb9@byu.net>
34087 Bruno Haible <bruno@clisp.org>
34089 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34092 2007-05-28 Eric Blake <ebb9@byu.net>
34094 * modules/closein-tests (test_closein_LDADD): Support test on
34095 cygwin with libtool.
34097 2007-05-28 Bruno Haible <bruno@clisp.org>
34099 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34100 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34101 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34102 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34103 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34104 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34105 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34106 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34107 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34109 2007-05-28 Eric Blake <ebb9@byu.net>
34111 Unconditionally include <config.h> in unit tests.
34112 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34113 * tests/test-allocsa.c, tests/test-arcfour.c,
34114 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34115 tests/test-array_list.c, tests/test-array_oset.c,
34116 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34117 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34118 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34119 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34120 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34121 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34122 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34123 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34124 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34125 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34126 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34127 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34128 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34129 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34130 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34131 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34132 test-md5.c, test-memmem.c, test-printf-posix.c,
34133 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34134 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34135 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34136 test-strcasestr.c, test-striconv.c, test-striconveh.c,
34137 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34138 test-vasnprintf-posix2.c, test-vasnprintf.c,
34139 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34140 test-vfprintf-posix.c, test-vprintf-posix.c,
34141 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34142 test-xvasprintf.c: Likewise.
34144 2007-05-28 Bruno Haible <bruno@clisp.org>
34146 * gnulib-tool (func_import): Remember the --with-tests command-line
34147 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34148 Reported by Eric Blake.
34150 2007-05-28 Bruno Haible <bruno@clisp.org>
34152 * modules/ftell-tests: New file.
34153 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34154 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34156 * lib/ftell.c: New file.
34157 * modules/ftell: New file.
34158 * m4/ftell.m4: New file.
34159 * doc/functions/ftell.texi: Update.
34160 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34162 * lib/stdio_.h (rpl_ftell): New declaration.
34163 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34166 2007-05-28 Eric Blake <ebb9@byu.net>
34168 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34170 2007-05-28 Bruno Haible <bruno@clisp.org>
34172 * modules/fseek-tests: New file.
34173 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34174 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34176 * lib/fseek.c: New file.
34177 * modules/fseek: New file.
34178 * m4/fseek.m4: New file.
34179 * doc/functions/fseek.texi: Update.
34180 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34182 * lib/stdio_.h (rpl_fseek): New declaration.
34183 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34186 2007-05-28 Bruno Haible <bruno@clisp.org>
34188 * lib/stdio_.h (fflush): More comments.
34190 2007-05-28 Bruno Haible <bruno@clisp.org>
34192 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34195 2007-05-28 Eric Blake <ebb9@byu.net>
34197 Improve lseek module.
34198 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34199 * lib/unistd_.h (lseek): Scale back link warning message.
34200 * tests/test-lseek.c: Beef up test.
34201 * tests/test-lseek.sh: Exercise more facets of lseek.
34202 Reported by Bruno Haible.
34204 2007-05-28 Bruno Haible <bruno@clisp.org>
34206 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34209 2007-05-27 Bruno Haible <bruno@clisp.org>
34211 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34213 2007-05-27 Bruno Haible <bruno@clisp.org>
34215 * modules/openmp: New file.
34216 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34219 2007-05-26 Bruno Haible <bruno@clisp.org>
34221 * modules/chdir-long (Depends-on): Add fchdir.
34222 * modules/chdir-safer (Depends-on): Likewise.
34223 * modules/fts (Depends-on): Likewise.
34224 * modules/fts-lgpl (Depends-on): Likewise.
34225 * modules/openat (Depends-on): Likewise.
34226 * modules/savewd (Depends-on): Likewise.
34228 2007-05-24 Eric Blake <ebb9@byu.net>
34230 Fix lseek on mingw.
34231 * modules/lseek: New module.
34232 * m4/lseek.m4: New file.
34233 * lib/lseek.c: New file.
34234 * modules/lseek-tests: New file.
34235 * tests/test-lseek.c: New file.
34236 * tests/test-lseek.sh: New file.
34237 * MODULES.html.sh: Document lseek module.
34238 * modules/fflush (Depends-on): Add lseek, fseeko.
34239 * modules/fseeko (Depends-on): Likewise.
34240 * modules/ftello (Depends-on): Likewise.
34241 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34243 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34245 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34246 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34247 * lib/ftello.c (rpl_ftello): Likewise.
34248 * tests/test-fseeko.c (main): Test this.
34249 * tests/test-fseeko.sh: Likewise.
34250 * tests/test-ftello.c (main): Likewise.
34251 * tests/test-ftello.sh: Likewise.
34252 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34253 implies replacing fseek.
34254 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34256 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34257 * modules/unistd (Makefile.am): Likewise.
34258 * lib/unistd_.h (lseek): Declare a replacement.
34259 * doc/functions/lseek.texi (lseek): Document this fix.
34260 * doc/functions/fseek.texi (fseek): Likewise.
34261 * doc/functions/ftell.texi (ftell): Likewise.
34263 2007-05-24 Bruno Haible <bruno@clisp.org>
34265 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34266 in the printed representation of a NaN.
34267 * tests/test-vasprintf-posix.c (test_function): Likewise.
34268 * tests/test-snprintf-posix.h (test_function): Likewise.
34269 * tests/test-sprintf-posix.h (test_function): Likewise.
34270 Reported by Eric Blake.
34272 2007-05-23 Eric Blake <ebb9@byu.net>
34274 Fix fseeko/ftello on cygwin 1.5.24.
34275 * doc/functions/fseeko.texi (fseeko): Document the fix.
34276 * doc/functions/ftello.texi (ftello): Document the fix.
34277 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34278 * doc/functions/stdout.text (stdout): New file.
34279 * doc/functions/stderr.text (stderr): New file.
34280 * doc/gnulib.texi (Function Substitutes): Use new files.
34281 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34283 * tests/test-ftello.c (main): Likewise for ftello.
34284 * tests/test-fseeko.sh: New file.
34285 * tests/test-ftello.sh: New file.
34286 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34287 with seekable stdin.
34288 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34289 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34290 (gl_REPLACE_FSEEKO): New macro.
34291 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34292 * modules/fseeko (Files): Distribute fseeko.c.
34293 * modules/ftello (Files): Distribute ftello.c.
34294 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34296 * lib/ftello.c (rpl_ftello): New file.
34297 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34299 (gl_STDIN_LARGE_OFFSET): New macro.
34300 * modules/stdio (Makefile.am): Perform the replacement.
34301 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34303 2007-05-23 Bruno Haible <bruno@clisp.org>
34305 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34306 GNULIB_POSIXCHECK is defined.
34308 2007-05-21 Bruno Haible <bruno@clisp.org>
34310 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34311 Check also the output for NaN arguments. When cross-compiling, guess
34313 * lib/vasnprintf.c: Update comments.
34314 * tests/test-vasnprintf-posix.c (strisnan): New function.
34315 (test_function): Use it.
34316 * tests/test-vasprintf-posix.c (strisnan): New function.
34317 (test_function): Use it.
34318 * tests/test-snprintf-posix.h (strisnan): New function.
34319 (test_function): Use it.
34320 * tests/test-sprintf-posix.h (strisnan): New function.
34321 (test_function): Use it.
34322 Reported by Eric Blake.
34324 2007-05-20 Bruno Haible <bruno@clisp.org>
34326 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34327 numbers that fails on BeOS.
34328 * doc/functions/frexpl.texi: Update.
34330 2007-05-20 Jim Meyering <jim@meyering.net>
34332 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34333 forced upon us by glibc-2.6.
34335 2007-05-20 Bruno Haible <bruno@clisp.org>
34337 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34338 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34339 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34340 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34341 NEED_PRINTF_INFINITE.
34342 (is_infinitel): New function.
34343 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34344 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34345 gl_PREREQ_VASNPRINTF_INFINITE.
34346 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34347 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34348 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34349 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34350 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34351 gl_PREREQ_VASNPRINTF_INFINITE.
34352 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34353 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34354 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34355 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34356 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34357 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34358 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34359 * doc/functions/fprintf.texi: Update.
34360 * doc/functions/printf.texi: Update.
34361 * doc/functions/snprintf.texi: Update.
34362 * doc/functions/sprintf.texi: Update.
34363 * doc/functions/vfprintf.texi: Update.
34364 * doc/functions/vprintf.texi: Update.
34365 * doc/functions/vsnprintf.texi: Update.
34366 * doc/functions/vsprintf.texi: Update.
34368 2007-05-20 Bruno Haible <bruno@clisp.org>
34370 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34371 was not found in libc.
34372 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34374 2007-05-20 Bruno Haible <bruno@clisp.org>
34376 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34377 printed as "-nan" instead of "nan".
34378 * tests/test-vasprintf-posix.c (test_function): Likewise.
34379 * tests/test-snprintf-posix.h (test_function): Likewise.
34380 * tests/test-sprintf-posix.h (test_function): Likewise.
34381 Needed for HP-UX 11.
34383 2007-05-20 Jim Meyering <jim@meyering.net>
34385 Fix buggy test for the fchownat-deref bug.
34386 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34387 symlink required for the run-test. Without it, this test would
34388 always declare that fchownat doesn't work, and client code would
34389 unnecessarily use the replacement function with fixed libc.
34390 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34391 Reported by Greg Schafer.
34393 2007-05-19 Bruno Haible <bruno@clisp.org>
34395 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34396 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34397 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34398 Needed for IRIX 6.5 and Solaris 2.5.1.
34400 2007-05-19 Bruno Haible <bruno@clisp.org>
34402 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34403 (test_function): Skip tests involving -0.0 on platforms where
34405 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34406 (test_function): Skip tests involving -0.0 on platforms where
34408 * tests/test-snprintf-posix.h (have_minus_zero): New function.
34409 (test_function): Skip tests involving -0.0 on platforms where
34411 * tests/test-sprintf-posix.h (have_minus_zero): New function.
34412 (test_function): Skip tests involving -0.0 on platforms where
34414 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34416 * tests/test-printf-posix.h (test_function): Likewise.
34417 * tests/test-printf-posix.output: Remove all -0.0 related results.
34418 Needed for IRIX 6.5.
34420 2007-05-19 Bruno Haible <bruno@clisp.org>
34422 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34423 printed as "nan0x7fffffff" instead of "nan".
34424 * tests/test-vasprintf-posix.c (test_function): Likewise.
34425 * tests/test-snprintf-posix.h (test_function): Likewise.
34426 * tests/test-sprintf-posix.h (test_function): Likewise.
34427 * tests/test-fprintf-posix.h (NaN): Remove macro.
34428 (test_function): Remove all NaN related tests.
34429 * tests/test-printf-posix.h (NaN): Remove macro.
34430 (test_function): Remove all NaN related tests.
34431 * tests/test-printf-posix.output: Remove all NaN related results.
34432 Needed for IRIX 6.5.
34434 2007-05-19 Bruno Haible <bruno@clisp.org>
34436 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34437 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34439 2007-05-19 Bruno Haible <bruno@clisp.org>
34441 * lib/float_.h: New file.
34442 * m4/float_h.m4: New file.
34443 * modules/float: New file.
34444 * modules/isnanl (Dependencies): Add float.
34445 * modules/isnanl-nolibm (Dependencies): Likewise.
34446 * modules/mathl (Dependencies): Likewise.
34447 * modules/printf-frexpl (Dependencies): Likewise.
34448 * modules/signbit (Dependencies): Likewise.
34449 * modules/vasnprintf (Dependencies): Likewise.
34450 * doc/headers/float.texi: Update.
34452 2007-05-19 Jim Meyering <jim@meyering.net>
34454 * lib/utimens.c (gl_futimens): Rename from futimens,
34455 now that glibc-2.6 declares futimens.
34456 * lib/utimens.h: Likewise.
34458 2007-05-19 Bruno Haible <bruno@clisp.org>
34460 Avoid test failures on mingw.
34461 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34462 * tests/test-printf-posix.sh: Likewise.
34463 * tests/test-vfprintf-posix.sh: Likewise.
34464 * tests/test-vprintf-posix.sh: Likewise.
34466 2007-05-19 Bruno Haible <bruno@clisp.org>
34468 Fix *printf result for NaN, Inf, -0.0 on mingw.
34469 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34470 * lib/vasnprintf.c: Include math.h and isnan.h.
34471 (is_infinite_or_zero): New function.
34472 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34473 values in the %f, %F, %e, %E, %g, %G directives.
34474 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34475 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34476 gl_PRINTF_INFINITE and test its result. Invoke
34477 gl_PREREQ_VASNPRINTF_INFINITE.
34478 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34479 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34480 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34481 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34482 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34483 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34484 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34485 * doc/functions/fprintf.texi: Update.
34486 * doc/functions/printf.texi: Update.
34487 * doc/functions/snprintf.texi: Update.
34488 * doc/functions/sprintf.texi: Update.
34489 * doc/functions/vfprintf.texi: Update.
34490 * doc/functions/vprintf.texi: Update.
34491 * doc/functions/vsnprintf.texi: Update.
34492 * doc/functions/vsprintf.texi: Update.
34494 2007-05-19 Bruno Haible <bruno@clisp.org>
34496 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34497 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34498 Instead of multiplying with 10^k, set extra_zeroes to k.
34499 (scale10_round_long_double): Remove function.
34501 2007-05-18 Bruno Haible <bruno@clisp.org>
34503 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34504 introduced on 2007-05-06.
34506 2007-05-18 Bruno Haible <bruno@clisp.org>
34508 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34510 * tests/test-vasprintf-posix.c (test_function): Likewise.
34511 * tests/test-snprintf-posix.h (test_function): Likewise.
34512 * tests/test-sprintf-posix.h (test_function): Likewise.
34514 2007-05-18 Bruno Haible <bruno@clisp.org>
34516 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34517 (strmatch): New function.
34518 (test_function): Test the %f directive on numbers of various exponents.
34519 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34520 (strmatch): New function.
34521 (test_function): Test the %f directive on numbers of various exponents.
34522 * tests/test-snprintf-posix.h (strmatch): New function.
34523 (test_function): Test the %f directive on numbers of various exponents.
34524 * tests/test-sprintf-posix.h (strmatch): New function.
34525 (test_function): Test the %f directive on numbers of various exponents.
34526 * tests/test-snprintf-posix.c (SIZEOF): New macro.
34527 * tests/test-sprintf-posix.c (SIZEOF): New macro.
34528 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34529 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34531 2007-05-18 Bruno Haible <bruno@clisp.org>
34533 Add support for 'long double' number output.
34534 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34535 * lib/vasnprintf.c: Include math.h and float+.h.
34536 (mp_limb_t): New type.
34537 (GMP_LIMB_BITS): New macro.
34538 (mp_twolimb_t): New type.
34539 (GMP_TWOLIMB_BITS): New macro.
34541 (multiply, divide, convert_to_decimal, decode_long_double,
34542 scale10_round_long_double, scale10_round_decimal_long_double,
34543 floorlog10l): New functions.
34544 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34545 for the %f, %F, %e, %E, %g, %G directives.
34546 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34547 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34548 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34549 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34550 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34551 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34552 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34553 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34554 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34555 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34556 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34557 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34558 * modules/snprintf-posix (Depends-on): Likewise.
34559 * modules/sprintf-posix (Depends-on): Likewise.
34560 * modules/vasnprintf-posix (Depends-on): Likewise.
34561 * modules/vasprintf-posix (Depends-on): Likewise.
34562 * modules/vfprintf-posix (Depends-on): Likewise.
34563 * modules/vsnprintf-posix (Depends-on): Likewise.
34564 * modules/vsprintf-posix (Depends-on): Likewise.
34565 * modules/vasnprintf (Files): Add lib/float+.h.
34566 * doc/functions/fprintf.texi: Update.
34567 * doc/functions/printf.texi: Update.
34568 * doc/functions/snprintf.texi: Update.
34569 * doc/functions/sprintf.texi: Update.
34570 * doc/functions/vfprintf.texi: Update.
34571 * doc/functions/vprintf.texi: Update.
34572 * doc/functions/vsnprintf.texi: Update.
34573 * doc/functions/vsprintf.texi: Update.
34575 2007-05-18 Bruno Haible <bruno@clisp.org>
34577 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34579 2007-05-18 Bruno Haible <bruno@clisp.org>
34581 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34582 for printing 64-bit integers. Needed for mingw.
34584 2007-05-18 Bruno Haible <bruno@clisp.org>
34586 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34587 gl_FUNC_FREXPL_WORKS.
34588 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34590 2007-05-18 Bruno Haible <bruno@clisp.org>
34592 * modules/frexpl-nolibm-tests: New file.
34594 * modules/frexpl-nolibm: New file.
34595 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34597 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
34599 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34600 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
34601 GCC 4.2, which otherwise issues a lot of warnings.
34602 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34603 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34605 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34606 * modules/iconv_open (iconv.h): Likewise.
34607 * modules/locale (locale.h): Likewise.
34608 * modules/netinet_in (netinet/in.h): Likewise.
34609 * modules/sys_select (sys_select.h): Likewise.
34610 * modules/sys_socket (sys/socket.h): Likewise.
34611 * modules/sys_stat (sys/stat.h): Likewise.
34612 * modules/sysexits (sysexits.h): Likewise.
34613 * modules/unistd (unistd.h): Likewise.
34615 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34617 * modules/closein-tests (Makefile.am): Distribute
34620 2007-05-17 Bruno Haible <bruno@clisp.org>
34622 * tests/test-printf-posix.output: Renamed from
34623 tests/test-fprintf-posix.out.
34624 * modules/fprintf-posix-tests: Update.
34625 * modules/printf-posix-tests: Update.
34626 * modules/vfprintf-posix-tests: Update.
34627 * modules/vprintf-posix-tests: Update.
34628 * tests/test-fprintf-posix.sh: Update.
34629 * tests/test-printf-posix.sh: Update.
34630 * tests/test-vfprintf-posix.sh: Update.
34631 * tests/test-vprintf-posix.sh: Update.
34632 Reported by Ralf Wildenhues.
34634 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
34636 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34637 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
34638 GCC 4.2, which otherwise issues a lot of warnings.
34639 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34640 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34641 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34642 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34643 it should no longer be needed.
34644 * lib/string_.h: Likewise.
34645 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34646 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34647 * modules/inttypes (inttypes.h): Likewise.
34648 * modules/math (math.h): Likewise.
34649 * modules/search (search.h): Likewise.
34650 * modules/signal (signal.h): Likewise.
34651 * modules/stdint (stdint.h): Likewise.
34652 * modules/stdio (stdio.h): Likewise.
34653 * modules/stdlib (stdlib.h): Likewise.
34654 * modules/string (string.h): Likewise.
34655 * modules/sys_time (sys/time.h): Likewise.
34656 * modules/time (time.h): Likewise.
34657 * modules/wchar (wchar.h): Likewise.
34658 * modules/wctype (wtype.h): Likewise.
34660 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
34662 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34664 2007-05-13 Bruno Haible <bruno@clisp.org>
34666 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34667 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34668 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34669 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34670 (gl_PREREQ_STRTOK_R): Don't require it here.
34672 2007-05-13 Bruno Haible <bruno@clisp.org>
34674 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34675 when used in C++ mode.
34677 2007-05-12 Bruno Haible <bruno@clisp.org>
34679 * lib/linebuffer.h: Tweak doc.
34680 * lib/linebuffer.c: Likewise.
34682 2007-05-12 James Youngman <jay@gnu.org>
34684 * lib/linebuffer.c (readlinebuffer_delim): New function,
34685 like readlinebuffer, but use a caller-specified delimiter.
34686 (readlinebuffer): Just call readlinebuffer_delim with '\n'
34688 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34690 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
34692 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34693 * modules/openat (Files): Remove openat-die.c.
34694 (Depends-on): Add openat-die.
34695 * modules/openat-die: New module.
34697 2007-05-06 Bruno Haible <bruno@clisp.org>
34699 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34700 Update with info about Cygwin.
34701 * doc/functions/fprintf.texi: Update.
34702 * doc/functions/printf.texi: Update.
34703 * doc/functions/snprintf.texi: Update.
34704 * doc/functions/sprintf.texi: Update.
34705 * doc/functions/vfprintf.texi: Update.
34706 * doc/functions/vprintf.texi: Update.
34707 * doc/functions/vsnprintf.texi: Update.
34708 * doc/functions/vsprintf.texi: Update.
34709 Reported by Eric Blake.
34711 2007-05-06 Bruno Haible <bruno@clisp.org>
34713 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34714 padding ourselves for the floating-point directives.
34715 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34716 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34717 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34718 gl_PRINTF_FLAG_ZERO and test its result. Invoke
34719 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34720 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34721 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34722 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34723 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34724 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34725 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34726 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34727 * tests/test-snprintf-posix.h (test_function): Also check the width
34728 and some flags in the %f directive.
34729 * tests/test-sprintf-posix.h (test_function): Likewise.
34730 * tests/test-vasnprintf-posix.c (test_function): Likewise.
34731 * tests/test-vasprintf-posix.c (test_function): Likewise.
34732 * doc/functions/fprintf.texi: Update.
34733 * doc/functions/printf.texi: Update.
34734 * doc/functions/snprintf.texi: Update.
34735 * doc/functions/sprintf.texi: Update.
34736 * doc/functions/vfprintf.texi: Update.
34737 * doc/functions/vprintf.texi: Update.
34738 * doc/functions/vsnprintf.texi: Update.
34739 * doc/functions/vsprintf.texi: Update.
34741 2007-05-06 Bruno Haible <bruno@clisp.org>
34743 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34744 pass the ' flag character to sprintf or snprintf.
34745 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34746 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34747 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34748 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34749 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34750 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34751 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34752 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34753 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34754 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34755 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34756 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34757 * tests/test-snprintf-posix.h (test_function): Also check the grouping
34759 * tests/test-sprintf-posix.h (test_function): Likewise.
34760 * tests/test-vasnprintf-posix.c (test_function): Likewise.
34761 * tests/test-vasprintf-posix.c (test_function): Likewise.
34762 * doc/functions/fprintf.texi: Update.
34763 * doc/functions/printf.texi: Update.
34764 * doc/functions/snprintf.texi: Update.
34765 * doc/functions/sprintf.texi: Update.
34766 * doc/functions/vfprintf.texi: Update.
34767 * doc/functions/vprintf.texi: Update.
34768 * doc/functions/vsnprintf.texi: Update.
34769 * doc/functions/vsprintf.texi: Update.
34771 2007-05-01 Bruno Haible <bruno@clisp.org>
34773 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34775 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
34777 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34778 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
34780 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
34782 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34783 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
34784 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34786 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
34788 * lib/argp-help.c (struct hol_entry): New member `ord'.
34789 (HOL_ENTRY_PTRCMP): Use ord for comparison
34790 (hol_sort): Initialize ord.
34792 2007-05-01 Bruno Haible <bruno@clisp.org>
34794 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34795 Reported by Eric Blake.
34796 * doc/gnulib.texi (Function Substitutes): Update.
34798 2007-05-01 Bruno Haible <bruno@clisp.org>
34800 * doc/functions.texi: Remove file, now redundant through
34801 doc/functions/*.texi.
34803 2007-05-01 Bruno Haible <bruno@clisp.org>
34805 * modules/argp (Depends-on): Add sleep.
34807 2007-05-01 Bruno Haible <bruno@clisp.org>
34809 * modules/sleep-tests: New file.
34810 * tests/test-sleep.c: New file.
34812 * modules/sleep: New file.
34813 * lib/sleep.c: New file.
34814 * m4/sleep.m4: New file.
34815 * lib/unistd_.h (sleep): New declaration.
34816 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34818 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34819 * doc/functions/sleep.texi: Document the sleep module.
34821 2007-05-01 Bruno Haible <bruno@clisp.org>
34823 * lib/sigprocmask.h: Remove file.
34824 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34825 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34826 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34827 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34828 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34829 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34830 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34831 HAVE_SIGSET_T as a shell variable.
34832 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34833 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34834 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34835 (Depends-on): Add signal. Remove verify.
34836 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34837 (Include): Mention <signal.h> instead of sigprocmask.h.
34838 * NEWS: Mention the change.
34839 * lib/fatal-signal.c: Don't include sigprocmask.h.
34841 2007-05-01 Bruno Haible <bruno@clisp.org>
34843 * modules/signal: New file.
34844 * lib/signal_.h: New file.
34845 * m4/signal_h.m4: New file.
34847 2007-05-01 Bruno Haible <bruno@clisp.org>
34849 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34850 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34851 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34852 HAVE_WCTYPE_CTMP_BUG into wctype.h.
34854 2007-05-01 Bruno Haible <bruno@clisp.org>
34856 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34858 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34859 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34860 * modules/sys_stat (Makefile.am): Substitute their values into
34863 2007-05-01 Bruno Haible <bruno@clisp.org>
34865 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34866 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34867 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34869 2007-05-01 Bruno Haible <bruno@clisp.org>
34871 * doc/header/assert.texi: Undo last change: don't mention the gnulib
34872 'assert' module here.
34874 2007-05-01 Bruno Haible <bruno@clisp.org>
34876 * doc/functions/*.texi: New files.
34877 * doc/functions/google-ranking.txt: New file.
34878 * doc/gnulib.texi (Function Substitutes): New chapter.
34879 (ctime, inet_ntoa): Remove sections.
34880 * doc/ctime.texi: Remove file.
34881 * doc/inet_ntoa.texi: Remove file.
34882 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34884 (%.info): New rule, specifying a --reference-limit.
34886 2007-05-01 Bruno Haible <bruno@clisp.org>
34888 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34890 2007-05-01 Bruno Haible <bruno@clisp.org>
34892 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34893 the portability of 'mkdir' to mingw systems.
34895 2007-05-01 Bruno Haible <bruno@clisp.org>
34897 * doc/headers/google-ranking.txt: New file.
34899 2007-04-30 Eric Blake <ebb9@byu.net>
34901 Prefer fseeko to fseek.
34902 * modules/getpass (Depends-on): Add fseeko.
34903 * lib/getpass.c (getpass): Use fseeko, not fseek.
34905 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
34907 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34908 assumes the sorting is stable, while most qsort implementations
34909 are not. Use argument addresses to ensure they never compare as
34912 * tests/test-argp-2.sh (usage-indent test): Fix output
34913 (func_compare): Restore diff options
34914 * tests/test-argp.c: Restore #include "progname.h"
34916 2007-04-29 Bruno Haible <bruno@clisp.org>
34918 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34919 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34920 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34921 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34922 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34923 (configure.ac): Define CHECK_SNPRINTF_POSIX.
34924 (TESTS, check_PROGRAMS): Add test-snprintf.
34925 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34926 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34927 (TESTS, check_PROGRAMS): Add test-vsnprintf.
34928 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34929 assertions that fail on HP-UX, OSF/1, or IRIX.
34930 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34932 2007-04-29 Bruno Haible <bruno@clisp.org>
34934 * MODULES.html.sh (posix_functions): Remove 'contents'.
34936 2007-04-29 Karl Berry <karl@gnu.org>
34938 * config/srclist.txt (gendocs_template_min): new entry.
34940 2007-04-29 Bruno Haible <bruno@clisp.org>
34942 Work around fpurge bug on BSD systems.
34943 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34944 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34945 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34946 fpurge to rpl_fpurge if the system already has this function.
34947 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34948 the case where the system already has this function. Correct invariants
34950 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34953 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
34955 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
34956 proposed by Sven Verdoolaege.
34958 * tests/test-argp.c: Fix option ordering. Test deeply clustered
34960 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34961 (usage and help tests): Update
34963 2007-04-29 Bruno Haible <bruno@clisp.org>
34965 * tests/test-fflush.c (main): Use a file of size 17, not 10.
34966 Print more information in case of failure. Disable a test on BeOS.
34968 2007-04-29 Bruno Haible <bruno@clisp.org>
34970 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34971 This helps debugging on systems on which no gdb is available.
34973 2007-04-29 Bruno Haible <bruno@clisp.org>
34975 * lib/freading.h: Improve comments.
34976 * lib/fwriting.h: Likewise.
34977 * tests/test-freading.c (main): Don't check freading immediately after
34978 repositioning. Needed for glibc.
34980 2007-04-29 Bruno Haible <bruno@clisp.org>
34982 * lib/freading.c (freading): Trivial simplification.
34984 2007-04-28 Bruno Haible <bruno@clisp.org>
34986 * tests/test-fwriting.c (main): Also test the interaction between
34987 fflush and fwriting.
34988 * modules/fwriting-tests (Depends-on): Add fflush.
34990 * tests/test-freading.c (main): Also test the interaction between
34991 fflush and freading.
34992 * modules/freading-tests (Depends-on): Add fflush.
34994 2007-04-28 Bruno Haible <bruno@clisp.org>
34996 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34998 Suggested by Eric Blake.
35000 2007-04-28 Jim Meyering <jim@meyering.net>
35002 Avoid false-negative in gl_STDINT_H's C99 conformance test.
35003 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35004 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35006 2007-04-27 Eric Blake <ebb9@byu.net>
35008 * doc/headers/assert.texi (assert.h): Document assert module use.
35010 2007-04-27 Bruno Haible <bruno@clisp.org>
35012 * doc/headers/*.texi: New files.
35013 * doc/gnulib.texi (Header File Substitutes): New chapter.
35014 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35016 (standards.info ,standards.html, standards.dvi): Update dependencies.
35017 (mostlyclean, clean): New targets.
35019 2007-04-27 Bruno Haible <bruno@clisp.org>
35021 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35022 * modules/sysexits (Files, Makefile.am): Update.
35024 * lib/sys_socket_.h: Renamed from lib/socket_.h.
35025 * modules/sys_socket (Files, Makefile.am): Update.
35027 * lib/sys_stat_.h: Renamed from lib/stat_.h.
35028 * modules/sys_stat (Files, Makefile.am): Update.
35030 2007-04-27 Eric Blake <ebb9@byu.net>
35032 * lib/freading.h: Improve comments.
35033 * lib/fwriting.h: Likewise.
35034 * lib/fflush.c: Likewise.
35036 Fix closein for mingw.
35037 * modules/closein-tests: Add tests for closein.
35038 * tests/test-closein.c: New file.
35039 * tests/test-closein.sh: Likewise.
35040 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35041 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35043 2007-04-27 Bruno Haible <bruno@clisp.org>
35045 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35047 * lib/math_.h [__DECC]: Likewise.
35048 * lib/stdio_.h [__DECC]: Likewise.
35049 * lib/stdlib_.h [__DECC]: Likewise.
35050 * lib/string_.h [__DECC]: Likewise.
35051 * lib/time_.h [__DECC]: Likewise.
35052 * lib/wchar_.h [__DECC]: Likewise.
35053 * lib/wctype_.h [__DECC]: Likewise.
35055 2007-04-27 Bruno Haible <bruno@clisp.org>
35057 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35059 2007-04-27 Bruno Haible <bruno@clisp.org>
35061 * lib/fflush.c: Add comments.
35062 * modules/fpurge-tests (Depends-on): Add fflush.
35063 * modules/freadable-tests (Depends-on): Likewise.
35064 * modules/fwritable-tests (Depends-on): Likewise.
35066 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
35068 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35069 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
35070 Report by Bruno Haible <bruno@clisp.org>.
35072 2007-04-26 Eric Blake <ebb9@byu.net>
35074 Fix fflush on mingw.
35075 * modules/fflush (Depends-on): Add freading.
35076 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35079 2007-04-26 Eric Blake <ebb9@byu.net>
35080 and Bruno Haible <bruno@clisp.org>
35082 Implement freading and fwriting.
35083 * lib/freading.c: New file.
35084 * lib/freading.h: Likewise.
35085 * m4/freading.m4: Likewise.
35086 * modules/freading: Likewise.
35087 * modules/freading-tests: Likewise.
35088 * tests/test-freading.c: Likewise.
35089 * lib/fwriting.c: New file.
35090 * lib/fwriting.h: Likewise.
35091 * m4/fwriting.m4: Likewise.
35092 * modules/fwriting: Likewise.
35093 * modules/fwriting-tests: Likewise.
35094 * tests/test-fwriting.c: Likewise.
35095 * MODULES.html.sh (File stream based Input/Output): Mention them.
35097 2007-04-26 Bruno Haible <bruno@clisp.org>
35099 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35100 'long' when we assume it.
35101 Suggested by Eric Blake.
35103 2007-04-26 Bruno Haible <bruno@clisp.org>
35105 Ensure fseeko, ftello are declared on glibc systems.
35106 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35107 * modules/fseeko (configure.ac-early): Likewise.
35108 * modules/ftello (configure.ac-early): Likewise.
35109 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35110 AC_FUNC_FSEEKO for this.
35111 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35112 (gl_CHECK_FSEEKO): Remove macro.
35114 2007-04-26 Bruno Haible <bruno@clisp.org>
35116 * tests/test-fflush.c (main): Also check the ftell result after
35117 fflush and fseek/fseeko.
35118 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35119 file descriptor position cache in the stream.
35120 * lib/fseeko.c (rpl_fseeko): Likewise.
35122 2007-04-26 Bruno Haible <bruno@clisp.org>
35124 * modules/fflush-tests (Depends-on): Add fseeko.
35126 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
35127 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35129 * lib/argz_.h: ensure error_t definition is obtained in same
35130 mechanism system argz.h would have.
35131 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35132 argz facilities are known bad. Err on the side of caution if
35135 2007-04-25 Eric Blake <ebb9@byu.net>
35137 * lib/fpurge.c (includes): Use stdlib.h for free.
35138 * tests/test-fflush.c (main): Also test fflush-fseeko.
35140 2007-04-25 Bruno Haible <bruno@clisp.org>
35142 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35143 * lib/fseeko.c: New file.
35144 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35145 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35146 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35148 (gl_FUNC_FSEEKO): Invoke it.
35149 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35150 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35151 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35153 2007-04-25 Bruno Haible <bruno@clisp.org>
35155 * modules/fflush (Depends-on): Add ftello.
35157 2007-04-25 Bruno Haible <bruno@clisp.org>
35159 * modules/ftello-tests: New file.
35160 * tests/test-ftello.c: New file.
35162 * modules/ftello: New file.
35163 * m4/ftello.m4: New file.
35164 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35166 * lib/stdio_.h (ftello): New declaration.
35167 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35170 2007-04-25 Bruno Haible <bruno@clisp.org>
35172 * modules/fseeko-tests: New file.
35173 * tests/test-fseeko.c: New file.
35175 * modules/fseeko: New file.
35176 * m4/fseeko.m4: New file.
35177 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35179 * lib/stdio_.h (fseeko): New declaration.
35180 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35183 2007-04-25 Bruno Haible <bruno@clisp.org>
35185 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35187 2007-04-25 Bruno Haible <bruno@clisp.org>
35189 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35190 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35191 * tests/test-unistd.c: Likewise.
35192 * tests/test-fcntl.c: Likewise.
35194 2007-04-23 Eric Blake <ebb9@byu.net>
35196 * lib/fflush.c: Fix missing include.
35197 Reported by Bruno Haible.
35199 2007-04-23 Bruno Haible <bruno@clisp.org>
35201 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35202 Reported by Eric Blake.
35204 2007-04-23 Bruno Haible <bruno@clisp.org>
35206 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35208 2007-04-23 Bruno Haible <bruno@clisp.org>
35210 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35212 2007-04-23 Bruno Haible <bruno@clisp.org>
35214 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35215 Needed on HP-UX 11.
35217 2007-04-16 Eric Blake <ebb9@byu.net>
35219 Make fflush rely on fpurge.
35220 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35221 open coding all variants.
35222 * modules/fflush (Depends-on): Add fpurge and unistd.
35223 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35224 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35226 Fix --with-tests compilation on cygwin.
35227 * modules/argmatch-tests (Makefile.am): List gnulib library first
35229 * modules/argp-tests (Makefile.am): Likewise.
35230 * modules/array-list-tests (Makefile.am): Likewise.
35231 * modules/array-oset-tests (Makefile.am): Likewise.
35232 * modules/avltree-list-tests (Makefile.am): Likewise.
35233 * modules/avltree-oset-tests (Makefile.am): Likewise.
35234 * modules/avltreehash-list-tests (Makefile.am): Likewise.
35235 * modules/carray-list-tests (Makefile.am): Likewise.
35236 * modules/dirname-tests (Makefile.am): Likewise.
35237 * modules/frexp-tests (Makefile.am): Likewise.
35238 * modules/isnanl-tests (Makefile.am): Likewise.
35239 * modules/linked-list-tests (Makefile.am): Likewise.
35240 * modules/linkedhash-list-tests (Makefile.am): Likewise.
35241 * modules/lock-tests (Makefile.am): Likewise.
35242 * modules/rbtree-list-tests (Makefile.am): Likewise.
35243 * modules/rbtree-oset-tests (Makefile.am): Likewise.
35244 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35245 * modules/tls-tests (Makefile.am): Likewise.
35246 * modules/tsearch-tests (Makefile.am): Likewise.
35247 * modules/xvasprintf-tests (Makefile.am): Likewise.
35249 Fix fpurge for cygwin.
35250 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35252 * modules/fpurge-tests (Depends-on): Clean up trash.
35254 2007-04-16 Simon Josefsson <simon@josefsson.org>
35256 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35258 * m4/autobuild.m4: Re-indent.
35260 2007-04-13 Bruno Haible <bruno@clisp.org>
35262 * modules/fpurge-tests: New file.
35263 * tests/test-fpurge.c: New file.
35265 * modules/fpurge: New file.
35266 * lib/fpurge.h: New file.
35267 * lib/fpurge.c: New file.
35268 * m4/fpurge.m4: New file.
35270 2007-04-13 Bruno Haible <bruno@clisp.org>
35272 * modules/fbufmode-tests: New file.
35273 * tests/test-fbufmode.c: New file.
35275 * modules/fbufmode: New file.
35276 * lib/fbufmode.h: New file.
35277 * lib/fbufmode.c: New file.
35278 * m4/fbufmode.m4: New file.
35280 2007-04-13 Bruno Haible <bruno@clisp.org>
35282 * modules/fwritable-tests: New file.
35283 * tests/test-fwritable.c: New file.
35285 * modules/fwritable: New file.
35286 * lib/fwritable.h: New file.
35287 * lib/fwritable.c: New file.
35288 * m4/fwritable.m4: New file.
35290 2007-04-13 Bruno Haible <bruno@clisp.org>
35292 * modules/freadable-tests: New file.
35293 * tests/test-freadable.c: New file.
35295 * modules/freadable: New file.
35296 * lib/freadable.h: New file.
35297 * lib/freadable.c: New file.
35298 * m4/freadable.m4: New file.
35300 2007-04-13 Bruno Haible <bruno@clisp.org>
35302 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35305 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
35307 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35308 gzip bootstrap.conf to avoid dragging in i18n machinery.
35309 (gnulib_tool_option): Use it.
35311 2007-04-13 Bruno Haible <bruno@clisp.org>
35313 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35315 * tests/test-vasprintf-posix.c (test_function): Likewise.
35316 * tests/test-snprintf-posix.h (test_function): Likewise.
35317 * tests/test-sprintf-posix.h (test_function): Likewise.
35318 * tests/test-fprintf-posix.h (test_function): Likewise.
35319 * tests/test-printf-posix.h (test_function): Likewise.
35320 * tests/test-fprintf-posix.out: Likewise.
35322 2007-04-13 Bruno Haible <bruno@clisp.org>
35324 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35325 * modules/tls-tests (configure.ac): Likewise.
35326 Reported by Arto C. Nirkko <anirkko@insel.ch>.
35328 2007-04-13 Bruno Haible <bruno@clisp.org>
35330 * lib/tls.c (glthread_tls_get): Fix return type.
35331 Patch by Arto C. Nirkko <anirkko@insel.ch>.
35333 2007-04-12 Eric Blake <ebb9@byu.net>
35335 * modules/gettime (Depends-on): Remove gettime.
35336 Reported by Dmitry V. Levin.
35338 2007-04-12 Bruno Haible <bruno@clisp.org>
35340 * modules/fflush (Include): Mention <stdio.h>.
35341 * modules/strtoimax (Include): Mention <inttypes.h>.
35342 * modules/strtoumax (Include): Likewise.
35344 2007-04-12 Eric Blake <ebb9@byu.net>
35346 * .cvsignore: New file.
35347 * .gitignore: Likewise.
35349 2007-04-12 Bruno Haible <bruno@clisp.org>
35351 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35352 not before, since $(LDADD) often contains libgnu.a.
35353 * modules/striconv-tests (test_striconv_LDADD): Likewise.
35354 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35355 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35358 2007-04-12 Eric Blake <ebb9@byu.net>
35360 Work around glibc's failure to flush stdin on fclose.
35361 * lib/closein.c (close_stdin): Flush stdin before closing.
35363 Work around glibc's failure to reset seekable stdin on exit.
35364 * modules/closein: New module.
35365 * lib/closein.c: New file.
35366 * lib/closein.h: Likewise.
35367 * m4/closein.m4: Likewise.
35368 * MODULES.html.sh (File stream based Input/Output): Document it.
35370 2007-04-12 Simon Josefsson <simon@josefsson.org>
35372 * gnulib-tool: Rename generated 'autobuild' script to
35373 'do-autobuild' in --create-megatestdir output.
35375 * doc/gnulib.texi (Build robot for gnulib): Fix.
35377 2007-04-12 Simon Josefsson <simon@josefsson.org>
35379 * modules/sysexits (Depends-on): Add absolute-header.
35381 2007-04-12 Eric Blake <ebb9@byu.net>
35383 No need to preserve errno on success.
35384 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35385 Reported by Bruno Haible.
35387 2007-04-12 Simon Josefsson <simon@josefsson.org>
35389 * MODULES.html.sh (Support for maintaining and releasing
35390 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
35392 2007-04-12 Simon Josefsson <simon@josefsson.org>
35394 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35396 2007-04-12 Simon Josefsson <simon@josefsson.org>
35398 * modules/autobuild: New module.
35400 * m4/autobuild.m4: New file.
35402 2007-04-11 Bruno Haible <bruno@clisp.org>
35404 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35405 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35406 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35407 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35408 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35409 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35410 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35411 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35412 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35413 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35414 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35415 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35416 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35417 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35418 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35419 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35420 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35421 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35422 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35423 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35424 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35425 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35426 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35427 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35428 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35429 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35430 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35431 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35432 Reported by Eric Blake.
35434 2007-04-11 Bruno Haible <bruno@clisp.org>
35436 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35438 2007-04-10 Bruno Haible <bruno@clisp.org>
35440 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35441 for NaN and Infinity. Needed on FreeBSD 6.1.
35442 * tests/test-vasnprintf-posix.c (test_function): Undo last change
35443 regarding results for "%010a" of Infinity and NaN.
35444 * tests/test-vasprintf-posix.c (test_function): Likewise.
35445 * tests/test-snprintf-posix.h (test_function): Likewise.
35446 * tests/test-sprintf-posix.h (test_function): Likewise.
35447 * tests/test-fprintf-posix.h (test_function): Likewise.
35448 * tests/test-printf-posix.h (test_function): Likewise.
35449 * tests/test-fprintf-posix.out: Likewise.
35451 2007-04-10 Bruno Haible <bruno@clisp.org>
35453 * modules/locale-tests: New file.
35454 * tests/test-locale.c: New file.
35456 * modules/locale: New file.
35457 * lib/locale_.h: New file.
35458 * m4/locale_h.m4: New file.
35460 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
35461 Bruno Haible <bruno@clisp.org>
35463 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35464 be determined, test for availability of the copysignf, copysign,
35465 copysignl functions.
35466 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35467 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35468 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35470 2007-04-09 Eric Blake <ebb9@byu.net>
35472 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35473 * modules/stdio (Makefile.am): Support fflush.
35474 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35475 * modules/fflush: New file.
35476 * lib/fflush.c: Likewise.
35477 * m4/fflush.m4: Likewise.
35478 * modules/fflush-tests: New test.
35479 * tests/test-fflush.c: Likewise.
35480 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35482 2007-04-06 Bruno Haible <bruno@clisp.org>
35484 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35485 (VASNPRINTF): Use signbit for faster determination whether to print a
35487 * modules/vasnprintf (Files): Remove lib/float+.h.
35488 * modules/fprintf-posix (Depends-on): Add signbit.
35489 * modules/snprintf-posix (Depends-on): Likewise.
35490 * modules/sprintf-posix (Depends-on): Likewise.
35491 * modules/vasnprintf-posix (Depends-on): Likewise.
35492 * modules/vasprintf-posix (Depends-on): Likewise.
35493 * modules/vfprintf-posix (Depends-on): Likewise.
35494 * modules/vsnprintf-posix (Depends-on): Likewise.
35495 * modules/vsprintf-posix (Depends-on): Likewise.
35497 2007-04-06 Bruno Haible <bruno@clisp.org>
35499 * tests/test-frexp.c (main): Test also the sign bit of zero results.
35500 * tests/test-frexpl.c (main): Likewise.
35501 * tests/test-ldexpl.c (main): Likewise.
35502 * modules/frexp-tests (Depends-on): Add signbit.
35503 * modules/frexpl-tests (Depdends-on): Likewise.
35504 * modules/ldexpl-tests (Depdends-on): Likewise.
35506 2007-04-06 Bruno Haible <bruno@clisp.org>
35508 * modules/signbit-tests: New file.
35509 * tests/test-signbit.c: New file.
35511 * modules/signbit: New file.
35512 * lib/signbitf.c: New file.
35513 * lib/signbitd.c: New file.
35514 * lib/signbitl.c: New file.
35515 * m4/signbit.m4: New file.
35516 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35517 (signbit): New macro.
35518 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35520 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35521 REPLACE_FREXPL into math.h.
35523 2007-04-06 Bruno Haible <bruno@clisp.org>
35525 * modules/isnanf-nolibm-tests: New file.
35526 * tests/test-isnanf.c: New file.
35528 * modules/isnanf-nolibm: New file.
35529 * lib/isnanf.h: New file.
35530 * lib/isnanf.c: New file.
35531 * lib/isnan.c: Consider the USE_FLOAT macro.
35532 * m4/isnanf.m4: New file.
35534 2007-04-06 Bruno Haible <bruno@clisp.org>
35536 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35537 (Link): New section.
35539 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35541 2007-04-06 Bruno Haible <bruno@clisp.org>
35543 Assume the 'long double' type.
35544 * m4/longdouble.m4: Remove file.
35545 * config/srclist.txt: Don't mention longdouble.m4.
35546 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35547 * lib/float+.h: Likewise.
35548 * lib/frexp.c: Likewise.
35549 * lib/printf-args.h: Likewise.
35550 * lib/printf-args.c: Likewise.
35551 * lib/printf-frexp.c: Likewise.
35552 * lib/printf-parse.c: Likewise.
35553 * lib/vasnprintf.c: Likewise.
35554 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35555 * m4/intl.m4: Likewise.
35556 * m4/isnanl.m4: Likewise.
35557 * m4/printf.m4: Likewise.
35558 * m4/printf-frexpl.m4: Likewise.
35559 * m4/vasnprintf.m4: Likewise.
35560 * modules/allocsa (Files): Remove m4/longdouble.m4.
35561 * modules/gettext (Files): Likewise.
35562 * modules/relocatable-prog-wrapper (Files): Likewise.
35563 * modules/vasnprintf (Files): Likewise.
35564 * modules/isnanl (Files): Likewise.
35565 (Include): Simplify.
35566 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35567 (Include): Simplify.
35568 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35569 (Include): Simplify.
35570 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35571 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35572 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35573 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35574 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35575 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35576 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35577 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35578 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35579 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35580 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35581 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35582 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35583 * tests/test-isnanl.c: Likewise.
35584 * tests/test-snprintf-posix.h: Likewise.
35585 * tests/test-sprintf-posix.h: Likewise.
35586 * tests/test-vasnprintf-posix.c: Likewise.
35587 * tests/test-vasnprintf-posix2.c: Likewise.
35588 * tests/test-vasprintf-posix.c: Likewise.
35590 2007-04-06 Bruno Haible <bruno@clisp.org>
35592 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35593 * lib/math_.h [__DECC]: Include the overridden include file through
35594 #include_next, outside the double-inclusion guard.
35595 * lib/stdio_.h [__DECC]: Likewise.
35596 * lib/stdlib_.h [__DECC]: Likewise.
35597 * lib/string_.h [__DECC]: Likewise.
35598 * lib/time_.h [__DECC]: Likewise.
35599 * lib/wchar_.h [__DECC]: Likewise.
35600 * lib/wctype_.h [__DECC]: Likewise.
35601 * lib/inttypes_.h [__DECC]: Likewise.
35602 Reported by Albert Chin <china@thewrittenword.com> in
35603 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35605 2007-04-04 Eric Blake <ebb9@byu.net>
35607 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35610 2007-04-04 Bruno Haible <bruno@clisp.org>
35612 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35613 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35615 2007-04-04 Bruno Haible <bruno@clisp.org>
35617 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35618 results for "%010a" of Infinity and NaN.
35619 * tests/test-vasprintf-posix.c (test_function): Likewise.
35620 * tests/test-snprintf-posix.h (test_function): Likewise.
35621 * tests/test-sprintf-posix.h (test_function): Likewise.
35622 * tests/test-fprintf-posix.h (test_function): Remove these tests.
35623 * tests/test-printf-posix.h (test_function): Likewise.
35624 * tests/test-fprintf-posix.out: Update.
35625 Needed for FreeBSD 6.1.
35627 2007-04-04 Bruno Haible <bruno@clisp.org>
35629 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35630 directly used by the gnulib modules nor by gnulib-tool.
35632 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
35634 * DEPENDENCIES: Give overall description of version dependency
35635 desirability. Use more-typical names for apps.
35636 Add shell, coreutils, diffutils, grep, tar, gzip.
35638 2007-04-04 Simon Josefsson <simon@josefsson.org>
35640 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
35642 2007-04-04 Karl Berry <karl@gnu.org>
35644 * MODULES.html.sh (func_module): missing '.
35646 2007-04-03 Bruno Haible <bruno@clisp.org>
35648 * modules/argmatch-tests (Makefile.am): New variable
35649 test_argmatch_LDADD.
35650 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35651 * modules/array-list-tests (Makefile.am): New variable
35652 test_array_list_LDADD.
35653 * modules/array-oset-tests (Makefile.am): New variable
35654 test_array_oset_LDADD.
35655 * modules/avltree-list-tests (Makefile.am): New variable
35656 test_avltree_list_LDADD.
35657 * modules/avltree-oset-tests (Makefile.am): New variable
35658 test_avltree_oset_LDADD.
35659 * modules/avltreehash-list-tests (Makefile.am): New variable
35660 test_avltreehash_list_LDADD.
35661 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35662 test_canonicalize_lgpl_LDADD.
35663 * modules/carray-list-tests (Makefile.am): New variable
35664 test_carray_list_LDADD.
35665 * modules/dirname-tests (Makefile.am): New variable
35666 test_dirname_LDADD.
35667 * modules/linked-list-tests (Makefile.am): New variable
35668 test_linked_list_LDADD.
35669 * modules/linkedhash-list-tests (Makefile.am): New variable
35670 test_linkedhash_list_LDADD.
35671 * modules/rbtree-list-tests (Makefile.am): New variable
35672 test_rbtree_list_LDADD.
35673 * modules/rbtree-oset-tests (Makefile.am): New variable
35674 test_rbtree_oset_LDADD.
35675 * modules/rbtreehash-list-tests (Makefile.am): New variable
35676 test_rbtreehash_list_LDADD.
35677 * modules/xvasprintf-tests (Makefile.am): New variable
35678 test_xvasprintf_LDADD.
35679 Reported by Eric Blake.
35681 2007-04-03 Eric Blake <ebb9@byu.net>
35683 * DEPENDENCIES: Weaken m4 requirements.
35685 2007-04-03 Bruno Haible <bruno@clisp.org>
35687 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35688 * modules/isnanl-tests (configure.ac): Likewise.
35690 2007-04-03 Ben Pfaff <blp@gnu.org>
35692 * modules/iconv_open: Add $(srcdir)/ to source directory
35693 references in Makefile fragments that call gperf, to fix VPATH
35696 2007-04-03 Bruno Haible <bruno@clisp.org>
35698 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35699 * lib/ldexpl.c: Undo last change.
35701 2007-04-03 Bruno Haible <bruno@clisp.org>
35703 * modules/printf-frexpl (Depends-on): Undo last change.
35704 (Files): Add m4/ldexpl.m4.
35706 2007-04-03 Bruno Haible <bruno@clisp.org>
35708 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35709 * modules/isnanl (Link): New section.
35711 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35712 * modules/frexp (Link): New section.
35714 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35715 * modules/frexpl (Link): New section.
35717 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35718 * modules/ldexpl (Link): New section.
35720 2007-04-03 Bruno Haible <bruno@clisp.org>
35722 * modules/TEMPLATE-EXTENDED: New file.
35723 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35725 2007-04-03 Bruno Haible <bruno@clisp.org>
35727 * DEPENDENCIES: New file.
35728 Suggested by Simon Josefsson.
35730 2007-04-03 Bruno Haible <bruno@clisp.org>
35732 * doc/gnulib.texi: Escape @.
35734 2007-04-03 James Youngman <jay@gnu.org>
35735 and Paul Eggert <eggert@cs.ucla.edu>
35737 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35738 birthtime on all systems that have birthtime, not just those which
35739 use st_birthtimensec rather than st_birthtim. Putting zero in
35740 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35741 that the birth time is not available for files on an NFS mount.
35743 2007-04-03 Simon Josefsson <simon@josefsson.org>
35745 * modules/memxor: Move back from crypto/, suggested by Bruno.
35746 * modules/crypto/hmac-sha1: Fix memxor dependency.
35748 * modules/crypto/gc: Moved from ../.
35750 2007-04-02 Eric Blake <ebb9@byu.net>
35752 * lib/ldexpl.c (includes): Avoid libm.
35754 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35756 2007-04-02 Bruno Haible <bruno@clisp.org>
35758 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35761 2007-04-02 Bruno Haible <bruno@clisp.org>
35763 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35764 x86 or x86_64 platforms running MacOS X.
35765 Reported by Ryan Schmidt <@ryandesign.com>.
35767 2007-04-02 Bruno Haible <bruno@clisp.org>
35769 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35772 2007-04-01 Simon Josefsson <simon@josefsson.org>
35774 * modules/crypto/arcfour: Moved from ../.
35775 * modules/crypto/arcfour-tests: Moved from ../.
35776 * modules/crypto/arctwo: Moved from ../.
35777 * modules/crypto/arctwo-tests: Moved from ../.
35778 * modules/crypto/des: Moved from ../.
35779 * modules/crypto/des-tests: Moved from ../.
35780 * modules/crypto/gc-arcfour: Moved from ../.
35781 * modules/crypto/gc-arcfour-tests: Moved from ../.
35782 * modules/crypto/gc-arctwo: Moved from ../.
35783 * modules/crypto/gc-arctwo-tests: Moved from ../.
35784 * modules/crypto/gc-des: Moved from ../.
35785 * modules/crypto/gc-des-tests: Moved from ../.
35786 * modules/crypto/gc-hmac-md5: Moved from ../.
35787 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35788 * modules/crypto/gc-hmac-sha1: Moved from ../.
35789 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35790 * modules/crypto/gc-md2: Moved from ../.
35791 * modules/crypto/gc-md2-tests: Moved from ../.
35792 * modules/crypto/gc-md4: Moved from ../.
35793 * modules/crypto/gc-md4-tests: Moved from ../.
35794 * modules/crypto/gc-md5: Moved from ../.
35795 * modules/crypto/gc-md5-tests: Moved from ../.
35796 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35797 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35798 * modules/crypto/gc-random: Moved from ../.
35799 * modules/crypto/gc-rijndael: Moved from ../.
35800 * modules/crypto/gc-rijndael-tests: Moved from ../.
35801 * modules/crypto/gc-sha1: Moved from ../.
35802 * modules/crypto/gc-sha1-tests: Moved from ../.
35803 * modules/crypto/gc-tests: Moved from ../.
35804 * modules/crypto/hmac-md5: Moved from ../.
35805 * modules/crypto/hmac-md5-tests: Moved from ../.
35806 * modules/crypto/hmac-sha1: Moved from ../.
35807 * modules/crypto/hmac-sha1-tests: Moved from ../.
35808 * modules/crypto/md2: Moved from ../.
35809 * modules/crypto/md2-tests: Moved from ../.
35810 * modules/crypto/md4: Moved from ../.
35811 * modules/crypto/md4-tests: Moved from ../.
35812 * modules/crypto/md5: Moved from ../.
35813 * modules/crypto/md5-tests: Moved from ../.
35814 * modules/crypto/memxor: Moved from ../.
35815 * modules/crypto/rijndael: Moved from ../.
35816 * modules/crypto/rijndael-tests: Moved from ../.
35817 * modules/crypto/sha1: Moved from ../.
35819 2007-03-30 James Youngman <jay@gnu.org>
35821 * tests/test-stat-time.c (prepare_test): use chmod() rather than
35822 rename() to change the ctime of a file (because ctime is unaffected
35823 by rename on jfs2 on AIX 5.1).
35824 (main): Start by doing cleanup, in case a previous run failed leaving
35827 2007-03-31 Bruno Haible <bruno@clisp.org>
35829 Support old proprietary implementations of iconv.
35830 * modules/iconv_open: New file.
35831 * lib/iconv_.h: New file.
35832 * m4/iconv_h.m4: New file.
35833 * lib/iconv_open.c: New file.
35834 * lib/iconv_open-aix.gperf: New file.
35835 * lib/iconv_open-hpux.gperf: New file.
35836 * lib/iconv_open-irix.gperf: New file.
35837 * lib/iconv_open-osf.gperf: New file.
35838 * m4/iconv_open.m4: New file.
35839 * modules/linebreak (Depends-on): Add iconv_open.
35840 * modules/striconv (Depends-on): Likewise.
35841 * modules/striconveh (Depends-on): Likewise.
35842 * modules/unicodeio (Depends-on): Likewise.
35843 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35845 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35846 conversion if cd is (iconv_t)(-1).
35847 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35850 2007-03-31 Bruno Haible <bruno@clisp.org>
35852 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35853 work on Solaris either. Protect also second use of "autodetect_jp".
35855 2007-03-31 Bruno Haible <bruno@clisp.org>
35857 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35858 the function is not present.
35860 2007-03-31 Bruno Haible <bruno@clisp.org>
35862 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35863 the function is not present.
35865 2007-03-31 Bruno Haible <bruno@clisp.org>
35867 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35868 a bug in HP-UX iconv_open().
35870 2007-03-31 Bruno Haible <bruno@clisp.org>
35872 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35873 (Mathematics <math.h>): New section, add fpieee.
35874 (Input/output <stdio.h>): Add fseterr.
35875 (Mathematics <math.h>): New section, add printf-frexp.
35876 (Container data structures): Add sublist.
35877 (Core language properties): Add fpucw, inline.
35878 (Functions for greatest-width integer types <inttypes.h>): Add
35879 imaxabs, imaxdiv, inttypes.
35880 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35881 isnanl-nolibm, ldexp.
35882 (Mathematics <math.h>): New section, add printf-frexpl.
35883 (Support for systems lacking POSIX:2001): Add fprintf-posix,
35884 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35885 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35886 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35887 (Unicode string functions): Add unistr/u*-mbtoucr.
35888 (Java): Add javacomp-script, javaexec-script.
35889 (C#): Add csharpcomp-script, csharpexec-script.
35890 (Support for building libraries and executables): Add havelib,
35892 (Support for maintaining and releasing projects): Renamed from
35893 'Support for maintaining and release projects'. Add announce-gen.
35895 2007-03-31 Bruno Haible <bruno@clisp.org>
35897 * README: Talk primarily about git.
35898 (git and CVS): Renamed from CVS.
35899 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35900 gnulib is available through git.
35901 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35903 2007-03-30 Bruno Haible <bruno@clisp.org>
35905 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35906 * lib/poll_.h: Likewise.
35907 * lib/stat_.h: Likewise.
35908 * lib/sys_time_.h: Likewise.
35909 * lib/sysexit_.h: Likewise.
35910 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35911 * lib/stdbool_.h: Likewise.
35912 * lib/byteswap_.h: Add double-inclusion guard.
35914 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
35916 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35918 2007-03-30 Karl Berry <karl@gnu.org>
35920 * config/srclist-update: double space after USA in the license
35921 substitution, since that's how it's usually (?) written.
35923 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
35925 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35926 reported by Bruno Haible.
35928 2007-03-29 Bruno Haible <bruno@clisp.org>
35930 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35931 a bug in AIX iconv().
35933 2007-03-29 Bruno Haible <bruno@clisp.org>
35935 * modules/ldexpl-tests: New file.
35936 * tests/test-ldexpl.c: New file.
35938 2007-03-29 Bruno Haible <bruno@clisp.org>
35940 * lib/ldexpl.c: Include fpucw.h.
35941 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35943 * modules/ldexpl (Depends-on): Add fpucw.
35945 2007-03-29 Bruno Haible <bruno@clisp.org>
35947 * modules/ldexpl: New file.
35948 * m4/ldexpl.m4: New file.
35949 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35951 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35953 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35955 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35956 gl_FUNC_LDEXPL_WORKS.
35957 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35958 * modules/mathl (Files): Remove lib/ldexpl.c.
35959 (Depends-on): Add ldexpl.
35961 2007-03-29 Bruno Haible <bruno@clisp.org>
35963 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35965 2007-03-29 Bruno Haible <bruno@clisp.org>
35967 * tests/test-striconveh.c (main): Don't assume that a direct conversion
35968 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35969 and possibly also HP-UX.
35970 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35971 work on AIX, IRIX, HP-UX, OSF/1.
35972 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35973 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35974 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35975 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35976 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35977 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35979 2007-03-29 Bruno Haible <bruno@clisp.org>
35981 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35983 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
35985 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35986 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35988 2007-03-29 Eric Blake <ebb9@byu.net>
35990 * lib/acl-internal.h: Remove redundant include.
35991 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35992 Cygwin when a file is locked.
35994 2007-03-29 Bruno Haible <bruno@clisp.org>
35996 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35998 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36000 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
36002 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36003 try to remove a parent directory if the child couldn't be removed
36004 (except for the first rmdir, which could fail because the child
36005 doesn't exist). Problem reported by Jeff Blaine in
36006 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36008 2007-03-28 Bruno Haible <bruno@clisp.org>
36010 * lib/striconveh.c (utf8conv_carefully): New function.
36011 (mem_cd_iconveh_internal): Invoke it.
36013 2007-03-28 Bruno Haible <bruno@clisp.org>
36015 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36016 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36018 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36019 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36022 2007-03-28 Bruno Haible <bruno@clisp.org>
36024 * modules/unistr/u8-mbtoucr: New file.
36025 * lib/unistr/u8-mbtoucr.c: New file.
36026 * modules/unistr/u16-mbtoucr: New file.
36027 * lib/unistr/u16-mbtoucr.c: New file.
36028 * modules/unistr/u16-mbtoucr: New file.
36029 * lib/unistr/u16-mbtoucr.c: New file.
36030 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36032 2007-03-27 Simon Josefsson <simon@josefsson.org>
36033 Bruno Haible <bruno@clisp.org>
36035 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36036 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
36037 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36039 * m4/stdio_h.m4: Add stubs for vasprintf too.
36041 * modules/stdio: Support vasprintf in sed command.
36043 * modules/vasprintf: Depend on stdio for prototypes. Remove
36044 vasprintf.h. Add stdio module indicator.
36046 * lib/stdio_.h: Declare asprintf and vasprintf, based on
36049 * lib/vasprintf.h: File removed.
36051 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36052 * lib/vasprintf.c: Ditto.
36053 * lib/xvasprintf.c: Ditto.
36054 * tests/test-vasprintf-posix.c: Ditto.
36055 * tests/test-vasprintf.c: Ditto.
36057 2007-03-27 Bruno Haible <bruno@clisp.org>
36059 Make vasnprintf multithread-safe.
36060 * lib/vasnprintf.c (decimal_point_char): New function.
36061 (VASNPRINTF): Use it.
36062 Suggested by Simon Josefsson.
36064 2007-03-27 Eric Blake <ebb9@byu.net>
36066 Support sub-second birthtime on cygwin.
36067 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36068 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36069 (get_stat_birthtime): Also work with st_birthtim.
36071 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
36073 * lib/stat-time.h (USE_BIRTHTIME): Remove.
36074 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36075 (get_stat_birthtime_ns): Do not try to use "spare" fields.
36076 (get_stat_birthtime_ns): Simplify compile-time tests.
36077 (get_stat_birthtime): Change the API to look like
36078 get_stat_mtime etc., except return a negative tv_nsec on error.
36079 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36080 Don't check for "spare" fields.
36081 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36082 or for struct stat.st_birthtime, as these tests aren't used.
36083 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36085 2007-03-27 Bruno Haible <bruno@clisp.org>
36087 * lib/stat-time.h: Include <sys/stat.h>.
36089 2007-03-27 James Youngman <jay@gnu.org>
36091 * lib/stat-time.h (get_stat_birthtime): New function for
36092 retrieving st_birthtime as provided by UFS2 (hence *BSD).
36093 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36095 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36096 * modules/stat-time-test: New file.
36097 * tests/test-stat-time.c: New test, devised by Bruno Haible.
36099 2007-03-26 Bruno Haible <bruno@clisp.org>
36101 Better support of signalling NaNs.
36102 * lib/atanl.c: Include isnanl.h.
36103 (atanl): Perform test for NaN at the beginning of the function and
36104 through a call to isnanl.
36105 * lib/cosl.c: Include isnanl.h.
36106 (cosl): Perform test for NaN at the beginning of the function and
36107 through a call to isnanl.
36108 * lib/ldexpl.c: Include isnanl.h.
36109 (ldexpl): Perform test for NaN through a call to isnanl.
36110 * lib/logl.c: Include isnanl.h.
36111 (logl): Perform test for NaN at the beginning of the function and
36112 through a call to isnanl.
36113 * lib/sinl.c: Include isnanl.h.
36114 (sinl): Perform test for NaN at the beginning of the function and
36115 through a call to isnanl.
36116 * lib/sqrtl.c: Include isnanl.h.
36117 (sqrtl): Perform test for NaN at the beginning of the function and
36118 through a call to isnanl.
36119 * lib/tanl.c: Include isnanl.h.
36120 (tanl): Perform test for NaN at the beginning of the function and
36121 through a call to isnanl.
36122 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36123 * modules/mathl (Depends-on): Add isnanl.
36125 2007-03-26 Eric Blake <ebb9@byu.net>
36127 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36128 regression in logic sense of previous patch.
36130 2007-03-26 Bruno Haible <bruno@clisp.org>
36132 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36133 unportable shell command "if ! ...".
36134 Reported by Ralf Wildenhues.
36136 2007-03-25 Bruno Haible <bruno@clisp.org>
36138 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36139 <sysexits.h> file, and only add EX_CONFIG.
36140 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36141 absolute file name and whether it is sufficient. Substitute also
36142 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36143 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36144 ABSOLUTE_SYSEXITS_H into sysexits.h.
36146 2007-03-25 Bruno Haible <bruno@clisp.org>
36148 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36151 2007-03-25 Bruno Haible <bruno@clisp.org>
36153 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36154 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36156 2007-03-25 Bruno Haible <bruno@clisp.org>
36158 * lib/vasnprintf.c: Include langinfo.h.
36159 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36161 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36162 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36163 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36164 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36165 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36166 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36167 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36168 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36169 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36170 Reported by Simon Josefsson.
36172 2007-03-25 Bruno Haible <bruno@clisp.org>
36174 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36175 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36176 * modules/vasnprintf (Depends-on): Add stdint.
36178 2007-03-25 Bruno Haible <bruno@clisp.org>
36180 * modules/fpieee: New file.
36181 * m4/fpieee.m4: New file.
36182 * modules/isnan-nolibm (Depends-on): Add fpieee.
36183 * modules/isnanl-nolibm (Depends-on): Add fpieee.
36184 * modules/isnanl (Depends-on): Add fpieee.
36186 2007-03-25 Bruno Haible <bruno@clisp.org>
36188 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36190 2007-03-25 Bruno Haible <bruno@clisp.org>
36192 Avoid test failures on IRIX 6.5.
36193 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36195 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36199 2007-03-25 Bruno Haible <bruno@clisp.org>
36201 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36202 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36203 exists but doesn't work.
36204 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36205 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36206 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36207 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36209 2007-03-25 Bruno Haible <bruno@clisp.org>
36211 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36212 returns inf. Needed on IRIX 6.5.
36214 2007-03-25 Bruno Haible <bruno@clisp.org>
36216 * tests/test-frexpl.c: Include isnanl-nolibm.h.
36217 (main): Use isnanl instead of x != x idiom.
36218 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36220 * tests/test-frexp.c: Include isnan.h.
36221 (main): Use isnan instead of x != x idiom.
36222 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36224 2007-03-25 Bruno Haible <bruno@clisp.org>
36226 * tests/test-frexp.c (NaN): New function/macro.
36227 (main): Use it instead of 0.0 / 0.0.
36228 * tests/test-isnan.c (NaN): New function/macro.
36229 (main): Use it instead of 0.0 / 0.0.
36230 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36231 (test_function): Use it instead of 0.0 / 0.0.
36232 * tests/test-vasprintf-posix.c (NaN): New function/macro.
36233 (test_function): Use it instead of 0.0 / 0.0.
36234 * tests/test-snprintf-posix.h (NaN): New function/macro.
36235 (test_function): Use it instead of 0.0 / 0.0.
36236 * tests/test-sprintf-posix.h (NaN): New function/macro.
36237 (test_function): Use it instead of 0.0 / 0.0.
36238 * tests/test-fprintf-posix.h (NaN): New function/macro.
36239 (test_function): Use it instead of 0.0 / 0.0.
36240 * tests/test-printf-posix.h (NaN): New function/macro.
36241 (test_function): Use it instead of 0.0 / 0.0.
36243 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36245 2007-03-25 Bruno Haible <bruno@clisp.org>
36247 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36249 2007-03-25 Bruno Haible <bruno@clisp.org>
36251 * lib/regexec.c (merge_state_with_log): Make static.
36253 2007-03-25 Bruno Haible <bruno@clisp.org>
36255 * lib/trigl.c (kernel_rem_pio2): Make static.
36257 2007-03-25 Bruno Haible <bruno@clisp.org>
36259 * lib/sincosl.c (sincosl_table): Make static.
36261 2007-03-25 Bruno Haible <bruno@clisp.org>
36263 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36264 if the compiler does not support C99.
36266 2007-03-25 Bruno Haible <bruno@clisp.org>
36268 * modules/time (Makefile.am): Ensure all rule action lines start with a
36271 2007-03-24 Bruno Haible <bruno@clisp.org>
36273 * modules/tsearch-tests: New file.
36274 * tests/test-tsearch.sh: New file.
36275 * tests/test-tsearch.c: New file, mostly copied from glibc.
36277 * modules/search-tests: New file.
36278 * tests/test-search.c: New file.
36280 * modules/search: New file.
36281 * lib/search_.h: New file, incorporating lib/tsearch.h.
36282 * m4/search_h.m4: New file.
36283 * lib/tsearch.h: Remove file.
36284 * lib/tsearch.c: Include search.h instead of tsearch.h.
36285 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36287 * modules/tsearch (Files): Remove lib/tsearch.h.
36288 (Depends-on): Add search.
36289 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36290 (Include): Change tsearch.h into search.h.
36292 2007-03-24 Bruno Haible <bruno@clisp.org>
36294 * modules/fpucw: New file.
36295 * lib/fpucw.h: New file.
36296 * lib/frexp.c: Include fpucw.h.
36297 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36299 * lib/printf-frexp.c: Include fpucw.h.
36300 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36302 * lib/vasnprintf.c: Include fpucw.h.
36303 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36304 'long double' calculations.
36305 * tests/test-frexpl.c: Include fpucw.h.
36306 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36307 * tests/test-printf-frexpl.c: Include fpucw.h.
36308 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36309 * modules/frexpl (Depends-on): Add fpucw.
36310 * modules/printf-frexpl (Depends-on): Likewise.
36311 * modules/fprintf-posix (Depends-on): Likewise.
36312 * modules/snprintf-posix (Depends-on): Likewise.
36313 * modules/sprintf-posix (Depends-on): Likewise.
36314 * modules/vasnprintf-posix (Depends-on): Likewise.
36315 * modules/vasprintf-posix (Depends-on): Likewise.
36316 * modules/vfprintf-posix (Depends-on): Likewise.
36317 * modules/vsnprintf-posix (Depends-on): Likewise.
36318 * modules/vsprintf-posix (Depends-on): Likewise.
36319 * modules/frexpl-tests (Depends-on): Likewise.
36320 * modules/printf-frexpl-tests (Depends-on): Likewise.
36322 2007-03-24 Bruno Haible <bruno@clisp.org>
36324 * lib/float+.h: New file.
36325 * lib/isnan.c: Include float+.h.
36327 (FUNC): Compare only SIZE bytes of the value.
36328 * lib/vasnprintf.c: Include float+.h.
36329 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36330 SIZEOF_LDBL or SIZEOF_DBL bytes.
36331 * modules/isnan-nolibm (Files): Add lib/float+.h.
36332 * modules/isnanl-nolibm (Files): Add lib/float+.h.
36333 * modules/isnanl (Files): Add lib/float+.h.
36334 * modules/vasnprintf (Files): Add lib/float+.h.
36336 2007-03-24 Bruno Haible <bruno@clisp.org>
36338 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36339 include isnanl-nolibm.h.
36341 2007-03-24 Bruno Haible <bruno@clisp.org>
36343 * tests/test-read-file.c (main): Don't produce spurious output for
36344 expected situations. Make the test fail if it encountered unexpected
36347 2007-03-24 Bruno Haible <bruno@clisp.org>
36349 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36350 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36352 2007-03-24 Bruno Haible <bruno@clisp.org>
36354 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36356 2007-03-24 Bruno Haible <bruno@clisp.org>
36358 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36359 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36361 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36362 * modules/utf8-ucs4: Turn into a symbolic link to module
36365 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36367 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36368 unistr/u8-mbtouc-unsafe.
36370 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36371 * modules/utf16-ucs4: Turn into a symbolic link to module
36374 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36376 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36377 unistr/u16-mbtouc-unsafe.
36379 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36380 * modules/ucs4-utf8: Turn into a symbolic link to module
36383 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36384 * modules/ucs4-utf16: Turn into a symbolic link to module
36387 2007-03-24 Bruno Haible <bruno@clisp.org>
36389 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36390 Enable the function only if HAVE_INLINE.
36391 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36392 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36393 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36394 Enable the function only if HAVE_INLINE.
36395 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36396 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36397 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36398 Enable the function only if HAVE_INLINE.
36399 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36400 Enable the function only if HAVE_INLINE.
36401 * modules/utf8-ucs4: Update.
36402 * modules/utf8-ucs4-unsafe: Update.
36403 * modules/utf16-ucs4: Update.
36404 * modules/utf16-ucs4-unsafe: Update.
36405 * modules/ucs4-utf8: Update.
36406 * modules/ucs4-utf16: Update.
36408 2007-03-24 Bruno Haible <bruno@clisp.org>
36410 * lib/utf8-ucs4.h: Remove file.
36411 * lib/utf8-ucs4-unsafe.h: Remove file.
36412 * lib/utf16-ucs4.h: Remove file.
36413 * lib/utf16-ucs4-unsafe.h: Remove file.
36414 * lib/ucs4-utf8.h: Remove file.
36415 * lib/ucs4-utf16.h: Remove file.
36416 * lib/unistr.h: Include their previous contents.
36417 * m4/utf-ucs4.m4: Remove file.
36418 * m4/ucs4-utf.m4: Remove file.
36419 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36420 (Depends-on): Add unistr/base.
36421 (configure.ac): Remove gl_UTF_UCS4.
36422 (Makefile.am): Update.
36423 (Include): Change to unistr.h.
36424 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36425 (Depends-on): Add unistr/base.
36426 (configure.ac): Remove gl_UTF_UCS4.
36427 (Makefile.am): Update.
36428 (Include): Change to unistr.h.
36429 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36430 (Depends-on): Add unistr/base.
36431 (configure.ac): Remove gl_UTF_UCS4.
36432 (Makefile.am): Update.
36433 (Include): Change to unistr.h.
36434 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36435 (Depends-on): Add unistr/base.
36436 (configure.ac): Remove gl_UTF_UCS4.
36437 (Makefile.am): Update.
36438 (Include): Change to unistr.h.
36439 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36440 (Depends-on): Add unistr/base.
36441 (configure.ac): Remove gl_UCS4_UTF.
36442 (Makefile.am): Update.
36443 (Include): Change to unistr.h.
36444 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36445 (Depends-on): Add unistr/base.
36446 (configure.ac): Remove gl_UCS4_UTF.
36447 (Makefile.am): Update.
36448 (Include): Change to unistr.h.
36449 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36450 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36451 utf8-ucs4-unsafe.h.
36452 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36453 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36454 utf16-ucs4-unsafe.h.
36455 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36456 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36457 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36458 * lib/unistr/u8-strchr.c: Likewise.
36459 * lib/unistr/u8-strrchr.c: Likewise.
36460 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36461 * lib/unistr/u16-strchr.c: Likewise.
36462 * lib/unistr/u16-strrchr.c: Likewise.
36463 * lib/striconveh.c: Update.
36464 * lib/linebreak.c: Update.
36466 2007-03-24 Bruno Haible <bruno@clisp.org>
36468 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36469 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36471 2007-03-22 Bruno Haible <bruno@clisp.org>
36473 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36475 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
36477 * MODULES.html.sh (File system functions): New module write-any-file.
36478 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36479 * m4/write-any-file.m4: New files.
36481 2007-03-23 Eric Blake <ebb9@byu.net>
36483 * gnulib-tool: Rearrange space-tab sequences, since some editors
36486 2007-03-23 Eric Blake <ebb9@byu.net>
36488 * lib/version-etc.c (version_etc_va): Update license wording to
36489 be more concise. Recommended by Richard Stallman.
36491 2007-03-22 Bruno Haible <bruno@clisp.org>
36493 * lib/poll.c (MSG_PEEK): New fallback definition.
36495 2007-03-22 Bruno Haible <bruno@clisp.org>
36497 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36498 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36500 Fixes a compilation error on BeOS.
36502 2007-03-22 Bruno Haible <bruno@clisp.org>
36504 * modules/frexpl-tests: New file.
36505 * tests/test-frexpl.c: New file.
36507 * modules/frexpl: New file.
36508 * m4/frexpl.m4: New file.
36509 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36510 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36511 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36512 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36513 (Depends-on): Add frexpl. Remove isnanl-nolibm.
36514 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36516 2007-03-22 Bruno Haible <bruno@clisp.org>
36518 * lib/frexpl.c: Share code with lib/frexp.c.
36519 * modules/mathl (Files): Add lib/frexp.c.
36520 (Depends-on): Add isnanl-nolibm.
36522 2007-03-22 Bruno Haible <bruno@clisp.org>
36524 * modules/printf-frexp (Files): Add m4/frexp.m4.
36525 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36526 only if the found frexp function actually works.
36528 2007-03-22 Bruno Haible <bruno@clisp.org>
36530 * lib/frexp.c: Remove older implementation that uses divisions.
36532 2007-03-21 Bruno Haible <bruno@clisp.org>
36534 * modules/frexp-tests: New file.
36535 * tests/test-frexp.c: New file.
36537 * modules/frexp: New file.
36538 * lib/frexp.c: New file.
36539 * m4/frexp.m4: New file.
36540 * lib/math_.h (frexp): New declaration.
36541 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36543 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36545 2007-03-21 Bruno Haible <bruno@clisp.org>
36547 * modules/isnanl-tests: New file.
36548 * tests/test-isnanl.c: New file.
36550 * modules/isnanl: New file.
36551 * lib/isnanl.h: New file.
36552 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36553 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36554 gl_FUNC_ISNANL_WORKS.
36555 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36558 2007-03-21 Bruno Haible <bruno@clisp.org>
36560 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36563 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36564 * lib/vasnprintf.c: Update.
36565 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36566 tests/test-isnanl.h, remove tests/test-isnanl.c.
36567 (Makefile.am): Update.
36568 * tests/test-isnanl-nolibm.c: New file.
36569 * tests/test-isnanl.h: New file.
36570 * tests/test-isnanl.c: Remove file.
36572 2007-03-21 Jim Meyering <jim@meyering.net>
36574 When trying to open ".", treat ESTALE like EACCES.
36575 * lib/savewd.c (savewd_save): Resort to forking not just upon
36576 failure with EACCES, but also when errno is ESTALE.
36578 2007-03-20 Bruno Haible <bruno@clisp.org>
36580 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36581 Needed on AIX 5.1. Reported by Matthew Woehlke.
36583 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
36585 Suggestions by Bruno Haible:
36586 * lib/acl-internal.h: Include "gettext.h" rather than rolling
36588 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36589 * modules/acl (Depends-on): Add gettext.
36591 2007-03-19 Bruno Haible <bruno@clisp.org>
36593 * modules/iconvme: Remove file.
36594 * lib/iconvme.h: Remove file.
36595 * lib/iconvme.c: Remove file.
36596 * m4/iconvme.m4: Remove file.
36598 2007-03-19 Bruno Haible <bruno@clisp.org>
36600 * doc/relocatable-maint.texi: Break long shell script line.
36601 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36603 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
36605 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36606 handle file_has_acl.
36607 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36608 * lib/acl.c: Move header inclusions and related macro defns into
36609 lib/acl-internal.h.
36610 (S_ISLNK): Remove defn, since that's now done for us.
36611 (file_has_acl): Move to lib/file-has-acl.c.
36612 Call acl_trivial if available. This is the crucial part of the fix.
36613 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
36614 shared within the library. Rewrite a bit, partly to make it compatible
36615 with the GNU coding style.
36616 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36617 Remove unnecessary double-quotes.
36618 Don't test for acl_to_text; the build will catch that.
36619 Replace acl_entries if it doesn't exist and it is needed.
36620 Check for -lsec and acl_trivial (as used on Solaris 10).
36621 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36622 lib/file-has-acl.c.
36623 (Depends-on): Add sys_stat, for S_ISLNK.
36625 2007-03-19 Ben Pfaff <blp@gnu.org>
36627 * doc/gnulib.texi: Fix typos.
36628 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36630 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
36632 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36633 If size is zero here, buf must be zero.
36635 2007-03-19 Simon Josefsson <simon@josefsson.org>
36637 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
36640 2007-03-18 Bruno Haible <bruno@clisp.org>
36642 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36643 Suggested by Eric Blake.
36645 2007-03-18 Ben Pfaff <blp@gnu.org>
36647 * doc/relocatable.texi: Recommend using as prefix a directory
36648 that does not exist and will never be created. Based on
36649 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36652 2007-03-17 Bruno Haible <bruno@clisp.org>
36654 * lib/fchownat.c: Include lchown.h.
36656 2007-03-17 Bruno Haible <bruno@clisp.org>
36658 Fix endless loop when the given allocated size was > INT_MAX.
36659 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36660 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36661 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36662 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36663 * lib/sprintf.c (sprintf): Likewise.
36665 2007-03-17 Bruno Haible <bruno@clisp.org>
36667 * tests/test-argp-2.sh (func_compare): Output a context diff.
36669 2007-03-17 Bruno Haible <bruno@clisp.org>
36671 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36672 locale's decimal-point character.
36674 2007-03-17 Bruno Haible <bruno@clisp.org>
36676 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36677 before comparing it. Needed because on some platforms (e.g. x86) a
36678 'long double' occupies less bytes than sizeof (long double).
36680 2007-03-17 Bruno Haible <bruno@clisp.org>
36682 * tests/test-crc.c (main): Make printf statements 64-bit clean.
36683 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36684 * tests/test-getaddrinfo.c (simple): Likewise.
36685 * tests/test-read-file.c (main): Likewise.
36687 2007-03-17 Bruno Haible <bruno@clisp.org>
36689 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36691 2007-03-17 Bruno Haible <bruno@clisp.org>
36693 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36696 2007-03-17 Bruno Haible <bruno@clisp.org>
36698 * tests/test-c-strcasecmp.c: Include c-strcase.h.
36699 * tests/test-c-strncasecmp.c: Likewise.
36701 2007-03-17 Bruno Haible <bruno@clisp.org>
36703 * modules/stdlib (Depends-on): Add unistd.
36704 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36705 Needed for MacOS X 10.3.
36707 2007-03-17 Bruno Haible <bruno@clisp.org>
36709 * lib/unistr/u-strdup.h: Include <stdlib.h>.
36711 2007-03-17 Bruno Haible <bruno@clisp.org>
36713 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36715 2007-03-17 Bruno Haible <bruno@clisp.org>
36717 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36718 to reflect files copied from gnulib (with or without modifications).
36719 Suggested by Jim Meyering.
36721 2007-03-17 Eric Blake <ebb9@byu.net>
36723 * NEWS: Document stdlib change from 2007-02-18.
36725 2007-03-17 Jim Meyering <jim@meyering.net>
36727 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36728 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36729 someone uses a name containing shell meta-characters.
36730 Reported by Alfred M. Szmidt.
36732 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
36734 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
36736 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
36737 and copy gettext configuration files only if configure.ac contains
36738 a use of AM_GNU_GETTEXT_VERSION.
36740 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
36742 * build-aux/bootstrap (gnulib_name): New variable.
36743 (gnulib_tool_options): Use it.
36745 2007-03-13 Simon Josefsson <simon@josefsson.org>
36747 * tests/test-des.c: Use new namespace.
36749 2007-03-15 Bruno Haible <bruno@clisp.org>
36751 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36752 Reported by James Youngman <jay@gnu.org>.
36754 2007-03-15 Bruno Haible <bruno@clisp.org>
36756 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36757 declared prototype. Needed with cc on OSF/1 5.1.
36759 2007-03-15 Bruno Haible <bruno@clisp.org>
36761 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36762 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36763 (struct gl_list_implementation): Add dispose_fn argument to the
36764 'create_empty', 'create' methods.
36765 (struct gl_list_impl_base): Add field 'dispose_fn'.
36766 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36768 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36769 dispose_fn argument.
36770 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36771 dispose_fn on the dropped values.
36772 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36773 dispose_fn argument.
36774 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36776 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36777 (gl_tree_remove_node): Call dispose_fn on the dropped value.
36778 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36779 (gl_tree_remove_node): Call dispose_fn on the dropped value.
36780 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36782 (gl_tree_list_free): Call dispose_fn on the dropped values.
36783 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36784 the dropped values.
36785 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36786 Add dispose_fn argument.
36787 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36788 Call dispose_fn on the dropped values.
36789 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36790 Add dispose_fn argument.
36791 (gl_sublist_create): Initialize the 'dispose_fn' field.
36792 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36793 * tests/test-array_list.c (main): Update.
36794 * tests/test-carray_list.c (main): Update.
36795 * tests/test-avltree_list.c (main): Update.
36796 * tests/test-rbtree_list.c (main): Update.
36797 * tests/test-avltreehash_list.c (main): Update.
36798 * tests/test-rbtreehash_list.c (main): Update.
36799 * tests/test-linked_list.c (main): Update.
36800 * tests/test-linkedhash_list.c (main): Update.
36801 * tests/test-array_oset.c (main): Update.
36803 2007-03-15 Bruno Haible <bruno@clisp.org>
36805 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36806 (gl_oset_create_empty): Add dispose_fn argument.
36807 (struct gl_oset_implementation): Add dispose_fn argument to
36808 'create_empty' method.
36809 (struct gl_oset_impl_base): Add dispose_fn field.
36810 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36811 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36812 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36814 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36815 (gl_tree_oset_free): Call dispose_fn on the dropped values.
36816 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36818 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36820 * tests/test-array_oset.c (main): Update.
36821 * tests/test-avltree_oset.c (main): Update.
36822 * tests/test-rbtree_oset.c (main): Update.
36823 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36825 2007-03-13 Bruno Haible <bruno@clisp.org>
36827 * tests/test-stdbool.c (i): Update after last patch.
36829 2007-03-12 Bruno Haible <bruno@clisp.org>
36831 * lib/quotearg.c: Include <wctype.h> early, before the definition of
36832 the iswprint macro. Needed on Solaris 2.5.1.
36834 2007-03-12 Bruno Haible <bruno@clisp.org>
36836 * tests/test-printf-frexp.c (main): Declare x as volatile.
36838 2007-03-12 Simon Josefsson <simon@josefsson.org>
36840 * doc/gnulib.texi (Build robot for gnulib): New section.
36842 2007-03-12 Jim Meyering <jim@meyering.net>
36844 * build-aux/bootstrap: New file.
36845 * build-aux/bootstrap.conf: New file, from coreutils.
36847 2007-03-11 Bruno Haible <bruno@clisp.org>
36849 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36851 2007-03-12 Simon Josefsson <simon@josefsson.org>
36853 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36854 avoid collisions with 'des_setkey'. Reported by Bruno Haible
36855 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
36857 2007-03-11 Bruno Haible <bruno@clisp.org>
36859 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36860 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36862 2007-03-11 Bruno Haible <bruno@clisp.org>
36864 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36865 formula. Needed for SunPRO C 5.0.
36867 2007-03-11 Bruno Haible <bruno@clisp.org>
36869 * modules/long-options (Depends-on): Add getopt.
36871 2007-03-11 Bruno Haible <bruno@clisp.org>
36873 * modules/modechange (Depends-on): Add stdbool.
36875 2007-03-11 Bruno Haible <bruno@clisp.org>
36877 * modules/i-ring (Depends-on): Add stdbool.
36879 2007-03-11 Bruno Haible <bruno@clisp.org>
36881 * modules/gc-des (Depends-on): Add stdbool.
36883 2007-03-11 Bruno Haible <bruno@clisp.org>
36885 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36887 2007-03-11 Bruno Haible <bruno@clisp.org>
36889 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36891 2007-03-11 Bruno Haible <bruno@clisp.org>
36893 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36895 2007-03-11 Bruno Haible <bruno@clisp.org>
36897 * lib/vasnprintf.c (sprintf): Undefine.
36899 2007-03-11 Bruno Haible <bruno@clisp.org>
36901 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36902 initializers in SunPRO C and Compaq C compilers.
36904 2007-03-11 Bruno Haible <bruno@clisp.org>
36906 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36907 decrementing code ANSI C compliant.
36909 2007-03-11 Bruno Haible <bruno@clisp.org>
36911 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36912 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36914 2007-03-11 Bruno Haible <bruno@clisp.org>
36916 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36917 <stdbool.h> substitute doesn't pass.
36919 2007-03-11 Bruno Haible <bruno@clisp.org>
36921 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36923 2007-03-11 Bruno Haible <bruno@clisp.org>
36925 * gnulib-tool (func_create_megatestdir): Create also an autobuild
36926 script, for submission to autobuild.josefsson.org.
36928 2007-03-10 Bruno Haible <bruno@clisp.org>
36930 * modules/canonicalize-lgpl-tests: New file.
36931 * tests/test-canonicalize-lgpl.sh: New file.
36932 * tests/test-canonicalize-lgpl.c: New file.
36934 * modules/c-strcase-tests: New file.
36935 * tests/test-c-strcase.sh: New file.
36936 * tests/test-c-strcasecmp.c: New file.
36937 * tests/test-c-strncasecmp.c: New file.
36939 * modules/atexit-tests: New file.
36940 * tests/test-atexit.sh: New file.
36941 * tests/test-atexit.c: New file.
36943 2007-03-10 Bruno Haible <bruno@clisp.org>
36945 * tests/test-binary-io.sh: Use temporary filenames that are not so
36946 likely to clash with those of other tests (in a parallel make).
36947 * tests/test-binary-io.c: Likewise.
36949 2007-03-10 Bruno Haible <bruno@clisp.org>
36951 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36952 fallback; use #error instead.
36953 Suggested by Simon Josefsson.
36955 2007-03-10 Bruno Haible <bruno@clisp.org>
36957 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36958 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36959 first and the last.
36961 2007-03-10 Bruno Haible <bruno@clisp.org>
36963 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36965 2007-03-10 Bruno Haible <bruno@clisp.org>
36967 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36969 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36970 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36971 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36973 2007-03-10 Bruno Haible <bruno@clisp.org>
36975 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36977 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36980 2007-03-09 Eric Blake <ebb9@byu.net>
36981 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
36983 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36984 types are not being provided by gnulib.
36985 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36986 types are supported.
36988 2007-03-10 Bruno Haible <bruno@clisp.org>
36990 * lib/stdio_.h (__attribute__): New macro.
36991 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36992 vsprintf): Specify __attribute__ __format__ for GCC.
36993 Suggested by Eric Blake.
36995 2007-03-09 Bruno Haible <bruno@clisp.org>
36997 * modules/printf-posix-tests: New file.
36998 * tests/test-printf-posix.sh: New file.
36999 * tests/test-printf-posix.c: New file.
37001 * modules/printf-posix: New file.
37002 * lib/printf.c: New file.
37003 * m4/printf-posix-rpl.m4: New file.
37004 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37006 * lib/stdio_.h (printf): New declaration.
37007 (format, __format__, ____printf____, ____scanf____, ____strftime____,
37008 ____strfmon____): New macros.
37009 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37012 2007-03-09 Bruno Haible <bruno@clisp.org>
37014 * tests/test-vasnprintf-posix2.sh: New file.
37015 * tests/test-vasnprintf-posix2.c: New file.
37016 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37017 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37018 (Makefile.am): Activate test-vasnprintf-posix2.sh.
37020 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37021 a locale dependent decimal point, rather than always '.'.
37023 2007-03-09 Eric Blake <ebb9@byu.net>
37025 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37026 spite of platforms like Tandem/NSK that define it to -1.
37028 2007-03-08 Bruno Haible <bruno@clisp.org>
37030 * modules/vprintf-posix-tests: New file.
37031 * tests/test-vprintf-posix.sh: New file.
37032 * tests/test-vprintf-posix.c: New file.
37033 * tests/test-printf-posix.h: New file.
37035 * modules/vprintf-posix: New file.
37036 * lib/vprintf.c: New file.
37037 * m4/vprintf-posix.m4: New file.
37038 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37040 * lib/stdio_.h (vprintf): New declaration.
37041 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37044 2007-03-08 Bruno Haible <bruno@clisp.org>
37046 * modules/fprintf-posix-tests: New file.
37047 * tests/test-fprintf-posix.sh: New file.
37048 * tests/test-fprintf-posix.c: New file.
37050 * modules/fprintf-posix: New file.
37051 * lib/fprintf.c: New file.
37052 * m4/fprintf-posix.m4: New file.
37053 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37055 * lib/stdio_.h (fprintf): New declaration.
37056 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37059 2007-03-08 Bruno Haible <bruno@clisp.org>
37061 * modules/vfprintf-posix-tests: New file.
37062 * tests/test-vfprintf-posix.sh: New file.
37063 * tests/test-vfprintf-posix.c: New file.
37064 * tests/test-fprintf-posix.h: New file.
37065 * tests/test-fprintf-posix.out: New file.
37067 * modules/vfprintf-posix: New file.
37068 * lib/vfprintf.c: New file.
37069 * m4/vfprintf-posix.m4: New file.
37070 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37072 * lib/stdio_.h (vfprintf): New declaration.
37073 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37076 2007-03-08 Bruno Haible <bruno@clisp.org>
37078 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37080 2007-03-08 Bruno Haible <bruno@clisp.org>
37082 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37083 instead of 'expr' invocations.
37084 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37085 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37086 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37087 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37088 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37089 Suggested by Paul Eggert.
37091 2007-03-08 Bruno Haible <bruno@clisp.org>
37093 * modules/fseterr-tests: New file.
37094 * tests/test-fseterr.c: New file.
37096 * modules/fseterr: New file.
37097 * lib/fseterr.h: New file.
37098 * lib/fseterr.c: New file.
37100 2007-03-08 Bruno Haible <bruno@clisp.org>
37102 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37103 * lib/getopt_.h: Likewise.
37104 * lib/mbswidth.h: Likewise.
37105 * lib/setenv.h: Likewise.
37106 * lib/vasnprintf.h: Likewise.
37107 * lib/vasprintf.h: Likewise.
37108 * lib/verror.h: Likewise.
37109 * lib/xsetenv.h: Likewise.
37110 * lib/xvasprintf.h: Likewise.
37112 2007-03-08 Jim Meyering <jim@meyering.net>
37114 * users.txt: Add parted.
37116 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37118 2007-03-07 Bruno Haible <bruno@clisp.org>
37120 * m4/printf.m4: Make the shell script snippets copy&pastable.
37122 2007-03-02 Bruno Haible <bruno@clisp.org>
37124 * lib/netinet_in_.h: New file.
37125 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37126 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37127 * modules/netinet_in (Files): Add lib/netinet_in_.h.
37128 (Depends-on): Add absolute-header.
37129 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37132 2007-03-03 Bruno Haible <bruno@clisp.org>
37134 * lib/sys_select_.h: New file.
37135 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37136 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37137 * modules/sys_select (Files): Add lib/sys_select_.h.
37138 (Depends-on): Add absolute-header.
37139 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37142 2007-03-02 Bruno Haible <bruno@clisp.org>
37144 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37145 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37147 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37148 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37149 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37150 * modules/sys_socket (Depends-on): Add absolute-header.
37151 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37152 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37153 (Include): Remove requirement of inclusion of <sys/types.h>.
37155 2007-03-02 Bruno Haible <bruno@clisp.org>
37157 * lib/byteswap_.h (bswap_32): Fix formula.
37159 2007-03-06 Bruno Haible <bruno@clisp.org>
37161 * modules/sprintf-posix-tests: New file.
37162 * tests/test-sprintf-posix.c: New file.
37164 * modules/sprintf-posix: New file.
37165 * lib/sprintf.c: New file.
37166 * m4/sprintf-posix.m4: New file.
37167 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37169 * lib/stdio_.h (sprintf): New declaration.
37170 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37173 2007-03-06 Bruno Haible <bruno@clisp.org>
37175 * modules/vsprintf-posix-tests: New file.
37176 * tests/test-vsprintf-posix.c: New file.
37177 * tests/test-sprintf-posix.h: New file.
37179 * modules/vsprintf-posix: New file.
37180 * lib/vsprintf.c: New file.
37181 * m4/vsprintf-posix.m4: New file.
37182 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37184 * lib/stdio_.h (vsprintf): New declaration.
37185 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37188 2007-03-06 Bruno Haible <bruno@clisp.org>
37190 * modules/vsnprintf (Depend-on): Remove minmax.
37192 2007-03-06 Bruno Haible <bruno@clisp.org>
37194 * modules/snprintf-posix-tests: New file.
37195 * tests/test-snprintf-posix.c: New file.
37197 * modules/snprintf-posix: New file.
37198 * m4/snprintf-posix.m4: New file.
37199 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37201 (gl_FUNC_SNPRINTF): Invoke it.
37202 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37203 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37205 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37207 2007-03-06 Bruno Haible <bruno@clisp.org>
37209 * modules/vsnprintf-posix-tests: New file.
37210 * tests/test-vsnprintf-posix.c: New file.
37211 * tests/test-snprintf-posix.h: New file.
37213 * modules/vsnprintf-posix: New file.
37214 * m4/vsnprintf-posix.m4: New file.
37215 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37217 (gl_FUNC_VSNPRINTF): Invoke it.
37218 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37219 * lib/stdio_.h (vsnprintf): Define as a replacement if
37220 REPLACE_VSNPRINTF is set.
37221 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37223 2007-03-06 Bruno Haible <bruno@clisp.org>
37225 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37226 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37228 2007-03-06 Bruno Haible <bruno@clisp.org>
37230 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37231 (asinl): Declare also if HAVE_DECL_ASINL is set.
37232 (atanl): Declare also if HAVE_DECL_ATANL is set.
37233 (ceill): Declare also if HAVE_DECL_CEILL is set.
37234 (cosl): Declare also if HAVE_DECL_COSL is set.
37235 (expl): Declare also if HAVE_DECL_EXPL is set.
37236 (floorl): Declare also if HAVE_DECL_FLOORL is set.
37237 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37238 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37239 (logl): Declare also if HAVE_DECL_LOGL is set.
37240 (sinl): Declare also if HAVE_DECL_SINL is set.
37241 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37242 (tanl): Declare also if HAVE_DECL_TANL is set.
37243 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37244 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37245 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37246 declaration of frexpl, ldexpl.
37247 * modules/printf-frexpl (Depends-on): Add math.
37248 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37250 2007-03-05 Bruno Haible <bruno@clisp.org>
37252 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37253 frexpl and ldexpl are declared.
37254 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37256 2007-03-05 Bruno Haible <bruno@clisp.org>
37258 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37259 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37261 2007-03-05 Bruno Haible <bruno@clisp.org>
37263 * lib/stdio_.h: Include <stddef.h>.
37265 2007-03-05 Bruno Haible <bruno@clisp.org>
37267 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37269 2007-03-05 Bruno Haible <bruno@clisp.org>
37271 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37272 NetBSD 4, from Ralf Wildenhues.
37274 2007-03-04 Bruno Haible <bruno@clisp.org>
37276 * lib/vasprintf.h: Update #if logic for the case when the functions
37277 exist but are overridden.
37279 2007-03-04 Bruno Haible <bruno@clisp.org>
37281 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37282 implementations: glibc-2.4 and MacOS X 10.3.
37283 * tests/test-vasnprintf-posix.c (test_function): Test also the case
37284 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37285 * tests/test-vasprintf-posix.c (test_function): Likewise.
37287 2007-03-04 Bruno Haible <bruno@clisp.org>
37289 * modules/vasprintf-posix-tests: New file.
37290 * tests/test-vasprintf-posix.c: New file.
37292 * modules/vasprintf-posix: New file.
37293 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37295 * m4/vasprintf-posix.m4: New file.
37296 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37298 (gl_FUNC_VASPRINTF): Invoke it.
37299 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37301 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37303 2007-03-04 Bruno Haible <bruno@clisp.org>
37305 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37306 REPLACE_GETTIMEOFDAY.
37307 * modules/sys_time (Makefile.am): Likewise.
37308 * m4/sys_time_h.m4: Likewise.
37309 * m4/gettimeofday.m4: Likewise.
37311 2007-03-04 Bruno Haible <bruno@clisp.org>
37313 * modules/vasnprintf-posix-tests: New file.
37314 * tests/test-vasnprintf-posix.c: New file.
37316 * modules/vasnprintf-posix: New file.
37317 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37319 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37320 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37321 REPLACE_VASNPRINTF is defined.
37322 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37323 gl_FUNC_VASNPRINTF.
37324 (gl_FUNC_VASNPRINTF): Invoke it.
37325 * m4/vasnprintf-posix.m4: New file.
37326 * m4/printf.m4: New file.
37328 2007-03-04 Bruno Haible <bruno@clisp.org>
37330 Compile progreloc.c only if --enable-relocatable is specified.
37331 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37332 if --enable-relocatable was specified.
37333 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37336 2007-03-04 Jim Meyering <jim@meyering.net>
37338 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37339 Use it consistently, rather than enumerating errno constants.
37341 2007-03-04 Bruno Haible <bruno@clisp.org>
37343 * modules/xvasprintf-tests: New file.
37344 * tests/test-xvasprintf.c: New file.
37346 * modules/vasprintf-tests: New file.
37347 * tests/test-vasprintf.c: New file.
37349 * modules/vasnprintf-tests: New file.
37350 * tests/test-vasnprintf.c: New file.
37352 * modules/vsnprintf-tests: New file.
37353 * tests/test-vsnprintf.c: New file.
37355 * modules/snprintf-tests: New file.
37356 * tests/test-snprintf.c: New file.
37358 2007-03-04 Bruno Haible <bruno@clisp.org>
37360 Compile relocatable.c only if --enable-relocatable is specified.
37361 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37362 gl_RELOCATABLE_LIBRARY.
37363 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37364 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37365 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37366 gl_RELOCATABLE_LIBRARY.
37367 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37368 (Makefile.am): Remove lib_SOURCES.
37369 * modules/relocatable-lib-lgpl (configure.ac): Invoke
37370 gl_RELOCATABLE_LIBRARY.
37371 (Makefile.am): Remove lib_SOURCES.
37372 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37374 * modules/relocatable-prog-wrapper (configure.ac): Invoke
37375 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37377 2007-03-04 Bruno Haible <bruno@clisp.org>
37379 * modules/argmatch-tests: New file.
37380 * tests/test-argmatch.c: New file.
37382 * tests/test-allocsa.c (main): Halve the number of loop runs.
37384 * modules/alloca-opt-tests: New file.
37385 * tests/test-alloca-opt.c: New file.
37387 2007-03-04 Jim Meyering <jim@meyering.net>
37389 Work around difference between Linux ACLs and Solaris 10 ZFS.
37390 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37393 2007-03-03 Bruno Haible <bruno@clisp.org>
37395 * modules/relocatable-prog (Depends-on): Add back progreloc's
37396 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37398 2007-03-03 Bruno Haible <bruno@clisp.org>
37400 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37401 * modules/relocatable-lib: New file.
37403 2007-03-03 Bruno Haible <bruno@clisp.org>
37405 * modules/relocatable-prog: Renamed from modules/relocatable.
37406 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37408 2007-03-03 Bruno Haible <bruno@clisp.org>
37410 * modules/relocatable-script (Files): Add doc/relocatable.texi,
37411 m4/relocatable-lib.m4.
37412 (Depends-on): Remove 'relocatable'.
37413 (configure.ac): Add gl_RELOCATABLE_NOP.
37415 2007-03-03 Bruno Haible <bruno@clisp.org>
37417 * modules/relocatable-prog-wrapper: New file.
37418 * modules/relocatable (Depends-on): Add it. Remove all other
37419 dependencies except progname.
37420 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37422 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37423 (gl_FUNC_STRERROR): Nop.
37424 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37426 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37427 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37429 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37430 (gl_FUNC_READLINK): Update.
37432 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37434 2007-03-03 Bruno Haible <bruno@clisp.org>
37436 * lib/xreadlink.c: Include <unistd.h> unconditionally.
37437 * modules/xreadlink (Depends-on): Add unistd.
37438 * modules/xreadlink-with-size (Depends-on): Likewise.
37440 2007-03-03 Bruno Haible <bruno@clisp.org>
37442 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37443 extracted from gt_FUNC_SETENV.
37444 (gt_FUNC_SETENV): Remove macro.
37445 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37446 remove gt_FUNC_SETENV.
37448 2007-03-03 Bruno Haible <bruno@clisp.org>
37450 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37451 ENABLE_RELOCATABLE here.
37452 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37454 2007-03-03 Bruno Haible <bruno@clisp.org>
37456 * modules/rbtreehash-list-tests (Depends-on): Add progname.
37457 * tests/test-rbtreehash_list.c: Include progname.h.
37458 (main): Call set_program_name.
37460 * modules/rbtree-oset-tests (Depends-on): Add progname.
37461 * tests/test-rbtree_oset.c: Include progname.h.
37462 (main): Call set_program_name.
37464 * modules/rbtree-list-tests (Depends-on): Add progname.
37465 * tests/test-rbtree_list.c: Include progname.h.
37466 (main): Call set_program_name.
37468 * modules/linked-list-tests (Depends-on): Add progname.
37469 * tests/test-linked_list.c: Include progname.h.
37470 (main): Call set_program_name.
37472 2007-03-03 Bruno Haible <bruno@clisp.org>
37474 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37475 All uses of __restrict changed to _Restrict_.
37476 * lib/glob_.h (__restrict): Remove macro.
37478 2007-03-02 Bruno Haible <bruno@clisp.org>
37480 * modules/gettext (configure.ac): Require gettext infrastructure
37481 from version 0.16.1.
37483 2007-03-02 Bruno Haible <bruno@clisp.org>
37485 * modules/linkedhash-list-tests (Depends-on): Add progname.
37486 * tests/test-linkedhash_list.c: Include progname.h.
37487 (main): Call set_program_name.
37489 * modules/carray-list-tests (Depends-on): Add progname.
37490 * tests/test-carray_list.c: Include progname.h.
37491 (main): Call set_program_name.
37493 * modules/avltreehash-list-tests (Depends-on): Add progname.
37494 * tests/test-avltreehash_list.c: Include progname.h.
37495 (main): Call set_program_name.
37497 * modules/avltree-oset-tests (Depends-on): Add progname.
37498 * tests/test-avltree_oset.c: Include progname.h.
37499 (main): Call set_program_name.
37501 * modules/avltree-list-tests (Depends-on): Add progname.
37502 * tests/test-avltree_list.c: Include progname.h.
37503 (main): Call set_program_name.
37505 * modules/array-oset-tests (Depends-on): Add progname.
37506 * tests/test-array_oset.c: Include progname.h.
37507 (main): Call set_program_name.
37509 * modules/array-list-tests (Depends-on): Add progname.
37510 * tests/test-array_list.c: Include progname.h.
37511 (main): Call set_program_name.
37513 * modules/argp-tests (Depends-on): Add progname.
37514 * tests/test-argp.c: Include argp.h first. Include progname.h.
37515 (main): Call set_program_name.
37517 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
37519 * doc/gnulib-tool.texi (Initial import): Reword description of
37520 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37521 limited effect even if defined after the first system include.
37523 2007-03-01 Bruno Haible <bruno@clisp.org>
37525 * build-aux/config.libpath: Update to libtool-1.5.22.
37526 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37528 2007-03-01 Bruno Haible <bruno@clisp.org>
37530 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37532 Reported by Ralf Wildenhues.
37534 2007-03-01 Bruno Haible <bruno@clisp.org>
37536 * build-aux/install-reloc: Remove object files left over by some
37538 Reported by Ralf Wildenhues.
37540 2007-03-01 Bruno Haible <bruno@clisp.org>
37542 * build-aux/install-reloc: Break long lines.
37544 2007-03-01 Bruno Haible <bruno@clisp.org>
37546 * doc/relocatable.texi: Document that it may not work on OpenBSD.
37547 Reported by Ralf Wildenhues.
37549 2007-03-01 Bruno Haible <bruno@clisp.org>
37551 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37552 include ordering constraints.
37554 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
37556 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37557 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37558 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37559 as another example.
37560 * lib/time_.h: Fix misspelling.
37561 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37562 Require gl_HEADER_TIME_H_DEFAULTS.
37563 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37564 * m4/time_r.m4 (gl_TIME_R): Likewise.
37565 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37567 2007-03-01 Bruno Haible <bruno@clisp.org>
37569 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37570 * m4/utimens.m4 (gl_UTIMENS): Likewise.
37572 2007-03-01 Jim Meyering <jim@meyering.net>
37574 * modules/xreadlink (Maintainer): Add my name.
37575 * modules/xreadlink-with-size (Depends-on): Alphabetize.
37577 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
37578 Bruno Haible <bruno@clisp.org>
37580 * build-aux/install-reloc: Compile also c-ctype.c.
37581 * build-aux/relocatable.sh.in: New file.
37582 * doc/relocatable.texi: New file.
37583 * doc/relocatable-maint.texi: New file.
37584 * doc/gnulib.texi: Include relocatable-maint.texi.
37585 * lib/progreloc.c: Include unistd.h unconditionally.
37586 * lib/relocwrapper.c: Include unistd.h unconditionally.
37588 (add_dotbin): Use c_tolower.
37589 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37590 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37591 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37592 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37593 to m4/relocatable-lib.m4.
37594 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37595 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37596 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37597 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37598 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37599 * modules/relocatable: New file.
37600 * modules/relocatable-lib: New file.
37601 * modules/relocatable-script: New file.
37603 2007-02-28 Bruno Haible <bruno@clisp.org>
37605 Import --enable-relocatable infrastructure.
37606 * build-aux/config.libpath: New file, from GNU gettext.
37607 * build-aux/install-reloc: New file, from GNU gettext.
37608 * build-aux/reloc-ldflags: New file, from GNU gettext.
37609 * lib/relocatable.h: New file, from GNU gettext.
37610 * lib/relocatable.c: New file, from GNU gettext.
37611 * lib/relocwrapper.c: New file, from GNU gettext.
37612 * m4/relocatable.m4: New file, from GNU gettext.
37614 2007-02-28 Bruno Haible <bruno@clisp.org>
37616 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37618 * modules/xreadlink: New file, from GNU gettext with modifications.
37619 * lib/xreadlink.c: New file, from GNU gettext.
37620 * lib/xreadlink.h: Add comments.
37621 (xreadlink): New declaration.
37623 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37624 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37625 lib/xreadlink-with-size.c.
37626 (configure.ac): Remove gl_XREADLINK invocation.
37627 (Makefile.am): Augment lib_SOURCES.
37628 * m4/xreadlink.m4: Remove file.
37629 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37630 (xreadlink_with_size): Renamed from xreadink.
37631 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37632 * modules/canonicalize (Depends-on): Replace xreadlink with
37633 xreadlink-with-size.
37634 * lib/canonicalize.c (canonicalize_filename_mode): Update.
37636 2007-02-25 Jim Meyering <jim@meyering.net>
37638 * build-aux/announce-gen: When complaining about excess arguments,
37641 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
37643 * README: Document signed integer overflow situation more
37646 2007-02-25 Bruno Haible <bruno@clisp.org>
37648 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37649 'a' or 'A' conversion.
37651 2007-02-25 Bruno Haible <bruno@clisp.org>
37653 * modules/filename: Renamed from modules/pathname.
37654 (Files): Replace lib/pathname.h with lib/filename.h. Replace
37655 lib/concatpath.c with lib/concat-filename.c.
37656 (Makefile.am): Update.
37657 (Include): Replace pathname.h with filename.h.
37658 * lib/filename.h: Renamed from lib/pathname.h.
37659 (concatenated_filename): Renamed from concatenated_pathname.
37660 * lib/concat-filename.c: Renamed from lib/concatpath.c.
37661 (concatenated_filename): Renamed from concatenated_pathname.
37662 * lib/findprog.c: Include filename.h instead of pathname.h.
37663 (find_in_path): Update.
37664 * lib/javacomp.c: Include filename.h instead of pathname.h.
37665 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37666 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37667 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37668 is_oldgcj_14_13_usable, is_javac_usable): Update.
37669 * lib/javaexec.c: Include filename.h instead of pathname.h.
37670 (execute_java_class): Update.
37671 * modules/findprog: Update.
37672 * modules/javacomp: Update.
37673 * modules/javaexec: Update.
37674 * MODULES.html.sh (File system functions): Add 'filename', remove
37677 2007-02-25 Bruno Haible <bruno@clisp.org>
37679 * modules/printf-frexpl-tests: New file.
37680 * tests/test-printf-frexpl.c: New file.
37682 * modules/printf-frexpl: New file.
37683 * lib/printf-frexpl.h: New file.
37684 * lib/printf-frexpl.c: New file.
37685 * m4/printf-frexpl.m4: New file.
37687 2007-02-25 Bruno Haible <bruno@clisp.org>
37689 * modules/printf-frexp-tests: New file.
37690 * tests/test-printf-frexp.c: New file.
37692 * modules/printf-frexp: New file.
37693 * lib/printf-frexp.h: New file.
37694 * lib/printf-frexp.c: New file.
37695 * m4/printf-frexp.m4: New file.
37697 2007-02-25 Bruno Haible <bruno@clisp.org>
37699 Assume automake >= 1.10 for the tests.
37700 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37701 * modules/arctwo-tests: Likewise.
37702 * modules/argp-tests: Likewise.
37703 * modules/avltree-list-tests: Likewise.
37704 * modules/avltree-oset-tests: Likewise.
37705 * modules/avltreehash-list-tests: Likewise.
37706 * modules/carray-list-tests: Likewise.
37707 * modules/crc-tests: Likewise.
37708 * modules/des-tests: Likewise.
37709 * modules/gc-arcfour-tests: Likewise.
37710 * modules/gc-arctwo-tests: Likewise.
37711 * modules/gc-des-tests: Likewise.
37712 * modules/gc-hmac-md5-tests: Likewise.
37713 * modules/gc-hmac-sha1-tests: Likewise.
37714 * modules/gc-md2-tests: Likewise.
37715 * modules/gc-md4-tests: Likewise.
37716 * modules/gc-md5-tests: Likewise.
37717 * modules/gc-pbkdf2-sha1-tests: Likewise.
37718 * modules/gc-rijndael-tests: Likewise.
37719 * modules/gc-sha1-tests: Likewise.
37720 * modules/gc-tests: Likewise.
37721 * modules/getaddrinfo-tests: Likewise.
37722 * modules/hmac-md5-tests: Likewise.
37723 * modules/hmac-sha1-tests: Likewise.
37724 * modules/linked-list-tests: Likewise.
37725 * modules/linkedhash-list-tests: Likewise.
37726 * modules/lock-tests: Likewise.
37727 * modules/md2-tests: Likewise.
37728 * modules/md4-tests: Likewise.
37729 * modules/md5-tests: Likewise.
37730 * modules/rbtree-list-tests: Likewise.
37731 * modules/rbtree-oset-tests: Likewise.
37732 * modules/rbtreehash-list-tests: Likewise.
37733 * modules/read-file-tests: Likewise.
37734 * modules/rijndael-tests: Likewise.
37735 * modules/stdint-tests: Likewise.
37736 * modules/tls-tests: Likewise.
37738 2007-02-24 Bruno Haible <bruno@clisp.org>
37740 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37741 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37742 function; instead check whether isnan with a double argument links.
37743 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37744 function; instead check whether isnan with a 'long double' argument
37746 Reported by Eric Blake <ebb9@byu.net>.
37748 2007-02-24 Bruno Haible <bruno@clisp.org>
37750 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37752 * lib/isnanl.c: Remove all code. Just include isnan.c.
37753 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37755 2007-02-25 Jim Meyering <jim@meyering.net>
37757 Avoid conflicting types for 'unsetenv' on FreeBSD.
37758 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37759 conflicting with FreeBSD's (5.0 and 6.1) function declaration
37762 2007-02-24 Bruno Haible <bruno@clisp.org>
37764 * modules/isnanl-nolibm-tests: New file.
37765 * tests/test-isnanl.c: New file.
37767 * modules/isnanl-nolibm: New file.
37768 * lib/isnanl.h: New file.
37769 * lib/isnanl.c: New file.
37770 * m4/isnanl.m4: New file.
37772 2007-02-24 Bruno Haible <bruno@clisp.org>
37774 * modules/isnan-nolibm-tests: New file.
37775 * tests/test-isnan.c: New file.
37777 * modules/isnan-nolibm: New file.
37778 * lib/isnan.h: New file.
37779 * lib/isnan.c: New file.
37780 * m4/isnan.m4: New file.
37782 2007-02-24 Bruno Haible <bruno@clisp.org>
37784 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37785 assume that an exponent fits in 20 bits.
37787 2007-02-24 Jim Meyering <jim@meyering.net>
37789 * m4/regex.m4: Update the description of the configure-time option,
37790 --without-included-regex, to state accurately what the defaults are,
37791 and perhaps to give people an idea why using this option is risky.
37793 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
37795 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37796 loops on small arguments. This attempts to avoid the problem
37797 Bruno Haible reported for AIX 4.3.2 in
37798 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37800 2007-02-23 Bruno Haible <bruno@clisp.org>
37802 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37803 Needed for help2man.
37805 2007-02-23 Karl Berry <karl@gnu.org>
37807 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37808 exists, foo.h should be cvs-ignored, not committed.
37810 2007-02-23 Eric Blake <ebb9@byu.net>
37812 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
37813 * lib/stat-time.h (includes): Likewise.
37814 * lib/utimecmp.c (includes): Likewise.
37815 * lib/utimens.h (includes): Likewise.
37816 * lib/getdate.y (includes): Also include "timespec.h" for use
37817 internal to the module.
37818 * modules/utimens (Depends-on): Revert yesterday's patch.
37819 * modules/nanosleep (Depends-on): Add missing dependency.
37821 2007-02-22 Bruno Haible <bruno@clisp.org>
37823 * lib/glob.c: Don't include getlogin_r.h.
37825 2007-02-22 Jim Meyering <jim@meyering.net>
37827 * modules/utimens (Depends-on): Add timespec, required for
37828 utimens.h's inclusion of timespec.h.
37830 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
37832 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37833 long unreadable paths in GNU/Linux. Problem reported by Andreas
37835 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37836 I'll try to think of a better way to fix the Solaris problem.
37838 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37839 like glibc; on Solaris 10, it fails with errno == EINVAL.
37840 POSIX says the behavior is unspecified if the first argument is NULL,
37841 so play it safe and never pass NULL to the system getcwd.
37843 2007-02-21 Jim Meyering <jim@meyering.net>
37845 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37846 of gettimeofday. It would conflict with the one now always
37847 provided via sys_time_.h. Reported by Matthew Woehlke, as
37848 an IRIX 6.5 build failure.
37850 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
37852 Minor fixups to port to Solaris 10 with Sun C 5.8.
37853 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37854 * modules/getcwd (Depends-on): Add dirfd.
37855 * lib/putenv.c (putenv): #undef it.
37856 (rpl_putenv): New decl.
37857 (malloc, free): Include <stdlib.h> rather than prototyping separately.
37859 2007-02-20 Bruno Haible <bruno@clisp.org>
37861 * modules/stdio-tests: New file.
37862 * tests/test-stdio.c: New file.
37864 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37865 (Depends-on): Add stdio.
37866 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37867 (Include): Use <stdio.h> instead of vsnprintf.h.
37868 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37869 HAVE_DECL_VSNPRINTF.
37870 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37872 * modules/snprintf (Files): Remove lib/snprintf.h.
37873 (Depends-on): Add stdio.
37874 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37875 (Include): Use <stdio.h> instead of snprintf.h.
37876 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37877 HAVE_DECL_SNPRINTF.
37878 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37879 * lib/getaddrinfo.c: Likewise.
37881 * modules/stdio: New file.
37882 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37883 * lib/snprintf.h: Remove file.
37884 * lib/vsnprintf.h: Remove file.
37885 * lib/.cppi-disable: Remove snprintf.h.
37886 * m4/stdio_h.m4: New file.
37887 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37889 2007-02-20 Jim Meyering <jim@meyering.net>
37891 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37892 used by e.g., mingw. From Bruno Haible.
37894 2007-02-19 Bruno Haible <bruno@clisp.org>
37896 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37898 Reported by Ben Pfaff <blp@cs.stanford.edu>.
37900 2007-02-19 Bruno Haible <bruno@clisp.org>
37902 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37905 2007-02-19 Bruno Haible <bruno@clisp.org>
37907 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37909 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37911 2007-02-19 Jim Meyering <jim@meyering.net>
37913 Don't use FD after a successful "fdopendir (fd)".
37914 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37915 Reset it by calling dirfd on the just-obtained DIR*.
37917 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37918 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37920 2007-02-18 Bruno Haible <bruno@clisp.org>
37922 * lib/readlink.c: Include <unistd.h>.
37923 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37925 * modules/readlink (Depends-on): Add unistd.
37926 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37927 (Include): Add <unistd.h>.
37929 * lib/getlogin_r.h: Remove file.
37930 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37931 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37932 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37933 HAVE_DECL_GETLOGIN_R.
37934 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37935 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37936 (Include): Use <unistd.h> instead of getlogin_r.h.
37938 * lib/getcwd.h: Remove file.
37939 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37940 * lib/xgetcwd.c: Likewise.
37941 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37942 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37943 * modules/getcwd (Files): Remove lib/getcwd.h.
37944 (Depends-on): Add unistd.
37945 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37946 (Include): Use <unistd.h> instad of getcwd.h.
37948 * lib/ftruncate.c: Include <unistd.h> first.
37949 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37950 Set HAVE_FTRUNCATE.
37951 * modules/ftruncate (Depends-on): Add unistd.
37952 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37954 * lib/fchdir.c: Include <unistd.h> first.
37955 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37956 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37957 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37958 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37959 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37961 * lib/dup2.c: Include <unistd.h> first.
37962 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37964 * modules/dup2 (Depends-on): Add unistd.
37965 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37967 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37968 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37969 REPLACE_CHOWN. Don't define chown as a macro here.
37970 * modules/chown (Depends-on): Add unistd.
37971 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37973 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37974 Add definition for GL_LINK_WARNING.
37975 (chown, dup2): New declarations.
37976 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37978 (ftruncate): New declaration.
37979 (getcwd): New declaration, taken from old getcwd.h.
37980 (getlogin_r): New declaration, taken from old getlogin_r.h.
37981 (readlink): New declaration.
37982 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37983 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37984 (gl_PREREQ_UNISTD): Remove macro.
37985 (gl_UNISTD_MODULE_INDICATOR): New macro.
37986 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37987 many new variables. Don't set UNISTD_H.
37988 * modules/unistd (Description): Change.
37989 (Depends-on): Add link-warning.
37990 (configure.ac): Update.
37991 (Makefile.am): Create unistd.h always. Substitute many new variables
37994 2007-02-18 Bruno Haible <bruno@clisp.org>
37996 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37997 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37999 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38000 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38001 * lib/getsubopt.h: Remove file.
38002 * modules/getsubopt (Files): Remove lib/getsubopt.h.
38003 (Depends-on): Add stdlib.
38004 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38005 (Includes): Use <stdlib.h> instead of getsubopt.h.
38006 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38007 Set HAVE_GETSUBOPT.
38008 * lib/getsubopt.c: Don't include getsubopt.h.
38010 2007-02-18 Bruno Haible <bruno@clisp.org>
38012 * modules/fchdir (Depends-on): Add dup2.
38014 2007-02-18 Bruno Haible <bruno@clisp.org>
38016 * lib/stdlib_.h: Handle glibc's special invocation convention
38019 2007-02-18 Bruno Haible <bruno@clisp.org>
38021 * modules/stdlib-tests: New file.
38022 * tests/test-stdlib.c: New file.
38024 * modules/mkstemp (Files): Remove lib/mkstemp.h.
38025 (Depends-on): Add stdlib.
38026 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38027 (Includes): Use <stdlib.h> instead of mkstemp.h.
38028 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38029 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38030 * lib/mkstemp.c: Don't include mkstemp.h.
38031 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38032 * lib/stdlib--.h: Don't include mkstemp.h.
38034 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38035 (Depends-on): Add stdlib.
38036 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38037 (Includes): Use <stdlib.h> instead of mkdtemp.h.
38038 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38040 * lib/mkdtemp.c: Don't include mkdtemp.h.
38041 * lib/clean-temp.c: Don't include mkdtemp.h.
38043 * modules/exit (Files): Remove lib/exit.h.
38044 (Depends-on): Add stdlib.
38045 (Makefile.am): Remove lib_SOURCES.
38046 (Include): Use <stdlib.h> instead of exit.h.
38047 * lib/argmatch.c: Don't include exit.h.
38048 * lib/execute.c: Likewise.
38049 * lib/pagealign_alloc.c: Likewise.
38050 * lib/pipe.c: Likewise.
38051 * lib/wait-process.c: Likewise.
38052 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38053 * lib/exitfail.c: Likewise.
38054 * lib/savewd.c: Likewise.
38055 * lib/xsetenv.c: Likewise.
38057 * modules/stdlib: New file.
38058 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38059 and extra comments about mkstemp().
38060 * lib/exit.h: Remove file.
38061 * lib/mkdtemp.h: Remove file.
38062 * lib/mkstemp.h: Remove file.
38063 * m4/stdlib_h.m4: New file.
38064 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38066 2007-02-18 Bruno Haible <bruno@clisp.org>
38068 * modules/math-tests: New file.
38069 * tests/test-math.c: New file.
38071 * modules/math: New file.
38072 * modules/mathl (Files): Remove lib/mathl.h.
38073 (Depends-on): Add math.
38074 (Makefile.am): Don't mention mathl.h.
38075 (Include): Use <math.h> instead of mathl.h.
38076 * lib/math_.h: New file.
38077 * lib/mathl.h: Remove file.
38078 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38080 * lib/asinl.c: Likewise.
38081 * lib/atanl.c: Likewise.
38082 * lib/ceill.c: Likewise.
38083 * lib/cosl.c: Likewise.
38084 * lib/expl.c: Likewise.
38085 * lib/floorl.c: Likewise.
38086 * lib/frexpl.c: Likewise.
38087 * lib/ldexpl.c: Likewise.
38088 * lib/logl.c: Likewise.
38089 * lib/sincosl.c: Likewise.
38090 * lib/sinl.c: Likewise.
38091 * lib/sqrtl.c: Likewise.
38092 * lib/tanl.c: Likewise.
38093 * lib/trigl.c: Likewise.
38094 * m4/math_h.m4: New file.
38095 * MODULES.html.sh (Mathematics): Add math.
38097 2007-02-17 Bruno Haible <bruno@clisp.org>
38099 * modules/wctype-tests: New file.
38100 * tests/test-wctype.c: New file.
38102 * modules/wchar-tests: New file.
38103 * tests/test-wchar.c: New file.
38105 * modules/unistd-tests: New file.
38106 * tests/test-unistd.c: New file.
38108 * modules/time-tests: New file.
38109 * tests/test-time.c: New file.
38111 * modules/sysexits-tests: New file.
38112 * tests/test-sysexits.c: New file.
38114 * modules/sys_time-tests: New file.
38115 * tests/test-sys_time.c: New file.
38117 * modules/sys_stat-tests: New file.
38118 * tests/test-sys_stat.c: New file.
38120 * modules/sys_socket-tests: New file.
38121 * tests/test-sys_socket.c: New file.
38123 * modules/sys_select-tests: New file.
38124 * tests/test-sys_select.c: New file.
38126 * modules/string-tests: New file.
38127 * tests/test-string.c: New file.
38129 * modules/stdbool-tests: New file.
38130 * tests/test-stdbool.c: New file.
38132 * modules/netinet_in-tests: New file.
38133 * tests/test-netinet_in.c: New file.
38135 * modules/inttypes-tests: New file.
38136 * tests/test-inttypes.c: New file.
38138 * modules/fcntl-tests: New file.
38139 * tests/test-fcntl.c: New file.
38141 * modules/byteswap-tests: New file.
38142 * tests/test-byteswap.c: New file.
38144 * modules/arpa_inet-tests: New file.
38145 * tests/test-arpa_inet.c: New file.
38147 2007-02-17 Bruno Haible <bruno@clisp.org>
38149 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38150 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38151 if the corresponding module is not enabled. Emit link warnings if
38152 the function is used nevertheless.
38153 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38154 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38155 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38156 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38157 * modules/inttypes (Depends-on): Add link-warning.
38158 (Makefile.am): Copy the contents of build-aux/link-warning.h into
38159 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38160 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38161 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38162 * modules/imaxdiv (configure.ac): Likewise.
38163 * modules/strtoimax (configure.ac): Likewise.
38164 * modules/strtoumax (configure.ac): Likewise.
38166 2007-02-17 Bruno Haible <bruno@clisp.org>
38168 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38169 gl_STRING_MODULE_INDICATOR_DEFAULTS.
38170 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38171 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38173 2007-02-17 Bruno Haible <bruno@clisp.org>
38175 * modules/link-warning: New file.
38176 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38177 * lib/string_.h (GL_LINK_WARNING): Remove definition.
38178 * modules/string (Depends-on): Add link-warning.
38179 (Makefile.am): Copy the contents of build-aux/link-warning.h into
38181 * MODULES.html.sh (Support for building libraries and executables): Add
38184 2007-02-17 Bruno Haible <bruno@clisp.org>
38186 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38187 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38188 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38191 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
38192 Bruno Haible <bruno@clisp.org>
38194 * modules/tmpfile: New file.
38195 * lib/tmpfile.c: New file.
38196 * m4/tmpfile.m4: New file.
38197 * MODULES.html.sh (func_all_modules): New section "Input/output".
38199 2007-02-15 Bruno Haible <bruno@clisp.org>
38201 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38202 (supports_delete_on_close): New function.
38203 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38205 2007-02-14 Bruno Haible <bruno@clisp.org>
38207 * modules/mbspcasecmp-tests: New file.
38208 * tests/test-mbspcasecmp.sh: New file.
38209 * tests/test-mbspcasecmp.c: New file.
38211 New module mbspcasecmp.
38212 * modules/mbspcasecmp: New file.
38213 * lib/mbspcasecmp.c: New file.
38214 * lib/string_.h (strncasecmp): Change warning message.
38215 (mbspcasecmp): New declaration.
38216 * m4/mbspcasecmp.m4: New file.
38217 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38218 GNULIB_MBSPCASECMP.
38219 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38220 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38222 2007-02-14 Bruno Haible <bruno@clisp.org>
38224 * modules/mbsncasecmp-tests: New file.
38225 * tests/test-mbsncasecmp.sh: New file.
38226 * tests/test-mbsncasecmp.c: New file.
38228 New module mbsncasecmp.
38229 * modules/mbsncasecmp: New file.
38230 * lib/mbsncasecmp.c: New file.
38231 * lib/string_.h (mbsncasecmp): New declaration.
38232 * m4/mbsncasecmp.m4: New file.
38233 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38234 GNULIB_MBSNCASECMP.
38235 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38236 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38238 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
38240 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38241 Verify that it doesn't overlap with our flags.
38242 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38243 do not have the desired effect in multibyte locales; instead, use
38245 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38246 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
38247 we don't require GNU fnmatch ourselves (if our users require it, they
38248 should do so explicitly).
38250 Fix regex code so it doesn't rely on strcasecmp.
38251 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38252 Otherwise, include gnulib's langinfo.h.
38253 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38254 undesirable behavior in non-C locales. Instead, rely on localecharset.
38255 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38256 * modules/regex (FILES): Remove m4/codeset.m4.
38257 (Depends-on): Add localcharset. Remove strcase.
38259 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38261 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38262 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38264 2007-02-13 Bruno Haible <bruno@clisp.org>
38266 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38267 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38269 2007-02-12 Bruno Haible <bruno@clisp.org>
38271 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38272 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38273 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38274 time warning rather than a link error.
38276 2007-02-12 Bruno Haible <bruno@clisp.org>
38278 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38279 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38280 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38282 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
38284 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38287 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
38289 New module 'time', so that apps can include <time.h> as per
38290 POSIX and GNU instead of separate include files like time_r.h
38291 and timegm.h. This implementation tries out a simpler approach
38292 for replacing decls in standard include files (as compared to
38293 the string module), somewhat as an experiment.
38295 * config/srclist.txt: Comment out mktime.c for now.
38296 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38297 since it doesn't apply any more. Use generic wording instead.
38298 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38300 * lib/time_.h, m4/time_h.m4, modules/time: New files.
38301 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38302 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38303 Don't include <sys/types.h>; no longer needed since we assume C89.
38304 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38305 * lib/strftime.c: Likewise.
38306 * lib/time_r.c: Likewise.
38307 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38308 * lib/nanosleep.c: Include <time.h> first, to check interface.
38309 * lib/strptime.c: Likewise.
38310 * lib/time_r.c: Likewise.
38311 * lib/timegm.c: Likewise.
38312 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38314 * lib/timegm.c: Don't include timegm.h; no longer needed.
38315 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38316 time.h now handles any problems in that area.
38317 (struct timespec, nanosleep): Remove; time.h now arranges for these.
38318 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38319 that time.h defines struct timespec.
38320 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38321 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
38323 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38324 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38325 needed. Set REPLACE_LOCALTIME.
38326 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38327 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38328 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38329 nanosleep; time_h.m4 now does that. Don't require
38330 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38331 module handles this now.
38332 * modules/getdate (Depends-on): Remove timespec. Add time.
38333 * modules/nanosleep (Depends-on): Likewise.
38334 * modules/stat-time (Depends-on): Likewise.
38335 * modules/nanosleep (Include): Include time.h, not timespec.h.
38336 * modules/strptime (Files): Remove lib/strptime.h.
38337 (Depends-on): Add extensions, time.
38338 (Include): Include time.h, not strptime.h.
38339 * modules/time_r (Files): Remove lib/time_r.h.
38340 (Depends-on): Add time.
38341 (Include): Include time.h, not time_r.h.
38342 * modules/timegm: Likewise.
38343 * modules/timespec (Description): Now does timespec-related decls
38344 of our own, instead of struct timespec itself.
38345 (Depends-on): Add time; remove extensions.
38346 (Maintainer): Add self.
38347 * modules/utimecmp (Depends-on): Add time; remove timespec.
38348 * modules/utimens (Depends-on): Likewise.
38349 * modules/xnanosleep (Depends-on): Likewise.
38351 2007-02-11 Bruno Haible <bruno@clisp.org>
38353 * lib/c-strstr.c: Include allocsa.h.
38354 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38355 * lib/c-strcasestr.c: Include allocsa.h.
38356 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38357 * lib/strcasestr.c: Include allocsa.h.
38358 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38359 * lib/mbsstr.c: Include allocsa.h.
38360 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38361 allocsa/freesa instead of malloc/free.
38362 * lib/mbscasestr.c: Include allocsa.h.
38363 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38364 allocsa/freesa instead of malloc/free.
38365 * modules/c-strstr (Depends-on): Add allocsa.
38366 * modules/c-strcasestr (Depends-on): Likewise.
38367 * modules/strcasestr (Depends-on): Likewise.
38368 * modules/mbsstr (Depends-on): Likewise.
38369 * modules/mbscasestr (Depends-on): Likewise.
38371 2007-02-11 Bruno Haible <bruno@clisp.org>
38373 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38375 * modules/mbsspn-tests: New file.
38376 * tests/test-mbsspn.sh: New file.
38377 * tests/test-mbsspn.c: New file.
38379 2007-02-11 Bruno Haible <bruno@clisp.org>
38381 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38383 * modules/mbspbrk-tests: New file.
38384 * tests/test-mbspbrk.sh: New file.
38385 * tests/test-mbspbrk.c: New file.
38387 2007-02-11 Bruno Haible <bruno@clisp.org>
38389 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38392 * modules/mbscspn-tests: New file.
38393 * tests/test-mbscspn.sh: New file.
38394 * tests/test-mbscspn.c: New file.
38396 2007-02-11 Bruno Haible <bruno@clisp.org>
38398 * modules/mbscasecmp-tests: New file.
38399 * tests/test-mbscasecmp.sh: New file.
38400 * tests/test-mbscasecmp.c: New file.
38402 2007-02-11 Bruno Haible <bruno@clisp.org>
38404 Ensure O(n) worst-case complexity of mbscasestr.
38405 * lib/mbscasestr.c: Include stdbool.h.
38406 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38408 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38409 the bookkeeping indicates that it's worth it.
38410 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38412 * modules/mbscasestr-tests: New file.
38413 * tests/test-mbscasestr1.c: New file.
38414 * tests/test-mbscasestr2.sh: New file.
38415 * tests/test-mbscasestr2.c: New file.
38416 * tests/test-mbscasestr3.sh: New file.
38417 * tests/test-mbscasestr3.c: New file.
38418 * tests/test-mbscasestr4.sh: New file.
38419 * tests/test-mbscasestr4.c: New file.
38420 * m4/locale-tr.m4: New file.
38422 2007-02-11 Bruno Haible <bruno@clisp.org>
38424 Ensure O(n) worst-case complexity of mbsstr.
38425 * lib/mbsstr.c: Include stdbool.h.
38426 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38428 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38429 bookkeeping indicates that it's worth it.
38430 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38432 * modules/mbsstr-tests: New file.
38433 * tests/test-mbsstr1.c: New file.
38434 * tests/test-mbsstr2.sh: New file.
38435 * tests/test-mbsstr2.c: New file.
38436 * tests/test-mbsstr3.sh: New file.
38437 * tests/test-mbsstr3.c: New file.
38438 * m4/locale-fr.m4: New file.
38440 2007-02-11 Bruno Haible <bruno@clisp.org>
38442 * lib/mbsrchr.c (mbsrchr): Fix bug.
38444 * modules/mbsrchr-tests: New file.
38445 * tests/test-mbsrchr.sh: New file.
38446 * tests/test-mbsrchr.c: New file.
38448 2007-02-11 Bruno Haible <bruno@clisp.org>
38450 * lib/mbschr.c (mbschr): Fix bug.
38452 * modules/mbschr-tests: New file.
38453 * tests/test-mbschr.sh: New file.
38454 * tests/test-mbschr.c: New file.
38455 * m4/locale-zh.m4: New file.
38457 2007-02-11 Bruno Haible <bruno@clisp.org>
38459 Support for copying multibyte string iterators.
38460 * lib/mbiter.h: Include <string.h>.
38461 (mbiter_multi_copy): New function.
38462 (mbi_copy): New macro.
38463 * lib/mbuiter.h: Include <string.h>.
38464 (mbuiter_multi_copy): New function.
38465 (mbui_copy): New macro.
38467 2007-02-11 Bruno Haible <bruno@clisp.org>
38470 * modules/mbslen: New file.
38471 * lib/mbslen.c: New file.
38472 * lib/string_.h (mbslen): New declaration.
38473 * m4/mbslen.m4: New file.
38474 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38476 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38477 * MODULES.html.sh (Internationalization functions): Add mbslen.
38479 2007-02-11 Bruno Haible <bruno@clisp.org>
38481 Ensure O(n) worst-case complexity of strcasestr substitute.
38482 * lib/strcasestr.c: Include stdbool.h.
38483 (knuth_morris_pratt): New function.
38484 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38485 bookkeeping indicates that it's worth it.
38486 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38488 * modules/strcasestr-tests: New file.
38489 * tests/test-strcasestr.c: New file.
38491 2007-02-11 Bruno Haible <bruno@clisp.org>
38493 Ensure O(n) worst-case complexity of c_strcasestr.
38494 * lib/c-strcasestr.c: Include stdbool.h, string.h.
38495 (knuth_morris_pratt): New function.
38496 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38497 the bookkeeping indicates that it's worth it.
38498 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38500 * modules/c-strcasestr-tests: New file.
38501 * tests/test-c-strcasestr.c: New file.
38503 2007-02-11 Bruno Haible <bruno@clisp.org>
38505 Ensure O(n) worst-case complexity of c_strstr.
38506 * lib/c-strstr.c: Include stdbool.h, string.h.
38507 (knuth_morris_pratt): New function.
38508 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38509 bookkeeping indicates that it's worth it.
38510 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38512 * lib/c-strstr.c: Complete rewrite for maintainability.
38514 * modules/c-strstr-tests: New file.
38515 * tests/test-c-strstr.c: New file.
38517 2007-02-11 Bruno Haible <bruno@clisp.org>
38519 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38520 5.2.1 and earlier, whereby \055 was treated just like the range
38522 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38524 2007-02-08 Bruno Haible <bruno@clisp.org>
38526 * modules/regex (Depends-on): Add stdbool.
38527 Reported by Dalibor Topic <robilad@kaffe.org>.
38529 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
38531 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38532 Prefer returning from main to exiting from it.
38533 Remove unnecessary parens after sizeof.
38535 2007-02-05 Bruno Haible <bruno@clisp.org>
38538 * modules/mbssep: New file.
38539 * lib/mbssep.c: New file.
38540 * lib/string_.h (strsep): Add a conditional link warning.
38541 (mbssep): New declaration.
38542 * m4/mbssep.m4: New file.
38543 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38545 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38546 * MODULES.html.sh (Internationalization functions): Add mbssep.
38548 2007-02-05 Bruno Haible <bruno@clisp.org>
38550 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38551 Optimize search in case of 1 delimiter.
38553 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
38555 * lib/acl.h: Include sys/types.h before sys/acl.h.
38557 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
38559 Merge upstream fix for glibc bugzilla #3957:
38561 2007-02-05 Jakub Jelinek <jakub@redhat.com>
38563 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38564 bit for RE_HAT_LISTS_NOT_NEWLINE.
38565 (build_charclass_op): Remove bogus comment.
38567 2007-02-05 Simon Josefsson <simon@josefsson.org>
38569 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38571 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
38573 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38574 * lib/memmem.c [!defined _LIBC]: Include config.h.
38576 2007-02-04 Bruno Haible <bruno@clisp.org>
38578 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38581 2007-02-04 Bruno Haible <bruno@clisp.org>
38583 New module mbstok_r.
38584 * modules/mbstok_r: New file.
38585 * lib/mbstok_r.c: New file.
38586 * lib/string_.h (strtok_r): Change argument names to match the
38587 comments. Add a conditional link warning.
38588 (mbstok_r): New declaration.
38589 * m4/mbstok_r.m4: New file.
38590 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38592 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38593 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38595 2007-02-04 Bruno Haible <bruno@clisp.org>
38598 * modules/mbsspn: New file.
38599 * lib/mbsspn.c: New file.
38600 * lib/string_.h (strspn): Add a conditional link warning.
38601 (mbsspn): New declaration.
38602 * m4/mbsspn.m4: New file.
38603 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38605 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38606 * MODULES.html.sh (Internationalization functions): Add mbsspn.
38608 2007-02-04 Bruno Haible <bruno@clisp.org>
38610 New module mbspbrk.
38611 * modules/mbspbrk: New file.
38612 * lib/mbspbrk.c: New file.
38613 * lib/string_.h (strpbrk): Add a conditional link warning.
38614 (mbspbrk): New declaration.
38615 * m4/mbspbrk.m4: New file.
38616 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38618 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38619 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38621 2007-02-04 Bruno Haible <bruno@clisp.org>
38623 New module mbscspn.
38624 * modules/mbscspn: New file.
38625 * lib/mbscspn.c: New file.
38626 * lib/string_.h (strcspn): Add a conditional link warning.
38627 (mbscspn): New declaration.
38628 * m4/mbscspn.m4: New file.
38629 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38631 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38632 * MODULES.html.sh (Internationalization functions): Add mbscspn.
38634 2007-02-04 Bruno Haible <bruno@clisp.org>
38636 New module mbscasestr, reduced goal of strcasestr.
38637 * modules/mbscasestr: New file.
38638 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38639 (mbscasestr): Renamed from strcasestr.
38640 * lib/strcasestr.c: Don't include mbuiter.h.
38641 (strcasestr): Remove support for multibyte locales.
38642 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38643 Change the conditional link warning.
38644 (mbscasestr): New declaration.
38645 * m4/mbscasestr.m4: New file.
38646 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38647 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38648 REPLACE_STRCASESTR.
38649 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38650 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38651 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38652 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38653 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38654 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38655 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38656 (Depends-on): Remove mbuiter.
38657 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38659 2007-02-04 Bruno Haible <bruno@clisp.org>
38661 Simplify handling of strncasecmp.
38662 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38663 the conditional link warning.
38664 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38665 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38666 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38667 * modules/strcase (configure.ac): Don't invoke
38668 gl_STRING_MODULE_INDICATOR.
38669 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38671 2007-02-04 Bruno Haible <bruno@clisp.org>
38673 New module mbscasecmp, reduced goal of strcasecmp.
38674 * modules/mbscasecmp: New file.
38675 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38676 (mbscasecmp): Renamed from strcasecmp.
38677 * lib/strcasecmp.c: Don't include mbuiter.h.
38678 (strcasecmp): Remove support for multibyte locales.
38679 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38680 Change the conditional link warning.
38681 (mbscasecmp): New declaration.
38682 * m4/mbscasecmp.m4: New file.
38683 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38684 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38685 REPLACE_STRCASECMP.
38686 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38687 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38689 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38690 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38691 * modules/strcase (Files): Remove m4/mbrtowc.m4.
38692 (Depends-on): Remove mbuiter.
38693 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38695 2007-02-04 Bruno Haible <bruno@clisp.org>
38697 New module mbsstr. Remove module strstr.
38698 * modules/mbsstr: New file.
38699 * modules/strstr: Remove file.
38700 * lib/mbsstr.c: Renamed from lib/strstr.c.
38701 (mbsstr): Renamed from strstr.
38702 * lib/string_.h (strstr): Remove declaration. Change the conditional
38704 (mbsstr): New declaration.
38705 * m4/mbsstr.m4: New file.
38706 * m4/strstr.m4: Remove file.
38707 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38709 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38710 Don't initialize GNULIB_STRSTR.
38711 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38712 substitute GNULIB_STRSTR and REPLACE_STRSTR.
38713 * MODULES.html.sh (Internationalization functions): Add mbsstr.
38714 (Support for systems lacking ANSI C 89): Remove strstr.
38716 2007-02-04 Bruno Haible <bruno@clisp.org>
38718 New module mbsrchr.
38719 * modules/mbsrchr: New file.
38720 * lib/mbsrchr.c: New file.
38721 * lib/string_.h (strrchr): Add a conditional link warning.
38722 (mbsrchr): New declaration.
38723 * m4/mbsrchr.m4: New file.
38724 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38726 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38727 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38729 2007-02-04 Bruno Haible <bruno@clisp.org>
38732 * modules/mbschr: New file.
38733 * lib/mbschr.c: New file.
38734 * lib/string_.h (strchr): Add a conditional link warning.
38735 (mbschr): New declaration.
38736 * m4/mbschr.m4: New file.
38737 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38739 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38740 * MODULES.html.sh (Internationalization functions): Add mbschr.
38742 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
38744 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38746 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38748 2007-02-04 Bruno Haible <bruno@clisp.org>
38750 New module description section 'configure.ac-early'.
38751 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38752 (func_get_autoconf_early_snippet): New function.
38753 (func_import, func_create_testdir): Use it. Remove special cases for
38754 modules 'extensions' and 'lock'.
38755 * modules/extensions (configure.ac-early): Require
38756 gl_USE_SYSTEM_EXTENSIONS.
38757 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38759 2007-02-04 Bruno Haible <bruno@clisp.org>
38761 Make use of gcj-4.3's -fsource and -ftarget option.
38762 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38763 and if so try the options -fsource and -ftarget.
38764 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38765 source_version, ftarget_option, target_version arguments.
38766 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38767 (is_envjavac_oldgcj_14_14_usable): Renamed from
38768 is_envjavac_gcj_14_14_usable.
38769 (is_envjavac_oldgcj_14_13_usable): Renamed from
38770 is_envjavac_gcj_14_13_usable.
38771 (is_gcj_present): Update.
38772 (is_gcj_43, is_gcj43_usable): New functions.
38773 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38774 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38775 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38776 try the options -fsource and -ftarget.
38778 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
38780 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38781 checking code. Set N = ceil (1.5 * N) rather than to a slightly
38784 2007-02-03 Jim Meyering <jim@meyering.net>
38786 Give tools a better chance to allocate space for very large buffers.
38787 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38789 Make pwd and readlink work also when run with an unreadable parent dir
38790 on systems with openat support.
38791 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38792 provided getcwd function, even when we have openat support.
38793 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38795 2007-02-02 Bruno Haible <bruno@clisp.org>
38797 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38798 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38799 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38800 portability problems if one of these functions is only used on specific
38802 Reported by Paul Eggert.
38804 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
38806 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38807 is causing more trouble than it's curing.
38808 * lib/regex_internal.h (__mempcpy): Remove.
38809 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38810 (and make the code a tad smaller to boot).
38811 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38813 2007-02-02 Jim Meyering <jim@meyering.net>
38815 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38816 section, not in the Makefile.am: one.
38818 2007-02-02 Eric Blake <ebb9@byu.net>
38820 * lib/strchrnul.c: Always include config.h first.
38822 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38823 gnulib strstr is not necessary here.
38825 2007-02-02 Simon Josefsson <simon@josefsson.org>
38827 * m4/socklen.m4: Fix typo.
38829 2007-02-02 Eric Blake <ebb9@byu.net>
38831 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38832 * modules/netinet_in (Makefile.am): Likewise.
38834 2007-02-01 Bruno Haible <bruno@clisp.org>
38836 * lib/string_.h (GL_LINK_WARNING): New macro.
38837 (strcasecmp, strstr, strcasestr): If provided by the system,
38838 conditionally define as a macro that leads to a warning instead of to
38840 (strncasecmp): Conditionally define as a macro that leads to a warning.
38842 2007-02-01 Karl Berry <karl@gnu.org>
38844 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38846 2007-02-01 Bruno Haible <bruno@clisp.org>
38848 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38851 2007-02-01 Eric Blake <ebb9@byu.net>
38853 * modules/regex (Depends-on): Revert dependence on mempcpy.
38854 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38855 module's definition of mempcpy.
38856 Reported by Paul Eggert.
38858 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
38860 * lib/string_.h: If the gnulib module XYZ is not present, undefine
38861 the symbol XYZ before redefining it. This fixes a problem with
38862 programs that don't use XYZ, when compiled on systems that define
38863 XYZ to something else.
38865 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
38867 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38868 occurs when "mkdir -m foo" creates a setgid directory that is (1)
38869 writeable to group or other and (2) is intended to have a special
38870 mode bit that is set or cleared. In such a case, the directory
38871 should be neither group- nor other-writeable until the special
38872 mode bits are right.
38874 2007-01-31 Eric Blake <ebb9@byu.net>
38876 * modules/mountlist (Depends-on): Add strstr.
38878 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38880 * modules/string (Makefile.am): Remove redundant replacement.
38881 * modules/regex (Depends-on): Add mempcpy.
38883 2007-01-31 Bruno Haible <bruno@clisp.org>
38885 New module description field 'Link'.
38886 * gnulib-tool (func_usage): Document --extract-link-directive.
38887 (sed_extract_prog): Recognize 'Link' directive.
38888 (func_get_link_directive): New function.
38889 (func_import): Show summary of link directives.
38890 Handle --extract-link-directive option.
38891 * modules/acl (Link): New section.
38892 * modules/clock-time (Link): New section.
38893 * modules/euidaccess (Link): New section.
38894 * modules/gettext (Link): New section.
38895 * modules/iconv (Link): New section.
38896 * modules/lock (Link): New section.
38897 * modules/nanosleep (Link): New section.
38898 * modules/readline (Link): New section.
38900 2007-01-27 Bruno Haible <bruno@clisp.org>
38902 Enforce the use of gnulib modules for unportable <string.h> functions.
38903 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38904 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38905 (gl_HEADER_STRING_H_BODY): Require it.
38906 * lib/string_.h: If the gnulib module XYZ is not present, redefine
38907 the symbol XYZ to one that gives a link error.
38908 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38909 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38910 * modules/mempcpy (configure.ac): Likewise.
38911 * modules/memrchr (configure.ac): Likewise.
38912 * modules/stpcpy (configure.ac): Likewise.
38913 * modules/stpncpy (configure.ac): Likewise.
38914 * modules/strcase (configure.ac): Likewise.
38915 * modules/strcasestr (configure.ac): Likewise.
38916 * modules/strchrnul (configure.ac): Likewise.
38917 * modules/strdup (configure.ac): Likewise.
38918 * modules/strndup (configure.ac): Likewise.
38919 * modules/strnlen (configure.ac): Likewise.
38920 * modules/strpbrk (configure.ac): Likewise.
38921 * modules/strsep (configure.ac): Likewise.
38922 * modules/strstr (configure.ac): Likewise.
38923 * modules/strtok_r (configure.ac): Likewise.
38925 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
38927 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38929 2007-01-30 Jim Meyering <jim@meyering.net>
38931 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38933 2007-01-29 Bruno Haible <bruno@clisp.org>
38935 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38936 * lib/execute.c: Likewise.
38937 * lib/pipe.c: Likewise.
38938 * lib/printf-args.h: Likewise.
38939 * lib/printf-args.c: Likewise.
38940 * lib/printf-parse.c: Likewise.
38941 * lib/vasnprintf.c: Likewise.
38943 2007-01-29 Eric Blake <ebb9@byu.net>
38945 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38948 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
38950 * lib/strptime.h (strptime): Use 'restrict' for args where
38951 POSIX requires this.
38952 * lib/strptime.c (strptime): Likewise.
38953 Change license notice from LGPL to GPL, since gnulib-tool will
38954 change this as needed.
38955 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38957 Include "strptime.h" first, to check interface.
38958 Do not #undef _LIBC and _NL_CURRENT.
38959 Do not include <stdlib.h>; no longer needed.
38960 Include "time_r.h" and declare ptime_locale_status
38961 only if _LIBC is not defined.
38962 (__P): Remove unused macro.
38963 (match_string): Bring back glibc version, but use it only if _LIBC
38965 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38966 Remove unnecessary assertion and abort() call.
38967 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38968 * m4/strptime.m4: Fix serial number comment.
38969 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38970 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38971 (Depends-on): Add time_r.
38973 2007-01-29 Bruno Haible <bruno@clisp.org>
38975 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38977 * modules/strptime (Depends-on): Add stdbool.
38978 * lib/strptime.h: Include <time.h> always. Add comments.
38980 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
38982 * modules/strptime: New file.
38983 * lib/strptime.h: New file.
38984 * lib/strptime.c: New file.
38985 * m4/strptime.m4: New file.
38987 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
38989 * MODULES.html.sh: New module mpsort.
38990 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38992 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38993 a circularity problem with HP-UX ia64 reported by Bob Proulx in
38994 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38996 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38998 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39000 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39001 the parameter matches the prototype.
39003 2007-01-28 Jim Meyering <jim@meyering.net>
39005 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39006 sys/time.h here, reverting that part of the previous patch:
39007 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39009 2007-01-28 Bruno Haible <bruno@clisp.org>
39011 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39012 value of $(SYS_TIME_H).
39013 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39014 remove it conditionally, too. [added by Jim Meyering]
39015 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39016 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39017 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39018 GETTIMEOFDAY_REPLACEMENT to 1.
39020 2007-01-28 Bruno Haible <bruno@clisp.org>
39022 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39023 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39024 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39025 Set UNISTD_H instead of UNISTD_H2.
39026 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39028 2007-01-28 Bruno Haible <bruno@clisp.org>
39030 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39031 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39033 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39035 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39036 (func_create_testdir): Ensure C locale for `grep' and `tr'
39038 (func_create_megatestdir): Avoid one `grep'. Fix bug in
39039 ACLOCAL_AMFLAGS parsing state machine.
39041 2007-01-27 Bruno Haible <bruno@clisp.org>
39043 * modules/unistr/base: Update.
39045 2007-01-27 Bruno Haible <bruno@clisp.org>
39047 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39048 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39049 * modules/unistr/u32-mbtouc-unsafe: Renamed from
39050 modules/unistr/u32-mbtouc.
39051 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39052 * lib/unistr.h: Update.
39053 * lib/linebreak.c: Update.
39054 * modules/unistr/u32-mbtouc: Renamed from
39055 modules/unistr/u32-mbtouc-safe.
39056 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39057 * lib/unistr.h: Update.
39058 * lib/unistr/u32-to-u8.c: Update.
39059 * lib/unistr/u32-to-u16.c: Update.
39061 2007-01-27 Bruno Haible <bruno@clisp.org>
39063 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39064 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39065 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39066 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39067 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39068 * modules/unistr/u16-mbtouc-unsafe: Renamed from
39069 modules/unistr/u16-mbtouc.
39070 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39071 * lib/unistr.h: Update.
39072 * lib/linebreak.c: Update.
39073 * modules/linebreak: Update.
39074 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39075 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39076 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39077 * modules/unistr/u16-mbtouc: Renamed from
39078 modules/unistr/u16-mbtouc-safe.
39079 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39080 * lib/unistr.h: Update.
39081 * lib/unistr/u16-to-u8.c: Update.
39082 * modules/unistr/u16-to-u8: Update.
39083 * lib/unistr/u16-to-u32.c: Update.
39084 * modules/unistr/u16-to-u32: Update.
39086 2007-01-27 Bruno Haible <bruno@clisp.org>
39088 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39089 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39090 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39091 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39092 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39093 * modules/unistr/u8-mbtouc-unsafe: Renamed from
39094 modules/unistr/u8-mbtouc.
39095 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39096 * lib/unistr.h: Update.
39097 * lib/striconveh.c: Update.
39098 * modules/striconveh: Update.
39099 * lib/linebreak.c: Update.
39100 * modules/linebreak: Update.
39101 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39102 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39103 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39104 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39105 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39106 * lib/unistr.h: Update.
39107 * lib/striconveh.c: Update.
39108 * modules/striconveh: Update.
39109 * lib/unistr/u8-to-u16.c: Update.
39110 * modules/unistr/u8-to-u16: Update.
39111 * lib/unistr/u8-to-u32.c: Update.
39112 * modules/unistr/u8-to-u32: Update.
39114 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39117 * lib/argz.c: Do not include strings.h nor memory.h, include
39118 string.h unconditionally. Patch by Simon Josefsson.
39120 2007-01-27 Bruno Haible <bruno@clisp.org>
39122 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39123 from gl_HEADER_STRING_H_BODY.
39124 (gl_HEADER_STRING_H_BODY): Require it.
39125 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39126 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39127 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39128 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39129 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39130 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39131 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39132 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39133 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39134 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39135 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39136 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39137 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39138 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39139 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39141 2007-01-27 Bruno Haible <bruno@clisp.org>
39143 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39144 check_PROGRAMS into noinst_PROGRAMS.
39145 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39146 check_PROGRAMS in this case.
39147 (func_import): Set for_test to false.
39148 (func_create_testdir): Set for_test to true.
39150 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39151 Bruno Haible <bruno@clisp.org>
39153 * modules/strcasestr (Files): Remove lib/strcasestr.h.
39154 (Depends-on): Add string.
39155 (Includes): Use <string.h> instead of strcasestr.h.
39156 * modules/string (Makefile.am): Also substitute the value of
39157 REPLACE_STRCASESTR.
39158 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39159 assume strcasestr is declared in <string.h> not <strings.h>. Also
39160 set REPLACE_STRCASESTR.
39161 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39162 REPLACE_STRCASESTR.
39163 * lib/strcasestr.h: Remove file.
39164 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39165 * lib/string_.h (strcasestr): New declaration.
39167 2007-01-27 Bruno Haible <bruno@clisp.org>
39169 * lib/string_.h: Use 'extern'.
39171 2007-01-27 Jim Meyering <jim@meyering.net>
39173 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39174 of set-but-not-used local, "q".
39176 * lib/mempcpy.c: Include <config.h> before <string.h>.
39177 This fixes a compilation error on HP-UX, due to the system's
39178 "restrict"-using mempcpy prototype.
39180 2007-01-26 Bruno Haible <bruno@clisp.org>
39182 Small optimization.
39183 * lib/javacomp.c: Include c-strstr.h.
39184 (is_envjavac_gcj): Use c_strstr instead of strstr.
39185 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39187 2007-01-26 Bruno Haible <bruno@clisp.org>
39189 * MODULES.html.sh (Unicode string functions): Add the new modules.
39191 * modules/uniconv/u32-strconv-to-locale: New file.
39192 * lib/uniconv/u32-strconv-to-locale.c: New file.
39194 * modules/uniconv/u16-strconv-to-locale: New file.
39195 * lib/uniconv/u16-strconv-to-locale.c: New file.
39197 * modules/uniconv/u8-strconv-to-locale: New file.
39198 * lib/uniconv/u8-strconv-to-locale.c: New file.
39200 * modules/uniconv/u32-strconv-from-locale: New file.
39201 * lib/uniconv/u32-strconv-from-locale.c: New file.
39203 * modules/uniconv/u16-strconv-from-locale: New file.
39204 * lib/uniconv/u16-strconv-from-locale.c: New file.
39206 * modules/uniconv/u8-strconv-from-locale: New file.
39207 * lib/uniconv/u8-strconv-from-locale.c: New file.
39209 * modules/uniconv/u32-strconv-to-enc: New file.
39210 * lib/uniconv/u32-strconv-to-enc.c: New file.
39211 * modules/uniconv/u32-strconv-to-enc-tests: New file.
39212 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39214 * modules/uniconv/u16-strconv-to-enc: New file.
39215 * lib/uniconv/u16-strconv-to-enc.c: New file.
39216 * lib/uniconv/u-strconv-to-enc.h: New file.
39217 * modules/uniconv/u16-strconv-to-enc-tests: New file.
39218 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39220 * modules/uniconv/u8-strconv-to-enc: New file.
39221 * lib/uniconv/u8-strconv-to-enc.c: New file.
39222 * modules/uniconv/u8-strconv-to-enc-tests: New file.
39223 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39225 * modules/uniconv/u32-strconv-from-enc: New file.
39226 * lib/uniconv/u32-strconv-from-enc.c: New file.
39227 * modules/uniconv/u32-strconv-from-enc-tests: New file.
39228 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39230 * modules/uniconv/u16-strconv-from-enc: New file.
39231 * lib/uniconv/u16-strconv-from-enc.c: New file.
39232 * modules/uniconv/u16-strconv-from-enc-tests: New file.
39233 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39235 * modules/uniconv/u8-strconv-from-enc: New file.
39236 * lib/uniconv/u8-strconv-from-enc.c: New file.
39237 * lib/uniconv/u-strconv-from-enc.h: New file.
39238 * modules/uniconv/u8-strconv-from-enc-tests: New file.
39239 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39241 * modules/uniconv/u32-conv-from-enc: New file.
39242 * lib/uniconv/u32-conv-from-enc.c: New file.
39243 * modules/uniconv/u32-conv-from-enc-tests: New file.
39244 * tests/uniconv/test-u32-conv-from-enc.c: New file.
39246 * modules/uniconv/u16-conv-from-enc: New file.
39247 * lib/uniconv/u16-conv-from-enc.c: New file.
39248 * lib/uniconv/u-conv-from-enc.h: New file.
39249 * modules/uniconv/u16-conv-from-enc-tests: New file.
39250 * tests/uniconv/test-u16-conv-from-enc.c: New file.
39252 * modules/uniconv/u8-conv-from-enc: New file.
39253 * lib/uniconv/u8-conv-from-enc.c: New file.
39254 * modules/uniconv/u8-conv-from-enc-tests: New file.
39255 * tests/uniconv/test-u8-conv-from-enc.c: New file.
39257 * modules/uniconv/base: New file.
39258 * lib/uniconv.h: New file.
39260 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
39262 * doc/gnulib-tool.texi (Initial import): Update to match current
39263 behavior with strdup module.
39264 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39265 * lib/memmem.h: Remove; all uses removed. This is now done
39267 * lib/mempcpy.h: Likewise.
39268 * lib/memrchr.h: Likewise.
39269 * lib/stpcpy.h: Likewise.
39270 * lib/stpncpy.h: Likewise.
39271 * lib/strcase.h: Likewise.
39272 * lib/strchrnul.h: Likewise.
39273 * lib/strdup.h: Likewise.
39274 * lib/strndup.h: Likewise.
39275 * lib/strnlen.h: Likewise.
39276 * lib/strpbrk.h: Likewise.
39277 * lib/strsep.h: Likewise.
39278 * lib/strstr.h: Likewise.
39279 * lib/strtok_r.h: Likewise.
39280 * lib/string_.h: New file.
39281 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39282 Rely on <string.h> instead.
39283 * lib/canon-host.c: Likewise.
39284 * lib/chdir-long.c: Likewise.
39285 * lib/concatpath.c: Likewise.
39286 * lib/exclude.c: Likewise.
39287 * lib/fchdir.c: Likewise.
39288 * lib/getaddrinfo.c: Likewise.
39289 * lib/getcwd.c: Likewise.
39290 * lib/getsubopt.c: Likewise.
39291 * lib/glob.c: Likewise.
39292 * lib/hard-locale.c: Likewise.
39293 * lib/iconvme.c: Likewise.
39294 * lib/javacomp.c: Likewise.
39295 * lib/mempcpy.c: Likewise.
39296 * lib/memrchr.c: Likewise.
39297 * lib/regex_internal.h: Likewise.
39298 * lib/stpncpy.c: Likewise.
39299 * lib/strcasecmp.c: Likewise.
39300 * lib/strchrnul.c: Likewise.
39301 * lib/strdup.c: Likewise.
39302 * lib/striconv.c: Likewise.
39303 * lib/striconveh.c: Likewise.
39304 * lib/striconveha.c: Likewise.
39305 * lib/strncasecmp.c: Likewise.
39306 * lib/strndup.c: Likewise.
39307 * lib/strnlen.c: Likewise.
39308 * lib/strsep.c: Likewise.
39309 * lib/strstr.c: Likewise.
39310 * lib/strtok_r.c: Likewise.
39311 * lib/userspec.c: Likewise.
39312 * lib/w32spawn.h: Likewise.
39313 * lib/xstrndup.c: Likewise.
39314 * lib/mountlist.c (strstr): Remove decl.
39315 * m4/string_h.m4: New file.
39316 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39317 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39318 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39319 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39320 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39321 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39322 Set REPLACE_STRCASECMP if necessary.
39323 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39324 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39325 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39326 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39327 HAVE_DECL_STRDUP if necessary.
39328 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39329 since gl_FUNC_STRNDUP does that now.
39330 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39331 Check for decl here...
39332 (gl_PREREQ_STRNLEN): ... not here.
39333 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39334 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39335 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39336 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39338 * modules/string: New file.
39339 * modules/memmem (Files): Remove special-purpose include file.
39340 (Depends-on): Add string.
39341 (Include): Include <string.h>, not the removed file.
39342 * modules/mempcpy: Likewise.
39343 * modules/memrchr: Likewise.
39344 * modules/stpcpy: Likewise.
39345 * modules/stpncpy: Likewise.
39346 * modules/strcase: Likewise.
39347 * modules/strchrnul: Likewise.
39348 * modules/strdup: Likewise.
39349 * modules/strndup: Likewise.
39350 * modules/strnlen: Likewise.
39351 * modules/strpbrk: Likewise.
39352 * modules/strsep: Likewise.
39353 * modules/strstr: Likewise.
39354 * modules/strtok_r: Likewise.
39355 * tests/test-dirname.c: Don't include "strdup.h", since
39356 <string.h> now suffices.
39357 * tests/test-memmem.c: Don't include "memmem.h", since
39358 <string.h> now suffices.
39360 2007-01-25 Bruno Haible <bruno@clisp.org>
39362 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39365 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39366 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39367 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39368 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39370 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39371 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39372 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39373 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39374 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39375 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39377 2007-01-24 Bruno Haible <bruno@clisp.org>
39379 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39380 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39381 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39382 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39384 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39385 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39386 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39387 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39388 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39389 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39391 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39393 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39394 Reported by Ralf Wildenhues.
39396 2007-01-24 Bruno Haible <bruno@clisp.org>
39398 Drop AC_REQUIRE calls that are redundant with the module dependencies.
39399 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39401 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39402 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39403 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39405 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
39407 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39408 Don't use 'exit'; just return from 'main'.
39409 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39411 * lib/fnmatch_.h: Readjust white space and comments to match
39412 glibc, to avoid spurious diffs.
39414 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
39416 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39417 2004-12-01 change by Jakub Jelinek, since this code won't compile
39418 if !LIBC. Problem reported by Bob Proulx.
39420 2007-01-23 Bruno Haible <bruno@clisp.org>
39422 * lib/striconveh.c: Include c-strcaseeq.h.
39423 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39424 * modules/striconveh (Depends-on): Add c-strcaseeq.
39426 2007-01-23 Bruno Haible <bruno@clisp.org>
39428 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39430 * modules/c-strcaseeq: New file.
39431 * lib/c-strcaseeq.h: New file.
39433 * modules/streq: New file.
39434 * lib/streq.h: New file.
39436 2007-01-23 Bruno Haible <bruno@clisp.org>
39438 * modules/striconveha-tests: New file.
39439 * tests/test-striconveha.c: New file.
39441 * lib/striconveha.h: Include <stdbool.h>.
39442 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39443 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39444 (mem_iconveha_notranslit): Renamed from mem_iconveha.
39445 (mem_iconveha): New function.
39446 (str_iconveha_notranslit): Renamed from str_iconveha.
39447 (str_iconveha): New function.
39448 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39451 2007-01-23 Bruno Haible <bruno@clisp.org>
39453 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39454 encodings without forgiving before trying any encoding with handler.
39455 (str_iconveha): Try all encodings without forgiving before trying any
39456 encoding with handler.
39458 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
39460 Import the following changes from libc.
39462 2005-10-14 Ulrich Drepper <drepper@redhat.com>
39464 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39466 2004-12-01 Jakub Jelinek <jakub@redhat.com>
39468 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39469 normal_bracket label.
39471 2004-09-01 Jakub Jelinek <jakub@redhat.com>
39474 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39475 to normal_bracket after fetching the next character.
39477 2007-01-22 Bruno Haible <bruno@clisp.org>
39479 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39481 * lib/striconveh.c (iconv_carefully_1): New function.
39482 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39484 (str_cd_iconveh): Update.
39485 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39486 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39487 * tests/test-striconveh.c (MAGIC): New macro.
39488 (new_offsets): New function.
39489 (main): Test call with and without offsets.
39491 2007-01-22 Bruno Haible <bruno@clisp.org>
39493 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39494 * modules/sys_select (Makefile.am): Likewise.
39495 * modules/sys_socket (Makefile.am): Likewise.
39496 * modules/sys_time (Makefile.am): Likewise.
39498 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
39500 * modules/gettimeofday (License): Change from GPL to LGPL, since
39501 gettimeofday is a library function.
39503 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39505 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39507 2007-01-21 Bruno Haible <bruno@clisp.org>
39509 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39511 2007-01-21 Bruno Haible <bruno@clisp.org>
39513 * modules/striconveha: New file.
39514 * lib/striconveha.h: New file.
39515 * lib/striconveha.c: New file.
39516 * MODULES.html.sh (Internationalization functions): Add striconveha.
39517 * lib/striconv.c (str_iconv): Optimize the case of an empty input
39519 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39521 2007-01-21 Bruno Haible <bruno@clisp.org>
39523 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39524 * lib/striconveh.c (str_iconveh): Likewise.
39526 2007-01-21 Bruno Haible <bruno@clisp.org>
39528 * lib/striconveh.h (mem_iconveh): New declaration.
39529 * lib/striconveh.c (mem_iconveh): New function.
39530 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39532 2007-01-21 Bruno Haible <bruno@clisp.org>
39534 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39536 * lib/striconveh.h (mem_cd_iconveh): Change specification.
39537 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39538 original result buffer.
39539 (str_cd_iconveh): Update.
39540 * tests/test-striconveh.c (main): Update.
39542 * lib/striconv.h (mem_cd_iconv): Change specification.
39543 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39545 (str_cd_iconv): Update.
39546 * tests/test-striconv.c (main): Update.
39548 2007-01-21 Bruno Haible <bruno@clisp.org>
39550 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39552 2007-01-20 Jim Meyering <jim@meyering.net>
39554 * lib/userspec.c (parse_with_separator): If a user or group string
39555 starts with "+", skip the corresponding name-to-ID look-up, since
39556 such a look-up must fail: user and group names may not include "+".
39558 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
39560 * lib/poll.c: Include sys/time.h and time.h unconditionally,
39561 since we now assume the sys_time module.
39562 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39563 check for sys/time.h; no longer needed.
39564 * modules/poll (Depends-on): Depend on sys_time.
39566 2007-01-18 Bruno Haible <bruno@clisp.org>
39568 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39569 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39571 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39574 * tests/test-gettimeofday.c: Include <time.h>.
39575 (dummy): Remove variable.
39577 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39578 gl_HEADER_SYS_TIME_H.
39579 (gl_HEADER_SYS_TIME_H): New macro.
39581 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39582 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39583 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39584 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39585 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39586 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39587 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39588 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39589 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39590 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39591 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39593 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39594 last change; it caused a compilation error when cross-compiling to
39597 2007-01-18 Jim Meyering <jim@meyering.net>
39599 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39600 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39601 than the race-prone "test -d sys || mkdir sys".
39602 (configure.ac): Use AC_PROG_MKDIR_P.
39603 * modules/sys_select: Likewise.
39604 * modules/sys_socket: Likewise.
39605 * modules/sys_time: Likewise.
39607 2007-01-18 Eric Blake <ebb9@byu.net>
39609 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39610 replace gettimeofday.
39611 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39612 name, to avoid infinite recursion.
39614 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
39616 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39618 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39619 assume timespec.h defines struct timeval.
39620 * lib/settime.c: Likewise.
39621 * lib/utimens.c: Likewise.
39622 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39623 since we now assume the gettimeofday module.
39624 * lib/tempname.c (__gen_tempname): Likewise.
39625 * lib/gettimeofday.h: Remove.
39626 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39627 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39628 Include <time.h>, for 'time()'.
39629 (localtime_buffer_addr): Also use this workaround if
39630 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
39631 to simplify the uses. All uses changed.
39632 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39633 that #undef is inside {}, and 'const' follows type name consistently.
39634 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39635 (gettimeofday): Do not use the maximum possible value for
39636 tv->tv_usec, since that might break usages other than ls.c.
39637 Instead, we'll leave ls.c alone. This undoes today's patch
39638 by Bruno. Add a compile-time warning for 1s-clock resolution;
39639 we've never observed the problem but might as well keep the
39641 * lib/nanosleep.c: Include timespec.h first, for interface check.
39642 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39643 now assume the sys_time module.
39644 * lib/tempname.c: Likewise.
39645 * lib/timespec.h: Likewise.
39646 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39648 * lib/strftime.c: Likewise.
39649 * lib/timespec.h: Likewise.
39650 * lib/posixtm.c: Include posixtm.h first, for interface check.
39651 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39652 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39653 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39654 * lib/sys_time_.h: New file.
39655 * lib/timespec.h (struct timespec): Use long int, not long.
39656 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39657 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39658 Remove obsolescent call to AC_HEADER_TIME.
39659 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39660 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39661 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39662 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39664 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39665 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39666 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39667 into the sys_time module. Check for gettimeofday just once.
39668 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
39669 for gettimeofday signature to just check the signature. Merely
39670 compile it, since linking doesn't test signature. Improve test for
39671 whether gettimeofday.o is actually needed.
39672 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39673 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
39674 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
39675 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39676 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39677 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39678 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39679 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39680 than worrying about sys/time.h.
39681 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39682 Don't bother worrying about TIME_WITH_SYS_TIME.
39683 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39684 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39685 * m4/sys_time_h.m4: New file.
39686 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39687 Don't include sys/time.h. Return from main rather than exiting.
39688 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39690 * modules/gethrxtime (Depends-on): Add sys_time.
39691 * modules/gettime (Depends-on): Likewise.
39692 * modules/gettimeofday (Depends-on): Likewise.
39693 * modules/nanosleep (Depends-on): Likewise.
39694 * modules/settime (Depends-on): Likewise.
39695 * modules/tempname (Depends-on): Likewise.
39696 * modules/utimens (Depends-on): Likewise.
39697 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39698 (Include:) Change back to <sys/time.h>.
39699 (Maintainer:) Add self.
39700 * modules/sys_time: New file.
39701 * modules/tempname (Depends-on): Add gettimeofday.
39702 * tests/test-gettimeofday.c: Include <sys/time.h>
39703 rather than gettimeofday.h.
39705 2007-01-17 Bruno Haible <bruno@clisp.org>
39707 * gnulib-tool (func_get_license): Revert last patch. Instead, let
39708 the license default to GPL.
39709 (func_create_testdir): Don't complain if a module is LGPL and its
39710 tests module depends on GPLed modules.
39712 2007-01-17 Bruno Haible <bruno@clisp.org>
39714 * lib/gettimeofday.c (gettimeofday): Add code for the case
39715 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39716 maximum possible value for tv->tv_usec, rather than the minimum one.
39718 2005-10-08 Martin Lambers <marlam@marlam.de>
39719 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
39720 2007-01-16 Bruno Haible <bruno@clisp.org>
39722 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39723 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39724 gl_FUNC_GETTIMEOFDAY.
39725 (Include): Add gettimeofday.h.
39726 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39727 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39728 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39729 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39730 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39731 * lib/gettimeofday.h: New file.
39732 * lib/gettimeofday.c: Include <sys/timeb.h>.
39733 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39734 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39735 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39736 fall back on time().
39738 * tests/test-gettimeofday.c: New file.
39739 * modules/gettimeofday-tests: New file.
39741 2007-01-16 Eric Blake <ebb9@byu.net>
39743 * modules/fnmatch (Depends-on): Depend on wchar.
39744 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39745 * m4/fnmatch.m4: Likewise.
39746 * modules/mbchar (Makefile.am): Assume <wchar.h>.
39747 * m4/mbchar.m4: Likewise.
39748 * modules/mbswidth (Depends-on): Depend on wchar.
39749 * lib/mbswidth.c: Assume <wchar.h>.
39750 * m4/mbswidth.m4: Likewise.
39751 * modules/quotearg (Depends-on): Depend on wchar.
39752 * lib/quotearg.c: Assume <wchar.h>.
39753 * m4/quotearg.m4: Likewise.
39754 * modules/regex (Depends-on): Depend on wchar.
39755 * lib/regex_internal.h: Assume <wchar.h>.
39756 * m4/regex.m4: Likewise.
39757 * modules/stdint (Depends-on): Depend on wchar.
39758 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39759 * m4/stdint.m4: Likewise.
39760 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39761 * modules/strftime (Depends-on): Depend on wchar.
39762 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39763 * modules/strtol (Depends-on): Depend on wchar.
39764 * lib/strtol.c: Assume <wchar.h>.
39765 * modules/wcwidth (Depends-on): Depend on wchar.
39766 * lib/wcwidth.h: Assume <wchar.h>.
39767 * m4/wcwidth.m4: Likewise.
39769 2007-01-16 Bruno Haible <bruno@clisp.org>
39771 * modules/csharpexec-script: New, created from...
39772 * modules/csharpexec: ... this.
39774 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
39776 * modules/javaexec-script: New, created from...
39777 * modules/javaexec: ... this.
39779 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39781 * modules/poll (Dependencies): Add sys_select.
39783 2007-01-15 Jim Meyering <jim@meyering.net>
39785 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39786 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39787 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
39788 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39790 2007-01-15 Bruno Haible <bruno@clisp.org>
39792 * modules/striconveh: New file.
39793 * lib/striconveh.h: New file.
39794 * lib/striconveh.c: New file.
39795 * MODULES.html.sh (Internationalization functions): Add striconveh.
39797 * modules/striconveh-tests: New file.
39798 * tests/test-striconveh.c: New file.
39800 2007-01-15 Bruno Haible <bruno@clisp.org>
39802 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39803 not from GNU libiconv or GNU libc.
39805 2007-01-15 Bruno Haible <bruno@clisp.org>
39807 * doc/gnulib-intro.texi (Copyright): Explain the different license
39808 terms for module descriptions, autoconf macros, tests, documentation.
39810 2007-01-14 Bruno Haible <bruno@clisp.org>
39812 * modules/striconv-tests: New file.
39813 * tests/test-striconv.c: New file.
39815 2007-01-14 Bruno Haible <bruno@clisp.org>
39817 * modules/iconv-tests: New file.
39818 * tests/test-iconv.c: New file.
39820 2007-01-14 Bruno Haible <bruno@clisp.org>
39822 * gnulib-tool (func_get_license): For test modules, use the license of
39825 2007-01-14 Bruno Haible <bruno@clisp.org>
39827 * modules/iconv (Include): Clarify that <iconv.h> can only be included
39828 if iconv is found to exist.
39830 2007-01-14 Bruno Haible <bruno@clisp.org>
39832 * modules/c-ctype-tests: New file.
39833 * tests/test-c-ctype.c: New file.
39835 2007-01-14 Bruno Haible <bruno@clisp.org>
39837 * modules/binary-io-tests: New file.
39838 * tests/test-binary-io.sh: New file.
39839 * tests/test-binary-io.c: New file.
39841 2007-01-14 Bruno Haible <bruno@clisp.org>
39843 * modules/array-oset-tests: New file.
39844 * tests/test-array_oset.c: New file.
39846 2007-01-14 Bruno Haible <bruno@clisp.org>
39848 * modules/array-list-tests: New file.
39849 * tests/test-array_list.c: New file.
39851 2007-01-14 Bruno Haible <bruno@clisp.org>
39853 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39855 Reported by Simon Josefsson in
39856 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39858 2007-01-14 Bruno Haible <bruno@clisp.org>
39860 * modules/allocsa-tests: New file.
39861 * tests/test-allocsa.c: New file.
39863 2007-01-14 Bruno Haible <bruno@clisp.org>
39865 * modules/fchdir (Depends-on): Add absolute-header.
39866 * modules/unistd (Depends-on): Likewise.
39868 2006-12-30 Bruno Haible <bruno@clisp.org>
39870 * modules/fchdir: New file.
39871 * modules/unistd (Files): Add lib/unistd_.h.
39872 (Makefile.am): Generate unistd.h from unistd_.h.
39873 * lib/fchdir.c: New file.
39874 * lib/dirent_.h: New file.
39875 * lib/unistd_.h: New file.
39876 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39877 * m4/fchdir.m4: New file.
39878 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39879 (gl_HEADER_UNISTD): Invoke it.
39880 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39882 * lib/backupfile.c (opendir, closedir): Undefine.
39883 * lib/chown.c (open, close): Undefine.
39884 * lib/clean-temp.c (open, close): Undefine.
39885 * lib/copy-file.c (open, close): Undefine.
39886 * lib/execute.c (open, close): Undefine.
39887 * lib/fsusage.c (open, close): Undefine.
39888 * lib/gc-gnulib.c (open, close): Undefine.
39889 * lib/getcwd.c (opendir, closedir): Undefine.
39890 * lib/glob.c (opendir, closedir): Undefine.
39891 * lib/javacomp.c (open, close): Undefine.
39892 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39893 * lib/openat-proc.c (open, close): Undefine.
39894 * lib/pagealign_alloc.c (open, close): Undefine.
39895 * lib/pipe.c (open, close): Undefine.
39896 * lib/progreloc.c (open, close): Undefine.
39897 * lib/savedir.c (opendir, closedir): Undefine.
39898 * lib/utime.c (open, close): Undefine.
39899 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39901 2007-01-10 Bruno Haible <bruno@clisp.org>
39903 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39905 2007-01-12 Eric Blake <ebb9@byu.net>
39907 Provide a robust <wchar.h>. Further simplifications are now
39908 possible in other modules, but not included here.
39909 * modules/wchar: New module.
39910 * m4/wchar.m4: New file.
39911 * lib/wchar_.h: Likewise.
39912 * modules/mbchar (Depends-on): Depend on wchar, as the first use
39914 * MODULES.html.sh (Extended multibyte and wide character utilities):
39917 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
39919 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39920 to a reasonable default for memory allocation.
39921 (xreadlink): Don't allocate a huge buffer, to work around a buggy
39922 file system that reports garbage st_size values for symlinks.
39923 Problem reported by Liyang Hu.
39925 2007-01-11 Simon Josefsson <simon@josefsson.org>
39927 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39928 Emacs .#* auto-save files).
39930 2007-01-11 Bruno Haible <bruno@clisp.org>
39932 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39935 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
39937 Use @...@ consistently in lib/wctype_.h.
39938 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39939 on it being set to 1 or 0.
39940 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39941 go back to AC_SUBSTing it.
39942 * modules/wctype (Makefile.am): Undo previous change.
39944 2007-01-10 Eric Blake <ebb9@byu.net>
39946 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39947 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39948 * modules/wctype (Makefile.am): Likewise.
39949 Reported by Chris McGuire.
39951 2007-01-10 Jim Meyering <jim@meyering.net>
39953 fts.c: a small readability/maintainability improvement
39954 * lib/fts.c (fts_read): Make this code slightly more readable and
39955 maintainable by hoisting the "sp->fts_cur = p" assignments to
39956 immediately follow the statements that set P. Derived from
39957 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39959 2007-01-10 Eric Blake <ebb9@byu.net>
39961 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39962 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39963 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39964 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39965 Reported by Chris McGuire.
39967 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39969 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39972 2007-01-09 Bruno Haible <bruno@clisp.org>
39974 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39975 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39977 (func_module): Use them.
39979 2007-01-09 Bruno Haible <bruno@clisp.org>
39981 * modules/unistr/base: New file.
39982 * lib/unistr.h: New file.
39984 * modules/unistr/u8-to-u16: New file.
39985 * lib/unistr/u8-to-u16.c: New file.
39987 * modules/unistr/u8-to-u32: New file.
39988 * lib/unistr/u8-to-u32.c: New file.
39990 * modules/unistr/u16-to-u8: New file.
39991 * lib/unistr/u16-to-u8.c: New file.
39993 * modules/unistr/u16-to-u32: New file.
39994 * lib/unistr/u16-to-u32.c: New file.
39996 * modules/unistr/u32-to-u8: New file.
39997 * lib/unistr/u32-to-u8.c: New file.
39999 * modules/unistr/u32-to-u16: New file.
40000 * lib/unistr/u32-to-u16.c: New file.
40002 * modules/unistr/u8-check: New file.
40003 * modules/unistr/u16-check: New file.
40004 * modules/unistr/u32-check: New file.
40005 * lib/unistr/u8-check.c: New file.
40006 * lib/unistr/u16-check.c: New file.
40007 * lib/unistr/u32-check.c: New file.
40009 * modules/unistr/u8-chr: New file.
40010 * modules/unistr/u16-chr: New file.
40011 * modules/unistr/u32-chr: New file.
40012 * lib/unistr/u8-chr.c: New file.
40013 * lib/unistr/u16-chr.c: New file.
40014 * lib/unistr/u32-chr.c: New file.
40016 * modules/unistr/u8-cmp: New file.
40017 * modules/unistr/u16-cmp: New file.
40018 * modules/unistr/u32-cmp: New file.
40019 * lib/unistr/u8-cmp.c: New file.
40020 * lib/unistr/u16-cmp.c: New file.
40021 * lib/unistr/u32-cmp.c: New file.
40023 * modules/unistr/u8-cpy: New file.
40024 * modules/unistr/u16-cpy: New file.
40025 * modules/unistr/u32-cpy: New file.
40026 * lib/unistr/u8-cpy.c: New file.
40027 * lib/unistr/u16-cpy.c: New file.
40028 * lib/unistr/u32-cpy.c: New file.
40029 * lib/unistr/u-cpy.h: New file.
40031 * modules/unistr/u8-cpy-alloc: New file.
40032 * modules/unistr/u16-cpy-alloc: New file.
40033 * modules/unistr/u32-cpy-alloc: New file.
40034 * lib/unistr/u8-cpy-alloc.c: New file.
40035 * lib/unistr/u16-cpy-alloc.c: New file.
40036 * lib/unistr/u32-cpy-alloc.c: New file.
40037 * lib/unistr/u-cpy-alloc.h: New file.
40039 * modules/unistr/u8-endswith: New file.
40040 * modules/unistr/u16-endswith: New file.
40041 * modules/unistr/u32-endswith: New file.
40042 * lib/unistr/u8-endswith.c: New file.
40043 * lib/unistr/u16-endswith.c: New file.
40044 * lib/unistr/u32-endswith.c: New file.
40045 * lib/unistr/u-endswith.h: New file.
40047 * modules/unistr/u8-mblen: New file.
40048 * modules/unistr/u16-mblen: New file.
40049 * modules/unistr/u32-mblen: New file.
40050 * lib/unistr/u8-mblen.c: New file.
40051 * lib/unistr/u16-mblen.c: New file.
40052 * lib/unistr/u32-mblen.c: New file.
40054 * modules/unistr/u8-mbtouc: New file.
40055 * modules/unistr/u16-mbtouc: New file.
40056 * modules/unistr/u32-mbtouc: New file.
40057 * lib/unistr/u8-mbtouc.c: New file.
40058 * lib/unistr/u16-mbtouc.c: New file.
40059 * lib/unistr/u32-mbtouc.c: New file.
40061 * modules/unistr/u8-mbtouc-safe: New file.
40062 * modules/unistr/u16-mbtouc-safe: New file.
40063 * modules/unistr/u32-mbtouc-safe: New file.
40064 * lib/unistr/u8-mbtouc-safe.c: New file.
40065 * lib/unistr/u16-mbtouc-safe.c: New file.
40066 * lib/unistr/u32-mbtouc-safe.c: New file.
40068 * modules/unistr/u8-move: New file.
40069 * modules/unistr/u16-move: New file.
40070 * modules/unistr/u32-move: New file.
40071 * lib/unistr/u8-move.c: New file.
40072 * lib/unistr/u16-move.c: New file.
40073 * lib/unistr/u32-move.c: New file.
40074 * lib/unistr/u-move.h: New file.
40076 * modules/unistr/u8-next: New file.
40077 * modules/unistr/u16-next: New file.
40078 * modules/unistr/u32-next: New file.
40079 * lib/unistr/u8-next.c: New file.
40080 * lib/unistr/u16-next.c: New file.
40081 * lib/unistr/u32-next.c: New file.
40083 * modules/unistr/u8-prev: New file.
40084 * modules/unistr/u16-prev: New file.
40085 * modules/unistr/u32-prev: New file.
40086 * lib/unistr/u8-prev.c: New file.
40087 * lib/unistr/u16-prev.c: New file.
40088 * lib/unistr/u32-prev.c: New file.
40090 * modules/unistr/u8-set: New file.
40091 * modules/unistr/u16-set: New file.
40092 * modules/unistr/u32-set: New file.
40093 * lib/unistr/u8-set.c: New file.
40094 * lib/unistr/u16-set.c: New file.
40095 * lib/unistr/u32-set.c: New file.
40096 * lib/unistr/u-set.h: New file.
40098 * modules/unistr/u8-startswith: New file.
40099 * modules/unistr/u16-startswith: New file.
40100 * modules/unistr/u32-startswith: New file.
40101 * lib/unistr/u8-startswith.c: New file.
40102 * lib/unistr/u16-startswith.c: New file.
40103 * lib/unistr/u32-startswith.c: New file.
40104 * lib/unistr/u-startswith.h: New file.
40106 * modules/unistr/u8-stpcpy: New file.
40107 * modules/unistr/u16-stpcpy: New file.
40108 * modules/unistr/u32-stpcpy: New file.
40109 * lib/unistr/u8-stpcpy.c: New file.
40110 * lib/unistr/u16-stpcpy.c: New file.
40111 * lib/unistr/u32-stpcpy.c: New file.
40112 * lib/unistr/u-stpcpy.h: New file.
40114 * modules/unistr/u8-stpncpy: New file.
40115 * modules/unistr/u16-stpncpy: New file.
40116 * modules/unistr/u32-stpncpy: New file.
40117 * lib/unistr/u8-stpncpy.c: New file.
40118 * lib/unistr/u16-stpncpy.c: New file.
40119 * lib/unistr/u32-stpncpy.c: New file.
40120 * lib/unistr/u-stpncpy.h: New file.
40122 * modules/unistr/u8-strcat: New file.
40123 * modules/unistr/u16-strcat: New file.
40124 * modules/unistr/u32-strcat: New file.
40125 * lib/unistr/u8-strcat.c: New file.
40126 * lib/unistr/u16-strcat.c: New file.
40127 * lib/unistr/u32-strcat.c: New file.
40128 * lib/unistr/u-strcat.h: New file.
40130 * modules/unistr/u8-strchr: New file.
40131 * modules/unistr/u16-strchr: New file.
40132 * modules/unistr/u32-strchr: New file.
40133 * lib/unistr/u8-strchr.c: New file.
40134 * lib/unistr/u16-strchr.c: New file.
40135 * lib/unistr/u32-strchr.c: New file.
40137 * modules/unistr/u8-strcmp: New file.
40138 * modules/unistr/u16-strcmp: New file.
40139 * modules/unistr/u32-strcmp: New file.
40140 * lib/unistr/u8-strcmp.c: New file.
40141 * lib/unistr/u16-strcmp.c: New file.
40142 * lib/unistr/u32-strcmp.c: New file.
40144 * modules/unistr/u8-strcpy: New file.
40145 * modules/unistr/u16-strcpy: New file.
40146 * modules/unistr/u32-strcpy: New file.
40147 * lib/unistr/u8-strcpy.c: New file.
40148 * lib/unistr/u16-strcpy.c: New file.
40149 * lib/unistr/u32-strcpy.c: New file.
40150 * lib/unistr/u-strcpy.h: New file.
40152 * modules/unistr/u8-strcspn: New file.
40153 * modules/unistr/u16-strcspn: New file.
40154 * modules/unistr/u32-strcspn: New file.
40155 * lib/unistr/u8-strcspn.c: New file.
40156 * lib/unistr/u16-strcspn.c: New file.
40157 * lib/unistr/u32-strcspn.c: New file.
40158 * lib/unistr/u-strcspn.h: New file.
40160 * modules/unistr/u8-strdup: New file.
40161 * modules/unistr/u16-strdup: New file.
40162 * modules/unistr/u32-strdup: New file.
40163 * lib/unistr/u8-strdup.c: New file.
40164 * lib/unistr/u16-strdup.c: New file.
40165 * lib/unistr/u32-strdup.c: New file.
40166 * lib/unistr/u-strdup.h: New file.
40168 * modules/unistr/u8-strlen: New file.
40169 * modules/unistr/u16-strlen: New file.
40170 * modules/unistr/u32-strlen: New file.
40171 * lib/unistr/u8-strlen.c: New file.
40172 * lib/unistr/u16-strlen.c: New file.
40173 * lib/unistr/u32-strlen.c: New file.
40174 * lib/unistr/u-strlen.h: New file.
40176 * modules/unistr/u8-strmblen: New file.
40177 * modules/unistr/u16-strmblen: New file.
40178 * modules/unistr/u32-strmblen: New file.
40179 * lib/unistr/u8-strmblen.c: New file.
40180 * lib/unistr/u16-strmblen.c: New file.
40181 * lib/unistr/u32-strmblen.c: New file.
40183 * modules/unistr/u8-strmbtouc: New file.
40184 * modules/unistr/u16-strmbtouc: New file.
40185 * modules/unistr/u32-strmbtouc: New file.
40186 * lib/unistr/u8-strmbtouc.c: New file.
40187 * lib/unistr/u16-strmbtouc.c: New file.
40188 * lib/unistr/u32-strmbtouc.c: New file.
40190 * modules/unistr/u8-strncat: New file.
40191 * modules/unistr/u16-strncat: New file.
40192 * modules/unistr/u32-strncat: New file.
40193 * lib/unistr/u8-strncat.c: New file.
40194 * lib/unistr/u16-strncat.c: New file.
40195 * lib/unistr/u32-strncat.c: New file.
40196 * lib/unistr/u-strncat.h: New file.
40198 * modules/unistr/u8-strncmp: New file.
40199 * modules/unistr/u16-strncmp: New file.
40200 * modules/unistr/u32-strncmp: New file.
40201 * lib/unistr/u8-strncmp.c: New file.
40202 * lib/unistr/u16-strncmp.c: New file.
40203 * lib/unistr/u32-strncmp.c: New file.
40205 * modules/unistr/u8-strncpy: New file.
40206 * modules/unistr/u16-strncpy: New file.
40207 * modules/unistr/u32-strncpy: New file.
40208 * lib/unistr/u8-strncpy.c: New file.
40209 * lib/unistr/u16-strncpy.c: New file.
40210 * lib/unistr/u32-strncpy.c: New file.
40211 * lib/unistr/u-strncpy.h: New file.
40213 * modules/unistr/u8-strnlen: New file.
40214 * modules/unistr/u16-strnlen: New file.
40215 * modules/unistr/u32-strnlen: New file.
40216 * lib/unistr/u8-strnlen.c: New file.
40217 * lib/unistr/u16-strnlen.c: New file.
40218 * lib/unistr/u32-strnlen.c: New file.
40219 * lib/unistr/u-strnlen.h: New file.
40221 * modules/unistr/u8-strpbrk: New file.
40222 * modules/unistr/u16-strpbrk: New file.
40223 * modules/unistr/u32-strpbrk: New file.
40224 * lib/unistr/u8-strpbrk.c: New file.
40225 * lib/unistr/u16-strpbrk.c: New file.
40226 * lib/unistr/u32-strpbrk.c: New file.
40227 * lib/unistr/u-strpbrk.h: New file.
40229 * modules/unistr/u8-strrchr: New file.
40230 * modules/unistr/u16-strrchr: New file.
40231 * modules/unistr/u32-strrchr: New file.
40232 * lib/unistr/u8-strrchr.c: New file.
40233 * lib/unistr/u16-strrchr.c: New file.
40234 * lib/unistr/u32-strrchr.c: New file.
40236 * modules/unistr/u8-strspn: New file.
40237 * modules/unistr/u16-strspn: New file.
40238 * modules/unistr/u32-strspn: New file.
40239 * lib/unistr/u8-strspn.c: New file.
40240 * lib/unistr/u16-strspn.c: New file.
40241 * lib/unistr/u32-strspn.c: New file.
40242 * lib/unistr/u-strspn.h: New file.
40244 * modules/unistr/u8-strstr: New file.
40245 * modules/unistr/u16-strstr: New file.
40246 * modules/unistr/u32-strstr: New file.
40247 * lib/unistr/u8-strstr.c: New file.
40248 * lib/unistr/u16-strstr.c: New file.
40249 * lib/unistr/u32-strstr.c: New file.
40250 * lib/unistr/u-strstr.h: New file.
40252 * modules/unistr/u8-strtok: New file.
40253 * modules/unistr/u16-strtok: New file.
40254 * modules/unistr/u32-strtok: New file.
40255 * lib/unistr/u8-strtok.c: New file.
40256 * lib/unistr/u16-strtok.c: New file.
40257 * lib/unistr/u32-strtok.c: New file.
40258 * lib/unistr/u-strtok.h: New file.
40260 * modules/unistr/u8-uctomb: New file.
40261 * modules/unistr/u16-uctomb: New file.
40262 * modules/unistr/u32-uctomb: New file.
40263 * lib/unistr/u8-uctomb.c: New file.
40264 * lib/unistr/u16-uctomb.c: New file.
40265 * lib/unistr/u32-uctomb.c: New file.
40267 * MODULES.html.sh (Unicode string functions): Add the new modules.
40269 2007-01-08 Bruno Haible <bruno@clisp.org>
40271 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40272 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40275 2007-01-08 Karl Berry <karl@gnu.org>
40277 * doc/error.texi: mention that main() fns must set program_name
40278 when progname is used.
40280 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
40282 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40283 WCTYPE_H is empty, for the benefit of builds from non-distclean
40284 directories. Problem reported by Eric Blake in
40285 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40287 2007-01-08 Bruno Haible <bruno@clisp.org>
40289 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40290 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40291 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40292 PROVIDE_CANONICALIZE_FILENAME_MODE.
40293 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40295 2007-01-08 Bruno Haible <bruno@clisp.org>
40297 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40298 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40299 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40300 * lib/fts.c: Likewise.
40301 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40303 2006-12-25 Bruno Haible <bruno@clisp.org>
40305 * modules/utf8-ucs4-safe: New file.
40306 * lib/utf8-ucs4-safe.h: New file.
40307 * lib/unistr/utf8-ucs4-safe.c: New file.
40309 * modules/utf16-ucs4-safe: New file.
40310 * lib/utf16-ucs4-safe.h: New file.
40311 * lib/unistr/utf16-ucs4-safe.c: New file.
40313 * MODULES.html.sh (Unicode string functions): Add the new modules.
40315 2007-01-08 Bruno Haible <bruno@clisp.org>
40317 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40318 (Depends-on): Add unitypes.
40319 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40320 (u8_mbtouc_aux): Move out to separate file.
40321 (u8_mbtouc): Use ucs4_t, uint8_t types.
40322 * lib/unistr/utf8-ucs4.c: New file.
40324 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40325 (Depends-on): Add unitypes.
40326 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40327 (u16_mbtouc_aux): Move out to separate file.
40328 (u16_mbtouc): Use ucs4_t, uint16_t types.
40329 * lib/unistr/utf16-ucs4.c: New file.
40331 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40332 (Depends-on): Add unitypes.
40333 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40334 (u8_uctomb_aux): Move out to separate file.
40335 (u8_uctomb): Use ucs4_t, uint8_t types.
40336 * lib/unistr/ucs4-utf8.c: New file.
40338 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40339 (Depends-on): Add unitypes.
40340 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40341 (u16_uctomb_aux): Move out to separate file.
40342 (u16_uctomb): Use ucs4_t, uint16_t types.
40343 * lib/unistr/ucs4-utf16.c: New file.
40345 2006-12-25 Bruno Haible <bruno@clisp.org>
40347 * modules/unitypes: New file.
40348 * lib/unitypes.h: New file.
40349 * MODULES.html.sh (func_all_modules): New section "Unicode string
40350 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40351 this section. Add unitypes.
40353 2007-01-08 Bruno Haible <bruno@clisp.org>
40355 Avoid variable names that conflict with those from libtool.
40356 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40357 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40358 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40359 library_names_spec to acl_library_names_spec, hardcode_* to
40361 Reported by Ralf Wildenhues.
40363 2007-01-08 Bruno Haible <bruno@clisp.org>
40365 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40367 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40369 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40370 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40372 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40374 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40375 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40376 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40377 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40379 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40381 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40382 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40383 GC_USE_<algorithm>.
40384 * lib/gc-libgcrypt.c: Likewise.
40385 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40386 * modules/gc-arctwo (configure.ac): Likewise.
40387 * modules/gc-des (configure.ac): Likewise.
40388 * modules/gc-hmac-md5 (configure.ac): Likewise.
40389 * modules/gc-hmac-sha1 (configure.ac): Likewise.
40390 * modules/gc-md2 (configure.ac): Likewise.
40391 * modules/gc-md4 (configure.ac): Likewise.
40392 * modules/gc-md5 (configure.ac): Likewise.
40393 * modules/gc-random (configure.ac): Likewise.
40394 * modules/gc-rijndael (configure.ac): Likewise.
40395 * modules/gc-sha1 (configure.ac): Likewise.
40397 2007-01-08 Bruno Haible <bruno@clisp.org>
40399 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40401 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40403 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40405 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40406 * modules/fcntl-safer (configure.ac): Likewise.
40407 * modules/fopen-safer (configure.ac): Likewise.
40408 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40409 GNULIB_FWRITEERROR macro definition.
40411 2007-01-08 Bruno Haible <bruno@clisp.org>
40413 * m4/gnulib-common.m4: New file.
40414 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40415 (func_get_filelist): Add m4/gnulib-common.m4.
40417 2007-01-08 Bruno Haible <bruno@clisp.org>
40419 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40422 2007-01-08 Jim Meyering <jim@meyering.net>
40424 Use a more robust test for a "can't happen" condition.
40425 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40426 narrowed the st_size value. Presuming the "can't happen" condition
40427 is true, that narrowing could conceivably convert an invalid st_size
40428 value into a valid one. Instead, use a change based on Matthew
40429 Woehlke's original patch.
40431 Slight readability improvement: use an assert-like macro
40432 in place of literal "abort ()" uses.
40433 * lib/fts.c (fts_assert): Define.
40434 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40435 Use this macro instead of a bare 'abort'.
40437 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
40439 Don't worry about using IRIX 5.3's wctype.h broken definitions;
40440 simply work around them.
40441 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40442 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40443 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40445 Don't bother to define as macros, since the standard doesn't require it.
40446 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40447 longer worry about IRIX 5.3.
40448 (HAVE_WCTYPE_CTMP_BUG): Remove.
40450 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
40452 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40453 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
40454 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40455 Problems reported by Georg Schwarz for IRIX 5.3.
40457 * gnulib-tool (autoconf_minversion): Take the maximum version number
40458 found, not the minimum. Problem reported by James Youngman.
40460 2007-01-03 Karl Berry <karl@gnu.org>
40462 * doc/error.texi: new file, explaining interaction with progname.
40463 * doc/gnulib.texi: include it. Update copyright.
40465 2007-01-03 Simon Josefsson <simon@josefsson.org>
40467 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40468 AC_CANONICAL_HOST, to improve autobuild outputs.
40470 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
40471 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40473 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40474 sockets, server sockets, and other file descriptors. Count errors
40475 to compute the return value. Reorder the code a bit to be easier
40476 to follow. Don't set event bits that were not requested (except
40477 POLLERR and POLLHUP).
40479 2007-01-01 Bruno Haible <bruno@clisp.org>
40481 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40483 2007-01-03 Jim Meyering <jim@meyering.net>
40485 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
40487 2007-01-02 Bruno Haible <bruno@clisp.org>
40489 * modules/settime (Include): Require timespec.h.
40490 * modules/nanosleep (Include): Likewise.
40492 2007-01-01 Bruno Haible <bruno@clisp.org>
40494 * gnulib-tool (func_emit_copyright_notice): Bump year.
40495 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40497 2007-01-01 Bruno Haible <bruno@clisp.org>
40499 Improve support for OpenBSD.
40500 * build-aux/config.rpath (libname_spec): Export.
40501 (library_names_spec): New variable. Export.
40502 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40503 library_names_spec from the config.rpath output. Locate shared library
40504 through the name pattern in library_names_spec.
40506 2007-01-01 Eric Blake <ebb9@byu.net>
40508 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40510 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
40512 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40513 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
40514 assume the C locale, and avoid an "eval" that could cause trouble.
40515 Problem with SORT reported by Bob Proulx.
40517 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40518 Define. Trivial patch from Henning Nielsen Lund, originally
40519 sent to bug-grep@gnu.org today.
40521 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
40523 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40524 struct stat. Problem reported by Henning Nielsen Lund.
40525 * lib/acl.c: Include acl.h first, to check interface. Don't
40526 bother to include sys/types.h and sys/stat.h again.
40528 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
40530 Import the following change from libc; problem reported by
40533 2005-10-13 Ulrich Drepper <drepper@redhat.com>
40536 * lib/argp.h: Remove __NTH for __argp_usage inline function.
40538 2006-12-28 Jim Meyering <jim@meyering.net>
40540 * build-aux/announce-gen: Do not assume that the package
40541 builds any of tar.gz, tar.bz2, and .xdelta files.
40542 Suggestion from Simon Josefsson.
40544 2006-12-28 Simon Josefsson <simon@josefsson.org>
40546 * modules/announce-gen: New file.
40548 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
40550 * lib/mbchar.h: Just include <wctype.h>; the wctype module
40551 handles its gotchas now.
40552 * lib/mbswidth.c: Likewise.
40553 * lib/wcwidth.h: Likewise.
40554 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40555 and iswcntrl; the wctype module does this stuff now.
40556 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40557 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40558 * modules/mbchar (Depends-on): Add wctype.
40559 * modules/mbswidth (Depends-on): Likewise.
40560 * modules/wcwidth (Depends-on): Likewise.
40562 2006-12-27 Eric Blake <ebb9@byu.net>
40564 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40565 module uses more than what <wctype.h> is required to provide.
40567 2006-12-26 Eric Blake <ebb9@byu.net>
40569 * gnulib-tool (sed_extract_prog): Avoid space-tab.
40571 2006-12-26 Eric Blake <ebb9@byu.net>
40573 * modules/absolute-header: New module.
40574 * modules/fcntl (Depends-on): Depend on it.
40575 * modules/inttypes (Depends-on): Likewise.
40576 * modules/stdint (Depends-on): Likewise.
40577 * modules/sys_stat (Depends-on): Likewise.
40578 * modules/wctype (Depends-on): Likewise.
40579 * MODULES.html.sh (Support for building libraries and
40580 executables): Document it.
40582 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
40584 * gnulib-tool (SED): Remove, undoing previous change.
40585 The problem was that it broke coreutils on Solaris, because
40586 "sed --posix" leaked into a makefile.
40587 (sed): New alias, if 'alias' and GNU sed.
40589 2006-12-24 Jim Meyering <jim@meyering.net>
40591 Work around an fchownat bug in glibc-2.4:
40592 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40593 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40594 in spite of the -P option.
40595 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40597 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40598 * modules/openat (Files): Add lib/fchownat.c.
40599 * lib/openat.c (fchownat): Don't define here. Move to...
40600 * lib/fchownat.c: ...this new file.
40602 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
40604 Fix bug reported by Bruno Haible in
40605 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40606 where quotearg.c didn't compile on Mac OS X 10.2 because it
40607 lacks <wchar.h> and wint_t.
40608 * lib/wctype_.h (__wctype_wint_t): New type.
40609 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40610 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40611 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40612 Arg is now of type __wctype_wint_t, not wint_t.
40613 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40614 substitute HAVE_WINT_T.
40615 * modules/wctype (Files): Add m4/wint_t.m4.
40616 (wctype.h): Substitute HAVE_WINT_T.
40618 2006-12-23 Bruno Haible <bruno@clisp.org>
40620 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40622 2006-12-23 Bruno Haible <bruno@clisp.org>
40624 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40626 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40629 2006-12-22 Bruno Haible <bruno@clisp.org>
40631 * lib/copy-file.c: Include acl.h.
40632 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40633 Close the file descriptors only after being done with copy_acl.
40634 * modules/copy-file (Depends-on): Add acl.
40636 2006-12-22 Bruno Haible <bruno@clisp.org>
40638 * gnulib-tool (SED): New variable.
40639 Use $SED instead of sed everywhere.
40641 2006-12-22 Bruno Haible <bruno@clisp.org>
40643 * modules/no-c++: New file.
40644 * m4/no-c++.m4: New file.
40645 * MODULES.html.sh (Support for building libraries and executables):
40648 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
40650 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40651 Include <limits.h>, and use its INT_MAX to rewrite the
40652 j loop so that it does not overflow 'int'. Problem reported by
40654 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40655 Play it safe by shifting left by 1 rather than multiplying by 2,
40656 as GCC is less likely to optimize this away when the value
40657 is signed (when it assumes overflow leads to undefined behavior).
40658 Also, don't assume time_t uses two's complement.
40660 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
40662 * MODULES.html.sh: New module wctype.
40663 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40664 * lib/fnmatch.c: Don't bother to include <wchar.h> before
40665 <wctype.h>, since the new wctype module should fix this.
40666 * lib/quotearg.c: Include <wctype.h> unconditionally, since
40667 the wctype module should arrange for it.
40668 * lib/regex_internal.h: Likewise.
40669 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40670 since the wctype module should handle this now.
40671 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40672 * modules/fnmatch (Depends-on): Add wctype.
40673 * modules/quotearg (Depends-on): Likewise.
40674 * modules/regex (Depends-on): Likewise.
40676 2006-12-19 Bruno Haible <bruno@clisp.org>
40678 * lib/strdup.h [C++]: Wrap definitions in extern "C".
40679 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40681 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40683 * modules/savewd (Depends-on): Fix dependency on fcntl.
40685 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
40687 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40688 conforms to C99, rather than relying on the user's environment
40689 setting of STDINT_H.
40691 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
40692 and Eric Blake <ebb9@byu.net>
40694 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40695 This is more consistent with the other defines here.
40696 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40697 Port to z/OS. Problem reported by Paul Gilmartin.
40698 Change local vars to use gl_ prefix rather than ac_.
40699 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40700 with other defines.
40701 * modules/double-slash-root: New module.
40702 * modules/dirname (Files): Remove m4/double-slash-root.m4.
40703 (Depends-on): Add double-slash-root.
40704 * MODULES.html.sh (File system functions): Mention new module.
40706 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
40708 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40709 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40710 This is for the benefit of gzip, which doesn't do i18n.
40712 2006-12-12 Jim Meyering <jim@meyering.net>
40714 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40715 Reported by Andreas Schwab <schwab@suse.de>.
40717 2006-12-12 Bruno Haible <bruno@clisp.org>
40719 Merge these changes.
40720 2006-09-05 Bruno Haible <bruno@clisp.org>
40721 * lib/iconvme.c (iconv_string): No need to save and restore errno when
40722 iconv_alloc succeeded.
40723 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40724 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40725 test for " && dest " at the end - dest is always != NULL there. Call
40726 iconv with 4xNULL arguments initially, to reset the state. Call iconv
40727 with 2xNULL arguments, also to flush the state storage. Handle the
40728 IRIX iconv behaviour. Realloc the final result, to throw away unused
40731 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
40733 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40734 and fchmodat unconditionally, since glibc 2.4 has them.
40735 Problem reported by Arkadiusz Miskiewicz.
40737 2006-12-10 Bruno Haible <bruno@clisp.org>
40739 * gnulib-tool (func_import): Show the include files only for those
40740 modules that are copied and specified.
40741 Reported by Karl Berry.
40743 2006-12-08 Jim Meyering <jim@meyering.net>
40745 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40746 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
40748 * build-aux/announce-gen: Add two new options, both optional:
40749 --bootstrap-tools=TOOL_LIST
40750 a comma-separated list of tools, e.g.,
40751 autoconf,automake,bison,gnulib
40752 --gnulib-snapshot-date=DATE
40753 if gnulib is in the bootstrap tool list,
40754 then report this as the snapshot date.
40755 If not specified, use the current date/time.
40756 If you specify a date here, be sure it's UTC.
40758 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40760 * tests/test-argp-2.sh: Fix test to match actual output.
40761 (func_compare): Fix sed script to be portable.
40763 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
40765 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40766 workaround for this case. It is not autoconfigured now; offhand
40767 it's hard to see how to autoconfigure it.
40769 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
40771 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40772 a directory that is about to be chowned. Such a directory's
40773 initial file permissions should permit the owner only and this
40774 should not be changed until after the chown, since the group and
40775 other bits would be incorrect if they granted permission before
40778 Fix porting problem for iswctype reported by Georg Schwarz in:
40779 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40780 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40781 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40782 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40783 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40785 2006-12-03 Jim Meyering <jim@meyering.net>
40787 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40788 p->fts_statp may not yet be defined.
40789 (fts_read): Instead, set it in the caller, once p->fts_statp is
40790 sure to be defined, and corresponds to a top-level directory.
40791 This bug made du -x fail. Here's the coreutils test case:
40792 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40793 Reported by Mike Frysinger.
40795 2006-12-01 Jim Meyering <jim@meyering.net>
40797 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40798 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40799 Reported by Simon Josefsson.
40801 2006-11-30 Jim Meyering <jim@meyering.net>
40803 * m4/warning.m4: Use the all-permissive copyright notice
40804 recommended by RMS (rather than LGPL).
40805 * m4/vararrays.m4: Likewise.
40806 * m4/flexmember.m4: Likewise.
40808 2006-11-29 Bruno Haible <bruno@clisp.org>
40810 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40811 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40813 Reported by Simon Josefsson <simon@josefsson.org>.
40815 2006-11-28 James Youngman <jay@gnu.org>
40817 * README: Advise users that they might find the bug-gnulib@gnu.org
40818 and autotools-announce@gnu.org mailing lists useful.
40820 2006-11-28 Bruno Haible <bruno@clisp.org>
40822 * m4/ptrdiff_max.m4: Remove file.
40824 2006-11-21 Bruno Haible <bruno@clisp.org>
40826 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40828 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40829 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40831 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40832 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40834 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40836 2006-11-28 Jim Meyering <jim@meyering.net>
40838 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40839 warning from "gcc -Wshadow" about shadowing the builtin.
40841 2006-11-27 Bruno Haible <bruno@clisp.org>
40843 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40845 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40847 2006-11-27 Bruno Haible <bruno@clisp.org>
40848 Paul Eggert <eggert@cs.ucla.edu>
40850 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40852 2006-11-26 Bruno Haible <bruno@clisp.org>
40854 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40855 noinst_LTLIBRARIES.
40857 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
40858 Bruno Haible <bruno@clisp.org>
40860 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40861 if compiling with "gcc -ansi".
40863 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
40865 Fix some incompatibilities with gcc -ansi -pedantic.
40866 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40867 if compiling pedantically with GCC, unless it's C99 or later.
40868 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40869 it mishandles gcc -ansi -pedantic as well.
40870 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40872 * lib/regexec.c (check_node_accept_bytes): Don't use auto
40873 initializers for struct if -pedantic, unless it's C99 or later.
40875 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
40877 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40878 Don't close an fd more than once. Identical atimes indicate
40879 success, not failure.
40881 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
40883 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40885 2006-11-23 Jim Meyering <jim@meyering.net>
40887 * build-aux/announce-gen: New file. From coreutils.
40889 2006-11-22 Jim Meyering <jim@meyering.net>
40891 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40892 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40893 (fts_read): Use a temporary to narrow the overused st_size member
40894 before using it in a switch statement. Reported by Matthew Woehlke.
40896 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40897 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40899 2006-11-20 Bruno Haible <bruno@clisp.org>
40901 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40902 changequote instead of pairs of brackets.
40903 Reported by Andreas Schwab <schwab@suse.de>.
40905 2006-11-21 Jim Meyering <jim@meyering.net>
40907 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40908 so as to remain compatible with older compilers.
40909 Patch from Michael Deutschmann.
40911 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
40913 * MODULES.html.sh (File system functions): Add openat.
40915 * lib/openat.h (rpl_fstatat): New macro, if
40916 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40917 (fstatat): Define to rpl_fstatat under the same conditions,
40918 unless COMPILING_FSTATAT.
40919 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40920 seems to have the bug.
40921 * lib/fstatat.c: New file.
40922 * modules/openat (Files): Add it.
40924 2006-11-20 Bruno Haible <bruno@clisp.org>
40926 * Makefile: New file.
40928 2006-11-20 Jim Meyering <jim@meyering.net>
40930 The beginnings of syntax-related checks for gnulib.
40931 * lib/Makefile: New file.
40932 * lib/t-idcache: New script. Ensure that the two halves of
40933 idcache.c stay in sync.
40935 * lib/idcache.c: Adjust comments in user- and group- portions to
40936 be more accurate, and to be consistent with one another.
40938 2006-11-20 Jim Meyering <jim@meyering.net>
40940 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40941 continue using the flexible array member (thus, this module performs
40942 half as many malloc calls), with the addition that...
40943 (getgroup, getuser): Consistently record a non-match via an empty
40944 "name" string, and map an empty string match to a NULL return value.
40945 * modules/idcache (Depends-on): Re-add flexmember.
40947 * lib/idcache.c (getuser): Remove all uses of the register keyword.
40948 (getuidbyname, getgroup, getgidbyname): Likewise.
40950 Use cleaner syntax: NULL rather than 0.
40951 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40953 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
40955 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40956 It mishandled the case where the group was missing.
40957 Problem reported by Greg Schafer.
40958 * modules/idcache: Likewise.
40960 2006-11-18 Jim Meyering <jim@meyering.net>
40962 * check-module (%exempt_header): Add exception for some
40963 conditionally-included headers.
40965 * modules/i-ring (Depends-on): Add verify.
40966 (License): Change to LGPL.
40968 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
40970 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40971 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40972 and inttostr.h. Use snprintf rather than uinttostr, so that
40973 LGPLed code doesn't depend on GPLed.
40975 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
40977 * modules/inline (License): Change from GPL to LGPL.
40979 2006-11-17 Jim Meyering <jim@meyering.net>
40981 * modules/d-type (License): Switch to LGPL.
40983 2006-11-15 Bruno Haible <bruno@clisp.org>
40985 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40987 2006-11-15 Eric Blake <ebb9@byu.net>
40989 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40990 the module dependency.
40992 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40993 Bruno Haible <bruno@clisp.org>
40995 * gnulib-tool (func_create_testdir): Add license consistency check.
40997 2006-11-15 Eric Blake <ebb9@byu.net>
40999 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41000 random "(cached)" in configure output.
41002 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41004 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41005 test for conforming inttypes.h is both announced and cached.
41007 * MODULES.html.sh (seen_modules, seen_files): New variables.
41008 (func_module): Rewrite to use a few less gnulib-tool and sed
41009 invocations. Avoid a couple of quadratic algorithms for ...
41010 (missed_modules, missed_files): ... these, with ...
41011 (func_append, func_tmpdir): ... these new functions, from
41012 gnulib-tool. Analogously, install traps for cleanup.
41014 * tests/test-gc.c (main): Remove unused variables.
41015 * tests/test-read-file.c: Include stdlib.h, for 'free'.
41017 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
41019 * modules/inttostr (License): Change to LGPL.
41021 2006-11-14 Eric Blake <ebb9@byu.net>
41023 * modules/tempname (License): Change to LGPL.
41025 2006-11-14 Eric Blake <ebb9@byu.net>
41027 * doc/functions.texi (Function Portability): *printf functions on
41028 Cygwin now understand all POSIX size specifiers.
41030 2006-11-14 Bruno Haible <bruno@clisp.org>
41032 * modules/c-ctype (License): Change to LGPL.
41034 2006-11-12 Bruno Haible <bruno@clisp.org>
41036 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41037 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41038 for GNOME libraries, for which the include files are installed in
41039 subdirectories of $prefix/include.
41041 2006-11-12 Bruno Haible <bruno@clisp.org>
41043 * m4/lib-link.m4: Require at least autoconf-2.54.
41044 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41045 name to underscores for the --with option.
41047 2006-11-13 Bruno Haible <bruno@clisp.org>
41049 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41050 the tests directory.
41051 Reported by Ralf Wildenhues.
41053 2006-11-13 Bruno Haible <bruno@clisp.org>
41055 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41056 (func_emit_initmacro_end): Undo the override here.
41057 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41058 Works around the famous automake error in coreutils.
41060 2006-11-13 Eric Blake <ebb9@byu.net>
41062 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41063 element, not its node.
41065 2006-11-12 Bruno Haible <bruno@clisp.org>
41067 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41068 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41070 2006-11-12 Bruno Haible <bruno@clisp.org>
41072 * gnulib-tool: New option --local-symlink.
41073 (func_usage): Document it.
41074 (lsymbolic): New variable.
41075 (func_import, func_create_testdir): If --symlink was not specified,
41076 test whether --local-symlink was specified and the file comes from
41077 the local_gnulib_dir.
41079 2006-11-12 Bruno Haible <bruno@clisp.org>
41081 * gnulib-tool (func_ln): New function.
41082 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41084 2006-11-12 Bruno Haible <bruno@clisp.org>
41086 Finish support for source files in subdirectories.
41087 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41088 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41090 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41092 2006-11-12 Bruno Haible <bruno@clisp.org>
41094 * gnulib-tool (func_get_automake_snippet): Synthesize also an
41095 EXTRA_lib_SOURCES augmentation.
41096 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41098 2006-11-12 Jim Meyering <jim@meyering.net>
41100 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41101 file descriptors. This also averts a failure on systems with
41102 native openat support when a traversed directory lacks "x" access.
41103 * lib/fts_.h: Include "i-ring.h"
41104 (struct FTS) [fts_fd_ring]: New member.
41105 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41106 (FCHDIR): Add parentheses.
41107 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41108 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
41109 When descending, rather than simply closing the previous
41110 fts_cwd_fd value, push that file descriptor onto the ring.
41111 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41112 (fts_open): Initialize the new fd_ring member.
41113 (fts_close): Clear the ring.
41114 (fts_safe_changedir): When possible, use our new fd_ring to skip
41115 the diropen and fstat and dev/ino comparison that would normally
41116 accompany a virtual `chdir ("..")'.
41118 * modules/fts (Depends-on): Add i-ring.
41119 * modules/i-ring: New module.
41120 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41121 * m4/i-ring.m4: New file.
41123 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41125 * gnulib-tool (func_create_testdir): Fix replacement of
41126 `build-aux' in configure.ac. Run autotools in gltests
41128 (func_create_testdir, func_create_megatestdir, test): There is
41129 no need for '--force' in most autotool invocations in a new
41130 tree. Actually fail the whole test if any of the tools, or the
41131 configure or make stages fail.
41133 Sync from Automake.
41134 * build-aux/gnupload: Revert last change. Add pointer to upload
41135 instructions of the GNU Maintenance Instructions.
41136 Suggestion by Karl Berry.
41138 2006-11-10 Jim Meyering <jim@meyering.net>
41140 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41142 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
41144 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41145 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41146 (bind_textdomain_codeset) [! ENABLE_NLS]:
41147 Evaluate all the arguments. That way, callers get compatible behavior
41148 if the arguments have side effects. Also, it avoids some GCC
41149 diagnostics in some cases; Joel E. Denny reported problems when Bison
41150 was configured with --enable-gcc-warnigs.
41152 2006-11-10 Jim Meyering <jim@meyering.net>
41154 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41155 relevant options in CFLAGS (like -O, -fno-inline) are taken into
41158 2006-11-10 Jim Meyering <jim@meyering.net>
41160 * modules/inline: New file/module.
41161 * modules/xalloc (Files): Remove m4/inline.m4.
41162 (Depends-on): Add inline, instead.
41163 * modules/oset: Likewise.
41164 * modules/list: Likewise.
41166 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
41168 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41169 Problem reported by Matthew Woehlke.
41171 2006-11-09 Bruno Haible <bruno@clisp.org>
41173 * lib/tempname.c (gen_tempname): Remove variant that invokes
41175 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41178 2006-11-08 Bruno Haible <bruno@clisp.org>
41180 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41181 to 'yes' instead of 'cross-compiling'.
41183 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
41185 * lib/quotearg.h (quotearg_free): New decl.
41186 * lib/quotearg.c (quotearg_free): New function.
41187 (slot0, nslots, slotvec0, slotvec):
41188 Now file-scope so that quotearg_free can get at them.
41190 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41192 Sync from Automake.
41193 * build-aux/gnupload: Add missing 'gnu' to example URL.
41194 Report by Karl Berry.
41196 2006-11-08 Bruno Haible <bruno@clisp.org>
41198 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41199 Suggested by Paul Eggert.
41201 2006-11-08 Jim Meyering <jim@meyering.net>
41203 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41204 It's already included if !_LIBC.
41205 (fts_safe_changedir): Add a comment.
41207 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
41209 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41210 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41213 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41214 definitions up, to avoid colliding with change below.
41215 (static_inline) [HAVE_INLINE]: New macro.
41216 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41217 Provide extern decls when !HAVE_INLINE. Do not define unless
41218 static_inline is defined, either by us or by xmalloc.c. Use
41219 static_inline rather than static inline.
41220 (XCALLOC): Optimize sizeof(T) = 1 case.
41221 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41223 2006-11-07 Bruno Haible <bruno@clisp.org>
41225 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41226 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41228 * modules/xalloc (Files): Add m4/inline.m4.
41230 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41232 * README: Fix typo.
41233 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41234 (Miscellanous Notes): ...from this.
41236 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
41238 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41239 Mention that offsetof should be used instead of sizeof.
41242 2006-11-07 Bruno Haible <bruno@clisp.org>
41244 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41246 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
41248 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41249 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41250 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41251 (gl_tree_add_before, gl_tree_add_after):
41252 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41253 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41254 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41255 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41256 (gl_linked_add_after, gl_linked_add_at): Likewise.
41257 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41258 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41259 (gl_tree_add_before, gl_tree_add_after): Likewise.
41260 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41261 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41262 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41264 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41266 * lib/gl_oset.h: Use C comment style, not C++ comment style.
41268 2006-11-06 Bruno Haible <bruno@clisp.org>
41270 * m4/inline.m4: New file.
41271 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41272 * modules/list (Files): Add m4/inline.m4.
41273 * modules/oset (Files): Likewise.
41275 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
41277 * lib/idcache.c: Include <stddef.h>, for offsetof.
41278 (struct userid.name): Change from char * to a flexible array member.
41280 * modules/idcache (Depends-on): Add flexmember.
41282 * MODULES.html.sh (Core language properties): New module flexmember.
41283 * modules/flexmember, m4/flexmember.m4: New files.
41285 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41286 inline functions that are identical with the old xnmalloc_inline,
41287 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
41288 that we can avoid some unnecessary integer multiplications and
41289 divisions in the common case where the element size is known at
41291 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41293 (xnboundedmalloc): Remove.
41294 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41295 arguments, for consistency with rest of this header.
41296 (xcharalloc): Rewrite using XNMALLOC.
41297 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41298 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
41299 versions have been moved to lib/xalloc.h and renamed to be the
41300 non-*_inline versions.
41301 (xmalloc, xrealloc): Implement without reference to the xnmalloc
41302 and xnrealloc functions, since those functions are now inline and
41304 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41305 renaming described above.
41306 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41307 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
41308 captures the dependency in AC_C_INLINE.
41310 New module canonicalize-lgpl, proposed by Charles Wilson in
41311 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41312 with a few small changes afterwards.
41313 * MODULES.html.sh (File system functions): New module
41315 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41316 and canonicalize_file_name.
41317 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41318 * modules/canonicalize-lgpl: New files.
41320 2006-11-05 Bruno Haible <bruno@clisp.org>
41322 * gnulib-tool (func_import, func_create_testdir): Create directories
41323 also for files in subdirectories of lib/.
41325 2006-11-05 Bruno Haible <bruno@clisp.org>
41327 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41330 2006-11-03 Bruno Haible <bruno@clisp.org>
41332 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41333 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41334 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41335 (xnboundedmalloc): New inline function.
41336 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41337 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41339 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41341 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41342 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41343 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41345 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41346 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41348 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41349 gl_tree_add_after): Use XMALLOC instead of xmalloc.
41350 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41352 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41353 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41354 gl_tree_add_after): Use XMALLOC instead of xmalloc.
41355 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41356 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41357 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41358 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41360 2006-11-03 Bruno Haible <bruno@clisp.org>
41362 * lib/c-ctype.h [C++]: Define functions without name mangling.
41363 * lib/fwriteerror.h [C++]: Likewise.
41364 * lib/gcd.h [C++]: Likewise.
41365 * lib/linebreak.h [C++]: Likewise.
41367 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
41369 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41370 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41371 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41372 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41373 Check for functions and headers just once.
41374 Check for declaration of canonicalize_file_name.
41375 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41377 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
41379 * gnulib-tool (func_import): Fix typo in actioncmd.
41381 2006-11-02 Bruno Haible <bruno@clisp.org>
41383 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41384 newline sequence in the Makefile.am snippet as a space, like "make"
41386 Reported by Roger Persson <perrog@gmail.com>.
41388 2006-11-01 Bruno Haible <bruno@clisp.org>
41390 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41391 already declared in <string.h>.
41392 * lib/strcase.h (strncasecmp): Don't declare it if yes.
41394 2006-11-01 Bruno Haible <bruno@clisp.org>
41396 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41397 * lib/strcase.h: Include <string.h>.
41398 (strcasecmp): Define to rpl_strcasecmp here.
41400 2006-11-01 Bruno Haible <bruno@clisp.org>
41402 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41404 2006-11-01 Eric Blake <ebb9@byu.net>
41406 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41408 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41410 2006-10-29 Bruno Haible <bruno@clisp.org>
41412 Make it compile in C++ mode.
41413 * lib/full-write.c (full_rw): Add a cast.
41415 2006-11-01 Bruno Haible <bruno@clisp.org>
41417 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41418 be POSIX compliant.
41419 Reported by Roger Persson <perrog@gmail.com>.
41421 2006-11-01 Eric Blake <ebb9@byu.net>
41423 * lib/getopt_.h: Fix comments.
41425 2006-10-31 Eric Blake <ebb9@byu.net>
41427 * modules/tmpdir (Depends-on): Add sys_stat.
41428 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41429 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41430 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41431 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41434 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
41436 Avoid some C++ diagnostics reported by Bruno Haible.
41437 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41439 (quotearg_alloc): Use xcharalloc rather than xmalloc.
41440 (struct slotvec): Move to top level.
41441 (quotearg_n_options): Rewrite to avoid xmalloc.
41442 * lib/xalloc.h (xcharalloc): New function.
41443 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41444 [defined __cplusplus]: Add function template that provides result
41445 type propagation. This part of the change is from Bruno Haible.
41447 2006-10-29 Bruno Haible <bruno@clisp.org>
41449 Make it compile in C++ mode.
41450 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41451 * lib/strnlen1.c (strnlen1): Cast memchr result.
41452 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41453 * lib/clean-temp.c (string_equals, string_hash): Add casts.
41454 (create_temp_dir): Rename local variable 'template'.
41455 (compile_csharp_using_sscli): Add cast.
41456 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41457 * lib/findprog.c (find_in_path): Likewise.
41458 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41459 * lib/wait-process.c (register_slave_subprocess): Likewise.
41461 2006-10-22 Bruno Haible <bruno@clisp.org>
41463 * modules/tsearch: New file.
41464 * lib/tsearch.h: New file.
41465 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41466 * m4/tsearch.m4: New file.
41467 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41469 2006-10-29 Eric Blake <ebb9@byu.net>
41471 * lib/arcfour.c: Assume config.h.
41472 * lib/arctwo.c: Likewise.
41473 * lib/base64.c: Likewise.
41474 * lib/check-version.c: Likewise.
41475 * lib/crc.c: Likewise.
41476 * lib/des.c: Likewise.
41477 * lib/gc-gnulib.c: Likewise.
41478 * lib/gc-libgcrypt.c: Likewise.
41479 * lib/gc-pbkdf2-sha1.c: Likewise.
41480 * lib/getaddrinfo.c: Likewise.
41481 * lib/getdelim.c: Likewise.
41482 * lib/getline.c: Likewise.
41483 * lib/hmac-md5.c: Likewise.
41484 * lib/hmac-sha1.c: Likewise.
41485 * lib/iconvme.c: Likewise.
41486 * lib/md2.c: Likewise.
41487 * lib/md4.c: Likewise.
41488 * lib/memxor.c: Likewise.
41489 * lib/read-file.c: Likewise.
41490 * lib/readline.c: Likewise.
41491 * lib/rijndael-alg-fst.c: Likewise.
41492 * lib/rijndael-api-fst.c: Likewise.
41493 * lib/xgetdomainname.c: Likewise.
41495 2006-10-28 Eric Blake <ebb9@byu.net>
41497 * lib/xstrndup.c: Assume config.h.
41499 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
41501 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41502 stat-macros.h is now for our own macros, whereas stat_h is for
41503 macros in the <sys/stat.h> name space.
41504 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41505 (STAT_MACROS_H): Remove.
41506 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41507 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41508 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41509 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41510 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41511 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41512 Move these macros to ...
41513 * lib/stat_.h: here. Don't include stat-macros.h.
41514 * lib/canonicalize.c: Don't include stat-macros.h.
41515 * lib/chown.c: Likewise.
41516 * lib/euidaccess.c: Likewise.
41517 * lib/file-type.c: Likewise.
41518 * lib/filemode.c: Likewise.
41519 * lib/glob.c: Likewise.
41520 * lib/isapipe.c: Likewise.
41521 * lib/lchown.c: Likewise.
41522 * lib/lstat.c: Likewise.
41523 * lib/mkdir-p.c: Likewise.
41524 * lib/rmdir.c: Likewise.
41525 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41526 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41527 unless mkdir isn't declared, to speed up 'configure'.
41528 Always create sys/stat.h, since it's unlikely any real sys/stat.h
41529 would define all the S_* symbols.
41530 * modules/canonicalize (Depends-on):
41531 Depend on sys_stat, not stat-macros.
41532 * modules/chown: Likewise.
41533 * modules/euidaccess: Likewise.
41534 * modules/filemode: Likewise.
41535 * modules/file-type: Likewise.
41536 * modules/glob: Likewise.
41537 * modules/isapipe: Likewise.
41538 * modules/lchown: Likewise.
41539 * modules/lstat: Likewise.
41540 * modules/mkancesdirs: Likewise.
41541 * modules/rmdir: Likewise.
41542 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41543 * modules/modechange: Likewise.
41544 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41545 (configure.ac): Remove gl_STAT_MACROS.
41546 * modules/sys_stat (Depends-on): Remove stat-macros.
41548 2006-10-27 Bruno Haible <bruno@clisp.org>
41550 * m4/signed.m4: Remove file.
41551 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41553 * modules/vasnprintf (Files): Remove m4/signed.m4.
41555 2006-10-27 Bruno Haible <bruno@clisp.org>
41557 Update to GNU gettext 0.16.
41558 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41559 m4/inttypes-h.m4, m4/signed.m4.
41560 * m4/gettext.m4: Update to GNU gettext 0.16.
41561 * m4/intl.m4: New file, from GNU gettext.
41562 * m4/intldir.m4: New file, from GNU gettext.
41563 * config/srclist.txt: Update
41565 2006-10-27 Eric Blake <ebb9@byu.net>
41567 * MODULES.html.sh: Document tempname.
41568 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41570 (Files): Move lib/tempname.c...
41571 * modules/tempname: ...to this new module.
41572 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41573 (gl_PREREQ_TEMPNAME): Move...
41574 * m4/tempname.m4: ...to this new file.
41575 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41576 * modules/sys_stat (Depends-on): Add stat-macros.
41577 * lib/stat_.h (includes): Pick up stat macros.
41578 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41579 if stat macros are broken.
41580 * lib/tempname.c (includes): No need to include "stat-macros.h".
41581 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41582 (direxists, __path_search) [!_LIBC]: Don't compile these in
41583 gnulib; the tmpdir module covers that.
41584 * lib/tempname.h: New file.
41586 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
41588 * COPYING: Explain how gnulib-tool converts licence headers.
41589 Almost all wording by Eric Blake.
41591 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
41593 * lib/mbchar.h (is_basic_table): Make read-only.
41594 * lib/mbchar.c (is_basic_table): Likewise.
41595 Reported by John Darrington.
41597 2006-10-25 Bruno Haible <bruno@clisp.org>
41599 * lib/progname.h (set_program_name): Undefine before defining.
41601 2006-10-25 Bruno Haible <bruno@clisp.org>
41603 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41604 false for non-gcc C++ compilers.
41605 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41607 2006-10-24 Bruno Haible <bruno@clisp.org>
41609 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41610 iconv implementations like Irix iconv.
41612 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
41614 * modules/vararrays: New file.
41615 * m4/vararrays.m4: New file, taken from diffutils.
41616 * MODULES.html.sh: New module vararrays.
41618 2006-10-24 Karl Berry <karl@gnu.org>
41620 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41621 Don't call GNU Unix.
41623 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41625 * users.txt: Add Libtool.
41629 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
41631 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41632 to gnulib's policy of including config.h unconditionally.
41634 2006-10-24 Bruno Haible <bruno@clisp.org>
41636 * modules/wcwidth (Files): Add m4/wint_t.m4.
41637 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41638 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41640 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
41642 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41643 to pacify GCC with some -W flags enabled. Problem reported by
41646 2006-10-24 Jim Meyering <jim@meyering.net>
41648 * MODULES.html.sh: Remove uinttostr. It's not a module.
41649 Reported by Karl Berry.
41651 2006-10-23 Bruno Haible <bruno@clisp.org>
41653 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41655 2006-10-24 Bruno Haible <bruno@clisp.org>
41657 * lib/gl_list.h: Use C comment style, not C++ comment style.
41659 2006-10-23 Eric Blake <ebb9@byu.net>
41661 * lib/getaddrinfo.c (includes): Add missing include.
41663 2006-10-23 Bruno Haible <bruno@clisp.org>
41664 Paul Eggert <eggert@cs.ucla.edu>
41666 Ability to rename obstack_free.
41667 * lib/obstack.h (__obstack_free): New macro. Declare instead of
41669 (obstack_free): Invoke the __obstack_free macro.
41670 * lib/obstack.c (obstack_free): Use __obstack_free macro.
41672 2006-10-23 Bruno Haible <bruno@clisp.org>
41673 Paul Eggert <eggert@cs.ucla.edu>
41675 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41676 __argc, __argv from the declaration. (They are defined as macros on
41679 2006-10-22 Bruno Haible <bruno@clisp.org>
41681 * doc/gnulib-intro.texi: New file.
41682 * doc/gnulib.texi: Include it.
41684 2006-10-21 Bruno Haible <bruno@clisp.org>
41686 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41687 "Introduction", "Miscellanous Notes", "Particular Modules".
41689 2006-10-21 Bruno Haible <bruno@clisp.org>
41691 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41692 Change mostlyclean-local rule to avoid sh syntax error from bash
41693 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41695 2006-10-23 Jim Meyering <jim@meyering.net>
41697 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41698 in place of snprintf.
41700 * modules/inttostr (Files): Add lib/uinttostr.c.
41701 * lib/uinttostr.c (inttostr): New file/function.
41702 * lib/inttostr.h (uinttostr): Declare.
41703 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41704 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41706 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
41708 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
41710 * lib/canonicalize.c (ELOOP): Define if not already defined.
41711 Problem reported by Bruno Haible in
41712 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41714 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
41716 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41717 Problem reported by Perry Smith and Ville Laurikari.
41719 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41722 2006-10-19 Bruno Haible <bruno@clisp.org>
41724 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41727 2006-10-19 Bruno Haible <bruno@clisp.org>
41729 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41732 2006-10-19 Bruno Haible <bruno@clisp.org>
41734 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41736 2006-10-19 Bruno Haible <bruno@clisp.org>
41738 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41741 2006-10-19 Bruno Haible <bruno@clisp.org>
41743 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41746 2006-10-19 Bruno Haible <bruno@clisp.org>
41748 * gnulib-tool (func_create_testdir): Don't include ftruncate and
41749 mountlist by default.
41751 2006-10-16 Bruno Haible <bruno@clisp.org>
41753 * lib/c-strstr.c: Include c-strstr.h.
41755 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
41757 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41760 2006-10-18 Bruno Haible <bruno@clisp.org>
41762 * lib/lock.h [C++]: Wrap definitions in extern "C".
41764 2006-10-18 Bruno Haible <bruno@clisp.org>
41766 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41769 2006-10-18 Bruno Haible <bruno@clisp.org>
41771 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41773 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
41775 * lib/xstrtol.h: Include gettext.h.
41776 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41777 Problem reported by Eric Blake.
41778 * modules/xstrtol (Depends-on): Add gettext-h.
41780 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
41782 * lib/strftime.c (advance): New macro.
41783 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
41784 incomplete type, so you can't add 0 to it. Problem and patch
41785 reported by Eelco Dolstra for dietlibc.
41787 2006-10-18 Jim Meyering <jim@meyering.net>
41789 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41790 type for a local, and rename it: s/up/user_proc/.
41792 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
41794 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41795 READ_UTMP_USER_PROCESS.
41796 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41798 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
41800 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41801 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41803 2006-10-17 Eric Blake <ebb9@byu.net>
41805 * lib/sigprocmask.c (sigprocmask): Fix typo.
41807 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41809 * modules/clean-temp (Makefile.am): Don't add to make output...
41810 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41813 2006-10-17 Bruno Haible <bruno@clisp.org>
41815 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41816 differently if DEFAULT_TEXT_DOMAIN is set.
41818 2006-10-16 Bruno Haible <bruno@clisp.org>
41820 * lib/clean-temp.c: Include fwriteerror.h.
41822 2006-10-16 Bruno Haible <bruno@clisp.org>
41824 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41826 2006-10-16 Bruno Haible <bruno@clisp.org>
41828 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41829 * lib/sigprocmask.h: Include <sys/types.h>.
41830 (sigset_t): Use the system's definition if present.
41832 2006-10-17 Eric Blake <ebb9@byu.net>
41834 * lib/xvasprintf.c (includes): Assume config.h.
41835 * lib/xasprintf.c (includes): Likewise.
41837 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
41839 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41840 at least as wide as intmax_t.
41842 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
41844 (Imported from Automake.)
41845 * build-aux/gnupload: Update to version 1.1 of directive file.
41847 2006-10-16 Eric Blake <ebb9@byu.net>
41849 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41850 match Automake 1.10a.
41852 2006-10-14 Bruno Haible <bruno@clisp.org>
41854 * modules/sigprocmask: New file.
41855 * lib/sigprocmask.h: New file.
41856 * lib/sigprocmask.c: New file.
41857 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41858 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41859 request sigprocmask.o.
41860 (gl_PREREQ_SIGPROCMASK): New macro.
41861 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41862 (Depends-on): Add sigprocmask.
41863 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41864 gt_SIGNALBLOCKING. Test for 'raise' only once.
41865 * lib/fatal-signal.c: Include sigprocmask.h.
41866 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41867 unblock_fatal_signals): Define always.
41868 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41871 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
41873 Sync from Automake.
41874 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41875 which incorrectly sets the mode of an existing destination
41876 directory. In some cases the unpatched install-sh could do the
41877 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41878 system. We hope this is rare in practice, but it's clearly worth
41879 fixing. Problem reported by Alex Unleashed in
41880 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41881 Also, don't bother to check for -m bugs unless we're using -m;
41882 suggested by Stepan Kasal.
41884 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41886 Sync from Automake.
41887 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41888 `-c' flag, so they appear at the same position as in %FASTDEP%
41889 mode in depend2.am. Fixes build failure for FreeBSD's c89,
41890 which ignores unknown options only after the first non-option.
41891 Bug report against M4 by Nelson H. F. Beebe.
41893 2006-10-13 Jim Meyering <jim@meyering.net>
41895 Fix a bug in yesterday's change.
41896 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41897 p->fts_statp->st_dev would be used uninitialized.
41898 Ensures that we always call fts_stat on the very first entry.
41899 Miklos Szeredi reported that find -xdev stopped working.
41901 2006-10-12 Bruno Haible <bruno@clisp.org>
41903 * gnulib-tool (func_get_automake_snippet): Append an automatically
41904 computed EXTRA_DIST augmentation.
41905 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41906 * modules/alloca-opt (Makefile.am): Likewise.
41907 * modules/allocsa (Makefile.am): Likewise.
41908 * modules/arcfour (Makefile.am): Likewise.
41909 * modules/arctwo (Makefile.am): Likewise.
41910 * modules/argmatch (Makefile.am): Likewise.
41911 * modules/argz (Makefile.am): Likewise.
41912 * modules/atexit (Makefile.am): Likewise.
41913 * modules/backupfile (Makefile.am): Likewise.
41914 * modules/byteswap (Makefile.am): Likewise.
41915 * modules/c-strtod (Makefile.am): Likewise.
41916 * modules/c-strtold (Makefile.am): Likewise.
41917 * modules/calloc (Makefile.am): Likewise.
41918 * modules/canon-host (Makefile.am): Likewise.
41919 * modules/canonicalize (Makefile.am): Likewise.
41920 * modules/chdir-long (Makefile.am): Likewise.
41921 * modules/chdir-safer (Makefile.am): Likewise.
41922 * modules/check-version (Makefile.am): Likewise.
41923 * modules/chown (Makefile.am): Likewise.
41924 * modules/cloexec (Makefile.am): Likewise.
41925 * modules/close-stream (Makefile.am): Likewise.
41926 * modules/closeout (Makefile.am): Likewise.
41927 * modules/crc (Makefile.am): Likewise.
41928 * modules/csharpexec (Makefile.am): Likewise.
41929 * modules/cycle-check (Makefile.am): Likewise.
41930 * modules/des (Makefile.am): Likewise.
41931 * modules/dev-ino (Makefile.am): Likewise.
41932 * modules/dirfd (Makefile.am): Likewise.
41933 * modules/dirname (Makefile.am): Likewise.
41934 * modules/dup2 (Makefile.am): Likewise.
41935 * modules/eealloc (Makefile.am): Likewise.
41936 * modules/error (Makefile.am): Likewise.
41937 * modules/euidaccess (Makefile.am): Likewise.
41938 * modules/exclude (Makefile.am): Likewise.
41939 * modules/exitfail (Makefile.am): Likewise.
41940 * modules/fcntl-safer (Makefile.am): Likewise.
41941 * modules/fcntl (Makefile.am): Likewise.
41942 * modules/file-type (Makefile.am): Likewise.
41943 * modules/fileblocks (Makefile.am): Likewise.
41944 * modules/filemode (Makefile.am): Likewise.
41945 * modules/filenamecat (Makefile.am): Likewise.
41946 * modules/fnmatch (Makefile.am): Likewise.
41947 * modules/fopen-safer (Makefile.am): Likewise.
41948 * modules/fpending (Makefile.am): Likewise.
41949 * modules/fprintftime (Makefile.am): Likewise.
41950 * modules/free (Makefile.am): Likewise.
41951 * modules/fsusage (Makefile.am): Likewise.
41952 * modules/ftruncate (Makefile.am): Likewise.
41953 * modules/fts (Makefile.am): Likewise.
41954 * modules/gc-arcfour (Makefile.am): Likewise.
41955 * modules/gc-des (Makefile.am): Likewise.
41956 * modules/gc-hmac-md5 (Makefile.am): Likewise.
41957 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41958 * modules/gc-md4 (Makefile.am): Likewise.
41959 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41960 * modules/gc-sha1 (Makefile.am): Likewise.
41961 * modules/gc (Makefile.am): Likewise.
41962 * modules/getaddrinfo (Makefile.am): Likewise.
41963 * modules/getcwd (Makefile.am): Likewise.
41964 * modules/getdelim (Makefile.am): Likewise.
41965 * modules/getdomainname (Makefile.am): Likewise.
41966 * modules/getgroups (Makefile.am): Likewise.
41967 * modules/gethostname (Makefile.am): Likewise.
41968 * modules/gethrxtime (Makefile.am): Likewise.
41969 * modules/getline (Makefile.am): Likewise.
41970 * modules/getloadavg (Makefile.am): Likewise.
41971 * modules/getlogin_r (Makefile.am): Likewise.
41972 * modules/getndelim2 (Makefile.am): Likewise.
41973 * modules/getopt (Makefile.am): Likewise.
41974 * modules/getpagesize (Makefile.am): Likewise.
41975 * modules/getpass-gnu (Makefile.am): Likewise.
41976 * modules/getpass (Makefile.am): Likewise.
41977 * modules/getsubopt (Makefile.am): Likewise.
41978 * modules/gettime (Makefile.am): Likewise.
41979 * modules/gettimeofday (Makefile.am): Likewise.
41980 * modules/getugroups (Makefile.am): Likewise.
41981 * modules/getusershell (Makefile.am): Likewise.
41982 * modules/glob (Makefile.am): Likewise.
41983 * modules/group-member (Makefile.am): Likewise.
41984 * modules/hard-locale (Makefile.am): Likewise.
41985 * modules/hash (Makefile.am): Likewise.
41986 * modules/hmac-md5 (Makefile.am): Likewise.
41987 * modules/hmac-sha1 (Makefile.am): Likewise.
41988 * modules/human (Makefile.am): Likewise.
41989 * modules/idcache (Makefile.am): Likewise.
41990 * modules/imaxabs (Makefile.am): Likewise.
41991 * modules/imaxdiv (Makefile.am): Likewise.
41992 * modules/inet_ntop (Makefile.am): Likewise.
41993 * modules/inet_pton (Makefile.am): Likewise.
41994 * modules/intprops (Makefile.am): Likewise.
41995 * modules/inttostr (Makefile.am): Likewise.
41996 * modules/inttypes (Makefile.am): Likewise.
41997 * modules/isapipe (Makefile.am): Likewise.
41998 * modules/javaversion (Makefile.am): Likewise.
41999 * modules/lchmod (Makefile.am): Likewise.
42000 * modules/lchown (Makefile.am): Likewise.
42001 * modules/localcharset (Makefile.am): Likewise.
42002 * modules/long-options (Makefile.am): Likewise.
42003 * modules/lstat (Makefile.am): Likewise.
42004 * modules/malloc (Makefile.am): Likewise.
42005 * modules/mathl (Makefile.am): Likewise.
42006 * modules/mbchar (Makefile.am): Likewise.
42007 * modules/md2 (Makefile.am): Likewise.
42008 * modules/md4 (Makefile.am): Likewise.
42009 * modules/md5 (Makefile.am): Likewise.
42010 * modules/memcasecmp (Makefile.am): Likewise.
42011 * modules/memchr (Makefile.am): Likewise.
42012 * modules/memcmp (Makefile.am): Likewise.
42013 * modules/memcoll (Makefile.am): Likewise.
42014 * modules/memcpy (Makefile.am): Likewise.
42015 * modules/memmem (Makefile.am): Likewise.
42016 * modules/memmove (Makefile.am): Likewise.
42017 * modules/mempcpy (Makefile.am): Likewise.
42018 * modules/memrchr (Makefile.am): Likewise.
42019 * modules/memset (Makefile.am): Likewise.
42020 * modules/memxor (Makefile.am): Likewise.
42021 * modules/mkancesdirs (Makefile.am): Likewise.
42022 * modules/mkdir-p (Makefile.am): Likewise.
42023 * modules/mkdir (Makefile.am): Likewise.
42024 * modules/mkdtemp (Makefile.am): Likewise.
42025 * modules/mkstemp (Makefile.am): Likewise.
42026 * modules/mktime (Makefile.am): Likewise.
42027 * modules/modechange (Makefile.am): Likewise.
42028 * modules/mountlist (Makefile.am): Likewise.
42029 * modules/nanosleep (Makefile.am): Likewise.
42030 * modules/obstack (Makefile.am): Likewise.
42031 * modules/openat (Makefile.am): Likewise.
42032 * modules/pagealign_alloc (Makefile.am): Likewise.
42033 * modules/pathmax (Makefile.am): Likewise.
42034 * modules/physmem (Makefile.am): Likewise.
42035 * modules/poll (Makefile.am): Likewise.
42036 * modules/posixtm (Makefile.am): Likewise.
42037 * modules/posixver (Makefile.am): Likewise.
42038 * modules/putenv (Makefile.am): Likewise.
42039 * modules/quote (Makefile.am): Likewise.
42040 * modules/quotearg (Makefile.am): Likewise.
42041 * modules/raise (Makefile.am): Likewise.
42042 * modules/read-file (Makefile.am): Likewise.
42043 * modules/readline (Makefile.am): Likewise.
42044 * modules/readlink (Makefile.am): Likewise.
42045 * modules/readtokens (Makefile.am): Likewise.
42046 * modules/readutmp (Makefile.am): Likewise.
42047 * modules/realloc (Makefile.am): Likewise.
42048 * modules/regex (Makefile.am): Likewise.
42049 * modules/rename-dest-slash (Makefile.am): Likewise.
42050 * modules/rename (Makefile.am): Likewise.
42051 * modules/rijndael (Makefile.am): Likewise.
42052 * modules/rmdir (Makefile.am): Likewise.
42053 * modules/rpmatch (Makefile.am): Likewise.
42054 * modules/safe-read (Makefile.am): Likewise.
42055 * modules/safe-write (Makefile.am): Likewise.
42056 * modules/same-inode (Makefile.am): Likewise.
42057 * modules/same (Makefile.am): Likewise.
42058 * modules/save-cwd (Makefile.am): Likewise.
42059 * modules/savedir (Makefile.am): Likewise.
42060 * modules/setenv (Makefile.am): Likewise.
42061 * modules/settime (Makefile.am): Likewise.
42062 * modules/sha1 (Makefile.am): Likewise.
42063 * modules/sig2str (Makefile.am): Likewise.
42064 * modules/snprintf (Makefile.am): Likewise.
42065 * modules/stat-macros (Makefile.am): Likewise.
42066 * modules/stat-time (Makefile.am): Likewise.
42067 * modules/stdbool (Makefile.am): Likewise.
42068 * modules/stdint (Makefile.am): Likewise.
42069 * modules/stdlib-safer (Makefile.am): Likewise.
42070 * modules/stpcpy (Makefile.am): Likewise.
42071 * modules/stpncpy (Makefile.am): Likewise.
42072 * modules/strcase (Makefile.am): Likewise.
42073 * modules/strcasestr (Makefile.am): Likewise.
42074 * modules/strchrnul (Makefile.am): Likewise.
42075 * modules/strcspn (Makefile.am): Likewise.
42076 * modules/strdup (Makefile.am): Likewise.
42077 * modules/strerror (Makefile.am): Likewise.
42078 * modules/strftime (Makefile.am): Likewise.
42079 * modules/strndup (Makefile.am): Likewise.
42080 * modules/strnlen (Makefile.am): Likewise.
42081 * modules/strpbrk (Makefile.am): Likewise.
42082 * modules/strsep (Makefile.am): Likewise.
42083 * modules/strstr (Makefile.am): Likewise.
42084 * modules/strtod (Makefile.am): Likewise.
42085 * modules/strtoimax (Makefile.am): Likewise.
42086 * modules/strtok_r (Makefile.am): Likewise.
42087 * modules/strtol (Makefile.am): Likewise.
42088 * modules/strtoll (Makefile.am): Likewise.
42089 * modules/strtoul (Makefile.am): Likewise.
42090 * modules/strtoull (Makefile.am): Likewise.
42091 * modules/strtoumax (Makefile.am): Likewise.
42092 * modules/strverscmp (Makefile.am): Likewise.
42093 * modules/sys_socket (Makefile.am): Likewise.
42094 * modules/sys_stat (Makefile.am): Likewise.
42095 * modules/sysexits (Makefile.am): Likewise.
42096 * modules/time_r (Makefile.am): Likewise.
42097 * modules/timegm (Makefile.am): Likewise.
42098 * modules/timespec (Makefile.am): Likewise.
42099 * modules/tmpfile-safer (Makefile.am): Likewise.
42100 * modules/trim (Makefile.am): Likewise.
42101 * modules/unistd-safer (Makefile.am): Likewise.
42102 * modules/unlinkdir (Makefile.am): Likewise.
42103 * modules/unlocked-io (Makefile.am): Likewise.
42104 * modules/userspec (Makefile.am): Likewise.
42105 * modules/utime (Makefile.am): Likewise.
42106 * modules/utimecmp (Makefile.am): Likewise.
42107 * modules/utimens (Makefile.am): Likewise.
42108 * modules/vasnprintf (Makefile.am): Likewise.
42109 * modules/vasprintf (Makefile.am): Likewise.
42110 * modules/vsnprintf (Makefile.am): Likewise.
42111 * modules/xalloc (Makefile.am): Likewise.
42112 * modules/xgetcwd (Makefile.am): Likewise.
42113 * modules/xnanosleep (Makefile.am): Likewise.
42114 * modules/xreadlink (Makefile.am): Likewise.
42115 * modules/xstrtod (Makefile.am): Likewise.
42116 * modules/xstrtol (Makefile.am): Likewise.
42117 * modules/xstrtold (Makefile.am): Likewise.
42118 * modules/yesno (Makefile.am): Likewise.
42119 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42121 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
42123 * modules/error (Makefile.am): Distribute files through
42124 EXTRA_DIST, not lib_SOURCES.
42126 2006-10-12 Eric Blake <ebb9@byu.net>
42128 * modules/error (Makefile.am): Distribute files in /lib.
42129 * modules/obstack (Makefile.am): Likewise.
42131 2006-10-12 Bruno Haible <bruno@clisp.org>
42133 * modules/acl (Makefile.am): Distribute all files in lib/ through
42135 * modules/arcfour (Makefile.am): Likewise.
42136 * modules/arctwo (Makefile.am): Likewise.
42137 * modules/argmatch (Makefile.am): Likewise.
42138 * modules/argz (Makefile.am): Likewise.
42139 * modules/atexit (Makefile.am): Likewise.
42140 * modules/backupfile (Makefile.am): Likewise.
42141 * modules/c-strtod (Makefile.am): Likewise.
42142 * modules/c-strtold (Makefile.am): Likewise.
42143 * modules/calloc (Makefile.am): Likewise.
42144 * modules/canon-host (Makefile.am): Likewise.
42145 * modules/canonicalize (Makefile.am): Likewise.
42146 * modules/chdir-long (Makefile.am): Likewise.
42147 * modules/chdir-safer (Makefile.am): Likewise.
42148 * modules/check-version (Makefile.am): Likewise.
42149 * modules/chown (Makefile.am): Likewise.
42150 * modules/cloexec (Makefile.am): Likewise.
42151 * modules/close-stream (Makefile.am): Likewise.
42152 * modules/closeout (Makefile.am): Likewise.
42153 * modules/crc (Makefile.am): Likewise.
42154 * modules/cycle-check (Makefile.am): Likewise.
42155 * modules/des (Makefile.am): Likewise.
42156 * modules/dirfd (Makefile.am): Likewise.
42157 * modules/dirname (Makefile.am): Likewise.
42158 * modules/dup2 (Makefile.am): Likewise.
42159 * modules/euidaccess (Makefile.am): Likewise.
42160 * modules/exclude (Makefile.am): Likewise.
42161 * modules/exitfail (Makefile.am): Likewise.
42162 * modules/fcntl-safer (Makefile.am): Likewise.
42163 * modules/file-type (Makefile.am): Likewise.
42164 * modules/fileblocks (Makefile.am): Likewise.
42165 * modules/filemode (Makefile.am): Likewise.
42166 * modules/filenamecat (Makefile.am): Likewise.
42167 * modules/fnmatch (Makefile.am): Likewise.
42168 * modules/fopen-safer (Makefile.am): Likewise.
42169 * modules/fpending (Makefile.am): Likewise.
42170 * modules/fprintftime (Makefile.am): Likewise.
42171 * modules/free (Makefile.am): Likewise.
42172 * modules/fsusage (Makefile.am): Likewise.
42173 * modules/ftruncate (Makefile.am): Likewise.
42174 * modules/fts (Makefile.am): Likewise.
42175 * modules/gc (Makefile.am): Likewise.
42176 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42177 * modules/getaddrinfo (Makefile.am): Likewise.
42178 * modules/getcwd (Makefile.am): Likewise.
42179 * modules/getdelim (Makefile.am): Likewise.
42180 * modules/getdomainname (Makefile.am): Likewise.
42181 * modules/getgroups (Makefile.am): Likewise.
42182 * modules/gethostname (Makefile.am): Likewise.
42183 * modules/gethrxtime (Makefile.am): Likewise.
42184 * modules/getline (Makefile.am): Likewise.
42185 * modules/getloadavg (Makefile.am): Likewise.
42186 * modules/getlogin_r (Makefile.am): Likewise.
42187 * modules/getopt (Makefile.am): Likewise.
42188 * modules/getpass (Makefile.am): Likewise.
42189 * modules/getpass-gnu (Makefile.am): Likewise.
42190 * modules/getsubopt (Makefile.am): Likewise.
42191 * modules/gettime (Makefile.am): Likewise.
42192 * modules/gettimeofday (Makefile.am): Likewise.
42193 * modules/getugroups (Makefile.am): Likewise.
42194 * modules/getusershell (Makefile.am): Likewise.
42195 * modules/glob (Makefile.am): Likewise.
42196 * modules/group-member (Makefile.am): Likewise.
42197 * modules/hard-locale (Makefile.am): Likewise.
42198 * modules/hash (Makefile.am): Likewise.
42199 * modules/hmac-md5 (Makefile.am): Likewise.
42200 * modules/hmac-sha1 (Makefile.am): Likewise.
42201 * modules/human (Makefile.am): Likewise.
42202 * modules/idcache (Makefile.am): Likewise.
42203 * modules/imaxabs (Makefile.am): Likewise.
42204 * modules/imaxdiv (Makefile.am): Likewise.
42205 * modules/inet_ntop (Makefile.am): Likewise.
42206 * modules/inet_pton (Makefile.am): Likewise.
42207 * modules/inttostr (Makefile.am): Likewise.
42208 * modules/isapipe (Makefile.am): Likewise.
42209 * modules/lchown (Makefile.am): Likewise.
42210 * modules/long-options (Makefile.am): Likewise.
42211 * modules/lstat (Makefile.am): Likewise.
42212 * modules/malloc (Makefile.am): Likewise.
42213 * modules/mathl (Makefile.am): Likewise.
42214 * modules/mbchar (Makefile.am): Likewise.
42215 * modules/md2 (Makefile.am): Likewise.
42216 * modules/md4 (Makefile.am): Likewise.
42217 * modules/md5 (Makefile.am): Likewise.
42218 * modules/memcasecmp (Makefile.am): Likewise.
42219 * modules/memchr (Makefile.am): Likewise.
42220 * modules/memcmp (Makefile.am): Likewise.
42221 * modules/memcoll (Makefile.am): Likewise.
42222 * modules/memcpy (Makefile.am): Likewise.
42223 * modules/memmem (Makefile.am): Likewise.
42224 * modules/memmove (Makefile.am): Likewise.
42225 * modules/mempcpy (Makefile.am): Likewise.
42226 * modules/memrchr (Makefile.am): Likewise.
42227 * modules/memset (Makefile.am): Likewise.
42228 * modules/memxor (Makefile.am): Likewise.
42229 * modules/mkancesdirs (Makefile.am): Likewise.
42230 * modules/mkdir (Makefile.am): Likewise.
42231 * modules/mkdir-p (Makefile.am): Likewise.
42232 * modules/mkdtemp (Makefile.am): Likewise.
42233 * modules/mkstemp (Makefile.am): Likewise.
42234 * modules/mktime (Makefile.am): Likewise.
42235 * modules/modechange (Makefile.am): Likewise.
42236 * modules/mountlist (Makefile.am): Likewise.
42237 * modules/nanosleep (Makefile.am): Likewise.
42238 * modules/openat (Makefile.am): Likewise.
42239 * modules/pagealign_alloc (Makefile.am): Likewise.
42240 * modules/physmem (Makefile.am): Likewise.
42241 * modules/poll (Makefile.am): Likewise.
42242 * modules/posixtm (Makefile.am): Likewise.
42243 * modules/posixver (Makefile.am): Likewise.
42244 * modules/putenv (Makefile.am): Likewise.
42245 * modules/quote (Makefile.am): Likewise.
42246 * modules/quotearg (Makefile.am): Likewise.
42247 * modules/raise (Makefile.am): Likewise.
42248 * modules/read-file (Makefile.am): Likewise.
42249 * modules/readline (Makefile.am): Likewise.
42250 * modules/readlink (Makefile.am): Likewise.
42251 * modules/readtokens (Makefile.am): Likewise.
42252 * modules/readutmp (Makefile.am): Likewise.
42253 * modules/realloc (Makefile.am): Likewise.
42254 * modules/regex (Makefile.am): Likewise.
42255 * modules/rename (Makefile.am): Likewise.
42256 * modules/rename-dest-slash (Makefile.am): Likewise.
42257 * modules/rijndael (Makefile.am): Likewise.
42258 * modules/rmdir (Makefile.am): Likewise.
42259 * modules/rpmatch (Makefile.am): Likewise.
42260 * modules/safe-read (Makefile.am): Likewise.
42261 * modules/safe-write (Makefile.am): Likewise.
42262 * modules/same (Makefile.am): Likewise.
42263 * modules/save-cwd (Makefile.am): Likewise.
42264 * modules/savedir (Makefile.am): Likewise.
42265 * modules/setenv (Makefile.am): Likewise.
42266 * modules/settime (Makefile.am): Likewise.
42267 * modules/sha1 (Makefile.am): Likewise.
42268 * modules/sig2str (Makefile.am): Likewise.
42269 * modules/snprintf (Makefile.am): Likewise.
42270 * modules/stdlib-safer (Makefile.am): Likewise.
42271 * modules/stpcpy (Makefile.am): Likewise.
42272 * modules/stpncpy (Makefile.am): Likewise.
42273 * modules/strcase (Makefile.am): Likewise.
42274 * modules/strcasestr (Makefile.am): Likewise.
42275 * modules/strchrnul (Makefile.am): Likewise.
42276 * modules/strcspn (Makefile.am): Likewise.
42277 * modules/strdup (Makefile.am): Likewise.
42278 * modules/strerror (Makefile.am): Likewise.
42279 * modules/strftime (Makefile.am): Likewise.
42280 * modules/strndup (Makefile.am): Likewise.
42281 * modules/strnlen (Makefile.am): Likewise.
42282 * modules/strpbrk (Makefile.am): Likewise.
42283 * modules/strsep (Makefile.am): Likewise.
42284 * modules/strstr (Makefile.am): Likewise.
42285 * modules/strtod (Makefile.am): Likewise.
42286 * modules/strtoimax (Makefile.am): Likewise.
42287 * modules/strtok_r (Makefile.am): Likewise.
42288 * modules/strtol (Makefile.am): Likewise.
42289 * modules/strtoll (Makefile.am): Likewise.
42290 * modules/strtoul (Makefile.am): Likewise.
42291 * modules/strtoull (Makefile.am): Likewise.
42292 * modules/strtoumax (Makefile.am): Likewise.
42293 * modules/strverscmp (Makefile.am): Likewise.
42294 * modules/time_r (Makefile.am): Likewise.
42295 * modules/timegm (Makefile.am): Likewise.
42296 * modules/tmpfile-safer (Makefile.am): Likewise.
42297 * modules/unistd-safer (Makefile.am): Likewise.
42298 * modules/unlinkdir (Makefile.am): Likewise.
42299 * modules/userspec (Makefile.am): Likewise.
42300 * modules/utime (Makefile.am): Likewise.
42301 * modules/utimecmp (Makefile.am): Likewise.
42302 * modules/utimens (Makefile.am): Likewise.
42303 * modules/vasnprintf (Makefile.am): Likewise.
42304 * modules/vasprintf (Makefile.am): Likewise.
42305 * modules/vsnprintf (Makefile.am): Likewise.
42306 * modules/xalloc (Makefile.am): Likewise.
42307 * modules/xgetcwd (Makefile.am): Likewise.
42308 * modules/xnanosleep (Makefile.am): Likewise.
42309 * modules/xreadlink (Makefile.am): Likewise.
42310 * modules/xstrtod (Makefile.am): Likewise.
42311 * modules/xstrtol (Makefile.am): Likewise.
42312 * modules/xstrtold (Makefile.am): Likewise.
42313 * modules/yesno (Makefile.am): Likewise.
42315 2006-10-12 Jim Meyering <jim@meyering.net>
42317 * m4/getloadavg.m4: Revert the change below.
42319 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42320 lib/getloadavg.c using "ls -L", not "test -f". The latter would
42321 fail with a symlink, which is what coreutils' ./bootstrap now
42322 creates by default.
42324 2006-10-12 Bruno Haible <bruno@clisp.org>
42326 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42328 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42329 MSVC and mingw explicitly.
42331 2006-10-11 Simon Josefsson <jas@extundo.com>
42332 Bruno Haible <bruno@clisp.org>
42334 Add support for multiple gnulib-tool invocations in the scope of a
42335 single configure.ac file.
42336 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42337 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42338 with the same contents as the _LIBADD variable.
42339 (func_emit_initmacro_start, func_emit_initmacro_end,
42340 func_emit_initmacro_done): New functions.
42341 (func_import, func_create_testdir): Invoke them. Allow the identifiers
42342 gl_LIBOBJS and gl_LTLIBOBJS.
42344 2006-10-11 Bruno Haible <bruno@clisp.org>
42346 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42347 (func_create_testdir): Don't create po/Makefile.am, don't invoke
42348 autoreconf. Instead, invoke autopoint explicitly but move back the
42349 *.m4 files from gnulib.
42351 2006-10-11 Bruno Haible <bruno@clisp.org>
42353 * gnulib-tool (func_usage): Make module names after --create-testdir
42355 (func_create_testdir): If no module was specified, use nearly all
42358 2006-10-12 Jim Meyering <jim@meyering.net>
42360 Big performance improvement for fts-based tools that use FTS_NOSTAT.
42361 Avoid spurious inode-mismatch problems on non-POSIX file systems.
42362 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42363 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42364 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42365 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42366 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42367 (fts_set_stat_required): New function.
42368 (fts_open): Defer the calls to fts_stat, if possible or requested.
42369 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42370 into fts_stat itself.
42371 (fts_read): Perform any required (deferred) fts_stat call.
42372 (fts_build): Likewise, for the directory we're about to open and read.
42373 In the readdir loop, carefully decide whether each entry will require
42374 an eventual call to fts_stat, using dirent.d_type info if available.
42375 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42376 a command line argument into this function. Update all callers.
42377 Map a return value of FTS_DOT to FTS_D for a command line argument.
42378 * modules/fts (Depends-on): Add d-type. Alphabetize.
42379 Thanks to Miklos Szeredi for his tenacity and for the initial
42380 bug report about "find" failing on a FUSE-based file system.
42382 * lib/fts.c (fts_open): Use consistent indentation.
42384 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
42386 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42387 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42388 reported by Jim Meyering. All uses of cache variables renamed
42389 to match Autoconf's.
42390 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42393 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42394 Fix misspelling in diagnostic.
42396 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
42398 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42399 defined. Problem reported by Matthew Woehlke.
42401 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42402 Add support for Tandem NonStop R series.
42403 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42406 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42407 (has_trailing_slash): Omit size arg; all callers changed.
42408 Omit 'inline', since it doesn't help performance and we'd
42409 need to configure it.
42410 Don't count //, ///, etc. as having a trailing slash.
42411 As a side effect, this removes a C99ism reported by Matthew Woehlke.
42412 (rpl_rename_dest_slash): On failure, use rename's errno rather
42413 than (in some cases) an incorrect or junk errno.
42414 Simplify code by removing need to compute length; this does
42415 cause it to make two passes instead of one over the file name,
42418 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42419 change, since Autoconf's version may no longer be appropriate now
42420 that we are using CVS Autoconf's version. Add support for Tandem.
42422 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
42423 Bruno Haible <bruno@clisp.org>
42425 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42426 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42427 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42428 gl_AC_TYPE_LONG_LONG.
42430 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42431 instead of HAVE_LONG_LONG.
42432 * lib/printf-args.c (printf_fetchargs): Likewise.
42433 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42434 * lib/vasnprintf.c (VASNPRINTF): Likewise.
42435 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42436 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42437 gl_AC_TYPE_LONG_LONG.
42439 2006-10-11 Bruno Haible <bruno@clisp.org>
42441 * m4/longlong.m4: Add comments.
42442 * m4/ulonglong.m4: Likewise.
42444 2006-10-10 Bruno Haible <bruno@clisp.org>
42446 Make it possible to #define stpcpy, strdup to aliases.
42447 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42448 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42450 2006-10-10 Bruno Haible <bruno@clisp.org>
42452 Make it possible to #define gcd to an alias.
42453 * lib/gcd.c: Include config.h.
42455 2006-10-10 Bruno Haible <bruno@clisp.org>
42457 Make it possible to #define c_isascii to an alias.
42458 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42459 defined. Undefine the macros before defining them, to avoid gcc
42461 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42462 define NO_C_CTYPE_MACROS early.
42464 2006-10-10 Bruno Haible <bruno@clisp.org>
42466 Make it possible to #define set_program_name to an alias.
42467 * lib/progname.c: Don't undefine set_program_name; instead, undefine
42468 ENABLE_RELOCATABLE early.
42470 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
42472 Port to Tandem NSK OSS, which has 64-bit signed int but at most
42473 32-bit unsigned int. Problem reported by Matthew Woehlke in:
42474 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42475 More generally, don't assume that 64-bit signed int is available
42476 if unsigned int is, and vice versa.
42477 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42478 unsigned symbols, not on their signed counterparts.
42479 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42480 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42481 (UINT64_C, UINTMAX_C):
42483 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42484 unsigned counterparts.
42485 (Have_long_long, Unsigned): New macros.
42486 (Int): Renamed from INT.
42487 (strtoimax): Use the new macros.
42488 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42489 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42490 * modules/inttypes (inttypes.h): Substitute
42491 HAVE_UNSIGNED_LONG_LONG_INT.
42492 * modules/stdint (stdint.h): Likewise.
42493 (Files): Add m4/ulonglong.m4.
42495 2006-10-10 Bruno Haible <bruno@clisp.org>
42497 Fix a gcc -Wshadow warning.
42498 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42500 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42501 gl_linked_indexof_from_to): Likewise.
42502 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42504 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42506 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42507 Reported by Eric Blake.
42509 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
42511 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42512 for NetBSD. Problem reported by Bruno Haible.
42514 2006-10-09 Jim Meyering <jim@meyering.net>
42516 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42517 Patch from Bruno Haible.
42519 2006-10-09 Jim Meyering <jim@meyering.net>
42521 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42522 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42523 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42525 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
42527 Don't include <config.h> twice; this doesn't work in some cases,
42528 e.g., when config.h has "#define intmax_t long long int" and
42529 we include <config.h>, <inttypes.h>, <config.h> in that order.
42530 Problem reported by Matthew Woehlke in:
42531 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42532 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42533 * lib/fts-cycle.c: Don't include config.h.
42534 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42535 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42536 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
42537 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42539 * lib/xstrtoumax.c: Likewise.
42540 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42541 __strtol and the like, so that this module is more like its siblings.
42542 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42543 Remove; no longer needed now that we assume gnulib inttypes.h.
42545 2006-10-08 Bruno Haible <bruno@clisp.org>
42547 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42550 2006-10-07 Jim Meyering <jim@meyering.net>
42552 * modules/inttypes (inttypes.h): Revert what seems to have been
42553 an inadvertent part of today's change: use "|", not "/" in the
42554 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42556 2006-10-07 Bruno Haible <bruno@clisp.org>
42558 * modules/sublist: New file.
42560 2006-10-07 Bruno Haible <bruno@clisp.org>
42562 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42563 * modules/argz (argz.h): Likewise.
42564 * modules/arpa_inet (arpa/inet.h): Likewise.
42565 * modules/byteswap (byteswap.h): Likewise.
42566 * modules/configmake (configmake.h): Likewise.
42567 * modules/fcntl (fcntl.h): Likewise.
42568 * modules/fnmatch (fnmatch.h): Likewise.
42569 * modules/getopt (getopt.h): Likewise.
42570 * modules/glob (glob.h): Likewise.
42571 * modules/inttypes (inttypes.h): Likewise.
42572 * modules/netinet_in (netinet/in.h): Likewise.
42573 * modules/poll (poll.h): Likewise.
42574 * modules/stdbool (stdbool.h): Likewise.
42575 * modules/stdint (stdint.h): Likewise.
42576 * modules/sys_select (sys/select.h): Likewise.
42577 * modules/sys_socket (sys/socket.h): Likewise.
42578 * modules/sys_stat (sys/stat.h): Likewise.
42579 * modules/sysexits (sysexits.h): Likewise.
42580 * modules/unistd (unistd.h): Likewise.
42581 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42582 Add a "DO NOT EDIT" comment to the generated file.
42583 (func_import): Likewise for gnulib-comp.m4.
42585 2006-10-07 Bruno Haible <bruno@clisp.org>
42587 * lib/gl_sublist.h: New file.
42588 * lib/gl_sublist.c: New file.
42590 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
42592 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42593 name (relative to the original working directory) and the file
42594 name component (relative to the temporary working directory). All
42596 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42597 * lib/mkdir-p.c (make_dir_parents): Likewise.
42598 * lib/mkdir-p.h (make_dir_parents): Likewise.
42600 2006-10-06 Eric Blake <ebb9@byu.net>
42602 Define several macros for use by the clean-temp module.
42603 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42604 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42605 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42607 * lib/clean-temp.h (close_stream_temp): New declaration.
42608 * lib/clean-temp.c (includes): Pull in headers according to what
42609 other modules are in use.
42610 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42612 2006-10-06 Bruno Haible <bruno@clisp.org>
42614 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42615 instead of fopen, fwriteerror.
42617 2006-10-06 Bruno Haible <bruno@clisp.org>
42619 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42620 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42622 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42623 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42624 Return an error indicator.
42625 Suggested by Eric Blake.
42627 2006-10-06 Bruno Haible <bruno@clisp.org>
42629 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42630 Reported by Eric Blake.
42632 2006-10-06 Bruno Haible <bruno@clisp.org>
42634 * modules/closeout (Description): Mention stderr too.
42636 2006-10-06 Bruno Haible <bruno@clisp.org>
42637 and Paul Eggert <eggert@cs.ucla.edu>
42639 * lib/closeout.c (close_stdout): Also close stderr.
42640 * lib/closeout.h: Update comment.
42642 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
42644 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42645 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42646 * lib/dirchownmod.c: Include lchown.h.
42647 * lib/lchown.c: Don't include files that lchown.h now includes.
42648 Don't declare chown, since lchown.h now does that.
42649 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42650 (lchown): Define to rpl_chown if lchown is declared but
42651 does not exist. Declare using a prototype if lchown is not
42652 declared. Add a copyright notice.
42653 * lib/mkstemp.h: Include <unistd.h>.
42654 * lib/openat.c: Include lchown.h.
42656 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42657 we now test for that separately.
42658 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42659 rather than O_NOFOLLOW, when testing whether it's possible to
42660 avoid a race condition reliably.
42661 * lib/savewd.c (savewd_chdir): Likewise.
42663 Remove macros that are no longer needed now that stdint.h is
42665 * lib/fsusage.c (UINTMAX_MAX): Remove.
42666 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42667 * lib/utimecmp.c (SIZE_MAX): Remove.
42669 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42671 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42672 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
42675 2006-10-05 Bruno Haible <bruno@clisp.org>
42677 * lib/gl_list.h (gl_sortedlist_search_from_to,
42678 gl_sortedlist_indexof_from_to): New declarations.
42679 (gl_list_implementation): New fields sortedlist_search_from_to,
42680 sortedlist_indexof_from_to.
42681 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42683 * lib/gl_list.c (gl_sortedlist_search_from_to,
42684 gl_sortedlist_indexof_from_to): New functions.
42685 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42687 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42688 (gl_array_sortedlist_search_from_to): New function.
42689 (gl_array_list_implementation): Update.
42690 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42692 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42693 (gl_carray_sortedlist_search_from_to): New function.
42694 (gl_carray_list_implementation): Update.
42695 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42696 gl_linked_sortedlist_indexof_from_to): New functions.
42697 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42698 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42699 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42700 gl_tree_sortedlist_indexof_from_to): New functions.
42701 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42702 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42704 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42705 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42708 2006-10-05 Bruno Haible <bruno@clisp.org>
42710 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42711 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42712 (struct gl_list_implementation): Add fields search_from_to,
42713 indexof_from_to. Remove fields search, indexof.
42714 (gl_list_search): Use the search_from_to method.
42715 (gl_list_search_from, gl_list_search_from_to): New functions.
42716 (gl_list_indexof): Use the indexof_from_to method.
42717 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42718 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42719 (gl_list_search_from, gl_list_search_from_to): New functions.
42720 (gl_list_indexof): Use the indexof_from_to method.
42721 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42722 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42723 gl_array_indexof. Add start_index, end_index arguments.
42724 (gl_array_search_from_to): Renamed from gl_array_search. Add
42725 start_index, end_index arguments.
42726 (gl_array_remove, gl_array_list_implementation): Update.
42727 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42728 gl_carray_indexof. Add start_index, end_index arguments.
42729 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42730 start_index, end_index arguments.
42731 (gl_carray_remove, gl_carray_list_implementation): Update.
42732 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42733 gl_linked_search. Add start_index, end_index arguments.
42734 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42735 start_index, end_index arguments.
42736 (gl_linked_remove): Update.
42737 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42738 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42739 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42741 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42742 gl_tree_search. Add start_index, end_index arguments.
42743 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42744 start_index, end_index arguments.
42745 (gl_tree_remove): Update.
42746 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42747 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42748 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42750 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42751 gl_tree_search. Add start_index, end_index arguments.
42752 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42753 start_index, end_index arguments.
42754 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42756 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42758 2006-10-05 Bruno Haible <bruno@clisp.org>
42760 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42762 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42763 fwriteerror_temp): New declarations.
42764 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42765 (descriptors): New variable.
42766 (cleanup): First, close the descriptors.
42767 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42768 fclose_temp, fwriteerror_temp): New functions.
42770 2006-10-04 Jim Meyering <jim@meyering.net>
42772 * lib/fts.c (fts_open): Tiny comment change.
42774 2006-10-04 Bruno Haible <bruno@clisp.org>
42776 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42777 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42779 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42780 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42781 gl_LOCK_EARLY_BODY.
42782 (gl_LOCK): Require gl_LOCK_BODY.
42784 2006-10-04 Bruno Haible <bruno@clisp.org>
42786 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42787 (gl_oset_search_atleast): New declaration.
42788 (struct gl_oset_implementation): Add field 'search_atleast'.
42789 (gl_oset_search_atleast): New inline function.
42790 * lib/gl_oset.c (gl_oset_search_atleast): New function.
42791 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42792 (gl_array_oset_implementation): Update.
42793 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42794 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42795 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42797 2006-10-04 Bruno Haible <bruno@clisp.org>
42799 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42801 2006-10-03 Bruno Haible <bruno@clisp.org>
42803 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42804 from gl_avltreehash_list_implementation.
42806 2006-10-03 Bruno Haible <bruno@clisp.org>
42808 * lib/gl_oset.c (gl_oset_add): Fix return type.
42810 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
42812 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42814 2006-10-02 Eric Blake <ebb9@byu.net>
42816 * modules/strnlen (Depends-on): Add extensions.
42818 2006-10-02 Eric Blake <ebb9@byu.net>
42820 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42821 definition in 2.60+.
42823 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
42825 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42828 2006-10-02 Bruno Haible <bruno@clisp.org>
42830 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42831 to the AUTOMAKE_OPTIONS.
42832 Reported by Jim Meyering.
42834 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
42836 Work around bug in Solaris 10 /proc file system:
42837 /proc/self/fd/NNN/.. isn't the parent directory of
42838 the directory whose file descriptor is NNN. This needs to
42839 be worked around at run time, not compile time, since a
42840 program might be built on Solaris 8, where things work, and
42842 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
42843 to use the following interface instead:
42844 (OPENAT_BUFFER_SIZE): New macro.
42845 (openat_proc_name): New function.
42846 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42847 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42849 * lib/openat-proc.c: New file.
42850 * modules/openat (Files): Add lib/openat-proc.c.
42851 (Depends-on): Add same-inode, stdbool.
42852 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42854 2006-09-29 Bruno Haible <bruno@clisp.org>
42856 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42857 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42858 argument. Set stdout_closed before testing for ferror, not after.
42859 (fwriteerror, fwriteerror_no_ebadf): New functions.
42861 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42863 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42865 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
42867 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42868 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42870 2006-09-28 Jim Meyering <jim@meyering.net>
42872 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42873 Include <unistd.h>.
42875 2006-09-28 Bruno Haible <bruno@clisp.org>
42877 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42878 * modules/linkedhash-list (Depends-on): Likewise.
42879 * modules/rbtreehash-list (Depends-on): Likewise.
42881 2006-09-28 Bruno Haible <bruno@clisp.org>
42883 * lib/strndup.h: Simplify the redefinition of strndup.
42884 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42885 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42887 2006-09-28 Bruno Haible <bruno@clisp.org>
42889 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42890 * lib/gl_linkedhash_list.c: Likewise.
42891 * lib/gl_rbtreehash_list.c: Likewise.
42893 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
42895 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42898 * lib/__fpending.h: Don't include <stdio_ext.h> unless
42899 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
42900 it causes <stdio_ext.h> to cause a compile-time error.
42901 Problem reported by Nelson H. F. Beebe.
42902 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42903 of HAVE_DECL___PENDING.
42905 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42906 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42909 2006-09-27 Jim Meyering <jim@meyering.net>
42911 This file could end up with a definition for a function
42912 named __strndup, rather than rpl_strndup on a system with
42913 incomplete weak_alias support.
42914 * lib/strndup.c (strndup): Rename from __strndup.
42915 Remove #defines that used to map __strndup to strndup.
42916 Don't use K&R prototypes.
42917 Remove LIBC-related code, since this file is not sync'd with glibc.
42918 * lib/strndup.h: Revamp, accordingly.
42919 * m4/strndup.m4: Modernize.
42921 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
42923 * modules/savewd (Depends-on): Add 'raise'.
42924 * lib/savewd.c: Include <signal.h>, for 'raise'.
42926 2006-09-26 Jim Meyering <jim@meyering.net>
42928 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42929 when we detect Darwin 8.7.0's acl_get_file bug.
42930 Rearrange to perform the new (below) run-test while $LIBS
42931 contains any acl-related library. Set USE_ACL at the end.
42932 (gl_ACL_GET_FILE): New function.
42934 2006-09-26 Eric Blake <ebb9@byu.net>
42936 * lib/verror.c: Include <config.h> unconditionally.
42938 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
42940 * modules/clock-time (Maintainer): Add self.
42941 * modules/getlogin_r (Depends-on): Add extensions.
42943 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42945 * modules/clock-time: New module.
42946 * modules/nanosleep (Depends-on): Add clock-time.
42947 * modules/gethrxtime (Depends-on): Likewise.
42948 * modules/gettime (Depends-on): Likewise.
42949 * modules/settime (Depends-on): Likewise.
42951 * modules/fts-lgpl: Depend on openat.
42952 * modules/mkancesdirs: Depend on savewd.
42953 * modules/mkdir-p: Likewise.
42955 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42957 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42959 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42960 `gl_have_arbitrary_file_name_length_limit' to
42961 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42962 actually works between configure runs.
42964 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42965 Bruno Haible <bruno@clisp.org>
42967 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42969 2006-09-25 Jim Meyering <jim@meyering.net>
42971 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42972 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42974 2006-09-25 Eric Blake <ebb9@byu.net>
42976 * gnulib-tool (func_import, func_create_testdir): Fix typos in
42977 exec's in 2006-09-18 patch when shuffling fds.
42979 2006-09-25 Bruno Haible <bruno@clisp.org>
42981 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42982 Reported by Jim Meyering.
42984 2006-09-24 Jim Meyering <jim@meyering.net>
42986 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42987 compare a pointer against a literal "0". That caused failures with
42988 at least HP-UX's hpcc.
42990 2006-09-22 Simon Josefsson <jas@extundo.com>
42994 * modules/gc-hmac-sha1:
42995 * modules/gc-hmac-md5:
42997 * modules/gc-arcfour: Distribute more files.
42999 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43001 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43002 (gl_linked_iterator_from_to): Initialize struct completely.
43003 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43004 (gl_tree_iterator_from_to): Likewise
43005 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43006 * lib/gl_array_list.c [lint] (gl_array_iterator)
43007 (gl_array_iterator_from_to): Likewise.
43008 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43009 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43010 (gl_carray_iterator_from_to): Likewise.
43012 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43013 * lib/md4.c (md4_process_block): Remove unused variable.
43014 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43015 parentheses for clarity.
43017 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43019 * modules/bison-i18n (Depends-on): Add gettext.
43021 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43023 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43024 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43025 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43026 also add missing comma that caused broken test.
43027 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43028 stdlib.h, for `abort'.
43029 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43031 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43032 include unistd.h if present, for `rmdir'.
43033 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43035 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43036 in the process include standard headers for prototypes.
43037 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43038 gets declared on GNU/Linux.
43039 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43040 unistd.h, for `rmdir'.
43041 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43043 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43045 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43047 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43049 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43051 * gnulib-tool (func_version): Create output all at once. This
43052 may help avoid triggering unnecessary SIGPIPEs, and at any
43053 rate it doesn't hurt.
43055 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43056 Bruno Haible <bruno@clisp.org>
43058 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43059 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43060 * m4/signed.m4 (bh_C_SIGNED): Likewise.
43062 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43063 (gl_FUNC_VASPRINTF): Invoke it.
43065 2006-09-22 Bruno Haible <bruno@clisp.org>
43067 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43068 getloadavg.c as first argument.
43070 2006-09-22 Bruno Haible <bruno@clisp.org>
43072 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43073 at the beginning of the gl_INIT macro.
43074 * modules/getloadavg (configure.ac): Pass $gl_source_base to
43077 2006-09-22 Bruno Haible <bruno@clisp.org>
43079 * gnulib-tool (func_create_megatestdir): Don't include the config-h
43081 Suggested by Ralf Wildenhues.
43083 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
43085 Import this patch from libc:
43087 2006-09-06 Jakub Jelinek <jakub@redhat.com>
43089 * lib/regex_internal.c (re_string_reconstruct): Handle
43090 offset < pstr->valid_raw_len && pstr->offsets_needed case.
43091 Ensure no bytes read before raw_mbs array. Pass a saved copy of
43092 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43093 re_string_context_at.
43095 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43097 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43098 gl_REGEX now does it for us.
43099 (gl_REGEX): Add test taken from
43100 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43102 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43103 Check that large offsets work. Modernize Autoconf usages.
43104 Prefer "yes" to mean a good thing rather than a bad.
43105 Don't put "#define mkstemp" in config.h, as this might interfere
43106 with standard system headers that "#define mkstemp mkstemp64".
43108 * modules/mkstemp (Depends-on): Add extensions, so that
43109 mkstemp is visible on some platforms.
43110 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43111 (Include): Change to "mkstemp.h" from <stdlib.h>.
43112 (Files): Add mkstemp.h.
43114 * lib/mkstemp.h: New file, since some standard headers
43116 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43117 Include "mkstemp.h".
43118 Make the _LIBC code resemble glibc original more,
43119 e.g., use K&R style.
43120 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43121 (mkstemp): Remove, since mkstemp.h does this for us.
43122 * lib/stdlib--.h: Include mkstemp.h.
43124 Import this patch from libc:
43126 2006-04-07 Ulrich Drepper <drepper@redhat.com>
43128 * lib/tempname.c (__gen_tempname): Change attempts_min
43129 into a macro. Use preprocessor to decide how to initialize
43130 attempts [Coverity CID 67].
43132 2006-09-20 Bruno Haible <bruno@clisp.org>
43134 * lib/mkdtemp.c: Import from libc.
43135 2006-04-07 Ulrich Drepper <drepper@redhat.com>
43136 * sysdeps/posix/tempname.c (__gen_tempname): Change
43137 attempts_min into a macro. Use preprocessor to decide how to
43138 initialize attempts [Coverity CID 67].
43139 2001-11-27 Paul Eggert <eggert@twinsun.com>
43140 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43141 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43143 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43145 * gnulib-tool (func_exit): New function, to allow to pass the
43146 exit status portably through the trap. Use everywhere.
43147 (--help, --version): Signal a write error.
43148 (trap): catch SIGPIPE, for write errors.
43149 Exit at the end of the trap, with the correct exit status.
43151 2006-09-19 Karl Berry <karl@gnu.org>
43153 * doc/gnulib.texi: note about the license texinfo files.
43155 2006-09-19 Eric Blake <ebb9@byu.net>
43157 * gnulib-tool: Avoid space-tab.
43159 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
43161 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43162 that prevented coreutils 6.1 from building. Problem reported
43163 by Petter Reinholdtsen.
43165 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
43167 * gnulib-tool (avoidlist): Fix typo that broke options like
43168 --avoid=lock that are used by coreutils bootstrap.
43170 2006-09-18 Mark D. Baushke <mdb@gnu.org>
43172 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43173 more systematically.
43175 2006-09-18 Jim Meyering <jim@meyering.net>
43177 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43179 2006-09-18 Bruno Haible <bruno@clisp.org>
43181 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43183 2006-09-18 Bruno Haible <bruno@clisp.org>
43185 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43186 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43187 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43188 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43189 * m4/gettext.m4: Require autoconf >= 2.52.
43190 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43191 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43192 of gl_cv_header_inttypes_h.
43194 2006-09-18 Bruno Haible <bruno@clisp.org>
43196 * lib/javaversion.c: Include configmake.h.
43198 2006-09-18 Bruno Haible <bruno@clisp.org>
43200 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43201 avoid that the while loops be executed in a subshell.
43203 2006-09-18 Bruno Haible <bruno@clisp.org>
43205 * MODULES.html.sh (func_module): Break long lines.
43206 Suggested by Bruce Korb <bkorb@gnu.org>.
43208 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43210 Speed up by a factor of 1.12.
43211 * gnulib-tool (nl): New variable.
43212 (func_import): Rewrite include directive extraction to only read each
43215 2006-09-17 Bruno Haible <bruno@clisp.org>
43217 * modules/javaversion (Makefile.am): Remove DEFS setting.
43218 (Depends-on): Add configmake, for PKGDATADIR definition.
43220 2006-09-17 Bruno Haible <bruno@clisp.org>
43222 * gnulib-tool (func_create_testdir): Rewrite all files at once.
43224 2006-09-17 Bruno Haible <bruno@clisp.org>
43226 * gnulib-tool (func_append): New function, stolen from libtool.m4.
43227 (func_modules_transitive_closure, func_modules_add_dummy,
43228 func_modules_to_filelist, func_import, func_create_testdir,
43229 func_create_megatestdir, ...): Use it wherever possible.
43230 Suggested by Ralf Wildenhues.
43232 2006-09-16 Karl Berry <karl@gnu.org>
43234 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43235 to avoid sectioning errors.
43236 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43237 [ifinfo]: blank line after @center-ed titles.
43238 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43239 Spell FSF address consistently with others.
43240 (These changes approved by rms.)
43242 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43244 Speed up by a factor of 1.61.
43245 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43246 already checked module names again.
43248 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43250 Speed up by a factor of 1.13.
43251 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43252 for new_files, and the input to func_add_or_update.
43254 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43256 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43257 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43259 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
43261 * modules/mkancesdirs (Depends-on): Add fcntl.
43262 * modules/savewd: New file.
43263 * MODULES.html.sh (File system functions): Add savewd.
43265 * modules/configmake (Makefile.am): Add support for the
43266 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43268 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
43270 * m4/savewd.m4: New file.
43272 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
43274 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43275 (dirchownmod): New arg FD. All callers changed.
43276 Use FD rather than opening the directory ourself, as opening is
43277 now the caller's responsibility.
43278 * lib/dirchownmod.h: Likewise.
43279 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43280 hosts that require <sys/types.h> before <sys/stat.h>. Include
43281 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43282 (test_dir): Remove.
43283 (mkancesdirs): Return length of prefix of FILE that has already
43284 been made, or -2 if there is a child doing the work. Redo
43285 algorithm so that it is O(N) rather than O(N**2). Optimize away
43286 ".", and treat ".." specially since it might stray back into
43287 already-created areas. Use a subprocess if necessary. New arg
43288 WD; all users changed. MAKE_DIR function should now return 1
43289 if it creates a directory that is not readable. Return -2 if
43290 a child process is spun off.
43291 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43292 Adjust signature to match code.
43293 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43294 (make_dir_parents): Use a subprocess if necessary. New arg WD;
43296 * lib/savewd.c, lib/savewd.h: New files.
43298 2006-09-15 Jim Meyering <jim@meyering.net>
43300 * modules/rename-dest-slash: New module.
43301 * MODULES.html.sh (posix_compat): Add it here.
43303 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43305 2006-09-15 Jim Meyering <jim@meyering.net>
43307 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43310 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43312 2006-09-15 Jim Meyering <jim@meyering.net>
43314 * lib/rename-dest-slash.c (has_trailing_slash): Use
43315 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43316 (rpl_rename_dest_slash): Perform the cheaper trailing slash
43317 test before testing whether SRC is a directory.
43318 Suggestions from Bruno Haible.
43320 Avoid a warning about an unused variable.
43321 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43322 into the #ifdef block where it's used.
43324 * lib/rename-dest-slash.c: New file.
43326 2006-09-14 Bruno Haible <bruno@clisp.org>
43328 * lib/allocsa.c: Include <config.h> unconditionally.
43329 * lib/asnprintf.c: Likewise.
43330 * lib/asprintf.c: Likewise.
43331 * lib/c-strcasecmp.c: Likewise.
43332 * lib/c-strcasestr.c: Likewise.
43333 * lib/c-strncasecmp.c: Likewise.
43334 * lib/c-strstr.c: Likewise.
43335 * lib/classpath.c: Likewise.
43336 * lib/clean-temp.c: Likewise.
43337 * lib/concatpath.c: Likewise.
43338 * lib/copy-file.c: Likewise.
43339 * lib/csharpcomp.c: Likewise.
43340 * lib/csharpexec.c: Likewise.
43341 * lib/execute.c: Likewise.
43342 * lib/fatal-signal.c: Likewise.
43343 * lib/findprog.c: Likewise.
43344 * lib/fwriteerror.c: Likewise.
43345 * lib/gl_array_list.c: Likewise.
43346 * lib/gl_array_oset.c: Likewise.
43347 * lib/gl_avltree_list.c: Likewise.
43348 * lib/gl_avltree_oset.c: Likewise.
43349 * lib/gl_avltreehash_list.c: Likewise.
43350 * lib/gl_carray_list.c: Likewise.
43351 * lib/gl_linked_list.c: Likewise.
43352 * lib/gl_linkedhash_list.c: Likewise.
43353 * lib/gl_list.c: Likewise.
43354 * lib/gl_oset.c: Likewise.
43355 * lib/gl_rbtree_list.c: Likewise.
43356 * lib/gl_rbtree_oset.c: Likewise.
43357 * lib/gl_rbtreehash_list.c: Likewise.
43358 * lib/imaxabs.c: Likewise.
43359 * lib/imaxdiv.c: Likewise.
43360 * lib/javacomp.c: Likewise.
43361 * lib/javaexec.c: Likewise.
43362 * lib/javaversion.c: Likewise.
43363 * lib/linebreak.c: Likewise.
43364 * lib/localcharset.c: Likewise.
43365 * lib/lock.c: Likewise.
43366 * lib/mbchar.c: Likewise.
43367 * lib/mbswidth.c: Likewise.
43368 * lib/mkdtemp.c: Likewise.
43369 * lib/pipe.c: Likewise.
43370 * lib/printf-args.c: Likewise.
43371 * lib/printf-parse.c: Likewise.
43372 * lib/progname.c: Likewise.
43373 * lib/progreloc.c: Likewise.
43374 * lib/readlink.c: Likewise.
43375 * lib/sh-quote.c: Likewise.
43376 * lib/stpcpy.c: Likewise.
43377 * lib/stpncpy.c: Likewise.
43378 * lib/strcasecmp.c: Likewise.
43379 * lib/strcasestr.c: Likewise.
43380 * lib/strcspn.c: Likewise.
43381 * lib/striconv.c: Likewise.
43382 * lib/strncasecmp.c: Likewise.
43383 * lib/strnlen1.c: Likewise.
43384 * lib/strstr.c: Likewise.
43385 * lib/strtok_r.c: Likewise.
43386 * lib/tls.c: Likewise.
43387 * lib/tmpdir.c: Likewise.
43388 * lib/unicodeio.c: Likewise.
43389 * lib/unsetenv.c: Likewise.
43390 * lib/vasnprintf.c: Likewise.
43391 * lib/vasprintf.c: Likewise.
43392 * lib/wait-process.c: Likewise.
43393 * lib/xallocsa.c: Likewise.
43394 * lib/xsetenv.c: Likewise.
43395 * lib/xstriconv.c: Likewise.
43397 2006-09-13 Simon Josefsson <jas@extundo.com>
43399 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43400 that internally, suggested by Ralf Wildenhues
43401 <Ralf.Wildenhues@gmx.de>.
43403 2006-09-13 Simon Josefsson <jas@extundo.com>
43405 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43407 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43409 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
43411 * lib/_fpending.c: Include <config.h> unconditionally, since we no
43412 longer worry about uses that don't define HAVE_CONFIG_H.
43413 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43414 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43415 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43416 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43417 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43418 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43419 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43420 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43421 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43422 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43423 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43424 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43425 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43426 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43427 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43428 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43429 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43430 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43431 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43432 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43433 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43434 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43435 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43436 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43437 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43438 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43439 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43440 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43441 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43442 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43443 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43444 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43445 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43446 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43447 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43448 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43449 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43450 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43451 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43452 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43453 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43456 2006-09-13 Eric Blake <ebb9@byu.net>
43458 * lib/getopt.c: Fix typo in last commit.
43460 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
43462 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43465 2006-09-12 Jim Meyering <jim@meyering.net>
43467 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43468 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43469 Reported by Nelson H. F. Beebe.
43471 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
43473 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43474 program_invocation_name and program_invocation_short_name are
43476 * lib/argp-namefrob.h: Move declarations of program_invocation_name
43477 and program_invocation_short_name to argp.h, so they are visible
43479 * lib/argp.h: Likewise
43481 2006-09-10 Bruno Haible <bruno@clisp.org>
43483 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43484 m4/inttypes_h.m4, m4/uintmax_t.m4.
43486 2006-09-10 Bruno Haible <bruno@clisp.org>
43488 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43489 gl_AC_TYPE_UINTMAX_T.
43491 2006-09-10 Bruno Haible <bruno@clisp.org>
43493 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43495 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
43497 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43498 convention. Text proposed by Bruno Haible.
43499 (struct argp_option): Document the use of N_() wrappers.
43501 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43502 '\v', and translate the two parts separately, instead of feeding
43503 the whole string to gettext. This allows to exclude
43504 '\v' from the strings visible to the translator by writing doc
43505 strings as N_("..") "\v" N_("..").
43507 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
43509 * config/srclist.txt: Undo latest change; the bug was fixed.
43511 2006-09-09 Bruno Haible <bruno@clisp.org>
43513 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43514 assignments if building a library without libtool.
43515 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43516 in func_emit_lib_Makefile_am.
43517 (func_import): When building a static library libfoo.a, arrange to
43518 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43519 (func_create_testdir): Likewise.
43520 * modules/gc (configure.ac, Makefile.am): If building statically,
43521 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43522 * modules/iconvme (configure.ac, Makefile.am): Likewise.
43523 * modules/striconv (configure.ac, Makefile.am): Likewise.
43524 Based on a suggestion by Ralf Wildenhues.
43526 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43528 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43529 Check for unistd.h too, since Autoconf doesn't assume POSIX.
43532 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43533 Add year_2050_test to catch glibc bug 2821
43534 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43536 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43537 Prefer #ifdef to #if.
43539 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
43540 Return from 'main' instead of calling 'exit'.
43542 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43544 * lib/mktime.c (guess_time_tm): Fix bug where mktime
43545 returned the maximum time_t value rather than (time_t) -1.
43546 Problem originally reported by William Bardwell
43547 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43549 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43551 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43554 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
43556 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43559 2006-09-08 Jim Meyering <jim@meyering.net>
43561 Don't make generated files read-only. That would bother too many
43562 people. However, do retain the ability to work when targets are
43563 read-only: remove the destination and temporary files before writing
43564 them (when generated via sed or echo), or by using the -f option for
43565 both cp and mv commands. Suggestion to use -f from Paul Eggert.
43566 * modules/alloca-opt, modules/argz, modules/arpa_inet:
43567 * modules/byteswap, modules/configmake, modules/fcntl:
43568 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43569 * modules/localcharset, modules/netinet_in, modules/poll:
43570 * modules/stdbool, modules/stdint, modules/sys_select:
43571 * modules/sys_socket, modules/sys_stat, modules/sysexits:
43573 2006-09-08 Jim Meyering <jim@meyering.net>
43575 Avoid new build failure on FreeBSD 6.0.
43576 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43577 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
43578 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43580 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43582 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43584 2006-09-07 Jim Meyering <jim@meyering.net>
43586 Fix global typo in last change: use chmod u-w, not chmod u-x.
43587 Spotted by Paul Eggert and Bruce Korb.
43588 * modules/alloca-opt, modules/argz, modules/arpa_inet:
43589 * modules/byteswap, modules/configmake, modules/fcntl:
43590 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43591 * modules/localcharset, modules/netinet_in, modules/poll:
43592 * modules/stdbool, modules/stdint, modules/sys_select:
43593 * modules/sys_socket, modules/sys_stat, modules/sysexits:
43595 2006-09-06 Jim Meyering <jim@meyering.net>
43597 Make generated files be read-only.
43598 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43599 Ensure that each generated file is now read-only.
43600 * modules/argz: Likewise.
43601 * modules/arpa_inet: Likewise.
43602 * modules/byteswap: Likewise.
43603 * modules/configmake: Likewise.
43604 * modules/fcntl: Likewise.
43605 * modules/fnmatch: Likewise.
43606 * modules/getopt: Likewise.
43607 * modules/glob: Likewise.
43608 * modules/inttypes: Likewise.
43609 * modules/netinet_in: Likewise.
43610 * modules/poll: Likewise.
43611 * modules/stdbool: Likewise.
43612 * modules/stdint: Likewise.
43613 * modules/sys_select: Likewise.
43614 * modules/sys_socket: Likewise.
43615 * modules/sys_stat: Likewise.
43616 * modules/sysexits: Likewise.
43617 * modules/localcharset: Same as above, but continue using temporary
43618 file named "t-$@" (why different?) rather than the "$@-t" used
43621 * modules/sysexits (Makefile.am): Replace literal occurrences
43622 of "sysexit.h" more readable, and more consistent, "$@".
43624 2006-09-06 Bruno Haible <bruno@clisp.org>
43626 * modules/striconv: New file.
43627 * modules/xstriconv: New file.
43628 * MODULES.html.sh (Internationalization functions): Add striconv,
43631 2006-09-06 Bruno Haible <bruno@clisp.org>
43633 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43634 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43635 not using libtool correctly.
43637 2006-09-06 Bruno Haible <bruno@clisp.org>
43639 * lib/striconv.h: New file.
43640 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43642 * lib/xstriconv.h: New file.
43643 * lib/xstriconv.c: New file.
43645 2006-09-06 Bruno Haible <bruno@clisp.org>
43647 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43650 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43652 * lib/argz_.h: Sync from Libtool.
43654 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
43655 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43657 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43659 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
43661 * modules/trim: New file.
43663 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
43665 * lib/trim.h: New file.
43666 * lib/trim.c: New file.
43668 2006-09-05 Bruno Haible <bruno@clisp.org>
43670 * MODULES.html.sh (String handling): Add trim.
43672 2006-09-04 Karl Berry <karl@gnu.org>
43674 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43675 until next release.
43677 2006-09-03 Bruno Haible <bruno@clisp.org>
43679 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43682 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
43684 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43685 not gl_GETLOADAVG. Omit unneeded semicolons.
43686 Problems reported by Ralf Wildenhues in
43687 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43688 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
43689 at the end, which is the usual gnulib style.
43691 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43692 of doing all the work ourselves.
43693 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43694 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43696 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
43698 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43699 Problem reported by Ralf Wildenhues in
43700 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43702 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43703 HAVE_STRUCT_STATFS_F_FSTYPENAME.
43705 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
43707 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43708 yesterday's patch by changing test -n to test -z.
43710 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
43712 * modules/getloadavg (Files): Add m4/getloadavg.m4.
43713 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43714 the former is now obsolescent.
43716 * modules/chdir-long (Depends-on): Add fcntl.
43718 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
43720 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43721 obsolescent, and programs should use gnulib instead.
43722 * m4/getloadavg.m4: New file, with contents taken from Autoconf
43723 but with prefixes changed.
43725 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
43727 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43728 or stdbool.h, because they might not exist while configuring.
43730 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43731 Don't include unistd.h or limits.h; not needed, since chdir-long.h
43733 (O_DIRECTORY): Remove.
43735 2006-08-31 Eric Blake <ebb9@byu.net>
43737 * gnulib-tool: Don't let emacs change spaces to TAB.
43739 2006-08-31 Bruno Haible <bruno@clisp.org>
43741 * gnulib-tool: When calling func_import more than once, do it in a
43743 Reported by Eric Blake <ebb9@byu.net>.
43745 2006-08-31 Bruno Haible <bruno@clisp.org>
43747 * gnulib-tool (nl): Remove variable.
43748 (sed_transform_lib_file): Use more robust test for config-h module.
43749 (func_import): Fix typo in 2006-08-25 patch.
43751 2006-08-31 Bruno Haible <bruno@clisp.org>
43753 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43754 specified, augment Makefile.am variables instead of assigning them.
43756 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43758 Work around a bug in both the Linux and SunOS 64-bit kernels:
43759 nanosleep mishandles sleeps for longer than 2**31 seconds.
43760 Problem reported by Frank v Waveren in
43761 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43762 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43763 Check for nanosleep bug.
43764 (LIB_NANOSLEEP): Append clock_gettime library if needed.
43766 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43768 Work around a bug in both the Linux and SunOS 64-bit kernels:
43769 nanosleep mishandles sleeps for longer than 2**31 seconds.
43770 Problem reported by Frank v Waveren in
43771 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43772 * lib/nanosleep.c (BILLION): New constant.
43773 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43774 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43777 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43779 * modules/nanosleep (Depends-on): Add gettime.
43781 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
43782 and Simon Josefsson <jas@extundo.com>
43783 and Oskar Liljeblad <oskar@osk.mine.nu>
43785 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43786 * gnulib-tool (func_import): New license type 'unmodifiable license
43788 * modules/fdl: Use it. Longer description.
43789 * module/gpl, module/lgpl: New files.
43791 2006-08-30 Jim Meyering <jim@meyering.net>
43793 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43794 shadowing the parameter.
43796 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43800 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43802 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43803 sharing with gnulib. Report by Eric Blake.
43805 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43807 * modules/isapipe: New file.
43808 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43810 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43812 * modules/configmake (Makefile.am): Add a comment, and omit
43813 the CONFIGMAKE_ prefix from generated macro names. Suggested
43816 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43818 * m4/isapipe.m4: New file.
43820 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
43822 * lib/isapipe.c, lib/isapipe.h: New files.
43824 2006-08-29 Jim Meyering <jim@meyering.net>
43826 * modules/configmake (Makefile.am): Make configmake.h depend on
43827 Makefile. Otherwise, a stale configmake.h could hang around.
43829 2006-08-29 Eric Blake <ebb9@byu.net>
43831 * lib/error.c (error_at_line, print_errno_message): Match libc, after
43832 resolution of upstream bug 3044.
43834 2006-08-29 Bruno Haible <bruno@clisp.org>
43836 * modules/localcharset (Depends-on): Add configmake.
43837 (Makefile.am): Remove setting of LIBDIR through DEFS.
43839 2006-08-29 Bruno Haible <bruno@clisp.org>
43841 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43844 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43846 * modules/fcntl: New file.
43847 * modules/chdir-safer (Depends-on): Add fcntl.
43848 * modules/fts: Likewise.
43849 * modules/mkdir-p: Likewise.
43851 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43852 This undoes the most recent change, since we're now addressing the
43853 problem in a different way.
43855 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43856 into output, since the output might be called Makefile.am even
43857 if $makefile_name is something different.
43858 (func_import): Use $makefile_am rather than
43859 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43862 * modules/inttypes (Files): Add m4/inttypes-h.m4.
43864 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43866 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43867 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
43868 recent change to stdint.m4, since we're now addressing the problem in a
43871 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43873 * m4/fcntl_h.m4: New file.
43875 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
43877 * lib/fcntl_.h: New file.
43878 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43880 * lib/dirchownmod.c: Likewise.
43881 * lib/fts.c: Likewise.
43883 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43884 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43885 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43886 just before including <inttypes.h>, to avoid circular inclusion.
43888 2006-08-28 Jim Meyering <jim@meyering.net>
43890 * doc/visibility.texi: Actually read and correct the grammar of the
43891 sentence affected by yesterday's change.
43893 2006-08-28 Eric Blake <ebb9@byu.net>
43895 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43898 2006-08-28 Eric Blake <ebb9@byu.net>
43900 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43902 2006-08-28 Eric Blake <ebb9@byu.net>
43904 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43906 2006-08-28 Bruno Haible <bruno@clisp.org>
43908 * modules/c-strstr: New file, from GNU gettext.
43909 * MODULES.html.sh (String handling): Add c-strstr.
43911 2006-08-28 Bruno Haible <bruno@clisp.org>
43913 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43915 Reported by Eric Blake.
43917 2006-08-28 Bruno Haible <bruno@clisp.org>
43919 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43920 (VASNPRINTF): Return a string of length > INT_MAX without failing.
43921 * lib/vasprintf.c: Include errno.h, limits.h.
43922 (EOVERFLOW): New fallback definition.
43923 (vasprintf): Test here whether the string length is > INT_MAX.
43924 * lib/vsnprintf.c: Include errno.h, limits.h.
43925 (EOVERFLOW): New fallback definition.
43926 (vsnprintf): Fix bug when generated string was too long for the buffer.
43927 Test here whether the string length is > INT_MAX.
43929 2006-08-28 Bruno Haible <bruno@clisp.org>
43931 * lib/inttypes_.h (SCNX*): Remove definitions.
43932 Reported by Eric Blake.
43934 2006-08-28 Bruno Haible <bruno@clisp.org>
43936 * lib/c-strstr.h: New file, from GNU gettext.
43937 * lib/c-strstr.c: New file, from GNU gettext.
43939 2006-08-28 Bruno Haible <bruno@clisp.org>
43941 * gnulib-tool: Reorder some statements.
43943 2006-08-28 Bruno Haible <bruno@clisp.org>
43945 * gnulib-tool: New option --makefile-name.
43946 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43948 (func_import): Write $makefile_name to the cache file, and read it from
43949 there unless explicitly specified. Use $makefile_name as file name
43950 instead of Makefile.am. Adjust the recommendations accordingly.
43952 2006-08-28 Bruno Haible <bruno@clisp.org>
43954 * gnulib-tool (func_verify_module): Check against misapplying patch.
43956 2006-08-28 Bruno Haible <bruno@clisp.org>
43958 * gnulib-tool (func_relativize, func_relconcat): New functions.
43959 Give an error if --local-dir is given with --update.
43960 Remove trailing slashes from $local_gnulib_dir.
43961 (func_import): Store the relativized $local_gnulib_dir in
43962 gnulib-cache.m4, and read it from there if not specified explicitly.
43964 2006-08-28 Bruno Haible <bruno@clisp.org>
43966 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43967 is the current directory. Respect also $local_gnulib_dir.
43969 2006-08-28 Bruno Haible <bruno@clisp.org>
43970 Simon Josefsson <jas@extundo.com>
43973 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43975 2006-08-27 Jim Meyering <jim@meyering.net>
43977 * doc/visibility.texi: Remove duplicate word: "pointer".
43979 2006-08-26 Bruno Haible <bruno@clisp.org>
43981 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43982 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43983 (Makefile.am): Create inttypes.h from inttypes_.h.
43984 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43986 * modules/imaxabs: New file.
43988 * modules/imaxdiv: New file.
43990 2006-08-26 Bruno Haible <bruno@clisp.org>
43992 * m4/inttypes.m4: New file.
43993 * m4/_inttypes_h.m4: Remove file.
43994 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43996 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43998 * m4/imaxabs.m4: New file.
44000 * m4/imaxdiv.m4: New file.
44002 2006-08-26 Bruno Haible <bruno@clisp.org>
44004 * lib/inttypes_.h: New file.
44005 * lib/inttypes.h: Remove file.
44006 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44008 * lib/imaxabs.c: New file.
44010 * lib/imaxdiv.c: New file.
44012 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
44014 New config-h module, so that "make" output needn't be cluttered
44015 by -DHAVE_CONFIG_H.
44016 * MODULES.html.sh (Support for building libraries and executables):
44018 * modules/config-h: New file.
44019 * gnulib-tool (nl, sed_transform_lib_file): New vars.
44020 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44021 the config-h module is used.
44023 New configmake module, so that "make" output needn't be cluttered
44024 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44025 * MODULES.html.sh (Support for building libraries and executables):
44027 * modules/configmake: New file.
44029 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
44031 * m4/config-h.m4: New file.
44033 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
44035 * config/srclist.txt: Add elisp-comp.
44037 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
44039 * MODULES.html.sh (Support for building libraries and executables):
44041 * build-aux/elisp-comp: New file.
44042 * modules/elisp-comp: New file.
44044 2006-08-24 Bruno Haible <bruno@clisp.org>
44046 * gnulib-tool (func_create_testdir): Use non-default values of
44047 sourcebase and m4base.
44049 2006-08-24 Bruno Haible <bruno@clisp.org>
44051 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44054 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
44056 * modules/openat (Depends-on): Add lchown.
44058 2006-08-23 Bruno Haible <bruno@clisp.org>
44060 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44061 of gl_LOCK_EARLY instead of gl_LOCK.
44063 2006-08-23 Bruno Haible <bruno@clisp.org>
44065 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44067 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44069 2006-08-23 Bruno Haible <bruno@clisp.org>
44071 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44074 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44075 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44076 (gl_LOCK): New macro.
44078 2006-08-22 Simon Josefsson <jas@extundo.com>
44080 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44083 2006-08-22 Simon Josefsson <jas@extundo.com>
44085 * MODULES.html.sh: Add "Support for maintaining and release
44088 * build-aux/gnupload: New file, from coreutils.
44090 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
44092 Avoid the need for AC_LIBSOURCES in m4 macros.
44093 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44094 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44095 * modules/check-version (EXTRA_DIST): Add check-version.h.
44096 * modules/crc (EXTRA_DIST): Add crc.h.
44097 * modules/des (EXTRA_DIST): Add des.h.
44098 * modules/gc (EXTRA_DIST): Add gc.h.
44099 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44100 * modules/getline (EXTRA_DIST): Add getline.h.
44101 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44102 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44103 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44104 * modules/md2 (EXTRA_DIST): Add md2.h.
44105 * modules/md4 (EXTRA_DIST): Add md4.h.
44106 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44107 * modules/read-file (EXTRA_DIST): Add read-file.h.
44108 * modules/readline (EXTRA_DIST): Add readline.h.
44109 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44110 rijndael-api-fst.h.
44112 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
44114 * m4/rijndael.m4 (gl_ARCFOUR):
44115 * m4/arctwo.m4 (gl_ARCTWO):
44116 * m4/check-version.m4 (gl_CHECK_VERSION):
44117 * m4/crc.m4 (gl_CRC):
44118 * m4/des.m4 (gl_DES):
44119 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44120 * m4/gc.m4 (gl_GC):
44121 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44122 * m4/getline.m4 (gl_FUNC_GETLINE):
44123 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44124 * m4/hmac-md5.m4 (gl_HMAC_MD5):
44125 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44126 * m4/md2.m4 (gl_MD2):
44127 * m4/md4.m4 (gl_MD4):
44128 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44129 * m4/read-file.m4 (gl_FUNC_READ_FILE):
44130 * m4/readline.m4 (gl_FUNC_READLINE):
44131 * m4/rijndael.m4 (gl_RIJNDAEL):
44132 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44133 to get the necessary .h files and whatnot.
44135 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
44137 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44138 gnulib rather than the other way around.
44139 * config/srclistvars.sh (COREUTILS): Remove.
44141 2006-08-22 Jim Meyering <jim@meyering.net>
44143 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44145 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44147 2006-08-22 Eric Blake <ebb9@byu.net>
44149 * modules/regexprops-generic: New file.
44150 * MODULES.html.sh (Support for building documentation): List it.
44152 2006-08-22 Eric Blake <ebb9@byu.net>
44154 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44155 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44156 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44157 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44159 2006-08-22 Bruno Haible <bruno@clisp.org>
44161 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44162 and lib_LTLIBRARIES like the other lib_* variables.
44164 2006-08-22 Bruno Haible <bruno@clisp.org>
44166 * build-aux/x-to-1.in: New file, from GNU gettext.
44168 2006-08-22 Bruno Haible <bruno@clisp.org>
44170 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44173 2006-08-22 Bruno Haible <bruno@clisp.org>
44175 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44178 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
44181 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44183 Problem reported by Bruno Haible.
44185 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
44187 Avoid the need for AC_LIBSOURCES in m4 macros.
44188 * modules/acl (EXTRA_DIST): Add acl.h.
44189 * modules/argmatch (Files): Add m4/argmatch.m4.
44190 (configure.ac): Add gl_ARGMATCH.
44191 (EXTRA_DIST): Renamed from lib_SOURCES, for
44192 consistency with the other modules. Remove argmatch.c.
44193 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44194 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44195 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44196 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44197 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44198 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44199 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44200 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44201 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44202 * modules/closeout (EXTRA_DIST): Add closeout.h.
44203 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44204 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44205 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44206 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
44207 dirname.h; remove basename.c and stripslash.c.
44208 * modules/exclude (EXTRA_DIST): Add exclude.h.
44209 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44210 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44211 * modules/file-type (EXTRA_DIST): Add file-type.h.
44212 * modules/filemode (EXTRA_DIST): Add filemode.h.
44213 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44214 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44215 * modules/fpending (EXTRA_DIST): Add __fpending.h.
44216 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44217 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44218 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44219 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44220 * modules/getdate (EXTRA_DIST): Add getdate.c.
44221 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44222 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44223 * modules/getpass (EXTRA_DIST): Add getpass.h.
44224 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44225 * modules/group-member (EXTRA_DIST): Add group-member.h.
44226 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44227 * modules/hash (EXTRA_DIST): Add hash.h.
44228 * modules/human (EXTRA_DIST): Add human.h.
44229 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44230 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44231 * modules/lchown (EXTRA_DIST): Add lchown.h.
44232 * modules/long-options (EXTRA_DIST): Add long-options.h.
44233 * modules/lstat (EXTRA_DIST): Add lstat.h.
44234 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44235 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44236 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44237 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44238 * modules/memxor (EXTRA_DIST): Add memxor.h.
44239 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44240 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44241 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44242 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44243 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44244 * modules/physmem (EXTRA_DIST): Add physmem.h.
44245 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44246 * modules/posixver (EXTRA_DIST): Add posixver.h.
44247 * modules/quote (EXTRA_DIST): Add quote.h.
44248 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44249 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44250 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44251 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44252 regex_internal.h regexec.c.
44253 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44254 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44255 * modules/same (EXTRA_DIST): Add same.h.
44256 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44257 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44258 * modules/savedir (EXTRA_DIST): Add savedir.h.
44259 * modules/sha1 (EXTRA_DIST): Add sha1.h.
44260 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44261 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44262 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44263 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44264 * modules/strdup (EXTRA_DIST): Add strdup.h.
44265 * modules/strftime (EXTRA_DIST): Add strftime.h.
44266 * modules/strndup (EXTRA_DIST): Add strndup.h.
44267 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44268 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44269 * modules/time_r (EXTRA_DIST): Add time_r.h.
44270 * modules/timespec (EXTRA_DIST): Add timespec.h.
44271 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44272 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44273 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44274 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44275 * modules/userspec (EXTRA_DIST): Add userspec.h.
44276 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44277 * modules/utimens (EXTRA_DIST): Add utimens.h.
44278 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44279 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44280 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44281 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44282 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44283 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44284 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44285 * modules/yesno (EXTRA_DIST): Add yesno.h.
44287 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
44289 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44291 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44292 * m4/dev-ino.m4, same-inode.m4: Remove.
44294 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44295 * m4/acl.m4 (AC_FUNC_ACL):
44296 * m4/backupfile.m4 (gl_BACKUPFILE):
44297 * m4/c-strtod.m4 (gl_C99_STRTOLD):
44298 * m4/canon-host.m4 (gl_CANON_HOST):
44299 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44300 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44301 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44302 * m4/cloexec.m4 (gl_CLOEXEC):
44303 * m4/close-stream.m4 (gl_CLOSE_STREAM):
44304 * m4/closeout.m4 (gl_CLOSEOUT):
44305 * m4/dirfd.m4 (gl_FUNC_DIRFD):
44306 * m4/dirname.m4 (gl_DIRNAME):
44307 * m4/exclude.m4 (gl_EXCLUDE):
44308 * m4/exitfail.m4 (gl_EXITFAIL):
44309 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44310 * m4/file-type.m4 (gl_FILE_TYPE):
44311 * m4/filemode.m4 (gl_FILEMODE):
44312 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44313 * m4/fpending.m4 (gl_FUNC_FPENDING):
44314 * m4/fprintftime.m4 (gl_FPRINTFTIME):
44315 * m4/fts.m4 (gl_FUNC_FTS):
44316 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44317 * m4/getdate.m4 (gl_GETDATE):
44318 * m4/gethrxtime.m4 (gl_GETHRXTIME):
44319 * m4/getpagesize.m4 (gl_GETPAGESIZE):
44320 * m4/getpass.m4 (gl_FUNC_GETPASS):
44321 * m4/gettime.m4 (gl_GETTIME):
44322 * m4/getugroups.m4 (gl_GETUGROUPS):
44323 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44324 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44325 * m4/hard-locale.m4 (gl_HARD_LOCALE):
44326 * m4/hash.m4 (gl_HASH):
44327 * m4/idcache.m4 (gl_IDCACHE):
44328 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44329 * m4/lchown.m4 (gl_FUNC_LCHOWN):
44330 * m4/long-options.m4 (gl_LONG_OPTIONS):
44331 * m4/lstat.m4 (gl_FUNC_LSTAT):
44332 * m4/md5.m4 (gl_MD5):
44333 * m4/memcasecmp.m4 (gl_MEMCASECMP):
44334 * m4/memcoll.m4 (gl_MEMCOLL):
44335 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44336 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44337 * m4/memxor.m4 (gl_MEMXOR):
44338 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44339 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44340 * m4/modechange.m4 (gl_MODECHANGE):
44341 * m4/mountlist.m4 (gl_MOUNTLIST):
44342 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44343 * m4/openat.m4 (gl_FUNC_OPENAT):
44344 * m4/pathmax.m4 (gl_PATHMAX):
44345 * m4/physmem.m4 (gl_PHYSMEM):
44346 * m4/posixtm.m4 (gl_POSIXTM):
44347 * m4/posixver.m4 (gl_POSIXVER):
44348 * m4/quote.m4 (gl_QUOTE):
44349 * m4/quotearg.m4 (gl_QUOTEARG):
44350 * m4/readtokens.m4 (gl_READTOKENS):
44351 * m4/readutmp.m4 (gl_READUTMP):
44352 * m4/regex.m4 (gl_REGEX):
44353 * m4/safe-read.m4 (gl_SAFE_READ):
44354 * m4/safe-write.m4 (gl_SAFE_WRITE):
44355 * m4/same.m4 (gl_SAME):
44356 * m4/save-cwd.m4 (gl_SAVE_CWD):
44357 * m4/savedir.m4 (gl_SAVEDIR):
44358 * m4/settime.m4 (gl_SETTIME):
44359 * m4/sha1.m4 (gl_SHA1):
44360 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44361 * m4/stat-macros.m4 (gl_STAT_MACROS):
44362 * m4/stat-time.m4 (gl_STAT_TIME):
44363 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44364 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44365 * m4/strdup.m4 (gl_FUNC_STRDUP):
44366 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44367 * m4/strndup.m4 (gl_FUNC_STRNDUP):
44368 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44369 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44370 * m4/time_r.m4 (gl_TIME_R):
44371 * m4/timespec.m4 (gl_TIMESPEC):
44372 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44373 * m4/unlinkdir.m4 (gl_UNLINKDIR):
44374 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44375 * m4/userspec.m4 (gl_USERSPEC):
44376 * m4/utimecmp.m4 (gl_UTIMECMP):
44377 * m4/utimens.m4 (gl_UTIMENS):
44378 * m4/xalloc.m4 (gl_XALLOC):
44379 * m4/xgetcwd.m4 (gl_XGETCWD):
44380 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44381 * m4/xreadlink.m4 (gl_XREADLINK):
44382 * m4/xstrtod.m4 (gl_XSTRTOD):
44383 * m4/yesno.m4 (gl_YESNO):
44384 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44385 to get the necessary .h files and whatnot.
44387 2006-08-21 Mark D. Baushke <mdb@gnu.org>
44388 Bruno Haible <bruno@clisp.org>
44390 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44391 /bin/sh understanding of '!' conditional negation.
44393 2006-08-21 Jim Meyering <jim@meyering.net>
44395 * modules/openat (Depends-on): Really alphabetize.
44397 * modules/acl (Depends-on): Add error and quote.
44399 * check-module (find_included_lib_files): Add at-func.c to the
44400 ok-to-include-more-than-once white list.
44402 * modules/openat (Depends-on): Add lstat. Alphabetize.
44404 2006-08-21 Bruno Haible <bruno@clisp.org>
44406 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44407 Emit a pkgdata_DATA variable only if some snippets add contents to it.
44408 Reported by Martin Lambers <marlam@marlam.de>.
44410 2006-08-21 Bruno Haible <bruno@clisp.org>
44412 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44413 specify an installation location, don't emit a noinst_LIBRARIES or
44414 noinst_LTLIBRARIES assignment.
44416 2006-08-21 Bruno Haible <bruno@clisp.org>
44419 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44420 BeOS has mbrtowc() but no <wctype.h>.
44422 2006-08-21 Bruno Haible <bruno@clisp.org>
44425 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44428 2006-08-21 Bruno Haible <bruno@clisp.org>
44431 * lib/mbchar.h: Include <wctype.h> only if it exists.
44433 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
44435 Remove files that are no longer needed by their respective modules.
44436 * m4/obstack.m4: Remove.
44437 * m4/strerror_r.m4: Remove.
44438 * m4/uint32_t.m4: Remove.
44439 * m4/uintptr_t.m4: Remove.
44440 * m4/ullong_max.m4: Remove.
44441 * m4/xstrtoimax.m4: Remove.
44442 * m4/xstrtoumax.m4: Remove.
44444 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44445 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44446 dependencies now capture this.
44448 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44449 Do not use AC_LIBSOURCES, since gnulib modules now do this.
44450 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44451 * m4/human.m4 (gl_HUMAN): Likewise.
44452 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44453 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44455 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44457 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44458 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44460 * m4/human.m4 (gl_HUMAN): Likewise.
44461 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44462 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44463 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44464 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44465 * m4/xstrtol (gl_XSTRTOL): Likewise.
44467 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44468 AC_TYPE_LONG_LONG_INT.
44469 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44470 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44471 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44472 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44474 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44477 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44478 (gl_PREREQ_XSTRTOUL): Remove.
44480 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44482 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44485 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
44487 Add and change modules to make it easier for coreutils to use
44489 * modules/backupfile (Files): Remove m4/d-ino.m4.
44490 (Depends-on): Add d-ino.
44491 * modules/cycle-check (Depends-on): Add stdint.
44492 (lib_SOURCES): Add cycle-check.h.
44493 * modules/d-ino: New module.
44494 * modules/d-type: New module.
44495 * modules/error (Files): Remove m4/strerror_r.m4.
44496 * modules/filemode (Files): Add m4/st_dm_mode.m4.
44497 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44498 m4/inttypes_h.m4, m4/uintmax_t.m4.
44499 (Depends-on): Add stdint.
44500 (lib_SOURCES): Add fsusage.h.
44501 * modules/getcwd (Files): Remove d-ino.m4.
44502 (Depends-on): Add d-ino.
44503 * modules/getndelim2 (Depends-on): Add stdint.
44504 * modules/glob (Files): Remove m4/d-type.m4.
44505 (Depends-on): Add d-type.
44506 * modules/host-os: New module.
44507 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44508 m4/inttypes_h.m4, m4/uintmax_t.m4.
44509 * Depends-on: Add stdint.
44510 (lib_SOURCES): Add human.h.
44511 * modules/inttostr (Files): Remove m4/intmax_t.m4,
44512 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44513 m4/uintmax_t.m4, m4/ulonglong.m4.
44514 (Depends-on): Add stdint.
44515 (EXTRA_DIST): Add inttostr.h.
44516 * modules/lchmod: New module.
44517 * modules/link-follow: New module.
44518 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44519 (Depends-on): Add lchmod.
44520 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44521 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44522 (Depends-on): Add stdint.
44523 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44524 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44525 (Depends-on): Add stdint.
44526 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44527 * modules/perl: New module.
44528 * modules/regex (Depends-on): Add stdint.
44529 * modules/rmdir-errno: New module.
44530 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44532 (Depends-on): Add stdint.
44533 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44535 (Depends-on): Add stdint.
44536 * modules/unlink-busy: New module.
44537 * modules/utimecmp (Depends-on): Add stdint.
44538 * modules/uptime: New module.
44539 * modules/winsz-ioctl: New module.
44540 * modules/winsz-termios: New module.
44541 * modules/xnanosleep (Depends-on): Add nanosleep.
44542 * modules/ullong_max: Remove.
44543 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44544 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44545 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44546 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44547 (Depends-on): Add inttypes.
44548 (lib_SOURCES): Add xstrtol.h.
44549 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44550 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44551 * MODULES.html.sh: Move 'assert' into the assert section.
44552 Move 'dummy' into the linking section.
44554 Add section for compatibility checks for POSIX:2001 functions,
44555 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44556 winsz-ioctl, and winsz-termios into it.
44558 Add top-level Misc section and put host-os, perl, and uptime
44561 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
44563 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44564 now assume the stdint module. Do not include inttypes.h.
44565 * lib/fsusage.h: Likewise.
44566 * lib/getndelim2.c: Likewise.
44567 * lib/human.h: Likewise.
44568 * lib/inttostr.h: Likewise.
44569 * lib/obstack.c: Likewise.
44570 * lib/regex_internal.h: Likewise.
44571 * lib/tempname.c: Likewise.
44572 * lib/utimecmp.c: Likewise.
44573 * lib/xstrtol.h: Likewise.
44575 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44577 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44578 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44579 * lib/xtime.h: Likewise.
44581 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
44583 * modules/openat (Files): Add lib/fchmodat.c.
44584 Fixes problem reported by Jay Youngman.
44586 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
44588 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
44589 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
44591 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
44592 Bruno Haible <bruno@clisp.org>
44594 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44595 and is a script that invokes bison. Tighten the code. Add comments.
44597 2006-08-18 Jim Meyering <jim@meyering.net>
44599 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44600 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44601 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
44602 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44604 2006-08-18 Bruno Haible <bruno@clisp.org>
44606 * modules/bison-i18n: New file.
44607 * MODULES.html.sh (Internationalization functions): Add it.
44609 2006-08-18 Bruno Haible <bruno@clisp.org>
44611 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44612 sys/statvfs.h. When getmntinfo was found, check its declaration and
44613 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44615 2006-08-18 Bruno Haible <bruno@clisp.org>
44617 * m4/bison-i18n.m4: New file, from bison.
44619 2006-08-18 Bruno Haible <bruno@clisp.org>
44621 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44622 (ME_DUMMY): Treat "kernfs" as a dummy.
44623 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44625 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
44627 Update from coreutils.
44629 2006-08-15 Jim Meyering <jim@meyering.net>
44631 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44633 2006-01-17 Jim Meyering <jim@meyering.net>
44635 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44637 2006-01-11 Jim Meyering <jim@meyering.net>
44639 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44640 Check for the lchmod function.
44642 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
44644 Update from coreutils.
44646 * lib/__fpending.h: Add copyright notice.
44647 * lib/fprintftime.h: Likewise.
44648 * lib/savedir.c: Use (C) in copyright notice.
44649 * lib/savedir.h: Likewise.
44651 2006-08-15 Jim Meyering <jim@meyering.net>
44653 * lib/at-func.c: New file, with the logic of all emulated at-functions.
44654 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44655 in support of the EXPECTED_ERRNO macro.
44656 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44657 definitions. Instead, define the appropriate symbols and include
44659 * lib/mkdirat.c (mkdirat): Likewise.
44660 * lib/fchmodat.c (fchmodat): Likewise.
44661 (ENOSYS): Remove definition.
44662 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44663 it. Don't include "unistd--.h" -- it wasn't ever used.
44665 2006-01-17 Jim Meyering <jim@meyering.net>
44667 Rewrite fts.c not to change the current working directory,
44668 by using openat, fstatat, fdopendir, etc..
44670 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44671 (HAVE_OPENAT_SUPPORT): Define.
44672 [_LIBC] (fchdir): Don't undef or define; no longer used.
44673 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44674 Now, this `function' always succeeds, and consumes its file descriptor
44675 parameter -- so callers must not close such FDs. Update callers.
44676 (diropen_fd, opendirat, cwd_advance_fd): New functions.
44677 (diropen): Add parameter, SP. Adjust all callers.
44678 Implement using diropen_fd, rather than open.
44679 (fts_open): Initialize new member, fts_cwd_fd.
44680 Remove fts_rft-setting code.
44681 (fts_close): Close fts_cwd_fd, if necessary.
44682 (__opendir2): Define in terms of opendir or opendirat,
44683 depending on whether the FST_NOCHDIR flag is set.
44684 (fts_build): Since fts_safe_changedir consumes its FD, and since
44685 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44686 and close the dup'd file descriptor upon failure.
44687 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44688 (fts_safe_changedir): Tweak semantics to reflect that this function
44689 now calls cwd_advance_fd and hence consumes its FD argument.
44690 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44691 [struct FTS] (fts_rft): Remove now-unused member.
44692 [struct FTS] (fts_cycle.state): Improve comment.
44694 * lib/openat.c (openat_needs_fchdir): New function.
44695 * lib/openat.h (openat_needs_fchdir): Declare it.
44697 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
44699 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44700 Problem and fix reported by Pádraig Brady in
44701 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44703 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
44705 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44707 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
44709 * lib/memcoll.c (memcoll): Optimize for the common case where the
44710 arguments are bytewise equal.
44712 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
44714 * doc/regexprops-generic.texi: Add a copyright notice.
44716 2006-08-15 Bruno Haible <bruno@clisp.org>
44718 * modules/tmpdir (License): Change to LGPL.
44720 2006-08-15 Bruno Haible <bruno@clisp.org>
44722 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44725 2006-08-14 Simon Josefsson <jas@extundo.com>
44727 * config/srclist.txt: Add gnupload.
44729 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44731 Change copyright notice from LGPL 2 to GPL 2, since that's the
44732 standard form used in the gnulib repository.
44733 * tests/test-lock.c: Likewise.
44734 * tests/test-stdint.c: Likewise.
44735 * tests/test-tls.c: Likewise.
44737 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44738 prelude-manager. User shorter URLs for GNU projects, without '?'.
44739 Add copyright notice.
44741 * check-module: Add copyright notice. Output a copyright
44742 notice if "--version" is specified.
44743 * modules/COPYING: New file.
44744 * tests/test-getaddrinfo.c: Add copyright notice.
44745 * tests/test-verify.c: Likewise.
44747 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44749 Change copyright notice from LGPL 2 to GPL 2, since that's the
44750 standard form used in the gnulib repository.
44751 * lib/lock.c: LGPL -> GPL.
44752 * lib/lock.h: Likewise.
44753 * lib/strnlen1.c: Likewise.
44754 * lib/strnlen1.h: Likewise.
44755 * lib/tls.c: Likewise.
44756 * lib/tls.h: Likewise.
44757 * lib/tmpdir.c: Likewise.
44759 * lib/TODO: Remove; this belongs only in coreutils.
44761 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44763 Add copyright notices to long-enough files that lack them, since
44764 otherwise the files aren't clearly free. Use the same notice that
44765 getdate.texi already uses.
44766 * doc/alloca-opt.texi: Add copyright notice.
44767 * doc/alloca.texi: Likewise.
44768 * doc/ctime.texi: Likewise.
44769 * doc/functions.texi: Likewise.
44770 * doc/gcd.texi: Likewise.
44771 * doc/gnulib-tool.texi: Likewise.
44772 * doc/inet_ntoa.texi: Likewise.
44773 * doc/visibility.texi: Likewise.
44775 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44776 * doc/quote.texi: Add copyright notice.
44778 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44779 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
44780 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
44781 Mention SunOS 5.11. Mention that everything before SunOS 5.7
44782 is now obsolete, and give a pointer to the Sun list.
44783 Add copyright notice.
44785 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
44787 * config/srclistvars.sh: Add copyright notice.
44789 2006-08-14 Eric Blake <ebb9@byu.net>
44791 Import the following change from libc:
44793 2006-08-12 Ulrich Drepper <drepper@redhat.com>
44796 * lib/misc/error.c: Add space between program name and message if file
44799 2006-08-12 Karl Berry <karl@gnu.org>
44801 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44802 remove, these originate in gnulib now.
44804 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44806 * doc/Makefile (standards.info standards.html standards.dvi):
44807 Also depend on make-stds.texi.
44809 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
44811 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44812 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
44814 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44815 in wchar_t. Problem reported by Eric Blake.
44817 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44818 LEN is smaller than SIZE. Suggested by Bruno Haible.
44819 Also, help the compiler to keep LEN in a register.
44821 2006-08-11 Eric Blake <ebb9@byu.net>
44823 * users.txt: Sort. Add tar.
44825 2006-08-11 Bruno Haible <bruno@clisp.org>
44827 * users.txt: New file.
44829 2006-08-11 Bruno Haible <bruno@clisp.org>
44831 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44832 before <wchar.h>. Needed for OSF/1 and BSD/OS.
44834 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
44836 * modules/snprintf (Depends-on): Remove minmax.
44837 (Maintainer): Add self and Bruno.
44839 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
44841 * lib/.cppi-disable: Add snprintf.h, socket_.h.
44842 * lib/snprintf.c: Include <errno.h> and <limits.h>.
44843 (EOVERFLOW): Define if the system does not.
44844 Do not include "minmax.h"; it wasn't used.
44845 (snprintf): Don't assume size_t promotes to an unsigned type.
44846 Fix bug when generated string was too long for the buffer: the
44847 buffer's contents are supposed to be the initial prefix of the
44848 output. Don't assume vasnprintf returns EOVERFLOW if the size
44849 exceeds INT_MAX; do the check ourselves.
44851 Import the following changes from libc:
44853 2006-06-02 Jakub Jelinek <jakub@redhat.com>
44855 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44856 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
44857 set wc to the byte which couldn't be converted.
44858 (re_string_reconstruct): Don't clear valid_raw_len before calling
44859 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
44860 tip_context using re_string_context_at.
44862 2006-05-02 Ulrich Drepper <drepper@redhat.com>
44864 * lib/posix/regex.h: g++ still cannot handled [restrict].
44866 2006-04-21 Ulrich Drepper <drepper@redhat.com>
44868 * lib/posix/regex.h: Remove special handling for VMS.
44870 2006-08-10 Jim Meyering <jim@meyering.net>
44872 * modules/same-inode: New module.
44873 * modules/dev-ino: New module.
44874 * modules/cycle-check: Depend on these modules, rather than simply
44875 including their .h files.
44876 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44877 required via m4/cycle-check.m4.
44878 * modules/same: Depend on new same-inode module, rather than
44879 including same-inode.h.
44880 * modules/chdir-safer: New file.
44882 * modules/chown (Depends-on): Add stat-macros.
44884 2006-08-10 Jim Meyering <jim@meyering.net>
44886 * m4/cycle-check.m4: New file.
44887 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44888 * m4/dev-ino.m4, m4/same-inode.m4: New files.
44890 2006-08-10 Eric Blake <ebb9@byu.net>
44892 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44893 in from original proposal.
44895 2006-08-10 Eric Blake <ebb9@byu.net>
44896 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44898 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44901 2006-08-10 Bruno Haible <bruno@clisp.org>
44903 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44906 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44908 Sync from coreutils.
44910 2006-07-19 Mike Frysinger <vapier@gentoo.org>
44912 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44913 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44915 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44917 * modules/restrict: Remove; no longer needed now that we assume
44918 Autoconf 2.59 or later.
44919 * MODULES.html.sh: Remove 'restrict'.
44920 * modules/argp (Depends-on): Remove 'restrict'.
44921 * modules/base64 (Depends-on): Likewise.
44922 * modules/gc (Depends-on): Likewise.
44923 * modules/getaddrinfo (Depends-on): Likewise.
44924 * modules/glob (Depends-on): Likewise.
44925 * modules/inet_ntop (Depends-on): Likewise.
44926 * modules/inet_pton (Depends-on): Likewise.
44927 * modules/memxor (Depends-on): Likewise.
44928 * modules/regex (Depends-on): Likewise.
44929 * modules/strtok_r (Depends-on): Likewise.
44930 * modules/time_r (Depends-on): Likewise.
44932 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
44934 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44935 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44936 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44937 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44938 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44939 * m4/memxor.m4 (gl_MEMXOR): Likewise.
44940 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
44941 gl_C_RESTRICT replaced by AC_C_RESTRICT.
44943 Merge from coreutils.
44944 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44945 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44946 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44947 * m4/time_r.m4 (gl_TIME_R): Likewise.
44949 2006-08-09 Karl Berry <karl@gnu.org>
44951 * config/srclist.txt: no more gettext-tools, per Bruno.
44953 2006-08-08 Eric Blake <ebb9@byu.net>
44955 * modules/verror: New module.
44956 * MODULES.html.sh: Document it.
44958 2006-08-08 Eric Blake <ebb9@byu.net>
44960 * lib/verror.h, lib/verror.c: New files.
44962 2006-08-08 Eric Blake <ebb9@byu.net>
44964 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44965 verror_at_line output complies with GNU Coding Standards even when
44968 2006-08-07 Bruno Haible <bruno@clisp.org>
44970 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44972 Reported by Ralf Wildenhues.
44974 2006-08-07 Bruno Haible <bruno@clisp.org>
44976 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44977 in an AC_DEFUN. Needed so that the autoconf snippets can use
44980 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44982 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44983 Initialize pkgdata_DATA.
44984 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44987 2006-08-06 Eric Blake <ebb9@byu.net>
44989 * lib/error.h: Fold in some upstream changes from glibc.
44990 * lib/error.c: Likewise.
44992 2006-08-04 Bruno Haible <bruno@clisp.org>
44994 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44995 Make the mostlyclean-local rule depend on mostlyclean-generic.
44996 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44998 2006-07-31 Bruno Haible <bruno@clisp.org>
45000 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45001 <stdlib.h>, <string.h>.
45003 2006-07-30 Bruno Haible <bruno@clisp.org>
45005 * modules/readlink (License): Change to LGPL.
45007 2006-07-30 Bruno Haible <bruno@clisp.org>
45009 * modules/javaversion (Makefile.am): Distribute javaversion.java and
45010 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45011 set PKGDATADIR to point to it.
45013 2006-07-30 Bruno Haible <bruno@clisp.org>
45015 * modules/csharpexec (configure.ac): Comment out macro invocation.
45016 * modules/javaexec (configure.ac): Likewise.
45017 * modules/javacomp-script (configure.ac): Likewise.
45019 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45021 2006-07-30 Bruno Haible <bruno@clisp.org>
45023 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45026 2006-07-30 Bruno Haible <bruno@clisp.org>
45028 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45030 2006-07-30 Bruno Haible <bruno@clisp.org>
45032 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45033 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45036 2006-07-29 Bruno Haible <bruno@clisp.org>
45038 Make it possible for gnulib-tool to work with locally modified or
45039 augmented gnulib repositories.
45040 * gnulib-tool (func_usage): Document --local-dir option.
45041 (local_gnulib_dir): New variable.
45042 Handle --local-dir option.
45043 (func_lookup_file): New function.
45044 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45045 (func_get_description, func_get_filelist, func_get_description,
45046 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45047 func_get_automake_snippet, func_get_include_directive,
45048 func_get_license, func_get_maintainer): Use func_lookup_file.
45049 (func_import, func_create_testdir): Use func_lookup_file.
45051 2006-07-29 Bruno Haible <bruno@clisp.org>
45053 * modules/setenv (Depends-on): Add unistd.
45055 2006-07-29 Bruno Haible <bruno@clisp.org>
45057 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45059 2006-07-29 Bruno Haible <bruno@clisp.org>
45061 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45063 2006-07-29 Bruno Haible <bruno@clisp.org>
45065 * gnulib-tool (import, update): If there is no Makefile.am, look at
45066 aclocal.m4, instead of bailing out.
45068 2006-07-29 Bruno Haible <bruno@clisp.org>
45070 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45071 Categorize the options by when they are useful.
45073 2006-07-29 Bruno Haible <bruno@clisp.org>
45075 * gnulib-tool (func_usage): Document option --no-libtool.
45076 Handle option --no-libtool.
45077 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45078 for changed semantics of $libtool variable.
45079 (func_import): Likewise. If libtool is not used, show this through
45080 an option --no-libtool.
45081 (func_create_testdir): Update.
45083 2006-07-29 Bruno Haible <bruno@clisp.org>
45085 * gnulib-tool (func_import): Extend error message about missing
45088 2006-07-29 Bruno Haible <bruno@clisp.org>
45090 * gnulib-tool (func_import): Don't create the $docbase directory if
45091 there is no file to store there.
45093 2006-07-29 Bruno Haible <bruno@clisp.org>
45095 * gnulib-tool (autoconf_minversion): If a --dir option is given and
45096 relevant, look for configure.ac there, not in the current directory.
45097 Also use a simple search for AC_PREREQ, not "autoconf --trace".
45099 2006-07-29 Bruno Haible <bruno@clisp.org>
45101 * gnulib-tool (SORT): New variable.
45102 (func_usage): Undocument --assume-autoconf option.
45103 Remove --assume-autoconf option handling.
45104 (autoconf_minversion): Determine from the contents of configure.ac.
45105 (func_import): Remove autoconf_minversion handling.
45106 Suggested by Eric Blake.
45108 2006-07-29 Bruno Haible <bruno@clisp.org>
45110 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45112 2006-07-29 Bruno Haible <bruno@clisp.org>
45114 * config/srclist.txt (*setenv.[ch]): Remove rules.
45116 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45118 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45120 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45122 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45125 2006-07-28 Simon Josefsson <jas@extundo.com>
45127 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45128 * modules/inet_pton (Depends-on): Likewise.
45130 2006-07-28 Simon Josefsson <jas@extundo.com>
45132 * m4/netinet_in_h.m4: New file.
45134 2006-07-28 Simon Josefsson <jas@extundo.com>
45136 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45139 2006-07-28 Simon Josefsson <jas@extundo.com>
45141 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45144 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
45146 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45147 setgid on directories only if they set these bits.
45148 * lib/modechange.h: Remove obsolete comment about masks.
45150 2006-07-28 Eric Blake <ebb9@byu.net>
45152 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45155 2006-07-28 Bruno Haible <bruno@clisp.org>
45157 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45159 2006-07-28 Bruno Haible <bruno@clisp.org>
45161 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45163 2006-07-28 Bruno Haible <bruno@clisp.org>
45165 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45166 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45168 Avoids link error on FreeBSD 4.x.
45169 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45171 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45173 * lib/mbswidth.c (iswcntrl): Likewise.
45175 2006-07-27 Bruno Haible <bruno@clisp.org>
45177 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45180 2006-07-27 Bruno Haible <bruno@clisp.org>
45182 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45183 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45186 2006-07-26 Eric Blake <ebb9@byu.net>
45188 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45190 2006-07-26 Eric Blake <ebb9@byu.net>
45192 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45193 like mingw that lack mkstemp.
45194 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45195 avoid compilation warning on mingw.
45197 2006-07-26 Bruno Haible <bruno@clisp.org>
45199 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45200 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45201 INT_FAST*_MIN, INTPTR_MIN.
45203 2006-07-25 Bruno Haible <bruno@clisp.org>
45205 * modules/version-etc (Depends-on): Add stdarg.
45207 2006-07-25 Bruno Haible <bruno@clisp.org>
45209 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45212 2006-07-25 Bruno Haible <bruno@clisp.org>
45214 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45215 defined in <stdarg.h> or config.h.
45217 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
45219 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45220 (gl_STDIO_SAFER): Remove.
45222 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
45224 * MODULES.html.sh (File stream based Input/Output):
45225 Add fopen-safer, tmpfile-safer; remove stdio-safer.
45226 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45227 * modules/fopen-safer, modules/tmpfile-safer: New files.
45228 * modules/stdio-safer: Remove.
45230 2006-07-24 Bruno Haible <bruno@clisp.org>
45232 * modules/tmpdir: New file.
45233 * MODULES.html.sh (File system functions): Add it.
45235 2006-07-24 Bruno Haible <bruno@clisp.org>
45237 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45238 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45240 2006-07-24 Bruno Haible <bruno@clisp.org>
45242 * modules/clean-temp: New file.
45244 2006-07-24 Bruno Haible <bruno@clisp.org>
45246 * m4/tmpdir.m4: New file, from GNU gettext.
45248 2006-07-24 Bruno Haible <bruno@clisp.org>
45250 * lib/tmpdir.h: New file, from GNU gettext.
45251 * lib/tmpdir.c: New file, from GNU gettext.
45253 2006-07-24 Bruno Haible <bruno@clisp.org>
45255 * lib/clean-temp.h: New file, from GNU gettext.
45256 * lib/clean-temp.c: New file, from GNU gettext.
45258 2006-07-23 Eric Blake <ebb9@byu.net>
45260 * modules/stdio-safer (Files): Add tmpfile-safer.c.
45261 (Depends-on): Add binary-io.
45263 2006-07-23 Eric Blake <ebb9@byu.net>
45265 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45267 2006-07-23 Eric Blake <ebb9@byu.net>
45269 * lib/tmpfile-safer.c: New file.
45270 * lib/stdio-safer.h (fopen_safer): Add prototype.
45271 * lib/stdio--.h (tmpfile): Make safer.
45273 2006-07-23 Bruno Haible <bruno@clisp.org>
45275 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45276 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45277 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45278 gl_linked_remove_at): Use it.
45280 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45281 and Simon Josefsson <jas@extundo.com>
45283 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45285 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45287 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
45289 * modules/close-stream: New file.
45290 * modules/closeout (Description): Make it clear that it exits
45291 with a diagnostic on error.
45292 (Depends-on): Add close-stream. Remove fpending, stdbool.
45293 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45295 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
45297 * m4/close-stream.m4: New file.
45299 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
45301 * lib/close-stream.c, lib/close-stream.h: New files.
45303 2006-07-22 Bruno Haible <bruno@clisp.org>
45305 Merge from GNU gettext 0.15.
45307 2006-05-01 Bruno Haible <bruno@clisp.org>
45309 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45311 2006-07-22 Bruno Haible <bruno@clisp.org>
45313 * modules/javaversion: New file.
45314 * MODULES.html.sh (Java): Add javaversion.
45316 2006-03-12 Bruno Haible <bruno@clisp.org>
45318 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45320 2005-12-04 Bruno Haible <bruno@clisp.org>
45322 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45325 2006-06-21 Bruno Haible <bruno@clisp.org>
45327 Avoid warnings from recent versions of mcs.
45328 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45329 -o, -L, -r any more. Use options documented since mcs-1.0
45330 instead. Similarly for -g.
45332 2005-12-04 Bruno Haible <bruno@clisp.org>
45334 * build-aux/csharpcomp.sh.in: Suffix for resources is
45335 .resources, not .resource.
45337 2005-07-09 Bruno Haible <bruno@clisp.org>
45339 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45341 Reported by Mark Junker <mjscod@gmx.de>.
45343 2006-07-22 Bruno Haible <bruno@clisp.org>
45345 * modules/gettext: Upgrade to gettext-0.15.
45346 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45348 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45350 2006-07-22 Bruno Haible <bruno@clisp.org>
45352 Merge from GNU gettext 0.15.
45354 2006-03-25 Bruno Haible <bruno@clisp.org>
45356 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45358 2006-07-21 Bruno Haible <bruno@clisp.org>
45360 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45363 2006-05-09 Bruno Haible <bruno@clisp.org>
45365 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45366 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45367 for the conftestver execution.
45369 2006-05-01 Bruno Haible <bruno@clisp.org>
45371 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45372 optional target-version argument. Verify that the compiler
45373 groks source of the specified source-version, or add -source
45374 option as necessary. Verify that the compiler produces
45375 bytecode in the specified target-version, or add -target and
45376 -source options as necessary. Make the result of the test
45377 available as variable CONF_JAVAC. Also log error output in
45380 2006-03-11 Bruno Haible <bruno@clisp.org>
45382 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45384 2006-05-09 Bruno Haible <bruno@clisp.org>
45386 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45387 CLASSPATH_SEPARATOR to a semicolon.
45389 2006-03-12 Bruno Haible <bruno@clisp.org>
45391 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45392 available as variable CONF_JAVA, for subsequent autoconf
45393 tests. Also log error output in config.log.
45395 2006-07-19 Bruno Haible <bruno@clisp.org>
45397 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45398 that getline works on glibc2 systems. Needed to avoid trouble
45400 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45402 2005-12-04 Bruno Haible <bruno@clisp.org>
45404 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45405 launcher (untested).
45407 2005-12-04 Bruno Haible <bruno@clisp.org>
45409 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45411 2006-07-22 Bruno Haible <bruno@clisp.org>
45413 * gettext.m4: Update from GNU gettext-0.15.
45414 * nls.m4: Likewise.
45416 * inttypes-pri.m4: Likewise.
45417 * inttypes-h.m4: Renamed from inttypes.m4.
45418 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45420 2006-07-22 Bruno Haible <bruno@clisp.org>
45422 Merge from GNU gettext 0.15.
45424 2005-07-05 Bruno Haible <bruno@clisp.org>
45426 * printf-args.c (printf_fetchargs): Work around broken
45427 definition of wint_t on mingw.
45429 2005-02-12 Bruno Haible <bruno@clisp.org>
45431 * xallocsa.h: Add extern "C" for C++.
45433 2006-05-17 Bruno Haible <bruno@clisp.org>
45435 Cygwin portability.
45436 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45438 2006-04-30 Bruno Haible <bruno@clisp.org>
45440 * progreloc.c: Include <mach-o/dyld.h> if available.
45441 (find_executable): Use _NSGetExecutablePath when possible.
45443 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
45445 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45448 2005-12-29 Bruno Haible <bruno@clisp.org>
45450 * progreloc.c (set_program_name_and_installdir): Fix
45453 2005-12-04 Bruno Haible <bruno@clisp.org>
45455 Cygwin portability.
45456 * progreloc.c: Include <windows.h> also on Cygwin.
45457 (find_executable): Add support for Cygwin.
45458 (set_program_name_and_installdir): Handle also platforms with
45461 2006-07-11 Bruno Haible <bruno@clisp.org>
45463 * javacomp.c: Fix a comment.
45464 Reported by Jim Meyering.
45466 2006-04-30 Bruno Haible <bruno@clisp.org>
45468 * javacomp.h (compile_java_class): Add source_version,
45469 target_version arguments.
45470 * javacomp.c: Rewritten to choose only a compiler that
45471 respects the specified source_version and target_version.
45473 2006-06-27 Bruno Haible <bruno@clisp.org>
45475 Assume correct S_ISDIR macro.
45476 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45478 2006-07-22 Bruno Haible <bruno@clisp.org>
45480 * javaversion.h: New file, from GNU gettext.
45481 * javaversion.c: New file, from GNU gettext.
45482 * javaversion.java: New file, from GNU gettext.
45483 * javaversion.class: New file, from GNU gettext.
45485 2006-05-17 Bruno Haible <bruno@clisp.org>
45487 Cygwin portability.
45488 * javaexec.c (execute_java_class): Test for jview program
45491 2006-04-09 Bruno Haible <bruno@clisp.org>
45493 * fatal-signal.c: Don't include string.h.
45494 (at_fatal_signal): Use a copying loop instead of memcpy.
45496 2005-12-04 Bruno Haible <bruno@clisp.org>
45498 * csharpexec.c: Add support for 'clix' launcher (untested).
45499 (execute_csharp_using_sscli): New function.
45500 (execute_csharp_program): Call it.
45502 2006-06-21 Bruno Haible <bruno@clisp.org>
45504 Avoid warnings from recent versions of mcs.
45505 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45506 -o, -L, -r any more. Use options documented since mcs-1.0
45507 instead. Similarly for -g.
45509 2005-07-09 Bruno Haible <bruno@clisp.org>
45511 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45513 Reported by Mark Junker <mjscod@gmx.de>.
45515 2006-06-17 Bruno Haible <bruno@clisp.org>
45517 * config.charset: Update for NetBSD 3.0.
45519 2006-05-17 Bruno Haible <bruno@clisp.org>
45521 Cygwin portability.
45522 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45524 2006-05-16 Bruno Haible <bruno@clisp.org>
45526 * localcharset.c [CYGWIN]: Include <windows.h>.
45527 (get_charset_aliases): For Cygwin, return the same CPxxx
45528 aliases list as under WIN32.
45529 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45530 the environment variables. Fall back to GetACP().
45532 2006-04-05 Bruno Haible <bruno@clisp.org>
45534 * config.charset: Update Juan Manuel Guerrero's address.
45536 2005-02-12 Bruno Haible <bruno@clisp.org>
45538 * allocsa.h: Add extern "C" for C++.
45540 2005-02-10 Bruno Haible <bruno@clisp.org>
45542 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45543 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45545 2006-07-22 Bruno Haible <bruno@clisp.org>
45547 * gettext.h: Update to GNU gettext-0.15.
45549 2006-07-22 Bruno Haible <bruno@clisp.org>
45551 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45552 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45553 lib-prefix.m4, longdouble.m4, ssize_t.m4.
45555 2006-07-21 Eric Blake <ebb9@byu.net>
45557 * modules/stdlib-safer: New file.
45558 * MODULES.html.sh (File stream based Input/Output): Add
45561 2006-07-21 Eric Blake <ebb9@byu.net>
45563 * lib/stdlib-safer.h: New file from coreutils, required by
45566 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
45568 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45570 2006-07-20 Bruno Haible <bruno@clisp.org>
45572 * gnulib-tool: Recognize new option --assume-autoconf.
45573 (autoconf_minversion): New variable.
45574 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45576 2006-07-20 Bruno Haible <bruno@clisp.org>
45578 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45580 2006-07-19 Derek R. Price <derek@ximbiot.com>
45582 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45583 Reindent and repaginate.
45585 2006-07-19 Derek Price <derek@ximbiot.com>
45587 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
45590 2006-07-17 Bruno Haible <bruno@clisp.org>
45592 * modules/list: New file.
45593 * modules/array-list: New file.
45594 * modules/carray-list, modules/carray-list-tests: New files.
45595 * modules/linked-list, modules/linked-list-tests: New files.
45596 * modules/avltree-list, modules/avltree-list-tests: New files.
45597 * modules/rbtree-list, modules/rbtree-list-tests: New files.
45598 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45599 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45600 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45601 * modules/oset: New file.
45602 * modules/array-oset: New file.
45603 * modules/avltree-oset, modules/avltree-oset-tests: New files.
45604 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45605 * tests/test-carray_list.c: New file.
45606 * tests/test-linked_list.c: New file.
45607 * tests/test-avltree_list.c: New file.
45608 * tests/test-rbtree_list.c: New file.
45609 * tests/test-linkedhash_list.c: New file.
45610 * tests/test-avltreehash_list.c: New file.
45611 * tests/test-rbtreehash_list.c: New file.
45612 * tests/test-avltree_oset.c: New file.
45613 * tests/test-rbtree_oset.c: New file.
45614 * MODULES.html.sh (Container data structures): New section.
45616 2006-07-17 Bruno Haible <bruno@clisp.org>
45618 * m4/gl_list.m4: New file.
45620 2006-07-17 Bruno Haible <bruno@clisp.org>
45622 * lib/gl_list.h: New file.
45623 * lib/gl_list.c: New file.
45624 * lib/gl_array_list.h: New file.
45625 * lib/gl_array_list.c: New file.
45626 * lib/gl_carray_list.h: New file.
45627 * lib/gl_carray_list.c: New file.
45628 * lib/gl_linked_list.h: New file.
45629 * lib/gl_linked_list.c: New file.
45630 * lib/gl_anylinked_list1.h: New file.
45631 * lib/gl_anylinked_list2.h: New file.
45632 * lib/gl_avltree_list.h: New file.
45633 * lib/gl_avltree_list.c: New file.
45634 * lib/gl_anyavltree_list1.h: New file.
45635 * lib/gl_anyavltree_list2.h: New file.
45636 * lib/gl_rbtree_list.h: New file.
45637 * lib/gl_rbtree_list.c: New file.
45638 * lib/gl_anyrbtree_list1.h: New file.
45639 * lib/gl_anyrbtree_list2.h: New file.
45640 * lib/gl_anytree_list1.h: New file.
45641 * lib/gl_anytree_list2.h: New file.
45642 * lib/gl_linkedhash_list.h: New file.
45643 * lib/gl_linkedhash_list.c: New file.
45644 * lib/gl_anyhash_list1.h: New file.
45645 * lib/gl_anyhash_list2.h: New file.
45646 * lib/gl_avltreehash_list.h: New file.
45647 * lib/gl_avltreehash_list.c: New file.
45648 * lib/gl_rbtreehash_list.h: New file.
45649 * lib/gl_rbtreehash_list.c: New file.
45650 * lib/gl_anytreehash_list1.h: New file.
45651 * lib/gl_anytreehash_list2.h: New file.
45653 * lib/gl_oset.h: New file.
45654 * lib/gl_oset.c: New file.
45655 * lib/gl_array_oset.h: New file.
45656 * lib/gl_array_oset.c: New file.
45657 * lib/gl_avltree_oset.h: New file.
45658 * lib/gl_avltree_oset.c: New file.
45659 * lib/gl_rbtree_oset.h: New file.
45660 * lib/gl_rbtree_oset.c: New file.
45661 * lib/gl_anytree_oset.h: New file.
45663 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
45665 * m4/mkancesdirs.m4: New file.
45666 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45667 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45668 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45671 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
45673 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45674 * lib/mkancesdirs.h: New files.
45675 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45676 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45677 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
45678 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45679 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
45680 callers changed. Revamp internals significantly, by not
45681 attempting to create directories that are temporarily more
45682 permissive than the final results. Do not attempt to use
45683 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45684 This removes some race conditions, fixes some bugs, and simplifies
45685 things. Use new dirchownmod function to do owner and mode changes.
45686 * lib/mkdir-p.h: Likewise.
45687 * lib/modechange.c (octal_to_mode): New function.
45688 (struct mode_change): New member mentioned.
45689 (make_node_op_equals): New arg mentioned. All callers changed.
45690 (mode_compile): Keep track of which mode bits the user has explicitly
45692 (mode_adjust): New arg DIR, so that we implement the X op correctly.
45693 New arg PMODE_BITS, to keep track of which mode bits the user
45694 mentioned; it treats S_ISUID and S_ISGID speciall.
45695 All callers changed.
45696 * lib/modechange.h: Likewise.
45698 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
45700 * MODULES.html.sh: Add mkancestors.
45701 * modules/mkancesdirs: New module.
45702 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45703 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45704 The chdir-safer and afs files are now orphans; I'll remove them
45705 unless someone speaks up.
45706 Add lib/dirchownmod.c, lib/dirchownmod.h.
45707 (Depends-on): Remove alloca, chown, save-cwd, dirname.
45708 Add lchown, mkancesdirs.
45709 (Maintainer): Add self.
45711 2006-07-15 Karl Berry <karl@gnu.org>
45713 * gnulib-tool: help message wording/arrangement.
45715 2006-07-14 Simon Josefsson <jas@extundo.com>
45717 * doc/gnulib.texi (Libtool and Windows): New section.
45719 2006-07-12 Simon Josefsson <jas@extundo.com>
45721 * modules/gendocs (License): Fix license, approved by Karl.
45723 2006-07-12 Eric Blake <ebb9@byu.net>
45725 * MODULES.html.sh: Add gendocs.
45727 2006-07-11 Eric Blake <ebb9@byu.net>
45729 * modules/fdl: New module, to install doc/fdl.texi.
45730 * MODULES.html.sh: Add new section for documentation modules.
45731 * gnulib-tool: Avoid space-tab.
45732 (--doc-base): New option, to manage files from doc.
45734 2006-07-11 Eric Blake <ebb9@byu.net>
45736 * m4/absolute-header.m4: Fix comments to match recent change.
45738 2006-07-11 Eric Blake <ebb9@byu.net>
45740 * gnulib-tool: List --doc-base before --tests-base.
45742 2006-07-11 Derek R. Price <derek@ximbiot.com>
45744 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45746 2006-07-11 Bruno Haible <bruno@clisp.org>
45748 * README: Mention where to put documentation.
45750 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45752 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45754 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
45756 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45759 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
45761 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45762 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
45763 "no/such/file/stdint.h" when there is no such file, so that
45764 the resulting C code can be parsed by dodgy compilers.
45765 Problems reported by Bob Proulx.
45767 2006-07-10 Derek R. Price <derek@ximbiot.com>
45769 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45770 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
45771 macros into the GNU _D_EXACT_NAMLEN.
45772 * lib/savedir.c: Likewise.
45773 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45775 2006-07-10 Derek R. Price <derek@ximbiot.com>
45776 and Paul Eggert <eggert@cs.ucla.edu>
45778 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45780 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
45781 macros into the GNU _D_EXACT_NAMLEN.
45783 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
45785 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45786 around the absolute name, to work around a problem with the HP-UX
45787 11.23 native C compiler, reported by Bob Proulx.
45789 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
45791 * doc/maintain.texi, make-stds.texi: Sync from
45792 <http://savannah.gnu.org/projects/gnustandards>.
45794 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
45796 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45798 2006-07-09 Jim Meyering <jim@meyering.net>
45800 * m4/glob.m4: Remove a doubled word in a comment.
45802 2006-07-09 Jim Meyering <jim@meyering.net>
45804 * lib/argp-pv.c: Remove a doubled word in a comment.
45805 * lib/check-version.c (check_version): Likewise.
45806 * lib/javacomp.c (compile_java_class): Likewise.
45808 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
45810 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45811 for the benefit of people using Autoconf 2.60. If you want to
45812 support older Autoconf versions you can copy m4/onceonly_2_57.m4
45813 (or m4/onceonly.m4, if pre-2.57) manually.
45815 2006-07-08 Jim Meyering <jim@meyering.net>
45817 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45819 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45820 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45823 2006-07-08 Jim Meyering <jim@meyering.net>
45825 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45827 2006-07-07 Simon Josefsson <jas@extundo.com>
45829 * tests/test-crc.c: Change expected crc value, the test vector
45830 were probably computed using the old broken crc.c?
45832 2006-07-06 Simon Josefsson <jas@extundo.com>
45834 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45835 now the canonical place for the M4 file).
45837 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45838 from the sys_socket dependency now.
45840 * modules/inet_pton (Files): Ditto.
45842 * modules/inet_ntop (Files): Ditto.
45844 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
45846 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45847 not gl_PREREQ_GETUSERSHELL.
45849 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45851 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45852 with only one argument, for Autoconf 2.60.
45853 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45854 expand to nothing, so add a shell command to avoid syntax error.
45855 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45857 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45859 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45861 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45863 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45864 no longer needed. Check for isblank decl.
45865 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45866 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45869 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45871 * lib/getloadavg.c: Use __VMS, not VMS.
45872 * lib/getopt.c: Likewise.
45873 * lib/getpagesize.h: Likewise.
45874 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45875 and probably does not work.
45877 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
45879 * lib/.cppi-disable: Add wcwidth.
45880 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
45881 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45882 (ISGRAPH): Remove. All uses changed to isgraph.
45883 (FOLD) [!defined _LIBC]: Remove special case.
45884 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45885 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45887 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45890 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45892 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45893 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45894 brackets. Other minor changes to suppress some compiler
45897 2006-07-06 Derek R. Price <derek@ximbiot.com>
45898 and Paul Eggert <eggert@cs.ucla.edu>
45900 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45901 of invoking obsolescent AC_HEADER_DIRENT macro.
45902 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45903 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45904 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45905 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45906 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45907 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45908 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45909 * m4/readdir.m4: Remove; no longer needed.
45911 2006-07-06 Derek R. Price <derek@ximbiot.com>
45912 and Paul Eggert <eggert@cs.ucla.edu>
45914 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45915 Don't worry about this obsolete case any more.
45916 (HAVE_DIR): Remove. All uses removed; we now assume you can read
45918 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45919 worry about this obsolete case any more.
45920 * lib/fts.c: Likewise.
45921 * lib/getcwd.c: Likewise.
45922 * lib/glob.h: Likewise.
45923 * lib/savedir.c: Likewise.
45925 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
45927 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45928 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45929 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45932 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45933 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45934 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45936 * m4/getdate.m4 (gl_GETDATE): Likewise.
45937 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45938 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45939 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45940 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45941 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45942 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45943 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45946 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
45948 * lib/memcasecmp.c: Include <limits.h>.
45949 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45950 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45951 Don't assume isdigit succeeds only on '0' through '9'.
45953 2006-07-05 Eric Blake <ebb9@byu.net>
45955 * modules/getaddrinfo (Depends-on): Add snprintf.
45957 2006-07-05 Eric Blake <ebb9@byu.net>
45959 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45960 to avoid 'header present but could not be compiled' on cygwin.
45962 2006-07-05 Eric Blake <ebb9@byu.net>
45964 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45965 missing from netdb.h.
45966 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45968 2006-07-05 Derek R. Price <derek@ximbiot.com>
45970 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45972 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45973 * m4/getdate.m4 (gl_GETDATE): Likewise.
45974 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45975 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45976 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45977 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45978 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45980 2006-07-05 Derek R. Price <derek@ximbiot.com>
45982 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45983 All uses of is_space replaced by isspace.
45984 * lib/exit.h: Don't talk about STDC_HEADERS.
45985 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
45986 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45987 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
45988 replaced by isprint etc.
45989 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45990 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45991 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45992 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45993 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45994 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45996 2006-07-05 Bruno Haible <bruno@clisp.org>
45998 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45999 the function exists, before testing against AIX.
46000 Reported by Martin Lambers <marlam@marlam.de>.
46002 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
46004 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46005 From Mark D. Baushke.
46007 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
46009 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46010 to the absolute name, not just one, to bypass Sun C 5.8's
46011 "warning: #include of /usr/include/... may be non-portable".
46013 2006-07-04 Eric Blake <ebb9@byu.net>
46015 * modules/dirname-tests: New test module.
46016 * tests/test-dirname.c: New file, replacing dirname.c
46017 TEST_DIRNAME section that was recently deleted.
46019 2006-07-04 Bruno Haible <bruno@clisp.org>
46021 Assume ANSI C header files and <ctype.h> functions.
46022 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46023 (mbsnwidth): Use isprint, iscntrl instead.
46025 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
46027 Merge from coreutils.
46028 * MODULES.html.sh: Add xstrtold.
46029 * modules/xstrtold: New file.
46030 * modules/cycle-check (Files): Add lib/same-inode.h.
46031 * modules/dirname (Files): Add m4/double-slash-root.m4.
46032 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46033 * modules/mkdir-p (Files): Add lib/same-inode.h.
46034 * modules/same (Files): Add lib/same-inode.h.
46036 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
46038 * m4/absolute-header.m4: Renamed from full-header-path.m4.
46039 This is to keep the terminology clean; POSIX talks about
46040 "absolute pathnames", not "full pathnames", but the GNU
46041 Coding Standards say to use "path" for something else;
46042 so use "absolute" to keep both sides happy.
46043 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46044 Set gl_absolute_header, not gl_full_header_path.
46045 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46046 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46049 Merge from coreutils.
46051 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
46053 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46054 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46055 want to require the building of c-strtod.o.
46056 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46057 needs -lm directly.
46058 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46060 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
46062 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46063 --as-needed option if available. Problem reported by Albert Chin in
46064 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46065 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46066 cc merely issues a bunch of annoying warnings for --as-needed
46067 (this problem was reported by Bob Proulx). Also, try linking with
46068 -lm to detect a bug in binutils 2.16 (this problem was reported
46069 by Ralf Wildenhues).
46071 2006-06-18 Jim Meyering <jim@meyering.net>
46073 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46074 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46076 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46077 also check for glibc-2.4's abort-inducing bug.
46079 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46080 Low-probability clean-up should be to use rmdir to get rid of
46081 the just-created directory, not unlink.
46083 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46084 configure fail, and request a bug report to inform us about it.
46085 Add a comment that, barring reports to the contrary, in 2007 we'll
46086 assume ftruncate is universally available.
46088 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
46090 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46092 2006-03-12 Jim Meyering <jim@meyering.net>
46094 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46095 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46096 * m4/same.m4 (gl_SAME): Likewise.
46097 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46099 2006-03-11 Eric Blake <ebb9@byu.net>
46101 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46102 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46103 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46104 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46106 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
46108 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46109 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
46110 reported by Mark D. Baushke, one in
46111 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46113 Merge from coreutils.
46115 * lib/.cppi-disable: Add stdint_.h.
46116 * lib/.cvsignore: Add stdint.h.
46118 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
46120 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46121 both double and long double versions.
46122 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
46123 * lib/xstrtold.c: New file.
46124 * lib/xstrtod.h (xstrtold): New decl.
46126 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
46128 * lib/filemode.c (setst): Remove.
46129 (strmode): Rewrite to avoid setst. This makes the code shorter,
46130 (arguably) clearer, and the generated code is a bit smaller on my
46131 Debian GNU/Linux stable x86 host.
46133 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
46135 * lib/filemode.c: Include "filemode.h" first, to test the interface.
46136 Assume that filemode.h includes sys/types.h and sys/stat.h.
46137 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46138 (ftypelet): Reorder to put common cases first, for efficiency.
46139 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
46141 (strmode): Renamed from mode_string, and now stores 12 bytes instead
46142 of 10, for compatibility with FreeBSD. All callers changed.
46143 (filemodestring): Now stores 12 bytes instead of 10, and sets file
46144 types that can't be deduced solely from st_mode. First arg is now a
46146 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46147 (strmode): Renamed from mode_string.
46148 (filemodestring): New decl.
46149 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46150 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46152 (S_ISPORT, S_ISWHT): New macros, if not already defined.
46154 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
46156 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46157 fsusage.h now does that. Include fsusage.h first, to test interface.
46158 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
46159 at most one method (the old code could have generated decls that
46160 didn't conform to C89, not that this was ever exercised).
46161 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46163 2006-03-19 Jim Meyering <jim@meyering.net>
46165 Work even in a chroot where d_ino values for entries in "/"
46166 don't match the stat.st_ino values for the same names.
46167 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46168 number, iterate through all entries again, using lstat instead.
46169 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46170 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46172 * lib/getcwd.c (__getcwd): Clarify a comment.
46173 Use memcpy in place of a call to strcpy.
46175 2006-03-12 Jim Meyering <jim@meyering.net>
46177 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46178 matches that of the current directory (which we're about to chdir ".."
46179 out of), then save the dev-ino of the parent, instead.
46181 * lib/same-inode.h (SAME_INODE): New file/macro.
46182 * lib/chdir-safer.c (SAME_INODE): Remove definition.
46183 Include "same-inode.h", instead.
46184 * lib/same.c: Likewise.
46185 * lib/cycle-check.h: Include "same-inode.h".
46186 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46187 * lib/cycle-check.c (SAME_INODE): Remove definition.
46188 * lib/root-dev-ino.h: Include "same-inode.h".
46190 2006-03-11 Eric Blake <ebb9@byu.net>
46192 * lib/same.c (same_name): s/base_name/last_component/
46193 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46194 * lib/filenamecat.c (file_name_concat): Likewise.
46196 2006-03-11 Eric Blake <ebb9@byu.net>,
46197 Paul Eggert <eggert@cs.ucla.edu>
46199 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46200 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46202 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46203 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46204 (last_component): New method.
46205 * lib/dirname.c (dir_len): Determine when drive letters need a
46206 subsequent slash. Preserve // when it is special.
46207 (dir_name): Don't append dot when drive letter is absolute.
46208 [TEST_DIRNAME]: Move into a full-blown gnulib test.
46209 * lib/basename.c (base_name): New semantics - malloc the result.
46210 Preserve // when it is special. Preserve relative files that look
46211 like drive letters.
46212 (base_len): Preserve // when it is special.
46213 (last_component): New method, similar to old base_name semantics.
46214 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46215 base_name. Strip redundant slashes from ///.
46217 2006-07-03 Jim Meyering <jim@meyering.net>
46219 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46220 macro is used before the first cycle_check call.
46222 2006-07-03 Eric Blake <ebb9@byu.net>
46224 * modules/dirname (Depends-on): Add xstrndup.
46226 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
46228 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46229 test cases, so that config.log is a bit easier to follow.
46231 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
46233 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46234 both are 64 bits, since this seems to be the tradition, and this
46235 prevents gcc -Wformat from warning about usages with PRIuMAX. If
46236 we ever run into a host that prefers long long to long in this
46237 case, we'll need another configure-time test. Problem reported by
46240 2006-07-02 Eric Blake <ebb9@byu.net>
46242 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46244 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
46246 * modules/inttypes (Depends-on): No longer depends on stdint.
46247 * modules/stdint (Description): Say more about assumptions.
46248 Say that the fast types might differ. Say macros are used.
46249 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
46250 (Makefile.am): Revise list of substituted symbols to match
46252 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46253 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46254 * tests/test-stdint.c (verify_same_types)
46255 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46256 the code conforms to C99/C89.
46257 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46258 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46260 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
46262 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46263 but fix a bug, by requiring at least 64 bits.
46264 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46265 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46266 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
46267 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46269 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46270 changes. Make 2.59 a prerequisite. Check and substitute for
46271 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
46272 inttypes.h. Do not use special include files; just use the
46273 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
46274 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
46275 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46276 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46277 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46278 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46279 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46280 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46281 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46282 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46283 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46284 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46285 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46286 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46287 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46288 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46289 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46290 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46291 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46292 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46293 WINT_MAX. Check for C99 conformance more strictly, by detecting
46294 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
46295 not check for things that C99 does not require, e.g., int8_t. If
46296 a test isn't needed unless <stdint.h> isn't working, and is
46297 unlikely to be needed for any other reason, then don't do it
46298 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
46299 size_t, since we assume C89 freestanding at least. Do not check
46300 for sig_atomic_t, wchar_t, or wint_t, since the code now does
46301 the right thing even if the types are not defined. Instead use:
46302 (gl_STDINT_TYPE_PROPERTIES): New macro.
46303 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
46304 testing whether <sys/types.h> clashes, as Autoconf does this for
46305 us now. All uses removed.
46306 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46307 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46308 (gl_CHECK_TYPE_SAME):
46309 Remove; no longer needed.
46310 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46311 exists, since we'll return 0 anyway in that case.
46312 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46314 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
46316 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46317 possible collision with system files.
46318 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46319 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46320 WCHAR_MIN and WCHAR_MAX in this case.
46321 (<stddef.h>): Do not include; no longer needed.
46322 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46323 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46324 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46325 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46326 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46327 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46328 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46329 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46330 !defined(__c99))]: Include in this case too, since it's harmless
46332 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46333 dangerous to do so.
46334 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46335 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46336 (_STDINT_MIN, _STDINT_MAX): New macros.
46337 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46338 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46339 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46340 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46341 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46342 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46343 macros, not typedefs; this simplifies things quite a bit.
46344 Use long int for all types narrower than int64_t.
46345 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46346 Define in terms of long long int or int64_t or long int,
46347 not int64_t or int32_t. This saves some compile-time testing.
46348 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46349 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46350 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46351 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46352 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46353 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46354 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46355 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46356 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46357 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46358 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46359 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46360 undef any previous version and define our own version, for
46361 simplicity and consistency with the new macros for types.
46362 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46363 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46364 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46365 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
46366 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46367 @WINT_T_SUFFIX@ to keep things simple here.
46368 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46369 Simplify by assuming typical 8/16/32/64 host, since we're
46370 already doing that elsewhere anyway.
46371 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46372 and assume long long int is 64 bits if available. This
46373 speeds up 'configure'.
46375 2006-07-01 Eric Blake <ebb9@byu.net>
46377 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46378 Reported by Andreas Buening.
46380 2006-07-01 Eric Blake <ebb9@byu.net>
46382 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46384 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
46386 * lib/getaddrinfo.c: fixed typo
46388 2006-06-29 Jim Meyering <jim@meyering.net>
46390 * modules/strftime (Maintainer): Add my name, since with the
46391 FPRINTFTIME changes strftime.c has forked from glibc.
46393 2006-06-29 Eric Blake <ebb9@byu.net>
46395 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46397 2006-06-29 Eric Blake <ebb9@byu.net>
46399 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46401 2006-06-29 Eric Blake <ebb9@byu.net>
46403 * lib/stat_.h: New file.
46405 2006-06-29 Eric Blake <ebb9@byu.net>
46407 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46408 unused static function.
46410 2006-06-29 Eric Blake <ebb9@byu.net>
46412 * doc/functions.texi (Function Portability): Document missing lstat
46415 2006-06-29 Eric Blake <ebb9@byu.net>
46417 * MODULES.html.sh: Add sys_stat.
46418 * modules/sys_stat: New module.
46419 * modules/mkstemp (Depends-on): Add sys_stat.
46421 2006-06-29 Derek R. Price <derek@ximbiot.com>
46423 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46425 2006-06-29 Derek R. Price <derek@ximbiot.com>
46427 * m4/c-bs-a.m4: Removed.
46429 2006-06-29 Derek R. Price <derek@ximbiot.com>
46431 * lib/strftime.c: Assume strftime() exists.
46433 2006-06-29 Derek Price <derek@ximbiot.com>
46435 * modules/c-bs-a: Removed - \a is C89.
46436 * MODULES.html.sh: Remove c-bs-a.
46438 2006-06-29 Bruno Haible <bruno@clisp.org>
46440 * modules/wcwidth (License): Change to LGPL.
46442 2006-06-28 Simon Josefsson <jas@extundo.com>
46444 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
46447 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46450 2006-06-28 Simon Josefsson <jas@extundo.com>
46452 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46454 2006-06-28 Simon Josefsson <jas@extundo.com>
46456 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46457 functions there. It will succeed on Windows XP, but on Windows
46458 2000 and (presumably) earlier, it will fail, and use the internal
46460 (use_win32_p): New function.
46461 (getaddrinfo): Use strtoul on servname, to support numeric ports.
46462 Support AI_NUMERICSERV to disable getservbyname.
46463 (getnameinfo): New function, only supports
46464 NI_NUMERICHOST|NI_NUMERICSERV for now.
46466 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46467 only have some of them. Add AI_NUMERICSERV. Add prototype for
46470 2006-06-28 Eric Blake <ebb9@byu.net>
46472 * modules/wcwidth: New file.
46473 * modules/mbchar (Depends-on): Add wcwidth.
46474 * modules/mbswidth (Depends-on): Add wcwidth.
46475 * MODULES.html.sh: Add wcwidth.
46477 2006-06-28 Eric Blake <ebb9@byu.net>
46479 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46480 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46482 2006-06-28 Eric Blake <ebb9@byu.net>
46484 * lib/xvasprintf.h: Fix comments.
46486 2006-06-28 Eric Blake <ebb9@byu.net>
46488 * lib/mbchar.h (wcwidth): Include wcwidth.h.
46489 * lib/mbswidth.c (wcwidth): Move from here...
46490 * lib/wcwidth.h: ...to this new file.
46492 2006-06-28 Derek R. Price <derek@ximbiot.com>
46494 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46496 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46498 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46500 2006-06-28 Derek R. Price <derek@ximbiot.com>
46502 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
46503 Autoconf 2.60 says this stuff was obsolete.
46505 2006-06-28 Bruno Haible <bruno@clisp.org>
46507 * modules/wcwidth (Files): Add m4/wchar_t.m4.
46509 2006-06-28 Bruno Haible <bruno@clisp.org>
46511 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46514 2006-06-28 Bruno Haible <bruno@clisp.org>
46516 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46517 declaration for wcwidth.
46518 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46520 2006-06-28 Bruno Haible <bruno@clisp.org>
46522 * lib/mkdtemp.c [MINGW]: Include <io.h>.
46523 (mkdir): Define using _mkdir.
46525 2006-06-28 Bruno Haible <bruno@clisp.org>
46527 * lib/getaddrinfo.h: Fix POSIX URL.
46528 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46530 (use_win32_p): Make static.
46531 (getaddrinfo): Reject service name if it is empty or does not consist
46532 solely of decimal digits, or if its value is > 65535.
46533 (getnameinfo): Remove useless casts.
46535 2006-06-27 Simon Josefsson <jas@extundo.com>
46537 * modules/sys_select: New file, suggested by Bruno Haible, Paul
46538 Eggert and Martin Lambers.
46540 2006-06-27 Simon Josefsson <jas@extundo.com>
46542 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46543 Eggert and Martin Lambers.
46545 2006-06-27 Bruno Haible <bruno@clisp.org>
46547 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46548 result to 0, not to empty.
46549 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46551 2006-06-27 Bruno Haible <bruno@clisp.org>
46553 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46555 2006-06-26 Simon Josefsson <jas@extundo.com>
46557 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46560 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
46562 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46563 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
46564 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46566 2006-06-26 Mark D. Baushke <mdb@gnu.org>
46568 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46570 2006-06-26 Bruno Haible <bruno@clisp.org>
46572 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46574 2006-06-26 Bruno Haible <bruno@clisp.org>
46576 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46578 2006-06-26 Bruno Haible <bruno@clisp.org>
46580 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46581 SGI C compiler in pre-C99 mode.
46582 Suggested by Mark D. Baushke and Larry Jones.
46584 2006-06-26 Bruno Haible <bruno@clisp.org>
46586 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46588 Reported by Mark D. Baushke and Larry Jones.
46590 2006-06-26 Bruno Haible <bruno@clisp.org>
46592 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46594 Suggested by Mark D. Baushke and Larry Jones.
46596 2006-06-23 Simon Josefsson <jas@extundo.com>
46597 Bruno Haible <bruno@clisp.org>
46599 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46600 Emit mostlyclean-local rule.
46601 (func_emit_tests_Makefile_am): Likewise.
46602 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46604 2006-06-23 Mark D. Baushke <mdb@gnu.org>
46606 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46608 2006-06-23 Bruno Haible <bruno@clisp.org>
46610 * tests/test-stdint.c: Update to match ISO C 99 Technical
46613 2006-06-23 Bruno Haible <bruno@clisp.org>
46615 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46617 2006-06-23 Bruno Haible <bruno@clisp.org>
46619 * lib/stdint_.h: Treat IRIX like OpenBSD.
46621 2006-06-23 Bruno Haible <bruno@clisp.org>
46623 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46624 ISO C 99 Technical Corrigendum 1.
46626 2006-06-22 Simon Josefsson <jas@extundo.com>
46628 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46631 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
46633 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46634 needed. Some compiler complained about some of them. Problem reported
46636 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46638 2006-06-21 Simon Josefsson <jas@extundo.com>
46640 * tests/test-getaddrinfo.c: New file.
46642 * modules/getaddrinfo-tests: New file.
46644 * MODULES.html.sh: Add inet_pton.
46646 * modules/inet_pton: New file.
46648 2006-06-21 Simon Josefsson <jas@extundo.com>
46650 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
46651 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
46652 of using the (limited) gnulib implementation on Windows XP.
46654 * m4/inet_pton.m4: New file.
46656 2006-06-21 Simon Josefsson <jas@extundo.com>
46658 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46661 * lib/socket_.h: Don't define WINVER.
46663 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46664 slightly modified to work in gnulib.
46666 2006-06-21 Simon Josefsson <jas@extundo.com>
46668 * doc/gnulib.texi (Windows sockets): Add.
46670 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
46672 * lib/read-file.c (fread_file): Start with buffer allocation of
46673 0 bytes rather than 1 byte; this simplifies the code.
46674 Don't invoke feof; it's not needed. Refactor to avoid duplicate
46675 code to free buffer and save/restore errno.
46676 (internal_read_file): Remove unused local.
46678 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
46680 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46681 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46682 Problem reported by Denis Excoffier in
46683 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46685 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46687 * modules/sys_socket, modules/socklen: Include sys/types since
46688 FreeBSD 4.x's sys/socket.h needs it.
46690 2006-06-19 Simon Josefsson <jas@extundo.com>
46692 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46694 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
46696 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46698 2006-06-19 Bruno Haible <bruno@clisp.org>
46700 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46701 and FULL_PATH_INTTYPES_H in angle brackets.
46702 Reported by Mark D. Baushke <mdb@gnu.org>.
46704 2006-06-17 Eric Blake <ebb9@byu.net>
46706 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46709 2006-06-17 Bruno Haible <bruno@clisp.org>
46711 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46714 2006-06-17 Bruno Haible <bruno@clisp.org>
46716 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46717 whether errno is declared. Assume <errno.h> declares errno.
46719 2006-06-17 Bruno Haible <bruno@clisp.org>
46721 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46723 2006-06-17 Bruno Haible <bruno@clisp.org>
46725 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46726 problem on Solaris 2.5.1.
46728 2006-06-16 Eric Blake <ebb9@byu.net>
46730 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46731 * lib/unicodeio.c [!defined errno]: Likewise.
46732 * lib/strtol.c [!defined errno]: Likewise.
46733 * lib/strtod.c [!defined errno]: Likewise.
46735 2006-06-15 Eric Blake <ebb9@byu.net>
46737 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46739 2006-06-15 Eric Blake <ebb9@byu.net>
46741 * config/srclist.txt (ssize_t.m4): Lose sync.
46743 2006-06-15 Bruno Haible <bruno@clisp.org>
46745 * modules/stdint (Files): Include m4/full-header-path.m4,
46746 m4/size_max.m4, m4/wchar_t.m4.
46747 (Makefile.am): Many more substitutions.
46748 * modules/stdint-tests: New file.
46749 * tests/test-stdint.c: New file.
46751 2006-06-15 Bruno Haible <bruno@clisp.org>
46753 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46754 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46755 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46756 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46757 gl_CHECK_TYPE_SAME): New macros.
46759 2006-06-15 Bruno Haible <bruno@clisp.org>
46761 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46763 2006-06-15 Bruno Haible <bruno@clisp.org>
46765 * lib/stdint_.h: Rewritten to be fully auto-configured.
46766 Fixes bug on HP-UX/IA64.
46768 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
46770 * lib/getdate.y (__attribute__): Don't define if already defined.
46771 Problem reported by Larry Jones.
46772 * lib/utimens.c (__attribute__): Likewise.
46774 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
46776 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46777 reported by Andreas Schwab.
46779 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46780 Bruno Haible <bruno@clisp.org>
46782 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46783 check for the declaration of strnlen and a run test that exposes the
46784 AIX 5.1 strnlen bug. In the failure case, #define strndup to
46787 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46788 Bruno Haible <bruno@clisp.org>
46790 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46792 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46794 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46795 compile test, for Tru64 4.0D.
46797 2006-05-28 Karl Berry <karl@gnu.org>
46799 * config/srclist.txt (printf-args.c): lose sync.
46801 2006-05-26 Martin Lambers <marlam@marlam.de>
46803 * lib/getpass.c: Updates the test for the native W32 API, and adds
46804 missing includes, thus fixing compilation warnings.
46806 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
46808 * lib/exclude.c (exclude_fnmatch): New function.
46809 (excluded_file_name): Call exclude_fnmatch.
46810 * lib/exclude.h (excluded_file_name): New prototype
46812 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
46814 * lib/tempname.c (small_open, large_open): New macros.
46815 (__open, __open64) [!_LIBC]: Remove.
46816 (__gen_tempname): Use small_open and large_open instead of __open
46817 and __open64. This fixes a portability bug on HP-UX 11.11i
46818 reported by Simon Wing-Tang in
46819 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46821 2006-05-24 Bruno Haible <bruno@clisp.org>
46823 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46824 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46825 Reported by Thorsten Maerz <torte@netztorte.de> via
46826 Aaron Stone <aaron@serendipity.cx>.
46828 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
46830 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46831 gl_ rather than jm_. Link, don't run, so that cross-compiles are
46832 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
46833 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46834 not really conditional on the cache.
46835 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46837 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
46839 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46840 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46841 (my_usleep): Don't mishandle maximum value.
46843 2006-05-19 Jim Meyering <jim@meyering.net>
46845 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
46847 2006-05-17 Bruno Haible <bruno@clisp.org>
46849 Cygwin portability.
46850 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46852 2006-05-17 Bruno Haible <bruno@clisp.org>
46854 * lib/stdint_.h: Fix recognition of Cygwin.
46856 2006-05-15 Bruno Haible <bruno@clisp.org>
46858 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46859 on libtool patch by Ralf Wildenhues.
46861 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
46863 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46864 test for C99 conformance; (bool) 0.5 is an integer constant
46865 expression, but (bool) -0.5 is not. Problem reported by Fedor
46866 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46868 2006-05-11 Simon Josefsson <jas@extundo.com>
46870 * m4/xvasprintf.m4: Fix obvious typo.
46872 2006-05-11 Jim Meyering <jim@meyering.net>
46874 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
46877 2006-05-10 Simon Josefsson <jas@extundo.com>
46879 * lib/md4.c: Typo fix, update copyright years.
46880 (K1, K2): Don't use L because it turn computations into 64-bit on
46883 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
46885 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46886 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46887 unwanted sign propagation, e.g., on hosts with 64-bit int.
46888 There still are some problems with reeelly weird theoretical hosts
46889 (e.g., 33-bit int) but it's not worth worrying about now.
46890 * lib/sha1.c (rol): Likewise.
46891 (K1, K2, K3, K4): Remove unnecessary L suffix.
46893 2006-05-10 Bruno Haible <bruno@clisp.org>
46895 * lib/des.c: Cast to avoid warnings.
46897 2006-05-09 Bruno Haible <bruno@clisp.org>
46899 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46900 (Depends-on): Depend also on xsize, stdarg.
46901 (configure.ac): Add gl_XVASPRINTF.
46903 2006-05-09 Bruno Haible <bruno@clisp.org>
46905 * m4/xvasprintf.m4: New file.
46907 2006-05-09 Bruno Haible <bruno@clisp.org>
46909 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46910 (EOVERFLOW): Define fallback value.
46911 (xstrcat): New function.
46912 (xvasprintf): Recognize the special case of a string concatenation.
46914 2006-05-08 Eric Blake <ebb9@byu.net>
46916 * gnulib-tool (func_version): Base copyright year on CVS date.
46917 (func_emit_copyright_notice): New function.
46918 (func_emit_lib_Makefile_am): Use it.
46919 (func_emit_tests_Makefile_am): Likewise.
46920 (func_import): Likewise.
46922 2006-05-08 Bruno Haible <bruno@clisp.org>
46924 * modules/stdarg: New file.
46925 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46927 2006-05-08 Bruno Haible <bruno@clisp.org>
46929 * m4/stdarg.m4: New file, from GNU gettext.
46931 2006-05-08 Bruno Haible <bruno@clisp.org>
46933 * config/srclist.txt (build-aux/config.rpath): different from latest
46936 2006-05-08 Bruno Haible <bruno@clisp.org>
46938 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46940 2006-05-05 Jim Meyering <jim@meyering.net>
46942 * m4/warning.m4: New file, derived from bison's file by the same name.
46944 2006-05-03 Bruno Haible <bruno@clisp.org>
46946 * lib/stdint_.h: Shorter URL.
46947 * lib/inttypes.h: Likewise.
46949 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46951 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46953 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46955 * lib/verify.h: Document the internals better. Most of this change
46956 was written by Bruno Haible.
46958 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
46960 * doc/verify.texi: New file, partly based on a proposal by
46963 2006-05-02 Bruno Haible <bruno@clisp.org>
46965 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46967 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46969 2006-04-29 Bruno Haible <bruno@clisp.org>
46971 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46972 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46974 2006-04-29 Bruno Haible <bruno@clisp.org>
46976 * gnulib-tool: Make --update option actually work.
46978 2006-04-29 Bruno Haible <bruno@clisp.org>
46980 * doc/gcd.texi: New file.
46981 * doc/gnulib.texi: Include it.
46983 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
46985 * lib/getdate.y (get_date): When adding relative date, start with the
46986 initial time, not with the result of the first mktime call.
46988 2006-04-25 Bruno Haible <bruno@clisp.org>
46990 * gnulib-tool (func_import): Output the include directives in three
46991 blocks, sorted separately.
46992 Reported by Ben Pfaff <blp@cs.stanford.edu>.
46994 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
46996 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46997 to define main with arguments, for C++. Reported by Eric Blake.
46998 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46999 Prefer 'int main ()' to 'int main (void)', for C++.
47000 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47001 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47002 for 'main', for C99 and C++.
47004 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
47006 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47007 Don't assume that exit status -1 is valid.
47008 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47009 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47010 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47011 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47012 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47013 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47014 not AC_TRY_RUN. Use return, not exit. Don't assume that
47015 functions can be used without declaring them, or that you can
47016 exit with status -1.
47017 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47019 2006-04-24 Karl Berry <karl@gnu.org>
47021 * config/srclist.txt (longdouble.m4): sync lost.
47023 2006-04-24 Eric Blake <ebb9@byu.net>
47025 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47027 2006-04-24 Bruno Haible <bruno@clisp.org>
47029 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47030 poll() implementation in AIX.
47031 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47033 2006-04-24 Bruno Haible <bruno@clisp.org>
47035 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47036 assigned exactly once.
47038 2006-04-23 Claudio Fontana <claudio@gnu.org>
47039 Bruno Haible <bruno@clisp.org>
47041 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47042 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47045 2006-04-23 Bruno Haible <bruno@clisp.org>
47047 * modules/copy-file: Depend on unistd.
47048 * modules/execute: Likewise.
47049 * modules/fatal-signal: Likewise.
47050 * modules/findprog: Likewise.
47051 * modules/mkdtemp : Likewise.
47052 * modules/pipe: Likewise.
47053 * modules/wait-process: Likewise.
47055 2006-04-23 Bruno Haible <bruno@clisp.org>
47057 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47058 condition was already detected.
47059 Reported by Ben Pfaff <blp@cs.stanford.edu>.
47061 2006-04-23 Bruno Haible <bruno@clisp.org>
47063 * lib/copy-file.c: Include <unistd.h> unconditionally.
47064 * lib/execute.c: Likewise.
47065 * lib/fatal-signal.c: Likewise.
47066 * lib/findprog.c: Likewise.
47067 * lib/mkdtemp.c: Likewise.
47068 * lib/pipe.h: Likewise.
47069 * lib/pipe.c: Likewise.
47070 * lib/wait-process.h: Likewise.
47072 2006-04-23 Bruno Haible <bruno@clisp.org>
47074 * gnulib-tool (func_usage): Fix --import description. Document
47076 (func_import): Create temporary file in a temporary directory, if
47077 --dry-run is specified. Silence errors from 'grep' when there are no
47078 m4 files in $m4dir.
47079 (func_create_testdir): Silence errors from 'grep' when there are no
47080 m4 files in $m4dir.
47081 Reported by Karl Berry <karl@freefriends.org>.
47083 2006-04-20 Bruno Haible <bruno@clisp.org>
47085 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47086 one argument, so that the code will be portable to Autoconf 2.60.
47087 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47088 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47089 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47091 2006-04-19 Derek Price <derek@ximbiot.com>
47092 Eric Blake <ebb9@byu.net>
47094 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47095 rather than "/full/path.h". Update comment to match. Shorten &
47096 generalize m4_translit call via AS_TR_CPP.
47098 2006-04-19 Derek Price <derek@ximbiot.com>
47099 Eric Blake <ebb9@byu.net>
47101 * lib/inttypes.h: Correct grammar in comment.
47103 2006-04-18 Derek Price <derek@ximbiot.com>
47104 Paul Eggert <eggert@cs.ucla.edu>
47106 * modules/inttypes: New file.
47107 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47109 2006-04-18 Derek Price <derek@ximbiot.com>
47110 Paul Eggert <eggert@cs.ucla.edu>
47112 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47115 2006-04-18 Derek Price <derek@ximbiot.com>
47116 Paul Eggert <eggert@cs.ucla.edu>
47118 * lib/inttypes.h: New file.
47119 * lib/strtoimax.c: Assume <inttypes.h>.
47121 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
47123 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47124 isn't mounted. Problem reported by Kir Kolyshkin.
47126 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
47128 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47129 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
47131 * lib/regex.h (RE_DUP_MAX): Update comment to match current
47134 2006-04-12 Eric Blake <ebb9@byu.net>
47136 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47137 is now done automatically by the corresponding Autoconf macro.
47139 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
47141 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47144 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
47146 Merge regex changes from libc, removing some of our
47147 POSIX-conformance changes that were rejected and redoing them in a
47148 less-intrusive way.
47150 * lib/regcomp.c (re_compile_internal, init_dfa):
47151 Length arg is now size_t, not Idx. All uses changed.
47152 (peek_token): Forward decl now says internal_function.
47153 (__re_error_msgid, __re_error_msgid_idx):
47154 Now static rather than extern with attribute_hidden.
47155 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47156 For some reason libc prefers K&R style defns for external functions.
47157 (regerror) [!defined _LIBC]: Likewise.
47158 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47159 (seek_collating_symbol_entry, lookup_collation_sequence_value):
47160 (build_range_exp, build_collating_symbol):
47161 Use K&R-style defn.
47162 (re_compile_fastmap): Use '\0' to memset, not 0.
47163 (utf8_sb_map): Make the calculations more obvious.
47164 (init_dfa, parse_bracket_exp, build_charclass_op):
47165 Call calloc and cast result, as glibc does.
47166 (init_word_char, fetch_token, peek_token, peek_token_bracket):
47167 (build_range_exp, build_collating_symbol):
47168 Now internal functions.
47170 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47172 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
47173 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47174 Don't depend on VMS; depend on __VMS instead, for POSIX
47175 namespace cleanness.
47176 (regoff_t): Define to ssize_t, not long int.
47178 Remove the REG_ macros named below. Instead, make the old names
47179 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47181 (REG_BACKSLASH_ESCAPE_IN_LISTS):
47182 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47183 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47184 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47185 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47186 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47187 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47188 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47189 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47190 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47191 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47192 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47193 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47194 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47195 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47196 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47197 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47199 Remove. All uses replaced by the old RE_* names.
47200 (RE_BACKSLASH_ESCAPE_IN_LISTS):
47201 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47202 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47203 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47204 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47205 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47206 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47207 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47208 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47209 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47210 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47211 Don't bother having these macros be independent of each others'
47212 values, since they no longer exist in the POSIX name space.
47214 Rename the following member names back to their old names,
47215 unless !__USE_GNU_REGEX. All uses changed back.
47216 (buffer): Renamed from re_buffer.
47217 (allocated): Renamed from re_allocated.
47218 (used): Renamed from re_used.
47219 (syntax): Renamed from re_syntax.
47220 (fastmap): Renamed from re_fastmap.
47221 (translate): Renamed from re_translate.
47222 (can_be_null): Renamed from re_can_be_null.
47223 (regs_allocated): Renamed from re_regs_allocated.
47224 (fastmap_accurate): Renamed from re_fastmap_accurate.
47225 (no_sub): Renamed from re_no_sub.
47226 (not_bol): Renamed from re_not_bol.
47227 (not_eol): Renamed from re_not_eol.
47228 (newline_anchor): Renamed from re_newline_anchor.
47229 (num_regs): Renamed from rm_num_regs.
47230 (start): Renamed from rm_start.
47231 (end): Renamed from rm_end.
47233 (free_state): Move up a bit.
47235 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47236 #define to be empty.
47237 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47238 when that is what is intended.
47239 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47240 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47242 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47243 All uses changed back to re_malloc, etc. It's now the caller's
47244 responsibility to check for overflow; all callers changed.
47245 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47246 (re_x2nrealloc): Remove.
47247 (free_state): Remove decl.
47249 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47250 (re_set_registers, re_exec):
47251 Use K&R-style defn.
47253 2006-01-31 Roland McGrath <roland@redhat.com>
47255 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47256 Reported by Mike Frysinger <vapier@gentoo.org>.
47258 2006-01-15 Andreas Jaeger <aj@suse.de>
47261 * lib/regex_internal.c (re_string_reconstruct): Adjust for
47262 build_wcs_upper_buffer change.
47263 (build_wcs_upper_buffer): Change return type.
47265 2005-12-10 Ulrich Drepper <drepper@redhat.com>
47267 * lib/regex_internal.h: Include <stdint.h> if available.
47269 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
47271 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47273 2005-10-14 Ulrich Drepper <drepper@redhat.com>
47275 * lib/regcomp.c: Adjust for changed secondary hash function.
47277 2005-09-30 Ulrich Drepper <drepper@redhat.com>
47279 * lib/regex.h: Pretty printing.
47280 Clean up namespace a bit.
47282 2005-09-30 Jakub Jelinek <jakub@redhat.com>
47284 * lib/regexec.c (update_cur_sifted_state, check_arrival,
47285 check_arrival_add_next_nodes): Avoid using uninitialized variable.
47287 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
47288 Ulrich Drepper <drepper@redhat.com>
47291 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
47293 (bitset_word_t): Renamed from bitset_word. All uses changed.
47295 2005-09-22 Ulrich Drepper <drepper@redhat.com>
47298 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47299 * lib/regcomp.c: Remove unnecessary uses of
47300 unsigned RE_TRANSLATE_TYPE.
47301 * lib/regex_internal.h: Likewise.
47302 * lib/regex_internal.c: Likewise.
47303 * lib/regexec.c: Likewise.
47304 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47306 2005-09-07 Ulrich Drepper <drepper@redhat.com>
47308 * lib/regexec.c (find_recover_state): Remove unnecessary
47310 (transit_state_bkref): Make DFA a const pointer.
47311 (get_subexp): Likewise.
47312 (check_arrival): Likewise.
47313 (update_cur_sifted_state): Likewise.
47314 (re_search_internal): Likewise.
47315 (prune_impossible_nodes): Likewise.
47316 (acquire_init_state_context): Likewise.
47317 (proceed_next_node): Likewise.
47318 (set_regs): Likewise.
47319 (free_fail_stack_return): Likewise.
47320 (check_arrival_expand_ecl): Mark DFA parameter as const.
47321 (check_arrival_expand_ecl_sub): Likewise.
47322 (check_subexp_limits): Likewise.
47323 (sub_epsilon_src_nodes): Likewise.
47324 (add_epsilon_src_nodes): Likewise.
47325 (merge_state_array): Likewise.
47326 (update_regs): Likewise.
47327 (build_trtable): Likewise.
47328 (sift_states_backward): Mark MCTX parameter as const.
47329 (build_sifted_states): Likewise.
47330 (update_cur_sifted_state): Likewise.
47331 (sift_states_mkref): Likewise.
47332 (check_arrival_expand_ecl): Mark eclosure as const.
47333 (check_dst_limits_calc_pos_1): Likewise.
47334 * lib/regex_internal.h (re_match_context_t): Make dfa a const
47337 2005-09-06 Ulrich Drepper <drepper@redhat.com>
47339 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47340 (transit_state_sb): Likewise.
47341 (transit_state_mb): Likewise.
47342 (sift_states_iter_mb): Likewise.
47343 (check_arrival_add_next_nodes): Likewise.
47344 (check_node_accept_bytes): Change first parameter to pointer-to-const.
47345 [_LIBC] (re_search_2_stub): Use mempcpy.
47347 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47348 mbrtowc for very simple UTF-8 case.
47350 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47351 a pointer-to-const.
47352 (re_acquire_state_context): Likewise.
47353 * lib/regex_internal.h: Adjust prototypes.
47355 * lib/regex.c: Prevent using C++ compilers.
47357 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47358 (re_acquire_state_context): Likewise.
47360 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
47362 * modules/regex (Depends-on): Add ssize_t.
47364 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
47366 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47369 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
47371 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47373 2006-03-29 Mark D. Baushke <mdb@gnu.org>
47374 Bruno Haible <bruno@clisp.org>
47376 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47377 <sys/types.h> and <inttypes.h>.
47379 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47381 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47382 `__error_t_defined', so argp.h will not typedef the former.
47384 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
47386 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47387 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
47388 glibc names. Even if glibc is changed to conform to POSIX, the
47389 traditional names will be available anyway, since regex depends on
47390 the extensions module. Also, fix a longstanding typo in the
47391 implementation of Spencer ERE test #75 from grep 2.3. Problems
47392 reported by Emanuele Giaquinta. Also, change sense of cached
47393 variable, so that the message makes sense.
47395 2006-03-24 Simon Josefsson <jas@extundo.com>
47397 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47398 including some doc fixes.
47399 (base64_encode_alloc): Fix +1 bug on allocation failures.
47401 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47403 * lib/base64.c (base64_encode): Do not read past end of array with
47404 unsanitized input on systems with CHAR_BIT > 8.
47406 2006-03-24 Eric Blake <ebb9@byu.net>
47408 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47410 2006-03-22 Karl Berry <karl@gnu.org>
47412 * config/srclist.txt (*setenv.[ch]): get from coreutils.
47413 * config/srclistvars.sh (COREUTILS): new var.
47415 2006-03-17 Jim Meyering <jim@meyering.net>
47417 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47418 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47420 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
47422 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47423 no longer needs it. Instead, check that regoff_t is as least
47424 as wide as ptrdiff_t.
47426 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47427 so that our regex.h stays compatible with the installed regex.
47428 This is helpful for installers who configure --without-included-regex.
47429 Problem reported by Emanuele Giaquinta.
47431 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
47433 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47434 Typedef to long int, not to off_, as POSIX will likely change
47437 2006-03-15 Eric Blake <ebb9@byu.net>
47439 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47441 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
47443 * lib/argp-help.c (validate_uparams): Fix typo
47444 * lib/argp-parse.c (argp_default_options): Consistently begin help
47445 messages with a lowercase letter.
47447 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
47449 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
47450 overrun buffers and shouldn't be used (much as gets shouldn't be
47452 * lib/time_r.c (asctime_r, ctime_r): Likewise.
47454 2006-03-08 Simon Josefsson <jas@extundo.com>
47456 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47457 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47459 2006-03-08 Simon Josefsson <jas@extundo.com>
47461 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47462 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47464 2006-03-08 Simon Josefsson <jas@extundo.com>
47466 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47467 signal that configure disabled the device.
47469 2006-03-08 Simon Josefsson <jas@extundo.com>
47471 * build-aux/maint.mk: Fix refresh-po, to handle no translated
47474 2006-03-07 Simon Josefsson <jas@extundo.com>
47476 * modules/getopt (Depends-on): Add unistd.
47478 * modules/unistd: New file.
47480 2006-03-07 Simon Josefsson <jas@extundo.com>
47482 * modules/gc-random: New file.
47484 2006-03-07 Simon Josefsson <jas@extundo.com>
47486 * m4/unistd_h.m4: New file.
47488 2006-03-07 Simon Josefsson <jas@extundo.com>
47490 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47491 test to be side-effect free by storing the result in the cache
47492 variable gl_cv_lib_readline, and moving the assignment of
47493 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47494 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47496 2006-03-07 Simon Josefsson <jas@extundo.com>
47498 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
47499 error on missing devices (the functions will return an error).
47501 * m4/gc.m4: Move random stuff to gc-random.m4
47503 2006-03-07 Simon Josefsson <jas@extundo.com>
47505 * lib/unistd_.h: New file.
47507 2006-03-07 Simon Josefsson <jas@extundo.com>
47509 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47511 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
47513 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47514 Problem reported by Juan Manuel Guerrero.
47516 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
47518 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47520 * lib/getlogin_r.c: Likewise.
47521 * lib/getlogin_r.h: Likewise.
47522 * lib/glob.c: Likewise.
47523 * lib/pagealign_alloc.c: Likewise.
47524 * lib/unistd_.h: Remove; no longer needed.
47526 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
47528 * MODULES.html.sh (Support for systems lacking POSIX:2001):
47530 * modules/c-stack (Depends-on): Add unistd.
47531 * modules/getlogin_r: Likewise.
47532 * modules/glob: Likewise.
47533 * modules/pagealign_alloc: Likewise.
47534 * modules/unistd (Files): Remove lib/unistd_.h.
47535 (EXTRA_DIST): Remove.
47536 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47538 (MOSTLYCLEANFILES): Remove unistd.h-t.
47540 2006-03-03 Simon Josefsson <jas@extundo.com>
47542 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47544 2006-03-03 Simon Josefsson <jas@extundo.com>
47546 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47549 2006-03-03 Simon Josefsson <jas@extundo.com>
47551 * build-aux/maint.mk: Add indent target.
47553 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47555 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47556 our replacement poll.h in any case, to avoid a differing
47557 declaration from a system header. Seen on AIX.
47559 2006-03-01 Simon Josefsson <jas@extundo.com>
47561 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47564 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
47566 * modules/gettime (Depends-on): Add extensions module.
47567 * modules/nanosleep (Depends-on): Likewise.
47568 * modules/settime (Depends-on): Likewise.
47570 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
47572 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47573 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47575 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47576 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47578 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47579 not "==". Reported by Ralf Wildenhues.
47581 2006-03-01 Karl Berry <karl@gnu.org>
47583 * doc/Copyright/request-*: new files, synced from gnuorg.
47585 2006-03-01 Karl Berry <karl@gnu.org>
47587 * config/srclist.txt (Copyright/*): new entries.
47589 2006-02-28 Simon Josefsson <jas@extundo.com>
47591 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47593 2006-02-27 Simon Josefsson <jas@extundo.com>
47595 * lib/base64.h: Indent #define's. From Jim Meyering
47596 <jim@meyering.net>.
47598 2006-02-27 Jim Meyering <jim@meyering.net>
47600 Revert the change of 2006-02-24, so these files can continue
47601 to be sync'd from gettext.
47602 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47605 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
47607 * modules/intprops: New file.
47608 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47610 * modules/getloadavg (Files): Remove lib/intprops.h.
47611 (Depends-on): Add intprops.
47612 * modules/human: Likewise.
47613 * modules/inttostr: Likewise.
47614 * modules/openat: Likewise.
47615 * modules/sig2str: Likewise.
47616 * modules/userspec: Likewise.
47617 * modules/utimecmp: Likewise.
47618 * modules/xnanosleep: Likewise.
47619 * modules/xstrtol: Likewise.
47621 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
47623 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47624 * modules/lock-tests (TESTS): Use $(EXEEXT).
47625 * modules/tls-tests: Likewise.
47626 * modules/argp-tests: Likewise.
47627 (check_PROGRAMS): New var, replacing...
47628 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47630 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47632 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47635 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
47637 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47639 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47641 Sync from coreutils.
47642 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47645 2006-02-22 Jim Meyering <jim@meyering.net>
47647 Sync from coreutils.
47648 * m4/chdir-safer.m4: New file.
47650 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
47652 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47653 AT_FDCWD exceeds INT_MAX.
47654 * lib/openat.h (AT_FDCWD): Likewise.
47656 2006-02-17 Eric Blake <address@hidden>
47658 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47660 2006-02-16 Simon Josefsson <jas@extundo.com>
47662 * modules/getaddrinfo (Depends-on): Add sys_socket.
47664 2006-02-15 Simon Josefsson <jas@extundo.com>
47666 * build-aux/maint.mk: Add dsyntax-check rule.
47668 2006-02-15 Eric Blake <ebb9@byu.net>
47670 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47671 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47672 'present but cannot compile' warnings on cygwin.
47673 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
47674 use ws2tcpip.h if sys/socket.h works.
47675 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47676 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47678 2006-02-14 Simon Josefsson <jas@extundo.com>
47680 * modules/maintainer-makefile (Files): Rename.
47682 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47683 and (the local) Makefile.cfg to maint-cfg.mk.
47685 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47688 * modules/maintainer-makefile: New module.
47690 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47691 severaly stripped to make it possible to build it up from scratch
47692 with reliable tests.
47694 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47695 fixes to permit overriding the default actions when configure and
47696 makefile are not available.
47698 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
47700 Sync from coreutils.
47701 * modules/lstat (Depends-on): Don't depend on xalloc.
47702 (License): Change from GPL to LGPL, since this is now simply a
47703 replacement for a libc function.
47705 2006-02-14 Jim Meyering <jim@meyering.net>
47707 Sync from coreutils.
47709 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47710 failure on deficient systems, and simplify gnulib lgpl dependencies.
47711 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47712 xmalloc/lstat combination. Based on a patch from Bruno Haible.
47714 * lib/xalloc-die.c: Remove unused definition of N_.
47716 2006-02-14 Jim Meyering <jim@meyering.net>
47718 Sync from coreutils.
47719 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47720 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47721 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47722 double-quote uses of that variable, to accommodate the rare case in
47723 which getmntent is available in none of the libraries checked. This
47724 happens at least on FreeBSD 5.0.
47726 2006-02-13 Simon Josefsson <jas@extundo.com>
47728 * gnulib-tool (Usage): Fix --import, from
47729 karl@freefriends.org (Karl Berry).
47731 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
47733 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47735 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
47737 * lib/argp-namefrob.h: Restore changes accidentally lost during the
47738 "autoupdate" on 2005-12-12.
47740 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
47742 * modules/closeout (Depends-on): Remove atexit.
47744 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
47746 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47747 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47749 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
47751 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47752 __EXTENSIONS__ if this causes compilation to fail. Problem
47753 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47754 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47756 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
47758 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47759 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47760 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47763 2006-01-26 Simon Josefsson <jas@extundo.com>
47765 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47766 prototype is visible on mingw32.
47768 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47771 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47774 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
47776 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
47777 attempt to open for write; this always fails, at least on POSIX
47778 hosts. This reinstates the 2006-01-09 change, which was
47779 inadvertently removed.
47781 2006-01-26 Bruno Haible <bruno@clisp.org>
47783 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47784 Reported by Paul Eggert.
47786 2006-01-26 Bruno Haible <bruno@clisp.org>
47787 Paul Eggert <eggert@cs.ucla.edu>
47789 * lib/stdbool_.h (_Bool)
47790 [(! (defined __cplusplus || defined __BEOS__)
47791 && !defined __GNUC__
47792 && !(defined __HP_cc || defined __xlc__
47793 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47794 || defined __sgi))]:
47795 #define to signed char in these cases too; this simplifies
47796 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47797 etc., separately) and makes it more conservative.
47799 2006-01-25 Simon Josefsson <jas@extundo.com>
47801 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47802 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
47803 ws2tcpip.h with WINVER=0x0501. All for mingw32.
47805 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
47807 * lib/argp-namefrob.h: Bugfix. Remove stray #
47809 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
47811 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47812 so that we test the test.
47813 Check for yet another HP-UX cc bug involving *bool |= bool.
47815 2006-01-25 Karl Berry <karl@gnu.org>
47817 * config/srclist.txt (vasnprintf.c): sync lost.
47819 2006-01-25 Jim Meyering <jim@meyering.net>
47821 Sync from the stable (b5) branch of coreutils:
47823 * lib/fts.c (fts_children): Don't let close() clobber errno from
47826 * lib/fts.c (fts_stat): When following a symlink-to-directory,
47827 don't necessarily interpret stat-fails+lstat-succeeds as indicating
47828 a dangling symlink. That can also happen at least for ELOOP.
47829 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47830 FYI, this bug predates the inclusion of fts.c in coreutils.
47832 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47833 in their own block, so pre-c99 compilers don't object.
47835 Avoid the double-free (first in fts_read, second in fts_close) that
47836 would occur when an `active' directory is made inaccessible (e.g.,
47837 via chmod a-x) during a traversal.
47838 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47839 before returning. Reproduce this failure by
47840 mkdir -p a/b; cd a; chmod a-x . b
47841 Reported by Stavros Passas.
47843 2006-01-25 Jim Meyering <jim@meyering.net>
47845 * lib/fileblocks.c: Remove more useless parentheses.
47846 * lib/readutmp.h: Likewise.
47848 2006-01-25 Bruno Haible <bruno@clisp.org>
47850 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47852 Reported by Paul Eggert.
47854 2006-01-25 Bruno Haible <bruno@clisp.org>
47856 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47857 rid of a trap command. For Solaris sh.
47858 Reported by Mark D. Baushke <mdb@gnu.org>.
47860 2006-01-24 Simon Josefsson <jas@extundo.com>
47862 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47865 2006-01-24 Karl Berry <karl@gnu.org>
47867 * config/srclist.txt (argp-namefrob.h): sync lost.
47869 2006-01-24 Jim Meyering <jim@meyering.net>
47871 * modules/openat (Files): Add lib/intprops.h.
47872 From Mark D. Baushke.
47874 2006-01-24 Jim Meyering <jim@meyering.net>
47876 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47877 Reported by Mark D. Baushke.
47879 2006-01-24 Jim Meyering <jim@meyering.net>
47881 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47883 2006-01-24 Bruno Haible <bruno@clisp.org>
47885 * modules/strnlen (Maintainer): Change from glibc to all.
47887 2006-01-24 Bruno Haible <bruno@clisp.org>
47889 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47890 Patch by Paul Eggert.
47892 2006-01-24 Bruno Haible <bruno@clisp.org>
47894 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47896 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
47899 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47900 'signed char' to avoid problems with the built-in _Bool type.
47901 Reported by Paul Eggert on 2005-11-26.
47903 2006-01-24 Bruno Haible <bruno@clisp.org>
47905 * gnulib-tool (func_import): Avoid constructing complicated sed
47906 expressions inside backquote.
47907 Report and solution by Mark D. Baushke <mdb@gnu.org>.
47909 2006-01-23 Ulrich Drepper <drepper@redhat.com>
47911 These changes imported from libc.
47912 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47913 test and two separate function calls.
47914 * lib/strndup.c (__strndup): Add libc_hidden_def.
47916 2006-01-23 Simon Josefsson <jas@extundo.com>
47918 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47919 Remove the test_*_SOURCES variable: automake infers it by default.
47920 * modules/tls-tests: Likewise.
47922 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47924 Work around porting bugs reported by Dieter in
47925 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47926 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47927 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47928 Include "getopt.h" first, to check interface.
47929 (getenv): Declare only if defined HAVE_DECL_GETENV &&
47931 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47932 (__strndup): Revert to K&R-style function dfns, the glibc style.
47933 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47934 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47935 Include strnlen.h first, to get prototype properly.
47936 (strnlen): Renamed from __strnlen.
47939 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47941 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47943 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
47945 * config/srclist.txt: Adjust to reflect glibc reorganization.
47946 This affects only comments.
47948 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47950 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47951 Reported by Bruce Korb <bkorb@gnu.org>.
47953 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
47955 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47956 to pacify gcc -Wswitch-default.
47958 2006-01-22 Bruno Haible <bruno@clisp.org>
47960 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47961 temporary buffer for sprintf, take into account the precision also
47962 for 'd', 'i', 'u', 'o', 'x', 'X'.
47964 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47966 * modules/argp-tests: New module
47967 * tests/test-argp.c: New file
47968 * tests/test-argp-2.sh: New file
47970 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
47972 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47973 (__argp_base_name): Removed
47974 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47976 (__argp_base_name): Provide macro definition or extern declaration
47977 depending on the configuration
47979 2006-01-20 Simon Josefsson <jas@extundo.com>
47981 * modules/inet_ntop (Depends-on): Depend on sys_socket.
47983 2006-01-20 Simon Josefsson <jas@extundo.com>
47985 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47987 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
47989 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47990 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47991 Suggested by Bruno Haible.
47993 2006-01-20 Karl Berry <karl@gnu.org>
47995 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47996 until changes propagate, I guess.
47998 2006-01-19 Simon Josefsson <jas@extundo.com>
48000 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48002 2006-01-19 Simon Josefsson <jas@extundo.com>
48004 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48006 2006-01-19 Simon Josefsson <jas@extundo.com>
48008 * gnulib-tool: Set check_PROGRAMS.
48010 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48011 modules/des-tests, modules/gc-arcfour-tests,
48012 modules/gc-arctwo-tests, modules/gc-des-tests,
48013 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48014 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48015 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48016 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48017 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48018 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48019 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48022 2006-01-18 Simon Josefsson <jas@extundo.com>
48024 * modules/socklen (Depends-on): Depend on sys_socket.
48026 2006-01-18 Simon Josefsson <jas@extundo.com>
48028 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48029 modules/des-tests, modules/gc-arcfour-tests,
48030 modules/gc-arctwo-tests, modules/gc-des-tests,
48031 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48032 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48033 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48034 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48035 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48036 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48037 $(EXEEXT) to automake TESTS variable, for mingw32.
48039 2006-01-17 Simon Josefsson <jas@extundo.com>
48041 * modules/socklen (Include): Need sys/socket.h.
48043 2006-01-17 Bruno Haible <bruno@clisp.org>
48045 * modules/ssize_t (Include): Add <sys/types.h>.
48047 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
48049 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48050 it's not portable and it doesn't work with cross-compiles.
48051 Problem reported by Bruno Haible. Fix missing-$ typo in
48052 'test "gl_cv_ignore_unused_libraries" ...' that prevented
48053 -zignore from being used with Sun's C compiler.
48055 2006-01-12 Simon Josefsson <jas@extundo.com>
48057 * lib/base64.c: Fix warning, reported by Bruno Haible
48058 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48060 2006-01-12 Bruno Haible <bruno@clisp.org>
48062 * modules/ldd: New file.
48063 * build-aux/ldd.sh.in: New file.
48064 * MODULES.html.sh (Support for building libraries and executables): Add
48067 2006-01-12 Bruno Haible <bruno@clisp.org>
48069 * m4/ldd.m4: New file.
48071 2006-01-12 Bruno Haible <bruno@clisp.org>
48073 * gnulib-tool (func_import, func_create_testdir): Don't go into an
48074 endless loop while replacing $auxdir with build-aux.
48076 2006-01-11 Simon Josefsson <jas@extundo.com>
48078 * lib/stdint_.h (SIZE_MAX): Add missing (.
48080 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
48082 Sync from coreutils.
48083 * lib/md5.c: Fix commentary typos.
48084 (alignof, UNALIGNED_P): No need for a GCC-specific version.
48085 * lib/md5.h (__attribute__): Remove; unused.
48086 * lib/sha1.c: Fix commentary to match md5 better.
48087 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48088 so that we don't need to worry about alignment. All uses changed.
48089 This merges the 2005-10-28 md5 change into sha1.
48091 2006-01-11 Jim Meyering <jim@meyering.net>
48093 Sync from coreutils.
48094 * lib/md5.c (OP): Fix spacing.
48096 2006-01-11 Bruno Haible <bruno@clisp.org>
48098 Ensure automatic ordering between gl_LOCK and gl_ARGP.
48099 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48100 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48102 2006-01-11 Bruno Haible <bruno@clisp.org>
48104 Ensure automatic ordering between gl_LOCK and gl_ARGP.
48105 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48106 the "early" section as well.
48108 2006-01-11 Bruno Haible <bruno@clisp.org>
48110 Avoid "ar: no archive members specified" error on MacOS X.
48111 * gnulib-tool (func_modules_add_dummy): New function.
48112 (func_import, func_create_testdir): Invoke it.
48114 2006-01-11 Bruno Haible <bruno@clisp.org>
48116 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48117 with $auxdir in AC_CONFIG_FILES statements.
48119 2006-01-11 Bruno Haible <bruno@clisp.org>
48121 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48122 Initialize also noinst_HEADERS to empty.
48124 2006-01-11 Bruno Haible <bruno@clisp.org>
48126 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48128 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48131 2006-01-11 Bruno Haible <bruno@clisp.org>
48133 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48134 overridable by the user.
48135 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48137 2006-01-10 Simon Josefsson <jas@extundo.com>
48139 * modules/sys_socket: New file.
48141 2006-01-10 Simon Josefsson <jas@extundo.com>
48143 * m4/sys_socket_h.m4: New file.
48145 2006-01-10 Simon Josefsson <jas@extundo.com>
48147 * lib/socket_.h: New file.
48149 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
48151 * modules/readutmp (Maintainer): Add myself.
48153 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
48155 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48156 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
48157 People who are still concerned with buggy memcmp implementations
48158 can invoke gl_FUNC_MEMCMP themselves.
48160 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
48162 * lib/regex_internal.h (BITSET_WORD_BITS):
48163 Work around a bug in 64-bit PGC (before version 6.1-2), where the
48164 preprocessor mishandles large unsigned values as if they were signed.
48165 Problem reported by Claudio Fontana in
48166 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48168 2006-01-10 Jim Meyering <jim@meyering.net>
48170 Avoid the double-free (first in fts_read, second in fts_close) that
48171 would occur when an `active' directory is made inaccessible (e.g.,
48172 via chmod a-x) during a traversal.
48173 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48174 before returning. Reproduce this failure by
48175 mkdir -p a/b; cd a; chmod a-x . b
48176 Reported by Stavros Passas.
48178 Sync from coreutils.
48179 * lib/sha1.c: Tweak grammar in a comment.
48181 2006-01-10 Jim Meyering <jim@meyering.net>
48183 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48184 Patch by Joerg Sonnenberger.
48186 2006-01-10 Bruno Haible <bruno@clisp.org>
48188 * modules/readutmp: Depend on module free.
48189 * modules/strtok_r: Depend on module restrict.
48191 2006-01-10 Bruno Haible <bruno@clisp.org>
48193 * modules/gettext (configure.ac): Add an invocation of
48194 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48196 2006-01-10 Bruno Haible <bruno@clisp.org>
48198 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48199 Reported by Werner Lemberg <wl@gnu.org>.
48201 2006-01-10 Bruno Haible <bruno@clisp.org>
48203 * lib/localcharset.c: Update from GNU gettext.
48205 2006-01-10 Bruno Haible <bruno@clisp.org>
48207 * lib/argp.h (__const): Remove macro. Use const instead.
48208 * lib/argp-fmtstream.h (__const): Likewise.
48209 * lib/glob_.h (__const): Remove macro.
48210 * lib/glob-libc.h: Use const instead of __const.
48212 2006-01-10 Bruno Haible <bruno@clisp.org>
48214 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48216 Needed to avoid an automake error regarding the 'gettext' module.
48218 2006-01-09 Simon Josefsson <jas@extundo.com>
48220 * modules/inet_ntop (Depends-on): Add restrict.
48222 2006-01-09 Simon Josefsson <jas@extundo.com>
48224 * modules/gc-rijndael-tests (License): Put under LGPL.
48226 * modules/gc-des-tests (License): Likewise.
48228 * modules/gc-arcfour-tests (License): Likewise.
48230 * modules/gc-arctwo-tests (License): Likewise.
48232 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48234 * modules/gc-hmac-sha1-tests (Files): Likewise.
48236 * modules/gc-hmac-md5-tests (License): Likewise.
48238 * modules/gc-sha1-tests (License): Likewise.
48240 * modules/gc-md5-tests (License): Likewise.
48242 * modules/gc-md4-tests (License): Likewise.
48244 * modules/gc-md2-tests (License): Likewise.
48246 * modules/gc-tests (License): Likewise.
48248 * modules/des-tests (License): Likewise.
48250 * modules/md4-tests (License): Likewise.
48252 * modules/md2-tests (License): Likewise.
48254 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
48256 Sync from coreutils:
48258 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48259 * modules/lib-ignore: New file.
48260 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48261 chdir-safer.m4, lchmod.m4.
48262 * modules/openat: Add mkdirat.c, openat-priv.h.
48264 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
48266 Sync from coreutils.
48267 * m4/lib-ignore.m4: New file.
48268 * m4/lchmod.m4: New file.
48270 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
48272 Sync from coreutils.
48273 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48274 for write access: POSIX says that must fail.
48275 * lib/fts.c (diropen): Likewise.
48276 * lib/save-cwd.c (save_cwd): Likewise.
48277 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48278 well, for minor improvements on hosts that lack O_DIRECTORY.
48279 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48280 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48281 Fall back on chown if open failed with EACCES.
48283 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48284 Report an error at compile-time if only a 1-second nominal clock
48285 resolution is found.
48287 * lib/lchmod.h: New file.
48288 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48289 (make_dir_parents): Use lchown rather than chown, and
48290 lchmod rather than chmod.
48292 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48293 dummies too. Problem with "none" reported by Bob Proulx. Problem with
48294 "proc" reported by n0dalus.
48296 * lib/mountlist.c: Include <limits.h>.
48297 (dev_from_mount_options)
48298 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48299 New function. It no longer assumes "dev=" has the System V meaning
48300 on Linux (since it doesn't). It also parses "dev=" more carefully.
48301 (read_file_system_list)
48302 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48303 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48306 * lib/posixtm.h (PDS_PRE_2000): New macro.
48307 * lib/posixtm.c (year): Arg is now syntax_bits rather than
48308 allow_century. All usages changed. Reject dates outside the range
48309 1969-1999 if PDS_PRE_2000 is used.
48311 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
48313 Sync from coreutils.
48314 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48315 (Time of day items): Mention the possibility of leap seconds.
48316 Problem reported by Dr. David Alan Gilbert.
48318 2006-01-09 Jim Meyering <jim@meyering.net>
48320 Sync from coreutils.
48322 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48324 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48326 * lib/modechange.c (mode_compile): Reject an invalid mode string
48327 that starts with an octal digit. From Andreas Gruenbacher.
48329 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48330 and dup to open_safer and dup_safer, respectively.
48331 (openat_permissive): Fix typo in comment.
48333 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48334 "gettext.h"; either no longer needed or are guaranteed by openat.h.
48335 (_): Remove; no longer needed.
48336 (openat): Renamed from rpl_openat; no need for rpl_openat
48337 since openat.h renames openat for us.
48338 Replace most of the body with a call to openat_permissive,
48339 to avoid duplicate code.
48340 Port to (probably hypothetical) environments were mode_t is
48342 (openat_permissive): Require mode arg, so that we can check
48343 types better. Put it just after flags. Change cwd failure
48344 indicator from pointer-to-bool to pointer-to-errno-value.
48345 All callers changed.
48346 Invoke openat_save_fail and/or openat_restore_fail if
48347 cwd_errno is null, so that openat can call us.
48348 (openat_permissive, fdopendir, fstatat, unlinkat):
48349 Simplify errno handling to avoid some duplicate code,
48350 as it's OK to set errno on success.
48351 * lib/openat.h: Revamp code so that function macros depend on
48352 __OPENAT_PREFIX only, not also on AT_FDCWD.
48353 (openat_ro): Remove. Caller changed to use openat_permissive.
48354 (openat_permissive): Now a macro, if not a function.
48355 (openat_restore_fail, openat_save_fail): Now always functions,
48356 since mkdirat needs them even if __OPENAT_PREFIX is defined.
48358 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48360 * lib/mkdirat.c: Include openat-priv.h.
48361 Remove definitions of macros defined therein.
48362 * lib/openat.c: Likewise.
48364 * lib/mkdirat.c (mkdirat): New file and function.
48365 * lib/openat.h (mkdirat): Declare.
48367 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48369 * lib/openat.h (openat_permissive): Declare.
48370 (openat_ro): Define.
48372 * lib/openat.c (EXPECTED_ERRNO): New macro.
48373 (openat_permissive): New function -- used in remove.c rewrite.
48374 (all functions): Set errno just before returning, only if there
48375 was an actual failure.
48376 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48378 Emulate openat-family functions using Linux's procfs, if possible.
48379 Idea and some code based on Ulrich Drepper's glibc changes.
48381 * lib/openat.c: (BUILD_PROC_NAME): New macro.
48382 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48383 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48384 before falling back on save_cwd and restore_cwd.
48385 (fdopendir, fstatat, unlinkat): Likewise.
48387 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48388 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48390 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48391 as second argument to va_arg. Otherwise, some versions of gcc
48392 warn that `if this code is reached, the program will abort'.
48394 2006-01-09 Jim Meyering <jim@meyering.net>
48396 Sync from coreutils.
48397 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48398 Require openat-priv.h.
48400 2006-01-09 Bruno Haible <bruno@clisp.org>
48402 * modules/strnlen (Include): Use strnlen.h.
48404 2006-01-09 Bruno Haible <bruno@clisp.org>
48406 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48408 2006-01-09 Bruno Haible <bruno@clisp.org>
48410 * lib/sysexit_.h (EX_OK): New macro.
48411 Suggested by Martin Lambers <marlam@marlam.de>.
48413 2006-01-09 Bruno Haible <bruno@clisp.org>
48415 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48416 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48418 2006-01-09 Bruno Haible <bruno@clisp.org>
48420 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48423 2006-01-09 Bruno Haible <bruno@clisp.org>
48425 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48426 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48427 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48428 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48430 2006-01-09 Bruno Haible <bruno@clisp.org>
48432 * build-aux/javacomp.sh.in: New file, moved from lib/.
48433 * modules/javacomp-script (Files): Update.
48434 (configure.ac): Add AC_CONFIG_FILES invocation.
48435 (EXTRA_DIST): Remove variable.
48437 * build-aux/javaexec.sh.in: New file, moved from lib/.
48438 * modules/javaexec (Files): Update.
48439 (configure.ac): Add AC_CONFIG_FILES invocation.
48440 (EXTRA_DIST): Remove javaexec.sh.in.
48442 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48443 * modules/csharpcomp-script (Files): Update.
48444 (configure.ac): Add AC_CONFIG_FILES invocation.
48445 (EXTRA_DIST): Remove variable.
48447 * build-aux/csharpexec.sh.in: New file, moved from lib/.
48448 * modules/csharpexec (Files): Update.
48449 (configure.ac): Add AC_CONFIG_FILES invocation.
48450 (EXTRA_DIST): Remove csharpexec.sh.in.
48452 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
48454 Sync from coreutils.
48456 Add POSIX ACL support
48457 * lib/acl.h (copy_acl, set_acl): Add declarations.
48458 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48459 systems other than Linux.
48460 (chmod_or_fchmod): New function: use fchmod when possible,
48461 and chmod otherwise.
48462 (file_has_acl): Add a POSIX ACL implementation, with a
48463 Linux-specific subcase.
48464 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48465 S_ISVTX from one file to another. Fall back to fchmod/chmod when
48466 acls are unsupported.
48467 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48468 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
48471 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
48473 Sync from coreutils.
48474 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48476 2006-01-07 Bruno Haible <bruno@clisp.org>
48478 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48481 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
48483 * lib/strftime.c (tzname): Don't declare if it is already #defined.
48484 Problem reported for Mingw by Mark Junker.
48486 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
48488 * README: Gnulib normally doesn't generate a tarball.
48490 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
48492 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48493 long int, not int, for nanosecond counts, so that people who are
48494 used to POSIX struct timespec won't be surprised. Reported by Jim
48497 2005-12-28 Bruno Haible <bruno@clisp.org>
48499 * build-aux/config.rpath: Update from GNU gettext.
48501 2005-12-16 Jim Meyering <jim@meyering.net>
48503 * modules/fprintftime: New module.
48504 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48506 2005-12-16 Jim Meyering <jim@meyering.net>
48508 * m4/fprintftime.m4: New file.
48510 2005-12-16 Jim Meyering <jim@meyering.net>
48512 * lib/fprintftime.c, lib/fprintftime.h: New files.
48514 2005-12-15 Simon Josefsson <jas@extundo.com>
48516 * modules/socklen (configure.ac): Fix M4 macro name, to align with
48519 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
48521 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48522 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48524 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
48526 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48527 * lib/argp-help.c (fill_in_uparams): Check if the constructed
48528 struct uparams is valid. Fall back to the default values if it is
48531 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
48533 * modules/argp (Files): Add argp-pin.c
48534 (Depends-on): dirname
48535 (lib_SOURCES): Add argp-pin.c
48537 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
48539 * m4/argp.m4: Check if program_invocation_name and
48540 program_invocation_short_name are declared and define appropriate
48541 macros if they are not.
48543 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
48545 * lib/argp-help.c (__argp_base_name): New function
48546 (__argp_short_program_name): Rewrite using __argp_base_name
48547 * lib/argp-namefrob.h: Define program_invocation_name and
48548 program_invocation_short_name if requested
48549 (__argp_base_name): Add prototype
48550 * lib/argp-parse.c (argp_def): Use gettext wrappers
48551 (argp_default_parser): Use __argp_base_name
48552 * lib/argp-pin.c: New file. Defines program_invocation_name and
48553 program_invocation_short_name on systems that lack them.
48555 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
48557 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48558 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48559 porting problem reported by Georg Schwarz in
48560 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48562 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
48564 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48565 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48566 porting problem reported by Georg Schwarz in
48567 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48569 2005-12-05 Bruno Haible <bruno@clisp.org>
48571 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48572 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48573 Reported by Mark Junker <mjscod@gmx.de>.
48575 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
48577 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48578 Use implementation from Albert Chin, with some
48579 comments/corrections by Stepan Kasal and myself.
48581 2005-12-02 Bruno Haible <bruno@clisp.org>
48583 * gnulib-tool (func_import): Accept GPLed build tool modules when
48585 * modules/csharpcomp-script: New file.
48586 * modules/csharpcomp: Depend on it.
48587 * modules/javacomp-script: New file.
48588 * modules/javacomp: Depend on it.
48589 Suggested by Simon Josefsson.
48591 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
48593 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48594 statement, to work around an HP-UX 10.20 compiler bug reported by
48597 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
48599 * modules/savedir (Depends-on): Add openat.
48601 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
48603 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48604 (uintmax_t) [defined uintmax_t]: Do not declare.
48605 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48606 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48607 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
48608 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48609 sake of portability to weird hosts that C allows (though we don't
48610 know of any practical examples).
48612 * lib/savedir.h (fdsavedir): New decl.
48613 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48614 contains most of the former guts of savedir.
48615 (savedir): Use savedirstream.
48616 Include "openat.h".
48618 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
48620 * modules/obstack (Files): Add m4/ulonglong.m4.
48621 Problem reported by Davide Angelocola.
48623 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
48625 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48626 coreutils no longer futzes with rounding modes.
48628 2005-11-14 Jim Meyering <jim@meyering.net>
48630 * lib/mkstemp-safer.c: Include <config.h>, required for possible
48631 replacement of mkstemp.
48633 2005-11-10 Simon Josefsson <jas@extundo.com>
48635 * lib/readline.c: Remove EOL.
48637 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
48639 * modules/gethrxtime (Depends-on): Add gettime.
48641 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
48643 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48644 or gettimeofday; no longer needed.
48646 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
48648 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48650 (gethrxtime) [! (HAVE_NANOUPTIME
48651 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48652 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48653 our own approximation.
48655 2005-11-08 Eric Blake <ebb9@byu.net>
48657 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48659 2005-11-08 Eric Blake <ebb9@byu.net>
48661 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48663 2005-11-04 Bruno Haible <bruno@clisp.org>
48665 * gnulib-tool: Implement --update mode.
48667 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
48669 Fix porting problem reported by Theodoros V. Kalamatianos.
48670 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48671 Don't assume that futimes failing means we must fail.
48673 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
48675 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48676 variables to suggest the intended function of the PATH_MAX check.
48678 2005-10-30 Kean Johnston <jkj@sco.com>
48680 Trivial changes to support SCO systems.
48681 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48683 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48684 where __ptr is null when no I/O is pending.
48686 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
48688 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48689 leave errno alone. Problem reported by Dmitry V. Levin.
48691 2005-10-28 Simon Josefsson <jas@extundo.com>
48693 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48696 * tests/test-gc-md2.c, tests/test-md2.c: New files.
48698 * modules/md2, modules/md2-tests: New files.
48700 2005-10-28 Simon Josefsson <jas@extundo.com>
48702 * m4/inet_ntop.m4: More tests.
48704 * m4/gc-md2.m4, md2.m4: New file.
48706 2005-10-28 Simon Josefsson <jas@extundo.com>
48708 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48709 "restrict" keywords, as per POSIX. Protect the function
48710 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48711 Don't use K&R prototypes. Check the sprintf return values.
48712 Re-define EAFNOSUPPORT if not present. Indent.
48714 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48715 suggested by Bruno Haible <bruno@clisp.org>.
48717 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48719 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
48721 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48724 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
48726 * lib/md2.h, lib/md2.c: New files.
48728 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
48730 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48731 errno alone. Problem reported by Frederic Jolliton.
48733 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
48735 * modules/verify (License): Change from GPL to LGPL. This is a
48736 tiny module and there are apparently near-equivalents that are
48737 under the BSD license.
48739 2005-10-24 Simon Josefsson <jas@extundo.com>
48741 * modules/sha1: Relicense to LGPL.
48743 2005-10-24 Simon Josefsson <jas@extundo.com>
48745 * lib/md4.h: Shrink buffer size, now that we changed the type.
48747 2005-10-23 Simon Josefsson <jas@extundo.com>
48749 * gnulib-tool (func_import): Fix --tests-base.
48751 2005-10-22 Simon Josefsson <jas@extundo.com>
48753 * modules/arcfour (Depends-on): Need stdint.
48755 2005-10-22 Simon Josefsson <jas@extundo.com>
48757 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48758 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
48760 2005-10-22 Simon Josefsson <jas@extundo.com>
48762 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48763 suggested by Bruno Haible <bruno@clisp.org>.
48765 2005-10-22 Simon Josefsson <jas@extundo.com>
48767 * lib/crc.h: Include stddef.h, for size_t.
48769 2005-10-22 Simon Josefsson <jas@extundo.com>
48771 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48772 arcfour_context struct (simplify test vector testing in GNU
48775 2005-10-21 Simon Josefsson <jas@extundo.com>
48777 * modules/des, modules/des-tests: New files.
48779 * modules/gc-des, modules/gc-des-tests: New files.
48781 * tests/test-des.c, tests/test-gc-des.c: New file.
48783 2005-10-21 Simon Josefsson <jas@extundo.com>
48785 * modules/arctwo, modules/arctwo-tests: New files.
48787 * tests/test-arctwo.c: New file.
48789 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48791 * tests/test-gc-arctwo.c: New file.
48793 2005-10-21 Simon Josefsson <jas@extundo.com>
48795 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48796 Bruno Haible <bruno@clisp.org>.
48798 * m4/gc-des.m4: New file.
48800 2005-10-21 Simon Josefsson <jas@extundo.com>
48802 * m4/arctwo.m4: New file.
48804 * m4/gc-arctwo.m4: New file.
48806 2005-10-21 Simon Josefsson <jas@extundo.com>
48808 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48811 2005-10-21 Simon Josefsson <jas@extundo.com>
48813 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48816 * lib/hmac-sha1.c (hmac_sha1): Likewise.
48818 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48819 Bruno Haible <bruno@clisp.org>.
48821 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48824 2005-10-21 Simon Josefsson <jas@extundo.com>
48826 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48828 2005-10-21 Simon Josefsson <jas@extundo.com>
48830 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48832 2005-10-21 Simon Josefsson <jas@extundo.com>
48834 * lib/des.h, lib/des.c: New files.
48836 * lib/gc-gnulib.c: Support DES.c
48838 2005-10-21 Simon Josefsson <jas@extundo.com>
48840 * lib/arctwo.h, lib/arctwo.c: New files.
48842 * lib/gc-gnulib.c: Support ARCTWO.
48844 2005-10-21 Simon Josefsson <jas@extundo.com>
48846 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48847 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48849 2005-10-21 Simon Josefsson <jas@extundo.com>
48851 * gnulib-tool (func_import, func_create_testdir): Define automake
48852 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48853 Makefile.am snippet),
48854 suggested by Bruno Haible <bruno@clisp.org>.
48856 * modules/gc (Makefile.am): Use it.
48858 2005-10-21 Bruno Haible <bruno@clisp.org>
48860 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48863 2005-10-19 Simon Josefsson <jas@extundo.com>
48865 * tests/test-gc-rijndael.c: New file.
48867 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48869 2005-10-19 Simon Josefsson <jas@extundo.com>
48871 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48874 2005-10-19 Simon Josefsson <jas@extundo.com>
48876 * tests/test-gc-arcfour.c: New file.
48878 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48880 2005-10-19 Simon Josefsson <jas@extundo.com>
48882 * modules/gc-md4, modules/gc-md4-tests: New file.
48884 * tests/test-gc-md4.c: New file.
48886 2005-10-19 Simon Josefsson <jas@extundo.com>
48888 * m4/gc-md4.m4: New file.
48890 2005-10-19 Simon Josefsson <jas@extundo.com>
48892 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48893 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48896 2005-10-19 Simon Josefsson <jas@extundo.com>
48898 * m4/gc-arcfour.m4: New file.
48900 * m4/gc-rijndael.m4: New file.
48902 2005-10-19 Simon Josefsson <jas@extundo.com>
48904 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48906 2005-10-19 Simon Josefsson <jas@extundo.com>
48908 * lib/gc-gnulib.c: Support ARCFOUR.
48910 2005-10-19 Simon Josefsson <jas@extundo.com>
48912 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48915 * lib/gc.h: Add ECB enum type.
48917 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48919 2005-10-18 Simon Josefsson <jas@extundo.com>
48921 * tests/test-md5.c: New file.
48923 * modules/md5-tests: New file.
48925 2005-10-18 Simon Josefsson <jas@extundo.com>
48927 * tests/test-md4.c: New file.
48929 * modules/md4, modules/md4-tests: New files.
48931 2005-10-18 Simon Josefsson <jas@extundo.com>
48933 * m4/md4.m4: New file.
48935 2005-10-18 Simon Josefsson <jas@extundo.com>
48937 * lib/md4.h, lib/md4.c: New files, based on md5.?.
48939 2005-10-17 Stepan Kasal <kasal@ucw.cz>
48941 * gnulib-tool (func_create_testdir): Omit the second check whether
48942 BUILT_SOURCES in nonempty.
48944 2005-10-17 Simon Josefsson <jas@extundo.com>
48946 * tests/test-rijndael.c: New file.
48948 2005-10-17 Simon Josefsson <jas@extundo.com>
48950 * modules/sha1: Depend on stdint instead of md5.
48952 * modules/md5: Depend on stdint, remove uint32_t.
48954 2005-10-17 Simon Josefsson <jas@extundo.com>
48956 * modules/gc-sha1-tests: New file.
48958 * tests/test-gc-sha1.c: New file.
48960 2005-10-17 Simon Josefsson <jas@extundo.com>
48962 * m4/md5.m4: Remove call to uint32_t.m4.
48964 2005-10-17 Simon Josefsson <jas@extundo.com>
48966 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48968 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48971 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
48973 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
48975 2005-10-17 Simon Josefsson <jas@extundo.com>
48977 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48979 2005-10-17 Simon Josefsson <jas@extundo.com>
48981 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48983 2005-10-17 Simon Josefsson <jas@extundo.com>
48985 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48987 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48989 2005-10-17 Bruno Haible <bruno@clisp.org>
48991 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48992 that it can also be used in a test.
48994 2005-10-16 Bruno Haible <bruno@clisp.org>
48996 * gnulib-tool (func_emit_tests_Makefile_am): Also define
48997 TESTS_ENVIRONMENT, so that individual tests can augment it.
48999 * gnulib-tool (func_create_testdir): Use an intermediate target for
49000 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49001 macros, like $(ALLOCA_H), which cannot be passed through the command
49004 2005-10-15 Simon Josefsson <jas@extundo.com>
49006 * modules/rijndael-tests: New file.
49008 * modules/rijndael: New file.
49010 2005-10-15 Simon Josefsson <jas@extundo.com>
49012 * m4/rijndael.m4: New file.
49014 2005-10-15 Simon Josefsson <jas@extundo.com>
49016 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49018 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49020 2005-10-14 Simon Josefsson <jas@extundo.com>
49022 * tests/test-arcfour.c: New file.
49024 * modules/arcfour, modules/arcfour-tests: New files.
49026 2005-10-14 Simon Josefsson <jas@extundo.com>
49028 * m4/arcfour.m4: New file.
49030 2005-10-14 Simon Josefsson <jas@extundo.com>
49032 * lib/arcfour.h, lib/arcfour.c: New files.
49034 2005-10-14 Roland McGrath <roland@redhat.com>
49036 Import from libc. [BZ #1331]
49037 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49039 Reported by Matej Vela <vela@debian.org>.
49041 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
49043 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49044 include <wchar.h>; no longer needed.
49046 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
49048 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49050 2005-10-14 Jakub Jelinek <jakub@redhat.com>
49051 and Ulrich Drepper <drepper@redhat.com>
49054 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49055 instead of inline stream orientation test and two separate
49056 function calls. Pay no attention to USE_IN_LIBIO.
49058 2005-10-13 Simon Josefsson <jas@extundo.com>
49060 * modules/gc-hmac-md5-tests: New file.
49062 * tests/test-gc-hmac-sha1.c: New file.
49064 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49066 * modules/gc-hmac-md5-tests: New file.
49068 * tests/test-gc-md5.c: New file.
49070 * modules/gc-md5-tests: New file.
49072 2005-10-13 Simon Josefsson <jas@extundo.com>
49074 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49075 Move memory allocation outside of loop.
49077 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
49079 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49080 intermediate directory is in a read-only file system. Problem
49081 reported by Eric Blake.
49083 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
49085 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49087 2005-10-12 Simon Josefsson <jas@extundo.com>
49089 * tests/test-hmac-sha1.c: New file.
49091 * modules/hmac-sha1-tests: New file.
49093 * modules/hmac-sha1: New file.
49095 2005-10-12 Simon Josefsson <jas@extundo.com>
49097 * modules/gc-sha1: New file.
49099 2005-10-12 Simon Josefsson <jas@extundo.com>
49101 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49103 * tests/test-gc-pbkdf2-sha1.c: New file.
49105 2005-10-12 Simon Josefsson <jas@extundo.com>
49107 * modules/gc-md5, modules/gc-hmac-md5: New files.
49109 * modules/gc (Files): Remove md5, memxor and hmac files.
49111 2005-10-12 Simon Josefsson <jas@extundo.com>
49113 * m4/gc-pbkdf2-sha1.m4: New file.
49115 * m4/gc-hmac-sha1.m4: New file.
49117 * m4/gc-sha1: New file.
49119 * m4/hmac-sha1.m4: New file.
49121 2005-10-12 Simon Josefsson <jas@extundo.com>
49123 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49125 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49127 2005-10-12 Simon Josefsson <jas@extundo.com>
49129 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49130 suggested by Bruno Haible <bruno@clisp.org>.
49132 2005-10-12 Simon Josefsson <jas@extundo.com>
49134 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49136 2005-10-12 Simon Josefsson <jas@extundo.com>
49138 * lib/gc-pbkdf2-sha1.c: New file.
49140 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49142 2005-10-12 Simon Josefsson <jas@extundo.com>
49144 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49146 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49148 2005-10-12 Simon Josefsson <jas@extundo.com>
49150 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49151 GC_USE_HMAC_MD5, respectively.
49153 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49154 (gc_md5): Fix typo.
49156 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49158 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49160 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49162 2005-10-12 Bruno Haible <bruno@clisp.org>
49164 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49165 Reported by Stepan Kasal <kasal@ucw.cz>.
49167 2005-10-11 Simon Josefsson <jas@extundo.com>
49169 * tests/test-crc.c: New file.
49171 * modules/crc, modules/crc-tests: New files.
49173 2005-10-11 Simon Josefsson <jas@extundo.com>
49175 * m4/crc.m4: New file.
49177 2005-10-11 Simon Josefsson <jas@extundo.com>
49179 * lib/gc.h: Add gc_hash and gc_hash_buffer.
49181 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
49183 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49185 2005-10-11 Simon Josefsson <jas@extundo.com>
49187 * lib/crc.h, lib/crc.c: New files.
49189 * lib/gc.h (gc_hash_buffer): Add doc.
49191 2005-10-11 Bruno Haible <bruno@clisp.org>
49193 * modules/c-strcasestr: New file.
49194 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49196 2005-10-11 Bruno Haible <bruno@clisp.org>
49198 * modules/c-strcase: New file.
49199 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49201 2005-10-11 Bruno Haible <bruno@clisp.org>
49203 * lib/strcasecmp.c: Include limits.h.
49204 (strcasecmp): Avoid integer overflow on exotic platforms.
49205 * lib/strncasecmp.c: Include limits.h.
49206 (strncasecmp): Avoid integer overflow on exotic platforms.
49207 Reported by Paul Eggert.
49209 2005-10-11 Bruno Haible <bruno@clisp.org>
49211 * lib/c-strcasestr.h: New file, from GNU gettext.
49212 * lib/c-strcasestr.c: New file, from GNU gettext.
49214 2005-10-11 Bruno Haible <bruno@clisp.org>
49216 * lib/c-strcase.h: New file, from GNU gettext.
49217 * lib/c-strcasecmp.c: New file, from GNU gettext.
49218 * lib/c-strncasecmp.c: New file, from GNU gettext.
49220 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
49222 * modules/mempcpy (License): GPL -> LGPL.
49223 * modules/strchrnul (License): Likewise.
49224 * modules/sysexits (License): Likewise.
49226 2005-10-08 Simon Josefsson <jas@extundo.com>
49228 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49230 2005-10-07 Simon Josefsson <jas@extundo.com>
49232 * m4/memxor.m4: Remove gl_C_RESTRICT call.
49234 2005-10-06 Simon Josefsson <jas@extundo.com>
49236 * tests/test-hmac-md5.c: New file.
49238 * modules/hmac-md5-tests: New file.
49240 * modules/hmac-md5: New file.
49242 2005-10-06 Simon Josefsson <jas@extundo.com>
49244 * m4/hmac-md5.m4: New file.
49246 * m4/memxor.m4: Require gl_C_RESTRICT.
49248 2005-10-06 Simon Josefsson <jas@extundo.com>
49250 * lib/memxor.c (memxor): Avoid casts and warnings.
49252 2005-10-06 Simon Josefsson <jas@extundo.com>
49254 * lib/hmac-md5.c: New file.
49256 * lib/hmac.h: New file.
49258 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
49260 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49261 promotes to int, not unsigned int, to catch the AIX 5.3
49264 2005-10-05 Simon Josefsson <jas@extundo.com>
49266 * modules/memxor: New file.
49268 * modules/iconv (Files): Move config.rpath to havelib, it is used
49271 * modules/havelib (Files): Add config.rpath.
49273 2005-10-05 Simon Josefsson <jas@extundo.com>
49275 * m4/memxor.m4: New file.
49277 2005-10-05 Simon Josefsson <jas@extundo.com>
49279 * lib/memxor.c (memxor): Fix compiler error.
49281 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49282 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49284 * lib/memxor.h, lib/memxor.c: New files.
49286 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49287 we assume all systems have it, suggested by Jim Meyering
49288 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
49289 any systems lack sys/socket.h; mingw32 is known to lack it, but we
49290 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
49293 2005-10-05 Simon Josefsson <jas@extundo.com>
49295 * config/srclist.txt: Add glibc bug 1423 for md5.h.
49297 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
49299 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49300 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49301 needed, since the source code now assumes these .h files.
49303 2005-10-05 Derek Price <derek@ximbiot.com>
49305 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49307 2005-10-05 Bruno Haible <bruno@clisp.org>
49309 * modules/stdint (License): Change to LGPL.
49311 2005-10-04 Simon Josefsson <jas@extundo.com>
49313 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49314 D. Baushke" <mdb@gnu.org>.
49316 2005-10-04 Bruno Haible <bruno@clisp.org>
49318 * lib/verify.h (verify_true): Provide alternative definition for C++.
49320 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
49322 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
49323 (SSIZE_MAX): New macro, if not already defined.
49324 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49327 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
49329 Sync from coreutils.
49330 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49331 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49332 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
49333 ULLONG_MAX doesn't work with 2.7.2.1.
49335 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
49337 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49340 * modules/exclude (Depends-on): Depend on verify.
49341 * modules/strtoimax (Depends-on): Likewise.
49342 * modules/utimecmp (Depends-on): Likewise.
49344 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
49346 * lib/exclude.c: Include verify.h.
49347 (verify): Remove. All callers changed to use verify.h's version.
49348 * lib/strtoimax.c: Likewise.
49349 * lib/utimecmp.c: Likewis.e
49351 Sync from coreutils.
49352 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49353 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49354 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49355 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
49356 bother returning ENOSYS if settimeofday or stime fails; just let
49357 them return whatever errno they want to return.
49358 * lib/utimens.c: Include unistd.h, for dup2.
49359 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49360 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49362 2005-10-02 Jim Meyering <jim@meyering.net>
49364 Sync from coreutils.
49365 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49366 from glibc-2.2.5 that fails for read-only files.
49368 2005-10-02 Jim Meyering <jim@meyering.net>
49370 Sync from coreutils.
49371 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49372 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49373 `#if HAVE_CONFIG_H'.
49374 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49375 Remove AT_FDCWD test.
49376 Do not consume the fd unless successful.
49377 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49378 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49379 block, so that we don't even try to compile it if settimeofday is
49380 available. This works around a compilation failure on OSF1 V5.1,
49381 due to stime requiring a `long int*' while tv_sec is `int'.
49383 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
49385 Sync from coreutils.
49386 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49387 against `yes', rather than just testing for nonempty.
49389 2005-10-01 Simon Josefsson <jas@extundo.com>
49391 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49394 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49395 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
49396 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
49397 freeaddrinfo and gai_strerror are declared by the POSIX headers.
49398 Check if struct addrinfo is declared.
49400 2005-10-01 Simon Josefsson <jas@extundo.com>
49402 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49403 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
49404 AI_* and EAI_* definitions. Protect function declarations.
49406 2005-10-01 Jim Meyering <jim@meyering.net>
49408 Sync from coreutils.
49410 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49411 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
49412 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49413 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49414 in the inet and nsl libraries. Required on Solaris 5.7.
49416 2005-10-01 Jim Meyering <jim@meyering.net>
49418 Sync from coreutils.
49419 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49420 in the inet and nsl libraries. Required on Solaris 5.7.
49422 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
49424 * lib/getdelim.c (getdelim): Remove unused variables.
49426 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
49428 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49429 so that the code works even with ancient cpp. Portability problem
49430 with GCC 2.7.2.1 reported by Thomas M.Ott.
49432 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
49434 * modules/regex (Depends-on): Add strcase.
49436 * modules/gethostname (Licence): Change from GPL to LGPL, since
49437 gethostname.c is a trivial implementation of a standard library
49439 * modules/poll (License): Change from GPL to LGPL, since it's
49440 derived from LGPL code.
49442 2005-09-27 Jim Meyering <jim@meyering.net>
49444 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49447 * lib/intprops.h (signed_type_or_expr__): Define.
49448 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49449 for unsigned types.
49451 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
49453 * lib/verify.h (verify_expr): Remove, replacing with:
49454 (verify_true): New macro that returns true instead of void.
49455 (verify_type__): Remove.
49456 (verify): Use verify_true rather than verify_type__.
49458 2005-09-26 Bruno Haible <bruno@clisp.org>
49460 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49462 (lib_SOURCES): Remove mbchar.c.
49463 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49464 (Files): Add m4/mbrtowc.m4.
49465 * modules/mbiter: Likewise.
49466 * modules/mbuiter: Likewise.
49468 2005-09-26 Bruno Haible <bruno@clisp.org>
49470 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49471 compile mbchar.c if they are not both present.
49472 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49473 * m4/mbiter.m4 (gl_MBITER): Likewise.
49474 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49475 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49476 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49478 2005-09-25 Jim Meyering <jim@meyering.net>
49480 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49481 also uses socklen_t.
49483 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
49485 * lib/utimens.c (ENOSYS): Define if not already defined.
49486 (futimens): Support having a null PATH if the file descriptor
49489 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49491 (__attribute): Define to empty unless GCC 3.1 or later.
49492 This works around a core dump on OpenBSD 3.4, which has GCC
49493 2.95.3, which dumps core when given __attribute__(()). It also
49494 simplifies other tests, since we really don't want to bother with
49495 worrying about which ancient version of GCC supported what.
49496 Original problem reported by Yoann Vandoorselaere, with part of
49497 the fix suggested by Derek Price.
49499 2005-09-24 Jim Meyering <jim@meyering.net>
49501 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49502 so we can once again use a positive bitfield width of 1 -- now we
49503 don't have to explain why we were using a bitfield width of 2.
49505 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
49507 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49508 and similarly for the other external symbols. Problem reported
49511 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49512 bug reported by Jim Meyering.
49514 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49515 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49516 not needed, since socklen is a prerequisite module.
49518 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
49520 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49521 Problem reported by Eric Blake.
49522 (getaddrinfo): Initialize se so that it's not garbage.
49523 Redo internal storage allocation so that it doesn't make unportable
49524 assumptions about alignment.
49527 * lib/utimens.c (futimens): Use futimesat if available.
49528 Prefer it to futimes since it doesn't have the futimes bug.
49530 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49531 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49532 Instead, declare a function that returns a pointer to an array,
49533 and use verify_type__ to declare the size of the array.
49534 Problem and germ of a solution reported by Bruno Haible.
49535 (verify_type__): Use 2, not 1, for bitfield size, to avoid
49536 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
49538 2005-09-23 Jim Meyering <jim@meyering.net>
49540 Sync from coreutils.
49541 Correct build failure (socklen_t not defined) on at least
49542 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49543 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49545 2005-09-23 Jim Meyering <jim@meyering.net>
49547 * modules/getaddrinfo (Depends-on): Add socklen.
49549 2005-09-23 Bruno Haible <bruno@clisp.org>
49551 * tests/test-verify.c: New file.
49553 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49555 Sync from coreutils.
49557 * modules/argmatch (Depends-on): Add verify.
49558 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49560 * modules/save-cwd (Depends-on): Likewise.
49562 * modules/openat (Files): Add lib/openat-die.c.
49563 (Depends-on): Remove error, exitfail.
49566 * modules/verify: New file.
49567 * MODULES.html.sh (Diagnostics <assert.h>): New section,
49568 with "verify" module.
49570 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49572 Sync from coreutils.
49574 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49575 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49576 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49577 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49578 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49579 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49580 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49581 Don't bother checking for string.h, stdlib.h, unistd.h.
49582 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49583 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49585 * m4/jm-macros.m4 (gl_MACROS): Likewise.
49586 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49588 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49589 (gl_GETDATE): Use it.
49591 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49593 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49595 Sync from coreutils.
49597 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49599 * lib/argmatch.h: Include verify.h
49600 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49601 (ARGMATCH_ASSERT): Remove; unused.
49602 * lib/canonicalize.c: Assume STDC_HEADERS.
49603 * lib/exclude.c: Include "strcase.h".
49604 * lib/regex_internal.h [!defined _LIBC]: Likewise.
49605 * lib/getusershell.c: Include stdio--.h rather than stdio.h
49607 (getusershell): Call fopen, not fopen_safer.
49608 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49609 Do not include unistd-safer.h.
49610 (save_cwd): Don't call fd_safer; no longer needed
49611 now that we include fcntl--.h.
49613 * lib/getdate.y (relative_time): New type.
49614 (RELATIVE_TIME_0): New constant.
49615 (parser_control): Use relative_time instead of doing it ourselves.
49616 (%union): Add new relative_time rel member.
49617 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49619 (relunit, relunit_snumber): Now of type rel.
49620 (zone, rel, relunit, get_date): Adjust to above changes.
49622 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49623 Do not include unistd-safer.h.
49624 (getloadavg): Don't call fd_safer; no longer needed
49625 now that we include fcntl--.h.
49627 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49628 (make_dir_parents): Treat ENOSYS like EEXIST.
49630 Improve quality of diagnostics on restore_cwd failure.
49631 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
49632 (make_dir_parents): Last arg is now int * (for errno), not bool *.
49633 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49634 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49635 each time through the loop. Do not diagnose restore_cwd failure;
49636 that is the caller's job (and perhaps the caller does not care).
49638 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49639 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49640 If the file already exists but is not a directory, don't bother
49641 to try to make its parents.
49642 Close potential file descriptor leak if we can't chdir("/") (!).
49643 Don't always return true if chdir($PWD) fails; return true only
49644 if the requested action was done successfully (except for the
49646 Don't log final directory unless we actually made it.
49647 Refactor to avoid duplicate code to fix up permissions.
49648 Don't attempt to fix up parent permissions if chdir($PWD) fails.
49650 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49651 to make it a bit faster and (I hope) clearer.
49652 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49653 Fix bug in formats like %2N.
49655 * lib/verify.h: New file.
49657 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
49659 Sync from coreutils.
49660 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49662 2005-09-22 Jim Meyering <jim@meyering.net>
49664 Sync from coreutils.
49666 * m4/lstat.m4 (gl_FUNC_LSTAT):
49667 Use AC_LIBSOURCES to require lstat.c and lstat.h.
49668 Remove obsolete comment.
49669 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49670 * m4/xstrtod.m4: Likewise.
49672 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49674 2005-09-22 Jim Meyering <jim@meyering.net>
49676 Sync from coreutils.
49678 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49680 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49681 the .tm_year member, since otherwise gcc-4.0 would now warn about
49682 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49684 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49685 order to avoid an unsuppressible warning from gcc on 64-bit systems.
49687 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49688 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49689 when run in a time zone for which daylight savings time is in effect
49690 for the starting date.
49692 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49693 stop us from restricting permissions of just-created absolute-named
49695 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49696 to restore initial working directory.
49697 * lib/mkdir-p.c (make_dir_parents): New parameter:
49698 different_working_dir, to tell caller if/when we change the working
49699 directory and are unable to return to the initial one.
49700 * lib/mkdir-p.h (make_dir_parents): Update prototype.
49701 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49702 `return false'. This fixes a bug introduced on 2004-07-30.
49704 * lib/openat.c (fdopendir): Be sure to close the supplied
49705 file descriptor before returning. This makes our replacement
49706 implementation a little closer to Solaris's, where fdopendir
49707 ties the file descriptor to the returned DIR* pointer.
49708 * lib/openat.c (unlinkat): New function.
49709 * lib/openat.h (unlinkat): Add prototype.
49710 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49711 (openat_restore_fail): Rename from openat_restore_die.
49712 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49714 Provide an alternative to exiting immediately upon save_cwd or
49715 restore_cwd failure. Now, an application can arrange e.g.,
49716 to perform a longjump in that case.
49717 * lib/openat.c: Include dirname.h.
49718 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49719 (rpl_openat, fdopendir, fstatat): Call openat_save_die
49720 and openat_restore_die rather than calling error directly.
49721 Don't include "error.h" or "exitfail.h"; they're no longer needed.
49723 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49724 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49727 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49728 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49729 int utc, int nanoseconds);
49731 date should not have to allocate a megabyte of virtual memory to
49732 handle a format argument like +%1048575T. When implemented with
49733 strftime, it must allocate such a buffer, use strftime to fill it
49734 in, print it, then free it.
49735 With fprintftime, it simply prints everything and exits.
49736 With no need for memory allocation, that's one fewer way to fail.
49737 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49738 optional field width, not before, so we accept %9:z, not %:9z.
49739 (my_strftime): Be sure to use L_('x') for literals.
49741 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49742 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49743 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49744 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49745 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49746 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49747 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49748 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49749 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49750 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49751 * lib/xgethostname.c, lib/xreadlink.c:
49752 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49754 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49755 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49756 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49757 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49758 and don't include <sys/file.h>).
49760 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
49762 Sync from coreutils.
49764 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49765 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49766 [!LDAV_DONE]: Avoid unused variable warning.
49768 2005-09-21 Bruno Haible <bruno@clisp.org>
49770 * lib/unicodeio.h (unicode_to_mb): New declaration.
49772 2005-09-20 Derek Price <derek@ximbiot.com>
49774 * lib/getaddrinfo.c: Don't include <netdb.h> included from
49777 2005-09-20 Bruno Haible <bruno@clisp.org>
49779 * gnulib-tool: Remove trailing slashes from the values specified for
49780 --source-base, --m4-base, --tests-base, --aux-dir.
49781 Suggested by Simon Josefsson <jas@extundo.com>.
49783 2005-09-20 Bruno Haible <bruno@clisp.org>
49785 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49786 func_modules_to_filelist, func_import, func_create_testdir): Make all
49787 sorting results locale-independent, so that gnulib-cache.m4 doesn't
49788 change when gnulib-tool is invoked in a different locale.
49790 2005-09-19 Simon Josefsson <jas@extundo.com>
49792 * m4/socklen.m4: Fix typo.
49794 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49796 Use a consistent style for including <config.h>.
49797 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49798 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49799 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49800 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49801 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49802 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49803 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49804 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49805 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49806 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49807 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49808 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49809 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49810 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49811 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49812 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49813 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49814 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49815 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49816 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49817 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49818 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49819 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49820 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49821 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49822 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49823 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49824 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49825 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49826 lib/xstrtoumax.c, lib/yesno.c:
49827 Standardize inclusion of config.h.
49828 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49829 lib/inttostr.h: Removed inclusion of config.h from header files.
49830 * lib/inttostr.c: Adjusted in-tree users.
49831 * lib/timespec.h: Remove superfluous warning to include config.h.
49832 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49833 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49834 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49835 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49836 config.h with HAVE_CONFIG_H.
49838 2005-09-19 Jim Meyering <jim@meyering.net>
49840 * modules/pathmax (License): Change to LGPL.
49842 2005-09-19 Derek Price <derek@ximbiot.com>
49844 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49846 2005-09-19 Bruno Haible <bruno@clisp.org>
49848 * gnulib-tool (import): Provide default for --tests-base.
49850 2005-09-19 Bruno Haible <bruno@clisp.org>
49852 * doc/quote.texi: New file, extracted from gnulib.texi.
49853 * doc/ctime.texi: New file, extracted from gnulib.texi.
49854 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49855 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49856 * doc/gnulib.texi: Include them.
49858 2005-09-18 Bruno Haible <bruno@clisp.org>
49861 * gnulib-tool (func_readlink): New function.
49862 (func_ln_if_changed): Use it.
49864 2005-09-18 Bruno Haible <bruno@clisp.org>
49866 * gnulib-tool: Support --with-tests also with --import.
49867 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49868 (func_import): Use variables $testsbase and $inctests. Emit a
49869 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49870 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49871 SUBDIRS += $testsdir.
49872 (func_create_testdir): Update.
49874 2005-09-18 Bruno Haible <bruno@clisp.org>
49876 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49877 instead of $dry_run.
49878 (func_cp_if_changed, func_mv_if_changed): Remove functions.
49879 (func_ln_if_changed): Don't handle dry-run here.
49880 (func_import): In dry-run mode, detect more precisely which actions
49881 would be performed, and don't use "...ing" verbs.
49883 2005-09-18 Bruno Haible <bruno@clisp.org>
49885 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49886 (func_import): Use join on two temporary files instead of three nested
49887 loops, in order to determine which files are new or old.
49889 2005-09-18 Bruno Haible <bruno@clisp.org>
49891 * gnulib-tool (func_import): Comment out code that spits out the
49892 new files with --dry-run.
49894 2005-09-18 Bruno Haible <bruno@clisp.org>
49896 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49898 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49900 * lib/stat-time.h: New file.
49901 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49902 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
49903 in a different way.
49904 (timespec_cmp): New function.
49905 * lib/utimecmp.c: Include stat-time.h.
49906 (SYSCALL_RESOLUTION): Depend on whether various struct stat
49907 members exist, not on the obsolescent ST_MTIM_NSEC.
49908 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49910 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49912 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49914 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
49916 * MODULES.html.sh (File system functions): Add stat-time.
49917 * modules/stat-time: New file.
49918 * modules/timespec (Files): Remove m4/st_mtim.m4; this
49919 is now done in a different way, by the stat-time module.
49920 * modules/utimecmp (Depends-on): Add stat-time.
49922 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
49924 * m4/st_mtim.m4: Remove. Superseded by...
49925 * m4/stat-time.m4: New file.
49926 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49927 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49929 2005-09-15 Derek Price <derek@ximbiot.com>
49931 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49933 2005-09-15 Derek Price <derek@ximbiot.com>
49935 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49936 * lib/regex_internal.c: Ditto, using this...
49937 (__GNUC_PREREQ): ...new macro.
49938 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49940 (__GNUC_PREREQ): ...this new macro.
49942 * lib/strstr.h: Include string.h. Define strstr as a macro here.
49944 2005-09-15 Derek Price <derek@ximbiot.com>
49945 Paul Eggert <eggert@cs.ucla.edu>
49947 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49948 changes, consolidating in...
49949 * lib/regex_internal.h: ...this file.
49951 2005-09-13 Jim Meyering <jim@meyering.net>
49953 * lib/canon-host.c: Filter through gnu indent and reword comments
49955 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49957 2005-09-13 Derek Price <derek@ximbiot.com>
49959 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49961 Reported by Jim Meyering <jim@meyering.net>.
49963 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
49965 * lib/base64.c: Typo.
49966 (base64_encode): Put b64str in initialized data section.
49968 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
49970 Merge glibc and coreutils changes into gnulib, plus a few
49972 * lib/md5.c: Use #error rather than a string.
49973 (CYCLIC): New macro, from glibc source. Use it instead of rol.
49974 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49975 (__attribute__): Define to empty for non recent-GCC.
49976 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49977 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49978 Renamed from their non-__ counterparts, with new macros replacing
49979 them if not _LIBC. Add __THROW attribute.
49981 (struct md5_ctx): Align buffer if using GCC.
49982 * lib/sha1.h (struct sha1_ctx): Likewise.
49983 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
49984 The old name was backwards.
49985 (NOTSWAP): Remove; not used.
49986 (rol): New macro, moved here from md5.h.
49987 (sha1_process_block): Remove a FIXME that doesn't make sense.
49989 2005-09-12 Derek Price <derek@ximbiot.com>
49991 Return usable errors from canon-host.
49992 * lib/canon-host.h: New file.
49993 * lib/canon-host.c (canon_host): Wrap...
49994 (canon_host_r): ...this new function, which now relies exclusively on
49996 (ch_strerror): New function.
49997 (last_cherror): New global.
49998 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50000 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
50002 (freeaddrinfo): Free ai->ai_canonname when set.
50004 2005-09-12 Derek Price <derek@ximbiot.com>
50006 Make canon-host require getaddrinfo.
50007 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50008 AC_LIBSOURCE canon-host.h. Call...
50009 (gl_PREREQ_CANON_HOST): ...this new function, which requires
50011 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50013 2005-09-12 Derek Price <derek@ximbiot.com>
50015 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
50017 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
50019 2005-09-12 Derek Price <derek@ximbiot.com>
50021 * lib/gai_strerror.c: Include config.h when available. Include
50022 getaddrinfo.h before other headers to test interface.
50023 Reported by Larry Jones <lawrence.jones@ugs.com>.
50025 2005-09-12 Derek Price <derek@ximbiot.com>
50026 Paul Eggert <eggert@cs.ucla.edu>
50028 * modules/glob (Files): Add glob-libc.h.
50030 2005-09-12 Derek Price <derek@ximbiot.com>
50031 Paul Eggert <eggert@cs.ucla.edu>
50033 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50034 glob_.h, glob-libc.h.
50035 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50037 2005-09-12 Derek Price <derek@ximbiot.com>
50038 Paul Eggert <eggert@cs.ucla.edu>
50040 * lib/glob-libc.h: Renamed from glob_.h. The new version is
50041 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50042 protecting things that should be done only in gnulib contexts.
50043 * lib/glob_.h: New file, containing only the glob things needed for
50045 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
50046 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50047 (glob, globfree, glob_pattern_p): Now defined simply in terms of
50048 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50049 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50050 and to respect the namespace rules better.
50052 2005-09-08 Simon Josefsson <jas@extundo.com>
50054 * modules/socklen: New file.
50056 2005-09-08 Simon Josefsson <jas@extundo.com>
50058 * m4/socklen.m4: New file.
50060 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
50062 * modules/utimens (Files): Add m4/utimbuf.m4, since
50063 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50064 Reported by Sergey Poznyakoff.
50066 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
50068 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50069 definitions, since that's the preferred style in glibc.
50070 Fix a minor spacing issue, and update copyright notice to match
50073 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
50075 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50077 2005-09-06 Simon Josefsson <jas@extundo.com>
50079 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50080 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
50082 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
50084 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50087 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
50089 * config/srclist.txt: Add glibc bug 1302.
50091 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
50093 Change bitset word type from unsigned int to unsigned long int,
50094 as this has better performance on typical 64-bit hosts.
50095 Port bitset code to hosts with unusual word sizes.
50096 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50097 (build_collating_symbol):
50098 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50099 argument is a bitset. This is merely a style issue, but it makes
50100 it clearer that an entire array is expected.
50101 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50102 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50103 Port to the case where bitset_word is not the same as unsigned int.
50104 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50105 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50107 * lib/regexec.c (check_dst_limits_calc_pos_1,
50108 check_subexp_matching_top):
50109 (build_trtable, group_nodes_into_DFAstates):
50111 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50112 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50113 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50114 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50115 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50116 * lib/regcomp.c (optimize_subexps, lower_subexp):
50117 Work even if bitset_word has holes in its bitwise representation.
50118 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50119 * lib/regexec.c (check_dst_limits_calc_pos_1,
50120 check_subexp_matching_top):
50122 * lib/regex_internal.c (re_string_reconstruct):
50123 Don't assume UCHAR_MAX == 255.
50124 * lib/regex_internal.h (bitset_set_all): Likewise.
50125 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50127 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
50128 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50130 (BITSET_WORD_MAX): New macro.
50131 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50132 (bitset_set_all, bitset_copy): Now inline functions, not macros.
50133 (bitset_empty, bitset_copy):
50134 Prefer sizeof (bitset) to multiplying it out ourselves.
50135 (bitset_not_merge): Remove; unused.
50136 (bitset_contain): Return bool, not unsigned int with one bit on.
50137 All callers changed.
50138 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50139 alignment than re_node_set; do this by defining a new internal
50140 type struct dests_alloc and using it to allocate memory.
50142 2005-09-05 Bruno Haible <bruno@clisp.org>
50144 * gnulib-tool (func_import): Fix comparison in handling of symbolic
50147 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
50149 * modules/size_max (Makefile.am): Add size_max.h
50151 2005-09-04 Derek Price <derek@ximbiot.com>
50153 * gnulib-tool (func_import): Fix reversed $symbolic logic.
50155 2005-09-03 Simon Josefsson <jas@extundo.com>
50157 * gnulib-tool: Fix typo.
50159 2005-09-03 Simon Josefsson <jas@extundo.com>
50161 * config/srclist.txt: Add glibc bug 1293.
50163 2005-09-03 Derek Price <derek@ximbiot.com>
50165 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50166 From Larry Jones <lawrence.jones@ugs.com>.
50168 2005-09-02 Simon Josefsson <jas@extundo.com>
50170 * modules/socklen: New file.
50172 2005-09-02 Simon Josefsson <jas@extundo.com>
50174 * modules/havelib: New module.
50176 * modules/gettext, modules/iconv, modules/lock, modules/readline:
50179 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
50181 Check for arithmetic overflow when calculating sizes, to prevent
50182 some buffer-overflow issues. These patches are conservative, in the
50183 sense that when I couldn't determine whether an overflow was possible,
50184 I inserted a run-time check.
50185 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50187 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50188 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50189 (re_xnrealloc, re_x2nrealloc): New inline functions.
50190 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50191 parse_bracket_exp):
50192 (build_equiv_class, build_charclass): Check for arithmetic overflow
50193 in size expression calculations.
50194 * lib/regex_internal.c (re_string_realloc_buffers):
50195 (build_wcs_upper_buffer, re_node_set_add_intersect):
50196 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50197 (re_dfa_add_node, register_state): Likewise.
50198 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50199 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50200 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50201 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50203 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
50205 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50206 m4/ulonglong.m4. Problem reported by Martin Lambers.
50208 2005-09-02 Bruno Haible <bruno@clisp.org>
50210 Support for lib vs. lib64 distinction on biarch platforms.
50211 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50212 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50213 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50215 2005-09-02 Bruno Haible <bruno@clisp.org>
50217 * gnulib-tool (import): In the other first-use case, provide defaults
50220 2005-09-02 Bruno Haible <bruno@clisp.org>
50222 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50223 patches not yet found in the latest gettext release.
50225 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
50227 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50228 to avoid a collision with bits/local_lim.h in glibc.
50229 All uses changed. Problem reported by Dmitry V. Levin in
50230 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50232 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50233 bugs in int versus size_t comparisons.
50234 (re_string_context_at): Fix bug where the code assumed that
50237 Use bool where appropriate.
50238 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50239 All callers changed.
50240 (calc_eclosure_iter): Likewise, for ROOT arg.
50241 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50242 (build_charclass_op): Likewise, for NON_MATCH arg.
50243 * lib/regex_internal.c (re_string_allocate, re_string_construct):
50244 (re_string_construct_common): Likewise, for ICASE arg.
50245 * lib/regexec.c (re_search_2_stub, re_search_stub):
50246 Likewise, for RET_LEN arg.
50247 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50248 (set_regs): Likewise, for FL_BACKTRACK arg.
50249 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50250 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50251 (calc_eclosure_iter, parse_bracket_exp):
50252 Use bool for internal variables that are booleans.
50253 * lib/regexec.c (re_search_internal, check_matching,
50254 proceed_next_node):
50255 (set_regs, build_sifted_states, sift_states_bkref):
50256 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50257 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50258 (find_collation_sequence_value):
50260 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50261 (re_node_set_compare):
50262 Return bool, not int. All callers changed.
50263 * lib/regexec.c (check_halt_node_context, check_dst_limits):
50264 (build_trtable, check_node_accept): Likewise.
50265 * lib/regex_internal.h: Include stdbool.h.
50267 Fix bugs uncovered when converting to bool.
50268 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50269 failure instead of charging ahead blindly.
50270 * lib/regex_internal.c (register_state): Likewise.
50271 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50272 for freeing internal storage.
50273 (group_nodes_into_DFA_states): Use unsigned int, not int, for
50274 bitset pieces used as boolean, to avoid undefined behavior
50275 on hosts that do int overflow checking.
50277 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
50279 * config/srclist.txt: Add glibc bugs 1285-1287.
50281 2005-09-01 Jim Meyering <jim@meyering.net>
50283 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50284 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50285 Require gl_STAT_MACROS, too.
50287 2005-09-01 Bruno Haible <bruno@clisp.org>
50289 * gnulib-tool (import): In the first-use case, provide defaults.
50291 2005-09-01 Bruno Haible <bruno@clisp.org>
50293 * gnulib-tool (func_import): Remove the .tmp files.
50295 2005-09-01 Bruno Haible <bruno@clisp.org>
50297 * gnulib-tool (func_import): Fix handling of symbolic links.
50299 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
50301 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50302 old glibc regex code mishandles strings longer than 2**31 bytes.
50303 This patch fixes this when the regex code is used in gnulib
50304 (i.e., outside glibc).
50306 This patch should not affect the use of the regex code inside
50307 glibc. No doubt this problem also needs to be handled for glibc
50308 as well, but the result will be an incompatible change to the
50309 glibc ABI, and the old ABI will have to be supported too. That
50310 can be the the subject for another patch.
50312 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50313 governing whether the rest of this patch is active. By default,
50314 the macro is disabled and the patch has no effect.
50315 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50316 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50317 (struct re_pattern_buffer, re_search, re_search_2, re_match):
50318 (re_match_2, re_set_registers): Use the new types.
50319 * lib/regex_internal.h (Idx, re_hashval_t): New types.
50320 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50322 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50323 (re_string_context_at, bin_tree_t, re_dfastate_t):
50324 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50325 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50326 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50327 (re_string_char_size_at, re_string_wchar_at):
50328 (re_string_elem_size_at):
50329 Use the new types and macros to port to 64-bit hosts.
50330 Use unsigned types for internal values, so that the code
50331 mostly works even for arrays larger than SSIZE_MAX.
50332 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50333 (search_duplicated_node, calc_eclosure_iter, fetch_number):
50334 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50335 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50336 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50337 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50338 (calc_inveclosure, parse_dup_op, build_range_exp):
50339 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50340 (fetch_number, create_token_tree, mark_opt_subexp):
50342 * lib/regex_internal.c (re_string_construct_common,
50343 create_ci_newstate):
50344 (create_cd_newstate, re_string_allocate, re_string_construct):
50345 (re_string_realloc_buffers, build_wcs_upper_buffer):
50346 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50347 (re_string_reconstruct, re_string_peek_byte_case):
50348 (re_string_fetch_byte_case, re_string_context_at):
50349 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50350 (re_node_set_init_copy, re_node_set_add_intersect):
50351 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50352 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50353 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50354 (re_acquire_state, re_acquire_state_context, register_state):
50356 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50357 search_cur_bkref_entry):
50358 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50359 (re_search_internal, re_search_2_stub, re_search_stub)
50360 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50361 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50362 (update_cur_sifted_state, check_dst_limits):
50363 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50364 (check_subexp_limits, sift_states_bkref, merge_state_array):
50365 (check_subexp_matching_top, get_subexp, get_subexp_sub):
50366 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50367 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50368 (expand_bkref_cache, check_node_accept_bytes):
50369 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50370 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50371 (acquire_init_state_context, check_halt_node_context):
50372 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50373 (sift_states_backward, clean_state_log_if_needed):
50374 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50375 (find_recover_state, transit_state_sb, transit_state_mb):
50376 (transit_state_bkref, build_trtable, match_ctx_clean):
50378 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50379 to work around an assumption that REG_MISSING is negative.
50381 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50382 (seek_collating_symbol_entry) [defined _LIBC]:
50383 (lookup_collation_sequence_value) [defined _LIBC]:
50384 (build_range_exp, build_collating_symbol) [defined _LIBC]:
50385 Use prototypes rather than old-style function definitions.
50386 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50387 (transit_state_sb) [0]:
50388 (find_collation_sequence_value) [defined _LIBC]: Likewise.
50390 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50393 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50394 (optimize_subexps, lower_subexp):
50395 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50396 since the signed shift might overflow. Use 1u<<31 instead.
50397 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50399 * lib/regexec.c (check_dst_limits_calc_pos_1,
50400 check_subexp_matching_top): Likewise.
50402 * lib/regcomp.c (optimize_subexps, lower_subexp):
50403 Use CHAR_BIT rather than 8, for clarity.
50404 * lib/regexec.c (check_dst_limits_calc_pos_1):
50405 (check_subexp_matching_top): Likewise.
50406 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50407 have to worry about portability issues when shifting it left.
50408 Remove no-longer-needed test for table_size > 0.
50409 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50410 in a word, as the resulting behavior is undefined.
50411 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50412 in one case, a <= should have been an <, and in another case the
50413 whole test was missing.
50414 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
50415 the standard name CHAR_BIT.
50416 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50417 this is not true on one's complement and signed-magnitude hosts.
50419 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50421 (struct re_dfa_t): Remove unused member states_alloc.
50422 * lib/regcomp.c (init_dfa): Don't initialize unused members.
50424 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
50426 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50427 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
50428 and large-file glibc and in 32-bit large-file Solaris.
50430 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
50432 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50433 lengths fit in regoff_t; this isn't true if regoff_t is the same
50435 * lib/regex.c (re_search_internal): 5th arg is LAST_START
50436 (= START + RANGE) instead of RANGE. This avoids overflow
50437 problems when regoff_t is the same width as size_t.
50438 All callers changed.
50439 (re_search_2_stub): Check for overflow when adding the
50440 sizes of the two strings.
50441 (re_search_stub): Check for overflow when adding START
50442 to RANGE; if it occurs, substitute the extreme value.
50444 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
50446 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50448 2005-08-31 Jim Meyering <jim@meyering.net>
50450 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50451 a pointer-to-const.
50452 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50453 (register_state): Likewise.
50454 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50455 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50456 (group_nodes_into_DFAstates): Likewise.
50458 2005-08-31 Jim Meyering <jim@meyering.net>
50460 * check-module: Add a FIXME comment.
50462 2005-08-31 Eric Blake <ebb9@byu.net>
50464 * modules/unistd-safer (Files): Add unistd--.h.
50465 * modules/stdio-safer (Files): Add stdio--.h.
50467 2005-08-31 Derek Price <derek@ximbiot.com>
50469 * lib/getdelim.c (getdelim): Return EOF on EOF.
50470 Reported by Larry Jones <lawrence.jones@ugs.com>.
50472 2005-08-31 Bruno Haible <bruno@clisp.org>
50474 Avoid unnecessary diffs in the generated lib/Makefile.am.
50475 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50476 the generated files.
50477 (func_import): Don't set cmd.
50479 2005-08-31 Bruno Haible <bruno@clisp.org>
50481 * lib/strstr.c: Include <stddef.h>, for NULL.
50482 * lib/strcasestr.c: Likewise.
50483 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50485 2005-08-31 Bruno Haible <bruno@clisp.org>
50487 * gnulib-tool: New option --macro-prefix.
50488 (func_import): Use macro_prefix.
50489 (import): Handle option --macro-prefix.
50491 2005-08-31 Bruno Haible <bruno@clisp.org>
50493 * gnulib-tool (import): Rename most ac_* variables to cached_*.
50494 Also use new variables cached_lgpl, cached_libtool.
50496 2005-08-31 Bruno Haible <bruno@clisp.org>
50498 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50499 always instantiating them.
50501 2005-08-31 Bruno Haible <bruno@clisp.org>
50503 * gnulib-tool (func_import): Read the previous cached settings
50504 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50505 earlier added by gnulib but are now dropped. Warn when a gnulib file
50506 overwrites a non-gnulib file.
50508 2005-08-31 Bruno Haible <bruno@clisp.org>
50510 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50511 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50512 projects that don't keep autogenerated files in CVS. Put into
50513 actioncmd only the specified modules, not the transitive closure.
50515 2005-08-31 Bruno Haible <bruno@clisp.org>
50517 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50518 Create directories that shall be filled.
50519 (import): Don't look for gl_* macros in configure.ac. Recurse across
50520 all directories containing a gnulib-cache.m4 files, if meaningful.
50522 2005-08-31 Bruno Haible <bruno@clisp.org>
50524 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50525 (import): Set seen_libtool when we see gl_LIBTOOL.
50527 2005-08-31 Bruno Haible <bruno@clisp.org>
50529 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50530 declaration macro definitions from generated gnulib.m4.
50532 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
50534 * lib/iconvme.h: Add prototype for iconv_alloc.
50536 2005-08-29 Simon Josefsson <jas@extundo.com>
50538 * lib/iconvme.c: Fix errno.
50540 2005-08-29 Bruno Haible <bruno@clisp.org>
50542 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50543 that it works when the directory contains spaces.
50545 2005-08-29 Bruno Haible <bruno@clisp.org>
50547 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50549 2005-08-29 Bruno Haible <bruno@clisp.org>
50551 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50554 2005-08-29 Bruno Haible <bruno@clisp.org>
50555 and Stepan Kasal <kasal@ucw.cz>
50557 * check-module: If more parameters are given, check each of them
50558 separately; add more exceptions, as noted by Jim Meyering.
50559 (check_module): New procedure.
50560 (%exempt_header): Now contains all exceptions.
50562 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
50564 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50566 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
50568 * lib/iconvme.c: Split iconv_string into iconv_alloc.
50570 2005-08-28 Bruno Haible <bruno@clisp.org>
50572 * m4/gnulib-tool.m4: New file.
50574 2005-08-27 Jim Meyering <jim@meyering.net>
50576 * modules/unistd-safer (Files): Add pipe-safer.c.
50577 * modules/fcntl-safer (Files): Add creat-safer.c.
50579 2005-08-27 Jim Meyering <jim@meyering.net>
50581 * m4/stdlib-safer.m4: New file. From coreutils.
50582 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50583 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50584 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50585 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50586 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50588 2005-08-27 Jim Meyering <jim@meyering.net>
50590 * lib/fopen-safer.c: Merge minor changes from coreutils.
50591 * lib/dup-safer.c: Likewise.
50592 * lib/fd-safer.c: Likewise.
50594 Merge from coreutils.
50595 * lib/stdio--.h: New file.
50596 * lib/stdlib--.h: New file.
50597 * lib/mkstemp-safer.c: New file.
50599 GNU tar needs these.
50600 * lib/pipe-safer.c: New file.
50601 * lib/creat-safer.c: New file.
50602 * lib/fcntl--.h (creat): Define to creat_safer.
50603 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50604 * lib/unistd--.h (pipe): Define to pipe_safer.
50605 * lib/unistd-safer.h: Declare pipe_safer.
50607 2005-08-26 Simon Josefsson <jas@extundo.com>
50609 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50610 Haible <bruno@clisp.org>.
50612 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
50614 * lib/regex_internal.h: Remove all references to
50615 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50617 (bitset_not, bitset_merge, bitset_not_merge):
50618 (bitset_mask, re_string_allocate, re_string_construct):
50619 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50620 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50621 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50622 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50623 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50624 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50625 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50626 (re_acquire_state_context):
50627 Remove unnecessary forward decls.
50628 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50629 Put __attribute at function definition,
50630 now that the function decl has been removed.
50631 * lib/regex_internal.c (re_string_peek_byte_case):
50632 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50635 2005-08-25 Stepan Kasal <kasal@ucw.cz>
50637 * m4/regex.m4: Add AC_PREREQ(2.50).
50638 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50640 2005-08-25 Simon Josefsson <jas@extundo.com>
50642 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50645 2005-08-25 Simon Josefsson <jas@extundo.com>
50647 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
50648 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
50649 GLIBC specific code.
50651 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50653 Make regex safe for g++. This fixes one real bug (an "err"
50654 that should have been "*err"). g++ problem reported by
50656 * lib/regex_internal.h (re_calloc): New macro, consistent with
50657 re_malloc etc. All callers of calloc changed to use re_calloc.
50658 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50659 not int. All callers changed.
50660 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50661 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50662 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50663 (find_recover_state): Change "err" to "*err"; this fixes what
50664 appears to be a real bug.
50665 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50668 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50670 * modules/regex (Depends-on): Add malloc, since the code
50671 assumes that !malloc(0) means failure.
50673 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50675 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50677 alloca modernization/simplification for regex.
50678 * lib/regex.c: Remove portability cruft for alloca. This no longer
50679 needs to be at the start of the file, and can be moved into
50680 regex_internal.h and simplified.
50681 * lib/regex_internal.h: Include <alloca.h>.
50682 (__libc_use_alloca) [!defined _LIBC]: New macro.
50683 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50684 now works outside glibc.
50686 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
50688 * config/srclist.txt: Add glibc bugs 1241, 1245.
50690 2005-08-25 Jim Meyering <jim@meyering.net>
50692 * lib/open-safer.c: Include <config.h>.
50693 Otherwise, we'd lose LARGEFILE support in any file using
50696 2005-08-25 Bruno Haible <bruno@clisp.org>
50698 * m4/minmax.m4: Require autoconf 2.52.
50699 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50700 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50701 alternatives of translit over the alphabet.
50702 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50704 2005-08-24 Simon Josefsson <jas@extundo.com>
50706 * tests/test-getpass.c: New file.
50708 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50710 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50711 for GNU regex features.
50713 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50715 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50716 * lib/regex.h (regerror): Likewise.
50718 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50719 requires this. (The code never needed it.)
50721 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50722 All uses of recently-renamed identifiers changed to use the new,
50723 POSIX-compliant names. The code will build and run just fine
50724 without these changes, but it's better to eat our own dog food
50725 and use the standard-conforming names.
50727 * lib/regex.h: Fix a multitude of POSIX name space violations.
50728 These changes have an effect only for programs that define
50729 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50730 do not change anything for programs compiled in the normal way.
50731 Also, there is no effect on the ABI.
50733 (_REGEX_SOURCE): New macro.
50734 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50735 defined and _GNU_SOURCE is not; this fixes a name space violation.
50737 Rename the following macros to obey POSIX requirements.
50738 The old names are still visible as macros if _REGEX_SOURCE is defined.
50739 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50740 RE_BACKSLASH_ESCAPE_IN_LISTS.
50741 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50742 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50743 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50744 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50745 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50746 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50747 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50748 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50749 (REG_INTERVALS): renamed from RE_INTERVALS.
50750 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50751 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50752 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50753 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50754 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50755 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50756 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50757 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50758 RE_UNMATCHED_RIGHT_PAREN_ORD.
50759 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50760 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50761 (REG_DEBUG): renamed from RE_DEBUG.
50762 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50763 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
50764 unusual, since we can't clash with the POSIX REG_ICASE.
50765 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50766 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50767 (REG_NO_SUB): renamed from RE_NO_SUB.
50768 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50769 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50770 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50771 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50772 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50773 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50774 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50775 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50776 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50777 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50778 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50779 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50780 RE_SYNTAX_POSIX_MINIMAL_BASIC.
50781 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50782 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50783 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50784 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
50785 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50786 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50787 (REG_FIXED): Renamed from REGS_FIXED.
50788 (REG_NREGS): Renamed from RE_NREGS.
50790 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50791 of other REG_* macros, since POSIX says the user is allowed to
50792 #undef these macros selectively.
50794 (reg_errcode_t): Update comment stating what other tables need
50797 Rename the following enum values to obey POSIX requirements.
50798 The old names are still visible as macros.
50799 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
50800 is not defined, since GNU is supposed to be a superset of POSIX as
50801 much as possible, and since we want reg_errcode_t to be a signed
50802 type for implementation consistency.
50803 (_REG_NOERROR): Renamed from REG_NOERROR.
50804 (_REG_NOMATCH): Renamed from REG_NOMATCH.
50805 (_REG_BADPAT): Renamed from REG_BADPAT.
50806 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50807 (_REG_ECTYPE): Renamed from REG_ECTYPE.
50808 (_REG_EESCAPE): Renamed from REG_EESCAPE.
50809 (_REG_ESUBREG): Renamed from REG_ESUBREG.
50810 (_REG_EBRACK): Renamed from REG_EBRACK.
50811 (_REG_EPAREN): Renamed from REG_EPAREN.
50812 (_REG_EBRACE): Renamed from REG_EBRACE.
50813 (_REG_BADBR): Renamed from REG_BADBR.
50814 (_REG_ERANGE): Renamed from REG_ERANGE.
50815 (_REG_ESPACE): Renamed from REG_ESPACE.
50816 (_REG_BADRPT): Renamed from REG_BADRPT.
50817 (_REG_EEND): Renamed from REG_EEND.
50818 (_REG_ESIZE): Renamed from REG_ESIZE.
50819 (_REG_ERPAREN): Renamed from REG_ERPAREN.
50820 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50821 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50822 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50823 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50825 (_REG_RE_NAME, _REG_RM_NAME): New macros.
50826 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
50827 changed. But support the old name if the new one is not defined
50828 and if _REGEX_SOURCE.
50830 Change the following member names in struct re_pattern_buffer.
50831 The old names are still supported if !_REGEX_SOURCE.
50832 The new names are always supported, regardless of _REGEX_SOURCE.
50833 (re_buffer): Renamed from buffer.
50834 (re_allocated): Renamed from allocated.
50835 (re_used): Renamed from used.
50836 (re_syntax): Renamed from syntax.
50837 (re_fastmap): Renamed from fastmap.
50838 (re_translate): Renamed from translate.
50839 (re_can_be_null): Renamed from can_be_null.
50840 (re_regs_allocated): Renamed from regs_allocated.
50841 (re_fastmap_accurate): Renamed from fastmap_accurate.
50842 (re_no_sub): Renamed from no_sub.
50843 (re_not_bol): Renamed from not_bol.
50844 (re_not_eol): Renamed from not_eol.
50845 (re_newline_anchor): Renamed from newline_anchor.
50847 Change the following member names in struct re_registers.
50848 The old names are still supported if !_REGEX_SOURCE.
50849 The new names are always supported, regardless of _REGEX_SOURCE.
50850 (rm_num_regs): Renamed from num_regs.
50851 (rm_start): Renamed from start.
50852 (rm_end): Renamed from end.
50854 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50855 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50856 Prepend __ to parameter names.
50858 Undo yesterday's changes.
50860 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
50862 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50863 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
50866 2005-08-24 Jim Meyering <jim@meyering.net>
50868 Sync from coreutils.
50869 * m4/fcntl-safer.m4: New file.
50871 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50872 and object files for this module.
50874 2005-08-24 Jim Meyering <jim@meyering.net>
50876 Sync from coreutils.
50877 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50879 2005-08-24 Jim Meyering <jim@meyering.net>
50881 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50882 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50884 2005-08-24 Jim Meyering <jim@meyering.net>
50886 * modules/fcntl-safer: New module.
50887 * modules/fts (Depends-on): Add fcntl-safer.
50888 * MODULES.html.sh (File descriptor based Input/Output):
50891 2005-08-24 Bruno Haible <bruno@clisp.org>
50893 Support for unit test modules.
50894 * modules/README: Mention tests modules.
50895 * modules/TEMPLATE-TESTS: New file.
50896 * gnulib-tool: New options --extract-tests-module, --with-tests and
50897 --tests-base (unused for the moment).
50898 (testsbase, inctests): New variables.
50899 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50900 (func_verify_module): Exclude TEMPLATE-TESTS.
50901 (func_verify_nontests_module, func_verify_tests_module): New functions.
50902 (func_get_dependencies): Add implicit dependency for tests modules.
50903 (func_get_tests_module): New function.
50904 (func_modules_transitive_closure): When --with-tests was specified,
50905 include the unit tests as well, unless explicitly avoided.
50906 (func_emit_lib_Makefile_am): Ignore the tests modules here.
50907 (func_emit_tests_Makefile_am): New function.
50908 (func_create_testdir): When --with-tests was specified, emit a
50910 * MODULES.html.sh (Future developments): Update.
50912 2005-08-24 Bruno Haible <bruno@clisp.org>
50914 * modules/tls-tests: New file.
50915 * tests/test-tls.c: New file, from GNU gettext.
50917 2005-08-24 Bruno Haible <bruno@clisp.org>
50919 * modules/lock-tests: New file.
50920 * tests/test-lock.c: New file, from GNU gettext.
50922 2005-08-24 Bruno Haible <bruno@clisp.org>
50924 * lib/lock.h: Add multiple inclusion guard.
50925 * lib/tls.h: Add multiple inclusion guard.
50927 2005-08-24 Bruno Haible <bruno@clisp.org>
50929 * gnulib-tool: Add support for the --aux-dir option to
50930 --create-testdir, --create-megatestdir, --test, --megatest.
50931 (func_create_testdir, func_create_megatestdir): Optionally emit a
50932 AC_CONFIG_AUX_DIR directive.
50933 (create-testdir, create-megatestdir, test, megatest): Provide a
50934 default value for $auxdir.
50936 2005-08-24 Bruno Haible <bruno@clisp.org>
50938 * gnulib-tool (import): Use compound statement instead of subshell
50941 2005-08-24 Bruno Haible <bruno@clisp.org>
50943 * gnulib-tool (import): Change --aux-dir default to "build-aux".
50945 2005-08-24 Bruno Haible <bruno@clisp.org>
50947 * gnulib-tool (func_version): Update.
50949 2005-08-24 Bruno Haible <bruno@clisp.org>
50951 * gnulib-tool (func_import, func_create_testdir,
50952 func_create_megatestdir): Quote all autoconf macro arguments.
50954 2005-08-24 Bruno Haible <bruno@clisp.org>
50956 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50957 option --force, because --force causes the aclocal.m4 of each
50958 subdirectory to be newer than the corresponding config.h.in.
50960 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50962 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50963 All contents moved to gl_REGEX.
50964 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50965 assume that it does.
50967 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50969 * lib/regex.h (REG_NOSYS)
50970 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50971 Define, since POSIX requires it as of 2001.
50973 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50974 New private symbol, used to keep the enum signed in all cases.
50975 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50977 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50979 * lib/regex_internal.c (re_string_skip_chars, register_state):
50981 Remove forward decls; no longer needed now that we use prototypes.
50982 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50983 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50984 (clean_state_log_if_needed): Likewise.
50986 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
50988 * config/srclist.txt: Add glibc bugs 1231-1233.
50990 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
50992 Fix problems reported by Sam Steingold in
50993 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50994 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50995 assumed that reg_errcode_t is a signed type, which is not
50996 necessarily true if _XOPEN_SOURCE is not defined.
50997 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50998 since some compilers warn about it otherwise.
51000 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
51002 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51003 (init_word_char, create_initial_state, duplicate_node_closure):
51004 (fetch_token, peek_token_bracket, build_range_exp):
51005 (build_collating_symbol): Remove forward decls; no longer needed
51006 now that we use prototypes.
51009 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51010 (re_compile_fastmap_iter, regcomp, regerror, regfree):
51011 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51012 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51013 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51014 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51015 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51016 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51017 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51018 (build_range_exp, build_collating_symbol, parse_bracket_exp):
51019 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51020 (build_charclass, build_charclass_op, fetch_number, create_tree):
51021 (create_token_tree, mark_opt_subexp, duplicate_tree):
51022 Use prototypes rather than old-style definitions.
51024 * lib/regex_internal.c:
51025 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51026 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51027 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51028 (re_string_reconstruct, re_string_peek_byte_case):
51029 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51030 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51031 (re_node_set_init_copy, re_node_set_add_intersect):
51032 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51033 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51034 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51035 (re_acquire_state, re_acquire_state_context, register_state):
51036 (create_ci_newstate, create_cd_newstate, free_state):
51038 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51040 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51041 (re_search_internal, prune_impossible_nodes):
51042 (acquire_init_state_context, check_matching, static):
51043 (check_halt_node_context, check_halt_state_context, proceed_next_node):
51044 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51045 (update_regs, sift_states_backward, build_sifted_states):
51046 (clean_state_log_if_needed, merge_state_array):
51047 (update_cur_sifted_state, add_epsilon_src_nodes):
51048 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51049 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51050 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51051 (find_recover_state, check_subexp_matching_top, transit_state_mb):
51052 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51053 (check_arrival, check_arrival_add_next_nodes):
51054 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51055 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51056 (check_node_accept_bytes, check_node_accept, extend_buffers):
51057 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51058 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51062 * lib/regex_internal.h:
51063 (re_string_allocate, re_string_construct, re_string_reconstruct):
51064 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51065 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51066 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51067 (re_string_context_at, re_string_peek_byte_case):
51068 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51069 is defined, since we now use prototypes always.
51071 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
51072 C89 or better. All uses removed.
51074 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
51076 * config/srclist.txt: Add glibc bugs 1220-1227.
51078 2005-08-20 Jim Meyering <jim@meyering.net>
51080 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51081 of unused local, dfa.
51083 2005-08-20 Bruno Haible <bruno@clisp.org>
51085 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51087 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
51089 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51090 (re_node_set_insert_last, re_dfa_add_node):
51091 Rename local variables to avoid GCC shadowing warnings.
51093 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
51095 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51096 [defined lint]: Suppress bogus uninitialized-variable warnings.
51098 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51099 and let the caller return REG_ESPACE if out of space. This
51100 removes an uninitialied-variable warning with GCC 4.0.1, and also
51101 avoids taking the address of a local variable. All callers
51104 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
51106 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51107 $LIBCSRC/posix/regexec.c.
51108 Add glibc bug 1217 for regcomp.c.
51110 2005-08-19 Jim Meyering <jim@meyering.net>
51112 * lib/regexec.c (proceed_next_node): Redo local variables to
51113 avoid GCC shadowing warnings.
51115 2005-08-18 Bruno Haible <bruno@clisp.org>
51117 * lib/strstr.c (strstr): Fix return value in multibyte case.
51118 * lib/strcasestr.c (strcasestr): Likewise.
51120 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
51122 * lib/regex.h: Remove useless space-before-tab. From coreutils.
51124 2005-08-17 Jim Meyering <jim@meyering.net>
51126 Make the %s format (seconds since the epoch) work for a negative
51127 number and when used with a zero-padded field width, e.g. %015s.
51129 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51130 label so that it precedes the code to set `digits'. Otherwise,
51131 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
51132 print `00-22'. Now, it prints `-0022', as it should.
51134 2005-08-17 Bruno Haible <bruno@clisp.org>
51136 * modules/strstr (Files): Add m4/mbrtowc.m4.
51137 (Depends-on): Add mbuiter.
51139 2005-08-17 Bruno Haible <bruno@clisp.org>
51141 * modules/strcasestr: New file.
51142 * MODULES.html.sh (String handling, based on ANSI C 89): Add
51145 2005-08-17 Bruno Haible <bruno@clisp.org>
51147 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51149 2005-08-17 Bruno Haible <bruno@clisp.org>
51151 * modules/mbuiter: New file.
51152 * MODULES.html.sh (Extended multibyte and wide character utilities):
51155 2005-08-17 Bruno Haible <bruno@clisp.org>
51157 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51158 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51160 2005-08-17 Bruno Haible <bruno@clisp.org>
51162 * m4/strcasestr.m4: New file.
51164 2005-08-17 Bruno Haible <bruno@clisp.org>
51166 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51167 * lib/strstr.c: Completely rewritten, with multibyte locale support.
51169 2005-08-17 Bruno Haible <bruno@clisp.org>
51171 * lib/strcasestr.h: New file.
51172 * lib/strcasestr.c: New file.
51174 2005-08-17 Bruno Haible <bruno@clisp.org>
51176 * lib/strcasecmp.c: Use mbuiter.h.
51178 2005-08-17 Bruno Haible <bruno@clisp.org>
51180 * lib/mbuiter.h: New file.
51182 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
51184 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51185 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
51186 and gl_GETOPT are both invoked via different paths (as happens
51187 with GNU tar CVS because it uses both argp and getopt), the former
51190 2005-08-16 Bruno Haible <bruno@clisp.org>
51192 * modules/tls: New file.
51193 * MODULES.html.sh (Multithreading): Add tls.
51195 2005-08-16 Bruno Haible <bruno@clisp.org>
51197 * modules/strnlen1: New file.
51198 * MODULES.html.sh (String handling): Add strnlen1.
51200 2005-08-16 Bruno Haible <bruno@clisp.org>
51202 * modules/strcase (Files): Add m4/mbrtowc.m4.
51203 (Depends-on): Add strnlen1, mbchar.
51205 2005-08-16 Bruno Haible <bruno@clisp.org>
51207 * modules/mbiter: New file.
51208 * MODULES.html.sh (Extended multibyte and wide character utilities):
51211 2005-08-16 Bruno Haible <bruno@clisp.org>
51213 * modules/mbfile: New file.
51214 * MODULES.html.sh (Extended multibyte and wide character utilities):
51217 2005-08-16 Bruno Haible <bruno@clisp.org>
51219 * modules/mbchar: New file.
51220 * MODULES.html.sh (Extended multibyte and wide character utilities):
51223 2005-08-16 Bruno Haible <bruno@clisp.org>
51225 * m4/tls.m4: New file, from GNU gettext.
51227 2005-08-16 Bruno Haible <bruno@clisp.org>
51229 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51231 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51233 2005-08-16 Bruno Haible <bruno@clisp.org>
51235 * m4/mbiter.m4: New file.
51237 2005-08-16 Bruno Haible <bruno@clisp.org>
51239 * m4/mbfile.m4: New file.
51241 2005-08-16 Bruno Haible <bruno@clisp.org>
51243 * m4/mbchar.m4: New file.
51245 2005-08-16 Bruno Haible <bruno@clisp.org>
51247 * lib/tls.h: New file, from GNU gettext.
51248 * lib/tls.c: New file, from GNU gettext.
51250 2005-08-16 Bruno Haible <bruno@clisp.org>
51252 * lib/strnlen1.h: New file.
51253 * lib/strnlen1.c: New file.
51255 2005-08-16 Bruno Haible <bruno@clisp.org>
51257 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51258 (mbi_init): Update.
51259 (mbi_avail, mbi_advance): Let the iteration end before the terminating
51260 NUL byte, not after it.
51262 2005-08-16 Bruno Haible <bruno@clisp.org>
51264 * lib/strcase.h (strcasecmp): Add note in comments.
51265 * lib/strncasecmp.c: Use code from strcasecmp.c.
51266 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51267 (strcasecmp): Work correctly in multibyte locales.
51269 2005-08-16 Bruno Haible <bruno@clisp.org>
51271 * lib/mbiter.h: New file.
51273 2005-08-16 Bruno Haible <bruno@clisp.org>
51275 * lib/mbfile.h: New file.
51277 2005-08-16 Bruno Haible <bruno@clisp.org>
51279 * lib/mbchar.h: New file.
51280 * lib/mbchar.c: New file.
51282 2005-08-16 Bruno Haible <bruno@clisp.org>
51284 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51285 the valid ones. Makes the comparison operations transitive:
51286 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51287 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51289 2005-08-15 Simon Josefsson <jas@extundo.com>
51291 * modules/ssize_t (License): Change to 'unlimited'.
51293 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51295 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
51297 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51298 Add comments for each pending glibc patch.
51300 2005-08-15 Bruno Haible <bruno@clisp.org>
51302 * lib/regex.h (__restrict_arr): Don't define to __restrict if
51303 __cplusplus is defined.
51305 2005-08-14 Jim Meyering <jim@meyering.net>
51307 Sync from coreutils.
51309 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51310 Use the hash-table-based cycle-detection code not just when
51311 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51312 Reported by James Youngman in
51313 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51314 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51315 FTS_TIGHT_CYCLE_CHECK.
51316 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51317 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51319 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51320 * lib/fts.c (fd_safer): Remove decl.
51321 Include fcntl--.h rather than unistd-safer.h
51322 (fts_safe_changedir): Don't call fd_safer; no longer needed
51323 now that we include fcntl--.h.
51325 2005-08-12 Simon Josefsson <jas@extundo.com>
51327 * modules/getndelim2: Use ssize_t module.
51328 * modules/getnline: Likewise.
51329 * modules/safe-read: Likewise.
51330 * modules/xreadlink: Likewise.
51332 * modules/ssize_t: New file.
51334 2005-08-12 Simon Josefsson <jas@extundo.com>
51336 * m4/readline.m4: Look for termcap, curses or ncurses if required.
51338 2005-08-12 Simon Josefsson <jas@extundo.com>
51340 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51343 2005-08-12 Simon Josefsson <jas@extundo.com>
51345 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51346 readline, getdelim and check_version.
51347 (Support for systems lacking ISO C 99: Sizes of integer types):
51350 2005-08-12 Bruno Haible <bruno@clisp.org>
51352 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51354 2005-08-11 Simon Josefsson <jas@extundo.com>
51356 * modules/readline: New file.
51358 * modules/strnlen (Files): Add strnlen.h.
51360 2005-08-11 Simon Josefsson <jas@extundo.com>
51362 * m4/readline.m4: New file.
51364 2005-08-11 Simon Josefsson <jas@extundo.com>
51366 * lib/readline.h, readline.c: New file.
51368 2005-08-11 Simon Josefsson <jas@extundo.com>
51370 * doc/gnulib.texi (Initial import, Finishing touches): Mention
51373 2005-08-11 Bruno Haible <bruno@clisp.org>
51375 * lib/strnlen.h (strnlen): Change parameter name to match comment.
51377 2005-08-10 Stepan Kasal <kasal@ucw.cz>
51379 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51381 2005-08-10 Simon Josefsson <jas@extundo.com>
51383 * tests/test-iconvme.c: New file.
51385 2005-08-10 Simon Josefsson <jas@extundo.com>
51387 * m4/strnlen.m4: New file.
51389 * m4/strndup.m4: Don't check for strnlen declaration, done in
51392 2005-08-10 Simon Josefsson <jas@extundo.com>
51394 * lib/strndup.c: Use strnlen.h.
51396 * lib/strnlen.h: New file.
51398 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
51402 2005-08-02 Simon Josefsson <jas@extundo.com>
51404 * modules/readline: New file.
51406 2005-08-02 Simon Josefsson <jas@extundo.com>
51408 * modules/getdelim: New file.
51410 * modules/getline: Rewrite, don't use getndelim2.
51412 2005-08-02 Simon Josefsson <jas@extundo.com>
51414 * m4/getline.m4: Separate out getdelim stuff into separate module.
51416 * m4/getdelim.m4: New file.
51418 2005-08-02 Simon Josefsson <jas@extundo.com>
51420 * lib/getline.h, getline.c: Rewrite.
51422 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51424 2005-07-31 Bruno Haible <bruno@clisp.org>
51426 * lib/lock.h (gl_lock_initializer): New macro.
51427 (gl_lock_define_initialized): Use it.
51428 (gl_rwlock_initializer): New macro.
51429 (gl_rwlock_define_initialized): Use it.
51430 (gl_recursive_lock_initializer): New macro.
51431 (gl_recursive_lock_define_initialized): Use it.
51433 2005-07-30 Karl Berry <karl@gnu.org>
51435 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51436 Report from Ben Pfaff, regarding getopt.
51438 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
51440 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51442 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51443 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
51444 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51445 (gl_GETOPT): Use the new macros. Most of the implementation
51446 is moved to the new macros. This is for programs like Emacs
51447 that don't want all the functionality of gl_GETOPT.
51449 2005-07-26 Bruno Haible <bruno@clisp.org>
51451 * m4/lock.m4: Update from GNU gettext.
51453 2005-07-26 Bruno Haible <bruno@clisp.org>
51455 * lib/lock.h: Update from GNU gettext.
51456 * lib/lock.c: Update from GNU gettext.
51458 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
51460 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51461 obsolescent AC_TRY_RUN. Include the default includes files, for
51464 2005-07-24 Bruno Haible <bruno@clisp.org>
51466 * modules/visibility: New file.
51467 * MODULES.html.sh (Misc): Add visibility.
51469 2005-07-24 Bruno Haible <bruno@clisp.org>
51471 * m4/visibility.m4: New file.
51473 2005-07-24 Bruno Haible <bruno@clisp.org>
51475 * doc/visibility.texi: New file.
51477 2005-07-22 Bruno Haible <bruno@clisp.org>
51479 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51480 $(ALLOCA_H), redundant through BUILT_SOURCES.
51481 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51482 redundant through BUILT_SOURCES.
51483 * modules/byteswap (Makefile.am): Remove explicit dependency on
51484 $(BYTESWAP_H), redundant through BUILT_SOURCES.
51485 * modules/fnmatch (Makefile.am): Remove explicit dependency on
51486 $(FNMATCH_H), redundant through BUILT_SOURCES.
51487 * modules/getopt (Makefile.am): Remove explicit dependency on
51488 $(GETOPT_H), redundant through BUILT_SOURCES.
51489 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51490 redundant through BUILT_SOURCES.
51491 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51492 redundant through BUILT_SOURCES.
51493 * modules/stdbool (Makefile.am): Remove explicit dependency on
51494 $(STDBOOL_H), redundant through BUILT_SOURCES.
51495 * modules/stdint (Makefile.am): Remove explicit dependency on
51496 $(STDINT_H), redundant through BUILT_SOURCES.
51497 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51498 Remove explicit dependency on $(SYSEXITS_H).
51499 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51501 2005-07-18 Simon Josefsson <jas@extundo.com>
51503 * lib/check-version.c (check_version): Accept identical versions too.
51505 2005-07-18 Bruno Haible <bruno@clisp.org>
51507 * modules/lock: New file.
51508 * MODULES.html.sh (Multithreading): New section.
51510 2005-07-18 Bruno Haible <bruno@clisp.org>
51512 * m4/lock.m4: New file, from GNU gettext.
51514 2005-07-18 Bruno Haible <bruno@clisp.org>
51516 * lib/lock.h: New file, from GNU gettext.
51517 * lib/lock.c: New file, from GNU gettext.
51519 2005-07-18 Bruno Haible <bruno@clisp.org>
51521 * lib/lock.h (gl_once_t): New type.
51522 (gl_once_define, gl_once): New macros.
51523 * lib/lock.c (fresh_once): New variable.
51524 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51527 2005-07-16 Simon Josefsson <jas@extundo.com>
51529 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51530 workaround, suggested by Bruno.
51532 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
51534 * modules/xalloc (Depends-on): Add xalloc-die.
51535 * modules/xvasprintf (Depends-on): Add xalloc-die.
51537 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
51539 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51540 with a minor change.
51542 2005-07-15 Bruno Haible <bruno@clisp.org>
51544 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51545 When using lib/poll.c, define poll as rpl_poll.
51547 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
51549 * modules/argp (Depends-on): Remove unlocked-io.
51551 2005-07-14 Derek Price <derek@ximbiot.com>
51553 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
51554 for glob symlink bug.
51556 2005-07-14 Bruno Haible <bruno@clisp.org>
51558 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51559 Instead, test for *_unlocked function declarations directly.
51561 2005-07-11 Simon Josefsson <jas@extundo.com>
51563 * modules/size_max: New file.
51565 * modules/xsize: Depend on size_max module for size_max.m4.
51567 2005-07-11 Simon Josefsson <jas@extundo.com>
51569 * lib/size_max.h: New file.
51571 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
51573 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51574 copyright symbol and the year.
51575 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51576 (version_etc_va): Use parameterized copyright notice.
51577 Reword to conform to the current GNU coding standards.
51579 2005-07-11 Karl Berry <karl@gnu.org>
51581 * doc/gnulib.texi (Quoting): new node.
51582 (Initial import): more info, from Patrice.
51584 2005-07-11 Bruno Haible <bruno@clisp.org>
51586 * gnulib-tool (func_usage): Document option --avoid.
51587 (Command line options): Handle --avoid.
51588 (func_acceptable): New function.
51589 (func_modules_transitive_closure): Use it.
51591 2005-07-11 Bruno Haible <bruno@clisp.org>
51593 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51594 Reported by Jim Meyering.
51596 2005-07-10 Bruno Haible <bruno@clisp.org>
51598 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51599 Needed when size_t is smaller than 'unsigned int'.
51600 Reported by Paul Eggert.
51602 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
51604 * modules/argp (Depends-on): Add unlocked-io
51606 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
51608 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51611 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
51613 * config/srclist.txt: Comment out regcomp.c, since we have a porting
51616 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
51617 and Paul Eggert <eggert@cs.ucla.edu>
51619 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51620 in wint_t, not wchar_t. Remove now-unnecessary cast.
51622 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51624 * modules/regex (Files): Add lib/regex_internal.c,
51625 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51626 (Depends-on): Add extensions.
51627 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51629 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51631 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51633 * m4/same.m4 (gl_SAME): Likewise.
51634 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51636 * m4/regex.m4: Adjust to new libc regex implementation.
51637 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51638 all the .c and .h parts of (the new) regex.
51639 Quote the m4 stuff better.
51640 Check for RE_ICASE bug of old gnulib.
51641 Check for REG_STARTEND of recent libc.
51642 Rename local variables from jm_* to gl_*.
51643 Quote operand of "test -f".
51644 Say "recent enough" version of libc, not "version 2".
51645 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51646 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
51647 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51648 Remove check for btowc, isascii.
51649 Require AM_LANGINFO_CODESET.
51651 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51653 * lib/regex.c, regex.h: Sync from libc.
51654 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51656 New files, synced from libc, except that regex_internal.h
51657 currently has a small porting fix.
51659 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
51661 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51662 regex_internal.c, regexec.c.
51663 Add regex_internal.h too, but as a comment, since the libc version
51664 is currently broken in gnulib mode.
51666 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
51668 Support programs like Emacs that use gnulib but not gettext.
51669 * MODULES.html.sh (Internationalization functions): Add gettext-h.
51670 * modules/gettext-h: New file.
51671 * modules/gettext (Files): Remove lib/gettext.h.
51672 (Depends-on): Add gettext-h.
51673 (Makefile.am): Remove lib_SOURCES.
51674 * modules/argmatch, modules/c-stack, modules/closeout:
51675 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51676 * modules/execute, modules/file-type, modules/getaddrinfo:
51677 * modules/getopt, modules/human, modules/javacomp:
51678 * modules/javaexec, modules/mkdir-p, modules/obstack:
51679 * modules/openat, modules/pagealign_alloc, modules/pipe:
51680 * modules/quotearg, modules/regex, modules/rpmatch:
51681 * modules/unicodeio, modules/userspec, modules/version-etc:
51682 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51684 Depend on gettext-h, not gettext.
51686 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
51688 * gnulib-tool (func_import): Add support for 'public domain' license.
51689 * modules/alloca, modules/atexit, modules/memmove:
51690 Now public domain, not GPL.
51691 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51692 * modules/realloc, modules/strerror, modules/strtod:
51695 2005-07-05 Bruno Haible <bruno@clisp.org>
51697 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51698 autoconf CVS. Needed for mingw.
51700 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
51702 Remove the dependency of the strftime module on the tzset module.
51703 * modules/strftime (Depends-on): Remove dependency on tzset.
51705 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
51707 Remove the dependency of the strftime module on the tzset module.
51708 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51709 gl_FUNC_TZSET_CLOBBER.
51711 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
51713 Remove the dependency of the strftime module on the tzset module.
51714 * lib/strftime.c (my_strftime)
51715 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51716 Copy the input structure, to work around some of the bug with
51717 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
51718 Solaris releases, you should also use the tzset module, but we won't
51719 require it as a dependency any more since we don't want LGPLed code
51720 to depend on GPLed code.
51722 2005-07-02 Jim Meyering <jim@meyering.net>
51724 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51725 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51726 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51727 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51729 2005-07-02 Jim Meyering <jim@meyering.net>
51731 * lib/backupfile.c (backup_args): Change a `0' to NULL.
51733 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
51735 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51736 declares only 'struct timespec;' (!).
51738 2005-07-01 Jim Meyering <jim@meyering.net>
51740 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51741 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51742 * lib/save-cwd.c, tempname.c:
51743 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51744 and don't include <sys/file.h>).
51746 2005-06-29 Jim Meyering <jim@meyering.net>
51748 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51749 type name. Use the variable name instead.
51750 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51753 2005-06-28 Simon Josefsson <jas@extundo.com>
51755 * modules/check-version (Files): Add check-version.m4.
51757 2005-06-28 Simon Josefsson <jas@extundo.com>
51759 * m4/check-version.m4: New file, suggested by Jim Meyering
51760 <jim@meyering.net>.
51762 2005-06-28 Simon Josefsson <jas@extundo.com>
51764 * lib/check-version.h, lib/check-version.c: New files.
51766 2005-06-28 Simon Josefsson <jas@extundo.com>
51768 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
51769 collision with global variable. Better indentation. Don't
51770 increment buffer pointer beyond buffer end. Based on comments
51771 from Paul Eggert <eggert@cs.ucla.edu>.
51773 * lib/base64.h: Indent.
51775 2005-06-28 Simon Josefsson <jas@extundo.com>
51777 * doc/gnulib.texi (Library version handling): New section.
51779 2005-06-28 Jim Meyering <jim@meyering.net>
51781 * check-module (find_included_lib_files): Hard-code another
51782 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51783 but modules/fts-lgpl (correctly) does not list those files.
51785 * modules/canonicalize (Files): Add lib/pathmax.h.
51787 2005-06-25 Simon Josefsson <jas@extundo.com>
51789 * modules/check-version: New file.
51791 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
51793 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51794 initializer of struct addrinfo, as an indication that we don't
51795 care how many members the structure has.
51797 2005-06-24 Derek Price <derek@ximbiot.com>
51798 and Bruno Haible <bruno@clisp.org>
51800 Remove stat module & update lstat.
51801 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51802 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51803 * m4/stat.m4: Remove this file.
51805 2005-06-24 Derek Price <derek@ximbiot.com>
51806 and Bruno Haible <bruno@clisp.org>
51808 Remove stat module & update lstat.
51809 * lib/stat.c: Remove this file...
51810 (slash_aware_lstat): ...moving this content and its support...
51811 * lib/lstat.c (rpl_lstat): ...into here.
51812 * lib/lstat.h: New file.
51814 2005-06-24 Derek Price <derek@ximbiot.com>
51815 and Bruno Haible <bruno@clisp.org>
51817 Remove stat module & update lstat.
51818 * config/srclist.txt (libc sources): Remove stat.
51820 2005-06-24 Derek Price <derek@ximbiot.com>
51821 and Bruno Haible <bruno@clisp.org>
51823 Remove stat module & update lstat.
51824 * MODULES.html.sh (stat): Remove.
51825 * MODULES.html: Regenerated.
51826 * modules/lstat (Description): Correct function name.
51827 (Files): Add "lstat.h".
51828 (Depends-on): Remove stat, add xalloc, stat-macros.
51829 * modules/stat: Remove this file.
51830 (Include): Add "lstat.h", remove <sys/stat.h>.
51832 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
51834 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
51835 (ranged_convert): Don't save conversion in a temporary struct.
51836 This causes a warning with GCC 4.0.0, and anyway in the typical
51837 case it's not worth the extra 100 bytes or so of code.
51838 (ranged_convert, __mktime_internal): When calling a function via a
51839 pointer P, use P () rather than (*P) (), as we now assume C89 or
51842 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
51844 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51845 "who -r" failed to give output. Problem reported by Tim Waugh.
51847 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51848 (xcalloc): Use it to avoid needless tests.
51849 Problem reported by Jim Meyering.
51851 2005-06-20 Derek Price <derek@ximbiot.com>
51853 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51854 unnecessary for Autoconfs > 2.59c.
51856 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51858 * lib/argp.h (__option_is_short): Check upper limit of
51859 __key. Isprint() requires its argument to have the value
51860 of an unsigned char or EOF.
51862 2005-06-16 Jim Meyering <jim@meyering.net>
51864 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51865 when either N or S is zero.
51867 2005-06-16 Derek Price <derek@ximbiot.com>
51869 * m4/bison.m4: Declare YACC & YFLAGS precious.
51871 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
51873 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51874 multibyte string or pattern, fall back on unibyte matching.
51875 Problem reported by James Youngman.
51877 2005-06-08 Bruno Haible <bruno@clisp.org>
51879 * modules/csharpcomp: New file.
51880 * MODULES.html.sh (C#): Add csharpcomp.
51882 2005-06-08 Bruno Haible <bruno@clisp.org>
51884 * m4/csharpcomp.m4: New file, from GNU gettext.
51886 2005-06-08 Bruno Haible <bruno@clisp.org>
51888 * lib/csharpcomp.h: New file, from GNU gettext.
51889 * lib/csharpcomp.c: New file, from GNU gettext.
51890 * lib/csharpcomp.sh.in: New file, from GNU gettext.
51892 2005-06-08 Bruno Haible <bruno@clisp.org>
51894 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51897 2005-06-07 Derek Price <derek@ximbiot.com>
51900 * lib/glob_.h: Indent nested #ifdef.
51902 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51904 Sync from coreutils.
51905 Use "file name" when talking about file names, instead of "filename"
51906 or "path", as per the GNU coding standards.
51907 * lib/mkdir-p.c: Renamed from makepath.c.
51908 (make_dir_parents): Renamed from make_path. All callers changed.
51909 * lib/mkdir-p.h: Likewise. All includers changed.
51910 * lib/filenamecat.c: Renamed from path-concat.c.
51911 (file_name_concat): Renamed from path_concat. All callers changed.
51912 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51913 * lib/filenamecat.h: Likewise. All includers changed.
51914 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51915 in comments or local variable names.
51916 * lib/basename.c: Likewise.
51917 * lib/canonicalize.c, canonicalize.h: Likewise.
51918 * lib/dirname.c, dirname.h: Likewise.
51919 * lib/euidaccess.c: Likewise.
51920 * lib/exclude.c: Likewise
51921 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51922 * lib/fsusage.c, fsuage.h: Likewise.
51923 * lib/fts.c, fts_.h: Likewise.
51924 * lib/getcwd.c: Likewise.
51925 * lib/getloadavg.c: Likewise.
51926 * lib/mkstemp.c: Likewise.
51927 * lib/mountlist.c, mountlist.h: Likewise.
51928 * lib/openat.c, openat.h: Likewise.
51929 * lib/readlink-stub.c: Likewise.
51930 * lib/readutmp.c, readutmp.h: Likewise.
51931 * lib/rename.c: Likewise.
51932 * lib/rmdir.c: Likewise.
51933 * lib/same.c: Likewise.
51934 * lib/savedir.c: Likewise.
51935 * lib/stripslash.c: Likewise.
51936 * lib/tempname.c: Likewise.
51937 * lib/xreadlink.c: Likewise.
51938 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51940 * lib/exclude.h: Likewise.
51942 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51943 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51944 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51945 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51946 * lib/pathmax.h: Include <limits.h> unconditionally, since other
51947 files have been getting away with it for years (MORE/BSD 4.3
51949 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51950 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51952 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51953 Define to 256, not 255, as per modern POSIX.
51955 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51957 Sync from coreutils.
51958 Use "file name" when talking about file names, instead of "filename"
51959 or "path", as per the GNU coding standards.
51960 * MODULES.html.sh: mkdir-p renamed from makepath.
51961 filenamecat renamed from path-concat.
51962 * modules/filenamecat: Renamed from modules/path-concat.
51963 (Files): filenamecat.h and filenamecat.c renamed from
51964 path-concat.h and path-concat.c.
51965 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51966 (Include): filenamecat.h, not path-concat.h.
51967 * modules/mkdir-p: Renamed from modules/makepath.
51968 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51970 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51971 (Include): mkdir-p.h, not makepath.h.
51973 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
51975 Sync from coreutils.
51976 * m4/mkdir-p.m4: Renamed from makepath.m4.
51977 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
51978 Rename files from makepath.c to mkdir-p.c, and from
51979 makepath.h to mkdir-p.h.
51980 * m4/filenamecat.m4: Renamed from path-concat.m4.
51981 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
51982 Rename files from path-concat.c to filenamecat.c,
51983 and from path-concat.h to filenamecat.h.
51984 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51985 "file name" in local variables or comments.
51986 * m4/rename.m4: Likewise.
51988 2005-06-01 Bruno Haible <bruno@clisp.org>
51990 * modules/csharpexec: New file.
51991 * MODULES.html.sh (C#): New section.
51993 2005-06-01 Bruno Haible <bruno@clisp.org>
51995 * m4/csharp.m4: New file, from GNU gettext.
51996 * m4/csharpexec.m4: New file, from GNU gettext.
51998 2005-06-01 Bruno Haible <bruno@clisp.org>
52000 * lib/csharpexec.h: New file, from GNU gettext.
52001 * lib/csharpexec.c: New file, from GNU gettext.
52002 * lib/csharpexec.sh.in: New file, from GNU gettext.
52004 2005-05-31 Derek Price <derek@ximbiot.com>
52005 Paul Eggert <eggert@cs.ucla.edu>
52008 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52010 2005-05-31 Derek Price <derek@ximbiot.com>
52011 Paul Eggert <eggert@cs.ucla.edu>
52014 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52016 2005-05-29 Derek Price <derek@ximbiot.com>
52018 * config/srclist.txt (glob_.h, glob.c): Add these files.
52020 2005-05-29 Derek Price <derek@ximbiot.com>
52022 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52023 * modules/glob: New file.
52024 * modules/getlogin_r: Add link to POSIX spec in description.
52026 2005-05-29 Derek Price <derek@ximbiot.com>
52027 Paul Eggert <eggert@cs.ucla.edu>
52029 * m4/glob.m4: New file.
52031 2005-05-29 Derek Price <derek@ximbiot.com>
52032 Paul Eggert <eggert@cs.ucla.edu>
52034 * lib/glob_.h, lib/glob.c: New files.
52036 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
52038 * modules/fts (Files): Remove m4/inttypes-pri.m4.
52039 * modules/fts-lgpl (Depends-on): Remove gettext.
52041 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
52043 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52044 and don't require gt_INTTYPES_PRI.
52046 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
52048 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52050 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52051 the configuration hassle isn't worth it.
52052 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52053 (LONGEST_MODIFIER, PRIuMAX): Remove.
52055 2005-05-27 Bruno Haible <bruno@clisp.org>
52057 * lib/getlogin_r.h: Remove second include of <stddef.h>.
52059 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
52061 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52062 _POSIX_PTHREAD_SEMANTICS for Solaris.
52064 2005-05-25 Derek Price <derek@ximbiot.com>
52066 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52068 2005-05-25 Derek Price <derek@ximbiot.com>
52069 Paul Eggert <eggert@cs.ucla.edu>
52071 * modules/getlogin_r, m4/getlogin_r.m4: New files.
52072 * lib/getlogin_r.c, getlogin_r.h: New files.
52074 2005-05-25 Bruno Haible <bruno@clisp.org>
52075 Derek Price <derek@ximbiot.com>
52077 * lib/getlogin_r.h: Simplify API documentation.
52079 2005-05-23 Derek Price <derek@ximbiot.com>
52081 * modules/minmax (Files): Add m4/minmax.m4.
52082 (configure.ac): Add gl_MINMAX.
52084 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
52086 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52087 so that unistd-safer.h (GPL'ed code) need not be included.
52089 2005-05-22 Bruno Haible <bruno@clisp.org>
52091 * m4/minmax.m4: New file.
52092 Based on a patch by Derek Price <derek@ximbiot.com>.
52094 2005-05-22 Bruno Haible <bruno@clisp.org>
52096 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52097 (INT64_MIN): Fix definition.
52098 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52100 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52101 NEED_SIGNED_INT_TYPES.
52103 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52104 HAVE_SYSTEM_INTTYPES.
52106 2005-05-22 Bruno Haible <bruno@clisp.org>
52108 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52109 Also include <sys/param.h> if it defines MIN, MAX.
52110 Based on a patch by Derek Price <derek@ximbiot.com>.
52112 2005-05-21 Jim Meyering <jim@meyering.net>
52114 * modules/fts (Files): Add m4/inttypes-pri.m4.
52115 (Depends-on): Add lstat and remove gettext. Alphabetize.
52117 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
52120 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52121 (setup_dir, free_dir): New functions.
52122 (enter_dir, leave_dir): Define trivial
52123 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
52124 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
52125 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52126 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52127 Move to fts-cycle.c.
52128 (fts_open): Use setup_dir.
52129 (fts_close): Use free_dir.
52130 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52131 This adds a label and some gotos, but the alternatives were messier.
52132 Check for memory allocation failure when entering a dir.
52133 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52134 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52135 (FTS): New member fts_cycle, that is a union that contains the
52136 old active_dir_ht and cycle_state. All uses changed to mention
52137 fts_cycle.ht and fts_cycle.state.
52138 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52139 fts.c, with the following changes:
52140 (setup_dir, free_dir): New functions.
52141 (enter_dir): Now returns bool. Return true if successful, false
52142 if memory exhausted. All callers changed.
52143 Do not bother partly cleaning up on
52144 memory allocation failure; that is free_dir's job.
52145 However, free ad if hash_insert fails, to avoid memory leak.
52146 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52147 fts->fts_options to see which union member to use.
52149 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
52151 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52152 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52154 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
52156 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52158 2005-05-20 Jim Meyering <jim@meyering.net>
52160 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52161 Now a macro, to pacify GCC.
52163 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
52165 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52168 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
52170 * lib/chown.c (rpl_chown): Return -1 on failure.
52172 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
52174 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52175 Don't check for stddef.h.
52176 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52177 don't use its results.
52178 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52179 since we include them unconditionally. Don't require
52180 AM_STDBOOL_H, since stdbool is a prerequisite.
52181 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52182 since we assume C89 or better.
52183 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52184 as we don't use their results.
52185 Don't check for fchdir, memmove, memset, strrchr, as we use
52186 them unconditionally.
52187 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52188 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52190 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
52192 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52193 Include <stddef.h> unconditionally, since we assume C89 now.
52194 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52195 * lib/fts.c: Include fts_.h first, to check interface.
52196 Do not include intprops.h; no longer needed.
52197 Include cycle-check.h and hash.h, since fts_.h no longer does.
52198 Remove unnecessary casts of closedir to void.
52199 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52200 decide whether to decrement nlinks.
52201 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52202 (FTS): Use struct hash_table * instead of Hash_table, so that
52203 we no longer need to include hash.h here.
52205 2005-05-18 Jim Meyering <jim@meyering.net>
52207 * modules/dirfd (License): Change to LGPL. Most of the code
52208 is already in the public domain.
52210 2005-05-18 Jim Meyering <jim@meyering.net>
52212 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52213 Reported by Yoann Vandoorselaere.
52215 2005-05-17 Jim Meyering <jim@meyering.net>
52217 * m4/fts.m4: New file, from coreutils.
52219 2005-05-17 Jim Meyering <jim@meyering.net>
52221 * lib/fts.c, lib/fts_.h: New files, from coreutils.
52223 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
52225 Sync from coreutils.
52226 * m4/unlinkdir.m4: New file.
52228 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
52230 Sync from coreutils.
52231 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52232 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52233 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52234 White space changes only.
52235 * lib/makepath.c (make_path): Port to hosts where leading "//" is
52237 * lib/yesno.c: Include getline.h, not ctype.h.
52238 (yesno): Don't remove leading white space; POSIX doesn't allow it.
52239 Use getline to remove arbitrary restriction on response length.
52241 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
52243 * config/srclist-update: Spell out "Street" in FSF postal
52244 mail address; this is the style the FSF seems to prefer.
52246 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52247 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52248 this updates FSF postal mail address.
52250 Sync from coreutils.
52251 * modules/unlinkdir: New file.
52252 * modules/yesno (Depends-on): Add getline.
52253 * MODULES.html.sh (File system functions): Add unlinkdir.
52255 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
52257 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52259 Change the initial comment to refer to GPL, not LGPL.
52260 gnulib-tool will change it to LGPL as needed.
52262 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52263 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52264 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52265 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52266 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52267 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52268 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52269 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52270 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52271 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52272 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52273 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52274 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52275 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52276 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52277 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52278 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52279 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52280 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52281 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52282 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52283 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52284 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52285 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52286 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52287 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52288 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52289 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52290 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52291 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52292 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52293 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52294 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52295 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52296 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52297 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52298 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52299 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52300 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52301 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52302 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52303 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52304 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52305 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52306 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52307 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52308 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52309 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52310 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52311 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52312 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52313 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52314 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52315 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52316 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52317 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52318 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52319 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52320 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52321 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52322 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52323 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52324 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52325 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52326 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52327 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52328 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52329 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52330 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52331 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52332 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52333 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52334 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52335 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52336 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52337 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52338 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52339 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52340 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52341 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52342 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52343 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52344 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52345 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52346 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52347 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52348 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52349 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52350 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52351 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52352 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52353 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52354 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52355 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52356 lib/yesno.c, lib/yesno.h:
52357 Update FSF postal mail address.
52359 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
52361 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52362 tests/test-memmem.c, tests/test-stpncpy.c:
52363 Update FSF postal mail address.
52365 2005-05-13 Bruno Haible <bruno@clisp.org>
52367 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52368 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52369 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52370 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52371 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52372 Add support for 64-bit integers in the MSVC compiler.
52374 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52376 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52378 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
52380 * gnulib-tool (func_import): Sort and uniquify recommended includes.
52382 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
52384 * doc/getdate.texi (General date syntax): Don't say that date
52385 date --iso-8601=ns generates acceptable dates; it doesn't yet.
52386 Problem reported by Nic Ferrier.
52388 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52390 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52391 specified in ai_socktype. Fix invalid ai_protocol
52392 check. ai_protocol is usually set to 0 or depending on
52393 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
52394 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
52395 ai_socktype / ai_protocol in the returned addrinfo structure.
52397 2005-05-10 Simon Josefsson <jas@extundo.com>
52399 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52400 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52402 2005-05-10 Karl Berry <karl@gnu.org>
52404 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52405 (from http://www.gnu.org/licenses).
52406 * doc/COPYING.LIB: also rename to COPYING.LESSER.
52407 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52410 2005-05-10 Karl Berry <karl@gnu.org>
52412 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52413 (COPYING.DOC): remove.
52415 * config/srclist-update: new FSF address.
52417 2005-05-10 Derek Price <derek@ximbiot.com>
52419 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52422 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52423 Bruno Haible <bruno@clisp.org>
52425 * modules/inet_ntop: New file.
52426 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52429 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52430 Bruno Haible <bruno@clisp.org>
52432 * m4/inet_ntop.m4: New file.
52434 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52435 Bruno Haible <bruno@clisp.org>
52437 * lib/inet_ntop.h: New file.
52438 * lib/inet_ntop.c: New file, from glibc with modifications.
52440 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
52442 * modules/time_r (License): Change to LGPL.
52443 * modules/extensions (License): Change to LGPL. Actually,
52444 the license is more permissive than that, but currently gnulib-tool
52445 doesn't know how to handle more-permissive licenses.
52447 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52448 Problem reported by Dave Love.
52450 2005-05-08 Jim Meyering <jim@meyering.net>
52452 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52455 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
52457 * modules/argmatch (Depends-on): Add stdbool.
52458 * modules/backupfile (Depends-on): Likewise.
52459 * modules/chdir-long (Depends-on): Likewise.
52460 * modules/closeout (Depends-on): Likewise.
52461 * modules/cycle-check (Depends-on): Likewise.
52462 * modules/dirname (Depends-on): Likewise.
52463 * modules/fnmatch (Depends-on): Likewise.
52464 * modules/fsusage (Depends-on): Likewise.
52465 * modules/fwriteerror (Depends-on): Likewise.
52466 * modules/getcwd (Depends-on): Likewise.
52467 * modules/getloadavg (Depends-on): Likewise.
52468 * modules/hard-locale (Depends-on): Likewise.
52469 * modules/makepath (Depends-on): Likewise.
52470 * modules/mountlist (Depends-on): Likewise.
52471 * modules/nanosleep (Depends-on): Likewise.
52472 * modules/posixtm (Depends-on): Likewise.
52473 * modules/quotearg (Depends-on): Likewise.
52474 * modules/readtokens (Depends-on): Likewise.
52475 * modules/readtokens0 (Depends-on): Likewise.
52476 * modules/readutmp (Depends-on): Likewise.
52477 * modules/save-cwd (Depends-on): Likewise.
52478 * modules/strftime (Depends-on): Likewise.
52479 * modules/userspec (Depends-on): Likewise.
52480 * modules/utimecmp (Depends-on): Likewise.
52481 * modules/xgetcwd (Depends-on): Likewise.
52482 * modules/xnanosleep (Depends-on): Likewise.
52483 * modules/xstrtod (Depends-on): Likewise.
52484 * modules/yesno (Depends-on): Likewise.
52486 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
52488 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52491 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52493 Merge from coreutils. Among other things,
52494 add bulletproofing for cases where stdin, stdout, or stderr are closed.
52495 * lib/fd-safer.c: New file.
52496 * lib/fcntl-safer.h, open-safer.c: Remove.
52497 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52498 * lib/dup-safer.c: Include unistd-safer.h first.
52499 Don't include errno.h.
52500 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52501 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52502 * lib/file-type.c: Rely on file-type.h change.
52503 * lib/getloadavg.c: Include unistd-safer.h.
52504 (getloadavg): Use safer open.
52505 * lib/getusershell.c: Include "stdio-safer.h".
52506 (getusershell): Use safer fopen.
52507 * lib/long-options.c (long_options): Use NULL rather than 0.
52508 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52510 * lib/modechange.c: Likewise.
52511 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52512 (MODE_DONE): New constant.
52513 (struct mode_change): Remove 'next' member.
52514 (make_node_op_equals): New function; like the old one of the
52515 same name, except it allocates an array.
52516 (mode_compile, mode_create_from_ref): Use it.
52517 (mode_compile): Allocate result as an array, not a linked list.
52518 Parse octal string ourself, so that we catch mistakes like "+0".
52519 (mode_adjust): Arg is an array, not a linked list.
52520 * lib/modechange.c: Include stat-macros.h, xalloc.h.
52521 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52522 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52523 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52524 Remove. This is now stat-macros.h's job.
52525 (talloc): Remove. All callers replaced by xalloc, so that
52526 our invokers don't have to worry about reporting memory failures.
52527 (make_node_op_equals): Remove.
52528 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52530 (struct mode_change): Moved here from modechange.h.
52531 (mode_append_entry): Remove.
52532 (mode_compile): Remove MASKED_OPS arg, since it encouraged
52533 apps to have incorrect behavior. Use simpler algorithm for head
52534 and tail. Don't futz with umask; that's now the job of mode_adjust.
52535 Detect more invalid usages rather than having somewhat-random behavior.
52536 Don't insert an "a=" action, as that leads to incorrect behavior.
52537 (mode_compile, mode_create_from_ref): Return NULL on error instead
52538 of an enum, since now there's only one way to have an error. All
52540 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52541 at the correct time. Simplify calculation of "+u" and its ilk.
52542 Don't mishandle "+X".
52543 (mode_free): Remove "register" and localize decls.
52544 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52545 (struct mode_change): Move to modechange.c; callers don't
52546 need to see this stuff.
52547 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52548 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52549 (mode_change, mode_adjust): Reflect the new signatures noted above.
52550 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52551 that might redefine system include files.
52552 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52553 (my_usleep): Use NULL rather than (void *) 0.
52554 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52555 Use siginterrupt to specify that system calls should be interrupted.
52556 (rpl_nanosleep): Move initialization of suspended closer to call of
52558 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
52559 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
52560 (desirable_utmp_entry): New function.
52561 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52562 using x2nrealloc, to simplify logic.
52563 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52564 size calculation. Do not assume utmp file is a regular file.
52565 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52566 (READ_UTMP_CHECK_PIDS): New constant.
52567 * lib/save-cwd.c: Include unistd-safer.h.
52568 (save_cwd): Use fd_safer.
52569 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52570 [!_LIBC] Include "stat-macros.h" instead.
52571 * lib/unistd-safer.h (fd_safer): New decl.
52573 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52575 * modules/getloadavg (Depends-on): Add unistd-safer.
52576 * modules/getusershell (Depends-on): Add stdio-safer.
52577 * modules/lstat (Depends-on): Remove xalloc.
52578 * modules/mkstemp (Depends-on): Add stat-macros.
52579 * modules/modechange (Depends-on): Remove xstrtol.
52580 Add stat-macros, xalloc.
52581 * modules/save-cwd (Depends-on): Add unistd-safer.
52582 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52583 * modules/unistd-safer (Files): Add lib/fd-safer.c
52584 (Makefile.am): Remove lib_SOURCES.
52586 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52587 Remove fcntl-safer; unistd-safer supersedes it.
52589 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52591 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52593 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52594 (gl_PREREQ_CHOWN): Remove.
52595 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52596 it. Don't require AC_HEADER_STAT.
52597 (gl_PREREQ_LSTAT): Remove.
52598 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52599 Don't require AC_HEADER_STAT.
52600 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52601 (gl_PREREQ_RMDIR): Remove.
52602 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52603 mention stat-macros.h or AC_HEADER_STAT, since we'll make
52604 the stat-macros module a prerequisite.
52605 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52606 * m4/filemode.m4 (gl_FILEMODE): Likewise.
52607 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52608 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52609 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52611 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52612 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
52614 * m4/fcntl-safer.m4: Remove.
52615 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52616 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52617 Invoke gl_PREREQ_FD_SAFER.
52618 (gl_PREREQ_FD_SAFER): New macro.
52619 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52620 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52621 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52622 Remove duplicate call to AC_LIBOBJ(readutmp).
52623 (gl_PREREQ_READUTMP): Remove. All uses inlined.
52625 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52626 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
52628 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
52630 * MODULES.html.sh (Misc): Add byteswap.
52632 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52634 * modules/getcwd (Depends-on): Add extensions.
52635 * modules/openat (Depends-on): Likewise.
52637 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52639 * modules/byteswap: New file.
52641 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52643 * m4/byteswap.m4: New file.
52645 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
52647 * lib/byteswap_.h: New file.
52649 2005-04-25 Karl Berry <karl@gnu.org>
52651 * m4/gettext.m4: Update from GNU gettext 0.14.4.
52653 2005-04-25 Albert Chin <china@thewrittenword.com>
52655 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52658 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
52660 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52661 (func_ln_if_changed) Remove forcibly for no error message
52662 in case file does not exist.
52664 2005-04-19 Simon Josefsson <jas@extundo.com>
52666 * gnulib-tool (Options): Make --symlink mean --symbolic.
52668 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
52670 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
52672 2005-04-16 Simon Josefsson <jas@extundo.com>
52674 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52676 2005-04-15 Simon Josefsson <jas@extundo.com>
52678 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52680 2005-04-15 Simon Josefsson <jas@extundo.com>
52682 * gnulib-tool: Rename --symlink to --symbolic.
52684 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
52686 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52687 symbolic links to files instead of copying/moving. Add --aux-dir,
52688 specifying directory relative --dir where auxiliary build tools
52691 2005-04-14 Bruno Haible <bruno@clisp.org>
52693 * modules/allocsa (License): Change to LGPL.
52694 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52696 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
52698 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52699 that "UTC +1 second" continues to work. Problem reported
52700 by Dmitry V. Levin.
52701 (relunit_snumber): New rule.
52704 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
52706 * lib/getdate.y (universal_time_zone_table): New constant.
52707 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52708 universal_time_zone_table.
52709 (lookup_zone): Prefer universal_time_zone_table to
52710 local_time_zone_table, so that "GMT" time stamps are allowed in
52711 London during the summer. Problem reported by Ian Abbott.
52713 2005-04-12 Jim Meyering <jim@meyering.net>
52715 * lib/human.c (humblock): Set *options even when returning due to
52716 xstrtoumax conversion failure. Thanks to a used-uninitialized
52717 warning from gcc-4.
52719 2005-04-09 Jim Meyering <jim@meyering.net>
52721 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52722 -Wuninitialized: initialize tm0.tm_year.
52724 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
52726 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52727 count, since there's no maximum. All uses changed.
52728 Add member dsts_seen.
52729 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52731 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52732 Use pc_rels_seen to decide whther a date is absolute.
52734 * lib/getdate.y (number): Don't overwrite year.
52735 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52738 2005-04-02 Simon Josefsson <jas@extundo.com>
52740 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52741 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52743 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
52745 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52746 where no absolute path name can be longer than PATH_MAX.
52748 2005-03-27 Jim Meyering <jim@meyering.net>
52750 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52752 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
52754 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52755 "one's complement" -> "ones' complement" in comment, as per Knuth.
52756 "value of type" -> "type or expression" in comment.
52757 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52759 2005-03-26 Jim Meyering <jim@meyering.net>
52762 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52763 Correct typos: s/or/of/.
52765 2005-03-26 Jim Meyering <jim@meyering.net>
52767 * modules/check-include-files: Move to ../ and rename to...
52768 * check-module: ...this.
52770 2005-03-25 Jim Meyering <jim@meyering.net>
52772 * modules/xvasprintf (Files): Add xalloc.h.
52774 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
52776 * modules/gettext (Files): config/config.rpath ->
52777 build-aux/config.rpath
52778 * modules/iconv (Files): Likewise.
52779 Problem reported by Oskar Liljeblad.
52781 2005-03-23 Jim Meyering <jim@meyering.net>
52783 * modules/check-include-files: New script to check for
52784 missing dependencies, multiple includes, etc.
52786 * modules/c-strtold (Depends-on): Add xalloc.
52787 * modules/c-strtod (Depends-on): Add xalloc.
52788 * modules/hash (Depends-on): Add xalloc.
52789 (Files): Remove lib/xalloc.h.
52791 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52792 * modules/userspec (Files): Add lib/inttostr.h.
52794 2005-03-23 Jim Meyering <jim@meyering.net>
52796 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52798 2005-03-22 Jim Meyering <jim@meyering.net>
52800 * modules/stat-macros: New module.
52801 * modules/canonicalize, modules/euidaccess, modules/file-type,
52802 * modules/filemode, modules/lchown, modules/makepath,
52803 * modules/rmdir, modules/stat: Depend on new stat-macros module
52804 rather than listing lib/stat-macros.h manually.
52805 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52807 2005-03-22 Jim Meyering <jim@meyering.net>
52809 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52811 2005-03-22 Bruno Haible <bruno@clisp.org>
52813 * config/srclist.txt: Replace target directory 'config' with
52815 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52816 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52819 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
52821 * modules/chdir-long (Depends-on): Add mempcpy.
52823 * modules/acl, modules/backupfile, modules/c-strtod,
52824 modules/c-strtold, modules/canon-host, modules/canonicalize,
52825 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52826 modules/exclude, modules/exitfail, modules/file-type,
52827 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52828 modules/getdate, modules/getline, modules/getpagesize,
52829 modules/getpass, modules/getugroups, modules/group-member,
52830 modules/hard-locale, modules/hash, modules/human, modules/idcache,
52831 modules/inttostr, modules/long-options, modules/makepath,
52832 modules/md5, modules/memcasecmp, modules/memcoll,
52833 modules/modechange, modules/mountlist, modules/path-concat,
52834 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52835 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52836 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52837 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52838 modules/strftime, modules/strndup, modules/strverscmp,
52839 modules/timespec, modules/unlocked-io, modules/userspec,
52840 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52842 Remove lib_SOURCES line from Makefile.am section, as this is now
52843 done automatically by the corresponding Autoconf macro.
52845 2005-03-21 Jim Meyering <jim@meyering.net>
52847 Changes imported from coreutils.
52849 * lib/cycle-check.c: Don't include xalloc.h.
52851 * lib/path-concat.c: Don't include assert.h.
52852 (path_concat): Remove assertion that would have triggered
52853 for ABASE starting with more than one slash.
52854 Reported by Andreas Schwab.
52856 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52857 properly when ABASE is an absolute file name.
52858 Correct the description of this function.
52859 Include <assert.h>.
52860 Add an assertion and a test driver.
52861 This fixes a bug introduced on 2004-07-02.
52862 Andreas Schwab reported the resulting failure of cp --parents:
52863 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52865 2005-03-21 Jim Meyering <jim@meyering.net>
52867 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52868 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52870 2005-03-21 Jim Meyering <jim@meyering.net>
52871 and Paul Eggert <eggert@cs.ucla.edu>
52873 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52874 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52875 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52876 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52877 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52878 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52879 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52880 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52881 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52882 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52883 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52884 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52885 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52886 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52887 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52888 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52889 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52892 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
52894 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52895 (which shouldn't happen), generate nothing instead of returning 0
52896 immediately, so that nstrftime (NULL, ...) doesn't return 0.
52898 2005-03-16 Bruno Haible <bruno@clisp.org>
52900 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52901 HAVE_LONGLONG_64BIT.
52903 2005-03-16 Bruno Haible <bruno@clisp.org>
52905 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52906 HAVE_LONGLONG_64BIT.
52908 2005-03-16 Bruno Haible <bruno@clisp.org>
52910 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52911 HAVE_LONGLONG_64BIT.
52913 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
52915 * lib/strftime.c (my_strftime): Prepend space to format so that we can
52916 reliably distinguish strftime failure from empty output on POSIX
52919 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
52921 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52922 (iconv_string): Don't guess a size-zero buffer, as that might cause
52923 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
52924 result would be 'too large', where 'too large' is (heuristically)
52925 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52926 overflow concerns. This will prevent some unwanted malloc failures
52927 when the inputs are very large.
52929 2005-03-15 Karl Berry <karl@gnu.org>
52931 * config/srclist.txt (config.rpath): from gettext.
52932 * config/config.rpath: update.
52934 2005-03-15 Bruno Haible <bruno@clisp.org>
52936 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52939 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52942 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52945 2005-03-14 Simon Josefsson <jas@extundo.com>
52947 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52950 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
52952 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52953 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52955 * lib/strtol.c: Likewise.
52957 2005-03-14 Jim Meyering <jim@meyering.net>
52959 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52960 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52961 to be nonzero so that we (and caller) can detect the difference
52962 between a valid zero-length expansion and an error return, even
52963 when the underlying strftime fails before writing anything into
52966 2005-03-14 Bruno Haible <bruno@clisp.org>
52968 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52969 Update from GNU gettext 0.14.3.
52971 2005-03-10 Jim Meyering <jim@meyering.net>
52973 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52975 2005-03-10 Jim Meyering <jim@meyering.net>
52977 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52978 so that this module works on systems without fchdir.
52980 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
52982 Factor int-properties macros into a single file, except for
52983 glibc-related files.
52984 * lib/intprops.h: New file.
52985 * lib/getloadavg.c: Include it instead of limits.h.
52986 (INT_STRLEN_BOUND): Remove.
52987 * lib/human.c: Include intprops.h.
52988 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52989 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52991 * lib/inttostr.h: Include intprops.h instead of limits.h.
52992 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52993 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52994 for consistency with intprops.h.
52995 (time_t_is_integer, twos_complement_arithmetic): Use them.
52996 * lib/sig2str.h: Include <signal.h>, intprops.h.
52997 (INT_STRLEN_BOUND): Remove.
52998 * lib/strftime.c (TYPE_SIGNED): Remove.
52999 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53000 * lib/strtol.c: Adjust comments to match intprops.h.
53001 * lib/userspec.c: Include intprops.h.
53002 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53003 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53004 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53005 instead of rolling our own expressions.
53006 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53008 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
53010 (my_strftime): Do not mishandle years close to INT_MAX, by doing
53011 the right thing even if adding 1900 would overflow. Similarly
53012 for tm_mon + 1 and tm_yday + 1.
53013 Make %Y always equivalent to %C%y, and similarly for %G and %g.
53014 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53015 (DO_SIGNED_NUMBER): New macro.
53016 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53018 2005-03-07 Bruno Haible <bruno@clisp.org>
53020 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53022 2005-03-07 Bruno Haible <bruno@clisp.org>
53024 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53026 2005-03-04 Derek R. Price <derek@ximbiot.com>
53028 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53029 (func_import): Only replace files via --import when they have actually
53032 2005-03-03 Derek R. Price <derek@ximbiot.com>
53034 * m4/mmap-anon.m4: New file.
53035 * m4/pagealign_alloc.m4: New file.
53037 2005-03-03 Derek R. Price <derek@ximbiot.com>
53038 Bruno Haible <bruno@clisp.org>
53040 * modules/pagealign_alloc: New file.
53041 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53043 2005-03-03 Derek R. Price <derek@ximbiot.com>
53044 Bruno Haible <bruno@clisp.org>
53046 * lib/pagealign_alloc.h: New file.
53047 * lib/pagealign_alloc.c: New file.
53049 2005-03-03 Bruno Haible <bruno@clisp.org>
53051 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53052 Use an all-permissive copyright notice, recommended by RMS.
53054 2005-03-02 Bruno Haible <bruno@clisp.org>
53056 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53057 of AIX, the replacement has to be done only after <string.h> is
53058 included, therefore not in config.h. stpncpy.h does the replacement,
53059 and stpncpy.c uses it.
53061 2005-03-02 Bruno Haible <bruno@clisp.org>
53063 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53066 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
53068 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53069 The workaround isn't strictly needed for POSIX conformance, and
53070 it's too much of a pain to configure and maintain. We'll ask
53071 people to fix their kernels instead.
53072 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53073 (NANOSLEEP_BUG_WORKAROUND): Remove.
53074 (xnanosleep): Remove the workaround.
53076 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
53078 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53079 Reported by Derek Price.
53080 (Include): Add "timespec.h".
53082 * modules/xnanosleep (Depends-on): Remove gethrxtime.
53084 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
53086 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53087 to detect nanosleep bug.
53089 2005-03-01 Bruno Haible <bruno@clisp.org>
53091 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53093 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
53095 * modules/gethrxtime: New file.
53096 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53097 (Depends-on): Add gethrxtime.
53098 (configure.ac): Add gl_XNANOSLEEP.
53099 (Makefile.am): Remove lib_SOURCES line.
53101 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
53103 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53104 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53106 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
53108 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53109 * lib/timespec.h (gettime): Return void, since it always
53110 succeeds now. All uses changed.
53111 * lib/gettime.c (gettime) Likewise.
53112 [HAVE_NANOTIME]: Prefer nanotime.
53113 Assume gettimeofday succeeds, as POSIX requires.
53114 Assime time () succeeds, since other code already does.
53115 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53116 (timespec_subtract): Remove.
53117 (NANOSLEEP_BUG_WORKAROUND): New constant.
53118 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53119 things considerably. Use it only on GNU/Linux hosts, since the
53120 workaround shouldn't be needed elsewhere.
53122 2005-02-24 Bruno Haible <bruno@clisp.org>
53124 * modules/gettext (Files): Add m4/glibc2.m4.
53126 2005-02-24 Bruno Haible <bruno@clisp.org>
53128 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53129 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53131 Update from GNU gettext 0.14.2.
53132 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53134 2005-02-24 Bruno Haible <bruno@clisp.org>
53136 * lib/localcharset.c: Update from GNU gettext 0.14.2.
53137 * lib/config.charset: Update from GNU gettext 0.14.2.
53139 2005-02-24 Bruno Haible <bruno@clisp.org>
53141 * lib/gettext.h: Update from GNU gettext 0.14.2.
53143 2005-02-23 Simon Josefsson <jas@extundo.com>
53145 * m4/iconvme.m4: New file.
53147 2005-02-23 Jim Meyering <jim@meyering.net>
53149 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53151 Thanks to Bruno Haible for catching it.
53153 2005-02-22 Simon Josefsson <jas@extundo.com>
53155 * modules/iconvme: New file.
53157 * MODULES.html.sh: Add iconvme.
53159 2005-02-22 Simon Josefsson <jas@extundo.com>
53161 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53163 2005-02-22 Simon Josefsson <jas@extundo.com>
53165 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53167 2005-02-22 Jim Meyering <jim@meyering.net>
53169 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53172 2005-02-20 Neil Conway <neilc@samurai.com>
53174 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53175 returned by OSX/Darwin if the specified buffer is not large
53176 enough for the hostname.
53178 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53180 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53181 pass it to _help, otherwise the latter coredumps trying to
53182 dereference state.root_argp.
53184 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
53186 * modules/chdir-long (Depends-on): Add memrchr.
53187 * modules/memrchr (Files): Add lib/memrchr.h.
53188 (Include): "memrchr.h".
53190 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
53192 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53194 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
53196 * lib/memrchr.h: New file.
53197 * lib/chdir-long.c: Include it.
53198 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53199 Don't bother including stddef.h.
53201 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
53203 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53205 Include <sys/types.h>, for dev_t.
53206 (ME_DUMMY, ME_REMOTE): Move from here....
53207 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53208 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
53210 Include mountlist.h first, to test the interface.
53212 2005-01-29 Bruno Haible <bruno@clisp.org>
53214 * lib/progname.c (program_name): Initialize.
53215 Needed when linking statically on MacOS X.
53217 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
53219 Sync from coreutils.
53220 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53221 (Depends-on): Add c-strtod.
53222 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53224 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
53226 Sync from coreutils.
53227 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53229 Remove files that are specific to coreutils.
53230 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53232 2005-01-28 Bruno Haible <bruno@clisp.org>
53234 * modules/javacomp: New file.
53235 * MODULES.html.sh (Java): Add javacomp.
53237 2005-01-28 Bruno Haible <bruno@clisp.org>
53239 * m4/javacomp.m4: New file, from GNU gettext.
53241 2005-01-28 Bruno Haible <bruno@clisp.org>
53243 * lib/javacomp.sh.in: New file, from GNU gettext.
53244 * lib/javacomp.h: New file, from GNU gettext.
53245 * lib/javacomp.c: New file, from GNU gettext.
53247 2005-01-26 Simon Josefsson <jas@extundo.com>
53249 * lib/gai_strerror.c: Use GPL in header.
53251 2005-01-26 Bruno Haible <bruno@clisp.org>
53253 * modules/javaexec: New file.
53254 * MODULES.html.sh (Java): Add javaexec.
53256 2005-01-26 Bruno Haible <bruno@clisp.org>
53258 * m4/javaexec.m4: New file, from GNU gettext.
53260 2005-01-26 Bruno Haible <bruno@clisp.org>
53262 * lib/javaexec.sh.in: New file, from GNU gettext.
53263 * lib/javaexec.h: New file, from GNU gettext.
53264 * lib/javaexec.c: New file, from GNU gettext.
53266 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53268 * modules/lchown (Depends-on): Remove lchown.h
53270 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53272 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53273 must be defined if the header file was not found, in order
53274 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53276 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53278 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53279 initializers for struct pentry_state.
53280 (__argp_error): Check return value of __asprintf
53281 (__argp_failure): Translate error message
53283 * lib/argp-parse.c: Removed braces around the expansion of N_()
53285 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
53287 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53288 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53289 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53290 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53291 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53292 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53293 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53294 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53295 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53296 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53297 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53298 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53299 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53300 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53301 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53302 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53303 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53304 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53305 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53306 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53307 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53308 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53309 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53310 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53311 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53312 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53313 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53314 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53315 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53316 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53317 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53318 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53319 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53320 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53321 xstrtol.m4, xstrtoumax.m4, yesno.m4:
53322 Use an all-permissive copyright notice, recommended by RMS.
53324 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
53326 * modules/chdir-long (Depends-on): Remove mempcpy.
53328 2005-01-21 Jim Meyering <jim@meyering.net>
53330 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53331 same value as for Solaris 9.
53333 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53334 component length. This included changing the parameter to be
53335 of type `char *' rather than `char const *'.
53336 * lib/chdir-long.h (chdir_long): Update prototype.
53338 * lib/openat.c (fdopendir, fstatat): New functions.
53339 * lib/openat.h: Include headers required for use of DIR and struct
53341 [AT_SYMLINK_NOFOLLOW]: Define.
53342 (fdopendir, fstatat): Add prototypes.
53344 2005-01-21 Bruno Haible <bruno@clisp.org>
53346 * modules/classpath: New file.
53347 * MODULES.html.sh (Java): Add classpath.
53349 2005-01-21 Bruno Haible <bruno@clisp.org>
53351 * lib/classpath.h: New file, from GNU gettext.
53352 * lib/classpath.c: New file, from GNU gettext.
53354 2005-01-20 Simon Josefsson <jas@extundo.com>
53356 * modules/version-etc-fsf: New file.
53358 2005-01-20 Simon Josefsson <jas@extundo.com>
53360 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53361 * lib/version-etc.c: Remove version_etc_copyright.
53362 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53363 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53365 2005-01-20 Simon Josefsson <jas@extundo.com>
53367 * lib/base64.h (isbase64): Add.
53369 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53370 using a unsigned prototype, don't inline.
53371 (base64_decode): Use it.
53373 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
53375 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53378 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
53380 * lib/save-cwd.c (save_cwd): Remove code to support the case
53381 where fchdir is missing or flaky.
53383 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
53385 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53387 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
53389 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53390 AC_LIBSOURCES now does this.
53391 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53392 with new ullong_max module.
53394 2005-01-19 Bruno Haible <bruno@clisp.org>
53396 * modules/sh-quote: New file.
53397 * MODULES.html.sh (Executing programs): Add sh-quote.
53399 2005-01-19 Bruno Haible <bruno@clisp.org>
53401 * lib/sh-quote.h: New file, from GNU gettext.
53402 * lib/sh-quote.c: New file, from GNU gettext.
53404 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
53406 Merge from coreutils.
53407 * m4/ullong_max.m4: New file.
53408 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53409 (gl_MACROS): Assume localeconv exists.
53411 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
53413 Merge changes from coreutils, as described below in several
53414 changelogs dated today.
53416 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53417 (O_DIRECTORY): Remove; not needed here, since "." must be
53418 a directory. All uses removed.
53419 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
53420 universal on Suns, and we also need to test for IRIX.
53421 Revamp code to use 'if' rather than '#if'.
53422 Avoid unnecessary comparison of cwd->desc to 0.
53424 * lib/utimens.c (futimens): Robustify the previous patch, by checking
53425 for known valid error numbers rather than observed invalid ones.
53427 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
53429 * modules/ullong_max: New file.
53431 * modules/chdir-long, modules/openat: New files.
53432 * modules/save-cwd (Depends-on): Depend on chdir-long.
53433 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53435 2005-01-18 Jim Meyering <jim@meyering.net>
53437 Merge from coreutils.
53438 * m4/chdir-long.m4, m4/openat.m4: New files.
53439 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53440 save-cwd.h. Add AC_LIBOBJ for save-cwd.
53441 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53442 is sane and DOES follow symlinks. Besides, testing 20 different
53443 systems found no broken chown implementations.
53444 Prompted by a change in rsync's copy of this macro.
53445 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53447 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53449 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53450 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53451 NULL-means-set-to-current-time semantics.
53452 Remove temporary file immediately, rather than waiting
53453 for configure's at-exit trap code to do it.
53455 2005-01-18 Jim Meyering <jim@meyering.net>
53457 * lib/version-etc.c (version_etc_copyright): Update copyright date.
53459 * lib/utimens.c (futimens): Account for the fact that futimes
53460 can also fail with errno == ENOSYS or errno == ENOENT.
53461 Patch from Dmitry V. Levin.
53463 Change the name of the robust chdir function from chdir to chdir_long.
53464 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53465 (restore_cwd): Use chdir_long, not chdir.
53466 * lib/chdir-long.c: Renamed from chdir.c.
53467 * lib/chdir-long.h: Renamed from chdir.h.
53468 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53471 2005-01-18 Bruno Haible <bruno@clisp.org>
53473 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53474 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53475 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53476 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53477 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53478 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53479 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53480 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53481 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53482 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53483 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53484 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53485 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53486 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53487 Use an all-permissive copyright notice, recommended by RMS.
53489 2005-01-18 Bob Proulx <bob@proulx.com>
53491 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53492 simplify offsetof() macro construct to avoid compile failure with
53493 native HP-UX 11.0 ANSI C compiler.
53495 2005-01-17 Bruno Haible <bruno@clisp.org>
53497 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53498 redundant because stpncpy.m4 takes care of it.
53500 2005-01-17 Bruno Haible <bruno@clisp.org>
53502 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53504 2005-01-17 Bruno Haible <bruno@clisp.org>
53506 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53509 2005-01-17 Bruno Haible <bruno@clisp.org>
53511 * lib/fwriteerror.h (fwriteerror): Change specification to include
53513 * lib/fwriteerror.c: Include <stdbool.h>.
53514 (fwriteerror): At the end, close the file stream. Record whether
53515 stdout was already closed.
53517 2005-01-17 Bruno Haible <bruno@clisp.org>
53519 * lib/execute.c (environ): Declare if needed.
53520 * lib/pipe.c (environ): Likewise.
53521 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53523 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53525 * modules/argp: Depend on vsnprintf
53527 2005-01-10 Jim Meyering <jim@meyering.net>
53529 * modules/closeout (Depends-on): Add atexit.
53531 2005-01-06 Bruno Haible <bruno@clisp.org>
53533 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53535 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
53537 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53538 definitions to be after all include files, to avoid collisions.
53539 Problem reported by Bob Proulx.
53541 2005-01-04 Jim Meyering <jim@meyering.net>
53543 Changes imported from coreutils.
53544 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53545 as the mkstemp template, use a temporary directory and an
53546 8.3-friendly template to avoid trouble on systems like DJGPP.
53547 Reported by Juan M. Guerrero via Stepan Kasal.
53548 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53549 close. Remove the temporary directory right away, rather than waiting
53550 for configure's at-exit trap code to do it.
53551 Suggestion from Stepan Kasal.
53553 2005-01-01 Simon Josefsson <jas@extundo.com>
53555 * gnulib-tool: Print #include directives when --import'ing.
53557 2004-12-28 Simon Josefsson <jas@extundo.com>
53559 * tests/test-base64.c: Include required header files. Remove
53562 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
53564 * modules/error (Depends-on): Remove gettext.
53566 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
53568 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53569 not needed. This removes a dependency on the gettext module.
53570 [defined _LIBC]: Do not include <libintl.h>; not needed.
53572 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
53574 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53575 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53577 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
53579 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53582 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
53584 * modules/getdate (Depends-on): Remove alloca-opt.
53586 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
53588 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53590 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
53592 * lib/argp-parse.c: Include <stddef.h>.
53593 (alignof, alignto): New macros.
53594 (parser_init): Don't assume that void * is aligned sufficiently
53597 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53598 need to extend the stack.
53599 (YYINITDEPTH): New macro, so that the initial stack isn't overly
53602 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53604 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53606 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
53608 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53609 (2004-10-24) change. Apparently this was a false alarm.
53611 * modules/getdate: Depend on alloca-opt, not alloca.
53613 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
53615 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53616 Remove now-obsolete comment about AIX.
53617 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53618 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53619 (YYMAXDEPTH): New macro.
53621 2004-12-18 Simon Josefsson <jas@extundo.com>
53623 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53625 2004-12-18 Bruno Haible <bruno@clisp.org>
53627 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53629 2004-12-18 Bruno Haible <bruno@clisp.org>
53631 * lib/fatal-signal.c (fatal_signals): Make non-const.
53632 (init_fatal_signals): New function.
53633 (uninstall_handlers, install_handlers): Ignore signals that were set to
53635 (at_fatal_signal): Call init_fatal_signals.
53636 (init_fatal_signal_set): Likewise. Ignore signals that were set to
53638 Reported by Paul Eggert.
53640 2004-12-18 Bruno Haible <bruno@clisp.org>
53642 * doc/alloca.texi: New file.
53643 * doc/alloca-opt.texi: New file.
53645 2004-12-17 Jim Meyering <jim@meyering.net>
53647 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53648 Otherwise, install-sh could exit with improper exit status when
53649 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
53651 2004-12-16 Simon Josefsson <jas@extundo.com>
53653 * tests/test-base64.c: Add license.
53655 2004-12-15 Stepan Kasal <address@hidden>
53657 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53659 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
53661 * modules/getcwd (Files): Add m4/d-ino.m4.
53662 Suggested by Mark D. Baushke.
53664 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
53666 * lib/getdate.y (textint): New member "negative".
53667 (time_zone_hhmm): New function.
53668 Expect 14 shift-reduce conflicts, not 13.
53669 (o_colon_minutes): New rule.
53670 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53671 (yylex): Set the "negative" member of signed numbers.
53673 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
53675 * doc/getdate.texi (Time of day items, Time zone items):
53676 Describe new formats +00:00, UTC+00:00.
53678 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
53680 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53681 spurious "-l"s. Problem reported by Stepan Kasal.
53683 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
53685 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53686 in Autoconf 2.59. Problem reported by Mark D. Baushke.
53688 2004-12-04 Simon Josefsson <jas@extundo.com>
53690 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53691 Vandoorselaere <yoann@prelude-ids.org>.
53693 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
53695 Changes imported from coreutils.
53696 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53698 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53700 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
53702 Changes imported from coreutils.
53703 * lib/hard-locale.c: Assume <locale.h> exists.
53704 Include "strdup.h".
53705 (GLIBC_VERSION): New macro.
53706 (hard_locale): Assume setlocale exists.
53707 Rewrite to avoid #ifdef.
53708 Use strdup rather than malloc + strcpy.
53709 * lib/human.c: Assume <locale.h> exists.
53710 (human_readable): Assume localeconv exists.
53712 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
53714 * modules/hard-locale (Depends-on): Add strdup.
53716 2004-12-01 Jakub Jelinek <jakub@redhat.com>
53718 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53719 convert T2, not T. (Imported from libc.)
53721 2004-11-30 Simon Josefsson <jas@extundo.com>
53723 * modules/restrict (License): Change to LGPL.
53725 2004-11-30 Simon Josefsson <jas@extundo.com>
53727 * m4/restrict.m4: Add copyright and copying conditions.
53729 2004-11-30 Simon Josefsson <jas@extundo.com>
53731 * m4/base64.m4: New file.
53733 2004-11-30 Simon Josefsson <jas@extundo.com>
53735 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53738 * tests/test-base64.c: New file.
53740 * modules/base64: New file.
53742 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
53744 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53745 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53747 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53749 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
53751 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53752 (__getcwd.c): Don't restore errno; glibc doesn't.
53753 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53754 first, falling back to our code only if its results look suspicious.
53755 Ensure that the resulting buffer is only as large as necessary.
53757 * lib/readutmp.c: Include readutmp.h first.
53758 Include <errno.h>, since readutmp.h no longer does that.
53759 * lib/readutmp.h: Don't include <errno.h>,
53760 <sys/param.h>, <time.h>; not needed to establish interface.
53761 (errno): Remove decl.
53762 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53763 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53764 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53766 2004-11-28 Simon Josefsson <jas@extundo.com>
53768 * lib/base64.h, base64.c: New file.
53770 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
53772 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53774 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
53776 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53777 (Depends-on): Remove pathmax, same. Add mempcpy.
53778 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53779 (Makefile.am): Append getcwd.h to lib_SOURCES.
53780 (Include): Add getcwd.h.
53781 (Maintainer): Change from Jim Meyering to "all, glibc",
53782 since getdate now uses intended-for-glibc code.
53783 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53784 (Depends-on): Depend on getcwd. Do not depend on pathmax.
53786 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
53788 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53789 HP's ANSI C compiler.
53790 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53791 Declaring int functions causes warnings on some modern systems and
53792 shouldn't be needed to compile on ancient ones.
53793 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53796 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53797 with the following changes.
53798 (__set_errno): Parenthesize properly.
53799 Include <stdbool.h>.
53800 (MIN, MAX, MATCHING_INO): New macros.
53801 (__getcwd): Define with prototype, not K&R form.
53802 Use heuristics to allocate default buffer on stack if possible.
53803 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53804 behavior, and to avoid the PATH_MAX limit when computing
53806 Use MATCHING_INO to compare inode number to file.
53807 Check for arithmetic overflow in size calculations.
53808 Fix bug in reallocation of dot array that caused getcwd to fail
53809 on directories nested deeper than 75.
53810 Be more careful about saving errno on error.
53811 Do not use realloc; use only free+malloc, as this is a bit
53812 more flexible and avoids a needless copy operation.
53813 Do not inspect st_dev and st_ino for symbolic links; POSIX
53814 doesn't specify the latter.
53815 Check for closedir errors.
53816 Avoid needless casts.
53817 Use "#ifdef weak_alias" around weak_alias, to be like other
53819 The following changes to getcwd.c have effect only when used in
53820 gnulib; they have no effect inside glibc proper.
53821 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53822 as alloca isn't used.
53823 (alloca, __alloca): Likewise.
53824 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53825 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53826 unconditionally, as gnulib assumes C89 or better.
53827 Do not include <sys/param.h>.
53828 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53829 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53831 (NULL) [!defined NULL]: Remove; we assume C89 or better.
53832 Include <dirent.h> in a way that is compatible with modern Autoconf.
53833 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53834 New macros, if not already defined.
53835 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53836 Use "_LIBC", not "defined _LIBC", for consistency.
53837 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53839 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53840 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
53841 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53842 credit only to Jim Meyering and adjust the copyright dates.
53843 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53844 <stdlib.h>, <unistd.h>, "pathmax.h".
53845 Instead, include "xgetcwd.h" (first) and "getcwd.h".
53846 (INITIAL_BUFFER_SIZE): Remove.
53847 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53849 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
53851 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53852 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
53853 Use the _ONCE methods, for efficiency.
53854 Check for fcntl.h. In test program, include <errno.h>
53855 and <fcntl.h> if available. Remove old K&R cruft from
53856 test program. Check for common errors in GNU/Linux,
53857 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
53858 don't do AC_LIBOBJ, as that's getcwd.m4's job.
53859 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53860 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
53862 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
53863 accommodate new getcwd.c.
53864 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53865 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53866 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53867 that's all we need now.
53869 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53871 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53872 argp-parse.c depends on getopt internals, that means we should
53873 always use our getopt, to be on the safe side.
53874 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53875 order not to spoil the result of an eventual previous invocation
53876 of gl_GETOPT_SUBSTITUTE.
53878 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53880 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53881 redefinition warnings. To avoid them, include the defines
53882 in `#if !defined __need_getopt ... #endif'. The only place
53883 where __getopt_argv_const is used is in definitions
53884 of getopt_long and getopt_long_only below, which are as well
53885 protected by `#ifndef __need_getopt'.
53886 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53887 __need_getopt after including <stdio.h> and <unistd.h> These
53888 headers might have defined it.
53890 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
53892 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53894 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
53896 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53897 (futimens): New function, which uses futimes if available.
53898 (futimens, utimens): Support timespec==NULL, with same semantics
53899 as utime and utimens.
53900 * lib/utimens.h (futimens): New decl.
53902 2004-11-23 Jim Meyering <jim@meyering.net>
53904 * lib/getopt_.h: Remove trailing blanks.
53906 2004-11-23 Jim Meyering <jim@meyering.net>
53908 * lib/__fpending.c: Add comment.
53910 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
53912 * modules/canonicalize (Depends-on): Add xreadlink.
53913 Problem reported by James Youngman.
53915 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
53917 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53919 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53920 optopt): Use them instead of invoking ## directly; otherwise, the
53921 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53923 2004-11-19 Bruno Haible <bruno@clisp.org>
53925 * lib/strtok_r.c: Move comments from here...
53926 * lib/strtok_r.h: ... to here.
53928 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
53930 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53931 implementations that mishandle size_t overflow.
53933 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
53935 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53936 might fail. Problem reported by Yoann Vandoorselaere.
53937 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53938 implementations that mishandle size_t overflow.
53940 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53942 * modules/canon-host (Depends-on): Add strdup.
53944 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53946 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53948 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53950 * lib/canon-host.c: Include "strdup.h".
53951 (canon_host): Use getaddrinfo if available, so that IPv6 works.
53952 Use strdup instead of malloc/strcpy to duplicate strings.
53954 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53955 (human_space_before_unit): New constant.
53956 * lib/human.c (human_readable): Support it.
53958 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53959 (xgetcwd): Set errno correctly when failing.
53960 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53961 the failure is actually due to a PATH_MAX problem.
53963 Further getopt changes to make it more likely that glibc will
53964 buy the changes back.
53965 * lib/getopt.c (POSIXLY_CORRECT): New constant.
53966 (getopt): Use it, so to preserve glibc semantic
53967 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53968 when compiling for libc.
53969 * lib/getopt_.h (__getopt_argv_const): Bring it back.
53970 (getopt_long, getopt_long_only): Use it.
53972 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53973 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
53974 (getopt): Argv is now char * const *, as per standard.
53975 (_getopt_internal_r, _getopt_internal): Argv is now char **,
53976 not char *__getopt_argv_const *.
53977 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53978 _getopt_long_only_r): Likewise.
53979 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53980 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53981 _getopt_long_r, _getopt_long_only_r): Likewise.
53982 * lib/getopt_.h (__getopt_argv_const): Remove.
53983 (getopt): Argv is now char * const *, as per standard.
53985 * lib/getdate.y (tORDINAL): New token.
53986 (day, relunit): Allow it for relative times.
53987 (relative_time_table): Use tORDINAL for ordinals.
53989 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
53991 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53992 Document that "second" isn't allowed as an ordinal number.
53994 2004-11-16 Jim Meyering <jim@meyering.net>
53996 * modules/closeout (Depends-on): Add fpending.
53998 2004-11-15 Jim Meyering <jim@meyering.net>
54000 * lib/closeout.c: Include "__fpending.h" once again.
54001 Include <stdbool.h>.
54002 (close_stdout): Don't fail just because stdout was closed initially,
54003 since some programs don't write to stdout in the normal course of
54004 operation (other than --version and --help), and we don't want this
54005 function to make e.g. `touch file >&-' fail.
54006 But do fail if it was closed and someone has tried to write to it.
54007 E.g., `printf foo >&-' must fail.
54009 2004-11-13 Jim Meyering <jim@meyering.net>
54011 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54013 2004-11-12 Simon Josefsson <jas@extundo.com>
54015 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54016 small doc fix is still pending.
54018 2004-11-11 Simon Josefsson <jas@extundo.com>
54020 * modules/strtok_r: New file.
54022 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54025 2004-11-11 Simon Josefsson <jas@extundo.com>
54027 * m4/strtok_r.m4: New file.
54029 * m4/getopt.m4: Replace opterr.
54031 2004-11-11 Simon Josefsson <jas@extundo.com>
54033 * lib/strtok_r.h, strtok_r.c: New file.
54035 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
54037 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54038 of replacing opterr, getopt, etc. This should handle the
54039 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54041 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
54043 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54044 we can stop lying to compilers about the constness of argv when we
54045 are compiled outside glibc.
54046 (getopt, getopt_long, getopt_long_only): Use it.
54047 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54048 _getopt_internal, getopt): Likewise.
54049 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54050 _getopt_long_only_r): Likewise.
54051 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54052 _getopt_long_r, _getopt_long_only_r): Likewise.
54054 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54055 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54056 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54057 the other external symbols.
54058 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54059 declaration, since the above renaming now works around collisions.
54061 2004-11-11 Jim Meyering <jim@meyering.net>
54063 * lib/linebreak.c: Remove trailing blanks.
54064 * lib/alloca_.h: Likewise.
54065 * lib/acosl.c: Likewise.
54066 * lib/euidaccess.c: Likewise.
54067 * lib/allocsa.h: Likewise.
54069 2004-11-10 Simon Josefsson <jas@extundo.com>
54071 * m4/getaddrinfo.m4: New file.
54073 2004-11-10 Simon Josefsson <jas@extundo.com>
54075 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54077 2004-11-10 Simon Josefsson <jas@extundo.com>
54079 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54082 * modules/getaddrinfo: New file.
54084 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
54086 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54088 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
54090 * lib/mktime.c (SHR): New macro, which is a portable
54091 substitute for >> that should work even on Crays.
54092 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54093 Problem reported by Mark D. Baushke in
54094 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54095 * lib/getdate.y (SHR): Likewise.
54097 * lib/strftime.c (SHR): Likewise.
54099 * lib/quotearg.c (struct quoting_options): Use unsigned int for
54100 quote_these_too, so that right shifts are well defined. All uses
54103 2004-11-10 Jim Meyering <jim@meyering.net>
54105 Ensure that no close failure goes unreported.
54106 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
54107 return early when it seems there's nothing to flush.
54108 Don't include __fpending.h.
54110 2004-11-10 Jim Meyering <jim@meyering.net>
54112 * modules/closeout (Depends-on): Remove fpending.
54114 2004-11-10 Jim Meyering <jim@meyering.net>
54116 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54118 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
54120 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
54122 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54123 and AC_REQUIRE when possible, to avoid duplicate checks.
54124 Check for <wchar.h>.
54126 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
54128 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54130 2004-11-09 Bruno Haible <bruno@clisp.org>
54132 * m4/sockpfaf.m4: New file.
54134 2004-11-05 Bruno Haible <bruno@clisp.org>
54136 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54137 Reported by Mark D. Baushke <mdb@cvshome.org>.
54139 2004-11-04 Bruno Haible <bruno@clisp.org>
54141 2004-09-11 Bruno Haible <bruno@clisp.org>
54142 * allocsa.valgrind: New file.
54143 2004-02-06 Bruno Haible <bruno@clisp.org>
54144 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54145 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54146 Reported by Christopher Seip <chris.seip@hp.com>.
54148 2004-11-04 Bruno Haible <bruno@clisp.org>
54150 * modules/allocsa (Files): Add lib/allocsa.valgrind.
54151 (Makefile.am): Distribute it.
54153 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
54155 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54156 with errno == ERANGE if the buffer is too small.
54157 Problem reported by Mark D. Baushke.
54159 2004-11-03 Albert Chin <china@thewrittenword.com>
54160 Paul Eggert <eggert@cs.ucla.edu>
54162 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54163 equivalent, substitute $ac_type for equivalent type rather than
54164 blindly using uint32_t *always* which won't work if uint32_t is not
54165 available. Define _UINT32_T to work around typedef of uint32_t if
54166 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54169 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
54171 * m4/jm-macros.m4: Sync from coreutils.
54172 (gl_MACROS): Check for mbrlen, for pathchk.
54173 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54175 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
54177 * lib/xreadlink.c (MAXSIZE): New macro.
54178 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
54179 size does not exceed MAXSIZE. Avoid cast.
54180 As suggested by Mark D. Baushke in
54181 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54182 if readlink fails with buffer size just under MAXSIZE, try again
54185 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
54187 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54189 2004-11-02 Derek R. Price <derek@ximbiot.com>
54190 and Paul Eggert <eggert@cs.ucla.edu>
54192 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54193 (get_date): Overparenthesize to avoid GCC warning.
54195 2004-11-02 Bruno Haible <bruno@clisp.org>
54197 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54200 2004-11-02 Bruno Haible <bruno@clisp.org>
54202 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54203 function returns void.
54205 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
54207 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54208 fflush_unlocked, flockfile, funlockfile, funlockfile,
54209 fputs_unlocked, putc_unlocked.
54211 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
54213 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54214 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54217 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
54219 * modules/getdate (Files): Add doc/getdate.texi.
54220 (Depends-on): Add setenv, xalloc.
54222 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
54224 * lib/getdate.y: Add support for TZ="foo" within a date string.
54225 Fix some bugs near time_t boundaries. Reject dates with
54226 out-of-range components, e.g., "Sept 31".
54227 Include <stdlib.h>, "setenv.h", "xalloc.h".
54228 (ISDIGIT_LOCALE): Remove; unused.
54229 Note that the TZ and time functions used here are not reentrant.
54230 (mktime_ok, get_tz): New functions.
54231 (TZBUFSIZE): New constant.
54232 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
54233 This requires that we sometimes generate our own TZ="XXX..." setting.
54235 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
54237 * doc/getdate.texi: New file, from coreutils with modifications for
54238 the new TZ parsing.
54240 2004-10-27 Derek R. Price <derek@ximbiot.com>
54242 * lib/mktime.c (not_equal_tm): Remove redundant check.
54244 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
54246 * modules/regex (lib_SOURCES): Add regex.c.
54247 Reported by James Youngman in
54248 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54250 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
54252 * lib/getdate.y: Use Bison 1.875 features, and some minor
54253 code cleanups. This change does not affect semantics.
54254 Don't include <stdlib.h>; no longer needed.
54255 Don't include unlocked-io.h; only the "#if TEST" code uses
54256 stdio, and performance isn't crucial there.
54257 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54258 Bison 1.875 features as described below.
54259 All uses of "PC." replaced by "pc->".
54260 (YYSTYPE): Add a forward declaration.
54261 (yylex, yyerror): Use full prototypes in forward decls.
54262 Use "%pure-parser" rather than obsolescent "%pure_parser".
54263 Use %parse-param and %lex-param instead of obsolescent
54264 YYPARSE_PARAM and YYLEX_PARAM.
54265 (meridian_table, month_and_day_table, time_units_table,
54266 relative_time_table, time_zone_table, military_table,
54267 lookup_zone, lookup_word, get_date):
54268 Use NULL instead of 0 where appropriate.
54269 (to_hour): Avoid abort (), to avoid a dependency on
54271 (yyerror, yylex): Now accepts parser_control * arg.
54272 (main) [TEST]: Use '\0' rather than 0 for char.
54274 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
54276 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54278 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
54280 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54281 It's now the caller's responsibility to handle the case where
54282 !HAVE_GETPAGESIZE && !defined getpagesize.
54284 * lib/mktime.c (leapyear): Arg is long int, not int.
54286 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
54288 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54290 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
54292 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54293 missing. Problem reported by James Youngman.
54295 2004-10-16 Simon Josefsson <jas@extundo.com>
54297 * gnulib-tool: Fix comments. Fix parse problem.
54298 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54300 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
54302 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54303 implementation of getopt_long. Problem reported by Alexander Taler in:
54304 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54306 2004-10-15 Bruno Haible <bruno@clisp.org>
54308 * gnulib-tool: Untabify. Initialize supplied_libname.
54309 (func_usage): More homogenous output.
54310 (func_modules_transitive_closure, func_modules_to_filelist,
54311 func_emit_lib_Makefile_am): New functions.
54312 (func_import): New function, extracted from big case statement. Use
54313 func_get_license, func_modules_transitive_closure,
54314 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54315 opt_lgpl. Don't use test -a, as it's not portable.
54316 (func_create_testdir): Use func_modules_transitive_closure,
54317 func_modules_to_filelist, func_emit_lib_Makefile_am.
54319 2004-10-15 Bruno Haible <bruno@clisp.org>
54321 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54323 2004-10-15 Bruno Haible <bruno@clisp.org>
54325 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54326 the portions belonging to each module.
54327 Suggested by Derek Robert Price <derek@ximbiot.com>.
54329 2004-10-12 Simon Josefsson <jas@extundo.com>
54331 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54332 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54335 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
54337 * modules/vsnprintf: New file.
54339 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
54341 * m4/vsnprintf.m4: New file.
54343 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
54345 * lib/vsnprintf.h: New file.
54346 * lib/vsnprintf.c: New file.
54348 2004-10-11 Bruno Haible <bruno@clisp.org>
54350 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54353 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
54355 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54357 2004-10-07 Bruno Haible <bruno@clisp.org>
54359 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54360 fits into the provided buffer.
54362 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
54364 * lib/diacrit.c, diacrit.h: Add GPL notice.
54366 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54368 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54369 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54370 This avoids a potential constant-folding bug.
54372 2004-10-05 Bruno Haible <bruno@clisp.org>
54374 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54375 for the declaration of strsep.
54377 2004-10-05 Bruno Haible <bruno@clisp.org>
54379 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54381 2004-10-04 Simon Josefsson <jas@extundo.com>
54383 * modules/memmem: New file.
54384 * tests/test-memmem.c: New file.
54385 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54387 2004-10-04 Simon Josefsson <jas@extundo.com>
54389 * m4/memmem.m4: New file.
54391 2004-10-04 Simon Josefsson <jas@extundo.com>
54393 * lib/memmem.h: New file.
54394 * lib/memmem.c: New file, taken from glibc.
54396 2004-10-04 Simon Josefsson <jas@extundo.com>
54398 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54399 '#ifdef USE_UNLOCKED_IO'.
54401 2004-10-04 Simon Josefsson <jas@extundo.com>
54403 * config/srclist.txt: Add memmem from glibc.
54405 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
54407 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54409 * modules/argmatch, modules/argp, modules/closeout, modules/error,
54410 modules/exclude, modules/getdate, modules/getline,
54411 modules/getndelim2, modules/getpass, modules/getpass-gnu,
54412 modules/getusershell, modules/linebuffer, modules/md5,
54413 modules/mountlist, modules/posixtm, modules/readtokens,
54414 modules/readutmp, modules/regex, modules/sha1,
54415 modules/version-etc, modules/yesno:
54416 Remove dependency on unlocked-io.
54418 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
54420 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
54422 * m4/unlocked-io.m4: Add copyright notice.
54423 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54425 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
54427 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
54428 * lib/xmalloc.c (xmemdup): Likewise.
54429 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54430 XFREE): Remove these long-obsolescent macros.
54431 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54432 * lib/xstrdup.c: Remove.
54434 * lib/regex.c (re_comp): Cast gettext return value to char *,
54435 Problem reported by Martin Neitzel via Mark D. Baushke.
54437 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
54439 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54440 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54441 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54442 regex.c, sha1.c, version-etc.c, yesno.c:
54443 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54444 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54445 the includer's responsibility.
54447 Sync from coreutils.
54449 * lib/modechange.c (mode_compile): Don't decrement a pointer that
54450 points to the start of a string, as the C Standard says the
54451 resulting behavior is undefined.
54453 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54454 simple -> simple_backups, numbered_existing ->
54455 numbered_existing_backups, numbered -> numbered_backups
54456 to avoid shadowing problems. All uses changed.
54457 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54458 * lib/backupfile.c (check_extension, numbered_backup):
54459 Rename locals to avoid shadowing 'basename'.
54460 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54463 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54464 * lib/.cvsignore: Add getopt.h.
54466 2004-10-04 Bruno Haible <bruno@clisp.org>
54468 * modules/README: New file.
54469 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54472 2004-10-02 Jim Meyering <jim@meyering.net>
54474 * lib/dirfd.h, getpagesize.h: Add copyright notice.
54476 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
54478 * modules/strsep: New file.
54480 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
54482 * m4/strsep.m4: New file.
54484 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
54486 * lib/strsep.h: New file.
54487 * lib/strsep.c: New file.
54489 2004-10-01 Simon Josefsson <jas@extundo.com>
54491 * lib/snprintf.c (snprintf): Handle size==0.
54493 2004-10-01 Simon Josefsson <jas@extundo.com>
54494 Bruno Haible <bruno@clisp.org>
54496 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54497 (snprintf): Declare 'args'.
54499 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
54501 * lib/snprintf.c: Remove comments as to why each header is needed.
54503 2004-10-01 Bruno Haible <bruno@clisp.org>
54505 * MODULES.html.sh: Add strsep.
54507 2004-09-30 Simon Josefsson <jas@extundo.com>
54509 * modules/snprintf: New file.
54511 2004-09-30 Simon Josefsson <jas@extundo.com>
54513 * m4/snprintf.m4: New file.
54515 2004-09-30 Simon Josefsson <jas@extundo.com>
54517 * lib/snprintf.h, lib/snprintf.c: New files.
54519 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
54521 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54522 (hol_entry_help): Never translate an empty string.
54523 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54524 * lib/argp.h (OPTION_NO_TRANS): New option.
54526 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
54528 * modules/argp (Maintainer): Replace Simon Josefsson
54529 by Sergey Poznyakoff.
54531 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
54533 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54534 changes merged back into glibc.
54536 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
54538 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54540 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
54542 * lib/xvasprintf.c: Include xalloc.h.
54543 (xvasprintf): Use xalloc_die, not xmalloc_die.
54545 2004-09-29 Bruno Haible <bruno@clisp.org>
54547 * modules/alloca-opt: New file, derived from modules/alloca.
54548 * modules/allocsa: Depend on alloca-opt instead of alloca.
54549 * modules/setenv: Likewise.
54550 * modules/vasnprintf: Likewise.
54551 * MODULES.html.sh: Add alloca-opt.
54553 2004-09-28 Simon Josefsson <jas@extundo.com>
54555 * gnulib-tool: New parameter --lgpl, to asseert that modules are
54556 LGPL, and to replace license template from GPL to LGPL.
54558 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
54560 * modules/dummy: Change license to LGPL.
54562 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
54564 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54566 2004-09-24 Simon Josefsson <jas@extundo.com>
54568 * modules/minmax (License): Change from GPL to LGPL.
54570 2004-09-23 Simon Josefsson <jas@extundo.com>
54572 * gnulib-tool (--import): Typo.
54574 2004-09-23 Simon Josefsson <jas@extundo.com>
54576 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54578 2004-09-22 Bruno Haible <bruno@clisp.org>
54580 * modules/*: Add 'License' field.
54581 * gnulib-tool: Accept --extract-license option.
54582 (func_get_license): New function.
54584 2004-09-21 Bruno Haible <bruno@clisp.org>
54586 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54587 Reported by Simon Josefsson.
54589 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
54591 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54592 gl_AC_TYPE_LONG_LONG.
54594 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
54596 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54598 2004-09-18 Simon Josefsson <jas@extundo.com>
54599 and Paul Eggert <eggert@cs.ucla.edu>
54601 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54602 calls with autoreconf. Define GL_LIB.
54604 2004-09-14 Karl Berry <karl@gnu.org>
54606 * config/srclist.txt: unsync setenv.c, sigh.
54608 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
54610 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54611 Problem reported by Bruno Haible in:
54612 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54614 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
54616 * config/srclist.txt: Comment out argp-pvh.c.
54618 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
54620 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54621 in case some system header has #define'd it. Problem reported by
54622 Soeren D. Schulze in
54623 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54625 2004-09-09 Karl Berry <karl@gnu.org>
54627 * regex.[ch]: delete from the root. These were supposed to be
54628 synced with emacs cvs, but this has not happened for about
54629 a year, and anyway nothing else uses emacs regex.[ch].
54630 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54631 lib/regex[.ch] is untouched.
54633 2004-09-09 Bruno Haible <bruno@clisp.org>
54635 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54637 2004-09-09 Bruno Haible <bruno@clisp.org>
54639 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54641 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54643 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
54645 * modules/xvasprintf: New file.
54646 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54648 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
54650 * lib/xvasprintf.h: New file.
54651 * lib/xvasprintf.c: New file.
54652 * lib/xasprintf.c: New file.
54654 2004-09-08 Bruno Haible <bruno@clisp.org>
54656 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54658 2004-09-08 Bruno Haible <bruno@clisp.org>
54660 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54661 length is > INT_MAX.
54662 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54665 2004-09-08 Bruno Haible <bruno@clisp.org>
54667 * lib/stdint_.h: New file, taken from GNU clisp.
54669 2004-09-08 Bruno Haible <bruno@clisp.org>
54670 Oskar Liljeblad <oskar@osk.mine.nu>
54672 * modules/stdint: New file.
54673 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54675 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
54677 Import from coreutils.
54678 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54679 strings on unbounded length. alloca's performance benefits aren't
54680 that important here.
54681 (V_STRDUP): Remove.
54682 (parse_with_separator): New function, with most of the internals
54683 of the old parse_user_spec. Allow user to omit both user and group,
54684 for compatibility with FreeBSD.
54685 Clone only the user name, not the entire spec.
54686 Do not set *uid, *gid unless entirely successful.
54687 Avoid memory leak in some failing cases.
54688 Fix regression for USER.GROUP reported by Dmitry V. Levin in
54689 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54690 (parse_user_spec): Rewrite to use parse_with_separator.
54692 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
54694 * modules/userspec: Don't depend on alloca.
54696 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
54698 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54700 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
54702 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54703 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54704 utimecmp, utimens, xnanosleep. Rename sha to sha1.
54706 2004-08-16 Simon Josefsson <jas@extundo.com>
54708 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54709 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54710 Add --dry-run for --import.
54711 Let user provided command line parameters override configure.ac
54714 2004-08-12 Simon Josefsson <jas@extundo.com>
54716 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54717 as discussed with Paul Eggert in threads rooted at
54718 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54720 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54721 Before, the test was empty, and relied on ELIDE_CODE in source
54723 (gl_PREREQ_GETOPT): New macro.
54724 (gl_GETOPT): Use them.
54726 2004-08-12 Simon Josefsson <jas@extundo.com>
54728 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54729 * lib/getopt_.h: Renamed from getopt.h.
54731 2004-08-12 Simon Josefsson <jas@extundo.com>
54733 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54734 Change default library name from libfoo to libgnu.
54735 Now, if you have a configure.ac that says:
54738 gl_MODULES(error getopt etcetera)
54740 you can import all you need by running:
54741 ../gnulib/gnulib-tool --import
54743 * modules/getopt (Files): Rename getopt.h to getopt_.h.
54744 (Makefile.am): Rewrite, use logic from argz.
54745 (Include): Use <getopt.h> instead of "getopt.h".
54747 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54749 * modules/argp (Files): Add m4/unlocked-io.m4.
54750 (Depends-on): Add extensions.
54752 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54754 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54755 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54756 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54757 Check for program_invocation_name, program_invocation_short_name,
54758 flockfile, funlockfile, features.h, _getopt_long_only_r.
54760 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54762 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54763 its complicated substitute.
54764 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54765 and program_invocation_name.
54766 (__argp_basename) [!_LIBC]: Remove; the only use was
54767 replaced by its body.
54768 (__argp_short_program_name): Change condition from
54769 !defined __argp_short_program_name to
54770 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54771 to match argp-namefrob.h.
54772 (__argp_failure): Don't assume strerror_r returns char *.
54773 * lib/argp-parse.c (N_): Define unconditionally.
54774 (argp_default_options): Fill out initializers with 0 to avoid
54777 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
54779 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54782 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
54784 Merge from coreutils.
54786 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54788 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54789 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54791 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
54793 Merge from coreutils.
54795 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54796 wmemchr or wmemcpy. Problem reported by Robert Dahlem
54797 for Reliant Unix 5.43.
54799 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54800 (union fooround): Use uintmax_t, not long int.
54801 The rest is a merge from libc:
54802 [defined _LIBC]: Include <shlib-compat.h>.
54803 (_obstack) [defined _LIBC]: Remove after 2.3.4.
54805 * lib/settime.c (settime): Recode to avoid warning with
54808 * lib/strverscmp.c: Convert to UTF-8.
54810 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
54812 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54815 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54817 * modules/xalloc-die: New file.
54818 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54820 * modules/md5 (Files): Add m4/uint32_t.m4.
54821 * modules/sha1: Renamed from modules/sha.
54823 Rename lib/sha.h to lib/sha1.h.
54824 Rename lib/sha.c to lib/sha1.c.
54825 Rename m4/sha.m4 to m4/sha1.m4.
54826 (lib_SOURCES): Likewise.
54827 (configure.ac): Rename gl_SHA to gl_SHA1.
54828 (Include): sha.h -> sha1.h.
54830 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54832 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54833 * m4/sha1.m4: Renamed from sha.m4.
54834 (gl_SHA1): Renamed from gl_SHA. All uses changed.
54836 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
54838 * lib/obstack.h (obstack_empty_p):
54839 Don't assume that chunk->contents is suitably aligned.
54840 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54841 Likewise. Problem reported by Benno in
54842 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54844 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54845 readable. This could be improved further but it'd take some work.
54847 2004-08-08 Simon Josefsson <jas@extundo.com>
54849 * modules/xgethostname (Depends-on): Remove exit and error (not
54852 * modules/getpass-gnu: Add getpass.h.
54853 (Depends-on): Add stdbool.
54854 * modules/getpass: Add getpass.h.
54856 2004-08-08 Simon Josefsson <jas@extundo.com>
54858 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54859 Check getpass declaration.
54861 2004-08-08 Simon Josefsson <jas@extundo.com>
54863 * lib/xgethostname.c: Don't include error.h (not used).
54865 * lib/getpass.h: Add.
54866 * lib/getpass.c: Include getpass.h first.
54868 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
54870 * lib/xalloc-die.c: New file.
54871 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54873 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54874 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54876 (_, N_, xalloc_die): Move to xalloc-die.c.
54877 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54878 so that we needn't mess with xalloc_msg_memory_exhausted.
54880 * lib/sha1.h: Renamed from sha.h.
54881 (SHA1_H): Renamed from _SHA_H.
54882 (sha1_ctx): Renamed from sha_ctx.
54883 (sha1_init_ctx): Renamed from sha_init_ctx.
54884 (sha1_process_block): Renamed from sha_process_block.
54885 (sha1_process_bytes): Renamed from sha_process_bytes.
54886 (sha1_finish_ctx): Renamed from sha_finish_ctx.
54887 (sha1_read_ctx): Renamed from sha_read_ctx.
54888 (sha1_stream): Renamed from sha_stream.
54889 (sha1_buffer): Renamed from sha_buffer.
54890 * lib/sha1.c: Likewise; renamed from sha.c.
54891 Do not include <sys/types.h>.
54892 Include <stddef.h> rather than <stdlib.h>.
54894 2004-08-08 Bruno Haible <bruno@clisp.org>
54896 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54897 FILESYSTEM_PREFIX_LEN.
54898 * lib/progreloc.c: Likewise.
54899 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54901 2004-08-06 Simon Josefsson <jas@extundo.com>
54903 * modules/progname (Depends-on): Don't depend on stdbool.
54905 2004-08-06 Simon Josefsson <jas@extundo.com>
54907 * modules/getsubopt: New file.
54908 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54911 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54913 More merge from coreutils.
54915 * m4/utimens.m4, m4/utimecmp.m4: New files.
54916 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54917 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54918 prereq.m4, sha.m4: Import changes from coreutils.
54920 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54922 More merge from coreutils.
54923 * modules/raise, modules/readtokens0, modules/utimens:
54924 * modules/utimecmp, module/xnanosleep: New files.
54925 * modules/strftime: Add lib/strftime.h.
54926 Change include from <time.h> to "strftime.h".
54927 * modules/yesno: Add lib/yesno.h.
54928 * modules/backupfile: Remove lib/addext.c.
54929 * modules/euidaccess: Add stat-macros.h.
54930 * modules/canonicalize, modules/euidaccess,
54931 modules/filemode, modules/lchown, modules/makepath,
54932 modules/rmdir, modules/stat: Likewise.
54934 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
54937 * lib/argp-help.c (make_hol, hol_append): Don't assume that
54938 SIZE_MAX is a valid preprocessor constant.
54939 (__argp_basename): Change from "#ifndef _LIBC"
54940 to "#ifndef __argp_short_program_name", so that
54941 we don't compile these functions for tar.
54943 More merges from coreutils.
54944 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54945 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54946 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54947 * lib/addext.c: Remove; no longer needed.
54948 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54949 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54950 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54951 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54952 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54953 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54954 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54955 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54956 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54957 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54958 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54959 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54960 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54961 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54962 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54963 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54964 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54965 Import changes from coreutils.
54967 2004-08-05 Simon Josefsson <jas@extundo.com>
54969 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54971 2004-08-05 Simon Josefsson <jas@extundo.com>
54973 * m4/getsubopt.m4: New file.
54975 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54977 Merge from coreutils.
54979 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54980 * m4/getcwd-path-max.m4: New files.
54982 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54983 FILESYSTEM_PREFIX_LEN ->
54984 FILE_SYSTEM_PREFIX_LEN.
54985 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54986 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54987 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54988 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54990 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54991 prerequisite modules now handle the DOS stuff.
54992 Don't check for unistd.h.
54994 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
54996 Merge from coreutils.
54998 * lib/.gdb-history: Remove; this doesn't belong here.
55000 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55001 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55002 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55003 * lib/getcwd.c: New files.
55005 * lib/dirname.h: Include <stdbool.h>.
55006 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55007 for consistency with POSIX terminology. All uses changed.
55008 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55009 (strip_trailing_slashes): Use bool for booleans.
55010 * lib/stripslash.c (strip_trailing_slashes): Likewise.
55012 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55013 sometimes returns a positive errno value even when it succeeds.
55014 (print_errno_message) [!LIBC]: Fall back on strerror if
55015 __strerror_r fails.
55017 * lib/path-concat.c (mempcpy): Don't define if a system header defines
55018 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55019 (longest_relative_suffix): New function.
55020 (path_concat): Use it. Assume first argument is not NULL.
55021 Port to DOS. Omit redundant separators.
55022 Report an error instead of returning NULL.
55023 Use mempcpy instead of memcpy.
55024 (xpath_concat): Remove: not declared or used.
55026 * lib/same.h: Include <stdbool.h>
55027 (same_name): Return bool, not int.
55028 * lib/same.c (same_name): Likewise.
55029 (errno): Don't declare; we assume C89 or better now.
55031 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55032 if not already defined.
55034 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55035 * lib/dup-safer.c (errno): Likewise.
55037 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
55039 Merge from coreutils.
55040 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55041 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55042 * modules/path-concat: Don't depend on strdup.
55044 2004-08-03 Simon Josefsson <jas@extundo.com>
55046 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55047 * lib/progname.h: Don't include stdbool.h.
55049 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
55051 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55052 * MODULES.html.sh (func_all_modules): Remove fatal.
55054 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
55056 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55058 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
55060 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55063 2004-08-02 Simon Josefsson <jas@extundo.com>
55065 * lib/getsubopt.h: New file, with comments from Bruno Haible.
55066 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55067 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55069 2004-08-01 Simon Josefsson <jas@extundo.com>
55071 * lib/xgetdomainname.c: Include stdlib.h, for free().
55073 2004-07-19 Bruno Haible <bruno@clisp.org>
55075 * MODULES.html.sh (func_all_modules): Add dummy.
55077 2004-07-16 Simon Josefsson <jas@extundo.com>
55079 * modules/dummy: New file.
55081 2004-07-16 Simon Josefsson <jas@extundo.com>
55083 * lib/dummy.c: New file.
55085 2004-07-16 Bruno Haible <bruno@clisp.org>
55087 * lib/backupfile.h: Add extern "C" for C++.
55088 * lib/closeout.h: Likewise.
55089 * lib/copy-file.h: Likewise.
55090 * lib/findprog.h: Likewise.
55091 * lib/full-write.h: Likewise.
55092 * lib/pathname.h: Likewise.
55093 * lib/progname.h: Likewise.
55094 * lib/stpcpy.h: Likewise.
55095 * lib/stpncpy.h: Likewise.
55096 * lib/strcase.h: Likewise.
55097 * lib/strstr.h: Likewise.
55098 * lib/xalloc.h: Likewise.
55100 * lib/mbswidth.h: Add extern "C" for C++.
55101 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55103 2004-07-13 Robert Millan <robertmh@gnu.org>
55105 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55107 2004-07-09 Simon Josefsson <jas@extundo.com>
55109 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
55110 failed without this.)
55112 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
55114 * modules/chown (Files): Add lib/fchown-stub.c, since
55115 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55117 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
55119 * lib/fchown-stub.c: New file.
55121 2004-06-24 Jim Meyering <jim@meyering.net>
55123 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55125 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
55127 * modules/argz: Omit "#include".
55129 * MODULES.html.sh (func_all_modules): Add calloc, to match
55130 2004-06-01 addition of calloc module.
55132 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
55134 * m4/argz.m4: New file, which is autoupdated from libtool.
55136 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
55138 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55141 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
55143 * config/srclist-update: Don't insist on "USA." before the
55144 close-comment, as libtool omits the period and puts the */ on a
55146 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55147 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55149 2004-06-22 Gary V. Vaughan <gary@gnu.org>
55151 * modules/argz: New file.
55152 * MODULES.html.sh (func_all_modules): Add argz.
55154 2004-06-12 Jim Meyering <jim@meyering.net>
55155 and Paul Eggert <eggert@cs.ucla.edu>
55157 * modules/hash (Files): Add lib/xalloc.h.
55158 * modules/pipe (Depends-on): Add wait-process.
55159 * modules/stat (Depends-on): Add xalloc.
55160 * modules/userspec (Files): Add lib/userspec.h.
55163 Upgrade from gettext-0.13.
55164 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55165 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55166 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55168 2004-06-10 Jim Meyering <jim@meyering.net>
55170 * lib/calloc.c: New file.
55172 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
55174 * lib/getdate.y (yylex): Allow space between sign and number.
55175 Problem reported by Dan Jacobson.
55177 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
55179 Merge from coreutils CVS.
55181 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55182 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55183 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55184 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55185 xstrtol.m4: Fix copyright date and/or serial number.
55187 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55188 See if we need an fchown replacement.
55189 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55190 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55191 and use the replacement function if we detect either defect.
55193 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55196 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
55197 and Jim Meyering <jim@meyering.net>
55199 Merge from coreutils CVS.
55201 * lib/stat-macros.h: New file, with contents from file-type.h
55202 and coreutils' system.h.
55203 * lib/file-type.c: Include "stat-macros.h".
55204 * lib/file-type.h (file_type): Move all macro definitions to new file,
55207 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55208 Wrap old code with this conditional.
55209 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55210 function that does not dereference symlinks.
55211 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55213 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55214 dependency problems.
55215 (xreadlink): Accept new arg SIZE, for efficiency.
55216 All decls and uses changed.
55217 * lib/xreadlink.h: Include <stddef.h>, for size_t.
55219 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55220 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55222 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55225 2004-06-01 Jim Meyering <jim@meyering.net>
55227 * m4/calloc.m4: New file.
55229 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
55231 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55232 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
55233 Also, fix a typo in a diagnostic.
55235 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
55237 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55238 or AC_FUNC_REALLOC.
55240 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
55242 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55243 macros to be defined.
55244 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55245 the allocator returns NULL because the requested size is zero.
55247 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
55249 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55250 var. Add comment explaining why libc still defines it. This
55251 merges the following patch from glibc:
55252 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55254 2004-05-20 Andreas Schwab <schwab@suse.de>
55256 * m4/free.m4: Replace free if it not known to work, not the other
55259 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
55261 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
55262 present in glibc since revision 1.1 of this file.
55263 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55264 obstack_alignment_mask, obstack_alloc, obstack_base,
55265 obstack_blank, obstack_blank_fast, obstack_chunk_size,
55266 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55267 obstack_grow0, obstack_init, obstack_int_grow,
55268 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55269 obstack_next_free, obstack_object_size, obstack_ptr_grow,
55270 obstack_ptr_grow_fast, obstack_room): Remove declarations of
55271 nonexistent functions.
55273 2004-05-18 Karl Berry <karl@gnu.org>
55275 * config/srclist.txt: break link for vasnprintf.c.
55277 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
55279 Port obstack to the AS/400, where pointers are 16 bytes wide and
55280 you cannot cast an integer to a valid pointer. This patch is
55281 currently waiting to be integrated into glibc; see
55282 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55284 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55285 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55286 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55287 (struct obstack): temp member is now a union of a pointer and
55288 an integer, instead of an integer. All integer uses changed.
55289 This does not affect the physical layout of struct obstack,
55290 except on hosts (like the AS/400) where the size or alignment of
55291 void * is greater than that of ptrdiff_t.
55292 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55293 __STDC__)]: Store temporary in pointer member of union, not
55295 * lib/obstack.c: Include <stddef.h>, for offsetof.
55296 (struct fooalign): Remove; it doesn't need a name.
55297 (union fooround): Change double to long double, and add void *.
55298 (DEFAULT_ALIGNMENT): Use offsetof to compute.
55299 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55300 not a macro. Hence the values are always int; so remove all
55301 casts-to-int in uses.
55303 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
55305 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55306 we can get this patch merged into glibc.
55308 2004-05-17 Derek R. Price <derek@ximbiot.com>
55309 Paul Eggert <eggert@cs.ucla.edu>
55311 * m4/argp: Depend on alloca.
55313 2004-05-17 Derek R. Price <derek@ximbiot.com>
55314 Paul Eggert <eggert@cs.ucla.edu>
55316 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55319 2004-05-17 Bruno Haible <bruno@clisp.org>
55321 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55322 precision that consists of a '.' followed by an empty digit string.
55323 Patch by Tor Lillqvist <tml@iki.fi>.
55325 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
55327 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55328 for backward compatibility with older code. We need our own
55329 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
55330 it under some other name, and our alloca.h will define it.
55332 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
55333 Derek Price <derek@ximbiot.com>
55335 * lib/alloca.c: Include <alloca.h>, to get our interface.
55336 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55337 include <alloca.h> first. Use C89 prototype for alloca; this
55338 requires including <stddef.h> for size_t. Use extern "C" if C++.
55339 Use #elif for simplicity, since we can assume C89 now.
55340 Don't try to source the system alloca.h since it will not be found
55341 and to prevent recursively including its replacement.
55342 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55343 * lib/regex.c: Likewise.
55345 2004-05-16 Derek Price <derek@ximbiot.com>
55346 Paul Eggert <eggert@cs.ucla.edu>
55348 getline cleanup. This changes the getndelim2 API: both order of
55349 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55352 * lib/getline.c: Don't include stddef.h or stdio.h, since our
55353 interface does that.
55354 (getline): Always use getdelim, so that we don't have two
55355 copies of this code.
55356 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55358 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55359 (GETNDELIM2_MAXIMUM): New macro.
55360 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
55361 instead of the old practice of delim2==0. All callers changed.
55362 Return -1 on overflow, instead of returning junk.
55363 Do not set *linesize unless allocation succeeds.
55364 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55365 that we include sys/types.h.
55366 * lib/getnline.h: Likewise.
55367 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55368 (getndelim2): Reorder arguments.
55369 * lib/getnline.c (getnline, getndelim):
55370 Don't discard the NMAX argument.
55371 (getnline): Invoke getndelim, to avoid code duplication.
55372 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55373 of (size_t) -1 by callers of the getnline family.
55375 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
55377 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55378 Check for gettimeofday.
55379 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55380 Check for settimeofday, stime.
55382 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
55384 * lib/nanosleep.c (suspended): Change its type from int to
55385 sig_atomic_t volatile.
55386 (first_call): Make it private to rpl_nanosleep, and have it
55387 be zero initially as that's a bit faster.
55388 (my_usleep): Round up fractional times instead of truncating them,
55389 as this is the usual meaning for 'sleep'.
55391 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55393 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55394 (ENOSYS): Define if not defined.
55395 (settime): Fall back on stime if it exists and settimeofday fails.
55396 But don't bother with fallbacks if a method fails with errno == EPERM.
55398 2004-05-11 Jim Meyering <jim@meyering.net>
55400 Prior to this change, the save_cwd caller required read access to the
55401 current directory on most systems (ones with the fchdir function).
55403 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55404 fails, try write-only, and finally, resort to using xgetcwd.
55406 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
55408 * lib/obstack.c, obstack.h: Import changes from libc.
55410 2004-04-28 Bruno Haible <bruno@clisp.org>
55412 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55413 also implicitly appends .exe to executables.
55414 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55415 accepts Windows pathnames.
55416 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55417 Treat Cygwin like Windows, since it now accepts Windows pathnames.
55418 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55419 Treat Cygwin like Windows, since it now accepts Windows pathnames.
55420 Reported by Derek Robert Price <derek@ximbiot.com>.
55422 2004-04-21 Karl Berry <karl@gnu.org>
55424 * config/srclist.txt (localcharset.c): break sync.
55426 2004-04-20 Paul Eggert <eggert@twinsun.com>
55428 * m4/host-os.m4: Add a copyright notice.
55430 2004-04-20 Jim Meyering <jim@meyering.net>
55432 Change UTILS_ to gl_ in AC_DEFINE'd names.
55433 Change utils_- and jm_-prefixed variables, too.
55434 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55435 UTILS_FUNC_MKDIR_TRAILING_SLASH.
55436 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55438 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55439 Don't emit trailing blanks.
55440 Also rename jm_-prefixed variables to have gl_ prefix.
55442 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55443 Also rename jm_-prefixed variables to have gl_ prefix.
55445 * m4/jm-macros.m4: Reflect the renamings.
55446 * m4/prereq.m4: Likewise.
55448 2004-04-20 Jim Meyering <jim@meyering.net>
55450 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55453 2004-04-20 Jim Meyering <jim@meyering.net>
55454 Bruno Haible <bruno@clisp.org>
55456 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55457 memory when realloc fails.
55459 2004-04-19 Jim Meyering <jim@meyering.net>
55461 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55462 now that readutmp.c may call `free (0)'.
55464 2004-04-19 Bruno Haible <bruno@clisp.org>
55466 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55467 * m4/inttypes_h.m4: Likewise.
55468 * m4/stdint_h.m4: Likewise.
55469 * m4/intmax_t.m4: Likewise.
55470 * m4/uintmax_t.m4: Likewise.
55472 2004-04-18 Jim Meyering <jim@meyering.net>
55474 * m4/prereq.m4: Don't forbid jm_ prefix.
55476 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55477 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55478 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55479 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55480 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55481 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55482 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55483 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55484 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55485 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55486 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55487 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55488 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55489 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55490 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55491 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55492 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55493 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55494 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55496 2004-04-18 Jim Meyering <jim@meyering.net>
55498 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55499 failure, don't leak memory and do call END_UTMP_ENT.
55501 2004-04-16 Jim Meyering <jim@meyering.net>
55503 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
55504 coreutils' stat program.
55505 (gl_PREREQ): Don't require jm_PREREQ_STAT.
55507 2004-04-11 Paul Eggert <eggert@twinsun.com>
55509 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55511 (CHAR_BIT): Remove, since we assume C89.
55512 Include <stdint.h> if available, as per current Autoconf CVS advice.
55514 2004-03-31 Jim Meyering <jim@meyering.net>
55516 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55517 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55518 * m4/xalloc.m4: Likewise.
55520 2004-03-30 Paul Eggert <eggert@twinsun.com>
55522 Merge from coreutils.
55524 * m4/inttostr.m4: New file.
55525 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55526 Require AM_STDBOOL_H and gl_TIMESPEC instead.
55527 Require gl_CLOCK_TIME.
55528 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55530 2004-03-30 Paul Eggert <eggert@twinsun.com>
55532 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55533 not bool, to be more consistent with Unix conventions.
55534 Suggested by Bruno Haible.
55536 Merge from coreutils.
55538 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55539 * lib/umaxtostr.c: New files.
55541 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55542 the usual <time.h> dance.
55543 (get_date): Change signature to support fractional time stamps.
55544 All callers changed.
55545 * lib/getdate.y: Include "getdate.h" first, as we can now
55546 assume C89 and don't need to worry about 'const'.
55547 Similarly, include "unlocked-io.h" near start, not in middle.
55548 Include <limits.h>.
55549 (textint.value): Use long int rather than int.
55550 (textint.digits): Use size_t rather than int.
55551 (BILLION, LOG10_BILLION): New constants.
55552 (parser_control): New member rel_ns. Members day_ordinal,
55553 time_zone, month, day, hour, minutes, rel_year, rel_month,
55554 rel_day, rel_hour, rel_minutes, rel_seconds
55555 are now long int, not int. Member seconds is now struct timespec,
55556 not int. New member timespec_seen. Members dates_seen, days_seen,
55557 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55559 (%union.intval): Now long int, not int.
55560 New member timespec.
55561 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55562 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55563 (spec): Now is a timespec or an item list.
55564 (timespec, items): New nonterminals.
55565 (time, rel, relunit, number, get_date):
55566 Add support for fractional seconds.
55567 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55568 (gmtime, localtime, mktime): Remove decls; not needed with C89.
55569 (to_hour): First arg is now long int, not int.
55570 (to_year): Returns long int, not int.
55571 Don't treat year -70 like 70.
55572 (tm_diff): Returns long int, not int.
55573 (lookup_word): Use bool instead of int when appropriate.
55574 (yylex): Use size_t for count, not int.
55575 Detect overflow when parsing large integer constants.
55576 Add support for fractions.
55577 (get_date): Make pointers 'const' if possible.
55578 Use more-portable code to detect integer overflow.
55579 (main) [TEST]: Adjust to above changes. Test for localtime failure.
55580 Don't use ctime; it's not reliable if the year has >4 digits.
55582 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55583 This is for compatibility with BSD.
55585 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55586 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55587 From coreutils' system.h.
55589 * lib/userspec.c: Don't include "posixver.h".
55590 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55591 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55592 compatible extension. Simplify code by removing a boolean int
55593 that was always nonzero if a string was nonnull.
55595 2004-03-30 Jim Meyering <jim@meyering.net>
55597 Merge from coreutils.
55599 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55600 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55601 on some systems one must include <grp.h> before it.
55602 Reported by Christian Krackowizer.
55604 2004-03-30 Jim Meyering <jim@meyering.net>
55606 Merge from coreutils.
55608 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55610 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55611 an empty input stream.
55613 * lib/readtokens.c: Include <stdbool.h>.
55614 (readtoken): Use `size_t' rather than int/long.
55615 All callers adjusted.
55616 Use `bool' rather than `int' where appropriate.
55617 Use memset rather than an explicit loop.
55618 Use x2nrealloc rather than xrealloc.
55619 Allow the use of `\0' as a delimiter.
55620 (readtokens): Likewise.
55621 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55623 2004-03-30 Jim Meyering <jim@meyering.net>
55625 * m4/realloc.m4: Remove file, since now it does no more than
55626 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55627 the `configure.ac' section of module/realloc.
55628 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55630 2004-03-30 Bruno Haible <bruno@clisp.org>
55632 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55635 2004-03-29 Paul Eggert <eggert@twinsun.com>
55637 Merge changes to getloadavg.c from coreutils and Emacs.
55639 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55640 Define to an expression, not to the empty string.
55641 Include cloexec.h and xalloc.h.
55642 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55643 Use set_cloexec_flag rather than rolling our own.
55644 * lib/cloexec.c, lib/cloexec.h: New files.
55646 2004-03-29 Paul Eggert <eggert@twinsun.com>
55648 * m4/cloexec.m4: New file.
55650 2004-03-18 Paul Eggert <eggert@twinsun.com>
55652 * lib/getopt.h: Sync with libc CVS.
55654 2004-03-18 Paul Eggert <eggert@twinsun.com>
55655 Bruno Haible <bruno@clisp.org>
55657 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55660 2004-03-18 Paul Eggert <eggert@twinsun.com>
55661 Bruno Haible <bruno@clisp.org>
55663 * lib/mbswidth.h: Include <wchar.h> only if
55664 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55666 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55668 2004-03-09 Paul Eggert <eggert@twinsun.com>
55670 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55671 Sync with libc CVS.
55672 * lib/getopt_int.h: New file, also synced from libc.
55674 2004-03-09 Paul Eggert <eggert@twinsun.com>
55676 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55677 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
55678 Bring back getopt.c, getopt.h, getopt1.c.
55680 2004-03-07 Paul Eggert <eggert@twinsun.com>
55682 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55683 All uses changed. Check for sa_sigaction member; this fixes
55684 a bug first reported by Jason Andrade in
55685 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55687 2004-03-07 Paul Eggert <eggert@twinsun.com>
55689 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
55690 '#if' expressions. Unlike the code it replaces, it does not
55691 depend on (defined _SC_PAGESIZE). However, it does depend on
55692 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55693 first reported by Jason Andrade in
55694 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55696 2004-02-25 Simon Josefsson <jas@extundo.com>
55698 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55700 2004-02-25 Simon Josefsson <jas@extundo.com>
55702 * lib/strdup.h: New file.
55703 * lib/strdup.c: Include it.
55704 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55705 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55707 2004-02-23 Karl Berry <karl@gnu.org>
55709 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55710 (from fencepost.gnu.org:/gd/gnuorg).
55712 2004-02-23 Karl Berry <karl@gnu.org>
55714 * config/srclistvars.sh (GNUORG) [karl]: redefine.
55715 * config/srclist.txt: add maintain/standards documents.
55717 2004-02-18 Bruno Haible <bruno@clisp.org>
55719 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55720 Reported by Derek Robert Price <derek@ximbiot.com>.
55722 2004-02-16 Karl Berry <karl@gnu.org>
55724 * config/mkinstalldirs, install-sh: update from automake.
55726 2004-02-06 Karl Berry <karl@gnu.org>
55728 * m4/po.m4: update from gettext 0.14.1.
55730 2004-02-06 Karl Berry <karl@gnu.org>
55732 * lib/config.charset: update from gettext 0.14.1.
55734 2004-02-05 Paul Eggert <eggert@twinsun.com>
55736 Add comments and code, prompted by suggestions from Bruno Haible
55738 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
55739 describing the enum quoting_style values.
55740 * lib/quotearg.c (quotearg_alloc): New function.
55741 (quotearg_buffer_restyled): Treat lone { and } as special.
55742 Treat = as special. Work around bug with older shells
55743 that "see" a '\' that is really the 2nd byte of a multibyte char.
55744 Quote empty string with shell_quoting_style.
55746 2004-02-03 Bruno Haible <bruno@clisp.org>
55748 * m4/pipe.m4: New file, from GNU gettext.
55750 2004-02-03 Bruno Haible <bruno@clisp.org>
55752 * lib/pipe.h: New file, from GNU gettext.
55753 * lib/pipe.c: New file, from GNU gettext.
55755 2004-01-27 Bruno Haible <bruno@clisp.org>
55757 * m4/execute.m4: New file, from GNU gettext.
55759 2004-01-27 Bruno Haible <bruno@clisp.org>
55761 * lib/execute.h: New file, from GNU gettext.
55762 * lib/execute.c: New file, from GNU gettext.
55763 * lib/w32spawn.h: New file, from GNU gettext.
55765 2004-01-24 Paul Eggert <eggert@twinsun.com>
55767 Merge from diffutils.
55769 * lib/file-type.c (file_type): Add typed memory objects.
55770 * lib/file-type.h (S_TYPEISTMO): New macro.
55772 * lib/c-stack.h (c_stack_action): Remove argv argument.
55773 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
55774 (die): Don't calculate message unless segv_action returns.
55775 (get_stack_location, min_address_from_argv, max_address_from_argv,
55776 volatile stack_base, volatile_stack_size): Remove.
55777 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55778 that every segmentation violation is a stack overflow. (Ouch!)
55779 See Debian bug 136249 (still outstanding) for more info about why
55780 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55782 2004-01-24 Paul Eggert <eggert@twinsun.com>
55784 Exit-status fix from coreutils.
55786 Use exit_failure consistently in place of EXIT_FAILURE,
55787 so that program exit statuses are consistent on failure.
55789 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55790 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55791 * lib/argmatch.h: Comment fix to match the above.
55792 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55793 Now a macro referring to exit_failure, instead of a separate
55794 variable. Include "exitfail.h" to get it.
55795 * lib/xstrtol.h: Include "exitfail.h".
55796 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55798 * lib/long-options.c (parse_long_options): Use prototype
55799 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
55802 2004-01-21 Jim Meyering <jim@meyering.net>
55804 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55805 so as not to conflict with a different-sized __mktime_internal
55806 function in GNU libc.
55807 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55808 Problem building statically-linked `ls' reported by Michael Brunnbauer.
55810 2004-01-20 Karl Berry <karl@gnu.org>
55812 * config/config.guess: update from config.
55814 * config/srclistvars.sh: GNUWWWLICENSES for karl.
55816 2004-01-20 Bruno Haible <bruno@clisp.org>
55818 Safer stack allocation.
55819 * lib/setenv.c: Include allocsa.h.
55820 (alloca): Remove fallback definition.
55821 (freea): Remove macro.
55822 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55825 2004-01-20 Bruno Haible <bruno@clisp.org>
55827 * m4/eealloc.m4: New file, from GNU gettext.
55829 2004-01-20 Bruno Haible <bruno@clisp.org>
55831 * m4/allocsa.m4: New file, from GNU gettext.
55833 2004-01-20 Bruno Haible <bruno@clisp.org>
55835 * lib/xallocsa.h: New file, from GNU gettext.
55836 * lib/xallocsa.c: New file, from GNU gettext.
55838 2004-01-20 Bruno Haible <bruno@clisp.org>
55840 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55842 2004-01-20 Bruno Haible <bruno@clisp.org>
55844 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55845 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55848 2004-01-20 Bruno Haible <bruno@clisp.org>
55850 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55853 2004-01-20 Bruno Haible <bruno@clisp.org>
55855 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55857 2004-01-20 Bruno Haible <bruno@clisp.org>
55859 * lib/eealloc.h: New file.
55861 2004-01-20 Bruno Haible <bruno@clisp.org>
55863 * lib/binary-io.h: Avoid warnings on Cygwin.
55865 2004-01-20 Bruno Haible <bruno@clisp.org>
55867 * lib/allocsa.h: New file, from GNU gettext.
55868 * lib/allocsa.c: New file, from GNU gettext.
55870 2004-01-18 Karl Berry <karl@gnu.org>
55872 * doc/gpl.texi, doc/lgpl.texi: new files.
55874 2004-01-18 Karl Berry <karl@gnu.org>
55876 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55877 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55879 2004-01-15 Paul Eggert <eggert@twinsun.com>
55881 Merge from coreutils.
55883 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55884 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55885 (gl_DEFAULT_POSIX2_VERSION): Move
55886 the documentation from 'configure' into 'config.hin',
55887 so that 'configure --help' isn't burdened by it and
55888 we don't have to worry about its formatting there.
55889 Reword the documentation so that it's more succinct
55890 and can be run together into a single paragraph.
55891 * m4/same.m4 (gl_SAME): Check for pathconf.
55893 2004-01-15 Paul Eggert <eggert@twinsun.com>
55895 Merge from coreutils.
55897 * lib/posixver.c: Include posixver.h.
55899 * lib/same.c: Include <stdbool.h>, <limits.h>.
55900 (_POSIX_NAME_MAX): Define if not defined.
55902 (same_name): If file names are silently truncated, report
55903 that the file names are the same if they are the same after
55904 the silent truncation.
55906 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55907 conversion function.
55908 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
55909 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
55912 2004-01-15 Jim Meyering <jim@meyering.net>
55914 Merge from coreutils.
55916 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55917 if no library is required.
55918 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55919 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55920 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55921 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55922 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55923 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55924 value, $ac_cv_search_crypt, if it's "none required".
55925 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55926 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55927 not gl_FUNC_GETLOADAVG.
55928 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55929 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55931 2004-01-15 Jim Meyering <jim@meyering.net>
55933 Merge from coreutils.
55935 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
55936 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
55937 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55939 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55940 optional configure-time default.
55942 * lib/version-etc.c (version_etc_copyright): Update copyright date.
55944 * lib/xreadlink.c (xreadlink): Correct outdated comment.
55946 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
55948 Merge from coreutils.
55950 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55951 value, $ac_cv_search_nanosleep, if it's "none required".
55953 2004-01-14 Paul Eggert <eggert@twinsun.com>
55955 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55956 with like-named macro in fnmatch.c.
55957 (EXT): Use an internal constant instead.
55959 Merge fnmatch patches from glibc.
55960 * lib/fnmatch.c (mbsinit): Remove define.
55961 Add libc_hidden_ver (__fnmatch, fnmatch).
55962 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55963 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55965 2004-01-14 Karl Berry <karl@gnu.org>
55967 * config/install-sh: update from automake.
55969 2004-01-13 Karl Berry <karl@gnu.org>
55971 * config/install-sh: update from automake.
55973 2004-01-09 Karl Berry <karl@gnu.org>
55975 * config/install-sh: update from automake.
55977 2004-01-05 Karl Berry <karl@gnu.org>
55979 * config/config.{sub,guess}: update from config.
55981 2003-12-31 Karl Berry <karl@gnu.org>
55983 * config/depcomp: update from automake.
55985 2003-12-14 Karl Berry <karl@gnu.org>
55987 * lib/config.charset: update from gettext-runtime.
55989 2003-12-03 Paul Eggert <eggert@twinsun.com>
55991 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55992 Bug reported by Alfred M. Szmidt.
55994 2003-12-03 Bruno Haible <bruno@clisp.org>
55996 * m4/gettext.m4: Upgrade from gettext-0.13.
55997 * m4/po.m4: Upgrade from gettext-0.13.
55998 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55999 * m4/intmax.m4: New file, from gettext-0.13.
56000 * m4/printf-posix.m4: New file, from gettext-0.13.
56002 2003-11-29 Karl Berry <karl@gnu.org>
56004 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56006 2003-11-25 Paul Eggert <eggert@twinsun.com>
56007 Bruno Haible <bruno@clisp.org>
56009 * lib/printf-parse.h: Don't include sys/types.h.
56010 (ARG_NONE): New macro.
56011 (char_directive): Change type of *arg_index fields to size_t.
56012 * lib/printf-parse.c: Don't include sys/types.h.
56013 (SSIZE_MAX): Remove macro.
56014 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56015 Remove unnecessary overflow check.
56016 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56019 2003-11-25 Bruno Haible <bruno@clisp.org>
56021 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56023 2003-11-25 Bruno Haible <bruno@clisp.org>
56025 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56028 2003-11-24 Paul Eggert <eggert@twinsun.com>
56030 * modules/alloca: Remove dependency on xalloc.
56032 2003-11-24 Paul Eggert <eggert@twinsun.com>
56034 * lib/alloca.c: Remove dependency on xalloc module.
56035 (xalloc_die): Remove.
56036 (memory_full) [!defined emacs]: New macro.
56037 [!defined emacs]: Don't include xalloc.h.
56038 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56039 address arithmetic overflows. Change datatypes a bit to avoid
56042 2003-11-22 Jim Meyering <jim@meyering.net>
56044 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56047 2003-11-21 Karl Berry <karl@gnu.org>
56049 * config/config.{sub,guess}: update from config.
56051 2003-11-18 Karl Berry <karl@gnu.org>
56053 * config/config.{sub,guess}: update from config.
56055 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56057 2003-11-17 Paul Eggert <eggert@twinsun.com>
56059 * README: Mention that S+T cannot overflow if S is the size of
56060 an existing object and T is sufficiently small.
56062 2003-11-17 Jim Meyering <jim@meyering.net>
56064 On systems without utime and without a utimes function capable of
56065 dealing with a NULL struct utimbuf* argument, this utime replacement
56066 could -- in unusual circumstances -- leak a file descriptor.
56067 * lib/utime.c: Include <unistd.h> and <errno.h>.
56068 (utime_null): Be sure to close `fd' and to preserve errno.
56069 Reported by Geoff Collyer via Arnold Robbins.
56071 2003-11-17 Bruno Haible <bruno@clisp.org>
56073 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56074 (Depends-on): Add xsize.
56076 2003-11-17 Bruno Haible <bruno@clisp.org>
56078 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56080 2003-11-17 Bruno Haible <bruno@clisp.org>
56082 * lib/vasnprintf.c (alloca): Remove fallback definition.
56083 (freea): Remove definition.
56084 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56085 Reported by Paul Eggert.
56087 2003-11-16 Paul Eggert <eggert@twinsun.com>
56088 Bruno Haible <bruno@clisp.org>
56090 Protect against address arithmetic overflow.
56091 * lib/printf-args.h: Include stddef.h.
56092 (arguments): Change type of field 'count' to size_t.
56093 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56094 'unsigned int' where appropriate.
56095 * lib/printf-parse.h: Include sys/types.h.
56096 (char_directive): Change type of *arg_index fields to ssize_t.
56097 (char_directives): Change type of fields 'count', max_*_length to
56099 * lib/printf-parse.c: Include sys/types.h and xsize.h.
56100 (SSIZE_MAX): Define fallback value.
56101 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56102 instead of 'int' where appropriate. Check a_allocated, d_allocated
56103 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56104 * lib/vasnprintf.c: Include xsize.h.
56105 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56106 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56107 overflow. Avoid wraparound when converting a width or precision from
56110 2003-11-16 Bruno Haible <bruno@clisp.org>
56112 Update from GNU gettext.
56113 * lib/printf-parse.c: Generalize to it can be compiled for wide
56115 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56116 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56117 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56118 SNPRINTF): New macros.
56119 Don't include <alloca.h> if the file is used inside libintl.
56120 (local_wcslen): New function, for Solaris 2.5.1.
56121 (VASNPRINTF): Use it instead of wcslen.
56123 2003-11-16 Bruno Haible <bruno@clisp.org>
56125 * lib/xsize.h (xmax): New function.
56126 (xsum, xsum3, xsum4): Declare as "pure" functions.
56128 2003-11-12 Paul Eggert <eggert@twinsun.com>
56130 * modules/xalloc (Files): Undo latest change, since xalloc.h
56131 no longer needs SIZE_MAX or PTRDIFF_MAX.
56133 2003-11-12 Paul Eggert <eggert@twinsun.com>
56135 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56138 2003-11-12 Paul Eggert <eggert@twinsun.com>
56140 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56141 "return", to pacify some unknown compiler. Problem reported
56142 by Joerg Schilling.
56144 2003-11-12 Paul Eggert <eggert@twinsun.com>
56146 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56147 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56148 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
56149 heuristic is just as accurate as far as we know, and it removes a
56150 dependency on size_max.m4 and ptrdiff_max.m4.
56152 2003-11-11 Bruno Haible <bruno@clisp.org>
56154 * modules/xsize (Files): Add m4/size_max.m4.
56155 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56157 2003-11-11 Bruno Haible <bruno@clisp.org>
56159 * m4/size_max.m4: New file.
56160 * m4/ptrdiff_max.m4: New file.
56161 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56162 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56163 (gl_XALLOC): Invoke it.
56165 2003-11-11 Bruno Haible <bruno@clisp.org>
56167 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56168 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56171 2003-11-10 Paul Eggert <eggert@twinsun.com>
56173 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56174 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56175 rejected some allocations of exactly SIZE_MAX - 2 bytes.
56177 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56178 not (size_t) -1, since it's defined here.
56180 2003-11-09 Karl Berry <karl@gnu.org>
56182 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56184 2003-11-06 Paul Eggert <eggert@twinsun.com>
56186 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56187 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56188 Reject sizes of exactly SIZE_MAX bytes.
56189 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56190 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56192 2003-11-05 Bruno Haible <bruno@clisp.org>
56194 * lib/xsize.h: Include limits.h, to avoid a possible collision with
56195 SIZE_MAX defined in <limits.h> on Solaris.
56197 2003-11-04 Jim Meyering <jim@meyering.net>
56199 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56200 variable names, rather than @VAR@.
56201 * modules/poll: Likewise.
56203 2003-11-04 Bruno Haible <bruno@clisp.org>
56205 * modules/xsize: New file.
56206 * modules/linebreak: Depend on xsize.
56207 * MODULES.html.sh (func_all_modules): Add xsize.
56209 2003-11-04 Bruno Haible <bruno@clisp.org>
56211 * m4/xsize.m4: New file.
56213 2003-11-04 Bruno Haible <bruno@clisp.org>
56215 * lib/xsize.h: New file.
56216 * lib/linebreak.c: Include xsize.h.
56217 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56218 argument for overflow.
56219 Suggested by Paul Eggert.
56221 2003-11-03 Karl Berry <karl@gnu.org>
56223 * config/config.{guess,sub}: update from config.
56225 2003-11-03 Jim Meyering <jim@meyering.net>
56227 * modules/userspec (lib_SOURCES): Add userspec.h.
56228 (Include): Add "userspec.h".
56229 Improve description.
56231 2003-11-03 Jim Meyering <jim@meyering.net>
56233 * lib/userspec.c: Include "userspec.h".
56234 * lib/userspec.h: New file.
56236 2003-11-03 Bruno Haible <bruno@clisp.org>
56238 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56240 2003-11-03 Bruno Haible <bruno@clisp.org>
56242 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56243 available, to avoid (extremely rare) race condition.
56244 Suggested by Paul Eggert.
56246 2003-11-02 Karl Berry <karl@gnu.org>
56248 * config/srclist.txt (vasprintf.c): sync broken, sigh.
56250 2003-10-31 Paul Eggert <eggert@twinsun.com>
56252 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56253 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56254 (read_filesystem_list): Set and use me_type_malloced.
56255 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56256 whatever the type happens to be), for brevity and consistency.
56257 Check for size calculation overflow on Alphas running OSF/1.
56259 2003-10-31 Jim Meyering <jim@meyering.net>
56261 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56263 * lib/linebuffer.c: Include <string.h> for declaration of memset.
56265 2003-10-30 Paul Eggert <eggert@twinsun.com>
56266 Bruno Haible <bruno@clisp.org>
56268 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56269 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56271 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
56273 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56274 netbsd*-gnu*. Suggested by Robert Millan.
56276 2003-10-29 Paul Eggert <eggert@twinsun.com>
56278 * modules/group-member: Depend on stdbool.
56280 2003-10-29 Paul Eggert <eggert@twinsun.com>
56282 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56284 2003-10-29 Paul Eggert <eggert@twinsun.com>
56286 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
56287 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
56288 after the 'gnu' in these cases. This fixes some bugs in the
56289 previous change, and is based on suggestions by Robert Millan.
56291 2003-10-29 Paul Eggert <eggert@twinsun.com>
56293 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56294 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
56296 * lib/quotearg.c (quotearg_n_options): Use it.
56297 * lib/group-member.c: Include <stdbool.h>.
56298 (free_group_info): Arg is now const *; don't free arg.
56299 (get_group_info): Now returns bool and accepts struct group_info *,
56300 rather than returning a malloc'ed struct group_info *.
56301 All uses changed. Check for overflow in internal size calculation.
56303 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56304 rather than xmalloc/xrealloc.
56305 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56306 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
56307 conformance bug: the old code used a pointer after freeing the
56308 storage that it addressed.
56309 * lib/hash.c (hash_initialize): Simplify the code by using
56310 xalloc_oversized rather than doing it by hand.
56311 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56312 the buffer preserved. Use free and xmalloc instead.
56313 * lib/quotearg.c (quotearg_n_options): Likewise.
56314 Use a simpler test for size overflow. Don't use xalloc_oversized
56315 because unsigned int might be wider than size_t (!); this suggests
56316 that we should switch from unsigned int to size_t for slot numbers.
56318 2003-10-28 Paul Eggert <eggert@twinsun.com>
56320 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56321 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
56322 NetBSD kernels. Requested by Richard Stallman.
56324 2003-10-27 Paul Eggert <eggert@twinsun.com>
56326 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56327 to allocate the returned structure. Do not allocate a subarray,
56328 as x2nrealloc will do that.
56329 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56330 instead of xnrealloc.
56331 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56333 2003-10-27 Bruno Haible <bruno@clisp.org>
56335 * lib/stdbool_.h: Better support for BeOS.
56337 2003-10-26 Paul Eggert <eggert@twinsun.com>
56339 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56342 2003-10-26 Paul Eggert <eggert@twinsun.com>
56344 * lib/xalloc.h (xalloc_oversized): New static inline function, for
56345 callers that want to do their own size-overflow checking. Include
56346 <stdbool.h>, since xalloc_oversized returns bool.
56347 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
56348 to use xalloc_oversized.
56350 Add two functions x2realloc, x2nrealloc, for programs that grow
56351 arrays dynamically by doubling their sizes.
56352 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56353 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56356 Port to C99 semantics for 'inline' of external functions.
56357 Bug reported by Bruno Haible.
56358 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56359 with the old contents of xnmalloc.
56360 (xnmalloc, xmalloc): Use it.
56361 (xnrealloc_inline): New static inline function,
56362 with the old contents of xnrealloc.
56363 (xnrealloc, xrealloc): Use it.
56365 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56368 2003-10-26 Karl Berry <karl@gnu.org>
56370 * config/srclist.txt (COPYING.DOC): no longer available from
56371 /gd/gnuorg; don't know where the ultimate source is.
56373 2003-10-25 Paul Eggert <eggert@twinsun.com>
56375 Fix several address-calculation bugs in the hash modules,
56376 plus some minor code cleanup.
56378 * lib/hash.h: Include <stdbool.h>, for bool.
56379 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56380 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56381 hash_get_n_entries, hash_get_max_bucket_length,
56382 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56383 hash_rehash): Use size_t rather than unsigned.
56384 * lib/hash.c (struct hash_table, hash_get_n_buckets,
56385 hash_get_n_buckets_used, hash_get_n_entries,
56386 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56387 hash_get_entries, hash_do_for_each, hash_string, is_prime,
56388 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56390 (SIZE_MAX): Define if not defined.
56391 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56392 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56394 Use const * when possible.
56395 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56396 (check_tuning): Fix bug: if tuning parameters were very close to
56397 0 or 1, rounding errors could have caused subscript violations.
56398 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56399 (hash_initialize): Add 'fail:' label
56400 to free table and return NULL, and use it to simplify code.
56401 Use calloc rather than clearing the storage ourself.
56402 (hash_initialize, hash_rehash): Check for arithmetic overflow in
56403 buffer size calculations.
56404 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56405 Include <stddef.h>, for size_t.
56406 * lib/hash-pjw.c (hash_pjw): Likewise.
56407 Switch to method described by Bruno Haible.
56408 Include <limits.h>, for CHAR_BIT.
56409 (SIZE_BITS): New macro.
56411 2003-10-23 Paul Eggert <eggert@twinsun.com>
56413 * m4/getline.m4 (AM_FUNC_GETLINE):
56414 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56415 hosts. Problem reported by Derek Robert Price in
56416 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56417 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56418 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56420 2003-10-21 Paul Eggert <eggert@twinsun.com>
56422 * lib/getndelim2.c (getndelim2): When size calculation overflows,
56423 ceiling the allocation at NMAX bytes rather than silently
56424 discarding input bytes before NMAX is reached. This makes
56425 a difference only if NMAX exceeds SIZE_MAX / 2.
56427 * lib/obstack.c: Merge from glibc.
56428 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56429 Add libc_hidden_def (_obstack_newchunk).
56430 (_obstack_free) [! defined _LIBC]: Remove.
56431 [defined _LIBC]: Make a strong alias from obstack_free, rather than
56432 a clone of the function body.
56433 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56434 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56436 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56438 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56441 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56442 (obstack_ptr_grow_fast, obstack_int_grow_fast):
56443 Don't use lvalue casts, as GCC plans to remove support for them
56444 in GCC 3.5. Reported by Joseph S. Myers. This bug
56445 was also present in the non-GCC version, indicating that this
56446 code had always been buggy and had never been widely used.
56447 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56448 Use the fast variant of each macro, rather than copying the
56449 definiens of the fast variant; that way, we'll be more likely to
56450 catch future bugs in the fast variants.
56452 2003-10-20 Bruno Haible <bruno@clisp.org>
56454 * modules/wait-process: New file.
56455 * MODULES.html.sh (func_all_modules): Add wait-process.
56457 2003-10-20 Bruno Haible <bruno@clisp.org>
56459 * m4/wait-process.m4: New file.
56461 2003-10-20 Bruno Haible <bruno@clisp.org>
56463 * lib/wait-process.h: New file, from GNU gettext.
56464 * lib/wait-process.c: New file, from GNU gettext.
56466 2003-10-19 Jim Meyering <jim@meyering.net>
56468 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56471 2003-10-18 Karl Berry <karl@gnu.org>
56473 * config/config.guess: update from config.
56475 2003-10-16 Paul Eggert <eggert@twinsun.com>
56477 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56478 (getgroups): First arg is int, not size_t.
56479 Don't let 'free' mangle errno.
56481 2003-10-16 Paul Eggert <eggert@twinsun.com>
56483 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56485 2003-10-16 Karl Berry <karl@gnu.org>
56487 * config/config.{guess,sub}: update from config.
56489 2003-10-16 Jim Meyering <jim@meyering.net>
56491 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56494 2003-10-15 Paul Eggert <eggert@twinsun.com>
56496 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56497 (SIZE_MAX): Remove.
56498 (new_exclude, add_exclude_file): Initial size no longer needs to
56500 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56501 our own address arithmetic overflow checking.
56503 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56504 (fnmatch): Do not alloca more than 2000 wide characters;
56505 instead, use malloc for large buffers.
56506 Check for address arithmetic overflow, and return -1
56507 with errno set to ENOMEM in that case.
56508 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56509 (NEW_PATTERN): Do not alloca more than 8000 bytes;
56510 instead, return -1. Check for address arithmetic overflow.
56512 2003-10-14 Paul Eggert <eggert@twinsun.com>
56514 Handle invalid suffixes and overflow independently, so that
56515 callers can treat them independently as needed. Fix some bugs in
56516 suffix handling, e.g., "100k@" was not diagnosed as an invalid
56517 suffix for a human-readable blocksize. The major caller-visible
56518 change is the addition of a new
56519 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56520 that both overflow and suffix chars were found.
56522 * lib/human.c (humblock): Don't check separately for invalid suffix
56523 char; that is xstrtoumax's job (now that its bug is fixed).
56524 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56525 INTMAX_MAX]: New macros.
56526 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56527 TYPE_MAXIMUM): New macros.
56528 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56529 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56530 if overflow occurs, as it's what __strtol does and it's more useful
56532 (__xstrtol): If __strtol reports some error other than ERANGE,
56533 reflect it to the caller as LONGINT_INVALID. If it reports
56534 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56535 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56536 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56538 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
56539 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56540 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56541 [defined UINTMAX_MAX]: New macros.
56543 2003-10-14 Bruno Haible <bruno@clisp.org>
56545 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56547 2003-10-14 Bruno Haible <bruno@clisp.org>
56549 * m4/sig_atomic_t: New file, from GNU gettext.
56550 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56552 2003-10-14 Bruno Haible <bruno@clisp.org>
56554 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56555 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56556 Also use volatile where needed.
56558 2003-10-12 Paul Eggert <eggert@twinsun.com>
56560 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
56561 Change maintainer from Bruno Haible to 'all'.
56563 2003-10-12 Paul Eggert <eggert@twinsun.com>
56565 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56567 2003-10-12 Paul Eggert <eggert@twinsun.com>
56569 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56570 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56571 and define in terms of the other primitives.
56572 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56573 (SIZE_MAX): Define if not already defined.
56574 (array_size_overflow): New function.
56575 (xalloc_die): Abort instead of exiting if 'error' returns.
56576 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56577 (xmalloc, xrealloc): Use them.
56578 (xcalloc): Check for address arithmetic overflow.
56579 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56580 a bit faster than strcpy.
56582 2003-10-10 Simon Josefsson <jas@extundo.com>
56584 * modules/argp (Depends-on): Add restrict and strcase.
56586 2003-10-10 Simon Josefsson <jas@extundo.com>
56588 * m4/argp.m4: Add AC_C_INLINE.
56590 2003-10-08 Paul Eggert <eggert@twinsun.com>
56592 Merge getpass from libc, plus a few fixes.
56594 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56595 Include <stdbool.h>.
56596 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56597 __fsetlocking to empty.
56598 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56599 do include <bits/libc-lock.h>.
56600 Do not include <fcntl.h>; not needed.
56601 [_LIBC]: Include <wchar.h>.
56602 (NOTCANCEL_MODE): New macro.
56603 (flockfile, funlockfile) [_LIBC]: New macros.
56604 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56605 [!_LIBC]: New macros.
56606 (call_fclose): New function.
56607 (getpass): Use it. Save tty stream separately; this simplifies the
56608 code and makes it more reliable if stdin happens to equal stdout.
56609 Invoke __fsetlocking on tty.
56610 Handle thread cancellation if needed.
56611 Namespace cleanup (use __tcgetattr, __getline).
56612 Use bool for Booleans.
56613 [USE_IN_LIBIO]: Handle wide streams.
56614 [!_LIBC]: Unconditionally do the fseek, since we don't know what
56615 stream might go where.
56617 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56618 doesn't have to include <stdio.h> before us.
56619 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56620 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56621 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56622 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56623 if not declared, so that we can use getpass.c code from libc without
56625 (flockfile, ftrylockfile, funlockfile): New macros.
56627 2003-10-08 Paul Eggert <eggert@twinsun.com>
56629 * modules/getpass: Depend on stdbool.
56631 2003-10-08 Paul Eggert <eggert@twinsun.com>
56633 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56635 2003-10-07 Karl Berry <karl@gnu.org>
56637 * config/config.{guess,sub}: update from config.
56639 2003-10-06 Jim Meyering <jim@meyering.net>
56640 Bruno Haible <bruno@clisp.org>
56642 This lets translators provide better translations for the
56643 "Written by ..." part of --version output.
56644 * lib/version-etc.h: Include stdarg.h.
56645 (version_etc_copyright): Declare as readonly.
56646 (version_etc): Make this function variadic with a NULL-terminated list
56647 of author name strings.
56648 (version_etc_va): New declaration.
56649 * lib/version-etc.c: Include stdarg.h, stdlib.h.
56650 (version_etc_copyright): Declare as readonly.
56651 (version_etc_va): New function. Provide a different translatable string
56652 for each possible number of authors < 10. Abbreviate when there are 10
56654 (version_etc): Make this function variadic. Call version_etc_va.
56655 Suggestion from Gary V. Vaughan.
56657 * lib/long-options.h (parse_long_options): Change prototype: the
56658 authors string is moved to the end and becomes variadic.
56659 * lib/long-options.c: Include stdarg.h.
56660 (parse_long_options): Make this function variadic, too.
56661 Call version_etc_va, not version_etc.
56663 2003-10-06 Bruno Haible <bruno@clisp.org>
56665 * modules/version-etc-2: Remove file.
56666 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56668 2003-10-06 Bruno Haible <bruno@clisp.org>
56670 * modules/fatal-signal: New file.
56671 * MODULES.html.sh (func_all_modules): Add fatal-signal.
56673 2003-10-06 Bruno Haible <bruno@clisp.org>
56675 * m4/fatal-signal.m4: New file.
56676 * m4/signalblocking.m4: New file, from GNU gettext.
56678 2003-10-06 Bruno Haible <bruno@clisp.org>
56680 * lib/version-etc-2.h: Remove file.
56681 * lib/version-etc-2.c: Remove file.
56683 2003-10-06 Bruno Haible <bruno@clisp.org>
56685 * lib/fatal-signal.h: New file, from GNU gettext.
56686 * lib/fatal-signal.c: New file, from GNU gettext.
56688 2003-10-05 Paul Eggert <eggert@twinsun.com>
56690 * README: Rework advice for preventing empty .o files.
56691 Don't recommend ELIDE constructs. Recommend <stddef.h>,
56694 2003-10-04 Karl Berry <karl@gnu.org>
56696 * lib/argp*: update from libc.
56698 2003-10-04 Karl Berry <karl@gnu.org>
56700 * config/config.{guess,sub}: update from config.
56702 2003-10-02 Bruno Haible <bruno@clisp.org>
56704 * modules/lchown (Include): Add lchown.h.
56705 * modules/time_r (Include): Use "..." syntax.
56706 * modules/xgetdomainname (Include): Add xgetdomainname.h.
56708 2003-10-01 Simon Josefsson <jas@extundo.com>
56710 * MODULES.html.sh (func_all_modules): Move gethostname from section
56711 'based on' to section 'lacking' POSIX:2001.
56713 2003-10-01 Larry Jones <lawrence.jones@eds.com>
56715 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56716 to output mode on the same stream.
56718 2003-09-29 Paul Eggert <eggert@twinsun.com>
56720 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56721 Fix arg typo in previous patch.
56723 2003-09-28 Jim Meyering <jim@meyering.net>
56725 * lib/error.c: Correct cpp indentation.
56727 2003-09-27 Paul Eggert <eggert@twinsun.com>
56729 * modules/free: New file.
56731 2003-09-27 Paul Eggert <eggert@twinsun.com>
56733 * m4/free.m4: New file.
56735 2003-09-27 Paul Eggert <eggert@twinsun.com>
56737 * lib/minmax.h (MIN, MAX)
56738 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56739 Omit the special code that used __typeof__, since we worry that
56740 it could be more trouble than it's worth. See:
56741 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56742 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56744 * lib/free.c: New file.
56746 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
56748 Trivial fixes to Makefile.am parts of module listings.
56749 * modules/strstr: Append strstr.h to lib_SOURCES.
56750 * modules/strcase: Likewise, for strcase.h.
56752 2003-09-27 Karl Berry <karl@gnu.org>
56754 * config/mkinstalldirs: update from automake.
56756 2003-09-26 Paul Eggert <eggert@twinsun.com>
56758 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56759 (error_tail): Do not loop, reallocating temporary buffer, since
56760 the output cannot contain more wide characters than the input
56761 contains bytes, the size must be big enough already. This avoids
56762 one potential size overflow calculation. Check for size overflow
56763 when calculating temporary buffer size. Free temporary buffer
56764 when done, if it was allocated with malloc; this plugs a memory
56765 leak. Remove casts from void * to pointers, that are no longer
56766 needed now that we're assuming C89 or better.
56768 Merge error changes from glibc.
56770 * lib/error.c, error.h: Update copyright notice header to match glibc.
56771 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56772 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56773 Disable cancellation while printing error.
56774 * lib/error.h: Prepend __ to parameter names.
56776 2003-09-26 Jim Meyering <jim@meyering.net>
56778 * lib/error.c (error_tail): Move some declarations
56779 into inner scope where the local variables are used.
56781 2003-09-26 Bruno Haible <bruno@clisp.org>
56783 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56785 Don't define stpncpy through config.h; it's now done through stpncpy.h.
56787 2003-09-26 Bruno Haible <bruno@clisp.org>
56789 * lib/stpncpy.h (gnu_stpncpy): New declaration.
56790 (stpncpy): Define as alias for gnu_stpncpy.
56791 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56793 2003-09-25 Simon Josefsson <jas@extundo.com>
56795 * lib/xgetdomainname.h: New file.
56796 * lib/xgetdomainname.c: New file.
56798 2003-09-25 Simon Josefsson <jas@extundo.com>
56799 Bruno Haible <bruno@clisp.org>
56801 * modules/getdomainname: New file.
56802 * modules/xgetdomainname: New file.
56803 * MODULES.html.sh (func_all_modules): Add getdomainname,
56806 2003-09-25 Simon Josefsson <jas@extundo.com>
56807 Bruno Haible <bruno@clisp.org>
56809 * m4/getdomainname.m4: New file.
56811 2003-09-25 Simon Josefsson <jas@extundo.com>
56812 Bruno Haible <bruno@clisp.org>
56814 * lib/getdomainname.h: New file.
56815 * lib/getdomainname.c: New file.
56817 2003-09-25 Karl Berry <karl@gnu.org>
56819 * lib/argp-fmtstream.c, argp-help.c: update from libc.
56821 2003-09-25 Karl Berry <karl@gnu.org>
56823 * config/install-sh: update from automake.
56825 2003-09-25 Bruno Haible <bruno@clisp.org>
56827 * modules/version-etc-2: New file, from modules/version-etc with
56829 * MODULES.html.sh (func_all_modules): Add version-etc-2.
56831 2003-09-25 Bruno Haible <bruno@clisp.org>
56833 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56834 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56836 2003-09-24 Simon Josefsson <jas@extundo.com>
56838 * modules/xgethostname: Add xgethostname.h.
56840 2003-09-24 Paul Eggert <eggert@twinsun.com>
56842 * lib/linebuffer.c (freebuffer): Don't free the argument, just
56843 the buffer associated with the argument. Bug reported by
56846 2003-09-24 Paul Eggert <eggert@twinsun.com>
56848 * README: Document assumptions that 'int' is at least 32 bits
56849 wide, that integer arithmetic is 2's complement without overflow,
56850 that there are no holes in integer values, that adding sizes of
56851 two nonoverlapping objects can't overflow, and that all-bits-zero
56852 yields scalar zero. Fix spelling and capitalization typos.
56854 2003-09-19 Karl Berry <karl@gnu.org>
56856 * lib/argp.h: update from libc.
56858 2003-09-17 Paul Eggert <eggert@twinsun.com>
56860 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56861 to avoid spurious warnings like "AC_RUN_IFELSE was called before
56862 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56864 2003-09-17 Paul Eggert <eggert@twinsun.com>
56866 * gnulib-tool: Use "test -h", not "test -L", for portability
56867 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
56868 (tags_regexp): Remove, since \| doesn't conform to POSIX.
56869 (sed_extract_prog): Issue s commands one-by-one, rather than
56870 using \| in one s command.
56872 2003-09-16 Paul Eggert <eggert@twinsun.com>
56874 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56875 input error, instead of returning NULL the next time we are called
56876 (and therefore losing track of errno).
56878 2003-09-16 Bruno Haible <bruno@clisp.org>
56880 * gnulib-tool (func_create_testdir): Warn about duplicated
56883 2003-09-15 Paul Eggert <eggert@twinsun.com>
56885 * modules/argmatch, modules/fatal, modules/obstack,
56886 modules/xalloc, modules/xgethostname: Sort dependencies by
56887 importance, not alphabetically.
56889 2003-09-15 Paul Eggert <eggert@twinsun.com>
56891 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56892 fails, so that the caller gets the proper errno.
56894 * lib/readutmp.c (read_utmp): Likewise.
56895 Check for fstat error. Close stream and free storage
56898 2003-09-14 Karl Berry <karl@gnu.org>
56900 * config/srclist.txt (strdup.c): disable for c89 changes.
56902 2003-09-14 Jim Meyering <jim@meyering.net>
56904 * lib/getloadavg.c: Correct cpp indentation.
56905 * lib/strdup.c: Likewise.
56906 * lib/vasnprintf.c: Likewise.
56908 2003-09-14 Bruno Haible <bruno@clisp.org>
56910 * modules/fwriteerror: New file.
56911 * MODULES.html.sh (func_all_modules): Add fwriteerror.
56913 2003-09-14 Bruno Haible <bruno@clisp.org>
56915 * lib/fwriteerror.h: New file.
56916 * lib/fwriteerror.c: New file.
56918 2003-09-12 Paul Eggert <eggert@twinsun.com>
56920 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56921 modules/xgethostname, modules/xalloc: Depend on exit.
56923 2003-09-12 Paul Eggert <eggert@twinsun.com>
56925 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56927 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56928 and AC_MINIX, too, so that their extensions are available.
56930 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
56931 This macro has been superseded by gl_BACKUPFILE.
56933 More patches to assume C89 or better.
56935 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56937 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56939 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56940 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56941 Include <string.h>, <stdlib.h> unconditionally.
56942 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56943 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56944 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56945 headers or for string.h.
56946 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56949 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56951 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56952 * m4/userspec.m4 (gl_USERSPEC): Likewise.
56953 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56954 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56955 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56956 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56958 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56959 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56960 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56962 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56963 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56964 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56967 2003-09-12 Paul Eggert <eggert@twinsun.com>
56969 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56970 * lib/obstack.c [!defined _LIBC]: Likewise.
56971 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56972 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56973 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56975 More changes to assume C89 or better.
56977 * lib/error.c (error_tail): Assume vprintf.
56979 * lib/argmatch.c (getenv): Remove decl.
56980 * lib/progreloc.c (get_full_program_name): Define via prototype.
56981 * lib/setenv.c (clearenv): Likewise.
56982 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56984 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56985 (malloc, memcpy): Remove decls.
56986 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56987 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56988 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56989 (memcpy): Remove macro.
56990 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56991 (__P): Remove. All uses removed.
56992 (PTR): Remove. All uses changed to void *.
56993 (CHAR_BIT, NULL): Remove.
56994 (spaces, zeros, memset_space, memset_zero)
56995 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56997 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56998 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56999 Define with prototype.
57000 Remove now-unnecessary prototype decl.
57001 (extra_args_spec): Assume ANSI C. All uses changed.
57002 (extra_args_spec_iso): Remove.
57003 (my_strftime, emacs_strftimeu): Define via prototype.
57004 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57006 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57007 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57008 (strtoul, strtol): Remove decls.
57009 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57011 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57012 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
57013 (LOCALE_PARAM_PROTO): New macro.
57014 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57015 (INTERNAL (strtol), strtol): Define with a prototype.
57016 (PARAMS): Remove. All uses removed.
57017 * lib/tempname.c: Include <string.h> unconditionally.
57018 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57019 * lib/xgethostname.c (main): Define with a prototype.
57020 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57021 Include <stdlib.h> unconditionally.
57022 (calloc, malloc, realloc, free): Remove decls.
57023 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57024 Include <stdlib.h> unconditionally. Sort include file names.
57026 (xstrtod): Define with a prototype.
57027 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57028 (strtol, strtoul): Remove decls.
57030 2003-09-11 Paul Eggert <eggert@twinsun.com>
57032 More patches to assume C89 or better.
57033 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57034 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57035 string.h, memchr, STDC_HEADERS.
57037 2003-09-11 Paul Eggert <eggert@twinsun.com>
57039 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57040 Include <stdlib.h>, <string.h> unconditionally.
57041 Remove now-unnecessary cast to char *.
57042 * lib/strnlen.c: Include <string.h> unconditionally.
57043 * lib/yesno.c (yesno): Define with a prototype.
57045 2003-09-11 Bruno Haible <bruno@clisp.org>
57047 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57049 2003-09-10 Jim Meyering <jim@meyering.net>
57051 * lib/error.c: Correct indentation of cpp directives.
57053 2003-09-10 Bruno Haible <bruno@clisp.org>
57055 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57056 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57057 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57058 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57059 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57060 <stdlib.h> and <string.h> checks.
57061 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57062 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57064 2003-09-10 Bruno Haible <bruno@clisp.org>
57066 * lib/strcspn.c: Include <string.h> unconditionally.
57067 * lib/strpbrk.c: Include <string.h> unconditionally.
57068 * lib/strstr.c: Include <string.h> unconditionally.
57069 * lib/unicodeio.c: Include <string.h> unconditionally.
57070 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57071 * lib/unsetenv.c: Likewise.
57072 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57073 * lib/yesno.c: Include <stdlib.h> unconditionally.
57074 (rpmatch): Add prototype.
57076 2003-09-09 Paul Eggert <eggert@twinsun.com>
57078 More patches to assume C89 or better.
57079 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57080 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57081 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57083 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57085 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57087 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57089 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57090 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57091 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57093 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57094 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57096 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57098 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57099 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57100 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57101 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57102 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57103 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57105 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57106 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57107 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57108 C headers, or for string.h.
57109 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57110 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57111 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57112 headers, memory.h, stdlib.h, string.h, strings.h.
57113 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57114 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57115 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57117 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57118 headers, memory.h, string.h.
57119 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57120 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57122 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57124 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57125 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57126 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57127 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57128 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57130 2003-09-09 Paul Eggert <eggert@twinsun.com>
57134 * lib/acosl.c (main): Use a prototype.
57135 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57138 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57140 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57141 (getopt, etopt_long, getopt_long_only, _getopt_internal)
57142 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57144 * lib/getopt.c (const): Remove macro.
57145 Include <string.h> unconditionally.
57146 (my_index): Remove; all uses changed to strchr.
57147 (strlen): Remove decl.
57148 (exchange): Remove forward decl; no longer needed.
57149 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57150 Define with prototype.
57151 * lib/getopt1.c (const): Remove macro.
57152 (getopt_long, getopt_long_only, main): Define with prototype.
57154 * lib/getugroups.c: Include <string.h> unconditionally.
57156 * lib/getusershell.c: Include <stdlib.h> unconditionally.
57157 (getusershell, setusershell, endusershell, readname, main):
57158 Define with prototypes.
57160 * lib/group-member.c: Include group-member.h first.
57161 Include <stdlib.h> unconditionally.
57163 * lib/hard-locale.c: Include hard-locale.h first.
57164 Include <stdlib.h>, <string.h> unconditionally.
57166 * lib/hash.c (free, malloc): Remove decls.
57167 Include <stdlib.h> unconditionally.
57169 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57170 (getenv): Do not declare.
57172 * lib/idcache.c: Include <string.h> unconditionally.
57174 * lib/long-options.c: Include long-options.h first, to test interface.
57175 Include <stdlib.h> unconditionally.
57177 * lib/makepath.c: Include makepath.h first, to test interface.
57178 Include <stdlib.h> and <string.h> unconditionally.
57180 * lib/linebuffer.c: Include <stdlib.h>.
57181 (free): Remove decl.
57183 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57184 stddef.h. rpl_malloc returns void *, not char *.
57185 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
57188 * lib/md5.h: Include <limits.h> unconditionally.
57189 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57190 (__P): Remove; all uses removed.
57191 * lib/md5.c: Include "md5.h" first.
57192 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57193 md5_buffer, md5_process_bytes, md5_process_block):
57194 Define with prototypes.
57195 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
57196 * lib/sha.c: Include "sha.h" first.
57197 Include <stdlib.h>, <string.h> unconditionally.
57199 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57200 * lib/memcmp.c (__ptr_t): Likewise.
57201 * lib/memrchr.c (__ptr_t): Likewise.
57202 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57203 Include <string.h> unconditionally.
57204 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57205 * lib/memchr.c: Include <stdlib.h> unconditionally.
57206 * lib/memchr.c (LONG_MAX): Remove.
57207 * lib/memrchr.c (LONG_MAX): Likewise.
57208 * lib/memchr.c (__memchr): Define via a prototype.
57209 * lib/memrchr.c (__memrchr): Likewise.
57210 * lib/memcmp.c (__P): Remove, and remove all uses.
57211 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57212 Remove forward decls; no longer needed.
57213 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57214 Use types required by C89 in prototype.
57216 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57217 * lib/savedir.c: Likewise.
57218 * lib/mkdir.c (free): Remove decl.
57219 * lib/rmdir.c (rmdir): Define with a prototype.
57220 * lib/savedir.c: Include savedir.h first, to test interface.
57222 * lib/mktime.c (STDC_HEADERS): Remove.
57223 Include <stdlib.h>, <string.h> unconditionally.
57225 * lib/modechange.c: Include <stdlib.h> unconditionally.
57226 (malloc): Remove decl.
57228 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57229 (free): Remove decl.
57231 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57232 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57233 (This type really should be intptr_t, but that's a C99ism.)
57234 (_obstack_memcpy): Remove: all uses changed to memcpy.
57235 Include <string.h> unconditionally.
57236 (struct obstack): Assume __STDC__ for types of members
57237 chunkfun, freefun, extra_arg.
57238 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57239 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57240 obstack_begin, obstack_specify_allocation,
57241 obstack_specify_allocation_with_arg, obstack_chunkfun,
57242 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57243 Remove unprototyped decls and the macros that use them.
57244 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
57245 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57246 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57247 (defined __STDC__ && __STDC__)]:
57248 Remove nonprototyped code.
57249 Include <stdlib.h> unconditionally.
57250 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57251 _obstack_allocated_p, _obstack_free, obstack_free,
57252 _obstack_memory_used, print_and_abort):
57253 Define using prototypes.
57254 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57255 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57256 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57257 obstack_next_free, obstack_object_size, obstack_room) [0]:
57258 Remove unused, unprototyped code.
57260 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57262 * lib/physmem.c (physmem_total, physmem_available, main): Define
57265 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57266 (main): Define with a prototype.
57268 * lib/posixver.c (getenv): Remove decl.
57270 * lib/putenv.c (malloc): Returns void *, not char *.
57271 Include <string.h> unconditionally.
57272 (strchr, memcpy, NULL): Do not define.
57274 * lib/readtokens.c: Include readtokens.h first, to test interface.
57275 Include <stdlib.h>, <string.h> unconditionally.
57276 (init_tokenbuffer): Define with a prototype.
57278 * lib/regex.c (PARAMS): Remove. All uses removed.
57279 All uses of _RE_ARGS removed, too.
57280 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57282 (bzero): Assume memset exists.
57283 (memcmp, memcpy, NULL): Remove.
57284 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57285 char, or assignments to local vars of type signed char.
57286 (init_syntax_once, PREFIX(extract_number_and_incr),
57287 PREFIX(print_partial_compiled_pattern),
57288 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57289 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57290 PREFIX(regex_grow_registers), PREFIX(regex_compile),
57291 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57292 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57293 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57294 wcs_compile_range, byte_compile_range, truncate_wchar,
57295 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57296 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57297 count_mbs_length, wcs_re_match_2_internal,
57298 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57299 PREFIX(alt_match_null_string_p),
57300 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57301 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57302 regfree, PREFIX(extract_number)): Define with prototype. Remove
57303 now-unnecessary declaration, if any.
57304 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57306 Remove now-unnecessary casts among pointer types.
57307 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
57309 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57310 (free): Remove decl.
57312 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57314 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57315 (free): Remove decl.
57317 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57318 * lib/xgetcwd.c: Likewise.
57320 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57321 (free): Remove decl.
57323 * lib/strchrnul.c (strchrnul): Define with a prototype.
57324 Fix bug: c_in was not converted to char before searching.
57326 The following changes are not K&R related:
57328 * lib/group-member.h: Include <sys/types.h>, so that this file is
57330 * lib/makepath.h: Likewise.
57332 * lib/getusershell.c (readname, default_index, line_size, readname):
57333 Use size_t, not int, for sizes.
57334 (readname): If the size overflows, report an error instead of
57337 2003-09-09 Paul Eggert <eggert@twinsun.com>
57339 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57342 2003-09-09 Paul Eggert <eggert@twinsun.com>
57344 * README: New section: portability guidelines.
57346 2003-09-09 Derek Robert Price <derek@ximbiot.com>
57348 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57351 2003-09-09 Derek Robert Price <derek@ximbiot.com>
57353 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57355 2003-09-08 Paul Eggert <eggert@twinsun.com>
57357 Assume C89 or better; remove K&R cruft.
57358 A few of these changes were first proposed by Derek Robert Price
57359 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57361 * lib/addext.c: Include <string.h> unconditionally.
57362 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57363 Don't declare getenv or malloc.
57365 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57366 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57368 (find_stack_direction, alloca): Use prototypes.
57370 * lib/atexit.c (atexit): Define using a prototype.
57372 * lib/basename.c, dirname.c, stripslash.c:
57373 Include <string.h> unconditionally.
57375 * lib/bcopy.c: Include <stddef.h>.
57376 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57378 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57380 * lib/error.h (error, error_at_line, error_print_progname)
57381 [! (defined (__STDC__) && __STDC__)]: Remove decls.
57382 * lib/error.c: Include error.h first, to check interface.
57383 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57384 (VA_START): Remove; all uses changeed to va_start.
57385 (exit, strerror): Remove decls.
57386 (error_print_progname): Prototype uncondionally.
57387 Don't include <errno.h>; no longer needed.
57388 (private_strerror): Remove.
57389 (error_tail): Always define.
57390 (error, error_at_line): Assume C89 or better; always use prototypes.
57391 * lib/fatal.c: Include "fatal.h" first, to test interface.
57392 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57393 (VA_START): Remove; all uses changed to va_start.
57394 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57396 (exit): Remove decl.
57397 (fatal): Prototype unconditionally. Assume va_start works.
57398 Abort at end, to pacify gcc.
57400 * lib/euidaccess.c (main): Define with a prototype.
57402 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57404 * lib/exitfail.c: Include <stdlib.h> unconditionally.
57406 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
57408 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57409 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57410 (getenv): Remove decl.
57411 (fnmatch): Define using a prototype.
57412 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57413 (FCT): Define using a prototype.
57415 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57417 * lib/gethostname.c: Include <stddef.h>.
57418 (gethostname): Define with prototype. Length is size_t, not int.
57420 2003-09-08 Paul Eggert <eggert@twinsun.com>
57422 Assume C89 or better; remove K&R cruft.
57423 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57424 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57425 string.h, getenv, malloc.
57426 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57428 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57429 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57430 do not check for strerror.
57431 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57432 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57433 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57434 do not check for doprnt or vprintf.
57435 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
57436 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57438 2003-09-08 Paul Eggert <eggert@twinsun.com>
57440 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57441 getversion.c should have been removed then, but was accidentally
57444 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57445 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57447 2003-09-08 Karl Berry <karl@gnu.org>
57449 * config/config.sub, config.guess, srclistvars.sh: update from savannah
57450 config, forget about prep.
57452 * config/depcomp, missing: update from automake.
57454 2003-09-07 Paul Eggert <eggert@twinsun.com>
57456 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
57457 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57459 2003-09-07 Paul Eggert <eggert@twinsun.com>
57461 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57462 copy_tm_result. Bug reported by Simon Josefsson in
57463 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57465 2003-09-06 Paul Eggert <eggert@twinsun.com>
57467 * m4/time_r.m4: New file.
57468 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57469 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57470 is. Check for timegm declaration.
57471 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57472 Do not check for gmtime_r.
57473 Replace mktime if __mktime_internal does not exist and if mktime
57474 hasn't been replaced already.
57476 2003-09-06 Paul Eggert <eggert@twinsun.com>
57478 * lib/time_r.c, lib/time_r.h: New files.
57480 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57482 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
57483 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57485 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57487 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57488 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57489 Include <time_r.h>.
57491 * lib/timegm.c: Switch to glibc implementation, with the following
57493 [defined HAVE_CONFIG_H]: Include <config.h>.
57494 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57495 (__mktime_internal) [!defined _LIBC]: New decl.
57496 (__gmtime_r) [!defined _LIBC]: New macro and function.
57497 (timegm): Use a prototype, since gnulib assumes C89.
57498 Do not bother declaring tmp to be const, as it's not really usefu.
57499 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57500 (timegm): Declare only if HAVE_DECL_TIMEGM.
57502 2003-09-06 Paul Eggert <eggert@twinsun.com>
57504 * MODULES.html.sh (func_all_modules): Add time_r.
57505 * modules/time_r: New file.
57506 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57507 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
57509 2003-09-03 Paul Eggert <eggert@twinsun.com>
57511 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57512 Bug reported by Lute Kamstra in
57513 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57515 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57516 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
57517 course with correspondingly smaller numbers for tomorrow and
57518 yesterday. From Tadayoshi Funaba. Originally installed into
57519 sh-utils on 1999-08-07, but the patch got lost (I guess during the
57522 2003-08-31 Simon Josefsson <jas@extundo.com>
57524 * modules/timegm: New file.
57525 * MODULES.html.sh (func_all_modules): Add timegm.
57527 2003-08-31 Simon Josefsson <jas@extundo.com>
57529 * m4/timegm.m4: New file.
57531 2003-08-31 Simon Josefsson <jas@extundo.com>
57533 * lib/timegm.h: New file.
57534 * lib/timegm.c: New file. Based on
57535 wget-1.8.2/src/http.c:mktime_from_utc.
57537 2003-08-31 Karl Berry <karl@gnu.org>
57539 * lib/argp.h: update from libc.
57541 2003-08-28 Bruno Haible <bruno@clisp.org>
57543 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57544 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57545 followed by '#define fnmatch fnmatch_posix' gives an error.
57547 2003-08-28 Bruno Haible <bruno@clisp.org>
57549 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57550 warning on QNX, which defines O_BINARY to 000000.
57552 2003-08-27 Jim Meyering <jim@meyering.net>
57554 * m4/mkstemp.m4: Require that the system mkstemp be able to create
57555 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
57556 would fail after 32. Reported by Danny Levinson. Details here:
57557 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57559 2003-08-24 Bruno Haible <bruno@clisp.org>
57561 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57562 MSVC7 <stdio.h> is included later.
57564 2003-08-22 Simon Josefsson <jas@extundo.com>
57566 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57568 2003-08-20 Karl Berry <karl@gnu.org>
57570 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57572 2003-08-20 Bruno Haible <bruno@clisp.org>
57574 * modules/progname: New file.
57575 * MODULES.html.sh (func_all_modules): Add progname.
57577 2003-08-20 Bruno Haible <bruno@clisp.org>
57579 * lib/progname.h: New file, from GNU gettext.
57580 * lib/progname.c: New file, from GNU gettext.
57581 * lib/progreloc.c: New file, from GNU gettext.
57583 2003-08-19 Jim Meyering <jim@meyering.net>
57585 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57586 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57588 2003-08-19 Bruno Haible <bruno@clisp.org>
57590 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57593 2003-08-19 Bruno Haible <bruno@clisp.org>
57595 * lib/xstrdup.c: Assume <string.h> exists.
57597 2003-08-18 Paul Eggert <eggert@twinsun.com>
57599 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
57602 2003-08-18 Jim Meyering <jim@meyering.net>
57604 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57605 * m4/lib-ld.m4: Likewise.
57607 2003-08-18 Jim Meyering <jim@meyering.net>
57609 * lib/setenv.h: Indent nested cpp directive.
57610 * lib/vasnprintf.c: Remove trailing blanks.
57612 2003-08-17 Simon Josefsson <jas@extundo.com>
57614 * modules/xstrndup: New file.
57615 * MODULES.html.sh (func_all_modules): Add xstrndup.
57617 2003-08-17 Simon Josefsson <jas@extundo.com>
57619 * modules/argp: Fix autoconf macro name. Add more dependencies.
57621 2003-08-17 Simon Josefsson <jas@extundo.com>
57623 * m4/xstrndup.m4: New file.
57625 2003-08-17 Simon Josefsson <jas@extundo.com>
57627 * m4/argp.m4: New file.
57629 2003-08-17 Simon Josefsson <jas@extundo.com>
57630 Bruno Haible <bruno@clisp.org>
57632 * lib/xstrndup.h: New file.
57633 * lib/xstrndup.c: New file.
57635 2003-08-17 Bruno Haible <bruno@clisp.org>
57637 * modules/strndup (Files, Include): Add lib/strndup.h.
57639 2003-08-17 Bruno Haible <bruno@clisp.org>
57641 * modules/euidaccess (Files): Add lib/euidaccess.h.
57643 2003-08-17 Bruno Haible <bruno@clisp.org>
57645 * lib/strndup.h: New file.
57647 2003-08-17 Bruno Haible <bruno@clisp.org>
57649 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57650 like AC_GNU_SOURCE.
57651 * modules/extensions (configure.ac): Comment out the invocation of
57652 gl_USE_SYSTEM_EXTENSIONS.
57654 2003-08-16 Paul Eggert <eggert@twinsun.com>
57656 Merges from coreutils, etc.
57657 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57658 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
57659 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57661 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57662 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57664 2003-08-16 Paul Eggert <eggert@twinsun.com>
57666 Document merge from coreutils.
57667 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57668 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57669 * modules/utime: Add m4/utimes-null.m4.
57671 2003-08-16 Paul Eggert <eggert@twinsun.com>
57673 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57674 space, undoing this 2003-08-12 change:
57675 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57677 2003-08-16 Paul Eggert <eggert@twinsun.com>
57679 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57680 strtoul.c from libc, undoing this 2003-08-12 change:
57681 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57683 2003-08-16 Jim Meyering <jim@meyering.net>
57685 Merges from coreutils.
57686 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57687 prefix. Adjust cache variables similarly. Create 500 rather than
57688 just 300 files, to exercise bug on Darwin6.5, too.
57689 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57691 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57692 AM_SYS_POSIX_TERMIOS.
57693 Reported by mkc@mathdogs.com.
57694 Also change use of $am_cv_sys_posix_termios
57695 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
57696 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57697 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57698 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57699 in /proc/mounts until it finds one with matching device number. This
57700 is unnecessary when the FILE argument *is* a mount point. No stat call
57701 is necessary in that case. So, disable the statvfs-testing code on
57702 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
57703 as RedHat bug# 84846.
57704 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57705 to 1MB, so as not to render systems with no stack size limit (e.g.,
57706 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
57707 Include <unistd.h>. On some systems,
57708 it is required for the definition of _SC_PAGESIZE.
57710 2003-08-16 Jim Meyering <jim@meyering.net>
57712 Merge from coreutils.
57713 * lib/xstrtoimax.c: #else #if -> #elif.
57714 * lib/xstrtoumax.c: Likewise.
57716 2003-08-16 Jim Meyering <jim@meyering.net>
57718 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57719 * m4/utimes.m4: Removed.
57720 * m4/utimes-null.m4: Renamed from utimes.m4.
57722 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57723 to 1MB, so as not to render systems with no stack size limit (e.g.,
57724 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
57725 Include <unistd.h>. On some systems,
57726 it is required for the definition of _SC_PAGESIZE.
57728 2003-08-16 Jim Meyering <jim@meyering.net>
57729 and Paul Eggert <eggert@cs.ucla.edu>
57731 Merges from coreutils, etc.
57733 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57734 using the latest version from cvs. This avoids problems with #line
57735 directives using a vendor (Sun) compiler.
57736 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57737 Don't set GETGROUPS_LIB here; now it's
57738 done via getgroups.m4's wrapper function.
57739 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57740 rather than just in sh-util/configure.in, so that the
57741 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57743 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57744 AC_FUNC_GETLOADAVG where to find getloadavg.c.
57745 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57746 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57747 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57748 Remove code that is now done by the newly-required macros.
57749 Append $(EXEEXT) to DF_PROG.
57750 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57751 Do not invoke or require the following here,
57752 since prereq.m4 or some gnulib .m4 now does this for us:
57753 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57754 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57755 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57756 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57757 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57758 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57759 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57761 Do not replace the following functions, as this is now the job
57762 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57763 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57764 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57765 atexit getpass, strdup, getpagesize.
57767 Do not check for the following functions, as this is now the job
57768 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57769 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
57771 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57772 Check for sys/sysctl.h.
57773 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57774 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
57775 of checking for ssize_t ourselves.
57777 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57778 Require every macro that gnulib/modules/* suggests for us.
57779 (jm_PREREQ_ADDEXT): New macro.
57780 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57781 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57783 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57784 (gl_PHYSMEM): Use it.
57785 Also check for `table' function.
57786 Check for new headers and functions.
57787 Add check for sys/sysmp.h.
57788 With suggestions from Kaveh Ghazi.
57789 Ignore headers that are present but cannot be compiled. This
57790 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57793 2003-08-15 Paul Eggert <eggert@twinsun.com>
57795 Document merge from coreutils.
57796 * modules/userspec: Depend on posixver.
57797 * modules/strftime: Depend on tzset.
57799 2003-08-15 Paul Eggert <eggert@twinsun.com>
57801 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57802 rather than tab, after '#' in shell-script copyright notices.
57803 Suggested by Bruno Haible.
57805 2003-08-15 Paul Eggert <eggert@twinsun.com>
57807 * config/srclist-update: Use three spaces, rather than tab, after '#'
57808 in shell-script copyright notices. Suggested by Bruno Haible.
57809 Remove unnecessary parenthesization in regular expression.
57811 2003-08-15 Jim Meyering <jim@meyering.net>
57813 Merge from coreutils.
57814 * lib/xgethostname.c: Include <stdlib.h>.
57815 (xghostname): Don't exit for anything other than memory-related
57816 failure; just return NULL.
57817 * lib/userspec.c: Include "posixver.h".
57818 (parse_user_spec): Accept `.' as a separator only
57819 in pre-POSIX-200112 mode.
57820 * lib/strtoimax.c: Use #elif rather than #else #if.
57821 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57822 Remove function, now that we can rely on a working tzset function.
57823 [!_LIBC]: Ensure that the required autoconf test has been run.
57824 [!defined _NL_CURRENT && HAVE_STRFTIME]:
57825 Use underlying_strftime for %r.
57826 * lib/sha.c: Merge in some clean-up and optimization changes from
57828 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57829 Ensure that it is a multiple of 64.
57830 Rearrange loop exit tests so as to avoid performing an
57831 additional fread after encountering an error or EOF.
57832 * lib/realloc.c: Update copyright date.
57834 2003-08-15 Jim Meyering <jim@meyering.net>
57835 and Paul Eggert <eggert@twinsun.com>
57837 Merge from coreutils.
57838 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57839 member but strut utmpx does not. Needed for AIX 4.3.3.
57840 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57842 2003-08-15 Jim Meyering <jim@meyering.net>
57843 and Paul Eggert <eggert@cs.ucla.edu>
57845 Merges from coreutils, etc.
57846 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57847 Require gl_FUNC_TZSET_CLOBBER.
57848 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57849 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57852 2003-08-14 Paul Eggert <eggert@twinsun.com>
57854 Help the merge from coreutils.
57855 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57856 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57857 * m4/tzset.m4: Use it too.
57859 2003-08-14 Paul Eggert <eggert@twinsun.com>
57861 * modules/tzset: New file.
57863 2003-08-14 Jim Meyering <jim@meyering.net>
57865 Merges from coreutils.
57866 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57867 variable names, rather than @FNMATCH_H@.
57868 * modules/alloca: Likewise for $(ALLOCA_H).
57870 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57871 the three copies of the literal target, `fnmatch.h'.
57872 * modules/alloca (alloca.h): Likewise.
57874 2003-08-14 Jim Meyering <jim@meyering.net>
57876 Merge from coreutils.
57877 * m4/tzset.m4: New file.
57878 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57879 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57880 otherwise, AIX 5.1 systems would end up using the latter.
57881 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57882 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
57883 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57884 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
57886 2003-08-14 Jim Meyering <jim@meyering.net>
57888 Merge from coreutils.
57889 * lib/obstack.h: Whitespace changes.
57890 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57891 and xcalloc return values.
57892 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57893 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
57894 hang on OSF/1 5.1 for DIR on both local and remote file systems.
57895 Reported by (and fix confirmed by) Nelson H. F. Beebe.
57896 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57898 Use mntctl's return value to drive the entry-processing loop, since
57899 we can't rely on the value of the vmt_length member in the last
57900 entry. On some systems doing so could result in exhausting
57901 virtual memory. Based in part on a patch from Mike Jetzer.
57903 2003-08-14 Jim Meyering <jim@meyering.net>
57904 and Paul Eggert <eggert@twinsun.com>
57906 Merges from coreutils, plus other fixes.
57907 * lib/physmem.c: Merge in portability changes from gcc/libiberty
57908 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
57909 for credits and details. Thanks to Kaveh Ghazi for helping
57910 to keep these files in sync.
57911 (ARRAY_SIZE): Define it.
57912 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57913 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57914 (memcasecmp): Don't assume size_t fits in unsigned int.
57915 Remove casts and duplicate code.
57916 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57917 (memcpy): Remove definition.
57918 Merge in some clean-up and optimization changes from glibc.
57919 [BLOCKSIZE]: Move definition to top of file.
57920 Ensure that it is a multiple of 64.
57921 Rearrange loop exit tests so as to avoid performing an
57922 additional fread after encountering an error or EOF.
57923 * lib/md5.h (md5_uintptr): Define.
57924 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57925 return to the initial working directory. Preserve errno
57927 * lib/idcache.c: Include "xalloc.h".
57928 (xmalloc, xrealloc): Remove decls.
57929 (getuser): Remove casts no longer required in C89.
57930 * lib/human.c: Include stdio.h, for sprintf.
57931 * lib/group-member.c: Include "xalloc.h".
57932 (xmalloc, xrealloc): Remove decls.
57933 (get_group_info): Remove casts no longer required in C89.
57934 * lib/getusershell.c (readname): Remove casts no longer required in
57936 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57937 * lib/getline.c: Whitespace fix, from coreutils.
57939 2003-08-13 Paul Eggert <eggert@twinsun.com>
57941 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57944 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57945 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57946 Undo previous (whitespace-only) change.
57948 2003-08-13 Paul Eggert <eggert@twinsun.com>
57950 * lib/exclude.c: Include <ctype.h>
57951 (IN_CTYPE_DOMAIN): New macro.
57952 (is_space): New fn.
57953 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57956 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57957 Undo previous (whitespace-only) change.
57959 2003-08-13 Paul Eggert <eggert@twinsun.com>
57961 * config/srclist-update: Change update back to the old behavior,
57962 leaving whitespace alone. Use one 'sed' command rather than a
57964 (fixlicense): Now a variable, not a function.
57965 (remove_trailing_blanks): Remove.
57966 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57967 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57968 Undo previous (whitespace-only) change.
57970 2003-08-12 Paul Eggert <eggert@twinsun.com>
57972 Merge from coreutils.
57973 * modules/euidaccess: Add lib_SOURCES, include for new
57976 2003-08-12 Paul Eggert <eggert@twinsun.com>
57978 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57979 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57980 Normalize leading white space and remove trailing white space.
57982 Merge from coreutils
57983 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57985 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57986 0.12.1. These files are now being upgraded automatically by
57987 ../config/srclist-update.
57989 2003-08-12 Paul Eggert <eggert@twinsun.com>
57991 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57992 Normalize leading white space and remove trailing white space.
57993 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57994 notice, as per ../config/srclist-update.
57996 Merge from coreutils.
57997 * lib/euidaccess.h: New file.
57998 * lib/euidaccess.c: Include it.
57999 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58000 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
58001 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58003 2003-08-12 Paul Eggert <eggert@twinsun.com>
58005 * config/srclist-update: Add copyright notice.
58006 (remove_id_lines, remove_trailing_blanks): New constants.
58007 (fixfile): Use them to normalize spacing a bit in copied files.
58008 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58009 Normalize leading white space and remove trailing white space.
58011 * config/texinfo.tex: Sync with texinfo.
58013 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58014 strtoul.c from libc, to merge coreutils whitespace changes.
58016 * config/srclist.txt: Get the following m4 files from gettext:
58017 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58018 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58019 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58022 2003-08-12 Karl Berry <karl@gnu.org>
58024 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58027 2003-08-11 Paul Eggert <eggert@twinsun.com>
58029 * modules/gnu-source, m4/gnu-source.m4:
58030 Remove; we're assuming Autoconf 2.54 or later now.
58031 Suggested by Bruno Haible.
58032 * MODULES.html.sh (func_all_modules): Remove gnu-source.
58034 2003-08-11 Bruno Haible <bruno@clisp.org>
58036 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58038 2003-08-11 Bruno Haible <bruno@clisp.org>
58040 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58041 (vasnprintf): Use it instead of wcslen.
58043 2003-08-11 Bruno Haible <bruno@clisp.org>
58045 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58046 value to ensure that _Bool promotes to int. Use #define for _Bool when
58047 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58049 2003-08-10 Karl Berry <karl@gnu.org>
58051 * lib/regex.h: update from libc (whitespace fix).
58053 2003-08-09 Paul Eggert <eggert@twinsun.com>
58055 Merge some files from coreutils. These changes were
58056 originally made by Jim Meyering.
58057 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58058 many older Unixes require this.
58059 * lib/alloca.c (alloca): Remove cast to argument of free;
58060 no longer needed in C89.
58061 * lib/alloca_.h, regex.h: Fix white space to match
58062 what GNU indent does.
58064 2003-08-09 Paul Eggert <eggert@twinsun.com>
58066 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58067 apparently Emacs's Unicode mode got confused before my 2003-08-05
58070 2003-08-08 Paul Eggert <eggert@twinsun.com>
58072 * m4/extensions.m4: New file.
58073 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58074 Require gl_USE_SYSTEM_EXTENSIONS.
58075 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58076 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58078 2003-08-08 Paul Eggert <eggert@twinsun.com>
58080 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58081 * modules/extensions, modules/gnu-source: New files.
58082 * modules/timespec, modules/unlocked-io: Depend on extensions.
58084 2003-08-07 Paul Eggert <eggert@twinsun.com>
58086 * modules/restrict: New file.
58087 * MODULES.html.sh (func_all_modules): Add restrict.
58088 * modules/regex: Depend on restrict.
58090 2003-08-07 Paul Eggert <eggert@twinsun.com>
58092 * m4/restrict.m4: New file.
58093 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58095 2003-08-07 Bruno Haible <bruno@clisp.org>
58097 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58098 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58100 2003-08-07 Bruno Haible <bruno@clisp.org>
58102 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58103 makes the module 'getndelim2' compatible with the module 'getline'.
58105 2003-08-05 Paul Eggert <eggert@twinsun.com>
58107 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58108 byte with "\201" to avoid glitches when editing that source file
58109 with multi-gnome-terminal.
58111 2003-08-05 Paul Eggert <eggert@twinsun.com>
58113 * lib/bumpalloc.h: Remove.
58115 2003-08-05 Paul Eggert <eggert@twinsun.com>
58117 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58118 * modules/bumpalloc: Remove.
58120 2003-08-04 Paul Eggert <eggert@twinsun.com>
58122 * lib/getloadavg.c: Change copyright notice and spacing to conform to
58125 Merge from coreutils.
58126 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58128 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58129 from Karl Berry, implemented by Jim Meyering.
58130 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58131 from Dmitry V. Levin.
58132 Remove anachronistic cast of xrealloc.
58133 * lib/fnmatch_.h (__const): Remove. Use 'const'.
58134 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58135 type. Otherwise, it wouldn't compile with at least /bin/cc on
58136 ymp-cray-unicos9.0.2.X.
58137 Combine two mostly-identical uses of alloca into one.
58138 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58140 2003-08-04 Dave Love <d.love@dl.ac.uk>
58144 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
58145 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
58146 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58147 obsolete NLIST_NAME_UNION.
58148 [__GNU__]: Undef BSD and FSCALE.
58149 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58151 2003-08-03 Paul Eggert <eggert@twinsun.com>
58153 * lib/stdbool_.h (_Bool): Make it signed char, instead of
58154 an enum type, so that it's guaranteed to promote to int. See:
58155 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58157 2003-08-03 Karl Berry <karl@gnu.org>
58159 * config/depcomp: update from automake.
58161 2003-07-31 Paul Eggert <eggert@twinsun.com>
58163 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
58164 (strerror): Don't assume that a printable int fits in 14 bytes.
58166 2003-07-31 Bruno Haible <bruno@clisp.org>
58168 * modules/getpass-gnu: New file.
58169 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58171 2003-07-31 Bruno Haible <bruno@clisp.org>
58173 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58175 2003-07-24 Karl Berry <karl@gnu.org>
58177 * config/missing: update from automake.
58179 2003-07-24 Derek Robert Price <derek@ximbiot.com>
58180 Bruno Haible <bruno@clisp.org>
58182 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58183 * lib/getline.c (getline, getdelim): Likewise.
58184 Remove _GNU_SOURCE define; now it's defined in config.h through
58187 2003-07-23 Karl Berry <karl@gnu.org>
58189 * config/config.sub: update from prep.
58191 2003-07-22 Paul Eggert <eggert@twinsun.com>
58193 * modules/xalloc (Depends-on): Add exitfail.
58194 * modules/xmemcoll: Likewise.
58196 2003-07-22 Paul Eggert <eggert@twinsun.com>
58198 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58199 over-parenthesization in macros.
58201 Sync with coreutils.
58203 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58206 Use `exit_failure' for xalloc and xmemcoll instead of their own
58207 private exit-failure variables.
58208 * lib/xalloc.h (xalloc_exit_failure): Remove.
58209 * lib/xmalloc.c: Likewise. Include exitfail.h.
58210 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58211 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58212 * lib/xmemcoll.c: Likewise. Include exitfail.h.
58213 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58215 2003-07-20 Jim Meyering <jim@meyering.net>
58217 * modules/closeout (Depends-on): Add exitfail.
58218 Suggestion from Bruno Haible.
58220 2003-07-19 Karl Berry <karl@gnu.org>
58222 * config/config.sub: update from prep.
58224 2003-07-18 Paul Eggert <eggert@twinsun.com>
58226 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58228 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
58229 to test that it can stand by itself. Include "exitfail.h".
58230 Clients should set exit_failure instead.
58231 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
58233 2003-07-18 Bruno Haible <bruno@clisp.org>
58235 * modules/getndelim2: New file.
58236 * modules/getline: Share files with module getndelim2.
58237 * modules/getnline: Depend on getndelim2 instead of sharing files with
58238 it. Add getnline.c to lib_SOURCES.
58239 * MODULES.html.sh (func_all_modules): Add getndelim2.
58241 2003-07-18 Bruno Haible <bruno@clisp.org>
58243 * m4/getndelim2.m4: New file.
58244 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58245 invoke gl_PREREQ_GETNDELIM2.
58246 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58247 gl_PREREQ_GETNDELIM2.
58248 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58251 2003-07-18 Bruno Haible <bruno@clisp.org>
58253 * lib/getndelim2.h: New file.
58254 * lib/getndelim2.c: Make into a module of its own. Include config.h,
58256 (getndelim2): Make non-static. Change return type to ssize_t.
58257 * lib/getline.h: Change argument names.
58258 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58259 * lib/getnline.c: Include getndelim2.h.
58261 2003-07-18 Andreas Schwab <schwab@suse.de>
58263 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58265 2003-07-17 Karl Berry <karl@gnu.org>
58267 * config/config.sub: update from prep.
58269 2003-07-17 Bruno Haible <bruno@clisp.org>
58271 * modules/getnline: New file.
58272 * modules/getline: Add lib/getndelim2.c to source file list.
58273 * MODULES.html.sh (func_all_modules): Add getnline.
58275 2003-07-17 Bruno Haible <bruno@clisp.org>
58277 * m4/getnline.m4: New file.
58279 2003-07-17 Bruno Haible <bruno@clisp.org>
58281 * m4/Makefile.am.in: Remove file.
58282 * m4/Makefile.am: Remove file.
58283 * m4/Makefile.in: Remove file.
58285 2003-07-17 Bruno Haible <bruno@clisp.org>
58287 * lib/getnline.h: New file.
58288 * lib/getnline.c: New file.
58289 * lib/getndelim2.c: New file, extracted from getline.c.
58290 (getndelim2): Renamed from getdelim2, with added nmax argument.
58291 * lib/getline.c: Include getndelim2.c.
58292 (getdelim2): Moved out to getndelim2.c.
58293 (getline, getdelim): Update.
58295 2003-07-17 Bruno Haible <bruno@clisp.org>
58297 * lib/Makefile.am: Remove file.
58298 * lib/Makefile.in: Remove file.
58300 2003-07-17 Bruno Haible <bruno@clisp.org>
58302 * configure.in: Remove file.
58303 * Makefile.in: Remove file.
58305 2003-07-17 Bruno Haible <bruno@clisp.org>
58307 * MODULES.html.sh: Put the </BODY> right before </HTML>.
58309 2003-07-16 Karl Berry <karl@gnu.org>
58311 * config/srclist-update: was running fixlicense twice, which caused
58312 texinfo.tex to be nullified for some reason. Simplify,
58313 $gplsrc is no longer needed as far as I can see?
58315 2003-07-16 Jim Meyering <jim@meyering.net>
58317 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
58319 2003-07-15 Paul Eggert <eggert@twinsun.com>
58321 * config/srclist.txt: Get the following files from gettext-runtime/intl
58322 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58323 ref-del.sin. From Bruno Haible.
58324 * config/srclist-update (fixfile): Change grep pattern again, since the
58325 previous fix didn't work (there was another trailing $). Use
58326 '[$]' to escape the $s.
58328 2003-07-15 Karl Berry <karl@gnu.org>
58330 * lib/vasnprintf.c: update from gettext.
58332 2003-07-15 Karl Berry <karl@gnu.org>
58334 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58335 gets expanded when surrounded by '$'.
58337 2003-07-15 Jim Meyering <jim@meyering.net>
58339 * modules/save-cwd: Don't depend on error. From Derek Price.
58341 2003-07-15 Jim Meyering <jim@meyering.net>
58343 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58345 2003-07-14 Simon Josefsson <jas@extundo.com>
58347 * modules/mempcpy: New file.
58348 * MODULES.html.sh (func_all_modules): Add mempcpy.
58350 2003-07-14 Simon Josefsson <jas@extundo.com>
58352 * m4/mempcpy.m4: New file.
58354 2003-07-14 Simon Josefsson <jas@extundo.com>
58356 * lib/mempcpy.h: New file.
58357 * lib/mempcpy.c: New file.
58359 2003-07-14 Paul Eggert <eggert@twinsun.com>
58361 * modules/getdate, modules/posixtm: Depend on mktime.
58363 2003-07-14 Paul Eggert <eggert@twinsun.com>
58365 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58366 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58367 unicodeio.c, unicodeio.h, unlocked-io.h:
58368 Switch from LGPL to GPL.
58370 2003-07-14 Paul Eggert <eggert@twinsun.com>
58372 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58373 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58374 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58375 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58376 vasprintf.c, vasprintf.h: Regenerate. These files are now being
58377 updated automatically by ../config/srclist-update. This changes
58378 their license from LPGL to GPL.
58380 2003-07-14 Paul Eggert <eggert@twinsun.com>
58382 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
58383 assumed to refer to the root of the most recent stable gettext version.
58384 * config/srclistvars.sh: Add defaults for eggert.
58385 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58386 Match "This program" as well as "The program". This is needed
58389 2003-07-14 Jim Meyering <jim@meyering.net>
58391 Don't emit diagnostics. Let callers do that.
58392 * lib/save-cwd.c: Don't include "error.h".
58393 (save_cwd): Don't call error. Ensure that errno is valid
58394 when returning nonzero.
58396 * lib/save-cwd.h (restore_cwd): Update prototype.
58397 * lib/save-cwd.c (restore_cwd): Remove two parameters.
58398 Simplify. Don't call error upon failure. Let callers do that.
58399 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58400 when auditing is enabled. But don't bother updating the #if.
58402 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
58404 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58405 it breaks C++ compilation.
58406 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58408 2003-07-10 Simon Josefsson <jas@extundo.com>
58410 * modules/strchrnul (Makefile.am): Add strchrnul.h.
58412 2003-07-10 Jim Meyering <jim@meyering.net>
58414 * m4/clock_time.m4: Remove trailing blank.
58415 * m4/intmax_t.m4: Likewise.
58417 2003-07-10 Jim Meyering <jim@meyering.net>
58419 * lib/vasnprintf.c: Remove trailing blanks.
58420 Make cpp indentation consistent.
58422 2003-07-09 Paul Eggert <eggert@twinsun.com>
58424 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58425 posixver.c, strftime.c, strnlen.c, strverscmp.c:
58426 Switch from LGPL to GPL.
58428 2003-07-09 Paul Eggert <eggert@twinsun.com>
58430 * config/srclist.txt: Sort sublists. Add
58431 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58432 that differ from gnulib for one reason or another; we'd like this list
58433 to be smaller but for now let's document what we have.
58435 2003-07-08 Paul Eggert <eggert@twinsun.com>
58437 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58438 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
58439 and sweeter "eval x=$x".
58440 * config/srclist.txt: Get lib/argp* from glibc.
58442 2003-07-07 Paul Eggert <eggert@twinsun.com>
58444 * lib/mktime.c: Fix some boundary cases and remove need for floating
58447 Issue a compile-time diagnostic if time_t is floating point, or if
58448 two's complement arithmetic is not in effect, or if arithmetic
58449 right shift does not propagate the sign. These assumptions were
58450 all in the original code but they weren't checked.
58452 (TIME_T_MIDPOINT, verify): New macros.
58453 (__isleap): Remove; it has integer overflow problems.
58454 (leapyear): New function, without those problems.
58455 (ydhms_tm_diff): Remove; splitting into two parts.
58456 (ydhms_diff): New function, containing the arithmetic part of
58457 the old ydhms_tm_diff function. Issue a compile-time
58458 diagnostic if we are not using C99 integer division.
58459 Avoid casts when possible.
58460 (guess_time_tm): New function, containing the checking part of
58461 the old ydhms_tm_diff function. Return the new value, rather than
58462 the difference between it and the old. Accept a new argument T
58463 so that *T specifies the old value. Check for overflow in the result.
58465 (__mktime_internal): Use a time_t offset, not a long int offset.
58466 This undoes the 2003-06-04 change, which is no longer needed now
58467 that we have better overflow checking.
58468 (localtime_offset): Likewise.
58470 (__mktime_internal): Avoid harmful overflow on hosts where time_t
58471 and long are 64-bit but int is only 32-bit.
58472 (ydhms_diff): Use long int to store year1 and yday1.
58473 Issue a compile-time diagnostic if long int is not wide enough.
58475 (__mktime_internal): Use long int to store adjusted year and yday.
58476 Use plain C rather than preprocessor commands, if that doesn't
58478 Check for overflow (and try to repair) after each probe
58479 rather than checking only at the very end. This avoids some bugs
58480 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58481 does not equal GMT offset at maximum time).
58482 Use integer to check for overflow rather than floating point; this
58483 is more portable to non-IEEE hosts, and is a tad faster.
58484 When we detect that we are oscillating between two values,
58485 don't check whether tm_isdst has the requested value, since
58486 we already know the answer. When tm_isdst has the wrong value,
58487 use a different heuristic to find the right one, based on the
58488 extreme values actually observed in practice in tz2003a,
58489 rather than the (overly optimistic) "previous 3 calendar quarters".
58491 (not_equal_tm, print_tm, check_result): Use "const T" rather than
58492 "T const" to accommodate glibc style.
58493 (check_result): Use less-confusing report format. "long" -> "long int.
58495 Don't loop if the iteration overflows time_t.
58496 Allow a negative step in the iteration.
58498 2003-07-06 Karl Berry <karl@gnu.org>
58500 * config/depcomp: update from automake.
58501 * config/config.sub: update from prep.
58503 2003-07-03 Karl Berry <karl@gnu.org>
58505 * config/config.guess: update from prep.
58507 2003-07-01 Paul Eggert <eggert@twinsun.com>
58509 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58510 xreadlink.c now includes it unconditionally.
58512 2003-07-01 Paul Eggert <eggert@twinsun.com>
58514 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58515 having it depend on HAVE_SYS_TYPES_H.
58517 2003-07-01 Bruno Haible <bruno@clisp.org>
58519 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58520 <sys/types.h> should be sufficient.
58521 Reported by Paul Eggert.
58523 2003-06-26 Karl Berry <karl@gnu.org>
58525 * config/depcomp: update from automake.
58527 2003-06-26 Bruno Haible <bruno@clisp.org>
58529 * modules/human: Depend on module stdbool.
58531 2003-06-25 Bruno Haible <bruno@clisp.org>
58533 * modules/readlink: New file.
58534 * modules/xreadlink: Depend on it.
58535 * MODULES.html.sh (func_all_modules): Add readlink.
58537 2003-06-25 Bruno Haible <bruno@clisp.org>
58539 * m4/readlink.m4: New file.
58541 2003-06-25 Bruno Haible <bruno@clisp.org>
58543 * lib/readlink.c: New file.
58545 2003-06-22 Karl Berry <karl@gnu.org>
58547 * config/srclist.txt: update mkinstalldirs from automake.
58548 * config/mkinstalldirs: update.
58550 2003-06-22 Bruno Haible <bruno@clisp.org>
58552 Portability to mingw32.
58553 * m4/ssize_t.m4: New file, from GNU gettext.
58554 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58555 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58557 2003-06-22 Bruno Haible <bruno@clisp.org>
58559 * modules/safe-read: Add m4/ssize_t.m4.
58560 * modules/xreadlink: Add m4/ssize_t.m4.
58562 2003-06-20 Bruno Haible <bruno@clisp.org>
58564 Assume C89, so PARAMS isn't needed.
58565 * lib/unicodeio.h (PARAMS): Remove.
58566 * lib/unicodeio.c: Don't use PARAMS.
58568 2003-06-18 Karl Berry <karl@gnu.org>
58570 * config/config.{guess,sub}: update from prep.
58572 2003-06-18 Jim Meyering <jim@meyering.net>
58574 Merge changes from coreutils.
58575 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58576 Remove explicit declarations of xmalloc and realloc.
58578 (read_utmp): Remove anachronistic cast of xmalloc.
58580 2003-06-17 Paul Eggert <eggert@twinsun.com>
58582 Assume C89, so PARAMS isn't needed.
58583 * lib/backupfile.h (PARAMS): Remove. All uses removed.
58584 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58585 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58586 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58587 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58588 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58589 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58590 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58591 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58592 lib/xstrtod.h, lib/xstrtol.h: Likewise.
58593 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58594 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58595 no longer needed. Anyway, config.h should always be included before any
58598 2003-06-11 Simon Josefsson <jas@extundo.com>
58600 * modules/sysexits: New file.
58601 * MODULES.html.sh (func_all_modules): Add sysexits.
58603 2003-06-11 Simon Josefsson <jas@extundo.com>
58605 * lib/sysexit_.h: New file.
58607 2003-06-11 Derek Price <derek@ximbiot.com>
58609 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58612 2003-06-11 Bruno Haible <bruno@clisp.org>
58614 * m4/sysexits.m4: New file.
58616 2003-06-10 Simon Josefsson <jas@extundo.com>
58618 * lib/argp.h: New file, from glibc.
58619 * lib/argp-ba.c: New file, from glibc.
58620 * lib/argp-eexst.c: New file, from glibc.
58621 * lib/argp-fmtstream.c: New file, from glibc.
58622 * lib/argp-fmtstream.h: New file, from glibc.
58623 * lib/argp-fs-xinl.c: New file, from glibc.
58624 * lib/argp-help.c: New file, from glibc.
58625 * lib/argp-namefrob.h: New file, from glibc.
58626 * lib/argp-parse.c: New file, from glibc.
58627 * lib/argp-pv.c: New file, from glibc.
58628 * lib/argp-pvh.c: New file, from glibc.
58629 * lib/argp-xinl.c: New file, from glibc.
58631 2003-06-10 Simon Josefsson <jas@extundo.com>
58633 * modules/strchrnul: New file.
58635 2003-06-10 Simon Josefsson <jas@extundo.com>
58637 * modules/argp: New file.
58639 2003-06-10 Simon Josefsson <jas@extundo.com>
58641 * m4/strchrnul.m4: New file.
58643 2003-06-10 Simon Josefsson <jas@extundo.com>
58645 * lib/strchrnul.h: New file.
58646 * lib/strchrnul.c: New file.
58648 2003-06-10 Bruno Haible <bruno@clisp.org>
58650 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58652 2003-06-07 Karl Berry <karl@gnu.org>
58654 * config/config.{guess,sub}: update from prep.
58656 2003-06-07 Jim Meyering <jim@meyering.net>
58658 * modules/strtod: Use $(...) notation, not @...@ for
58659 AC_REPLACE'd variables.
58660 * modules/localcharset: Likewise.
58662 2003-06-07 Jim Meyering <jim@meyering.net>
58664 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58665 in place of my name in the copyright comment.
58666 Remove definition and uses of __P.
58669 * lib/stat.c: Don't declare xmalloc explicitly.
58670 Instead, include "xalloc.h".
58671 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58672 xrealloc, and xcalloc return values.
58673 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58675 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58677 2003-06-07 Bruno Haible <bruno@clisp.org>
58679 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58680 avoid AC_CONFIG_LINKS.
58681 * modules/fnmatch (Makefile.am): Use explicit creation rule for
58682 fnmatch.h, to avoid AC_CONFIG_LINKS.
58683 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58685 2003-06-07 Bruno Haible <bruno@clisp.org>
58687 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58688 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58689 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58691 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58692 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58695 2003-06-06 Jim Meyering <jim@meyering.net>
58697 Merge from coreutils.
58698 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58699 Consolidate declarations and initializations of *_base* locals.
58701 Merge from coreutils.
58702 This avoids a core dump on systems without GNU putenv,
58703 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58704 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58705 (unsetenv): New static function, from GNU libc.
58706 (rpl_putenv): Use it.
58708 * lib/modechange.c: Remove trailing blanks.
58710 Merge from coreutils.
58711 * lib/fsusage.c: Remove declaration of statfs.
58712 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58714 * lib/posixtm.c: Include <stdbool.h> unconditionally.
58716 2003-06-06 Jim Meyering <jim@meyering.net>
58718 * lib/stdbool_.h: Renamed from stdbool.h.in.
58720 2003-06-06 Jim Meyering <jim@meyering.net>
58721 Bruno Haible <bruno@clisp.org>
58723 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58724 Adjust Makefile.am snippet not to redirect directly to target.
58725 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58727 2003-06-05 Paul Eggert <eggert@twinsun.com>
58729 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58730 mismatch, look in future quarters as well as past. This fixes a
58731 bug when processing fall-backwards gaps immediately after a long
58732 period of daylight-saving time.
58734 * lib/mktime.c: Assume freestanding C89 or better.
58735 (HAVE_LIMITS_H): Remove. Assume it's 1.
58736 (__P): Remove; not used.
58737 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58738 (mktime, not_equal_tm, print_tm, check_result,
58739 main): Use prototypes. Use const * where appropriate.
58740 (main): Fix typo in testing code that uncovered by above changes.
58741 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58743 2003-06-04 Paul Eggert <eggert@twinsun.com>
58745 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
58746 locale.h, localeconv. This merges changes from coreutils.
58748 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58749 It can be removed after the next Autoconf is released.
58750 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58753 2003-06-04 Paul Eggert <eggert@twinsun.com>
58755 * lib/mktime.c: Fix Debian bug 177940
58756 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58757 (localtime_offset): Now long int, not time_t, because we want it
58758 to be guaranteed to be signed. All uses changed.
58759 (__mktime_internal): If overflow would occur when adding offset,
58762 Merge 'human' changes from coreutils. Rewrite to support
58763 locale-specific notations like thousands separators.
58764 * lib/human.c: Simplify authorship notice.
58765 Include human.h immediately after config.h.
58766 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58767 <limits.h>: Do not include, since human.h does.
58768 (SIZE_MAX, UINTMAX_MAX): New macros.
58769 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58770 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58771 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58772 (power_letter): Renamed from suffixes.
58773 (generate_suffix_backwards): Remove.
58774 (adjust_value): Now takes int style (because of human.h changes)
58775 and long double value (for greater precision on some platforms).
58776 (group_number): New function.
58777 (human_readable): Use it. Use integer options, not enum.
58778 Put the options before the sizes in the arg list.
58779 Support all the new options.
58780 The old human_readable function has been removed;
58781 use inttostr.h instead.
58782 (human_readable, default_block_size, humblock):
58783 Use uintmax_t, not int, for block sizes.
58784 (human_readable_inexact, block_size_types): Remove.
58785 (block_size_opts): New constant.
58786 (human_options): Renamed from human_block_size, with new signature
58787 that allows block sizes up to UINTMAX_MAX. All callers changed.
58788 * lib/human.h: Add copyright and authorship notice.
58789 Include <limits.h> and <stdbool.h> unconditionally.
58790 (PARAMS): Remove. All uses removed.
58791 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58792 (enum human_inexact_style): Remove tag; now a nameless enum.
58793 (human_floor, human_ceiling, human_round_to_even): Now have
58794 values 2, 0, 1 rather than -1, 1, 0.
58795 (human_group_digits, human_suppress_point_zero, human_autoscale,
58796 human_base_1024, human_SI, human_B): New constants.
58797 (human_readable_inexact, human_block_size): Remove.
58798 (human_readable): Size args are now uintmax_t, not int.
58799 (human_options): New decl.
58801 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58802 unnecessary now that we assume C89 or better. This change
58803 imported from coreutils.
58805 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58806 arbitrarily. This is the same patch as 2003-05-28, but it got lost
58807 in the 2003-05-30 sync from glibc.
58809 .h files should stand alone, but we shouldn't include <sys/types.h>
58810 if we can get away with just <stddef.h>.
58812 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58813 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58814 rather than <sys/types.h>, as we merely need size_t.
58815 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58817 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58818 Include <stdio.h>, to get FILE.
58819 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58820 memcasecmp.h has included <stddef.h> and all we need is size_t.
58821 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58822 our interface, instead of including <sys/types.h>
58824 2003-06-04 Paul Eggert <eggert@twinsun.com>
58826 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58827 now, as glibc mktime is buggy on non-glibc systems.
58829 2003-06-03 Karl Berry <karl@gnu.org>
58831 * config/config.sub: update from prep.
58833 2003-06-02 Paul Eggert <eggert@twinsun.com>
58836 Fix some minor time-related bugs with POSIX time arguments.
58837 Some valid time stamps were being rejected (notably -1, and
58838 time stamps before 1900 on 64-bit hosts). And some invalid
58839 time stamps were being accepted, e.g. September 31.
58841 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58842 that we can return (time_t) -1 successfully.
58843 * lib/posixtm.c: Likewise.
58844 [HAVE_STDBOOL_H]: Include <stdbool.h>.
58845 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58846 (t): Remove static var.
58847 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58848 of static var. All uses changed.
58849 (year): Do not reject years before 1900; they can occur with
58851 (posix_time_parse): Do not check for out-of-range components;
58852 that is now the caller's responsibility, since our checks were
58853 only approximations.
58854 (posixtime): Use mktime to check for out-of-range components,
58855 since it knows them exactly.
58856 If mktime returns (time_t) -1, check whether an error actually occurred
58857 by invoking localtime on -1.
58858 (main) [TEST_POSIXTIME]: Check for input data errors, and report
58859 posixtime failures better.
58860 Improve the test data (in comments only).
58862 2003-06-02 Karl Berry <karl@gnu.org>
58864 * config/mkinstalldirs (version): new variable.
58865 (--version): new option.
58866 (usage): improve message.
58868 2003-05-30 Karl Berry <karl@gnu.org>
58870 * lib/mktime.c: update from libc.
58872 2003-05-30 Bruno Haible <bruno@clisp.org>
58874 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58875 * config/config.rpath: Upgrade to gettext-0.12.1.
58877 2003-05-30 Bruno Haible <bruno@clisp.org>
58879 * m4/gettext.m4: Upgrade to gettext-0.12.1.
58880 * m4/nls.m4: New file, from gettext-0.12.1.
58881 * m4/po.m4: New file, from gettext-0.12.1.
58882 * m4/progtest.m4: Upgrade to gettext-0.12.1.
58884 2003-05-30 Bruno Haible <bruno@clisp.org>
58886 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58887 * lib/localcharset.h: Likewise.
58888 * lib/localcharset.c: Likewise.
58890 2003-05-29 Karl Berry <karl@gnu.org>
58892 * config/config.rpath: update from gettext.
58894 2003-05-28 Paul Eggert <eggert@twinsun.com>
58896 Assume the headers required for C89 freestanding compilers.
58897 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58898 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58899 * m4/human.m4 (gl_HUMAN): Likewise.
58900 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58901 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58902 * m4/userspec.m4 (gl_USERSPEC): Likewise.
58903 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58904 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58905 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58907 2003-05-28 Paul Eggert <eggert@twinsun.com>
58909 Assume the headers required for C89 freestanding compilers.
58910 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58911 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58912 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58913 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58914 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58915 define, since <limits.h> is guaranteed to do that.
58916 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58917 * lib/exclude.c: Include <stdbool.h> unconditionally.
58918 * lib/tempname.c: Include <stddef.h> unconditionally.
58919 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58920 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58921 <stddef.h> does that.
58922 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58923 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58924 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58926 * lib/xstrtol.c: Likewise.
58927 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58928 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58930 * lib/addext.c (addext): Use assignment rather than cast, to avoid
58931 warnings on some platforms.
58933 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58936 2003-05-26 Jim Meyering <jim@meyering.net>
58938 Merge in a change from coreutils:
58939 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58940 that is guaranteed to be `no'. Use `no_such_member' to indicate
58941 that condition, rather than `-1' which is slightly misleading.
58942 Change the name of the cache variable to have the gl_ prefix.
58943 Prompted by a patch from Richard Dawe for DJGPP.
58945 2003-05-24 Karl Berry <karl@gnu.org>
58947 * config/config.guess: update from prep.
58949 2003-05-22 Karl Berry <karl@gnu.org>
58951 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58953 2003-05-20 Karl Berry <karl@gnu.org>
58955 * config/config.guess: update from prep.
58957 2003-05-18 Karl Berry <karl@gnu.org>
58959 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58960 might actually be set by the user.
58962 * config/depcomp, install-sh, mdate-sh: update from automake.
58964 2003-05-17 Bruno Haible <bruno@clisp.org>
58966 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58967 invalid expansion for AC_EGREP_CPP.
58968 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58969 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58970 Suggested by Akim Demaille <akim@epita.fr> in
58971 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58973 2003-05-12 Jim Meyering <jim@meyering.net>
58975 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58976 the space-padded-by-default conversion specifiers, %e, %k, %l.
58978 2003-05-12 Bruno Haible <bruno@clisp.org>
58980 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58981 the string is longer than 4 KB.
58983 2003-05-11 Karl Berry <karl@gnu.org>
58985 * config/config.{guess,sub}: update from prep.
58987 2003-05-09 Bruno Haible <bruno@clisp.org>
58989 * modules/error: Add m4/strerror_r.m4 to file list.
58991 2003-05-03 Bruno Haible <bruno@clisp.org>
58993 Upgrade to Unicode-4.0.
58994 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58995 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58996 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58997 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58998 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58999 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59000 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59001 Change width of U+E0100..U+E01EF from 1 to 0.
59003 2003-04-25 Jim Meyering <jim@meyering.net>
59005 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59006 of type size_t, not int.
59008 2003-04-25 Bruno Haible <bruno@clisp.org>
59010 * lib/copy-file.c: Include <stddef.h>, for size_t.
59012 2003-04-21 Paul Eggert <eggert@twinsun.com>
59014 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59015 code which expansion is under static control. Patch imported from
59016 Akim Demaille's patch to Bison; see
59017 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59019 2003-04-14 Bruno Haible <bruno@clisp.org>
59021 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59023 2003-04-11 Jim Meyering <jim@meyering.net>
59025 Merge changes from Coreutils.
59027 2003-03-22 Jim Meyering <jim@meyering.net>
59029 * lib/strftime.c (widen): Cast alloca return value to proper type.
59031 2003-01-19 Ulrich Drepper <drepper@redhat.com>
59034 * lib/strftime.c (my_strftime): Handle very large width
59035 specifications for numeric values correctly. Improve checks for
59038 2003-01-19 Jim Meyering <jim@meyering.net>
59040 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59042 (nl_get_alt_digit) [! defined my_strftime]: Define.
59043 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59044 _nl_get_alt_digit and _nl_get_walt_digit.
59046 * lib/strftime.c (my_strftime): Merge in locale-related changes from
59047 libc. These changes have no effect outside of _LIBC.
59049 2003-04-10 Bruno Haible <bruno@clisp.org>
59051 * modules/findprog: New file.
59052 * MODULES.html.sh (func_all_modules): Add it.
59054 2003-04-10 Bruno Haible <bruno@clisp.org>
59056 * m4/findprog.m4: New file.
59057 * m4/eaccess.m4: New file.
59059 2003-04-10 Bruno Haible <bruno@clisp.org>
59061 * lib/findprog.h: New file, from GNU gettext.
59062 * lib/findprog.c: New file, from GNU gettext.
59064 2003-04-05 Jim Meyering <jim@meyering.net>
59066 Merge changes from Coreutils.
59068 * lib/exclude.h (PARAMS): Remove definition and uses.
59069 * lib/exclude.c: Remove uses of `PARAMS'.
59071 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59072 Add test-cases for DOS filenames. Declare program_name.
59073 (main): Set up program_name. Patch by Rich Dawe.
59075 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59077 Use mntctl's return value to drive the entry-processing loop, since
59078 we can't rely on the value of the vmt_length member in the last
59079 entry. On some systems doing so could result in exhausting
59080 virtual memory. Based in part on a patch from Mike Jetzer.
59082 2003-04-04 Bruno Haible <bruno@clisp.org>
59084 * modules/linebreak: New file.
59085 * MODULES.html.sh (func_all_modules): Add it.
59087 2003-04-04 Bruno Haible <bruno@clisp.org>
59089 * m4/linebreak.m4: New file.
59091 2003-04-04 Bruno Haible <bruno@clisp.org>
59093 * lib/linebreak.h: New file, from GNU gettext.
59094 * lib/linebreak.c: New file, from GNU gettext with slight
59096 * lib/lbrkprop.h: New file, from GNU gettext.
59098 2003-04-03 Bruno Haible <bruno@clisp.org>
59100 * modules/utf8-ucs4: New file.
59101 * modules/utf16-ucs4: New file.
59102 * modules/ucs4-utf8: New file.
59103 * modules/ucs4-utf16: New file.
59104 * MODULES.html.sh (func_all_modules): Add them.
59106 2003-04-03 Bruno Haible <bruno@clisp.org>
59108 * m4/utf-ucs4.m4: New file.
59109 * m4/ucs4-utf.m4: New file.
59111 2003-04-03 Bruno Haible <bruno@clisp.org>
59113 * lib/utf8-ucs4.h: New file, from GNU gettext.
59114 * lib/utf16-ucs4.h: New file, from GNU gettext.
59115 * lib/ucs4-utf8.h: New file, from GNU gettext.
59116 * lib/ucs4-utf16.h: New file, from GNU gettext.
59118 2003-04-02 Bruno Haible <bruno@clisp.org>
59120 * modules/binary-io: New file.
59121 * MODULES.html.sh (func_all_modules): Add it.
59123 2003-04-02 Bruno Haible <bruno@clisp.org>
59125 * lib/binary-io.h: New file, from GNU gettext.
59127 2003-04-01 Bruno Haible <bruno@clisp.org>
59129 * modules/pathname: New file.
59130 * MODULES.html.sh (func_all_modules): Add it.
59132 2003-04-01 Bruno Haible <bruno@clisp.org>
59134 * lib/pathname.h: New file, from GNU gettext.
59135 * lib/concatpath.c: New file, from GNU gettext.
59137 2003-03-30 Bruno Haible <bruno@clisp.org>
59139 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59141 2003-03-30 Bruno Haible <bruno@clisp.org>
59143 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59144 function chown() doesn't exist.
59146 2003-03-28 Bruno Haible <bruno@clisp.org>
59148 * modules/copy-file: New file.
59149 * MODULES.html.sh (func_all_modules): Add it.
59151 2003-03-28 Bruno Haible <bruno@clisp.org>
59153 * m4/copy-file.m4: New file.
59155 2003-03-28 Bruno Haible <bruno@clisp.org>
59157 * lib/copy-file.h: New file, from GNU gettext.
59158 * lib/copy-file.c: New file, from GNU gettext.
59160 2003-03-18 Jim Meyering <jim@meyering.net>
59162 * lib/quote.c (quote_n): Fix typo in comment.
59164 2003-03-18 Bruno Haible <bruno@clisp.org>
59166 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59168 * m4/onceonly_2_57.m4: Likewise.
59170 2003-03-17 Bruno Haible <bruno@clisp.org>
59172 * m4/onceonly.m4: Require autoconf 2.54 or newer.
59173 (m4_quote): Remove macro.
59174 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59176 2003-03-14 Jim Meyering <jim@meyering.net>
59178 Merge changes from Coreutils.
59179 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59180 to be const, in order to avoid warnings.
59181 (obstack_room): Likewise.
59182 (obstack_empty_p): Likewise.
59184 2003-03-14 Bruno Haible <bruno@clisp.org>
59186 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59187 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59189 2003-03-13 Paul Eggert <eggert@twinsun.com>
59191 Merge changes from Bison.
59192 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59193 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59194 when compiling Bison 1.875's `bitset bset = obstack_alloc
59195 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
59196 * lib/hash.c: Include <stdbool.h> unconditionally.
59198 2003-03-13 Paul Eggert <eggert@twinsun.com>
59200 * m4/onceonly.m4 (m4_quote): New macro.
59201 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59202 Quote AC_FOREACH variable-expansions properly.
59204 2003-03-13 Paul Eggert <eggert@twinsun.com>
59206 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59208 2003-03-09 Paul Eggert <eggert@twinsun.com>
59210 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59211 Reported by Bruce Becker; see:
59212 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59214 2003-03-03 Paul Eggert <eggert@twinsun.com>
59215 Bruno Haible <bruno@clisp.org>
59217 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59218 Reported by John Hughes, see
59219 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59221 2003-02-20 Bruno Haible <bruno@clisp.org>
59223 * MODULES.html.sh (func_all_modules): Add poll.
59225 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
59227 * modules/poll: New file.
59229 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
59231 * lib/poll_.h: New file.
59232 * lib/poll.c: New file.
59234 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
59236 * m4/poll.m4: New file.
59238 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
59240 * modules/mathl: New file.
59242 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
59244 * lib/mathl.h: New file.
59245 * lib/acosl.c: New file.
59246 * lib/asinl.c: New file.
59247 * lib/atanl.c: New file.
59248 * lib/ceill.c: New file.
59249 * lib/cosl.c: New file.
59250 * lib/expl.c: New file.
59251 * lib/floorl.c: New file.
59252 * lib/frexpl.c: New file.
59253 * lib/ldexpl.c: New file.
59254 * lib/logl.c: New file.
59255 * lib/sincosl.c: New file.
59256 * lib/sinl.c: New file.
59257 * lib/sqrtl.c: New file.
59258 * lib/tanl.c: New file.
59259 * lib/trigl.c: New file.
59260 * lib/trigl.h: New file.
59262 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
59264 * m4/mathl.m4: New file.
59266 2003-02-18 Bruno Haible <bruno@clisp.org>
59268 * MODULES.html.sh (func_all_modules): Add mathl.
59270 2003-02-17 Bruno Haible <bruno@clisp.org>
59272 * modules/mkdtemp: New module.
59273 * MODULES.html.sh (func_all_modules): Add it.
59275 2003-02-17 Bruno Haible <bruno@clisp.org>
59277 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59279 2003-02-17 Bruno Haible <bruno@clisp.org>
59281 * lib/mkdtemp.h: New file, from GNU gettext.
59282 * lib/mkdtemp.c: New file, from GNU gettext.
59284 2003-02-02 Jim Meyering <jim@meyering.net>
59286 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59289 2003-01-31 Bruno Haible <bruno@clisp.org>
59291 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59293 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59295 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59297 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59300 2003-01-31 Bruno Haible <bruno@clisp.org>
59302 * lib/rename.c: #undef rename before defining rpl_rename.
59303 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59305 2003-01-30 Bruno Haible <bruno@clisp.org>
59307 * modules/vasnprintf, modules/vasprintf: New modules.
59308 * MODULES.html.sh (func_all_modules): Add them.
59310 2003-01-30 Bruno Haible <bruno@clisp.org>
59312 * m4/signed.m4: New file, from GNU gettext.
59313 * m4/longdouble.m4: New file, from GNU gettext.
59314 * m4/wchar_t.m4: New file, from GNU gettext.
59315 * m4/wint_t.m4: New file, from GNU gettext.
59316 * m4/vasnprintf.m4: New file.
59317 * m4/vasprintf.m4: New file.
59319 2003-01-30 Bruno Haible <bruno@clisp.org>
59321 * lib/printf-args.h: New file, from GNU gettext.
59322 * lib/printf-args.c: New file, from GNU gettext.
59323 * lib/printf-parse.h: New file, from GNU gettext.
59324 * lib/printf-parse.c: New file, from GNU gettext.
59325 * lib/vasnprintf.h: New file, from GNU gettext.
59326 * lib/vasnprintf.c: New file, from GNU gettext.
59327 * lib/asnprintf.c: New file, from GNU gettext.
59328 * lib/vasprintf.h: New file, from GNU gettext with modifications.
59329 * lib/vasprintf.c: New file, from GNU gettext.
59330 * lib/asprintf.c: New file, from GNU gettext.
59332 2003-01-29 Bruno Haible <bruno@clisp.org>
59334 * modules/stpncpy: New module.
59335 * MODULES.html.sh (func_all_modules): Add it.
59337 2003-01-29 Bruno Haible <bruno@clisp.org>
59339 * m4/stpncpy.m4: New file.
59341 2003-01-29 Bruno Haible <bruno@clisp.org>
59343 * lib/stpncpy.h: New file, from GNU gettext with modifications.
59344 * lib/stpncpy.c: New file, from GNU gettext with modifications.
59346 2003-01-28 Bruno Haible <bruno@clisp.org>
59348 * modules/c-ctype: New module.
59349 * MODULES.html.sh (func_all_modules): Add it.
59351 2003-01-28 Bruno Haible <bruno@clisp.org>
59353 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59355 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59358 2003-01-27 Bruno Haible <bruno@clisp.org>
59360 * modules/xsetenv: New module.
59361 * MODULES.html.sh (func_all_modules): Add it.
59363 2003-01-27 Bruno Haible <bruno@clisp.org>
59365 * lib/xsetenv.h: New file, from GNU gettext.
59366 * lib/xsetenv.c: New file, from GNU gettext.
59368 2003-01-23 Jim Meyering <jim@meyering.net>
59370 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59371 from working on systems without dirfd (at least Irix and OSF1/Tru64).
59373 2003-01-23 Bruno Haible <bruno@clisp.org>
59375 * modules/minmax: New module.
59376 * MODULES.html.sh (func_all_modules): Add it.
59378 2003-01-23 Bruno Haible <bruno@clisp.org>
59380 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59383 2003-01-22 Bruno Haible <bruno@clisp.org>
59385 * modules/exit: New module.
59386 * MODULES.html.sh (func_all_modules): Add it.
59388 2003-01-22 Bruno Haible <bruno@clisp.org>
59390 * lib/exit.h: New file, from GNU gettext.
59392 2003-01-19 Bruno Haible <bruno@clisp.org>
59394 * gnulib-tool: Recognize option --extract-maintainer.
59395 (func_get_maintainer): New function.
59396 * modules/*: Add Maintainer entry.
59398 2003-01-16 Jim Meyering <jim@meyering.net>
59400 * m4/regex.m4: The `regex' struct is both input and output.
59401 Initialize it before each use. Patch by Tim Waugh.
59403 2003-01-16 Bruno Haible <bruno@clisp.org>
59405 * MODULES.html.sh: Add a table of contents. Add the module name as
59406 leftmost column. Add hyperlinks.
59408 2003-01-15 Bruno Haible <bruno@clisp.org>
59410 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59412 2003-01-15 Bruno Haible <bruno@clisp.org>
59414 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59415 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59418 2003-01-15 Bruno Haible <bruno@clisp.org>
59420 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59422 2003-01-15 Bruno Haible <bruno@clisp.org>
59424 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59425 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59427 2003-01-14 Jim Meyering <jim@meyering.net>
59429 * lib/same.c (same_name): Tweak a comment.
59431 2003-01-14 Bruno Haible <bruno@clisp.org>
59433 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59434 when a string comparison is sufficient.
59436 2003-01-14 Bruno Haible <bruno@clisp.org>
59438 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59441 2003-01-14 Bruno Haible <bruno@clisp.org>
59443 * lib/hash-pjw.c: Add comment about low quality of this function.
59445 2003-01-13 Bruno Haible <bruno@clisp.org>
59447 * modules/stpcpy: Distribute lib/stpcpy.h.
59448 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59450 2003-01-13 Bruno Haible <bruno@clisp.org>
59452 * modules/*: Add a description.
59453 * modules/strpbrk: Fix Makefile.am snippet.
59454 * modules/strtoimax: Fix dependencies.
59455 * modules/strtoumax: Likewise.
59457 2003-01-13 Bruno Haible <bruno@clisp.org>
59459 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59460 * modules/alloca (Makefile.am): All object files depend on alloca.h.
59461 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59463 2003-01-13 Bruno Haible <bruno@clisp.org>
59465 * gnulib-tool (func_create_testdir): Store config/* files in the main
59467 * config.rpath: Move to ...
59468 * config/config.rpath: ... here.
59469 * modules/gettext: Contains config/config.rpath, not config.rpath.
59470 * modules/iconv: Likewise.
59472 2003-01-12 Paul Eggert <eggert@twinsun.com>
59474 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59475 to avoid collisions with libcurses and libreadline.
59477 * m4/getstr.m4: Remove.
59478 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59480 2003-01-12 Paul Eggert <eggert@twinsun.com>
59482 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59483 to avoid collisions with libcurses and libreadline.
59485 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59486 * lib/getstr.h, getstr.c: Remove.
59487 * lib/getline.c: Include "getline.h", to check interface.
59488 Move body of old getstr.c here: this defines MIN_CHUNK and
59489 declares getdelim2, which is renamed from getstr.
59490 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59492 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59494 * lib/linebuffer.h: Likewise.
59495 (readline): Remove backward-compatibility macro.
59497 2003-01-12 Paul Eggert <eggert@twinsun.com>
59499 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59500 to avoid collisions with libcurses and libreadline.
59502 * MODULES.html.sh: Remove getstr.
59503 * modules/getline: Depend on unlocked-io, not getstr.
59505 2003-01-12 Jim Meyering <jim@meyering.net>
59507 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
59509 2003-01-10 Bruno Haible <bruno@clisp.org>
59511 * modules/alloca: Change Makefile.am requirements. Simplify Include
59512 requirements. Add lib/alloca_.h to file list.
59514 2003-01-10 Bruno Haible <bruno@clisp.org>
59516 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59518 2003-01-10 Bruno Haible <bruno@clisp.org>
59520 * lib/alloca_.h: New file.
59521 * lib/getdate.y: Unconditionally include alloca.h.
59522 * lib/makepath.c: Likewise.
59523 * lib/setenv.c: Likewise.
59524 * lib/userspec.c: Likewise.
59526 2003-01-09 Karl Berry <karl@gnu.org>
59528 * MODULES.html.sh: include `dirname $0` in PATH, to find
59531 2003-01-09 Bruno Haible <bruno@clisp.org>
59533 * modules/stdbool: Change configure.ac, Makefile.am requirements.
59534 Simplify Include requirements. Add lib/stdbool.h.in to file list.
59536 2003-01-09 Bruno Haible <bruno@clisp.org>
59538 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59540 2003-01-09 Bruno Haible <bruno@clisp.org>
59542 * lib/stdbool.h.in: New file.
59544 2003-01-09 Bruno Haible <bruno@clisp.org>
59546 * gnulib-tool (func_all_modules): Ignore files ending in ~.
59547 * MODULES.html.sh: Likewise.
59549 2003-01-08 Jim Meyering <jim@meyering.net>
59551 * lib/full-write.c: Undefine and define-away `const' after inclusion
59552 of errno.h, not before. Suggestion from Bruno Haible.
59554 2003-01-08 Bruno Haible <bruno@clisp.org>
59556 * modules/full-read: Depend on full-write.
59558 2003-01-08 Bruno Haible <bruno@clisp.org>
59560 * lib/safe-read.c: Include specification header first, to ensure its
59562 * lib/full-write.c: Likewise.
59564 2003-01-07 Jim Meyering <jim@meyering.net>
59566 * lib/full-write.c: Rework so that it may serve to define full_read,
59568 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59570 2003-01-07 Bruno Haible <bruno@clisp.org>
59572 * lib/strtoimax.c: Include <stdint.h> as an alternative to
59574 * lib/xstrtol.h: Likewise.
59575 * lib/xstrtoimax.c: Likewise.
59576 * lib/xstrtoumax.c: Likewise.
59577 * lib/human.h: Likewise.
59579 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59580 on systems that have <inttypes.h> but not <stdint.h>.
59582 2003-01-07 Bruno Haible <bruno@clisp.org>
59584 * MODULES.html.sh: Add copyright notice.
59585 (missed_files): Omit CVS directory entries.
59586 (func_module): Make it work with sed-3.02.
59587 * MODULES.txt: Remove file.
59589 2003-01-06 Jim Meyering <jim@meyering.net>
59591 * lib/version-etc.c: Update year in translatable copyright string.
59593 2003-01-03 Karl Berry <karl@gnu.org>
59595 * config/config.{guess,sub}: update from prep.
59597 2003-01-02 Karl Berry <karl@gnu.org>
59599 * doc/COPYING.DOC: belatedly updated to 1.2.
59601 2003-01-01 Karl Berry <karl@gnu.org>
59603 * gnulib-tool (func_verify_module): report module name $module in
59604 error message, not $1.
59605 * gnulib-tool (create-testdir): don't complain if destdir couldn't
59606 be created, only if it doesn't exist.
59607 * gnulib-tool (last_checkin_date): don't expand the $Date here.
59609 2002-12-31 Paul Eggert <eggert@twinsun.com>
59611 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59613 2002-12-31 Paul Eggert <eggert@twinsun.com>
59615 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59616 memcmp if strcoll doesn't work.
59618 2002-12-31 Bruno Haible <bruno@clisp.org>
59620 * lib/utime.c (utime_null): No need to call ftruncate if the file was
59623 2002-12-31 Bruno Haible <bruno@clisp.org>
59625 * lib/memcoll.c (STRCOLL): New macro.
59628 2002-12-31 Bruno Haible <bruno@clisp.org>
59630 * lib/localcharset.h: New file.
59631 * lib/localcharset.c: Include it.
59632 * lib/unicodeio.c: Likewise.
59634 2002-12-31 Bruno Haible <bruno@clisp.org>
59636 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59637 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59639 2002-12-31 Bruno Haible <bruno@clisp.org>
59641 * lib/getline.h: Include <stddef.h>, for size_t.
59643 * lib/unicodeio.h: Include <stddef.h>, for size_t.
59644 * lib/unicodeio.c: Don't include <stddef.h>.
59646 2002-12-31 Bruno Haible <bruno@clisp.org>
59648 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59651 2002-12-24 Karl Berry <karl@gnu.org>
59653 * config/config.guess: update from prep.
59655 2002-12-24 Bruno Haible <bruno@clisp.org>
59657 General infrasructure.
59658 * m4/README: Rewritten.
59659 * m4/onceonly.m4: New file.
59660 * m4/onceonly_2_57.m4: New file.
59663 * m4/atexit.m4: New file.
59666 * m4/strtod.m4: New file.
59669 * m4/strtol.m4: New file.
59672 * m4/strtoul.m4: New file.
59675 * m4/memchr.m4: New file.
59678 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59679 (jm_FUNC_MEMCMP): Invoke it.
59682 * m4/memcpy.m4: New file.
59685 * m4/memmove.m4: New file.
59688 * m4/memset.m4: New file.
59691 * m4/strcspn.m4: New file.
59694 * m4/strpbrk.m4: New file.
59697 * m4/strstr.m4: New file.
59700 * m4/strerror.m4: New file.
59703 * m4/mktime.m4: Renamed from jm-mktime.m4.
59704 (gl_PREREQ_MKTIME): New macro.
59705 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59708 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59709 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59710 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59713 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59714 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59715 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59718 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59719 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59720 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59722 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59725 * m4/xalloc.m4: New file.
59728 * m4/alloca.m4: New file.
59731 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59732 (jm_FUNC_PUTENV): Invoke it.
59735 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59736 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59737 when invoked twice.
59738 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59742 * m4/memrchr.m4: New file.
59745 * m4/stpcpy.m4: New file.
59748 * m4/strcase.m4: New file.
59751 * m4/strdup.m4: New file.
59754 * m4/strnlen.m4: New file.
59757 * m4/strndup.m4: New file.
59760 * m4/xstrtod.m4: New file.
59763 * m4/xstrtol.m4: New file.
59766 * m4/getdate.m4: New file.
59768 Module unlocked-io.
59769 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59770 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59771 * m4/jm-glibc-io.m4n: Remove file.
59773 Module long-options.
59774 * m4/long-options.m4: New file.
59777 * m4/md5.m4: New file.
59780 * m4/sha.m4: New file.
59783 * m4/getstr.m4: New file.
59786 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59787 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59788 <sys/types.h>, for size_t. Use the function name gnu_getline, not
59789 simply getline. Infoke gl_PREREQ_GETLINE.
59792 * m4/obstack.m4: New file.
59795 * m4/hash.m4: New file.
59798 * m4/readtokens.m4: New file.
59801 * m4/strverscmp.m4: New file.
59804 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59808 * m4/strtoll.m4: New file.
59811 * m4/strtoull.m4: New file.
59814 * m4/strtoimax.m4: New file.
59817 * m4/strtoumax.m4: New file.
59820 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59821 jm_AC_PREREQ_XSTRTOIMAX.
59822 Moved the strtol prerequisites to strtol.m4.
59823 Moved the strtoll prerequisites to strtoll.m4.
59824 Moved the strtoimax prerequisites to strtoimax.m4.
59827 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59828 jm_AC_PREREQ_XSTRTOUMAX.
59829 Moved the strtoul prerequisites to strtoul.m4.
59830 Moved the strtoull prerequisites to strtoull.m4.
59831 Moved the strtoumax prerequisites to strtoumax.m4.
59834 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59835 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59838 * m4/dup2.m4: New file.
59841 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59842 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59845 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59846 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59848 Module gettimeofday.
59849 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59850 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59851 gl_PREREQ_GETTIMEOFDAY.
59854 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59855 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59858 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59859 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59860 jm_AC_TYPE_UINTMAX_T.
59861 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59864 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59865 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59868 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59869 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59872 * m4/timespec.m4 (gl_TIMESPEC): New macro.
59873 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59874 * m4/st_mtim.m4: Indentation.
59877 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59878 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59879 gl_PREREQ_NANOSLEEP.
59882 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59883 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59884 (gl_REGEX): New macro.
59887 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59888 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59891 * m4/rmdir.m4: New file.
59894 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59895 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59896 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59899 * m4/dirname.m4: New file.
59902 * m4/getopt.m4: New file.
59904 Module unistd-safer.
59905 * m4/unistd-safer.m4: New file.
59908 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59910 (gl_PREREQ_FNMATCH_EXTRA): New macro.
59911 (gl_FUNC_FNMATCH_POSIX): New macro.
59912 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59913 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59917 * m4/exclude.m4: New file.
59920 * m4/human.m4: New file.
59926 * m4/backupfile.m4: New file.
59927 * m4/d-ino.m4: Indentation.
59930 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59931 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59932 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59935 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59939 * m4/euidaccess.m4: New file.
59942 * m4/file-type.m4: New file.
59945 * m4/fileblocks.m4: New file.
59948 * m4/filemode.m4: New file.
59951 * m4/isdir.m4: New file.
59954 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59955 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59958 * m4/makepath.m4: New file.
59961 * m4/modechange.m4: New file.
59964 * m4/mountlist.m4: New file.
59965 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59968 Module path-concat.
59969 * m4/path-concat.m4: New file.
59972 * m4/pathmax.m4: New file.
59975 * m4/same.m4: New file.
59978 * m4/save-cwd.m4: New file.
59981 * m4/savedir.m4: New file.
59984 * m4/xgetcwd.m4: New file.
59985 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59988 * m4/xreadlink.m4: New file.
59991 * m4/safe-read.m4: New file.
59994 * m4/safe-write.m4: New file.
59997 * m4/closeout.m4: New file.
59999 Module stdio-safer.
60000 * m4/stdio-safer.m4: New file.
60003 * m4/getpass.m4: New file.
60006 * m4/getugroups.m4: New file.
60008 Module group-member.
60009 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60010 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60013 * m4/idcache.m4: New file.
60016 * m4/userspec.m4: New file.
60019 * m4/clock_time.m4: New file.
60020 * m4/gettime.m4: New file.
60023 * m4/settime.m4: New file.
60026 * m4/posixtm.m4: New file.
60028 Module gethostname.
60029 * m4/gethostname.m4: New file.
60032 * m4/canon-host.m4: New file.
60035 * m4/codeset.m4: New file, from gettext-0.11.5.
60036 * m4/gettext.m4: New file, from gettext-0.11.5.
60037 * m4/glibc21.m4: New file, from gettext-0.11.5.
60038 * m4/iconv.m4: New file, from gettext-0.11.5.
60039 * m4/intdiv0.m4: New file, from gettext-0.11.5.
60040 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60041 * m4/inttypes.m4: New file, from gettext-0.11.5.
60042 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60043 * m4/isc-posix.m4: New file, from gettext-0.11.5.
60044 * m4/lcmessage.m4: New file, from gettext-0.11.5.
60045 * m4/lib-ld.m4: New file, from gettext-0.11.5.
60046 * m4/lib-link.m4: New file, from gettext-0.11.5.
60047 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60048 * m4/progtest.m4: New file, from gettext-0.11.5.
60049 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60050 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60051 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60053 Module localcharset.
60054 * m4/localcharset.m4: New file.
60056 Module hard-locale.
60057 * m4/hard-locale.m4: New file.
60060 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60062 * m4/mbrtowc.m4: Add comment.
60065 * m4/memcasecmp.m4: New file.
60068 * m4/memcoll.m4: New file.
60071 * m4/unicodeio.m4: New file.
60074 * m4/rpmatch.m4: New file.
60077 * m4/yesno.m4: New file.
60080 * m4/exitfail.m4: New file.
60083 * m4/c-stack.m4 (gl_C_STACK): New macro.
60084 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60087 * m4/error.m4 (gl_ERROR): New macro.
60088 (jm_PREREQ_ERROR): Use onceonly macros.
60091 * m4/fatal.m4: New file.
60094 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60095 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60097 Module getpagesize.
60098 * m4/getpagesize.m4: New file.
60100 Module getusershell.
60101 * m4/getusershell.m4: New file.
60104 * m4/physmem.m4: New file.
60107 * m4/posixver.m4: New file.
60110 * m4/quotearg.m4: New file.
60113 * m4/quote.m4: New file.
60116 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60119 * m4/sig2str.m4: New file.
60122 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60124 * m4/intmax_t.m4: New file.
60125 * m4/d-type.m4: Indentation.
60126 * m4/jm-macros.m4: Update.
60127 * m4/prereq.m4 (jm_PREREQ): Update.
60128 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60129 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60130 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60131 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60132 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60133 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60134 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60135 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60136 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60137 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60138 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60139 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60140 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60141 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60142 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60143 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60144 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60145 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60146 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60148 2002-12-24 Bruno Haible <bruno@clisp.org>
60150 * MODULES.txt: Update according to m4/ changes.
60153 * config.rpath: New file, from gettext-0.11.5.
60155 * modules/*: New module descriptions.
60156 * gnulib-tool: New file.
60157 * MODULES.html.sh: New file.
60159 2002-12-21 Karl Berry <karl@gnu.org>
60161 * doc/fdl.texi: update to version 1.2.
60163 2002-12-19 Karl Berry <karl@gnu.org>
60165 * config/config.guess: update from prep.
60167 2002-12-18 Bruno Haible <bruno@clisp.org>
60169 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60170 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60172 2002-12-17 Bruno Haible <bruno@clisp.org>
60174 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60175 stdlib.h, string.h.
60177 2002-12-17 Bruno Haible <bruno@clisp.org>
60179 * lib/canon-host.c (strdup): Remove unused declaration.
60181 * lib/fsusage.c: Include full_read.h.
60182 (get_fs_usage): Use full_read instead of safe_read.
60184 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60186 2002-12-12 Karl Berry <karl@gnu.org>
60188 * config/config.guess: update from prep.
60190 2002-12-11 Bruno Haible <bruno@clisp.org>
60192 * m4/setenv.m4: New file, from gettext-0.11.5.
60194 2002-12-11 Bruno Haible <bruno@clisp.org>
60196 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60198 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60201 2002-12-11 Bruno Haible <bruno@clisp.org>
60203 * setenv.c (alloca): Fall back to malloc.
60204 (freea): New macro.
60205 (setenv): Use freea() to free memory allocated with alloca().
60207 2002-11-13 Bruno Haible <bruno@clisp.org>
60209 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60210 function declarations.
60211 * unsetenv.c (unsetenv): Likewise.
60213 2002-03-04 Bruno Haible <bruno@clisp.org>
60215 Portability to AIX 4.3.3.
60216 * unsetenv.c: New file, extracted from setenv.c.
60217 * setenv.c: Move the unsetenv() function to unsetenv.c.
60219 2001-12-20 Bruno Haible <bruno@clisp.org>
60221 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60222 use malloc instead. For SunOS 4.
60224 2001-12-11 Bruno Haible <bruno@clisp.org>
60226 * setenv.c: Declare alloca.
60227 (compar_fn_t): New typedef.
60228 (KNOWN_VALUE, STORE_VALUE): Use it.
60230 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60233 2002-12-10 Paul Eggert <eggert@twinsun.com>
60235 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60236 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60237 Choose values that are less likely to collide with system fnmatch
60239 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60240 defined (e.g., a pure POSIX system).
60241 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60242 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60244 2002-12-06 Paul Eggert <eggert@twinsun.com>
60246 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60247 a pain in practice to deal with generated m4 files. This change
60248 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60250 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60251 and jm-glibc-io.m4, as they are no longer a special case.
60252 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60253 kludge and the auto-generation stuff. Check only whether the
60254 functions are declared, not whether they exist, since older hosts
60255 that don't declare the functions can't use the optimization anyway.
60257 2002-12-06 Jim Meyering <jim@meyering.net>
60259 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60261 Merge in changes from libc's misc/error.c, in preparation
60262 for the merge of gnulib's changes back into libc.
60264 * lib/error.c (_): Define only if not already defined.
60265 Move definition to follow all #include directives.
60266 Include unlocked-io.h only if !_LIBC.
60267 [_LIBC]: Include <libio/libioP.h>.
60268 [USE_IN_LIBIO]: Include <libio/iolibio.h>
60269 (fflush): Tweak definition to use INTUSE.
60272 2002-12-05 Paul Eggert <eggert@twinsun.com>
60274 * lib/alloca.c [defined emacs]: Include "lisp.h".
60275 (xalloc_die) [defined emacs]: New macro.
60276 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60277 [! defined emacs]: Include <xalloc.h>.
60278 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60279 (pointer): Typedef to POINTER_TYPE *.
60280 (malloc): Remove decl; we now always use xmalloc.
60281 (alloca): Use old-style definition, since Emacs needs this.
60282 Check for arithmetic overflow when computing combined size.
60284 2002-12-04 Paul Eggert <eggert@twinsun.com>
60286 Do not generate unlocked-io.h automatically, since it's easier to
60287 maintain it by hand.
60289 * lib/unlocked-io.h: New file, from GNU diffutils,
60290 but with proper copyright notice and attribution.
60291 * lib/gen-uio: Remove.
60292 * lib/Makefile.am: Add copyright notice.
60293 (libfetish_a_SOURCES): Add unlocked-io.h.
60294 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60295 (DISTCLEANFILES, io_functions): Remove macros.
60296 (EXTRA_DIST): Remove gen_uio.
60297 (unlocked-io.h): Remove rule.
60299 2002-12-04 Jim Meyering <jim@meyering.net>
60301 Reflect the fact that stat.c and lstat.c are no longer generated.
60302 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60303 (DISTCLEANFILES): Likewise.
60304 (EXTRA_DIST): Likewise.
60305 (all_local): Don't depend on stat.c or lstat.c.
60306 (stat.c, lstat.c): Remove rules.
60307 (EXTRA_DIST): Remove xstat.in.
60309 * lib/xstat.in: Remove file. Contents moved into stat.c.
60310 * lib/stat.c: New file. Contents mostly from xstat.in.
60311 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60312 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60314 * lib/safe-read.c: Rework so that it may serve to define safe_write,
60316 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60318 2002-12-03 Jim Meyering <jim@meyering.net>
60320 * lib/safe-read.c, safe-write.c: Change variable names and comments,
60321 but not semantics, to minimize the differences between these two files.
60322 (safe_read): Change comment to mention SAFE_READ_ERROR.
60324 * lib/safe-read.c (IS_EINTR): Define.
60325 (safe_read): Use IS_EINTR in place of in-function cpp directives.
60327 2002-12-02 Jim Meyering <jim@meyering.net>
60329 * lib/safe-read.c (EINTR): Define.
60330 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60331 (INT_MAX): Provide fallback.
60332 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60334 * lib/safe-read.h (SAFE_READ_ERROR): Define.
60336 2002-12-02 Bruno Haible <bruno@clisp.org>
60338 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60339 Define, taken from safe-read.c.
60340 (INT_MAX): Provide fallback.
60341 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60342 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60344 * lib/safe-read.c (EINTR): Remove definition.
60345 (safe_read): Don't use EINTR if it is absent.
60347 2002-12-01 Jim Meyering <jim@meyering.net>
60349 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60351 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60353 2002-11-27 Paul Eggert <eggert@twinsun.com>
60355 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60356 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60357 with `if (! (value < limit)) abort ();', for readability.
60359 2002-11-26 Karl Berry <karl@gnu.org>
60361 * lib/strdup.c: copy from libc again, with jim's ok.
60362 * lib/.cppi-disable: re-add strdup.c
60364 2002-11-25 Karl Berry <karl@gnu.org>
60366 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60367 instead of "strtol.c".
60369 2002-11-25 Karl Berry <karl@gnu.org>
60371 * config/install-sh: update from automake for variable quoting, $0 in
60374 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60375 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60378 2002-11-25 Jim Meyering <jim@meyering.net>
60380 * lib/mktime.c: Sync from libc, now that it has the latest fix.
60382 2002-11-24 Karl Berry <karl@gnu.org>
60384 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60385 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60387 2002-11-24 Jim Meyering <jim@meyering.net>
60389 Update from coreutils:
60391 * lib/mktime.c: Merge in changes from libc.
60393 Avoid a link-time failure on some Linux systems.
60394 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60396 (__mon_yday): Declare with the STATIC attribute.
60397 (__mktime_internal): Likewise.
60398 Based on a report from Greg Schafer.
60400 2002-11-23 Jim Meyering <jim@meyering.net>
60402 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60403 Use `unsigned', not `int', as type of index.
60405 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60407 * lib/fsusage.c: Remove unneeded parentheses around operands of
60410 2002-11-22 Paul Eggert <eggert@twinsun.com>
60412 * lib/quotearg.h: Allow multiple inclusion by surrounding with
60413 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
60414 so that we can be included first.
60415 (PARAMS): Remove; we now assume C89 or later. All uses removed.
60416 * lib/quotearg.c: Include quotearg.h immediately after config.h.
60417 No need to include stddef.h or sys/types.h any more.
60418 Surround local include files with "", not "<>".
60419 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60420 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60421 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60422 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60423 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60424 (ISPRINT): Remove; no longer needed now that we assume C89.
60426 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60429 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60430 quotearg_char): Use SIZE_MAX rather than
60431 (size_t) -1 when we are talking about "infinity".
60433 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60435 2002-11-22 Paul Eggert <eggert@twinsun.com>
60437 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60438 hint that one should use `if (! x) abort ();' rather than `assert
60439 (x);', and anyway it's one less thing to worry about configuring.
60440 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60441 hash_rehash, hash_insert): Use abort rather than assert.
60443 2002-11-22 Bruno Haible <bruno@clisp.org>
60445 * lib/safe-read.h: Assume C89. Add comments.
60446 (safe_read): Change return type to size_t.
60447 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60448 byte counts > SSIZE_MAX correctly.
60449 * lib/safe-write.h: New file.
60450 * lib/safe-write.c: New file.
60451 * lib/full-read.h: New file.
60452 * lib/full-read.c: New file.
60453 * lib/full-write.h: Assume C89. Add comments.
60454 * lib/full-write.c: Include safe-write.h.
60455 (full_write): Rewritten to use safe_write.
60456 Suggested by Jim Meyering and Paul Eggert.
60458 2002-11-21 Jim Meyering <jim@meyering.net>
60460 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60462 Merge in changes from the coreutils.
60464 2002-09-25 Paul Eggert <eggert@twinsun.com>
60465 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60467 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60468 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60469 int. Work more efficiently if X is the same width as uintmax_t.
60470 Do not compare X to -1, to avoid bogus compiler warning.
60471 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60472 Don't assume that f_frsize and f_bsize are the same type.
60474 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60475 warning on FreeBSD.
60477 * lib/makepath.c (make_path): Restore umask *before* creating the final
60479 (make_path): Minor reformatting.
60481 * lib/xmalloc.c: Adjust to work with new autoconf macros,
60482 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60483 HAVE_MALLOC/HAVE_REALLOC.
60485 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60486 dummy ones. At least on GNU/Linux systems, `auto' means something
60488 From Michael Stone.
60490 2002-11-21 Bruno Haible <bruno@clisp.org>
60492 Remove case insensitive option matching.
60493 * lib/argmatch.h (argcasematch): Remove declaration.
60494 (ARGCASEMATCH): Remove macro.
60495 (__xargmatch_internal): Remove case_sensitive argument.
60496 (XARGMATCH): Update.
60497 (XARGCASEMATCH): Remove macro.
60498 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60499 case_sensitive argument.
60500 (argcasematch): Remove function.
60501 (__xargmatch_internal): Remove case_sensitive argument.
60502 (main): Use XARGMATCH instead of XARGCASEMATCH.
60504 * lib/xmalloc.c: Change compile-time error message. Add comment about
60505 required autoconf version.
60507 2002-11-20 Paul Eggert <eggert@twinsun.com>
60509 Merge argmatch cleanups from Bison. Assume C89.
60511 * lib/argmatch.c: Include config.h here, not in argmatch.h.
60512 Include stdlib.h, for EXIT_FAILURE.
60513 Always include <string.h>, since we assume C89.
60514 (EXIT_FAILURE): Remove pre-C89 bug workaround.
60515 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60516 Include <stddef.h> instead, since it's all we need for size_t.
60517 (PARAMS): Remove. All uses removed.
60518 (ARRAY_CARDINALITY): Do not bother to #undef.
60519 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60520 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60521 Remove unnecessary parentheses.
60522 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60523 Insert necessary parentheses.
60524 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60525 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60527 2002-11-19 Bruno Haible <bruno@clisp.org>
60529 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60530 * lib/mbswidth.h: Include <stddef.h>, for size_t.
60532 * lib/mbswidth.h (PARAMS): Remove macro.
60533 (mbswidth, mbsnwidth): Use ANSI C function declarations.
60534 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60536 * lib/gcd.h (PARAMS): Remove macro.
60537 (gcd): Use ANSI C function declarations.
60538 * lib/gcd.c (gcd): Likewise.
60540 2002-11-15 Bruno Haible <bruno@clisp.org>
60542 * lib/strcspn.c: Include <stddef.h>.
60543 (strcspn): Use ANSI C function declaration. Change return type to
60545 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60546 (strpbrk): Use NULL.
60547 * lib/strpbrk.h (PARAMS): Remove macro.
60548 (strpbrk): Use ANSI C function declaration.
60549 * lib/strstr.c: Don't include <sys/types.h>.
60550 * lib/strstr.h (PARAMS): Remove macro.
60551 (strstr): Use ANSI C function declarations.
60553 2002-11-14 Karl Berry <karl@gnu.org>
60555 * config/mkinstalldirs: `do' on separate line, instead of
60558 2002-11-06 Bruno Haible <bruno@clisp.org>
60560 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60561 * lib/gcd.c (gcd): Likewise.
60563 2002-11-05 Bruno Haible <bruno@clisp.org>
60565 * lib/gcd.h: New file, from gettext-0.11.5.
60566 * lib/gcd.c: New file, from gettext-0.11.5.
60568 2002-11-05 Bruno Haible <bruno@clisp.org>
60570 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60571 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60572 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60573 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60575 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60577 * lib/makepath.c: Include gettext.h instead of <locale.h> and
60580 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60581 * lib/human.c: Include gettext.h instead of <libintl.h>.
60582 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60583 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60584 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60585 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60586 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60587 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60588 (textdomain): Remove definition.
60589 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60591 * lib/long-options.c: Remove include of <libintl.h> and definition of
60593 * lib/same.c: Remove include of <libintl.h> and definition of _.
60595 2002-11-04 Owen Taylor <otaylor@redhat.com>
60597 * lib/config.charset: A few additions for Solaris.
60599 2002-11-04 Bruno Haible <haible@clisp.cons.org>
60601 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60602 * lib/localcharset.c (locale_charset): Declare as extern "C".
60604 2002-11-04 Bruno Haible <haible@clisp.cons.org>
60606 * lib/config.charset: msdos in uk_UA uses CP1125.
60608 2002-11-04 Bruno Haible <bruno@clisp.org>
60610 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60611 * lib/strcase.h: New file, from GNU gettext-0.11.5.
60612 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60613 * lib/strstr.h: New file, from GNU gettext-0.11.5.
60614 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60616 2002-11-04 Bruno Haible <bruno@clisp.org>
60618 * lib/localcharset.c (locale_charset): Don't return an empty string.
60620 2002-11-04 Bruno Haible <bruno@clisp.org>
60622 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60625 2002-11-04 Bruno Haible <bruno@clisp.org>
60627 * lib/config.charset: Update for newest glibc. Add canonical names
60628 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60630 2002-11-04 Bruno Haible <bruno@clisp.org>
60632 * lib/config.charset: Add support for NetBSD.
60634 2002-11-04 Bruno Haible <bruno@clisp.org>
60636 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60638 2002-11-01 Bruno Haible <bruno@clisp.org>
60640 * configure.in: Add AC_CONFIG_AUX_DIR call.
60641 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60643 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60645 2002-09-28 Karl Berry <karl@gnu.org>
60647 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60648 installed automake until the next release, since changes have been
60651 2002-09-25 Karl Berry <karl@gnu.org>
60653 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60654 * lib/getopt*: copy from libc/posix.
60655 * lib/gettext.h: copy from gettext.
60656 * lib/.cppi-disable: add strdup.c, gettext.h.
60658 2002-09-25 Karl Berry <karl@gnu.org>
60660 * config/srclist.txt: enable gettext.h check.
60661 * config/config.{guess,sub}: update from prep.
60662 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60663 from automake 1.6.3.
60666 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
60668 * regex.c (PATFETCH): Remove the translating fetch.
60669 (PATFETCH_RAW): Rename to PATFETCH.
60670 (set_image_of_range): New fun.
60671 (SET_RANGE_TABLE_WORK_AREA): Use it.
60672 (regex_compile): Don't translate the pattern chars so eagerly.
60673 Only do it when inserting an `exactn' bytecode or when handling
60675 (mutually_exclusive_p): Avoid empty statement.
60677 2002-07-06 Jim Meyering <meyering@lucent.com>
60679 * m4/README: Don't mention Makefile.am.in.
60680 Outline how I've tested changes to .m4 files. Yep, it's a pain.
60682 2002-07-01 Jim Meyering <meyering@lucent.com>
60684 * lib/c-stack.c: Include sys/time.h.
60685 From Volker Borchert.
60687 2002-06-26 Paul Eggert <eggert@twinsun.com>
60689 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60691 2002-06-26 Paul Eggert <eggert@twinsun.com>
60693 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60694 New macro. Use it uniformly instead of
60695 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60696 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60697 reported by Vin Shelton.
60699 2002-06-22 Paul Eggert <eggert@twinsun.com>
60701 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60702 Do not assume SA_SIGINFO behavior.
60703 Bug reported by Jim Meyering on NetBSD 1.5.2.
60705 2002-06-22 Jim Meyering <meyering@lucent.com>
60707 * m4/c-stack.m4: New file, from diffutils-2.8.2.
60708 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60710 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60711 now that configure.ac uses AC_GNU_SOURCE.
60712 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60713 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60715 Update to latest tools. Suggestions from Paul Eggert.
60716 * m4/stdbool.m4: New file, from diffutils-2.8.2.
60717 * m4/gnu-source.m4: Update from diffutils-2.8.2.
60718 * m4/fnmatch.m4: Likewise.
60719 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60720 to AC_HEADER_STDBOOL
60722 2002-06-22 Jim Meyering <meyering@lucent.com>
60724 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60725 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60727 2002-06-22 Jim Meyering <meyering@lucent.com>
60729 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60731 * lib/exitfail.c, exitfail.h: Likewise.
60732 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60734 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60736 (EXTRA_DIST): Add fnmatch_loop.c.
60737 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60739 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60740 * lib/fnmatch.c: Update from diffutils-2.8.2.
60741 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
60742 * lib/fnmatch.h: Remove file.
60744 2002-06-21 Jim Meyering <meyering@lucent.com>
60746 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60747 * m4/mbrtowc.m4: Likewise.
60749 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60750 * m4/mbswidth.m4: Reflect name change:
60751 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60752 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60754 * m4/lib-link.m4: Update from gettext-0.11.2.
60755 * m4/gettext.m4: Likewise.
60757 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60758 From Alfred M. Szmidt.
60760 2002-06-18 Paul Eggert <eggert@twinsun.com>
60762 * lib/file-type.h: Report an error if neither S_ISREG nor
60763 S_IFREG is defined, instead of using a test specific to glibc
60764 2.2. This should be safe, since POSIX requires S_ISREG and
60765 Unix Version 7 had S_IFREG. We don't need to check for
60766 <sys/types.h> since we don't use any symbols that it defines.
60768 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
60770 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60771 $@-t, so that each temporary file name is unique and valid in the first
60772 8 characters, for operation under DOS.
60774 2002-06-15 Paul Eggert <eggert@twinsun.com>
60776 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60778 2002-06-15 Jim Meyering <meyering@lucent.com>
60780 Work even with DJGPP 2.03, which lacks support for symlinks.
60782 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60784 * lib/lchown.c (S_ISLNK): Likewise.
60786 2002-06-15 Jim Meyering <meyering@lucent.com>
60788 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60789 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60790 have been included before this file.
60792 2002-06-14 Jim Meyering <meyering@lucent.com>
60794 * lib/file-type.h: Use the version from diffutils-2.8.2.
60795 * lib/file-type.c: Likewise.
60797 2002-06-07 Jim Meyering <meyering@lucent.com>
60799 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60800 They're needed at least for NetBSD 1.5.2.
60801 ($statxfs_includes): Include those same headers.
60802 ($statxfs_includes): Include sys/vfs.h if available.
60803 ($statxfs_includes): Likewise for sys/statvfs.h.
60804 Check for the following members in both structs statfs and statvfs:
60805 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60807 2002-06-01 Jim Meyering <meyering@lucent.com>
60809 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60810 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60812 2002-05-28 Jim Meyering <meyering@lucent.com>
60814 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60815 Reported by Volker Borchert.
60817 2002-05-27 Jim Meyering <meyering@lucent.com>
60819 Fix a problem seen only on nonconforming systems whereby ls.c's
60820 use of localtime, and then of gettimeofday would cause trouble:
60821 the localtime call used to initialize rpl_gettimeofday's save
60822 mechanism would clobber ls's current local time information so
60823 that in any long listing the first file would always be listed
60824 with date 1970-01-01. Analysis by Volker Borchert.
60826 * lib/gettimeofday.c (localtime): Undefine.
60827 (rpl_localtime): New function.
60829 2002-05-27 Jim Meyering <meyering@lucent.com>
60831 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60834 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60835 use the replacement function; it wouldn't resolve at link time.
60836 Reported by Volker Borchert.
60838 2002-05-22 Jim Meyering <meyering@lucent.com>
60840 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60842 * lib/file-type.h: New file.
60843 * lib/file-type.c (file_type): New file/function. Extracted from
60846 2002-04-30 Jim Meyering <meyering@lucent.com>
60848 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60850 2002-04-29 Paul Eggert <eggert@twinsun.com>
60852 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60854 2002-04-29 Paul Eggert <eggert@twinsun.com>
60856 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60857 Do not check for alloca.h (no longer used) or stdbool.h (was never
60858 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
60860 2002-04-29 Paul Eggert <eggert@twinsun.com>
60862 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60864 2002-04-29 Jim Meyering <meyering@lucent.com>
60866 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60867 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60868 Use AC_FUNC_STRNLEN here instead.
60870 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60871 With autoconf-2.53a, it's part of AC_PROG_CC.
60873 2002-04-28 Paul Eggert <eggert@twinsun.com>
60875 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60876 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60878 2002-04-28 Paul Eggert <eggert@twinsun.com>
60880 * lib/sig2str.h, lib/sig2str.c: New files.
60881 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60883 2002-04-28 Paul Eggert <eggert@twinsun.com>
60885 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60886 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
60887 of 127, since 64 is the largest conceivable number for ancient
60889 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60891 2002-04-28 Jim Meyering <meyering@lucent.com>
60893 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60895 2002-04-24 Jim Meyering <meyering@lucent.com>
60897 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60898 (jm_PREREQ): Use it.
60900 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60901 mach/mach.h fcntl.h.
60902 Check for this function: setlocale.
60904 2002-04-24 Jim Meyering <meyering@lucent.com>
60906 * lib/gettext.h: New file, from Gettext.
60907 * lib/Makefile.am (INCLUDES): Remove -I../intl.
60908 (libfetish_a_SOURCES): Add gettext.h.
60910 2002-04-16 Jim Meyering <meyering@lucent.com>
60912 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60913 ut_pid, ut_id, ut_exit.
60915 2002-04-16 Jim Meyering <meyering@lucent.com>
60917 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60918 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60919 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60921 2002-04-12 Jim Meyering <meyering@lucent.com>
60923 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60924 now-bogus check for f_type in sys/mount.h. Instead, just test for the
60925 existence of the getmntinfo function. Needed for Darwin 5.3.
60927 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60928 This is necessary at least on Darwin 5.3.
60930 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60931 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
60932 strnlen.o in the library, and that makes some versions of ranlib
60935 2002-04-12 Jim Meyering <meyering@lucent.com>
60937 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60939 2002-04-09 Jim Meyering <meyering@lucent.com>
60941 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60942 to be more precise. Rather than saying we're checking whether the
60943 function `works', say what we're testing.
60944 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60945 Reported by Bruno Haible.
60947 2002-03-10 Jim Meyering <meyering@lucent.com>
60949 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60950 Suggestion from Santiago Vila.
60952 2002-03-08 Jim Meyering <meyering@lucent.com>
60954 * lib/rename.c: Mention that this wrapper is needed also on
60955 mips-dec-ultrix4.4 systems.
60957 2002-03-02 Jim Meyering <meyering@lucent.com>
60959 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60960 not HAVE_CLOCK_SETTIME.
60962 2002-02-27 Paul Eggert <eggert@twinsun.com>
60964 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60965 Check for clock_settime.
60967 2002-02-27 Paul Eggert <eggert@twinsun.com>
60969 * lib/nanosleep.h: Rename to....
60970 * lib/timespec.h: New name for nanosleep.h. All uses changed.
60972 * lib/gettime.c: New file.
60973 * lib/settime.c: New file.
60974 * lib/stime.c: Remove.
60976 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60977 timespec.h. Remove nanosleep.h.
60979 2002-02-25 Paul Eggert <eggert@twinsun.com>
60981 * m4/acl.m4: New file.
60982 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60983 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60985 2002-02-25 Paul Eggert <eggert@twinsun.com>
60987 * lib/acl.c, lib/acl.h: New files.
60988 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60990 2002-02-24 Jim Meyering <meyering@lucent.com>
60992 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60993 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60994 cause trouble. Reported by Nelson Beebe.
60996 2002-02-23 Paul Eggert <eggert@twinsun.com>
60998 * lib/path-concat.c (xpath_concat): Reorder code to pacify
60999 compilers that don't know that xalloc_die never returns.
61001 2002-02-20 Jim Meyering <meyering@lucent.com>
61003 * lib/getdate.c: Regenerate using bison-1.33.
61005 2002-02-17 Jim Meyering <meyering@lucent.com>
61007 * config/config.guess (main): Don't use `head -1'; it's no longer
61008 portable. Use `sed 1q' instead.
61010 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
61012 * m4/codeset.m4: Upgrade to gettext-0.11.
61013 * m4/gettext.m4: Upgrade to gettext-0.11.
61014 * m4/glibc21.m4: Upgrade to gettext-0.11.
61015 * m4/iconv.m4: Upgrade to gettext-0.11.
61016 * m4/isc-posix.m4: Upgrade to gettext-0.11.
61017 * m4/lcmessage.m4: Upgrade to gettext-0.11.
61018 * m4/lib-ld.m4: New file, from gettext-0.11.
61019 * m4/lib-link.m4: New file, from gettext-0.11.
61020 * m4/lib-prefix.m4: New file, from gettext-0.11.
61021 * m4/progtest.m4: Upgrade to gettext-0.11.
61023 2002-02-15 Paul Eggert <eggert@twinsun.com>
61025 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61026 (jm_PREREQ): Use it.
61028 2002-02-15 Paul Eggert <eggert@twinsun.com>
61030 * lib/posixver.c, lib/posixver.h: New files.
61031 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61033 2002-02-02 Paul Eggert <eggert@twinsun.com>
61034 Bruno Haible <bruno@clisp.org>
61036 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61037 (fwrite_success_callback): New declaration.
61038 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61039 print_unicode_char. Call failure callback instead of error.
61040 (fwrite_success_callback): New function.
61041 (exit_failure_callback): New function.
61042 (fallback_failure_callback): New function.
61043 (print_unicode_char): Call unicode_to_mb.
61045 2002-01-26 Jim Meyering <meyering@lucent.com>
61047 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61048 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61050 2002-01-26 Jim Meyering <meyering@lucent.com>
61052 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61054 2002-01-22 Paul Eggert <eggert@twinsun.com>
61056 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61058 2002-01-22 Jim Meyering <meyering@lucent.com>
61060 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61061 Otherwise, some versions of automake would omit the rule that makes
61062 Makefile from Makefile.in.
61064 2002-01-21 Paul Eggert <eggert@twinsun.com>
61066 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61067 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61068 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61069 (memcoll): Set errno to zero if there is no error.
61071 * lib/quotearg.c (quotearg_buffer_restyled):
61072 Fix bug with quoting buffers containing NUL when backslashing escapes.
61073 This bug was exposed by the other changes in this patch.
61074 (quotearg_n_options): New arg ARGSIZE.
61075 All callers changed.
61076 (quoting_options_from_style): New function.
61077 (quotearg_n_style): Use it.
61078 (quotearg_n_style_mem): New function.
61080 * lib/quotearg.h (quotearg_n_style_mem): New function.
61082 2002-01-19 Jim Meyering <meyering@lucent.com>
61084 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61085 Remove useless quotes: DF_PROG="df".
61086 * m4/strnlen.m4: New file.
61088 2002-01-16 Paul Eggert <eggert@twinsun.com>
61090 * lib/backupfile.c (ISDIGIT): Comment fix.
61091 * lib/getdate.y (ISDIGIT): Likewise.
61092 * lib/posixtm.c (ISDIGIT, year): Likewise.
61093 * lib/strverscmp.c (ISDIGIT): Likewise.
61094 * lib/userspec.c (ISDIGIT): Likewise.
61096 2002-01-16 Jim Meyering <meyering@lucent.com>
61098 * lib/getdate.y: Add three semicolons, each just before a closing
61099 brace. Bison (as of version 1.31) no longer papers over that mistake.
61101 2002-01-05 Jim Meyering <meyering@lucent.com>
61103 * lib/version-etc.c (version_etc_copyright): Update copyright year.
61105 2001-12-19 Paul Eggert <eggert@twinsun.com>
61107 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61108 not silently exit merely because the output buffer happens to
61109 have nothing pending.
61111 2001-12-18 Paul Eggert <eggert@twinsun.com>
61113 See the big note in ../ChangeLog.
61114 * lib/human.c (suffixes): Prefer K to k for 1024.
61115 (generate_suffix_backwards): New function.
61116 (human_readable_inexact): Use it.
61117 * lib/xstrtol.c (__xstrtol): If there is no number but there
61118 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
61119 Accept 'K' as well as 'k'.
61121 2001-12-15 Jim Meyering <meyering@lucent.com>
61123 * lib/regex.h (__restrict_arr): Update from libc.
61125 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61126 as `remote' if the name starts with `//'. Suggested by Michael Stone.
61129 2001-12-14 Jim Meyering <meyering@lucent.com>
61131 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61132 Suggestion from Bruno Haible.
61134 2001-12-10 Jim Meyering <meyering@lucent.com>
61136 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61137 xrealloc, Instead, include "xalloc.h".
61138 (initbuffer): Don't cast xmalloc return value to char*.
61139 (readline): Reword comment.
61140 Don't cast xrealloc return value to char*
61141 Return NULL, not 0.
61143 2001-12-09 Jim Meyering <meyering@lucent.com>
61145 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61146 about `signed and unsigned type in conditional expression'.
61147 * lib/posixtm.c (posix_time_parse): Likewise.
61149 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61151 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61152 to avoid a pedantic warning.
61154 * lib/getstr.c: Don't include assert.h.
61155 (getstr): Remove warning-evoking assertions.
61156 Return -1 if offset parameter is out of bounds.
61157 Change the type of a local from int to size_t.
61159 * lib/strftime.c (my_strftime_localtime_r): Include this function
61160 definition in the `#if ! HAVE_TM_GMTOFF' block.
61162 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61163 Include xalloc.h instead.
61165 2001-12-02 Jim Meyering <meyering@lucent.com>
61167 * lib/tempname.c: Don't declare getenv, thus reverting the change of
61168 2001-11-18. It's no longer necessary, now that stdlib.h is always
61171 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61172 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
61174 2001-11-30 Akim Demaille <akim@epita.fr>
61176 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61177 before being defined.
61179 2001-11-27 Paul Eggert <eggert@twinsun.com>
61181 * lib/quotearg.h (quotearg_n, quotearg_n_style):
61182 First arg is int, not unsigned.
61183 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61184 (SIZE_MAX, UINT_MAX): New macros.
61185 (quotearg_n_options): Abort if N is negative.
61186 Avoid overflow check on hosts where size_t is 64 bits and int
61187 is 32 bits, as overflow is impossible there.
61188 Fix off-by-one typo that caused unnecessary reallocation.
61190 2001-11-27 Jim Meyering <meyering@lucent.com>
61192 * lib/tempname.c: Merge with version from libc.
61193 * lib/regex.c: Likewise.
61195 * lib/tempname.c: Include stdlib.h unconditionally. On some old
61196 systems for which STDC_HEADERS is 0, it was not included, resulting in
61197 a warning about an integer-to-pointer conversion problem with getenv.
61198 Reported by Volker Borchert.
61200 2001-11-26 Jim Meyering <meyering@lucent.com>
61202 * lib/gtod.h: Remove file.
61203 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61204 * lib/gettimeofday.c: Don't include gtod.h.
61205 (GTOD_init): Remove function.
61206 (rpl_gettimeofday): Do its job here instead, rather than aborting.
61207 Suggestion from Volker Borchert.
61209 2001-11-23 Jim Meyering <meyering@lucent.com>
61211 * lib/hash.h (struct hash_table): Don't define here. Merely declare
61213 * lib/hash.c (struct hash_table): Define it here instead.
61215 2001-11-22 Jim Meyering <meyering@lucent.com>
61217 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61219 2001-11-20 Jim Meyering <meyering@lucent.com>
61221 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61222 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61224 2001-11-19 Jim Meyering <meyering@lucent.com>
61226 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61227 directory. Use "conftestXXXXXX" as the template.
61228 Suggestion from Paul Eggert.
61230 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61231 immediately, so the test doesn't mistakenly hit the max-open-files
61234 2001-11-18 Paul Eggert <eggert@twinsun.com>
61236 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61237 (TEMPORARIES): New macro.
61238 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
61239 removes an artificial limitation (e.g. HP-UX 10.20, where
61242 2001-11-18 Jim Meyering <meyering@lucent.com>
61244 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61246 2001-11-18 Jim Meyering <meyering@lucent.com>
61248 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61251 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61252 files will be created before anything else.
61254 2001-11-17 Paul Eggert <eggert@twinsun.com>
61256 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61257 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61259 2001-11-17 Jim Meyering <meyering@lucent.com>
61261 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61262 Prompted by a report from Bob Proulx.
61264 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61265 Instead, require UTILS_FUNC_MKSTEMP.
61267 2001-11-17 Jim Meyering <meyering@lucent.com>
61269 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61270 Now, that's done as part of AC_FUNC_STRTOD.
61272 2001-11-17 Jim Meyering <meyering@lucent.com>
61274 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61275 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61276 rather than group writable. Patch by Juan F. Codagnone.
61278 * lib/readtokens.c: Remove explicit declarations of xmalloc and
61279 xrealloc, Instead, include "xalloc.h".
61281 * lib/mountlist.c: Include unlocked-io.h after all system headers.
61282 Remove explicit declarations of xmalloc, xrealloc,
61283 and xstrdup. Instead, include "xalloc.h".
61285 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61287 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61289 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61291 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61292 Reported by Padraig Brady.
61294 * lib/mkstemp.c: #undef mkstemp.
61296 (rpl_mkstemp): Rename from mkstemp.
61299 2001-11-16 Jim Meyering <meyering@lucent.com>
61301 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61302 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61303 determine the amount of total physical memory, use pstat_getstatic.
61304 HPUX-11 doesn't define _SC_PHYS_PAGES.
61305 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61306 If sysconf couldn't be used to determine the amount of available
61307 physical memory, use both pstat_getstatic and pstat_getdynamic.
61308 Based on a patch from Bob Proulx.
61310 2001-11-10 Jim Meyering <meyering@lucent.com>
61312 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61313 (jm_PREREQ): Use it.
61315 2001-11-09 Jim Meyering <meyering@lucent.com>
61317 * m4/jm-macros.m4: Require autoconf-2.52f.
61318 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61319 Use these AC_-prefixed names, not the AM_-prefixed ones.
61321 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
61323 2001-11-05 Jim Meyering <meyering@lucent.com>
61325 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61327 2001-11-04 Jim Meyering <meyering@lucent.com>
61329 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61332 2001-11-03 Jim Meyering <meyering@lucent.com>
61334 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61337 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61338 know the name of the variable in the macro definition.
61340 2001-11-03 Jim Meyering <meyering@lucent.com>
61342 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61343 in argmatch_to_argument call.
61345 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61348 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61349 e.g., a fault due to an attempt to free a NULL pointer.
61351 2001-11-01 Jim Meyering <meyering@lucent.com>
61353 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61354 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61356 2001-11-01 Jim Meyering <meyering@lucent.com>
61358 * lib/dirfd.c, lib/dirfd.h: New files.
61359 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61361 * lib/hash.c (hash_print) [TESTING]: Clean up.
61363 2001-10-22 Paul Eggert <eggert@twinsun.com>
61365 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61366 to avoid a warning if -Wall.
61368 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
61371 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61372 (per RMS's instructions, this is now the canonical source)
61373 * lgpl/, gpl/: New directories.
61375 2001-10-21 Paul Eggert <eggert@twinsun.com>
61377 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61379 2001-10-21 Jim Meyering <meyering@lucent.com>
61381 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
61382 this code would end up calling gettext even in packages built
61383 with --disable-nls.
61384 * lib/getopt.c (_): Likewise.
61385 * lib/regex.c (_): Likewise.
61387 2001-10-20 Paul Eggert <eggert@twinsun.com>
61389 * m4/error.m4 (jm_PREREQ_ERROR):
61390 Do not invoke AC_CHECK_FUNCS with strerror_r, as
61391 AC_FUNC_STRERROR_R does that.
61392 Check for strerror declaration.
61394 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61395 are supposed to have them these days.
61396 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61397 Merge changes from latest Autoconf CVS.
61398 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61399 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61400 POSIX decided to standardize on the int flavor of strerror_r.
61402 2001-10-20 Paul Eggert <eggert@twinsun.com>
61404 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61405 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61406 Use strerror_r that is only a macro, even if it is not a function.
61407 (strerror): Check for HAVE_DECL_STRERROR before declaring.
61408 (private_strerror): Use prototypes, not old-style function definition.
61409 (print_errno_message): New function.
61410 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61411 char*-flavored one.
61412 (error_tail, error, error_at_line): Use it.
61414 2001-10-11 Jim Meyering <meyering@lucent.com>
61416 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61417 and quote_n (1, ... to avoid clobbering a buffer.
61419 2001-10-05 Jim Meyering <meyering@lucent.com>
61421 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61423 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61424 * lib/hash-pjw.h: New file.
61426 2001-09-30 Jim Meyering <meyering@lucent.com>
61428 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61429 `struct fsstat' has the `f_fstypename' member.
61430 Use that to define FS_TYPE, which is now used to make
61431 the getfsstat link test tighter.
61433 2001-09-30 Jim Meyering <meyering@lucent.com>
61435 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61436 Include <sys/ucred.h>, for Apple Darwin.
61437 Include sys/mount.h and sys/fs_types.h only if available.
61439 (read_filesystem_list): Use FS_TYPE.
61441 2001-09-29 Paul Eggert <eggert@twinsun.com>
61443 * lib/exclude.c (excluded_filename): 0 -> false, since it's
61446 2001-09-29 Jim Meyering <meyering@lucent.com>
61448 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61449 [one-argument getmntent function]): Include stdio.h before mntent.h.
61450 SunOS 4.1.x needs it for the declaration of `FILE'.
61451 Patch by Volker Borchert.
61453 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61454 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61455 sys/fs_types.h, and make the link-test for getfsstat guard #include
61456 directives with appropriate #if HAVE_*_H tests so that we can
61457 detect getfsstat on Apple Darwin1.3.7 systems.
61458 Reported by Nelson Beebe.
61459 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61461 2001-09-28 Paul Eggert <eggert@twinsun.com>
61463 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61464 #defines strtoimax. Also treat the other strto* functions
61467 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61468 Check for strtoul and strtoumax,
61469 as those declarations are made even in the signed case.
61470 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61471 Likewise, for strtol and strtoimax.
61473 2001-09-28 Paul Eggert <eggert@twinsun.com>
61475 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61476 #defines strtoimax. Also treat the other strto* functions
61479 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61480 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61481 (strtoimax, strtoumax): Do not declare if already defined as a macro.
61483 2001-09-26 Jim Meyering <meyering@lucent.com>
61485 Most macros in unlocked-io.h had the wrong number of arguments.
61486 * lib/gen-uio: New script.
61487 (USE_UNLOCKED_IO): Define to 1 if not already defined.
61488 * lib/unlocked-io.hin: Remove file.
61489 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61490 rather than trying to embed it here.
61491 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
61492 Reported by Padraig Brady.
61494 2001-09-25 Volker Borchert <bt@teknon.de>
61496 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61499 2001-09-24 Jim Meyering <meyering@lucent.com>
61501 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61503 2001-09-23 Jim Meyering <meyering@lucent.com>
61505 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61506 instead of the mere test for existence of mntent.h. The latter
61507 would get a false-positive on AIX 3.4 systems.
61508 In the outer getmntent if-block, don't die if neither of the getmntent
61509 tests succeeds. Instead, just fall through and continue with the
61512 2001-09-23 Jim Meyering <meyering@lucent.com>
61514 * lib/mountlist.c: Remove useless parentheses in #if directives.
61515 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61516 the deprecated MOUNTED symbol is no longer defined in mntent.h.
61518 2001-09-22 Jim Meyering <meyering@lucent.com>
61520 * m4/gettext.m4: New file. From gettext.
61521 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61522 * m4/progtest.m4: Likewise
61523 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61524 * m4/glibc21.m4: Likewise.
61526 * m4/libintl.m4: Remove. No longer used.
61528 2001-09-22 Jim Meyering <meyering@lucent.com>
61530 * lib/localcharset.c: Update from latest gettext.
61531 * lib/config.charset: Likewise.
61533 2001-09-20 Jim Meyering <meyering@lucent.com>
61535 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61537 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61540 2001-09-20 Jim Meyering <meyering@lucent.com>
61542 * lib/xstrtol.c (strtoimax): Guard declaration with
61543 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61544 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61545 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61546 (strtoumax): Likewise, for completeness (it wasn't necessary).
61548 2001-09-17 Paul Eggert <eggert@twinsun.com>
61550 * lib/strtoimax.c (HAVE_LONG_LONG):
61551 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61552 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61553 to work around bug in IBM C compiler.
61555 2001-09-17 Jim Meyering <meyering@lucent.com>
61557 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61558 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61559 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61560 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61561 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61562 whenever the right hand side need not be expanded by the shell.
61564 2001-09-16 Paul Eggert <eggert@twinsun.com>
61566 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61567 library. It's not correct, as some older glibcs are buggy.
61568 fnmatch wasn't fixed until glibc 2.2.
61570 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61571 special shell magic here.
61573 2001-09-16 Jim Meyering <meyering@lucent.com>
61575 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61576 * m4/jm-macros.m4: Require it.
61578 2001-09-16 Jim Meyering <meyering@lucent.com>
61580 * lib/mkdir.c: New file.
61582 2001-09-15 Jim Meyering <meyering@lucent.com>
61584 * m4/jm-macros.m4: Check for help2man.
61586 2001-09-11 Jim Meyering <meyering@lucent.com>
61588 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61589 The body, by Paul Eggert, was moved here from configure.in.
61590 * m4/jm-macros.m4: Require UTILS_HOST_OS.
61592 2001-09-04 Paul Eggert <eggert@twinsun.com>
61594 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61595 (jm_PREREQ): Use it.
61597 2001-09-04 Paul Eggert <eggert@twinsun.com>
61599 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
61600 Use ssize_t, not int, to store result of readlink.
61601 Check for ssize_t overflow as well as size_t overflow,
61602 as POSIX says the result of readlink is implementation-defined
61603 when ssize_t overflows.
61604 Remove unnecessary cast to char*.
61605 Use free+malloc instead of realloc, as the storage doesn't need
61606 to be preserved and it's clearer and can be more efficient that way.
61607 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61608 * lib/xreadlink.h (xreadlink): Update prototype.
61610 2001-09-04 Paul Eggert <eggert@twinsun.com>
61612 * lib/xgetcwd.c: Revert some of the previous change; intead,
61613 fix the HAVE_GETCWD_NULL code to behave more like the
61614 !HAVE_GETCWD_NULL code used to.
61616 Include "xalloc.h".
61617 (xgetcwd): Do not return NULL when memory is exhausted; instead,
61620 2001-09-03 Paul Eggert <eggert@twinsun.com>
61622 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61623 sys/param.h, as pathmax.h includes them.
61625 2001-09-03 Paul Eggert <eggert@twinsun.com>
61627 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61628 (jm_PREREQ_XGETCWD): New macro.
61630 * m4/getcwd.m4: New file.
61632 2001-09-03 Paul Eggert <eggert@twinsun.com>
61634 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61635 like the HAVE_GETCWD_NULL code.
61636 Include pathmax.h if not HAVE_GETCWD.
61637 Do not include xalloc.h.
61638 (INITIAL_BUFFER_SIZE): New symbol.
61639 Do not use xmalloc / xrealloc, since the caller is responsible for
61640 handling errors. Preserve errno around `free' during failure.
61641 Do not overrun buffer when using getwd.
61643 2001-09-03 Paul Eggert <eggert@twinsun.com>
61645 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61646 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61649 2001-09-03 Paul Eggert <eggert@twinsun.com>
61651 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61652 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
61653 spotted by Jim Meyering.
61655 2001-09-03 Jim Meyering <meyering@lucent.com>
61657 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61660 2001-09-02 Jim Meyering <meyering@lucent.com>
61662 * lib/error.c: Update from GNU libc.
61664 2001-09-01 Jim Meyering <meyering@lucent.com>
61666 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61669 2001-09-01 Jim Meyering <meyering@lucent.com>
61671 * lib/xreadlink.c: New file.
61672 * lib/xreadlink.h: New file.
61673 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61676 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61677 doesn't conflict with sparc Solaris 7's definition in
61678 /usr/include/sys/int_types.h.
61680 * lib/exclude.c: Use `""', not `<>' to #include non-system header
61682 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61683 and strncasecmp as r-values. Unixware didn't have declarations.
61685 2001-08-31 Paul Eggert <eggert@twinsun.com>
61687 * lib/xstrtol.h: Add copyright notice.
61688 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61689 LONGINT_INVALID_SUFFIX_CHAR.
61691 2001-08-31 Paul Eggert <eggert@twinsun.com>
61693 * lib/xstrtol.c (strtoimax): New decl.
61695 2001-08-31 Paul Eggert <eggert@twinsun.com>
61697 * lib/xgetcwd.c: Don't include pathmax.h.
61698 Include stdlib.h and unistd.h if available.
61700 (xmalloc, xstrdup, free): Remove decls.
61701 (xgetcwd): Don't assume sizes fit in unsigned.
61702 Check for overflow when computing sizes.
61703 Simplify reallocation code.
61705 2001-08-31 Paul Eggert <eggert@twinsun.com>
61707 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61708 a directory's st_size can have an arbitrary value, so the old
61709 usage could waste an arbitrary amount of memory. All uses
61711 * lib/savedir.h: Update prototype.
61713 2001-08-31 Paul Eggert <eggert@twinsun.com>
61715 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61717 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61720 Also, make the following further changes to make this file's
61721 configuration more similar to that of strtol.c:
61722 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
61723 (strtoumax, uintmax_t, strtoull, strtol): Remove.
61724 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61725 (strtoimax): Renamed from strtoumax. All uses of unsigned values
61726 changed to signed values.
61728 And make the following changes as well:
61729 Fix copyright notice, as 1999 was missing.
61730 (verify): New macro.
61731 (strtoimax): Check sizes at compile-time, not run-time.
61732 Prefer strtol to strtoll if both work.
61733 (main): Remove; it was not that useful and was a pain to maintain.
61735 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61737 2001-08-31 Jim Meyering <meyering@lucent.com>
61739 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61740 Use an initial, malloc'd, buffer of length 128 rather than
61741 a statically allocated one of length 1024.
61743 2001-08-30 Paul Eggert <eggert@twinsun.com>
61745 Simplify code, partly by assuming autoconf 2.52 semantics.
61747 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61749 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61750 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61752 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61753 Move AC_REQUIRE to next-to-top level, to avoid confusion.
61754 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61755 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61756 jm_AC_HEADER_INTTYPES_H.
61757 * m4/jm-macros.m4 (jm_MACROS): Likewise.
61759 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61761 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61762 Quote first arg of AC_DEFUN.
61763 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61764 since they are needed to parse the include file even if we need
61765 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
61766 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61767 but with opposite signedness.
61769 2001-08-30 Paul Eggert <eggert@twinsun.com>
61771 Merge 'exclude' changes from tar 1.13.22.
61772 This fixes one or two unlikely storage allocation overflow bugs,
61773 but doesn't change user-visible behavior otherwise.
61775 2001-08-30 Paul Eggert <eggert@twinsun.com>
61777 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61778 (jm_PREREQ_EXCLUDE): New macro.
61780 2001-08-30 Paul Eggert <eggert@twinsun.com>
61782 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61785 2001-08-30 Paul Eggert <eggert@twinsun.com>
61787 * lib/hash.c: Remove '2001' from copyright notice.
61789 2001-08-30 Paul Eggert <eggert@twinsun.com>
61791 * lib/full-write.h: New file.
61792 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61793 * lib/full-write.c: Correct credits, as cccp.c no longer
61794 exists and anyway it was so heavily changed from the old cccp
61795 code as to be unrecognizable. Include full-write.h.
61796 (full_write) Return size_t, with short writes meaning failure.
61797 All callers changed. This fixes a bug with large buffers
61799 * lib/utime.c: Include full-write.h.
61801 2001-08-30 Paul Eggert <eggert@twinsun.com>
61803 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61804 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61805 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61806 Include if available.
61807 (<xalloc.h>): Include
61808 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61809 (verify): New macro. Use it to verify that EXCLUDE macros do not
61810 collide with FNM macros.
61811 (struct patopts): New struct.
61812 (struct exclude): Use it, as exclude patterns now come with options.
61813 (new_exclude): Support above changes.
61814 (new_exclude, add_exclude_file):
61815 Initial size must now be a power of two to simplify overflow checking.
61816 (free_exclude, fnmatch_no_wildcards): New function.
61817 (excluded_filename): No longer requires options arg, as the options
61818 are determined by add_exclude. Now returns bool, not int.
61819 (excluded_filename, add_exclude):
61820 Add support for the fancy new exclusion options.
61821 (add_exclude, add_exclude_file): Now takes int options arg.
61822 Check for arithmetic overflow when computing sizes.
61823 (add_exclude_file): xrealloc might modify errno, so don't
61824 realloc until after errno might be used.
61826 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61828 (free_exclude): New decl.
61829 (add_exclude, add_exclude_file): Now takes int options arg.
61830 (excluded_filename): No longer requires options arg, as the options
61831 are determined by add_exclude. Now returns bool, not int.
61833 2001-08-30 Paul Eggert <eggert@twinsun.com>
61835 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61837 2001-08-27 Jim Meyering <meyering@lucent.com>
61839 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61841 * lib/version-etc.c (N_): Remove definition.
61842 Revert most of last change.
61843 Instead, simply don't mark the `Copyright...' string for translation.
61844 Based on advice from Paul Eggert.
61846 * lib/strtoxmax.c: Tweak comment.
61848 2001-08-26 Jim Meyering <meyering@lucent.com>
61850 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61852 * m4/xstrtoimax.m4: New file.
61853 * m4/xstrtoumax.m4: Add comments explaining why we
61854 AC_REPLACE_FUNCS(strtol).
61856 2001-08-26 Jim Meyering <meyering@lucent.com>
61858 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61859 of copyright with `%s' so translators don't get an untranslated
61861 (COPYRIGHT_YEAR): Define.
61862 (version_etc): Use fprintf rather than fputs.
61863 Suggestion from Ulrich Drepper.
61865 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61867 * lib/strtoll.c: New file, from GNU libc.
61868 * lib/xstrtoimax.c: New file.
61870 * lib/xstrtol.h: Add xstrtoimax.
61871 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
61872 * lib/strtoimax.c: New file. Likewise, but first define
61875 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61877 * lib/strtoxmax.c: ... then renamed to this.
61879 2001-08-18 Paul Eggert <eggert@twinsun.com>
61881 * m4/inttypes.m4: Add AC_PREREQ(2.13).
61882 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61883 (jm_AC_TYPE_INTMAX_T): New macro.
61884 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61886 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61888 * m4/longlong.m4: Renamed from ulonglong.m4.
61889 * m4/inttypes.m4: Renamed from inttypes_h.m4.
61890 * m4/uintmax_t.m4: Removed.
61892 2001-08-13 Paul Eggert <eggert@twinsun.com>
61894 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61895 Port to Solaris 8, where 'sed' requires a space after the 'r'
61896 command, and where sh dislikes "$/". Clean up the spacing a bit.
61897 Redirect output to $tmp just once.
61899 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
61901 * lib/addext.c (<errno.h>): Include.
61902 (errno): Declare if not defined.
61903 (addext): Work correctly when pathconf returns -1 and leaves
61904 errno alone because there is no limit. Also, work even if
61905 pathconf returns a value greater than SIZE_MAX.
61907 2001-08-12 Jim Meyering <meyering@lucent.com>
61909 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61910 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61911 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61912 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61913 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61914 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61915 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61916 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61917 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61918 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61919 utime.m4, utimes.m4, xstrtoumax.m4:
61920 Quote the first argument in each use of AC_DEFUN.
61922 2001-08-12 Jim Meyering <meyering@lucent.com>
61924 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61925 Simply `return getcwd (NULL, 0);'.
61926 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61927 Use 1300 as initial value for length, not PATH_MAX.
61929 * lib/pathmax.h: Clean up cpp syntax.
61931 2001-08-12 Jim Meyering <meyering@lucent.com>
61933 * lib/gettimeofday.c: New file.
61934 * lib/gtod.h: New file.
61935 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61937 2001-08-05 Jim Meyering <meyering@lucent.com>
61939 * m4/jm-macros.m4: Require autoconf-2.52.
61941 2001-08-04 Jim Meyering <meyering@lucent.com>
61943 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61944 stmt, to get in sync with glibc.
61946 2001-08-03 Paul Eggert <eggert@twinsun.com>
61948 The following changes are from gettext 0.10.39 as maintained by
61951 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61952 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61953 with inverted sense. All uses changed.
61955 * lib/mbswidth.c: Don't include <limits.h>.
61956 Include <stdlib.h> and <string.h> unconditionally.
61957 (iswcntrl, mbsinit, ISCNTRL): New macros.
61958 (mbsnwidth): Use K&R style function declarations.
61959 Don't bother checking for MB_LEN_MAX == 1, since the compiler
61960 can optimize it when MB_CUR_MAX == 1.
61961 The width of control characters is zero, not 1.
61963 2001-08-03 Paul Eggert <eggert@twinsun.com>
61965 The following changes are from gettext 0.10.39 as maintained by
61966 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61968 * m4/codeset.m4: Upgrade to serial AM1.
61969 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61970 all uses changed. Quote first arg of AC_DEFUN.
61971 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61973 * m4/iconv.m4: Upgrade to serial AM2.
61974 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61975 Add --with-libconv-prefix.
61976 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
61977 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61978 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61979 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61980 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61982 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61983 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61984 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61985 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61986 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61987 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61988 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61989 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61990 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61992 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61995 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61996 not the default value.
61998 2001-06-25 Bruno Haible <haible@clisp.cons.org>
61999 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62000 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
62001 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62002 Also check for iswcntrl, used for wcwidth fallback.
62003 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62006 2001-08-03 Jim Meyering <meyering@lucent.com>
62008 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62009 as it was in the original. Reported by Paul Eggert.
62011 2001-07-16 Jim Meyering <meyering@lucent.com>
62013 * m4/gettimeofday.m4: New file.
62014 Prompted by a report from Bernhard Baehr.
62016 2001-07-15 Jim Meyering <meyering@lucent.com>
62018 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62019 stuff. Now it's in ../Makefile.cfg.
62021 2001-07-15 Jim Meyering <meyering@lucent.com>
62023 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62024 (BUILT_SOURCES): Add unlocked-io.h.
62025 (io_functions): Define.
62026 (unlocked-io.h): New rule.
62027 (DISTCLEANFILES): Add unlocked-io.h.
62028 (all-local): Depend on unlocked-io.h, to ensure it is created.
62030 * lib/unlocked-io.hin: New file
62032 * lib/regex.c: Update from glibc.
62034 2001-07-05 Jim Meyering <meyering@lucent.com>
62036 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62038 (libfetish_a_SOURCES): Put all .h files here instead.
62039 Remove a thus-exposed (better checks in automake) duplicate and
62040 two unnecessary .h files.
62042 2001-07-04 Jim Meyering <meyering@lucent.com>
62044 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
62045 that generates jm-glibc-io.m4 so that it doesn't trigger any make
62048 2001-07-02 Jim Meyering <meyering@lucent.com>
62050 The following changes were prompted by suggestions from Bruno Haible.
62052 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62054 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62055 definition of EXTRA_DIST.
62056 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62057 ensure that the generated file is created/updated whenever the list
62058 of $(unlocked_functions) is changed.
62059 (jm-glibc-io.m4): New rule.
62060 (unlocked-io.h): New rule -- currently unused.
62062 2001-06-24 Jim Meyering <meyering@lucent.com>
62064 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62065 unmatched right bracket, rather than kludging it with an extra,
62066 falsely-matching quote in a comment. Patch by Akim Demaille.
62068 2001-06-11 Jim Meyering <meyering@lucent.com>
62070 * lib/regex.c: Update from GNU libc.
62072 2001-05-27 Jim Meyering <meyering@lucent.com>
62074 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62075 Check for ut_type in struct utmp.
62077 2001-05-27 Jim Meyering <meyering@lucent.com>
62079 * lib/readutmp.h (UT_TYPE): Define.
62081 2001-05-24 Jim Meyering <meyering@lucent.com>
62083 * lib/argmatch.c: Include "quote.h".
62084 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
62085 quote function. Reported by Göran Uddeborg.
62087 2001-05-22 Jim Meyering <meyering@lucent.com>
62089 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62090 now that we use the package-supplied version unconditionally.
62091 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62093 2001-05-21 Jim Meyering <meyering@lucent.com>
62095 * m4/regex.m4: Change a couple backticks to single quotes to avoid
62096 shell syntax errors.
62098 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
62100 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62102 2001-05-20 Paul Eggert <eggert@twinsun.com>
62104 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62105 Don't bother to check library strftime, since
62106 we'll be using our own my_strftime function anyway.
62107 Define my_strftime instead of strftime.
62109 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
62111 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62112 which is not yet declared.
62114 2001-05-15 Jim Meyering <meyering@lucent.com>
62116 * m4/regex.m4: Use proper quoting so brackets appear in the test
62118 Reported by, and with help from, Bruno Haible.
62120 2001-05-13 Jim Meyering <meyering@lucent.com>
62122 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62125 2001-05-11 Paul Eggert <eggert@twinsun.com>
62127 dirname code cleanup. base_name now behaves more compatibly
62128 with POSIX basename when given file names that have trailing
62129 slashes, and similarly for dir_name. Add new primitives
62130 base_len and dir_len. Put the directory-name-related decls
62133 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62134 * lib/backupfile.c (base_name): Likewise.
62135 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62136 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62137 * lib/makepath.c (strip_trailing_slashes): Likewise.
62138 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62139 ISSLASH): Likewise.
62140 * lib/rename.c (strip_trailing_slashes): Likewise.
62141 * lib/same.c (base_name): Likewise.
62142 * lib/stripslash.c (ISSLASH): Likewise.
62144 * lib/addext.c: Include <dirname.h> after size_t is defined.
62145 * lib/backupfile.c: Likewise.
62147 * lib/addext.c (addext): Use base_len to trim redundant
62148 trailing slashes instead of doing it ourselves.
62149 But do not trim the last slash if it is not redundant.
62151 * lib/backupfile.c (find_backup_file_name,
62152 max_backup_version): Use base_len instead of rolling it ourselves.
62153 Handle the case of "" and (on DOS) "C:" correctly.
62155 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62156 needed. Include <string.h>, <dirname.h>.
62157 (base_name): Allow file names ending in slashes, other than names
62158 that are all slashes. In this case, return the basename followed
62159 by the slashes. This is more general, and can be used in places
62160 where the original base_name purposely had an assertion failure.
62161 (base_len): New function.
62163 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62164 Do not include <assert.h>; no longer needed.
62166 (memrchr): Remove decl.
62167 (dir_name_r): Remove.
62168 (dir_len): Renamed from dirlen. All callers changed.
62169 Rewrite in terms of base_name, for simplicity and consistency.
62170 (dir_name): Never return NULL. All callers changed.
62171 Do not include <stdlib.h> in test program; no longer needed.
62172 return 0; is fine for test program.
62174 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62176 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62178 * lib/path-concat.c (path_concat): Use base_len to compute
62179 base length, not strlen; this means we cannot rely on memcpy
62182 * lib/same.c (STREQ): Remove.
62183 (same_name): Handle the case where the basename ends in trailing '/'.
62185 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62186 a slash was stripped. Do not strip the last slash after a
62187 file system prefix.
62189 2001-05-11 Paul Eggert <eggert@twinsun.com>
62191 * lib/Makefile.am (libfetish_a_SOURCES):
62192 Add strftime.c, since we now compile it on all hosts.
62194 * lib/strftime.c (my_strftime):
62195 Define to nstrftime if emacs, but only if my_strftime is not defined.
62196 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62197 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62198 Add one more extra argument: a nanoseconds value.
62201 (my_strftime function): Add %N format.
62202 (emacs_strftimeu): Renamed from emacs_strftime,
62203 with extra ut argument.
62205 2001-05-09 Paul Eggert <eggert@twinsun.com>
62207 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62209 2001-04-21 Jim Meyering <meyering@lucent.com>
62211 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62214 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
62216 * m4/ftruncate.m4: Check for chsize.
62217 Link with ftruncate.o unconditionally if ftruncate is missing.
62218 This was required when cross-compiling to i586-mingw32msvc.
62220 2001-04-08 Jim Meyering <meyering@lucent.com>
62222 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62223 recomputed; that's necessary when the offset spans a DST transition.
62224 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
62226 2001-04-02 Jim Meyering <meyering@lucent.com>
62228 * lib/regex.h, regex.c: Update from GNU libc.
62230 2001-03-24 Jim Meyering <meyering@lucent.com>
62232 * m4/jm-macros.m4: Require autoconf-2.49d.
62234 2001-03-20 Bruno Haible <haible@clisp.cons.org>
62236 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62238 2001-03-19 Paul Eggert <eggert@twinsun.com>
62240 * lib/version-etc.c (version_etc_copyright): Update to 2001.
62242 2001-03-17 Jim Meyering <meyering@lucent.com>
62244 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62245 now that the version in autoconf is equivalent.
62246 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62248 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62249 Suggestion from Akim Demaille.
62251 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62252 (jm_PREREQ_TEMPNAME): New function.
62254 2001-03-16 Paul Eggert <eggert@twinsun.com>
62256 * lib/tempname.c (uint64_t): Define to uintmax_t if
62257 not defined, and if UINT64_MAX is not defined.
62258 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62259 Reported by John David Anglin.
62261 2001-03-15 Bruno Haible <haible@clisp.cons.org>
62263 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62264 resolve alias if codeset is empty.
62265 * lib/config.charset (BeOS): Use wildcard syntax.
62267 2001-03-13 Jim Meyering <meyering@lucent.com>
62269 * lib/path-concat.c (path_concat)
62270 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62271 concatenating e.g., `C:' and `foo'.
62274 2001-03-06 Bruno Haible <haible@clisp.cons.org>
62276 * lib/localcharset.c (locale_charset): Don't use
62277 setlocale(LC_CTYPE,NULL). Don't return NULL.
62278 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62280 2001-03-06 Bruno Haible <haible@clisp.cons.org>
62282 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62283 support for DOS/DJGPP.
62285 2001-03-01 Paul Eggert <eggert@twinsun.com>
62287 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62288 lacks mkstemp. Compile our own tempname.c if we compile our own
62289 mkstemp.c, as mkstemp relies on tempname.
62291 2001-03-01 Jim Meyering <meyering@lucent.com>
62293 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62294 AH_VERBATIM really does output its argument verbatim.
62296 2001-02-28 Paul Eggert <eggert@twinsun.com>
62298 * lib/Makefile.am (libfetish_a_SOURCES):
62299 Add dup-safer.c, fopen-safer.c.
62300 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62302 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62303 * lib/unistd-safer.h: New files.
62305 2001-02-25 Paul Eggert <eggert@twinsun.com>
62307 The mkstemp replacement is taken from glibc 2.2.2, with some
62308 portability fixes for use outside glibc, as follows:
62310 * lib/tempname.c (struct_stat64): New macro.
62311 (direxists, __gen_tempname): Use it.
62312 This avoids a portability problem with Solaris 8.
62314 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62315 (<stddef.h>, <stdint.h>, <string.h>):
62316 Include only if STDC_HEADERS || _LIBC.
62317 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62318 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62319 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62320 (__set_errno): Define this macro if <errno.h> doesn't.
62321 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62322 Define these macros if <stdio.h> doesn't.
62323 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62324 Define these macros if <sys/stat.h>
62325 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62326 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62327 __xstat64): Define if not _LIBC.
62328 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62329 (__gen_tempname): Invoke gettimeofday only if
62330 HAVE_GETTIMEOFDAY || _LIBC;
62331 otherwise, fall back on plain "time".
62332 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62334 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62336 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62338 2001-02-18 Paul Eggert <eggert@twinsun.com>
62340 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62342 2001-02-17 Paul Eggert <eggert@twinsun.com>
62344 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62345 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62346 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62347 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62349 2001-02-17 Paul Eggert <eggert@twinsun.com>
62351 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62352 Remove workaround macros for hosts that have mbrtowc but not
62353 mbstate_t, as we now insist on proper declarations for both
62354 before using mbrtowc.
62356 2001-02-17 Jim Meyering <meyering@lucent.com>
62358 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62359 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62360 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62363 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62364 rather than AC_CACHE_VAL.
62366 2001-02-17 Jim Meyering <meyering@lucent.com>
62368 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
62369 around included file name.
62371 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62373 * lib/strftime.c: Update from GNU libc (the only changes were to
62376 2001-02-17 Jim Meyering <meyering@lucent.com>
62378 * lib/regex.c: Update from libc.
62380 2001-02-17 Bruno Haible <haible@clisp.cons.org>
62382 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62385 2001-02-16 Paul Eggert <eggert@twinsun.com>
62387 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62388 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
62389 Reported by Mark Hounschell via Paul Eggert.
62391 2001-02-07 Jim Meyering <meyering@lucent.com>
62393 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62395 2001-02-05 Jim Meyering <meyering@lucent.com>
62397 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62398 it includes the patch required for `large file' support with at least
62399 HP-UX's 10.20 /bin/cc.
62401 2001-02-03 Jim Meyering <meyering@lucent.com>
62403 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62404 AS_IF, now that it works once again (mysteriously).
62405 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62407 2001-01-30 Jim Meyering <meyering@lucent.com>
62409 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62410 * m4/chown.m4: Rename conftestchown to conftest.chown.
62411 * m4/rename.m4: s/conftestdir/conftest.d1/ and
62412 s/conftestdir2/conftest.d2/.
62413 * m4/utimes.m4: s/conftestdata/conftest.data/
62414 Inspired by Pavel Roskin's change in autoconf.
62416 2001-01-30 Bruno Haible <haible@clisp.cons.org>
62418 * lib/config.charset: Update for FreeBSD 4.2.
62420 2001-01-27 Jim Meyering <meyering@lucent.com>
62422 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62424 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62426 2001-01-26 Jim Meyering <meyering@lucent.com>
62428 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62429 quotearg.c includes it.
62431 2001-01-26 Jim Meyering <meyering@lucent.com>
62433 * lib/quotearg.c: Include stddef.h.
62434 * lib/quote.c: Include stddef.h.
62435 Reported by Axel Kittenberger.
62437 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62438 line in double quotes so that it evokes a better diagnostic.
62439 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62440 Reported by Axel Kittenberger.
62442 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
62444 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62445 as if it was a `charset'.
62447 2001-01-21 Bruno Haible <haible@clisp.cons.org>
62449 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62452 2001-01-21 Bruno Haible <haible@clisp.cons.org>
62454 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62455 to avoid a warning. Add back 'const' to inptr.
62457 2001-01-20 Jim Meyering <meyering@lucent.com>
62459 Be sure that headers are checked before used in code compiled
62460 for the type checks.
62461 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62462 In place of that, invoke jm_CHECK_ALL_TYPES.
62463 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62464 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62465 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62466 The check for ssize_t was mistakenly run before the test for unistd.h.
62468 The configure-time check for stdbool.h was missing.
62469 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62470 (jm_PREREQ_HASH): New function.
62472 2001-01-17 Jim Meyering <meyering@lucent.com>
62474 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62475 for autoconf-2.49c.
62476 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62478 2001-01-16 Jim Meyering <meyering@lucent.com>
62480 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62483 2001-01-14 Jim Meyering <meyering@lucent.com>
62485 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62486 foo and bar. Create conftestdir/ in the script, not in the C code.
62487 Remove directories in the script, not in the C code.
62488 Remove conftestdir{,2} before trying to create the directory.
62489 Make the entire configure script fail if the mkdir fails.
62491 2001-01-14 Jim Meyering <meyering@lucent.com>
62493 * lib/rename.c: New file. From Volker Borchert.
62494 Include stdlib.h, string.h or strings.h, and xalloc.h.
62495 Use strip_trailing_slashes rather than open-coding it.
62497 2001-01-03 Paul Eggert <eggert@twinsun.com>
62499 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62501 2001-01-03 Jim Meyering <meyering@lucent.com>
62503 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62504 of local `inptr' to avoid warning with some system declarations of
62507 2001-01-02 Volker Borchert <bt@teknon.de>
62509 * m4/rename.m4: New file.
62510 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62512 2001-01-01 Jim Meyering <meyering@lucent.com>
62514 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62515 even on systems with utmpx.h. It's necessary for the declaration of
62516 utmp's ut_user member. Reported by Andreas Jaeger.
62518 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62519 available. They are required for the declarations of getgrgid and
62521 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62522 Reported by Andreas Jaeger.
62524 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
62526 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62527 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62528 so `make install' also works in VPATH builds.
62530 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
62532 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62533 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62534 can be used in subdirectories.
62536 2000-12-29 Paul Eggert <eggert@twinsun.com>
62538 * lib/modechange.c: Do not assume that mode_t uses the
62539 traditional octal encoding. E.g. "chmod 1 FOO" should set
62540 the other-execute bit of FOO even if S_IXOTH != 1.
62542 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62543 WOTH, XOTH, ALLM): New macros.
62544 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62545 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62547 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62548 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62550 No need to use uintmax_t; unsigned long is long enough.
62551 Don't bother to get suffix since we don't use it.
62553 2000-12-26 Jim Meyering <meyering@lucent.com>
62555 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62556 better with autoheader.
62558 2000-12-24 Jim Meyering <meyering@lucent.com>
62560 * lib/hash.c (is_prime): Return explicit boolean values.
62561 (hash_get_first): Return NULL to appease Irix5.6's 89.
62562 Reported by Nelson Beebe.
62564 2000-12-19 Bruno Haible <haible@clisp.cons.org>
62566 * lib/localcharset.c (locale_charset): Add support for Win32.
62568 2000-12-18 Paul Eggert <eggert@twinsun.com>
62570 * lib/physmem.h, lib/physmem.c: New files.
62572 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62573 (noinst_HEADERS): Add physmem.h.
62575 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62576 't' for compatibility with Solaris 8 sort.
62578 2000-12-18 Bruno Haible <haible@clisp.cons.org>
62580 * lib/config.charset: Add support for BeOS.
62582 2000-12-17 Jim Meyering <meyering@lucent.com>
62584 * m4/dos.m4 (jm_AC_DOS): New file and macro.
62585 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62587 2000-12-16 Jim Meyering <meyering@lucent.com>
62589 This bug had a serious impact on chown: `chown N:M FILE' (for integer
62590 N and M) would have treated it like `chown N:N FILE'.
62592 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62594 2000-12-16 Jim Meyering <meyering@lucent.com>
62596 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62597 SHELLS_FILE to a file name that's useful on djgpp systems.
62599 (ADDITIONAL_DEFAULT_SHELLS): Define.
62600 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62601 Based mostly on a patch from Prashant TR.
62603 2000-12-16 Bruno Haible <haible@clisp.cons.org>
62605 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62606 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62607 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62609 2000-12-08 Andreas Schwab <schwab@suse.de>
62611 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62612 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62614 2000-12-07 Jim Meyering <meyering@lucent.com>
62616 * lib/stripslash.c (ISSLASH): Define.
62617 (strip_trailing_slashes): Use ISSLASH rather than comparing against
62621 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62622 (dir_name_r): Declare this function as static.
62623 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62624 manifest itself on a name containing a mix of slashes and
62626 Make this function work with names starting with a DOS-style
62627 drive letter and colon prefix.
62628 (dir_name): Append `.' if necessary.
62629 Based mostly on patches from Prashant TR and Eli Zaretskii.
62631 * lib/dirname.h (dir_name_r): Remove prototype.
62633 2000-12-06 Paul Eggert <eggert@twinsun.com>
62635 * m4/off_t-format.m4: Remove this file.
62636 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62638 2000-12-06 Jim Meyering <meyering@lucent.com>
62640 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62641 replacement strtoull, we may well need the replacement strtoul, too.
62642 Check for declarations of strtoul and strtoull.
62643 Check for strtol. Mainly as a cue to cause automake to include
62644 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62645 Check for limits.h -- strtol.c needs it.
62647 2000-12-05 Jim Meyering <meyering@lucent.com>
62649 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62651 2000-12-04 Jim Meyering <meyering@lucent.com>
62653 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62654 Also include memory.h, stdlib.h, unistd.h if appropriate.
62655 Reported by Andreas Jaeger (conflicting declaration of malloc).
62657 2000-12-02 Jim Meyering <meyering@lucent.com>
62659 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62660 * m4/jm-macros.m4 (jm_MACROS): require it.
62662 2000-12-02 Jim Meyering <meyering@lucent.com>
62664 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62666 2000-12-01 Paul Eggert <eggert@twinsun.com>
62668 * lib/memrchr.c: Include <config.h> before any system include file.
62670 2000-11-30 Jim Meyering <meyering@lucent.com>
62672 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62674 2000-11-30 Jim Meyering <meyering@lucent.com>
62676 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62678 2000-11-29 Paul Eggert <eggert@twinsun.com>
62680 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62682 2000-11-26 Jim Meyering <meyering@lucent.com>
62684 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
62686 2000-11-22 Paul Eggert <eggert@twinsun.com>
62688 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62689 size of (size_t) -1; it's not portable.
62691 2000-11-17 Jim Meyering <meyering@lucent.com>
62693 * lib/strstr.c: Update from GNU libc.
62695 2000-11-17 Akim Demaille <akim@epita.fr>
62697 * lib/obstack.h: Formatting changes.
62698 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62699 prevent type checking.
62700 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62701 cast the value to (void *): assigning a `foo *' to a `void *'
62703 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62705 2000-11-16 Jim Meyering <meyering@lucent.com>
62707 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62709 2000-11-11 Jim Meyering <meyering@lucent.com>
62711 * lib/error.c: Add a couple #includes, merging from GNU libc version.
62713 2000-11-10 Jim Meyering <meyering@lucent.com>
62715 * lib/obstack.h: Update from GNU libc.
62716 * lib/obstack.c: Likewise.
62718 2000-11-08 Bruno Haible <haible@clisp.cons.org>
62720 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62722 2000-11-06 Paul Eggert <eggert@twinsun.com>
62724 * lib/getusershell.c (setusershell): Use rewind rather than
62725 fseek/fseeko, to avoid configuration hassles with fseeko.
62726 Don't bother opening SHELLS_FILE if shellstream is NULL;
62727 it's not necessary.
62729 2000-11-05 Jim Meyering <meyering@lucent.com>
62731 * lib/makepath.h (make_dir): Declare.
62732 * lib/makepath.c (make_dir): Remove `static' attribute.
62735 2000-11-04 Jim Meyering <meyering@lucent.com>
62737 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62739 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
62741 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
62742 last one in a bucket, advance to the next bucket.
62744 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
62746 * lib/fnmatch.c: Do not comment out all the code if we are using
62747 the GNU C library, because in some cases we are replacing buggy
62748 code in the GNU C library itself.
62750 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
62752 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62753 (regex_compile): Catch bogus \(\1\).
62755 2000-10-30 Paul Eggert <eggert@twinsun.com>
62757 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62758 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62759 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62761 2000-10-30 Paul Eggert <eggert@twinsun.com>
62763 * lib/error.h, getline.h, modechange.h:
62764 Remove "2000" from Copyright line, as the file hasn't been
62765 changed this year other than in the copyright notice.
62767 * lib/xalloc.h: Add "2000" to Copyright line, as this file
62768 was changed this year.
62770 2000-10-29 Jim Meyering <meyering@lucent.com>
62772 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62774 * m4/ls-mntd-fs.m4: Likewise
62776 2000-10-29 Jim Meyering <meyering@lucent.com>
62778 * lib/xstat.in: Fix grammar in comment.
62780 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
62782 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62783 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62784 doesn't define __restrict_arr.
62786 2000-10-28 Jim Meyering <meyering@lucent.com>
62788 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62789 (jm_PREREQ_MEMCHR): New function.
62791 2000-10-28 Jim Meyering <meyering@lucent.com>
62793 * lib/memchr.c: Update from libc.
62794 Adjust for portability:
62795 [HAVE_STDLIB_H]: Include stdlib.h.
62796 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62797 Undef __memchr, too.
62798 [!weak_alias]: Define __memchr to memchr.
62800 * lib/regex.c: Update from libc.
62801 * lib/regex.h: Likewise.
62802 * lib/getopt1.c: Likewise.
62803 * lib/memcmp.c: Likewise.
62805 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62806 Avoid using fseek, when possible -- it's broken by design.
62807 Patch by Ulrich Drepper.
62809 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
62811 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62812 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62813 Giving in to popular pressure to shut up the compiler with casts.
62815 2000-10-26 Jim Meyering <meyering@lucent.com>
62817 * lib/strftime.c: Update from libc.
62819 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
62821 * regex.c: More `unsigned char' -> `re_char' changes.
62822 Also change several `int' into `re_wchar_t'.
62823 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62824 (PUSH_FAILURE_POINTER): Don't cast any more.
62825 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62826 We want GCC to complain, since this piece of code makes
62827 re_match non-reentrant, which *should* be fixed.
62828 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62829 (EXTEND_BUFFER): Use RETALLOC.
62830 (SET_LIST_BIT): Don't cast.
62831 (re_wchar_t): New type.
62832 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62833 that those two functions will always properly return.
62834 (IMMEDIATE_QUIT_CHECK): Cast to void.
62835 (analyse_first): Use recursion rather than an explicit stack.
62836 (re_compile_fastmap): Can't fail anymore.
62837 (re_search_2): Don't check re_compile_fastmap for failure.
62838 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62839 Now also sets the new value (passed in a new argument).
62840 (re_match_2_internal): Use it.
62841 Also, use a new var `reg' of type size_t when looping through regs
62842 rather than reuse the inappropriate `mcnt'.
62844 2000-10-25 Jim Meyering <meyering@lucent.com>
62846 * lib/obstack.c: Update from libc.
62848 2000-10-24 Kenichi Handa <handa@etl.go.jp>
62850 * regex.c (regex_compile): Change the way of handling a range from
62851 a char less than 256 to a char not less than 256.
62853 2000-10-24 Andrew Innes <andrewi@gnu.org>
62855 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62857 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62858 so that re_search functions only quit when callers expect them to.
62860 2000-10-23 Jim Meyering <meyering@lucent.com>
62862 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62863 wrong. That set_locale call must not have any side effects.
62866 2000-10-22 Jim Meyering <meyering@lucent.com>
62868 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62869 [CYCLIC]: Remove now-unused definition.
62871 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62872 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62873 Suggestion from Ulrich Drepper.
62875 2000-10-21 Jim Meyering <meyering@lucent.com>
62877 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62878 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62879 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62881 2000-10-21 Jim Meyering <meyering@lucent.com>
62883 * lib/dirname.c (memrchr): Declare if necessary.
62884 (dir_name): Remove the restriction that there be no
62885 trailing slashes. Now, this code skips past them, effectively
62887 [TEST_DIRNAME] (main): New unit tests.
62889 * lib/memrchr.c: New file from GNU libc.
62890 Undef __memrchr, too.
62891 [!weak_alias]: Define __memrchr to memrchr.
62892 Guard weak_alias use with `#ifdef weak_alias'.
62894 2000-10-21 Jim Meyering <meyering@lucent.com>
62896 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62897 (dir_name): Use dir_name_r.
62898 * lib/dirname.h (dir_name_r): Declare it.
62900 2000-10-17 Jim Meyering <meyering@lucent.com>
62902 * lib/quote.h (PARAMS): Define and use.
62903 Reported by Akim Demaille.
62905 * lib/getopt.c: Update from libc.
62907 2000-10-16 Jim Meyering <meyering@lucent.com>
62909 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62913 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
62915 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62917 2000-09-25 Jim Meyering <meyering@lucent.com>
62919 * lib/md5.h (rol): Define (from GnuPG).
62921 * lib/sha.c: Give credit (GnuPG) where due.
62922 (M): Use rol rather than open-coding it.
62923 Add a FIXME comment.
62925 2000-09-21 Jim Meyering <meyering@lucent.com>
62927 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62928 Reported by Michael Stone.
62930 2000-09-20 Jim Meyering <meyering@lucent.com>
62932 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62933 (noinst_HEADERS): Add sha.h.
62934 Based on code from Scott G. Miller and from GnuPG.
62936 2000-09-18 Jim Meyering <meyering@lucent.com>
62938 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62939 LIBS. Otherwise, everyone ends up linking with -lelf for some
62941 Reported by Mike Stone.
62943 2000-09-15 Jim Meyering <meyering@lucent.com>
62945 * lib/regex.c: Update from libc.
62947 2000-09-10 Jim Meyering <meyering@lucent.com>
62949 * lib/getopt.c (_getopt_internal): Update from glibc.
62951 2000-09-09 Jim Meyering <meyering@lucent.com>
62953 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62954 think it should be used as a general replacement for isascii.
62955 * lib/fnmatch.c: Likewise.
62956 * lib/mbswidth.c: Likewise
62957 * lib/regex.c: Likewise.
62960 * lib/userspec.c: Include sys/param.h and limits.h.
62962 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62963 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62964 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62965 UID, GID. Check range.
62967 2000-09-06 Jim Meyering <meyering@lucent.com>
62969 * lib/getopt.c (_getopt_internal): Update from glibc.
62971 2000-08-30 Jim Meyering <meyering@lucent.com>
62973 * lib/strftime.c: Merge in changes from GNU libc.
62975 2000-08-26 Jim Meyering <meyering@lucent.com>
62977 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62978 * m4/fpending.m4: New file.
62980 2000-08-26 Jim Meyering <meyering@lucent.com>
62982 * lib/closeout.c: Include "__fpending.h".
62983 (close_stdout_status): Return right away if there's nothing to flush.
62985 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62986 * lib/__fpending.c: New file.
62987 * lib/__fpending.h: New file.
62989 2000-08-20 Jim Meyering <meyering@lucent.com>
62991 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62992 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
62993 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
62995 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
62997 Improve fileutils installation on systems where running
62998 programs (like install) can't be unlinked.
62999 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63000 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63002 2000-08-07 Paul Eggert <eggert@twinsun.com>
63004 Standardize on "memory exhausted" instead of "Memory exhausted"
63005 or "virtual memory exhausted".
63006 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63007 "virtual memory exhausted".
63008 * lib/same.c (same_name): Invoke xalloc_die instead of printing
63010 * lib/userspec.c (parse_user_spec): Likewise.
63011 * lib/bumpalloc.h: comment fix
63012 * lib/same.c, userspec.c: Include xalloc.h.
63014 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63015 not char *const and pointing to a constant array.
63016 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63017 (xrealloc): Comment fix.
63019 * lib/userspec.c (parse_user_spec):
63020 Don't translate a message until just before returning,
63021 to avoid unnecessary translation.
63023 2000-08-07 Jim Meyering <meyering@lucent.com>
63025 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63026 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63027 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63028 getgroups.c, gethostname.c, getopt.h, group-member.c,
63029 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63030 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63031 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63032 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63033 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63034 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63035 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63036 yesno.c: Back out Copyright date changes for each file with no change
63037 this year. This eases coordination with other programs using the same
63038 source code modules. From Paul Eggert.
63040 2000-08-06 Paul Eggert <eggert@twinsun.com>
63042 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63043 not char, for compatibility with glibc 2.1.3 strftime.c.
63045 2000-08-03 Greg McGary <greg@mcgary.org>
63047 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63048 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63049 (EXTEND_BUFFER): Use them.
63051 2000-08-01 Jim Meyering <meyering@lucent.com>
63053 * lib/dirname.c (ISSLASH): Define.
63054 (BACKSLASH_IS_PATH_SEPARATOR): Define.
63055 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63056 both `\' and `/' may be use as path separators.
63057 Based on a patch from Prashant TR.
63059 2000-07-31 Paul Eggert <eggert@twinsun.com>
63061 * lib/quotearg.c (quotearg_n_options): Don't make the initial
63062 slot vector a constant, since it might get modified.
63064 2000-07-31 Jim Meyering <meyering@lucent.com>
63066 * lib/xmalloc.c: Use `virtual memory exhausted', not
63067 `Memory exhausted'.
63068 * lib/obstack.c (print_and_abort): Likewise.
63070 2000-07-30 Paul Eggert <eggert@twinsun.com>
63072 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63073 buffer, so that the caller can always quote one small
63074 component of a "memory exhausted" message in slot 0.
63075 From a suggestion by Jim Meyering.
63077 2000-07-30 Jim Meyering <meyering@lucent.com>
63079 * lib/makepath.c (make_path): Quote the other instance, too.
63081 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63082 (STATIC_BUF_SIZE): Define.
63083 (quotearg_n_options): Use only statically allocated storage when
63084 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63085 than STATIC_BUF_SIZE.
63087 2000-07-29 Jim Meyering <meyering@lucent.com>
63089 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63090 * lib/dirname.c (dir_name): Likewise.
63092 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63095 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63096 (dir_name): Assert that there are no trailing slashes.
63098 2000-07-29 Bruno Haible <haible@clisp.cons.org>
63100 * lib/mbswidth.h (mbswidth): Add a flags argument.
63101 (mbswidth): New declaration.
63102 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63103 * lib/mbswidth.c (mbswidth): Add a flags argument.
63104 (mbsnwidth): New function.
63106 2000-07-24 Jim Meyering <meyering@lucent.com>
63108 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
63110 2000-07-23 Paul Eggert <eggert@twinsun.com>
63112 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63114 2000-07-23 Paul Eggert <eggert@twinsun.com>
63116 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63117 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63118 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63119 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63120 invoke multibyte primitives.
63122 2000-07-23 Paul Eggert <eggert@twinsun.com>
63125 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63126 so that mbstate_t is always defined.
63128 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63129 be 1 in at least one GCC installation, and this configuration
63130 error is likely to be common. Ignoring MB_LEN_MAX hurts
63131 performance on hosts that have mbrtowc but have only unibyte
63132 locales, but I assume these hosts are rare.
63134 2000-07-23 Paul Eggert <eggert@twinsun.com>
63136 * lib/mbswidth.c (_XOPEN_SOURCE):
63137 Don't define; this causes problems on Solaris 7.
63138 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63140 2000-07-23 Jim Meyering <meyering@lucent.com>
63142 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63143 too: getgrgid, getpwuid, getuid.
63145 2000-07-23 Jim Meyering <meyering@lucent.com>
63147 * lib/basename.c (base_name): Add an assertion.
63149 2000-07-23 Bruno Haible <haible@clisp.cons.org>
63151 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63152 shadow its mbsinit function.
63154 2000-07-17 Bruno Haible <haible@clisp.cons.org>
63156 * lib/mbswidth.h: New file.
63157 * lib/mbswidth.c: New file.
63158 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63159 (noinst_HEADERS): Add mbswidth.h.
63161 2000-07-17 Bruno Haible <haible@clisp.cons.org>
63163 * lib/config.charset: Add support for FreeBSD. Improve support for
63166 2000-07-16 Bruno Haible <haible@clisp.cons.org>
63168 * m4/mbswidth.m4: New file.
63169 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63171 2000-07-15 Jim Meyering <meyering@lucent.com>
63173 * lib/makepath.c: Include quote.h.
63174 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63175 corresponding argument in a `quote (...)' call.
63176 Give better diagnostics.
63178 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63179 (noinst_HEADERS): Add quote.h.
63181 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
63182 from tar's src/misc.c.
63183 * lib/quote.h: New file. Prototypes for same.
63185 2000-07-14 Paul Eggert <eggert@twinsun.com>
63187 From a suggestion by Bruno Haible.
63188 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63189 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63190 to decide whether to define the BeOS workaround macro;
63191 this adjusts to the change to AC_MBSTATE_T.
63193 2000-07-14 Jim Meyering <meyering@lucent.com>
63195 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63196 jm_AC_TYPE_UINTMAX_T.
63198 2000-07-13 Paul Eggert <eggert@twinsun.com>
63200 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63202 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63203 quotearg_buffer_restyled): Add support for
63204 clocale_quoting_style. Undo previous change to
63205 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63206 and "{RIGHT QUOTATION MARK}" msgids.
63208 2000-07-10 Paul Eggert <eggert@twinsun.com>
63210 From a suggestion by Bruno Haible.
63211 * m4/mbstate_t.m4 (AC_MBSTATE_T):
63212 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
63213 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63214 and mbstate_t, to a single-part test that simply defines mbstate_t.
63215 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63216 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63218 2000-07-10 Jim Meyering <meyering@lucent.com>
63220 * m4/strerror_r.m4: Mirror the correction made in autoconf.
63222 * m4/gnu-source.m4: Output to confdefs.h directly.
63223 Suggestion from Akim Demaille.
63225 2000-07-09 Paul Eggert <eggert@twinsun.com>
63227 The old behavior of quoting `like this' doesn't look good with
63228 newer, ISO-style fonts. See:
63229 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63231 Instead, quote "like this" by default. Let the translator
63232 tailor the locale-specific quoting behavior by providing
63233 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63235 * lib/quotearg.c (N_): New macro.
63236 (gettext_default): New function.
63237 (quotearg_buffer_restyled): Use
63238 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63239 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63241 2000-07-09 Jim Meyering <meyering@lucent.com>
63243 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63244 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
63246 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63247 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63249 2000-07-09 Jim Meyering <meyering@lucent.com>
63251 * lib/Most files: Update copyright dates to include 2000.
63253 2000-07-08 Jim Meyering <meyering@lucent.com>
63255 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63257 (xgethostname): Remove now-unnecessary #ifdef.
63258 Move declaration of `err' into loop where it's used.
63260 2000-07-05 Paul Eggert <eggert@twinsun.com>
63261 and Bruno Haible <haible@clisp.cons.org>
63263 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63264 only if the test for an object-type mbstate_t fails. This
63265 prevents us from mistakenly reporting that mbstate_t is a
63266 system object type after we "#define mbstate_t int" to work
63269 2000-07-05 Paul Eggert <eggert@twinsun.com>
63270 and Bruno Haible <haible@clisp.cons.org>
63272 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63274 2000-07-05 Bruno Haible <haible@clisp.cons.org>
63276 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63278 Include <ctype.h> for use of isalpha.
63280 2000-07-05 Bruno Haible <haible@clisp.cons.org>
63282 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63283 by allocating a larger buffer. Test the gethostname return value for
63284 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
63285 returns an error and ENAMETOOLONG isn't defined.
63287 2000-07-05 Bruno Haible <haible@clisp.cons.org>
63289 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63292 2000-07-04 Jim Meyering <meyering@lucent.com>
63294 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63295 of the deprecated AC_CHECKING.
63297 2000-07-04 Jim Meyering <meyering@lucent.com>
63299 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63300 Reported by Bruno Haible.
63302 2000-07-04 Jim Meyering <meyering@lucent.com>
63304 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63305 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
63308 2000-07-03 Paul Eggert <eggert@twinsun.com>
63310 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63311 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63313 2000-07-03 Paul Eggert <eggert@twinsun.com>
63314 and Bruno Haible <haible@clisp.cons.org>
63316 * lib/quotearg.c (mbrtowc):
63317 Assign to *pwc, and return 1 only if result is nonzero.
63318 (iswprint): Use ISPRINT when substituting our own mbrtowc.
63320 2000-07-03 Jim Meyering <meyering@lucent.com>
63322 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63324 2000-07-03 Jim Meyering <meyering@lucent.com>
63326 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63327 This is necessary to get a definition of e.g., UTMP_FILE on
63331 2000-07-02 Jim Meyering <meyering@lucent.com>
63333 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63335 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63336 AC_LIBOBJ(function_name).
63337 * m4/chown.m4: Likewise.
63338 * m4/fnmatch.m4: Likewise.
63339 * m4/ftruncate.m4: Likewise.
63340 * m4/getgroups.m4: Likewise.
63341 * m4/getline.m4: Likewise.
63342 * m4/group-member.m4: Likewise.
63343 * m4/jm-macros.m4: Likewise.
63344 * m4/lstat.m4: Likewise.
63345 * m4/malloc.m4: Likewise.
63346 * m4/memcmp.m4: Likewise.
63347 * m4/nanosleep.m4: Likewise.
63348 * m4/putenv.m4: Likewise.
63349 * m4/realloc.m4: Likewise.
63350 * m4/regex.m4: Likewise.
63351 * m4/stat.m4: Likewise.
63352 * m4/strftime.m4: Likewise.
63354 2000-07-02 Jim Meyering <meyering@lucent.com>
63356 * lib/quotearg.c (mbstate_t): Don't define here.
63358 2000-07-02 Jim Meyering <meyering@lucent.com>
63360 * lib/nanosleep.c (SIGCONT): Define if not already defined.
63362 2000-07-01 Jim Meyering <meyering@lucent.com>
63364 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63366 2000-07-01 Jim Meyering <meyering@lucent.com>
63368 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63371 2000-07-01 Bruno Haible <haible@clisp.cons.org>
63373 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63374 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63376 2000-07-01 Bruno Haible <haible@clisp.cons.org>
63378 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63379 per change in ../m4/ls-mntd-fs.m4.
63380 (read_filesystem_list): Ignore symbolic links.
63382 2000-06-29 Jim Meyering <meyering@lucent.com>
63384 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63385 for declaration of strcmp.
63387 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63389 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63390 Avoid warning by casting result to `char *' to remove `const'.
63392 2000-06-28 Jim Meyering <meyering@lucent.com>
63394 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
63395 included by quotearg.c, for which we perform this test. From
63398 2000-06-27 Bruno Haible <haible@clisp.cons.org>
63400 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63401 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63402 <utmpx.h> exists, put readutmp.o into LIBOBJS.
63404 2000-06-27 Bruno Haible <haible@clisp.cons.org>
63406 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63408 2000-06-26 Paul Eggert <eggert@twinsun.com>
63410 savedir now sets errno on failure and invokes xmalloc to get memory.
63411 Fix a couple of other minor bugs while we're at it.
63413 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63414 (NAMLEN): Remove macro.
63415 (malloc, realloc): Remove decls.
63416 (stpcpy): Likewise.
63417 ("xalloc.h"): Include.
63418 (NAME_SIZE_DEFAULT): New macro.
63419 (savedir): Use xmalloc / xrealloc to allocate memory.
63420 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63421 Skip "" directory entries.
63422 Use strlen to calculate directory entry length, since the old method
63423 is rarely used these days and isn't worth supporting.
63424 Don't use a pointer after freeing it.
63425 Check for integer overflow when calculating allocation size.
63426 Use memcpy to copy entries, instead of stpcpy.
63427 Set errno properly when returning NULL.
63428 Check for readdir error.
63430 2000-06-26 Jim Meyering <meyering@lucent.com>
63432 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63434 2000-06-25 Jim Meyering <meyering@lucent.com>
63436 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63437 Linux header bug when _XOPEN_SOURCE is defined to 500.
63439 2000-06-25 Bruno Haible <haible@clisp.cons.org>
63441 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63444 2000-06-25 Bruno Haible <haible@clisp.cons.org>
63446 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63448 Don't include <stdlib.h>. Don't declare malloc, realloc.
63450 2000-06-24 Jim Meyering <meyering@lucent.com>
63452 * m4/strerror_r.m4: Revive this file -- to try out an experimental
63453 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63454 for which strerror does return char*, but which lacks a conveniently
63455 accessible declaration of the function. If the compile-test says
63456 strerror_r doesn't work, then resort to a `run'-test that works on
63457 BeOS and segfaults on DEC Unix.
63459 2000-06-24 Jim Meyering <meyering@lucent.com>
63461 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63463 2000-06-23 Paul Eggert <eggert@twinsun.com>
63465 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63466 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
63468 2000-06-23 Paul Eggert <eggert@twinsun.com>
63470 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63471 (mbrtowc, mbstate_t): Define substitutes if
63472 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63473 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63474 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63476 2000-06-23 Jim Meyering <meyering@lucent.com>
63478 * m4/afs.m4: Add missing AC_MSG_RESULT.
63479 Reported by Bruno Haible.
63481 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63482 Suggestion from Bruno Haible.
63484 2000-06-23 Jim Meyering <meyering@lucent.com>
63486 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
63488 2000-06-21 Jim Meyering <meyering@lucent.com>
63490 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63492 2000-06-21 Jim Meyering <meyering@lucent.com>
63494 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63495 (noinst_HEADERS): Add getstr.h.
63497 * lib/getline.c (getstr): Move into a separate file.
63498 * lib/getstr.c (getstr): New file, extracted from getline.c, with
63499 the following changes: new parameter, delim2; both delim[12]
63500 parameters have type `int', not `char'. The latter would lose
63501 with 8-bit delimiters.
63502 * lib/getstr.h: New file.
63504 2000-06-21 Bruno Haible <haible@clisp.cons.org>
63506 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63507 than 1024, return a memory chunk of least possible size, instead
63508 of size PATH_MAX + 2. In the loop, increment the size proportionally.
63509 Use free/xmalloc instead of xrealloc to avoid copying for very long
63512 2000-06-21 Bruno Haible <haible@clisp.cons.org>
63514 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63517 2000-06-21 Bruno Haible <haible@clisp.cons.org>
63519 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63520 address, not strdup. Include <stdlib.h> and don't declare free().
63522 2000-06-19 Jim Meyering <meyering@lucent.com>
63524 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63526 2000-06-18 Jim Meyering <meyering@lucent.com>
63528 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63530 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63531 `checking whether...' message to be consistent with that of the
63534 2000-06-18 Jim Meyering <meyering@lucent.com>
63536 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63537 Besides, these days every porting target provides a mkdir function.
63539 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63540 needed. (this snippet comes from src/system.h).
63542 2000-06-16 Bruno Haible <haible@clisp.cons.org>
63544 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63546 2000-06-15 Paul Eggert <eggert@twinsun.com>
63548 * lib/human.c (adjust_value): New function.
63549 (human_readable_inexact): Apply rounding style even when
63550 printing approximate values.
63552 2000-06-14 Paul Eggert <eggert@twinsun.com>
63554 * lib/human.c (human_readable_inexact): Allow an input block
63555 size that is not a multiple of the output block size, and vice versa.
63556 Reported by Piergiorgio Sartor.
63558 2000-06-14 Paul Eggert <eggert@twinsun.com>
63560 * lib/getdate.y (get_date): Apply relative times after time
63561 zone indicator, not before. Reported by Todd A. Jacobs.
63563 2000-06-13 Jim Meyering <meyering@lucent.com>
63565 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63567 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63569 2000-06-12 Paul Eggert <eggert@twinsun.com>
63571 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63573 2000-06-12 Jim Meyering <meyering@lucent.com>
63575 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63576 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63578 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63579 the optional argument, `lib'.
63581 2000-06-08 Jim Meyering <meyering@lucent.com>
63583 * m4/largefile.m4: Remove file (now that it's part of autoconf).
63585 2000-06-04 Paul Eggert <eggert@twinsun.com>
63587 Rewrite largefile configuration so that we don't need to run
63588 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
63589 AC_CANONICAL_HOST in configure.in -- jmm]
63591 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63592 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63593 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63594 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63595 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63597 Instead of inspecting the output of getconf, try to compile the
63598 test program without and with the macro definition.
63599 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63600 for getconf. Instead, check for the needed flags by compiling
63603 2000-06-04 Paul Eggert <eggert@twinsun.com>
63605 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63607 2000-06-04 Jim Meyering <meyering@lucent.com>
63609 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63610 SunOS 4.1.4 for which gid_t is an unsigned type.
63612 2000-06-03 Jim Meyering <meyering@lucent.com>
63614 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63615 now that autoconf requires that.
63617 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63618 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63619 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63621 2000-06-03 Jim Meyering <meyering@lucent.com>
63623 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63625 2000-06-03 Bruno Haible <haible@clisp.cons.org>
63627 * m4/glibc21.m4: New file.
63628 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63630 2000-06-03 Bruno Haible <haible@clisp.cons.org>
63632 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63633 newer, don't install charset.alias.
63634 * lib/config.charset: Change the Linux/glibc rules so they become empty
63635 on glibc-2.1 or newer.
63637 2000-06-02 Jim Meyering <meyering@lucent.com>
63639 * lib/mountlist.c: Back out last change. Instead, do this...
63640 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63641 me_dummy member using the same `ignore'-testing code.
63642 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63646 2000-05-29 Jim Meyering <meyering@lucent.com>
63648 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63649 mounts with the `ignore' attribute. Based on a patch from
63652 2000-05-28 Jim Meyering <meyering@lucent.com>
63654 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63655 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63656 * m4/stat.m4: Likewise.
63657 * m4/lstat.m4: Likewise.
63658 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63660 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63661 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63663 2000-05-26 Jim Meyering <meyering@lucent.com>
63665 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63667 2000-05-24 Jim Meyering <meyering@lucent.com>
63669 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63670 autoconf requires that.
63671 * m4/lib-check.m4: Likewise.
63672 * m4/jm-macros.m4: Likewise.
63673 * m4/strftime.m4: Likewise.
63675 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63676 AC_CHECK_DECLS, now that autoconf requires that.
63678 2000-05-22 Jim Meyering <meyering@lucent.com>
63680 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63681 * m4/lstat.m4: Likewise.
63683 2000-05-22 Jim Meyering <meyering@lucent.com>
63685 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63687 2000-05-20 Jim Meyering <meyering@lucent.com>
63689 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63690 (jm_PREREQ): Use it.
63692 2000-05-18 Jim Meyering <meyering@lucent.com>
63694 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63695 back, too, since it may have been modified by allocate_entry.
63696 (hash_delete): Rewrite to use neither the assignment operator
63697 nor the comma operator in an if-expression.
63699 2000-05-15 Paul Eggert <eggert@twinsun.com>
63702 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63703 Remove; no longer needed.
63704 "quotearg.h": Add include.
63705 (file_name): Do not bother to explicitly initialize to NULL; it's less
63706 efficient on some hosts.
63707 (close_stdout_status): Remove test as to whether stdout was already
63708 closed; it breaks for the case "echo x | sort >&-".
63709 Quote file name colons.
63710 Do not assume that _("write error") lacks format strings.
63712 2000-05-15 Jim Meyering <meyering@lucent.com>
63714 * lib/version-etc.c (version_etc_copyright): Update the copyright
63715 string used in all --version output.
63717 2000-05-14 Jim Meyering <meyering@lucent.com>
63719 * lib/closeout.c (close_stdout_set_file_name): New function.
63720 (close_stdout_status): Use new file-scoped global.
63721 Return right away if fstat says the stdout file descriptor is invalid.
63722 * lib/closeout.h (close_stdout_set_file_name): Declare.
63724 2000-05-10 Jim Meyering <meyering@lucent.com>
63726 * lib/closeout.c [default_exit_status]: New file-scoped variable.
63727 (close_stdout_set_status): New function.
63728 * lib/closeout.h (close_stdout_set_status): Declare.
63730 2000-05-09 Jim Meyering <meyering@lucent.com>
63732 * m4/gettext.m4: Rename this...
63733 * m4/libintl.m4: ...to this.
63735 2000-05-08 Jim Meyering <meyering@lucent.com>
63737 * lib/long-options.c: Don't include closeout.h.
63738 (parse_long_options): Don't call close_stdout for --version.
63740 2000-05-06 Paul Eggert <eggert@twinsun.com>
63742 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63743 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63744 2.1.3 bug. This avoids a clash when files like regex.c define
63747 2000-05-06 Jim Meyering <meyering@lucent.com>
63749 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63750 (AC_REPLACE_FUNCS): Add strnlen.
63752 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63753 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63755 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63756 AC_SEARCH_LIBS call for nanosleep.
63757 (LIB_NANOSLEEP): Set and AC_SUBST.
63759 2000-05-06 Jim Meyering <meyering@lucent.com>
63761 * lib/strnlen.c: Undefine __strnlen and strnlen.
63762 [!weak_alias]: Define __strnlen to strnlen.
63764 * lib/atexit.c: New file, from libiberty.
63766 2000-05-06 Jim Meyering <meyering@lucent.com>
63768 * lib/closeout.c (close_stdout_status): Also check for errors on the
63771 2000-05-05 Jim Meyering <meyering@lucent.com>
63773 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63774 AC_SEARCH_LIBS call for clock_gettime.
63775 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63777 * m4/search-libs.m4: Update from autoconf.
63779 su doesn't work on Solaris 2.6.
63780 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63781 <shadow.h>. Reported by Dragos Harabor.
63783 2000-05-05 Bruno Haible <haible@clisp.cons.org>
63785 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63786 memcpy instead of xmalloc, xrealloc, path_concat.
63787 (locale_charset): Treat empty environment variables as absent.
63788 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63790 2000-05-04 Jim Meyering <meyering@lucent.com>
63792 * lib/getopt.c: Update from glibc.
63793 * lib/obstack.c: Likewise.
63794 * lib/obstack.h: Likewise.
63795 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
63798 * lib/regex.h: Likewise.
63799 * lib/strndup.c: Likewise.
63800 * lib/strnlen.c: New file, from glibc.
63802 2000-05-03 Jim Meyering <meyering@lucent.com>
63804 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63806 2000-05-02 Paul Eggert <eggert@twinsun.com>
63808 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63809 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
63810 compile-time test, rather than inspecting host and OS, to
63811 decide whether to define _LARGEFILE_SOURCE.
63813 2000-05-01 Jim Meyering <meyering@lucent.com>
63815 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63817 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63818 Based on a patch from Bruno Haible.
63820 2000-05-01 Jim Meyering <meyering@lucent.com>
63822 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63824 2000-04-29 Jim Meyering <meyering@lucent.com>
63826 * lib/path-concat.c: Declare strdup only if it's not defined.
63827 * lib/canon-host.c: Likewise.
63829 2000-04-28 Jim Meyering <meyering@lucent.com>
63831 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63832 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
63833 is included first, then limits.h is included by locale.h by libintl.h.
63834 From John David Anglin.
63836 2000-04-25 Jim Meyering <meyering@lucent.com>
63838 * lib/makepath.c (S_IRWXUGO): Define.
63839 (make_path): Always perform explicit chmod if MODE specifies any
63840 of the `special' permission bits. Prompted by a bug report against
63841 install from Mate Wierdl and Joost van Baal.
63843 2000-04-18 Jim Meyering <meyering@lucent.com>
63845 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63846 (jm_PREREQ): Use it.
63848 2000-04-18 Jim Meyering <meyering@lucent.com>
63850 * lib/README: New file.
63852 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63853 getpagesize. For BeOS. Based on a patch from Bruno Haible.
63855 2000-04-17 Jim Meyering <meyering@lucent.com>
63858 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63859 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
63860 Suggestion from Akim Demaille.
63862 2000-04-17 Jim Meyering <meyering@lucent.com>
63864 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63865 the definition of it to rpl_strftime also defined-away the system's
63868 2000-04-15 Jim Meyering <meyering@lucent.com>
63870 Use `C' to denote so-called `contiguous' files, the same way
63872 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63873 (ftypelet): Use S_ISCTG.
63874 From Michael Deutschmann.
63876 2000-04-14 Jim Meyering <meyering@lucent.com>
63878 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63879 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
63882 2000-04-14 Jim Meyering <meyering@lucent.com>
63884 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63886 2000-04-13 Jim Meyering <meyering@lucent.com>
63888 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63889 AH_VERBATIM to insert required #ifndef into config.h.in.
63890 Suggestion from Akim Demaille.
63892 2000-04-12 Jim Meyering <meyering@lucent.com>
63894 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63895 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
63896 Christian Krackowizer.
63898 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63899 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63900 (AC_SYS_LARGEFILE): Require.
63901 (AM_C_PROTOTYPES): Require.
63903 2000-04-08 Jim Meyering <meyering@lucent.com>
63905 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63906 names don't conflict. Reported by Eli Zaretskii.
63908 2000-04-07 Jim Meyering <meyering@lucent.com>
63910 * lib/putenv.c: Move inclusion of errno.h so it follows that of
63911 sys/types.h, to work around system header problems on AIX 3.2.5.
63914 2000-04-07 Bruno Haible <haible@clisp.cons.org>
63916 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63917 bug. Deal with the different error behavior of Irix iconv.
63919 2000-04-05 Paul Eggert <eggert@twinsun.com>
63921 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63922 IRIX if the installer said otherwise.
63924 2000-04-05 Jim Meyering <meyering@lucent.com>
63926 Portability tweaks required for ultrix4.3.
63927 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63928 (jm_CHECK_DECLS): Add getutent to the list of functions.
63929 (_jm_DECL_HEADERS): Add utmpx.h.
63930 From John David Anglin.
63932 * m4/strftime.m4: Back out the 2000-04-02 change.
63933 Instead of that change, simply undefine putenv in the test program.
63935 2000-04-05 Jim Meyering <meyering@lucent.com>
63937 Portability tweaks required for ultrix4.3.
63938 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63940 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63941 * lib/canon-host.c: Declare strdup.
63942 * lib/path-concat.c: Likewise.
63943 From John David Anglin.
63945 2000-04-04 Jim Meyering <meyering@lucent.com>
63947 Be more DOS 8.3-friendly.
63948 * lib/ref-add.sin: Renamed from ref-add.sed.in.
63949 * lib/ref-del.sin: Renamed from ref-del.sed.in.
63950 * lib/Makefile.am: Reflect renaming.
63951 Reported by Eli Zaretskii.
63953 Use a temporary file name that won't clash with `charset.alias'
63954 in the DOS 8.3 name space.
63955 * lib/Makefile.am (charset_tmp): Define.
63956 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63957 (uninstall-local): Likewise.
63958 Reported by Eli Zaretskii.
63960 2000-04-03 Jim Meyering <meyering@lucent.com>
63962 * m4/gettext.m4: Fix typo in comment.
63964 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63965 textutils/configure.in). Suggestion from Paul Eggert.
63966 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
63968 2000-04-02 Paul Eggert <eggert@twinsun.com>
63970 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63971 variable in the shell rather than using putenv, which isn't
63972 portable. This avoids the configure-time inter-test dependency
63973 on the potentially-renamed putenv function.
63975 2000-03-30 Paul Eggert <eggert@twinsun.com>
63977 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63978 before checking struct stat.st_blksize, so that
63979 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63981 2000-03-29 Paul Eggert <eggert@twinsun.com>
63983 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63984 since strftime.c uses HAVE_STRFTIME to decide whether to use
63985 the underlying strftime.
63987 2000-03-29 Paul Eggert <eggert@twinsun.com>
63989 * lib/time/strftime.c (my_strftime): Make sure we call the system
63990 strftime, not ourselves, when invoking the underlying strftime.
63992 2000-03-24 Jim Meyering <meyering@lucent.com>
63994 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63995 (charset_alias): Define.
63996 (install-exec-local): Factor out common code.
63997 (uninstall-local): Split lines longer than 80.
63998 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63999 (SUFFIXES): Define.
64000 (.sed.in.sed): New rule. Don't redirect directly to $@.
64001 (CLEANFILES): Add ref-add.sed and ref-del.sed.
64003 2000-03-19 Bruno Haible <haible@clisp.cons.org>
64005 * lib/config.charset: Output a line containing "Packages using this
64007 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64008 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64009 ref-del.sed): New rules.
64011 2000-03-17 Jim Meyering <meyering@lucent.com>
64013 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64014 Otherwise, include <strings.h>
64016 2000-03-17 Bruno Haible <haible@clisp.cons.org>
64018 * lib/unicodeio.c (utf8_wctomb): New function.
64019 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64020 format instead of in UCS-4 with platform dependent endianness.
64022 2000-03-10 Jim Meyering <meyering@lucent.com>
64024 * m4/lib-check.m4: Look for getspnam in -lgen, too.
64025 From Marco Franzen.
64027 2000-03-07 Paul Eggert <eggert@twinsun.com>
64029 * lib/savedir.c (savedir): Work even if directory size is
64030 negative; this can happen with some screwy NFS configurations.
64032 2000-03-06 Jim Meyering <meyering@lucent.com>
64034 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64035 if it's NULL (because we ran out of memory). From Bruno Haible.
64037 2000-03-05 Jim Meyering <meyering@lucent.com>
64039 * lib/localcharset.c ("path-concat.h"): Include.
64040 (get_charset_aliases): Use path_concat instead of ANSI string
64043 * lib/unicodeio.h (PARAMS): Define.
64044 Use it to guard prototype.
64046 2000-03-04 Jim Meyering <meyering@lucent.com>
64048 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64049 for lib/localcharset.c.
64051 2000-03-04 Jim Meyering <meyering@lucent.com>
64053 * lib/Makefile.am (install-exec-local): Create $(libdir) before
64054 installing into it.
64055 (uninstall-local): Uncomment this rule so `make distcheck' works
64058 * lib/unicodeio.c (<errno.h>): Include it.
64059 (errno): Declare if not defined.
64061 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64063 * lib/config.charset: New version, incorporating remarks from a linux
64064 i18n mailing list. From Bruno Haible.
64066 2000-03-04 Bruno Haible <haible@clisp.cons.org>
64068 * m4/codeset.m4: New file.
64069 * m4/iconv.m4: New file.
64070 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64072 2000-03-03 Jim Meyering <meyering@lucent.com>
64074 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64076 2000-03-02 Jim Meyering <meyering@lucent.com>
64078 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64079 the messages come out on separate lines.
64081 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64082 rather than jm_CHECK_DECLARATIONS.
64083 * m4/decl.m4: Remove now-unused file.
64085 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64088 2000-03-02 Jim Meyering <meyering@lucent.com>
64090 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64092 2000-03-01 Jim Meyering <meyering@lucent.com>
64094 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64095 * lib/unicodeio.c: Likewise.
64097 2000-03-01 Bruno Haible <haible@clisp.cons.org>
64099 * lib/config.charset: New file.
64100 * lib/localcharset.c: New file.
64101 * lib/unicodeio.h, lib/unicodeio.c: New files.
64102 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64103 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64104 (noinst_HEADERS): Add unicodeio.h.
64105 (all-local, install-exec-local, charset.alias): New targets.
64107 2000-02-28 Paul Eggert <eggert@twinsun.com>
64109 * lib/quotearg.c (ALERT_CHAR): New macro.
64110 (quotearg_buffer_restyled): Use it.
64112 2000-02-27 Jim Meyering <meyering@lucent.com>
64114 * m4/check-decl.m4: Add getenv to the list.
64116 2000-02-27 Jim Meyering <meyering@lucent.com>
64118 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64119 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64121 * lib/backupfile.c: Guard inclusion of stdlib.h with
64122 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64123 Declare malloc if needed.
64125 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64126 `#ifndef HAVE_DECL..'
64127 now that autoconf always defines the HAVE_DECL_ symbols.
64128 * lib/human.c: Likewise.
64129 * lib/same.c: Likewise.
64130 * lib/strtoumax.c: Likewise.
64132 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64133 declaration check was not run.
64134 * lib/hash.c: Likewise.
64135 * lib/human.c: Likewise.
64136 * lib/same.c: Likewise.
64137 * lib/strtoumax.c: Likewise.
64139 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64140 `.', then first look up the entire `.'-containing string as a login
64143 2000-02-23 Jim Meyering <meyering@lucent.com>
64145 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64146 in place of my hack.
64148 2000-02-18 Paul Eggert <eggert@twinsun.com>
64150 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64151 (textint): New typedef.
64152 (parser_control): Member year changed from int to textint.
64154 (YYSTYPE): Removed; replaced by %union with int and textint members.
64155 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64156 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64157 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64158 (tSNUMBER, tUNUMBER): Now of type <textintval>.
64159 (date, number, to_year): Use width of number in digits, not its value,
64160 to determine whether it's a 2-digit year, or a 2-digit time.
64161 (yylex): Store number of digits of numeric tokens.
64162 Reported by John Kendall.
64164 (parser_control): Changed from struct parser_control to typedef (for
64165 consistency). All uses changed.
64167 (tID): Removed; not used.
64168 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64170 2000-02-14 Paul Eggert <eggert@twinsun.com>
64172 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64173 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64175 2000-02-12 Jim Meyering <meyering@lucent.com>
64177 * lib/userspec.c (ISDIGIT): Define it.
64178 (isdigit): Remove definition.
64179 (is_number): Use ISDIGIT, not isdigit.
64180 <libintl.h>: Include.
64181 (_ and N_): Define.
64182 (parse_user_spec): Mark translatable strings.
64184 2000-02-10 Jim Meyering <meyering@lucent.com>
64186 With these changes, nanosleep.[ch] are finally enough like the other
64187 lib/* replacement files to compile on a few more losing systems.
64189 * lib/nanosleep.h: Don't include config.h.
64190 Remove prototype from declaration of nanosleep.
64191 (PARAMS): Remove now-unneeded definition.
64192 * lib/nanosleep.c: #undef nanosleep.
64193 (rpl_nanosleep): Rename from nanosleep.
64195 2000-02-10 Jim Meyering <meyering@lucent.com>
64197 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64198 gnu_nanosleep to rpl_nanosleep.
64200 2000-02-09 Jim Meyering <meyering@lucent.com>
64202 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64203 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
64205 2000-02-08 Akim Demaille <akim@epita.fr>
64207 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64208 `[' and `]' and remove uses of `changequote'.
64209 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64210 (AC_SYS_LARGEFILE): Likewise.
64211 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64212 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64214 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64215 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64216 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64217 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64219 2000-02-05 Jim Meyering <meyering@lucent.com>
64221 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64222 Remove explicit use of AC_HEADER_TIME. It is required by
64223 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
64224 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64225 in autoconf whereby the expansion of the latter ended up preceding
64226 the expansion of its prerequisite, AC_HEADER_TIME.
64227 Reported by Volker Borchert.
64229 2000-02-03 Jim Meyering <meyering@lucent.com>
64231 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64233 2000-02-03 Jim Meyering <meyering@lucent.com>
64235 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64236 rather than with `#if HAVE_UTMPNAME'.
64238 2000-02-02 Jim Meyering <meyering@lucent.com>
64240 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64241 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64242 Reported by Eli Zaretskii.
64244 2000-02-01 Jim Meyering <meyering@lucent.com>
64246 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
64248 2000-01-31 Jim Meyering <meyering@lucent.com>
64250 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64251 functions. Add the time.h and sys/time.h headers along with the
64252 AC_REQUIRE'ment of AC_HEADER_TIME.
64254 2000-01-31 Jim Meyering <meyering@lucent.com>
64256 * lib/nanosleep.h (nanosleep): Guard declaration with
64257 `#if ! HAVE_DECL_NANOSLEEP'.
64258 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64259 the declaration in that vendor's sys/timers.h.
64260 Reported by Christian Krackowizer.
64262 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64263 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64264 (ISPRINT): Likewise.
64265 Reported by Tom Tromey.
64267 2000-01-30 Jim Meyering <meyering@lucent.com>
64269 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64271 * m4/prereq.m4 (utmp_includes): Define.
64272 Check for ut_user and ut_name members in both struct utmpx
64275 2000-01-30 Jim Meyering <meyering@lucent.com>
64277 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64278 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
64279 header files where only utmpx.ut_user is declared.
64281 * lib/readutmp.h (UT_USER): Define.
64283 2000-01-29 Jim Meyering <meyering@lucent.com>
64285 * m4/lib-check.m4: New file containing library-related checks from
64286 fileutils and sh-utils (textutils had none).
64288 2000-01-28 Jim Meyering <meyering@lucent.com>
64290 * m4/perl.m4: Change format of warning message to look more like that
64291 from the missing script. Suggestion from François Pinard.
64293 2000-01-25 Jim Meyering <meyering@lucent.com>
64295 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64296 well as time.h in the compile check.
64297 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64298 Fix typo in cross-compiling case: s/yes/no/.
64300 2000-01-23 Jim Meyering <meyering@lucent.com>
64302 * m4/jm-macros.m4: Move df-related tests here from
64303 fileutils/configure.in
64305 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64306 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64308 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
64309 s/space/ac_fsusage_space/.
64310 (jm_FILE_SYSTEM_USAGE): Take two parameters.
64312 * m4/ftruncate.m4: New file (derived from part of
64313 fileutils/configure.in).
64314 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64315 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64317 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64318 AC_SUBST these here, rather than just in sh-util/configure.in, so
64319 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64321 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64322 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64323 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64324 (AC_SUBST(POW_LIBM)): Likewise.
64325 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64327 2000-01-23 Jim Meyering <meyering@lucent.com>
64329 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64332 2000-01-22 Jim Meyering <meyering@lucent.com>
64334 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64336 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64338 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64340 (AC_CHECK_HEADERS): Likewise for sh-utils.
64341 (AC_CHECK_HEADERS): Likewise for textutils.
64342 Merge the three lists of headers.
64344 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
64345 from fileutils' configure.in.
64347 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64348 code. Moved tests into their own function (_jm_DECL_HEADERS) in
64351 * m4/check-decl.m4: Use #if rather than #ifdef.
64352 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64353 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64354 (_jm_DECL_HEADERS): Define new function.
64355 (jm_CHECK_DECLARATIONS): Require it.
64357 2000-01-22 Jim Meyering <meyering@lucent.com>
64359 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64360 [! HAVE_DECL_STRTOULL]: Declare strtoull.
64361 Required for some AIX systems. Reported by Christian Krackowizer.
64362 [TESTING] (main): New function.
64364 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
64365 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64368 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64371 * lib/strverscmp.c (ISDIGIT): Define.
64372 (strverscmp): Use ISDIGIT, not isdigit.
64374 2000-01-19 Jim Meyering <meyering@lucent.com>
64376 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64377 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
64378 defines `struct timespec' in <sys/time.h>
64380 * m4/c-bs-a.m4: Remove uses of changequote altogether.
64381 Thanks to Akim for explaining.
64383 2000-01-17 Paul Eggert <eggert@twinsun.com>
64385 * lib/nanosleep.c (nanosleep):
64386 Don't use SA_INTERRUPT to decide whether to call sigaction, as
64387 POSIX.1 doesn't require SA_INTERRUPT and some systems
64388 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
64389 it's been part of POSIX.1 since day 1 (in 1988).
64391 2000-01-17 Jim Meyering <meyering@lucent.com>
64393 * lib/interlock: Remove unused file. Reported by François Pinard.
64395 2000-01-16 Paul Eggert <eggert@twinsun.com>
64397 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64398 alert, backslash, formfeed, and vertical tab unnecessarily in
64399 shell quoting style.
64401 2000-01-16 Jim Meyering <meyering@lucent.com>
64403 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64404 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64405 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64406 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64408 2000-01-16 Jim Meyering <meyering@lucent.com>
64410 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64411 because the latter didn't work.
64413 2000-01-15 Jim Meyering <meyering@lucent.com>
64415 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64416 (AC_REPLACE_FUNCS): Add memcpy and memset.
64417 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64419 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64421 2000-01-12 Jim Meyering <meyering@lucent.com>
64423 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64424 (jm_PREREQ): Use it.
64425 (jm_PREREQ_READUTMP): New macro.
64426 (jm_PREREQ): Use it.
64428 2000-01-11 Paul Eggert <eggert@twinsun.com>
64430 Quote multibyte characters correctly.
64431 * m4/c-bs-a.m4: New file.
64432 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64433 (jm_PREREQ): Use it.
64435 2000-01-11 Paul Eggert <eggert@twinsun.com>
64437 * m4/uintmax_t.m4: Port to autoconf 2.13.
64439 2000-01-08 Jim Meyering <meyering@ascend.com>
64441 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64442 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64444 2000-01-04 Jim Meyering <meyering@ascend.com>
64446 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64447 jm_STRUCT_DIRENT_D_TYPE.
64448 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64449 jm_STRUCT_DIRENT_D_INO.
64450 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64452 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64454 * m4/utime.m4: Likewise.
64456 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64457 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64459 2000-01-03 Paul Eggert <eggert@twinsun.com>
64461 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64462 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64464 2000-01-02 Jim Meyering <meyering@ascend.com>
64466 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
64467 remember if this is necessary.
64469 1999-12-26 Jim Meyering <meyering@ascend.com>
64471 * m4/jm-macros.m4: Use it here.
64472 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64474 1999-12-23 Jim Meyering <meyering@ascend.com>
64476 * m4/jm-macros.m4: Check for clock_gettime (moved from
64477 fileutils/configure.in)
64478 Check for gettimeofday.
64480 1999-12-20 Jim Meyering <meyering@ascend.com>
64482 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64483 autoconf-2.14a-1999-12-20.
64485 1999-12-19 Jim Meyering <meyering@ascend.com>
64487 * m4/lstat-slash.m4: New file.
64488 * m4/jm-macros.m4: Use the new macro:
64489 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64491 1999-12-07 Jim Meyering <meyering@ascend.com>
64493 * m4/perl.m4: Require that File::Compare be available, too.
64494 Too many systems seem to lack it.
64496 * m4/strftime.m4: Add checks for most of the cpp macros tested in
64497 GNU's strftime.c. Prompted by a patch from Paul Eggert.
64499 1999-11-18 Paul Eggert <eggert@twinsun.com>
64501 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64502 problem with the QNX 4.25 shell, which doesn't propagate exit
64503 status of failed commands inside shell assignments.
64505 1999-11-17 Jim Meyering <meyering@ascend.com>
64507 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64509 1999-11-07 Jim Meyering <meyering@ascend.com>
64511 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64513 1999-11-06 Jim Meyering <meyering@ascend.com>
64515 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64516 * m4/jm-macros.m4 (jm_MACROS): Use it here.
64518 1999-11-05 Jim Meyering <meyering@ascend.com>
64520 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64521 configure.in of textutils, fileutils, and sh-utils into this one
64522 (shared between those packages) file.
64523 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64524 AC_STRUCT_ST_BLKSIZE.
64526 1999-11-03 Jim Meyering <meyering@ascend.com>
64528 * m4/ssize_t.m4: Remove file. No longer needed since the new version
64529 of AC_CHECK_TYPE checks includes unistd.h.
64530 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64531 Suggestion from Akim Demaille.
64533 1999-10-30 Jim Meyering <meyering@ascend.com>
64535 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
64537 * m4/ls-mntd-fs.m4: Likewise.
64538 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
64539 * m4/jm-winsz1.m4: Likewise.
64541 * m4/const.m4: Remove file, since the fix made it into the experimental
64542 version of autoconf.
64543 * m4/mktime.m4: Likewise.
64545 * m4/check-type.m4: Remove file, now that the latest version of
64546 AC_CHECK_TYPE takes a third arg to specify additional #includes.
64548 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64549 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64552 1999-10-04 Jim Meyering <meyering@ascend.com>
64554 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64556 1999-09-22 Paul Eggert <eggert@twinsun.com>
64558 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64559 2.95.1 bug with HP-UX 10.20.
64561 1999-09-17 Jim Meyering <meyering@ascend.com>
64563 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64564 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64565 due to missing strdup (against sh-utils-2.0).
64567 1999-08-29 Jim Meyering <meyering@ascend.com>
64569 * m4/jm-macros.m4: Require jm_BISON.
64570 * m4/bison.m4: New file.
64572 1999-08-17 Paul Eggert <eggert@twinsun.com>
64574 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64575 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64577 1999-08-05 Jim Meyering <meyering@ascend.com>
64579 * m4/getline.m4: Rename test file from conftestdata to conftest.data
64580 to avoid conflicts with `conftest' on 8+3 filesystems.
64581 Suggestion from Eli Zaretskii.
64583 1999-08-04 Jim Meyering <meyering@ascend.com>
64585 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64586 fileutils and sh-utils (textutils's getline test was inadequate).
64587 (AM_FUNC_GETLINE): Run this test.
64588 (AC_CHECK_FUNCS): Check for getdelim.
64589 Reported by Bob Proulx.
64591 1999-08-02 Jim Meyering <meyering@ascend.com>
64593 * m4/jm-macros.m4: Add a comment.
64595 1999-08-01 Paul Eggert <eggert@twinsun.com>
64597 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64598 <inttypes.h> defines strtoumax as a macro (and not as a
64601 1999-08-01 Paul Eggert <eggert@twinsun.com>
64603 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64604 that we can shift, multiply and divide unsigned long long
64605 values; Ultrix cc can't do it.
64607 1999-08-01 Paul Eggert <eggert@twinsun.com>
64609 * m4/mktime.m4: New file, which is a preview of what should appear
64610 in the next public autoconf release.
64612 1999-08-01 Paul Eggert <eggert@twinsun.com>
64614 * m4/lfs.m4: Remove this file.
64615 * m4/largefile.m4: New file. It contains the old contents of
64616 lfs.m4, except that all names with prefix AC_LFS have been
64617 changed to use the prefix AC_SYS_LARGEFILE instead, to be
64618 compatible with future autoconf versions. Also, some minor m4
64619 quoting problems have been fixed.
64621 1999-08-01 Paul Eggert <eggert@twinsun.com>
64623 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64624 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64625 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64626 and simplify the shell code.
64628 1999-08-01 Jim Meyering <meyering@ascend.com>
64630 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64633 1999-07-20 Jim Meyering <meyering@ascend.com>
64635 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64637 1999-07-15 Jim Meyering <meyering@ascend.com>
64639 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64641 1999-05-22 Jim Meyering <meyering@ascend.com>
64643 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64645 1999-05-20 Jim Meyering <meyering@ascend.com>
64647 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64648 Add a colon after each `then' in case $4 is empty.
64650 1999-05-16 Jim Meyering <meyering@ascend.com>
64652 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64654 1999-05-10 Jim Meyering <meyering@ascend.com>
64656 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64658 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64661 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
64663 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64665 1999-05-04 Paul Eggert <eggert@twinsun.com>
64667 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64668 not CPPFLAGS, so that linking works correctly in IRIX.
64670 1999-04-30 Paul Eggert <eggert@twinsun.com>
64672 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64674 1999-04-20 Paul Eggert <eggert@twinsun.com>
64676 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64677 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64678 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64679 jm_AC_TYPE_UNSIGNED_LONG_LONG.
64680 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64682 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
64684 1999-04-20 Jim Meyering <meyering@ascend.com>
64686 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64687 AC_REPLACE xstroull if necessary. From Paul Eggert.
64688 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64690 1999-04-18 Jim Meyering <meyering@ascend.com>
64692 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64693 * m4/jm-macros.m4: Use it.
64695 1999-04-06 Jim Meyering <meyering@ascend.com>
64697 * m4/strftime.m4: Remove test for %f.
64699 1999-03-29 Jim Meyering <meyering@ascend.com>
64701 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64702 superset of the AC_TYPE_* checks in the textutils, fileutils,
64703 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
64706 1999-03-28 Jim Meyering <meyering@ascend.com>
64708 * m4/jm-macros.m4: Define GNU_PACKAGE here.
64709 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64710 replaced e.g., in the *.sh files of the sh-utils.
64712 1999-03-20 Jim Meyering <meyering@ascend.com>
64714 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64715 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64716 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
64718 1999-03-19 Jim Meyering <meyering@ascend.com>
64720 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64722 1999-03-12 Jim Meyering <meyering@ascend.com>
64724 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64726 1999-03-07 Jim Meyering <meyering@ascend.com>
64728 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64731 1999-02-17 Jim Meyering <meyering@ascend.com>
64733 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64734 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
64736 1999-02-07 Jim Meyering <meyering@ascend.com>
64738 * m4/group-member.m4: New file -- extracted from sh-utils'
64741 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
64742 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64744 1999-02-06 Jim Meyering <meyering@ascend.com>
64746 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64747 * m4/fnmatch.m4: Likewise.
64748 * m4/getgroups.m4: Likewise.
64749 * m4/lstat.m4: Likewise.
64750 * m4/malloc.m4: Likewise.
64751 * m4/putenv.m4: Likewise.
64752 * m4/realloc.m4: Likewise.
64753 * m4/regex.m4: Likewise.
64754 * m4/stat.m4: Likewise.
64755 * m4/strftime.m4: Likewise.
64756 Suggestion from Alain Magloire.
64758 * m4/chown.m4: Use `.$ac_objext', not `.o'.
64759 * m4/fnmatch.m4: Likewise.
64760 * m4/getgroups.m4: Likewise.
64761 * m4/getline.m4: Likewise.
64762 * m4/lstat.m4: Likewise.
64763 * m4/malloc.m4: Likewise.
64764 * m4/memcmp.m4: Likewise.
64765 * m4/putenv.m4: Likewise.
64766 * m4/realloc.m4: Likewise.
64767 * m4/regex.m4: Likewise.
64768 * m4/stat.m4: Likewise.
64769 * m4/strftime.m4: Likewise.
64770 Suggestion from Alain Magloire.
64772 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64775 * m4/regex.m4: Add a run-time Test for proper operation of
64776 re_compile_pattern.
64778 1999-01-31 Jim Meyering <meyering@ascend.com>
64780 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64782 1999-01-30 Jim Meyering <meyering@ascend.com>
64784 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64786 * m4/jm-mktime.m4: Make this a wrapper around the official
64787 AM_FUNC_MKTIME rather than my private copy, now that the official one
64789 * m4/mktime.m4: Remove file.
64791 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64792 * m4/uptime.m4: Likewise.
64793 * m4/uintmax_t.m4: Likewise.
64795 1999-01-28 Jim Meyering <meyering@ascend.com>
64797 * m4/jm-macros.m4: Use jm_AFS.
64798 * m4/afs.m4: New file (from fileutils' configure.in).
64800 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64801 * m4/chown.m4: Likewise.
64802 * m4/d-ino.m4: Likewise.
64803 * m4/d-type.m4: Likewise.
64804 * m4/fnmatch.m4: Likewise.
64805 * m4/getgroups.m4: Likewise.
64806 * m4/gettext.m4: Likewise.
64807 * m4/jm-mktime.m4: Likewise.
64808 * m4/jm-winsz2.m4: Likewise.
64809 * m4/lcmessage.m4: Likewise.
64810 * m4/ls-mntd-fs.m4: Likewise.
64811 * m4/malloc.m4: Likewise.
64812 * m4/memcmp.m4: Likewise.
64813 * m4/putenv.m4: Likewise.
64814 * m4/realloc.m4: Likewise.
64815 * m4/st_mtim.m4: Likewise.
64816 * m4/strftime.m4: Likewise.
64818 1999-01-16 Jim Meyering <meyering@ascend.com>
64820 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64821 (ARGMATCH_DIE_DECL): Define.
64823 1999-01-12 Jim Meyering <meyering@ascend.com>
64825 * m4/Makefile.am.in: Rewrite to avoid using fmt.
64826 Reported by Lars Hecking.
64828 1999-01-10 Jim Meyering <meyering@ascend.com>
64830 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64832 * m4/inttypes_h.m4: Likewise.
64833 * m4/lstat.m4: Likewise.
64834 * m4/malloc.m4: Likewise.
64835 * m4/readdir.m4: Likewise.
64836 * m4/realloc.m4: Likewise.
64837 * m4/st_dm_mode.m4: Likewise.
64838 * m4/stat.m4: Likewise.
64839 * m4/utimbuf.m4: Likewise.
64840 * m4/utimes.m4: Likewise.
64842 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64843 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
64844 comments in config.h.in are meaningful.
64846 * m4/jm-macros.m4: Require autoconf-2.13 here.
64848 * m4/regex.m4: By default, don't use the included regex.c on systems
64849 with glibc 2. Suggestion from Uli Drepper.
64851 1999-01-02 Jim Meyering <meyering@ascend.com>
64853 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64855 1998-12-18 Jim Meyering <meyering@ascend.com>
64857 * m4/Makefile.am.in (Makefile.am): Simplify rule.
64858 Based on a suggestion from Lars Hecking.
64860 1998-11-16 Paul Eggert <eggert@twinsun.com>
64862 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64864 1998-11-16 Jim Meyering <meyering@ascend.com>
64866 * m4/lfs.m4: Double-quote the `uname...` expression.
64868 1998-11-14 Jim Meyering <meyering@ascend.com>
64870 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
64871 * m4/stat.m4: Likewise.
64873 1998-11-03 Jim Meyering <meyering@ascend.com>
64875 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64876 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64878 1998-10-18 Jim Meyering <meyering@ascend.com>
64880 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64882 1998-10-17 Jim Meyering <meyering@ascend.com>
64884 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64885 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64886 calls for those previously hard-coded headers. Instead, take a new
64888 (jm_CHECK_DECLARATIONS): Reflect interface change.
64889 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64890 (jm_CHECK_DECL_LOCALTIME_R): New macro.
64892 * m4/mktime.m4: Test for spring-forward gap before long-running test.
64894 1998-10-14 Jim Meyering <meyering@ascend.com>
64896 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64897 instead of "TZ=America/Vancouver". From Paul Eggert.
64899 1998-10-11 Jim Meyering <meyering@ascend.com>
64901 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64902 This adds a test for a recently added compatibility fix for mktime.c.
64903 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64905 1998-09-27 Jim Meyering <meyering@ascend.com>
64907 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64909 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
64910 ../configure.in, including a change from Gordon Matzigkeit to allow
64911 cross-compiling for the Hurd.
64913 * m4/glibc.m4: New file/macro to test for the GNU C Library
64914 versions 1 and 2. From Gordon Matzigkeit.
64917 1998-09-21 Jim Meyering <meyering@ascend.com>
64919 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
64921 1998-08-18 Paul Eggert <eggert@twinsun.com>
64923 Port nanosecond-resolution times to UnixWare 2.1.2 and
64924 pedantic Solaris 2.6.
64926 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64928 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64929 Generate name of ns member, instead of just 1 or undef.
64930 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64932 1998-08-15 Jim Meyering <meyering@ascend.com>
64934 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64935 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
64936 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64937 instead of jm_TYPE_SSIZE_T.
64939 1998-08-12 Jim Meyering <meyering@ascend.com>
64941 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
64943 1998-08-02 Jim Meyering <meyering@ascend.com>
64945 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64946 in acconfig.h manually.
64948 1998-07-31 Paul Eggert <eggert@twinsun.com>
64950 * m4/st_mtim.m4: New file.
64952 1998-07-28 Jim Meyering <meyering@ascend.com>
64954 * m4/utimes.m4: Undef stat.
64956 1998-07-25 Jim Meyering <meyering@ascend.com>
64958 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64959 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64961 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
64963 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64964 uid and gid actually remain unchanged.
64966 1998-07-07 Jim Meyering <meyering@ascend.com>
64968 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64970 1998-07-04 Jim Meyering <meyering@ascend.com>
64972 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
64973 to prove that this macro can be used in packages without regex.c.
64975 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
64977 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64980 1998-07-03 Jim Meyering <meyering@ascend.com>
64982 * m4/gettext.m4: Add -lintl if it's found to be necessary.
64984 * m4/gettext.m4: New file -- from gettext-0.10.35.
64985 * m4/lcmessage.m4: Likewise.
64986 * m4/progtest.m4: Likewise.
64988 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64989 * m4/jm-macros.m4: Require the new macro.
64991 1998-06-29 Jim Meyering <meyering@ascend.com>
64993 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
64994 for the definition of NGROUPS (used in a system header included
64997 1998-06-28 Jim Meyering <meyering@ascend.com>
64999 * m4/ls-mntd-fs.m4: New file.
65000 * m4/fstypename.m4: New file.
65002 * m4/jm-macros.m4: Require the new macro.
65003 * m4/jm-glibc-io.m4: New file.
65005 1998-05-19 Jim Meyering <meyering@ascend.com>
65007 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65008 * m4/lchown.m4: New file.
65010 * m4/Makefile.am.in: New file.
65011 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65013 1998-05-14 Jim Meyering <meyering@ascend.com>
65015 * m4/Makefile.am (EXTRA_DIST): Add them.
65016 * m4/jm-macros.m4: New file.
65017 * m4/utimbuf.m4: New file.
65019 1998-05-12 Jim Meyering <meyering@ascend.com>
65021 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65023 1998-05-11 Jim Meyering <meyering@ascend.com>
65025 * m4/isc-posix.m4: New file.
65027 1998-05-10 Jim Meyering <meyering@ascend.com>
65029 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65031 1998-05-09 Jim Meyering <meyering@ascend.com>
65033 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65034 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65037 * m4/ssize_t.m4: New file.
65038 * m4/mktime.m4: Remove file -- the new automake has this now.
65040 1998-04-26 Jim Meyering <meyering@ascend.com>
65042 * m4/assert.m4: New file.
65043 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65045 1998-04-05 Jim Meyering <meyering@ascend.com>
65047 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65048 (jm_PREREQ): Use it here.
65050 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
65052 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65055 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
65057 * m4/prereq.m4: New file.
65058 * m4/error.m4: New file.
65059 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65061 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
65063 * m4/getline.m4: Don't set am_cv_func_working_getline before the
65064 cache-check for the same variable -- that defeated the purpose of
65065 the test; the test program was never run. This was a problem only
65066 on systems with losing getline functions -- HP-UX 10.20 is one.
65067 Reported by Bjorn Helgaas.
65069 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
65071 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65073 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
65075 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65077 * m4/const.m4: New file. Use an initializer in this declaration
65078 typedef int charset[2]; const charset x;
65079 Reported by Bob Glickstein.
65081 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
65083 * m4/chown.m4: Fix reversed types on -1 args to chown.
65086 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
65088 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65089 Add lseek and memchr.
65091 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65092 T.E.Dickey <dickey@clark.net> said that some older preprocessors
65093 have a 20-character limit on names.
65095 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
65097 * m4/inttypes_h.m4: New file.
65098 * m4/uintmax_t.m4: New file.
65099 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65108 Copyright (C) 1997-2010 Free Software Foundation, Inc.
65110 Copying and distribution of this file, with or without
65111 modification, are permitted provided the copyright notice
65112 and this notice are preserved.