1 2010-01-10 Bruno Haible <bruno@clisp.org>
3 Tests for module 'unistr/u16-strlen'.
4 * modules/unistr/u16-strlen-tests: New file.
5 * tests/unistr/test-u16-strlen.c: New file.
7 Tests for module 'unistr/u8-strlen'.
8 * modules/unistr/u8-strlen-tests: New file.
9 * tests/unistr/test-u8-strlen.c: New file.
11 Tests for module 'unistr/u32-prev'.
12 * modules/unistr/u32-prev-tests: New file.
13 * tests/unistr/test-u32-prev.c: New file.
15 Tests for module 'unistr/u16-prev'.
16 * modules/unistr/u16-prev-tests: New file.
17 * tests/unistr/test-u16-prev.c: New file.
19 Tests for module 'unistr/u8-prev'.
20 * modules/unistr/u8-prev-tests: New file.
21 * tests/unistr/test-u8-prev.c: New file.
23 Tests for module 'unistr/u32-next'.
24 * modules/unistr/u32-next-tests: New file.
25 * tests/unistr/test-u32-next.c: New file.
27 Tests for module 'unistr/u16-next'.
28 * modules/unistr/u16-next-tests: New file.
29 * tests/unistr/test-u16-next.c: New file.
31 Tests for module 'unistr/u8-next'.
32 * modules/unistr/u8-next-tests: New file.
33 * tests/unistr/test-u8-next.c: New file.
35 Tests for module 'unistr/u32-strmbtouc'.
36 * modules/unistr/u32-strmbtouc-tests: New file.
37 * tests/unistr/test-u32-strmbtouc.c: New file.
39 Tests for module 'unistr/u16-strmbtouc'.
40 * modules/unistr/u16-strmbtouc-tests: New file.
41 * tests/unistr/test-u16-strmbtouc.c: New file.
43 Tests for module 'unistr/u8-strmbtouc'.
44 * modules/unistr/u8-strmbtouc-tests: New file.
45 * tests/unistr/test-u8-strmbtouc.c: New file.
47 Tests for module 'unistr/u32-strmblen'.
48 * modules/unistr/u32-strmblen-tests: New file.
49 * tests/unistr/test-u32-strmblen.c: New file.
51 Tests for module 'unistr/u16-strmblen'.
52 * modules/unistr/u16-strmblen-tests: New file.
53 * tests/unistr/test-u16-strmblen.c: New file.
55 Tests for module 'unistr/u8-strmblen'.
56 * modules/unistr/u8-strmblen-tests: New file.
57 * tests/unistr/test-u8-strmblen.c: New file.
59 Tests for module 'unistr/u32-cpy-alloc'.
60 * modules/unistr/u32-cpy-alloc-tests: New file.
61 * tests/unistr/test-u32-cpy-alloc.c: New file.
63 Tests for module 'unistr/u16-cpy-alloc'.
64 * modules/unistr/u16-cpy-alloc-tests: New file.
65 * tests/unistr/test-u16-cpy-alloc.c: New file.
67 Tests for module 'unistr/u8-cpy-alloc'.
68 * modules/unistr/u8-cpy-alloc-tests: New file.
69 * tests/unistr/test-u8-cpy-alloc.c: New file.
70 * tests/unistr/test-cpy-alloc.h: New file.
72 Tests for module 'unistr/u32-mbsnlen'.
73 * modules/unistr/u32-mbsnlen-tests: New file.
74 * tests/unistr/test-u32-mbsnlen.c: New file.
76 Tests for module 'unistr/u16-mbsnlen'.
77 * modules/unistr/u16-mbsnlen-tests: New file.
78 * tests/unistr/test-u16-mbsnlen.c: New file.
80 Tests for module 'unistr/u8-mbsnlen'.
81 * modules/unistr/u8-mbsnlen-tests: New file.
82 * tests/unistr/test-u8-mbsnlen.c: New file.
84 Tests for module 'unistr/u32-chr'.
85 * modules/unistr/u32-chr-tests: New file.
86 * tests/unistr/test-u32-chr.c: New file.
88 Tests for module 'unistr/u16-chr'.
89 * modules/unistr/u16-chr-tests: New file.
90 * tests/unistr/test-u16-chr.c: New file.
92 Tests for module 'unistr/u8-chr'.
93 * modules/unistr/u8-chr-tests: New file.
94 * tests/unistr/test-u8-chr.c: New file.
95 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
97 Tests for module 'unistr/u32-cmp2'.
98 * modules/unistr/u32-cmp2-tests: New file.
99 * tests/unistr/test-u32-cmp2.c: New file.
101 Tests for module 'unistr/u16-cmp2'.
102 * modules/unistr/u16-cmp2-tests: New file.
103 * tests/unistr/test-u16-cmp2.c: New file.
105 Tests for module 'unistr/u8-cmp2'.
106 * modules/unistr/u8-cmp2-tests: New file.
107 * tests/unistr/test-u8-cmp2.c: New file.
108 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
110 Tests for module 'unistr/u32-cmp'.
111 * modules/unistr/u32-cmp-tests: New file.
112 * tests/unistr/test-u32-cmp.c: New file.
114 Tests for module 'unistr/u16-cmp'.
115 * modules/unistr/u16-cmp-tests: New file.
116 * tests/unistr/test-u16-cmp.c: New file.
118 Tests for module 'unistr/u8-cmp'.
119 * modules/unistr/u8-cmp-tests: New file.
120 * tests/unistr/test-u8-cmp.c: New file.
121 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
123 Tests for module 'unistr/u32-set'.
124 * modules/unistr/u32-set-tests: New file.
125 * tests/unistr/test-u32-set.c: New file.
127 Tests for module 'unistr/u16-set'.
128 * modules/unistr/u16-set-tests: New file.
129 * tests/unistr/test-u16-set.c: New file.
131 Tests for module 'unistr/u8-set'.
132 * modules/unistr/u8-set-tests: New file.
133 * tests/unistr/test-u8-set.c: New file.
134 * tests/unistr/test-set.h: New file.
136 Tests for module 'unistr/u32-move'.
137 * modules/unistr/u32-move-tests: New file.
138 * tests/unistr/test-u32-move.c: New file.
140 Tests for module 'unistr/u16-move'.
141 * modules/unistr/u16-move-tests: New file.
142 * tests/unistr/test-u16-move.c: New file.
144 Tests for module 'unistr/u8-move'.
145 * modules/unistr/u8-move-tests: New file.
146 * tests/unistr/test-u8-move.c: New file.
147 * tests/unistr/test-move.h: New file.
149 Tests for module 'unistr/u32-cpy'.
150 * modules/unistr/u32-cpy-tests: New file.
151 * tests/unistr/test-u32-cpy.c: New file.
153 Tests for module 'unistr/u16-cpy'.
154 * modules/unistr/u16-cpy-tests: New file.
155 * tests/unistr/test-u16-cpy.c: New file.
157 Tests for module 'unistr/u8-cpy'.
158 * modules/unistr/u8-cpy-tests: New file.
159 * tests/unistr/test-u8-cpy.c: New file.
160 * tests/unistr/test-cpy.h: New file.
162 2010-01-09 Bruno Haible <bruno@clisp.org>
164 Tests for module 'unistr/u32-uctomb'.
165 * modules/unistr/u32-uctomb-tests: New file.
166 * tests/unistr/test-u32-uctomb.c: New file.
168 Tests for module 'unistr/u16-uctomb'.
169 * modules/unistr/u16-uctomb-tests: New file.
170 * tests/unistr/test-u16-uctomb.c: New file.
172 Tests for module 'unistr/u8-uctomb'.
173 * modules/unistr/u8-uctomb-tests: New file.
174 * tests/unistr/test-u8-uctomb.c: New file.
176 Tests for module 'unistr/u32-mbtoucr'.
177 * modules/unistr/u32-mbtoucr-tests: New file.
178 * tests/unistr/test-u32-mbtoucr.c: New file.
180 Tests for module 'unistr/u16-mbtoucr'.
181 * modules/unistr/u16-mbtoucr-tests: New file.
182 * tests/unistr/test-u16-mbtoucr.c: New file.
184 Tests for module 'unistr/u8-mbtoucr'.
185 * modules/unistr/u8-mbtoucr-tests: New file.
186 * tests/unistr/test-u8-mbtoucr.c: New file.
188 Tests for module 'unistr/u32-mbtouc'.
189 * modules/unistr/u32-mbtouc-tests: New file.
190 * tests/unistr/test-u32-mbtouc.c: New file.
192 Tests for module 'unistr/u16-mbtouc'.
193 * modules/unistr/u16-mbtouc-tests: New file.
194 * tests/unistr/test-u16-mbtouc.c: New file.
196 Tests for module 'unistr/u8-mbtouc'.
197 * modules/unistr/u8-mbtouc-tests: New file.
198 * tests/unistr/test-u8-mbtouc.c: New file.
200 Tests for module 'unistr/u32-mbtouc-unsafe'.
201 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
202 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
203 * tests/unistr/test-u32-mbtouc.h: New file.
205 Tests for module 'unistr/u16-mbtouc-unsafe'.
206 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
207 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
208 * tests/unistr/test-u16-mbtouc.h: New file.
210 Tests for module 'unistr/u8-mbtouc-unsafe'.
211 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
212 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
213 * tests/unistr/test-u8-mbtouc.h: New file.
215 Tests for module 'unistr/u32-mblen'.
216 * modules/unistr/u32-mblen-tests: New file.
217 * tests/unistr/test-u32-mblen.c: New file.
219 Tests for module 'unistr/u16-mblen'.
220 * modules/unistr/u16-mblen-tests: New file.
221 * tests/unistr/test-u16-mblen.c: New file.
223 Tests for module 'unistr/u8-mblen'.
224 * modules/unistr/u8-mblen-tests: New file.
225 * tests/unistr/test-u8-mblen.c: New file.
227 Tests for module 'unistr/u32-to-u16'.
228 * modules/unistr/u32-to-u16-tests: New file.
229 * tests/unistr/test-u32-to-u16.c: New file.
231 Tests for module 'unistr/u32-to-u8'.
232 * modules/unistr/u32-to-u8-tests: New file.
233 * tests/unistr/test-u32-to-u8.c: New file.
235 Tests for module 'unistr/u16-to-u32'.
236 * modules/unistr/u16-to-u32-tests: New file.
237 * tests/unistr/test-u16-to-u32.c: New file.
239 Tests for module 'unistr/u16-to-u8'.
240 * modules/unistr/u16-to-u8-tests: New file.
241 * tests/unistr/test-u16-to-u8.c: New file.
243 Tests for module 'unistr/u8-to-u32'.
244 * modules/unistr/u8-to-u32-tests: New file.
245 * tests/unistr/test-u8-to-u32.c: New file.
247 Tests for module 'unistr/u8-to-u16'.
248 * modules/unistr/u8-to-u16-tests: New file.
249 * tests/unistr/test-u8-to-u16.c: New file.
251 Tests for module 'unistr/u32-check'.
252 * modules/unistr/u32-check-tests: New file.
253 * tests/unistr/test-u32-check.c: New file.
255 Tests for module 'unistr/u16-check'.
256 * modules/unistr/u16-check-tests: New file.
257 * tests/unistr/test-u16-check.c: New file.
259 Tests for module 'unistr/u8-check'.
260 * modules/unistr/u8-check-tests: New file.
261 * tests/unistr/test-u8-check.c: New file.
263 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
264 (category_equals): New function.
265 (main): Add more tests.
266 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
268 * tests/unictype/test-bidi_byname.c (main): Add more tests.
270 2010-01-10 Bruno Haible <bruno@clisp.org>
272 unistr/u*-strcoll: Try harder to distinguish different strings.
273 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
274 compare s1 and s2 to see if they are different.
276 2010-01-10 Bruno Haible <bruno@clisp.org>
278 unistr/u*-stpncpy: Fix the return value.
279 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
280 description of the return value consistent with stpncpy in glibc.
281 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
282 written non-NUL unit.
284 2010-01-10 Bruno Haible <bruno@clisp.org>
286 unistr/u*-next: Add missing dependencies.
287 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
288 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
289 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
291 2010-01-10 Bruno Haible <bruno@clisp.org>
293 unistr/u8-mbsnlen: Fix return value for incomplete character.
294 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
296 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
297 Remove unistr/u8-mblen.
298 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
300 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
301 Remove unistr/u16-mblen.
303 2010-01-10 Bruno Haible <bruno@clisp.org>
305 wchar: Fix compilation error when <wchar.h> is used from coreutils.
306 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
307 Reported by Brian Gough <bjg@gnu.org> and
308 Chris Clayton <chris2553@googlemail.com> via
309 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
311 2010-01-09 Bruno Haible <bruno@clisp.org>
313 unistr/u16-to-u32: Reject invalid input.
314 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
316 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
317 Remove unistr/u16-mbtouc.
319 unistr/u16-to-u8: Reject invalid input.
320 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
322 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
323 Remove unistr/u16-mbtouc.
325 unistr/u8-to-u32: Reject invalid input.
326 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
328 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
329 Remove unistr/u8-mbtouc.
331 unistr/u8-to-u16: Reject invalid input.
332 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
334 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
335 Remove unistr/u8-mbtouc.
337 2010-01-09 Bruno Haible <bruno@clisp.org>
339 Tests for module 'getlogin'.
340 * modules/getlogin-tests: New file.
341 * tests/test-getlogin.c: New file.
343 New module 'getlogin'.
344 * lib/unistd.in.h (getlogin): New declaration.
345 * lib/getlogin.c: New file.
346 * m4/getlogin.m4: New file.
347 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
349 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
351 * modules/getlogin: New file.
352 * doc/posix-functions/getlogin.texi: Mention the new module.
353 Reported by John W. Eaton <jwe@gnu.org>.
355 2010-01-09 Bruno Haible <bruno@clisp.org>
357 getlogin_r: Support for native Windows.
358 * lib/getlogin_r.c: Include <windows.h>
359 (getlogin_r): Implement for native Windows.
360 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
361 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
362 via John W. Eaton <jwe@gnu.org>.
364 2010-01-09 Bruno Haible <bruno@clisp.org>
366 getlogin_r: Small fixes.
367 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
369 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
370 before testing whether getlogin_r is declared. No need to set
371 HAVE_DECL_GETLOGIN_R to 1.
372 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
374 2010-01-09 Bruno Haible <bruno@clisp.org>
376 * lib/unistd.in.h (getlogin_r): Add comment.
378 2010-01-09 Bruno Haible <bruno@clisp.org>
380 Tests for module 'getlogin_r'.
381 * modules/getlogin_r-tests: New file.
382 * tests/test-getlogin_r.c: New file.
384 2010-01-09 Jim Meyering <meyering@redhat.com>
386 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
387 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
388 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
390 2010-01-08 Simon Josefsson <simon@josefsson.org>
392 * lib/dup2.c (rpl_dup2): Improve comment.
394 2010-01-08 Eric Blake <ebb9@byu.net>
396 maint.mk: allow packages to add makefile @@ exceptions
397 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
398 (sc_makefile_check): Rename...
399 (sc_makefile_at_at_check): ...to this, and use hook.
401 dup2: work around mingw bug
402 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
403 Reported by Simon Josefsson.
405 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
407 glob: Fix C++ compilation.
408 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
411 2010-01-07 Bruno Haible <bruno@clisp.org>
413 Fix indentation of wctype.in.h, broken since 2007-01-06.
414 * lib/wctype.in.h: Fix indentation of preprocessor directives.
416 2010-01-07 Bruno Haible <bruno@clisp.org>
418 mbslen: Avoid collision with system function.
419 * lib/string.in.h [MirBSD]: Include <wchar.h>.
420 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
421 * m4/mbslen.m4: New file.
422 * modules/mbslen (Files): Add it.
423 (configure.ac): Invoke gl_MBSLEN.
424 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
425 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
426 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
427 via Ian Beckwith <ianb@erislabs.net>.
429 2010-01-07 Bruno Haible <bruno@clisp.org>
431 dirent: Document the last fix.
432 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
434 2010-01-07 Bruno Haible <bruno@clisp.org>
436 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
437 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
438 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
440 * doc/posix-headers/stdio.texi: Document the bug of missing types.
441 Reported by Eric Blake.
443 2010-01-07 Bruno Haible <bruno@clisp.org>
445 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
446 * modules/xlist (Depends-on): Add 'list',
447 * modules/xoset (Depends-on): Add 'oset'.
448 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
450 2010-01-07 Bruno Haible <bruno@clisp.org>
452 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
453 * doc/posix-functions/strncasecmp.texi: Likewise.
455 2010-01-07 Bruno Haible <bruno@clisp.org>
457 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
459 2010-01-07 John W. Eaton <jwe@octave.org>
461 wctype: allow C++ use
462 * lib/wctype.in.h: Add extern "C" block for C++.
464 2010-01-06 Eric Blake <ebb9@byu.net>
466 maint.mk: detect incorrect GFDL usage
467 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
469 2010-01-06 Jim Meyering <meyering@redhat.com>
470 and Eric Blake <ebb9@byu.net>
472 maint.mk: ignore multi-line copyright in NEWS
473 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
475 2010-01-06 Eric Blake <ebb9@byu.net>
477 select: add missing dependency
478 * modules/select-tests (Depends-on): Move sockets dependency...
479 * modules/select (Depends-on): ...here.
480 Reported by Ian Beckwith.
482 doc: regenerate INSTALL
483 * doc/INSTALL: Reflect recent autoconf update.
484 * doc/INSTALL.ISO: Likewise.
485 * doc/INSTALL.UTF-8: Likewise.
487 pread: fix compilation on glibc
488 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
489 Reported by Ralf Wildenhues.
491 dirent: fix test failure
492 * lib/dirent.in.h (includes): Guarantee ino_t.
493 Reported by Ralf Wildenhues.
495 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
497 linkat, renameat: avoid bad free
498 * lib/at-func2.c (at_func2): Fix typo.
499 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
501 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
503 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
504 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
505 to avoid failure of symlink test later.
507 2010-01-06 Eric Blake <ebb9@byu.net>
509 stdio, unistd: guarantee ssize_t
510 * lib/unistd.in.h (includes): Ensure that types required by POSIX
511 2008 are exposed when needed.
512 * lib/stdio.in.h (includes): Likewise.
513 Reported by Ralf Wildenhues.
515 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
517 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
518 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
519 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
521 2010-01-06 Jim Meyering <meyering@redhat.com>
523 readtokens: this module *does* require xalloc.h
524 It uses only functions that were omitted by the old syntax-check rule.
525 * lib/readtokens.c: Include "xalloc.h" once again.
526 * modules/readtokens (Depends-on): Add xalloc.
527 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
529 2010-01-05 Eric Blake <ebb9@byu.net>
531 maint: support 'make announcement' from a VPATH build
532 * top/maint.mk (announcement): Look for correct NEWS file.
534 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
536 utimens (fdutimens): ignore a negative FD, per contract
537 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
538 when we have a valid file descriptor. Otherwise, using a brand
539 new glibc (with just-patched futimens that now fails with EBADF)
540 would cause this function to fail with ENOSYS.
541 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
542 See also http://bugzilla.redhat.com/552320.
544 2010-01-05 Eric Blake <ebb9@byu.net>
546 strcase: document what it provides
547 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
549 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
550 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
552 2010-01-05 Jim Meyering <meyering@redhat.com>
554 maint: remove useless inclusions of "xalloc.h"
555 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
556 * lib/readtokens.c: Likewise.
557 * lib/same.c: Likewise.
558 * modules/getloadavg (Depends-on): Remove xalloc.
559 * modules/readtokens: Likewise.
560 * modules/same: Likewise.
562 maint.mk: include 4 more function names in alloca.h-checking regexp
563 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
564 regexp. Before, we would give a false-positive (saying alloca.h
565 is included unnecessarily) when the only uses involved omitted symbols.
567 xalloc.h: use consistent formatting
568 * lib/xalloc.h: Move declarations to start in the first column.
570 2010-01-05 Eric Blake <ebb9@byu.net>
573 * lib/mkdir.c (includes): Drop unused header.
574 Reported by John W. Eaton.
576 2010-01-04 Jim Meyering <meyering@redhat.com>
578 nl_langinfo: avoid configure-time syntax error
579 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
580 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
581 the empty string. Don't let that provoke a shell syntax error.
583 regcomp, regexec, fnmatch: avoid array bounds read error
584 * lib/regcomp.c (build_equiv_class): From glibc:
585 Use only the low 24 bits of a findidx return value as an index
586 into the weights array. Patch by Ulrich Drepper:
587 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
588 * lib/regexec.c (check_node_accept_bytes): Likewise.
589 * lib/fnmatch_loop.c (FCT): Likewise.
591 regcomp: skip collseq lookup when there are no rules
592 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
593 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
595 regcomp: recognize ill-formed { } expressions
596 * lib/regcomp.c (parse_dup_op): From glibc:
597 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
599 regcomp: fix typo in comment
600 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
601 s/satisfy/satisfies/.
603 regcomp: sync from glibc: remove dead store
604 * lib/regcomp.c (duplicate_node_closure): Remove useless
605 search_duplicated_node call and dead store.
607 regcomp: sync from glibc; always use nl_langinfo
608 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
609 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
610 * modules/regex (Depends-on): Add nl_langinfo.
612 2010-01-04 Eric Blake <ebb9@byu.net>
614 fdopendir: fix configure test
615 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
617 2010-01-01 Bruno Haible <bruno@clisp.org>
619 wchar: Remove unused configure check.
620 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
622 2010-01-01 Eric Blake <ebb9@byu.net>
624 headers: make check of system header explicit
625 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
626 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
628 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
629 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
630 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
631 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
633 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
635 Suggested by Bruno Haible.
637 2010-01-01 Jim Meyering <meyering@redhat.com>
639 ChangeLog: tweak to eliminate unnecessary copyright line
640 * ChangeLog: Remove a copyright line that was mistakenly updated
641 by today's update-copyright run. Reported by Eric Blake.
643 test-update-copyright: don't let envvar setting cause test failure
644 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
646 2010-01-01 Bruno Haible <bruno@clisp.org>
648 localename: Avoid gcc warning.
649 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
650 function if it is not used.
652 2010-01-01 Jim Meyering <meyering@redhat.com>
654 update nearly all FSF copyright year lists to include 2010
655 Use the same procedure as for 2009, outlined in
656 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
658 version-etc: set COPYRIGHT_YEAR to 2010
659 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
661 2009-12-31 Eric Blake <ebb9@byu.net>
663 doc: correct availability of cygwin 1.5.x getopt
664 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
666 * doc/posix-functions/opterr.texi (opterr): Likewise.
667 * doc/posix-functions/optind.texi (optind): Likewise.
668 * doc/posix-functions/optopt.texi (optopt): Likewise.
669 * doc/posix-functions/tzname.texi (tzname): Likewise.
671 openat: update maintainer
672 * modules/openat (Maintainer): Add myself.
674 utimens: avoid shadowing warning
675 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
676 buffers into one, to avoid shadowing, as well as avoiding a
678 Reported by Jim Meyering.
680 test-dup2: avoid compiler warning
681 * tests/test-dup2.c (is_inheritable): Only define if used.
683 2010-01-01 Bruno Haible <bruno@clisp.org>
685 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
686 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
687 defined, use wctomb instead of wcrtomb.
689 2010-01-01 Bruno Haible <bruno@clisp.org>
691 iconv: Reject native Solaris iconv.
692 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
693 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
695 2009-12-31 Bruno Haible <bruno@clisp.org>
697 * tests/test-signal.c (main): Remove test of 'SIG'.
699 2009-12-31 Bruno Haible <bruno@clisp.org>
701 spawn: Fix incomplete fix.
702 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
703 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
704 warnings for GNULIB_POSIXCHECK again.
705 Reported by Eric Blake.
707 2009-12-31 Bruno Haible <bruno@clisp.org>
709 Avoid namespace pollution on glibc systems.
710 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
711 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
712 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
715 2009-12-31 Bruno Haible <bruno@clisp.org>
717 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
718 (gl_REPLACE_WCHAR_H): Turn into a no-op.
719 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
720 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
721 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
722 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
723 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
725 2009-12-31 Bruno Haible <bruno@clisp.org>
727 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
728 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
731 2009-12-31 Bruno Haible <bruno@clisp.org>
733 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
736 2009-12-31 Bruno Haible <bruno@clisp.org>
738 spawn: Fix misapplied patch.
739 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
740 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
741 warnings for GNULIB_POSIXCHECK.
743 2009-12-31 Bruno Haible <bruno@clisp.org>
745 times: Update after sys_times changed.
746 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
747 * modules/times (Files): Add it.
748 (configure.ac): Invoke gl_FUNC_TIMES.
750 2009-12-31 Bruno Haible <bruno@clisp.org>
752 Use AC_C_INLINE where necessary.
753 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
754 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
755 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
756 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
757 * m4/mbfile.m4 (gl_MBFILE): Likewise.
758 * m4/mbiter.m4 (gl_MBITER): Likewise.
759 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
760 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
761 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
762 * modules/u64 (configure.ac): Likewise.
764 2009-12-31 Bruno Haible <bruno@clisp.org>
766 Use AC_C_INLINE instead of module 'inline' where possible.
767 * modules/inline (Description): Clarify purpose.
768 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
769 * modules/count-one-bits (Depends-on): Remove inline.
770 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
771 * modules/openat (Depends-on): Remove inline.
772 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
773 instead of depending on module 'inline'.
774 * modules/filevercmp (Depends-on, configure.ac): Likewise.
775 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
776 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
777 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
778 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
779 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
780 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
781 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
782 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
783 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
784 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
785 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
786 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
787 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
788 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
789 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
790 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
791 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
793 * modules/unictype/property-ascii-hex-digit (Depends-on,
794 configure.ac): Likewise.
795 * modules/unictype/property-bidi-arabic-digit (Depends-on,
796 configure.ac): Likewise.
797 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
798 configure.ac): Likewise.
799 * modules/unictype/property-bidi-block-separator (Depends-on,
800 configure.ac): Likewise.
801 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
802 configure.ac): Likewise.
803 * modules/unictype/property-bidi-common-separator (Depends-on,
804 configure.ac): Likewise.
805 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
807 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
808 configure.ac): Likewise.
809 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
810 configure.ac): Likewise.
811 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
812 configure.ac): Likewise.
813 * modules/unictype/property-bidi-european-digit (Depends-on,
814 configure.ac): Likewise.
815 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
816 configure.ac): Likewise.
817 * modules/unictype/property-bidi-left-to-right (Depends-on,
818 configure.ac): Likewise.
819 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
820 configure.ac): Likewise.
821 * modules/unictype/property-bidi-other-neutral (Depends-on,
822 configure.ac): Likewise.
823 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
825 * modules/unictype/property-bidi-segment-separator (Depends-on,
826 configure.ac): Likewise.
827 * modules/unictype/property-bidi-whitespace (Depends-on,
828 configure.ac): Likewise.
829 * modules/unictype/property-combining (Depends-on, configure.ac):
831 * modules/unictype/property-composite (Depends-on, configure.ac):
833 * modules/unictype/property-currency-symbol (Depends-on,
834 configure.ac): Likewise.
835 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
836 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
838 * modules/unictype/property-default-ignorable-code-point (Depends-on,
839 configure.ac): Likewise.
840 * modules/unictype/property-deprecated (Depends-on, configure.ac):
842 * modules/unictype/property-diacritic (Depends-on, configure.ac):
844 * modules/unictype/property-extender (Depends-on, configure.ac):
846 * modules/unictype/property-format-control (Depends-on, configure.ac):
848 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
850 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
852 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
854 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
856 * modules/unictype/property-hyphen (Depends-on, configure.ac):
858 * modules/unictype/property-id-continue (Depends-on, configure.ac):
860 * modules/unictype/property-id-start (Depends-on, configure.ac):
862 * modules/unictype/property-ideographic (Depends-on, configure.ac):
864 * modules/unictype/property-ids-binary-operator (Depends-on,
865 configure.ac): Likewise.
866 * modules/unictype/property-ids-trinary-operator (Depends-on,
867 configure.ac): Likewise.
868 * modules/unictype/property-ignorable-control (Depends-on,
869 configure.ac): Likewise.
870 * modules/unictype/property-iso-control (Depends-on, configure.ac):
872 * modules/unictype/property-join-control (Depends-on, configure.ac):
874 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
876 * modules/unictype/property-line-separator (Depends-on, configure.ac):
878 * modules/unictype/property-logical-order-exception (Depends-on,
879 configure.ac): Likewise.
880 * modules/unictype/property-lowercase (Depends-on, configure.ac):
882 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
883 * modules/unictype/property-non-break (Depends-on, configure.ac):
885 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
887 * modules/unictype/property-numeric (Depends-on, configure.ac):
889 * modules/unictype/property-other-alphabetic (Depends-on,
890 configure.ac): Likewise.
891 * modules/unictype/property-other-default-ignorable-code-point
892 (Depends-on, configure.ac): Likewise.
893 * modules/unictype/property-other-grapheme-extend (Depends-on,
894 configure.ac): Likewise.
895 * modules/unictype/property-other-id-continue (Depends-on,
896 configure.ac): Likewise.
897 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
899 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
901 * modules/unictype/property-other-math (Depends-on, configure.ac):
903 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
905 * modules/unictype/property-paired-punctuation (Depends-on,
906 configure.ac): Likewise.
907 * modules/unictype/property-paragraph-separator (Depends-on,
908 configure.ac): Likewise.
909 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
911 * modules/unictype/property-pattern-white-space (Depends-on,
912 configure.ac): Likewise.
913 * modules/unictype/property-private-use (Depends-on, configure.ac):
915 * modules/unictype/property-punctuation (Depends-on, configure.ac):
917 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
919 * modules/unictype/property-radical (Depends-on, configure.ac):
921 * modules/unictype/property-sentence-terminal (Depends-on,
922 configure.ac): Likewise.
923 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
925 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
926 * modules/unictype/property-terminal-punctuation (Depends-on,
927 configure.ac): Likewise.
928 * modules/unictype/property-titlecase (Depends-on, configure.ac):
930 * modules/unictype/property-unassigned-code-value (Depends-on,
931 configure.ac): Likewise.
932 * modules/unictype/property-unified-ideograph (Depends-on,
933 configure.ac): Likewise.
934 * modules/unictype/property-uppercase (Depends-on, configure.ac):
936 * modules/unictype/property-variation-selector (Depends-on,
937 configure.ac): Likewise.
938 * modules/unictype/property-white-space (Depends-on, configure.ac):
940 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
942 * modules/unictype/property-xid-start (Depends-on, configure.ac):
944 * modules/unictype/property-zero-width (Depends-on, configure.ac):
946 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
947 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
950 2009-12-31 Bruno Haible <bruno@clisp.org>
952 Remove unnecessary AC_C_INLINE invocation.
953 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
956 2009-12-31 Jim Meyering <meyering@redhat.com>
958 maint.mk: don't require explicit gpg_key_ID in cfg.mk
959 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
960 With this change, we can all remove the gpg_key_ID = ... definition
961 from our respective cfg.mk files.
963 maint.mk: create announcement template in ~/, not in /tmp
964 * top/maint.mk (emit_upload_commands): Adjust.
965 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
966 Remove temporary file, .ci-msg.
968 2009-12-31 Eric Blake <ebb9@byu.net>
970 link-warning: always build headers with link warnings
971 * modules/arpa_inet (Makefile.am): Always build replacement
973 * modules/ctype (Makefile.am): Likewise.
974 * modules/dirent (Makefile.am): Likewise.
975 * modules/inttypes (Makefile.am): Likewise.
976 * modules/langinfo (Makefile.am): Likewise.
977 * modules/locale (Makefile.am): Likewise.
978 * modules/spawn (Makefile.am): Likewise.
979 * modules/sys_file (Makefile.am): Likewise.
980 * modules/sys_ioctl (Makefile.am): Likewise.
981 * modules/sys_select (Makefile.am): Likewise.
982 * modules/sys_socket (Makefile.am): Likewise.
983 * modules/sys_times (Makefile.am): Likewise.
984 * modules/sys_utsname (Makefile.am): Likewise.
985 * modules/sys_wait (Makefile.am): Likewise.
986 * modules/wchar (Makefile.am): Likewise.
987 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
988 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
989 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
990 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
991 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
993 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
994 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
995 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
997 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
999 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
1000 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
1001 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
1002 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1003 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1004 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1005 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1006 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
1007 (gl_WCHAR_H_DEFAULTS): Likewise.
1009 2009-12-31 Eric Blake <ebb9@byu.net>
1011 signal, spawn: use link warnings
1012 * lib/signal.in.h (sigset_t): Make unconditional.
1013 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
1014 (sigpending, sigprocmask, sigaction): Add link warnings.
1015 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
1016 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
1017 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
1018 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
1019 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
1020 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
1021 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
1022 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
1023 (posix_spawn_file_actions_destroy)
1024 (posix_spawn_file_actions_addopen)
1025 (posix_spawn_file_actions_addclose)
1026 (posix_spawwn_file_actions_adddup2): Likewise.
1027 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
1028 * tests/test-signal.c (main): Enhance test.
1030 spawn: improve wrapper support
1031 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
1032 (gl_SPAWN_H_DEFAULTS): New defaults.
1033 * modules/spawn (Makefile.am): Substitute them.
1034 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
1035 Only declare if missing or broken.
1037 sys_times, sys_utsname: use include_next
1038 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
1040 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
1041 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
1042 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
1043 * modules/sys_times (Depends-on): Add include_next.
1044 (Makefile.am): Substitute additional values.
1045 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1046 * lib/sys_times.in.h (includes): Include native header, if
1048 * lib/sys_utsname.in.h (includes): Likewise.
1049 * tests/test-sys_times.c (main): Enhance test.
1051 fdutimensat: revert prior patch
1052 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
1054 Reported by Bruno Haible.
1056 2009-12-30 Eric Blake <ebb9@byu.net>
1058 sys_wait: drop link-warning dependency
1059 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
1060 link-warning efforts.
1061 * lib/sys_wait.in.h: Likewise.
1063 fdutimensat: remove bogus dependency
1064 * modules/fdutimensat (Depends-on): Drop inline.
1067 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
1069 2009-12-30 Bruno Haible <bruno@clisp.org>
1071 Fix compilation error with Solaris cc.
1072 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
1073 * lib/unicase/u16-is-invariant.c: Likewise.
1074 * lib/unicase/u32-is-invariant.c: Likewise.
1075 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1077 2009-12-30 Bruno Haible <bruno@clisp.org>
1080 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
1082 Reported by Simon Josefsson <simon@josefsson.org>.
1084 2009-12-30 Bruno Haible <bruno@clisp.org>
1086 Fix compilation error on most platforms.
1087 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
1088 Reported by Simon Josefsson <simon@josefsson.org>
1089 and Nelson H. F. Beebe <beebe@math.utah.edu>.
1091 2009-12-30 Eric Blake <ebb9@byu.net>
1093 futimens, utimensat: work around ntfs-3g bug
1094 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
1095 a ctime bug is present, and expand workaround to cover ntfs-3g.
1096 * lib/utimens.c (fdutimens, lutimens): Likewise.
1097 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
1098 (validate_timespec): Adjust return value.
1099 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
1100 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1101 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
1103 2009-12-29 Eric Blake <ebb9@byu.net>
1105 link-warning: make usage consistent
1106 * modules/ctype (Depends-on): Add link-warning.
1107 (Makefile.am): Update rules accordingly.
1108 * modules/langinfo (Depends-on, Makefile.am): Likewise.
1109 * modules/locale (Depends-on, Makefile.am): Likewise.
1110 * modules/sys_file (Makefile.am): Likewise.
1111 * modules/getopt-posix (Makefile.am): Delete unused link warning
1113 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
1114 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
1115 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
1116 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
1118 stdio: remove unused variables
1119 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
1120 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
1121 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1123 tests: test more substitute headers
1124 * modules/ctype-tests: New file.
1125 * modules/dirent-tests: Likewise.
1126 * modules/spawn-tests: Likewise.
1127 * modules/sys_file-tests: Likewise.
1128 * modules/sys_ioctl-tests: Likewise.
1129 * modules/sys_wait-tests: Likewise.
1130 * tests/test-ctype.c: Likewise.
1131 * tests/test-dirent.c: Likewise.
1132 * tests/test-spawn.c: Likewise.
1133 * tests/test-sys_file.c: Likewise.
1134 * tests/test-sys_ioctl.c: Likewise.
1135 * tests/test-sys_wait.c: Likewise.
1136 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
1137 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
1138 whether or not flock is in use.
1140 tests: remove License section from module
1141 * modules/arpa_inet-tests: Remove unneeded section.
1142 * modules/byteswap-tests: Likewise.
1143 * modules/ceilf-tests: Likewise.
1144 * modules/ceill-tests: Likewise.
1145 * modules/crypto/des-tests: Likewise.
1146 * modules/crypto/gc-arcfour-tests: Likewise.
1147 * modules/crypto/gc-arctwo-tests: Likewise.
1148 * modules/crypto/gc-des-tests: Likewise.
1149 * modules/crypto/gc-hmac-md5-tests: Likewise.
1150 * modules/crypto/gc-hmac-sha1-tests: Likewise.
1151 * modules/crypto/gc-md2-tests: Likewise.
1152 * modules/crypto/gc-md4-tests: Likewise.
1153 * modules/crypto/gc-md5-tests: Likewise.
1154 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
1155 * modules/crypto/gc-rijndael-tests: Likewise.
1156 * modules/crypto/gc-sha1-tests: Likewise.
1157 * modules/crypto/gc-tests: Likewise.
1158 * modules/crypto/md2-tests: Likewise.
1159 * modules/crypto/md4-tests: Likewise.
1160 * modules/fcntl-h-tests: Likewise.
1161 * modules/floorf-tests: Likewise.
1162 * modules/floorl-tests: Likewise.
1163 * modules/frexp-nolibm-tests: Likewise.
1164 * modules/frexp-tests: Likewise.
1165 * modules/frexpl-nolibm-tests: Likewise.
1166 * modules/frexpl-tests: Likewise.
1167 * modules/getaddrinfo-tests: Likewise.
1168 * modules/inttypes-tests: Likewise.
1169 * modules/isfinite-tests: Likewise.
1170 * modules/isinf-tests: Likewise.
1171 * modules/ldexpl-tests: Likewise.
1172 * modules/locale-tests: Likewise.
1173 * modules/math-tests: Likewise.
1174 * modules/netdb-tests: Likewise.
1175 * modules/netinet_in-tests: Likewise.
1176 * modules/printf-frexp-tests: Likewise.
1177 * modules/printf-frexpl-tests: Likewise.
1178 * modules/priv-set-tests: Likewise.
1179 * modules/random_r-tests: Likewise.
1180 * modules/round-tests: Likewise.
1181 * modules/roundf-tests: Likewise.
1182 * modules/roundl-tests: Likewise.
1183 * modules/search-tests: Likewise.
1184 * modules/select-tests: Likewise.
1185 * modules/signal-tests: Likewise.
1186 * modules/stdbool-tests: Likewise.
1187 * modules/stddef-tests: Likewise.
1188 * modules/stdint-tests: Likewise.
1189 * modules/stdio-tests: Likewise.
1190 * modules/stdlib-tests: Likewise.
1191 * modules/string-tests: Likewise.
1192 * modules/strings-tests: Likewise.
1193 * modules/sys_select-tests: Likewise.
1194 * modules/sys_socket-tests: Likewise.
1195 * modules/sys_stat-tests: Likewise.
1196 * modules/sys_time-tests: Likewise.
1197 * modules/sys_utsname-tests: Likewise.
1198 * modules/sysexits-tests: Likewise.
1199 * modules/time-tests: Likewise.
1200 * modules/trunc-tests: Likewise.
1201 * modules/truncf-tests: Likewise.
1202 * modules/truncl-tests: Likewise.
1203 * modules/tsearch-tests: Likewise.
1204 * modules/unistd-tests: Likewise.
1205 * modules/wchar-tests: Likewise.
1206 * modules/wctype-tests: Likewise.
1208 tests: fix license on several tests
1209 * tests/test-des.c: Update to GPLv3+.
1210 * tests/test-flock.c: Likewise.
1211 * tests/test-fsync.c: Likewise.
1212 * tests/test-futimens.h: Likewise.
1213 * tests/test-gc-arcfour.c: Likewise.
1214 * tests/test-gc-arctwo.c: Likewise.
1215 * tests/test-gc-des.c: Likewise.
1216 * tests/test-gc-hmac-md5.c: Likewise.
1217 * tests/test-gc-hmac-sha1.c: Likewise.
1218 * tests/test-gc-md2.c: Likewise.
1219 * tests/test-gc-md4.c: Likewise.
1220 * tests/test-gc-md5.c: Likewise.
1221 * tests/test-gc-pbkdf2-sha1.c: Likewise.
1222 * tests/test-gc-rijndael.c: Likewise.
1223 * tests/test-gc-sha1.c: Likewise.
1224 * tests/test-gc.c: Likewise.
1225 * tests/test-getcwd.c: Likewise.
1226 * tests/test-link.c: Likewise.
1227 * tests/test-link.h: Likewise.
1228 * tests/test-lutimens.h: Likewise.
1229 * tests/test-md2.c: Likewise.
1230 * tests/test-md4.c: Likewise.
1231 * tests/test-mkdir.h: Likewise.
1232 * tests/test-rename.c: Likewise.
1233 * tests/test-rename.h: Likewise.
1234 * tests/test-safe-alloc.c: Likewise.
1235 * tests/test-utimens-common.h: Likewise.
1236 * tests/test-utimens.h: Likewise.
1238 maint: sync license texts
1239 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
1240 * doc/gpl-3.0.texi: Revert copyright year update.
1241 * doc/lgpl-3.0.texi: Likewise.
1243 2009-12-29 Jim Meyering <meyering@redhat.com>
1245 update nearly all FSF copyright year lists to include 2009
1246 The files named by the following are exempted:
1247 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
1248 test -f "$dst" && { echo "$dst"; continue; }
1249 test -d "$dst" || continue
1250 echo "$dst"/$(basename "$src")
1252 git ls-files tests/unictype >> exempt
1253 In the remaining files, convert to all-interval notation if
1254 - there is already at least one year interval like 2000-2003
1255 - the file is maintained by me
1256 - the file is in lib/uni*/, where that style already prevails
1257 Otherwise, use update-copyright's default.
1259 2009-12-29 Simon Josefsson <simon@josefsson.org>
1260 and Eric Blake <ebb9@byu.net>
1262 tests: don't require debug system() to pass
1263 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
1264 * tests/test-rmdir.h (test_rmdir_func): Likewise.
1265 * tests/test-unlink.h (test_unlink_func): Likewise.
1266 * tests/test-fstatat.c (main): ...into callers.
1267 * tests/test-lstat.c (main): Likewise.
1268 * tests/test-rmdir.c (main): Likewise.
1269 * tests/test-unlink.c (main): Likewise.
1270 * tests/test-unlinkat.c (main): Likewise.
1271 * tests/test-areadlink-with-size.c (main): Don't require a
1272 debug-only system call to pass, aiding cross-testing to mingw.
1273 * tests/test-areadlink.c (main): Likewise.
1274 * tests/test-areadlinkat-with-size.c (main): Likewise.
1275 * tests/test-areadlinkat.c (main): Likewise.
1276 * tests/test-canonicalize-lgpl.c (main): Likewise.
1277 * tests/test-canonicalize.c (main): Likewise.
1278 * tests/test-chown.c (main): Likewise.
1279 * tests/test-fchownat.c (main): Likewise.
1280 * tests/test-lchown.c (main): Likewise.
1281 * tests/test-fdutimensat.c (main): Likewise.
1282 * tests/test-futimens.c (main): Likewise.
1283 * tests/test-link.c (main): Likewise.
1284 * tests/test-linkat.c (main): Likewise.
1285 * tests/test-mkdir.c (main): Likewise.
1286 * tests/test-mkdirat.c (main): Likewise.
1287 * tests/test-mkfifo.c (main): Likewise.
1288 * tests/test-mkfifoat.c (main): Likewise.
1289 * tests/test-mknod.c (main): Likewise.
1290 * tests/test-readlink.c (main): Likewise.
1291 * tests/test-remove.c (main): Likewise.
1292 * tests/test-rename.c (main): Likewise.
1293 * tests/test-renameat.c (main): Likewise.
1294 * tests/test-symlink.c (main): Likewise.
1295 * tests/test-symlinkat.c (main): Likewise.
1296 * tests/test-utimens.c (main): Likewise.
1297 * tests/test-utimensat.c (main): Likewise.
1299 2009-12-29 Simon Josefsson <simon@josefsson.org>
1301 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
1302 on $(UNUSED_PARAMETER_H) to avoid build failure.
1304 2009-12-28 Jim Meyering <meyering@redhat.com>
1306 update-copyright: you may specify a max. line length other than 72
1307 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
1309 maint: use consistent FSF copyright line syntax
1310 * lib/posixtm.c: Add missing comma in FSF copyright line.
1311 * lib/posixtm.h: Likewise.
1312 * lib/getugroups.c: Add missing ", Inc.".
1314 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
1315 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
1316 FSF copyright line. Remove trailing blanks.
1318 2009-12-28 Eric Blake <ebb9@byu.net>
1320 test-dup2: reduce dependencies
1321 * modules/cloexec (Configure.ac): Set witness.
1322 * modules/dup2-tests (Depends-on): Drop cloexec.
1323 * tests/test-dup2.c (main): Skip portion of test if cloexec module
1325 Suggested by Bruno Haible.
1327 2009-12-26 Bruno Haible <bruno@clisp.org>
1329 Remove an unneeded dependency.
1330 * modules/fseterr (Depends-on): Remove dup2.
1332 2009-12-26 Eric Blake <ebb9@byu.net>
1334 tests: use macros.h in more places
1335 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
1336 (ASSERT_STREAM): Provide default of stderr.
1337 * tests/test-dirent-safer.c: Include macros.h, using alternate
1338 stream for assertions.
1339 * tests/test-dup-safer.c: Likewise.
1340 * tests/test-freopen-safer.c: Likewise.
1341 * tests/test-getopt.c: Likewise.
1342 * tests/test-openat-safer.c: Likewise.
1343 * tests/test-pipe.c: Likewise.
1344 * tests/test-popen-safer.c: Likewise.
1345 * modules/dirent-safer-tests (Files): Include macros.h.
1346 * modules/unistd-safer-tests (Files): Likewise.
1347 * modules/freopen-safer-tests (Files): Likewise.
1348 * modules/getopt-posix-tests (Files): Likewise.
1349 * modules/openat-safer-tests (Files): Likewise.
1350 * modules/pipe-tests (Files): Likewise.
1352 2009-12-26 Bruno Haible <bruno@clisp.org>
1354 javacomp: Portability fix.
1355 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
1356 that it also works on Solaris.
1358 2009-12-26 Bruno Haible <bruno@clisp.org>
1360 localename: Fix storage allocation of gl_locale_name_thread's result.
1361 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
1362 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
1363 all platforms that have 'uselocale'.
1364 (gl_locale_name_thread_unsafe): New function, extracted from
1365 gl_locale_name_thread.
1366 (gl_locale_name_thread): Call struniq on all platforms that have
1368 * tests/test-localename.c (test_locale_name_thread): Check that the
1369 resulting strings are permanently allocated.
1370 * modules/localename-tests (Depends-on): Add strdup.
1372 2009-12-26 Bruno Haible <bruno@clisp.org>
1374 * tests/test-localename.c (categories): Fill in the strings.
1376 2009-12-26 Jim Meyering <meyering@redhat.com>
1378 isdir: complete the removal of m4/isdir.m4
1379 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
1381 isdir: clean up, since at least grep still uses it
1382 * lib/isdir.c: Include "isdir.h".
1383 (S_ISDIR): Remove now-unneeded definition.
1384 * modules/isdir (Files): Add lib/isdir.h.
1385 * lib/isdir.h: New file, with declaration.
1386 * m4/isdir.m4: Remove file -- unneeded.
1388 2009-12-25 Bruno Haible <bruno@clisp.org>
1390 selinux-h: Make generated .h files standalone.
1391 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
1392 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
1393 * lib/se-selinux.in.h: Likewise.
1394 * modules/selinux-h (Depends-on): Add unused-parameter.
1395 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
1396 selinux/selinux.h and selinux/context.h.
1397 Suggested by Eric Blake.
1399 2009-12-25 Bruno Haible <bruno@clisp.org>
1401 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
1402 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
1403 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
1404 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
1405 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
1407 2009-12-24 Bruno Haible <bruno@clisp.org>
1409 openat: Fix warning.
1410 * lib/openat-proc.c: Include <unistd.h>.
1412 2009-12-24 Bruno Haible <bruno@clisp.org>
1414 New module 'unused-parameter'.
1415 * build-aux/unused-parameter.h: New file, extracted from earlier
1417 * modules/unused-parameter: New file.
1418 * lib/unistr.h: Include unused-parameter.h.
1419 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
1421 * modules/unistr/base (Depends-on): Add unused-parameter.
1423 2009-12-24 Bruno Haible <bruno@clisp.org>
1425 Add missing dependencies to 'extensions' module.
1426 * m4/extensions.m4: Add comment.
1427 * modules/accept4 (Depends-on): Add extensions.
1428 * modules/dup3 (Depends-on): Likewise.
1429 * modules/fcntl (Depends-on): Likewise.
1430 * modules/futimens (Depends-on): Likewise.
1431 * modules/mknod (Depends-on): Likewise.
1432 * modules/pipe2 (Depends-on): Likewise.
1433 * modules/stat-time (Depends-on): Likewise.
1434 * modules/strcasestr-simple (Depends-on): Likewise.
1435 * modules/strsignal (Depends-on): Likewise.
1436 * modules/utimensat (Depends-on): Likewise.
1437 * modules/localcharset (Depends-on): Likewise. Needed because of
1439 * modules/wcrtomb (Depends-on): Likewise. Needed because of
1441 * modules/wcsnrtombs (Depends-on): Likewise.
1442 * modules/wcsrtombs (Depends-on): Likewise.
1444 2009-12-24 Bruno Haible <bruno@clisp.org>
1446 binary-io: Avoid gcc warning due to SET_BINARY.
1447 * lib/binary-io.h (SET_BINARY): Cast the result to void.
1448 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
1450 2009-12-24 Bruno Haible <bruno@clisp.org>
1452 Avoid future namespace pollution on glibc systems.
1453 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
1454 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
1455 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
1458 2009-12-24 Bruno Haible <bruno@clisp.org>
1460 Refactor common macros used in tests.
1461 * tests/macros.h: New file.
1462 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
1463 and/or <stdlib.h>, if appropriate.
1464 (ASSERT, SIZEOF): Remove macros.
1465 * tests/test-areadlink-with-size.c: Likewise.
1466 * tests/test-areadlinkat.c: Likewise.
1467 * tests/test-areadlinkat-with-size.c: Likewise.
1468 * tests/test-argmatch.c: Likewise.
1469 * tests/test-argv-iter.c: Likewise.
1470 * tests/test-array-mergesort.c: Likewise.
1471 * tests/test-array_list.c: Likewise.
1472 * tests/test-array_oset.c: Likewise.
1473 * tests/test-avltree_list.c: Likewise.
1474 * tests/test-avltree_oset.c: Likewise.
1475 * tests/test-avltreehash_list.c: Likewise.
1476 * tests/test-base64.c: Likewise.
1477 * tests/test-binary-io.c: Likewise.
1478 * tests/test-bitrotate.c: Likewise.
1479 * tests/test-btowc.c: Likewise.
1480 * tests/test-byteswap.c: Likewise.
1481 * tests/test-c-ctype.c: Likewise.
1482 * tests/test-c-stack.c: Likewise.
1483 * tests/test-c-strcasecmp.c: Likewise.
1484 * tests/test-c-strcasestr.c: Likewise.
1485 * tests/test-c-strncasecmp.c: Likewise.
1486 * tests/test-c-strstr.c: Likewise.
1487 * tests/test-canonicalize-lgpl.c: Likewise.
1488 * tests/test-canonicalize.c: Likewise.
1489 * tests/test-carray_list.c: Likewise.
1490 * tests/test-ceilf1.c: Likewise.
1491 * tests/test-ceilf2.c: Likewise.
1492 * tests/test-ceill.c: Likewise.
1493 * tests/test-chown.c: Likewise.
1494 * tests/test-cloexec.c: Likewise.
1495 * tests/test-copy-acl.c: Likewise.
1496 * tests/test-copy-file.c: Likewise.
1497 * tests/test-count-one-bits.c: Likewise.
1498 * tests/test-dprintf-posix.c: Likewise.
1499 * tests/test-dup2.c: Likewise.
1500 * tests/test-dup3.c: Likewise.
1501 * tests/test-duplocale.c: Likewise.
1502 * tests/test-fbufmode.c: Likewise.
1503 * tests/test-fchdir.c: Likewise.
1504 * tests/test-fchownat.c: Likewise.
1505 * tests/test-fcntl-safer.c: Likewise.
1506 * tests/test-fcntl.c: Likewise.
1507 * tests/test-fdopendir.c: Likewise.
1508 * tests/test-fdutimensat.c: Likewise.
1509 * tests/test-fflush2.c: Likewise.
1510 * tests/test-file-has-acl.c: Likewise.
1511 * tests/test-filevercmp.c: Likewise.
1512 * tests/test-flock.c: Likewise.
1513 * tests/test-floorf1.c: Likewise.
1514 * tests/test-floorf2.c: Likewise.
1515 * tests/test-floorl.c: Likewise.
1516 * tests/test-fnmatch.c: Likewise.
1517 * tests/test-fopen.h: Likewise.
1518 * tests/test-fpending.c: Likewise.
1519 * tests/test-fprintf-posix.c: Likewise.
1520 * tests/test-fpurge.c: Likewise.
1521 * tests/test-freadable.c: Likewise.
1522 * tests/test-freadahead.c: Likewise.
1523 * tests/test-freading.c: Likewise.
1524 * tests/test-freadptr.c: Likewise.
1525 * tests/test-freadptr2.c: Likewise.
1526 * tests/test-freadseek.c: Likewise.
1527 * tests/test-freopen.c: Likewise.
1528 * tests/test-frexp.c: Likewise.
1529 * tests/test-frexpl.c: Likewise.
1530 * tests/test-fseek.c: Likewise.
1531 * tests/test-fseeko.c: Likewise.
1532 * tests/test-fstatat.c: Likewise.
1533 * tests/test-fstrcmp.c: Likewise.
1534 * tests/test-fsync.c: Likewise.
1535 * tests/test-ftell.c: Likewise.
1536 * tests/test-ftello.c: Likewise.
1537 * tests/test-func.c: Likewise.
1538 * tests/test-futimens.c: Likewise.
1539 * tests/test-fwritable.c: Likewise.
1540 * tests/test-fwriting.c: Likewise.
1541 * tests/test-getcwd.c: Likewise.
1542 * tests/test-getdate.c: Likewise.
1543 * tests/test-getdelim.c: Likewise.
1544 * tests/test-getdtablesize.c: Likewise.
1545 * tests/test-getgroups.c: Likewise.
1546 * tests/test-getline.c: Likewise.
1547 * tests/test-getndelim2.c: Likewise.
1548 * tests/test-glob.c: Likewise.
1549 * tests/test-hash.c: Likewise.
1550 * tests/test-i-ring.c: Likewise.
1551 * tests/test-iconv-utf.c: Likewise.
1552 * tests/test-iconv.c: Likewise.
1553 * tests/test-idpriv-drop.c: Likewise.
1554 * tests/test-idpriv-droptemp.c: Likewise.
1555 * tests/test-inet_ntop.c: Likewise.
1556 * tests/test-inet_pton.c: Likewise.
1557 * tests/test-isblank.c: Likewise.
1558 * tests/test-isfinite.c: Likewise.
1559 * tests/test-isinf.c: Likewise.
1560 * tests/test-isnan.c: Likewise.
1561 * tests/test-isnand.h: Likewise.
1562 * tests/test-isnanf.h: Likewise.
1563 * tests/test-isnanl.h: Likewise.
1564 * tests/test-lchown.c: Likewise.
1565 * tests/test-ldexpl.c: Likewise.
1566 * tests/test-link.c: Likewise.
1567 * tests/test-linkat.c: Likewise.
1568 * tests/test-linked_list.c: Likewise.
1569 * tests/test-linkedhash_list.c: Likewise.
1570 * tests/test-localename.c: Likewise.
1571 * tests/test-lseek.c: Likewise.
1572 * tests/test-lstat.c: Likewise.
1573 * tests/test-mbmemcasecmp.c: Likewise.
1574 * tests/test-mbmemcasecoll.c: Likewise.
1575 * tests/test-mbrtowc.c: Likewise.
1576 * tests/test-mbscasecmp.c: Likewise.
1577 * tests/test-mbscasestr1.c: Likewise.
1578 * tests/test-mbscasestr2.c: Likewise.
1579 * tests/test-mbscasestr3.c: Likewise.
1580 * tests/test-mbscasestr4.c: Likewise.
1581 * tests/test-mbschr.c: Likewise.
1582 * tests/test-mbscspn.c: Likewise.
1583 * tests/test-mbsinit.c: Likewise.
1584 * tests/test-mbsncasecmp.c: Likewise.
1585 * tests/test-mbsnrtowcs.c: Likewise.
1586 * tests/test-mbspbrk.c: Likewise.
1587 * tests/test-mbspcasecmp.c: Likewise.
1588 * tests/test-mbsrchr.c: Likewise.
1589 * tests/test-mbsrtowcs.c: Likewise.
1590 * tests/test-mbsspn.c: Likewise.
1591 * tests/test-mbsstr1.c: Likewise.
1592 * tests/test-mbsstr2.c: Likewise.
1593 * tests/test-mbsstr3.c: Likewise.
1594 * tests/test-memchr.c: Likewise.
1595 * tests/test-memchr2.c: Likewise.
1596 * tests/test-memcmp.c: Likewise.
1597 * tests/test-memmem.c: Likewise.
1598 * tests/test-memrchr.c: Likewise.
1599 * tests/test-mkdir.c: Likewise.
1600 * tests/test-mkdirat.c: Likewise.
1601 * tests/test-mkfifo.c: Likewise.
1602 * tests/test-mkfifoat.c: Likewise.
1603 * tests/test-mknod.c: Likewise.
1604 * tests/test-nanosleep.c: Likewise.
1605 * tests/test-nl_langinfo.c: Likewise.
1606 * tests/test-obstack-printf.c: Likewise.
1607 * tests/test-open.c: Likewise.
1608 * tests/test-openat.c: Likewise.
1609 * tests/test-pipe-filter-gi1.c: Likewise.
1610 * tests/test-pipe-filter-gi2-main.c: Likewise.
1611 * tests/test-pipe-filter-ii1.c: Likewise.
1612 * tests/test-pipe-filter-ii2-main.c: Likewise.
1613 * tests/test-pipe2.c: Likewise.
1614 * tests/test-popen.h: Likewise.
1615 * tests/test-posixtm.c: Likewise.
1616 * tests/test-pread.c: Likewise.
1617 * tests/test-printf-frexp.c: Likewise.
1618 * tests/test-printf-frexpl.c: Likewise.
1619 * tests/test-printf-posix.c: Likewise.
1620 * tests/test-priv-set.c: Likewise.
1621 * tests/test-quotearg.c: Likewise.
1622 * tests/test-random_r.c: Likewise.
1623 * tests/test-rawmemchr.c: Likewise.
1624 * tests/test-rbtree_list.c: Likewise.
1625 * tests/test-rbtree_oset.c: Likewise.
1626 * tests/test-rbtreehash_list.c: Likewise.
1627 * tests/test-readlink.c: Likewise.
1628 * tests/test-remove.c: Likewise.
1629 * tests/test-rename.c: Likewise.
1630 * tests/test-renameat.c: Likewise.
1631 * tests/test-rmdir.c: Likewise.
1632 * tests/test-round1.c: Likewise.
1633 * tests/test-roundf1.c: Likewise.
1634 * tests/test-roundl.c: Likewise.
1635 * tests/test-safe-alloc.c: Likewise.
1636 * tests/test-sameacls.c: Likewise.
1637 * tests/test-set-mode-acl.c: Likewise.
1638 * tests/test-setenv.c: Likewise.
1639 * tests/test-sigaction.c: Likewise.
1640 * tests/test-signbit.c: Likewise.
1641 * tests/test-sleep.c: Likewise.
1642 * tests/test-snprintf-posix.c: Likewise.
1643 * tests/test-snprintf.c: Likewise.
1644 * tests/test-sprintf-posix.c: Likewise.
1645 * tests/test-stat-time.c: Likewise.
1646 * tests/test-stat.c: Likewise.
1647 * tests/test-strcasestr.c: Likewise.
1648 * tests/test-strchrnul.c: Likewise.
1649 * tests/test-strerror.c: Likewise.
1650 * tests/test-striconv.c: Likewise.
1651 * tests/test-striconveh.c: Likewise.
1652 * tests/test-striconveha.c: Likewise.
1653 * tests/test-strsignal.c: Likewise.
1654 * tests/test-strstr.c: Likewise.
1655 * tests/test-strtod.c: Likewise.
1656 * tests/test-strverscmp.c: Likewise.
1657 * tests/test-symlink.c: Likewise.
1658 * tests/test-symlinkat.c: Likewise.
1659 * tests/test-trunc1.c: Likewise.
1660 * tests/test-trunc2.c: Likewise.
1661 * tests/test-truncf1.c: Likewise.
1662 * tests/test-truncf2.c: Likewise.
1663 * tests/test-truncl.c: Likewise.
1664 * tests/test-uname.c: Likewise.
1665 * tests/test-unlink.c: Likewise.
1666 * tests/test-unlinkat.c: Likewise.
1667 * tests/test-unsetenv.c: Likewise.
1668 * tests/test-usleep.c: Likewise.
1669 * tests/test-utimens.c: Likewise.
1670 * tests/test-utimensat.c: Likewise.
1671 * tests/test-vasnprintf-posix.c: Likewise.
1672 * tests/test-vasnprintf-posix2.c: Likewise.
1673 * tests/test-vasnprintf.c: Likewise.
1674 * tests/test-vasprintf-posix.c: Likewise.
1675 * tests/test-vasprintf.c: Likewise.
1676 * tests/test-vdprintf-posix.c: Likewise.
1677 * tests/test-vfprintf-posix.c: Likewise.
1678 * tests/test-vprintf-posix.c: Likewise.
1679 * tests/test-vsnprintf-posix.c: Likewise.
1680 * tests/test-vsnprintf.c: Likewise.
1681 * tests/test-vsprintf-posix.c: Likewise.
1682 * tests/test-wcrtomb.c: Likewise.
1683 * tests/test-wcsnrtombs.c: Likewise.
1684 * tests/test-wcsrtombs.c: Likewise.
1685 * tests/test-wctype.c: Likewise.
1686 * tests/test-wcwidth.c: Likewise.
1687 * tests/test-xfprintf-posix.c: Likewise.
1688 * tests/test-xmemdup0.c: Likewise.
1689 * tests/test-xprintf-posix.c: Likewise.
1690 * tests/test-xvasprintf.c: Likewise.
1691 * tests/unicase/test-locale-language.c: Likewise.
1692 * tests/unicase/test-mapping-part1.h: Likewise.
1693 * tests/unicase/test-predicate-part1.h: Likewise.
1694 * tests/unicase/test-u8-casecmp.c: Likewise.
1695 * tests/unicase/test-u8-casecoll.c: Likewise.
1696 * tests/unicase/test-u8-casefold.c: Likewise.
1697 * tests/unicase/test-u8-is-cased.c: Likewise.
1698 * tests/unicase/test-u8-is-casefolded.c: Likewise.
1699 * tests/unicase/test-u8-is-lowercase.c: Likewise.
1700 * tests/unicase/test-u8-is-titlecase.c: Likewise.
1701 * tests/unicase/test-u8-is-uppercase.c: Likewise.
1702 * tests/unicase/test-u8-tolower.c: Likewise.
1703 * tests/unicase/test-u8-totitle.c: Likewise.
1704 * tests/unicase/test-u8-toupper.c: Likewise.
1705 * tests/unicase/test-u16-casecmp.c: Likewise.
1706 * tests/unicase/test-u16-casecoll.c: Likewise.
1707 * tests/unicase/test-u16-casefold.c: Likewise.
1708 * tests/unicase/test-u16-is-cased.c: Likewise.
1709 * tests/unicase/test-u16-is-casefolded.c: Likewise.
1710 * tests/unicase/test-u16-is-lowercase.c: Likewise.
1711 * tests/unicase/test-u16-is-titlecase.c: Likewise.
1712 * tests/unicase/test-u16-is-uppercase.c: Likewise.
1713 * tests/unicase/test-u16-tolower.c: Likewise.
1714 * tests/unicase/test-u16-totitle.c: Likewise.
1715 * tests/unicase/test-u16-toupper.c: Likewise.
1716 * tests/unicase/test-u32-casecmp.c: Likewise.
1717 * tests/unicase/test-u32-casecoll.c: Likewise.
1718 * tests/unicase/test-u32-casefold.c: Likewise.
1719 * tests/unicase/test-u32-is-cased.c: Likewise.
1720 * tests/unicase/test-u32-is-casefolded.c: Likewise.
1721 * tests/unicase/test-u32-is-lowercase.c: Likewise.
1722 * tests/unicase/test-u32-is-titlecase.c: Likewise.
1723 * tests/unicase/test-u32-is-uppercase.c: Likewise.
1724 * tests/unicase/test-u32-tolower.c: Likewise.
1725 * tests/unicase/test-u32-totitle.c: Likewise.
1726 * tests/unicase/test-u32-toupper.c: Likewise.
1727 * tests/unicase/test-ulc-casecmp.c: Likewise.
1728 * tests/unicase/test-ulc-casecoll.c: Likewise.
1729 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1730 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
1731 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1732 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1733 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
1734 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
1735 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1736 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1737 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1738 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
1739 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1740 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1741 * tests/unictype/test-bidi_byname.c: Likewise.
1742 * tests/unictype/test-bidi_name.c: Likewise.
1743 * tests/unictype/test-bidi_of.c: Likewise.
1744 * tests/unictype/test-bidi_test.c: Likewise.
1745 * tests/unictype/test-block_list.c: Likewise.
1746 * tests/unictype/test-block_of.c: Likewise.
1747 * tests/unictype/test-block_test.c: Likewise.
1748 * tests/unictype/test-categ_and.c: Likewise.
1749 * tests/unictype/test-categ_and_not.c: Likewise.
1750 * tests/unictype/test-categ_byname.c: Likewise.
1751 * tests/unictype/test-categ_name.c: Likewise.
1752 * tests/unictype/test-categ_none.c: Likewise.
1753 * tests/unictype/test-categ_of.c: Likewise.
1754 * tests/unictype/test-categ_or.c: Likewise.
1755 * tests/unictype/test-categ_test_withtable.c: Likewise.
1756 * tests/unictype/test-combining.c: Likewise.
1757 * tests/unictype/test-decdigit.c: Likewise.
1758 * tests/unictype/test-digit.c: Likewise.
1759 * tests/unictype/test-mirror.c: Likewise.
1760 * tests/unictype/test-numeric.c: Likewise.
1761 * tests/unictype/test-pr_byname.c: Likewise.
1762 * tests/unictype/test-pr_test.c: Likewise.
1763 * tests/unictype/test-predicate-part1.h: Likewise.
1764 * tests/unictype/test-scripts.c: Likewise.
1765 * tests/unictype/test-sy_c_ident.c: Likewise.
1766 * tests/unictype/test-sy_java_ident.c: Likewise.
1767 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
1768 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
1769 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
1770 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
1771 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
1772 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
1773 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
1774 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
1775 * tests/uninorm/test-canonical-decomposition.c: Likewise.
1776 * tests/uninorm/test-compat-decomposition.c: Likewise.
1777 * tests/uninorm/test-composition.c: Likewise.
1778 * tests/uninorm/test-decomposing-form.c: Likewise.
1779 * tests/uninorm/test-decomposition.c: Likewise.
1780 * tests/uninorm/test-u8-nfc.c: Likewise.
1781 * tests/uninorm/test-u8-nfd.c: Likewise.
1782 * tests/uninorm/test-u8-nfkc.c: Likewise.
1783 * tests/uninorm/test-u8-nfkd.c: Likewise.
1784 * tests/uninorm/test-u8-normcmp.c: Likewise.
1785 * tests/uninorm/test-u8-normcoll.c: Likewise.
1786 * tests/uninorm/test-u16-nfc.c: Likewise.
1787 * tests/uninorm/test-u16-nfd.c: Likewise.
1788 * tests/uninorm/test-u16-nfkc.c: Likewise.
1789 * tests/uninorm/test-u16-nfkd.c: Likewise.
1790 * tests/uninorm/test-u16-normcmp.c: Likewise.
1791 * tests/uninorm/test-u16-normcoll.c: Likewise.
1792 * tests/uninorm/test-u32-nfc.c: Likewise.
1793 * tests/uninorm/test-u32-nfd.c: Likewise.
1794 * tests/uninorm/test-u32-nfkc.c: Likewise.
1795 * tests/uninorm/test-u32-nfkd.c: Likewise.
1796 * tests/uninorm/test-u32-normalize-big.c: Likewise.
1797 * tests/uninorm/test-u32-normcmp.c: Likewise.
1798 * tests/uninorm/test-u32-normcoll.c: Likewise.
1799 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
1800 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
1801 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
1802 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
1803 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
1804 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
1805 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
1806 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
1807 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
1808 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
1809 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
1810 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
1811 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
1812 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
1813 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
1814 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
1815 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
1816 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
1817 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
1818 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
1819 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
1820 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
1821 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
1822 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
1823 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
1824 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
1825 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
1826 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
1827 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
1828 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
1829 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
1830 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
1831 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
1832 * tests/uniwidth/test-u8-strwidth.c: Likewise.
1833 * tests/uniwidth/test-u8-width.c: Likewise.
1834 * tests/uniwidth/test-u16-strwidth.c: Likewise.
1835 * tests/uniwidth/test-u16-width.c: Likewise.
1836 * tests/uniwidth/test-u32-strwidth.c: Likewise.
1837 * tests/uniwidth/test-u32-width.c: Likewise.
1838 * tests/uniwidth/test-uc_width.c: Likewise.
1839 * tests/uniwidth/test-uc_width2.c: Likewise.
1840 * modules/acl-tests (Files): Add tests/macros.h.
1841 * modules/areadlink-tests (Files): Likewise.
1842 * modules/areadlink-with-size-tests (Files): Likewise.
1843 * modules/areadlinkat-tests (Files): Likewise.
1844 * modules/areadlinkat-with-size-tests (Files): Likewise.
1845 * modules/argmatch-tests (Files): Likewise.
1846 * modules/argv-iter-tests (Files): Likewise.
1847 * modules/array-list-tests (Files): Likewise.
1848 * modules/array-mergesort-tests (Files): Likewise.
1849 * modules/array-oset-tests (Files): Likewise.
1850 * modules/avltree-list-tests (Files): Likewise.
1851 * modules/avltree-oset-tests (Files): Likewise.
1852 * modules/avltreehash-list-tests (Files): Likewise.
1853 * modules/base64-tests (Files): Likewise.
1854 * modules/binary-io-tests (Files): Likewise.
1855 * modules/bitrotate-tests (Files): Likewise.
1856 * modules/btowc-tests (Files): Likewise.
1857 * modules/byteswap-tests (Files): Likewise.
1858 * modules/c-ctype-tests (Files): Likewise.
1859 * modules/c-stack-tests (Files): Likewise.
1860 * modules/c-strcase-tests (Files): Likewise.
1861 * modules/c-strcasestr-tests (Files): Likewise.
1862 * modules/c-strstr-tests (Files): Likewise.
1863 * modules/canonicalize-lgpl-tests (Files): Likewise.
1864 * modules/canonicalize-tests (Files): Likewise.
1865 * modules/carray-list-tests (Files): Likewise.
1866 * modules/ceilf-tests (Files): Likewise.
1867 * modules/ceill-tests (Files): Likewise.
1868 * modules/chown-tests (Files): Likewise.
1869 * modules/cloexec-tests (Files): Likewise.
1870 * modules/copy-file-tests (Files): Likewise.
1871 * modules/count-one-bits-tests (Files): Likewise.
1872 * modules/dprintf-posix-tests (Files): Likewise.
1873 * modules/dup2-tests (Files): Likewise.
1874 * modules/dup3-tests (Files): Likewise.
1875 * modules/duplocale-tests (Files): Likewise.
1876 * modules/fbufmode-tests (Files): Likewise.
1877 * modules/fchdir-tests (Files): Likewise.
1878 * modules/fcntl-safer-tests (Files): Likewise.
1879 * modules/fcntl-tests (Files): Likewise.
1880 * modules/fdopendir-tests (Files): Likewise.
1881 * modules/fdutimensat-tests (Files): Likewise.
1882 * modules/fflush-tests (Files): Likewise.
1883 * modules/filevercmp-tests (Files): Likewise.
1884 * modules/flock-tests (Files): Likewise.
1885 * modules/floorf-tests (Files): Likewise.
1886 * modules/floorl-tests (Files): Likewise.
1887 * modules/fnmatch-tests (Files): Likewise.
1888 * modules/fopen-safer-tests (Files): Likewise.
1889 * modules/fopen-tests (Files): Likewise.
1890 * modules/fpending-tests (Files): Likewise.
1891 * modules/fprintf-posix-tests (Files): Likewise.
1892 * modules/fpurge-tests (Files): Likewise.
1893 * modules/freadable-tests (Files): Likewise.
1894 * modules/freadahead-tests (Files): Likewise.
1895 * modules/freading-tests (Files): Likewise.
1896 * modules/freadptr-tests (Files): Likewise.
1897 * modules/freadseek-tests (Files): Likewise.
1898 * modules/freopen-tests (Files): Likewise.
1899 * modules/frexp-nolibm-tests (Files): Likewise.
1900 * modules/frexp-tests (Files): Likewise.
1901 * modules/frexpl-nolibm-tests (Files): Likewise.
1902 * modules/frexpl-tests (Files): Likewise.
1903 * modules/fseek-tests (Files): Likewise.
1904 * modules/fseeko-tests (Files): Likewise.
1905 * modules/fstrcmp-tests (Files): Likewise.
1906 * modules/fsync-tests (Files): Likewise.
1907 * modules/ftell-tests (Files): Likewise.
1908 * modules/ftello-tests (Files): Likewise.
1909 * modules/func-tests (Files): Likewise.
1910 * modules/futimens-tests (Files): Likewise.
1911 * modules/fwritable-tests (Files): Likewise.
1912 * modules/fwriting-tests (Files): Likewise.
1913 * modules/getcwd-tests (Files): Likewise.
1914 * modules/getdate-tests (Files): Likewise.
1915 * modules/getdelim-tests (Files): Likewise.
1916 * modules/getdtablesize-tests (Files): Likewise.
1917 * modules/getgroups-tests (Files): Likewise.
1918 * modules/getline-tests (Files): Likewise.
1919 * modules/getndelim2-tests (Files): Likewise.
1920 * modules/glob-tests (Files): Likewise.
1921 * modules/hash-tests (Files): Likewise.
1922 * modules/i-ring-tests (Files): Likewise.
1923 * modules/iconv-tests (Files): Likewise.
1924 * modules/iconv_open-utf-tests (Files): Likewise.
1925 * modules/idpriv-drop-tests (Files): Likewise.
1926 * modules/idpriv-droptemp-tests (Files): Likewise.
1927 * modules/inet_ntop-tests (Files): Likewise.
1928 * modules/inet_pton-tests (Files): Likewise.
1929 * modules/isblank-tests (Files): Likewise.
1930 * modules/isfinite-tests (Files): Likewise.
1931 * modules/isinf-tests (Files): Likewise.
1932 * modules/isnan-tests (Files): Likewise.
1933 * modules/isnand-nolibm-tests (Files): Likewise.
1934 * modules/isnand-tests (Files): Likewise.
1935 * modules/isnanf-nolibm-tests (Files): Likewise.
1936 * modules/isnanf-tests (Files): Likewise.
1937 * modules/isnanl-nolibm-tests (Files): Likewise.
1938 * modules/isnanl-tests (Files): Likewise.
1939 * modules/lchown-tests (Files): Likewise.
1940 * modules/ldexpl-tests (Files): Likewise.
1941 * modules/link-tests (Files): Likewise.
1942 * modules/linkat-tests (Files): Likewise.
1943 * modules/linked-list-tests (Files): Likewise.
1944 * modules/linkedhash-list-tests (Files): Likewise.
1945 * modules/localename-tests (Files): Likewise.
1946 * modules/lseek-tests (Files): Likewise.
1947 * modules/lstat-tests (Files): Likewise.
1948 * modules/mbmemcasecmp-tests (Files): Likewise.
1949 * modules/mbmemcasecoll-tests (Files): Likewise.
1950 * modules/mbrtowc-tests (Files): Likewise.
1951 * modules/mbscasecmp-tests (Files): Likewise.
1952 * modules/mbscasestr-tests (Files): Likewise.
1953 * modules/mbschr-tests (Files): Likewise.
1954 * modules/mbscspn-tests (Files): Likewise.
1955 * modules/mbsinit-tests (Files): Likewise.
1956 * modules/mbsncasecmp-tests (Files): Likewise.
1957 * modules/mbsnrtowcs-tests (Files): Likewise.
1958 * modules/mbspbrk-tests (Files): Likewise.
1959 * modules/mbspcasecmp-tests (Files): Likewise.
1960 * modules/mbsrchr-tests (Files): Likewise.
1961 * modules/mbsrtowcs-tests (Files): Likewise.
1962 * modules/mbsspn-tests (Files): Likewise.
1963 * modules/mbsstr-tests (Files): Likewise.
1964 * modules/memchr-tests (Files): Likewise.
1965 * modules/memchr2-tests (Files): Likewise.
1966 * modules/memcmp-tests (Files): Likewise.
1967 * modules/memmem-tests (Files): Likewise.
1968 * modules/memrchr-tests (Files): Likewise.
1969 * modules/mkdir-tests (Files): Likewise.
1970 * modules/mkfifo-tests (Files): Likewise.
1971 * modules/mkfifoat-tests (Files): Likewise.
1972 * modules/mknod-tests (Files): Likewise.
1973 * modules/nanosleep-tests (Files): Likewise.
1974 * modules/nl_langinfo-tests (Files): Likewise.
1975 * modules/obstack-printf-tests (Files): Likewise.
1976 * modules/open-tests (Files): Likewise.
1977 * modules/openat-tests (Files): Likewise.
1978 * modules/pipe-filter-gi-tests (Files): Likewise.
1979 * modules/pipe-filter-ii-tests (Files): Likewise.
1980 * modules/pipe2-tests (Files): Likewise.
1981 * modules/popen-safer-tests (Files): Likewise.
1982 * modules/popen-tests (Files): Likewise.
1983 * modules/posixtm-tests (Files): Likewise.
1984 * modules/pread-tests (Files): Likewise.
1985 * modules/printf-frexp-tests (Files): Likewise.
1986 * modules/printf-frexpl-tests (Files): Likewise.
1987 * modules/printf-posix-tests (Files): Likewise.
1988 * modules/priv-set-tests (Files): Likewise.
1989 * modules/quotearg-tests (Files): Likewise.
1990 * modules/random_r-tests (Files): Likewise.
1991 * modules/rawmemchr-tests (Files): Likewise.
1992 * modules/rbtree-list-tests (Files): Likewise.
1993 * modules/rbtree-oset-tests (Files): Likewise.
1994 * modules/rbtreehash-list-tests (Files): Likewise.
1995 * modules/readlink-tests (Files): Likewise.
1996 * modules/remove-tests (Files): Likewise.
1997 * modules/rename-tests (Files): Likewise.
1998 * modules/renameat-tests (Files): Likewise.
1999 * modules/rmdir-tests (Files): Likewise.
2000 * modules/round-tests (Files): Likewise.
2001 * modules/roundf-tests (Files): Likewise.
2002 * modules/roundl-tests (Files): Likewise.
2003 * modules/safe-alloc-tests (Files): Likewise.
2004 * modules/setenv-tests (Files): Likewise.
2005 * modules/sigaction-tests (Files): Likewise.
2006 * modules/signbit-tests (Files): Likewise.
2007 * modules/sleep-tests (Files): Likewise.
2008 * modules/snprintf-posix-tests (Files): Likewise.
2009 * modules/snprintf-tests (Files): Likewise.
2010 * modules/sprintf-posix-tests (Files): Likewise.
2011 * modules/stat-tests (Files): Likewise.
2012 * modules/stat-time-tests (Files): Likewise.
2013 * modules/strcasestr-tests (Files): Likewise.
2014 * modules/strchrnul-tests (Files): Likewise.
2015 * modules/strerror-tests (Files): Likewise.
2016 * modules/striconv-tests (Files): Likewise.
2017 * modules/striconveh-tests (Files): Likewise.
2018 * modules/striconveha-tests (Files): Likewise.
2019 * modules/strsignal-tests (Files): Likewise.
2020 * modules/strstr-tests (Files): Likewise.
2021 * modules/strtod-tests (Files): Likewise.
2022 * modules/strverscmp-tests (Files): Likewise.
2023 * modules/symlink-tests (Files): Likewise.
2024 * modules/symlinkat-tests (Files): Likewise.
2025 * modules/trunc-tests (Files): Likewise.
2026 * modules/truncf-tests (Files): Likewise.
2027 * modules/truncl-tests (Files): Likewise.
2028 * modules/uname-tests (Files): Likewise.
2029 * modules/unicase/cased-tests (Files): Likewise.
2030 * modules/unicase/ignorable-tests (Files): Likewise.
2031 * modules/unicase/locale-language-tests (Files): Likewise.
2032 * modules/unicase/tolower-tests (Files): Likewise.
2033 * modules/unicase/totitle-tests (Files): Likewise.
2034 * modules/unicase/toupper-tests (Files): Likewise.
2035 * modules/unicase/u8-casecmp-tests (Files): Likewise.
2036 * modules/unicase/u8-casecoll-tests (Files): Likewise.
2037 * modules/unicase/u8-casefold-tests (Files): Likewise.
2038 * modules/unicase/u8-is-cased-tests (Files): Likewise.
2039 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
2040 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
2041 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
2042 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
2043 * modules/unicase/u8-tolower-tests (Files): Likewise.
2044 * modules/unicase/u8-totitle-tests (Files): Likewise.
2045 * modules/unicase/u8-toupper-tests (Files): Likewise.
2046 * modules/unicase/u16-casecmp-tests (Files): Likewise.
2047 * modules/unicase/u16-casecoll-tests (Files): Likewise.
2048 * modules/unicase/u16-casefold-tests (Files): Likewise.
2049 * modules/unicase/u16-is-cased-tests (Files): Likewise.
2050 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
2051 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
2052 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
2053 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
2054 * modules/unicase/u16-tolower-tests (Files): Likewise.
2055 * modules/unicase/u16-totitle-tests (Files): Likewise.
2056 * modules/unicase/u16-toupper-tests (Files): Likewise.
2057 * modules/unicase/u32-casecmp-tests (Files): Likewise.
2058 * modules/unicase/u32-casecoll-tests (Files): Likewise.
2059 * modules/unicase/u32-casefold-tests (Files): Likewise.
2060 * modules/unicase/u32-is-cased-tests (Files): Likewise.
2061 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
2062 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
2063 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
2064 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
2065 * modules/unicase/u32-tolower-tests (Files): Likewise.
2066 * modules/unicase/u32-totitle-tests (Files): Likewise.
2067 * modules/unicase/u32-toupper-tests (Files): Likewise.
2068 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
2069 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
2070 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
2071 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
2072 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
2073 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
2074 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
2075 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
2076 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
2077 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
2078 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
2079 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
2080 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
2081 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
2082 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
2083 * modules/unictype/bidicategory-name-tests (Files): Likewise.
2084 * modules/unictype/bidicategory-of-tests (Files): Likewise.
2085 * modules/unictype/bidicategory-test-tests (Files): Likewise.
2086 * modules/unictype/block-list-tests (Files): Likewise.
2087 * modules/unictype/block-of-tests (Files): Likewise.
2088 * modules/unictype/block-test-tests (Files): Likewise.
2089 * modules/unictype/category-C-tests (Files): Likewise.
2090 * modules/unictype/category-Cc-tests (Files): Likewise.
2091 * modules/unictype/category-Cf-tests (Files): Likewise.
2092 * modules/unictype/category-Cn-tests (Files): Likewise.
2093 * modules/unictype/category-Co-tests (Files): Likewise.
2094 * modules/unictype/category-Cs-tests (Files): Likewise.
2095 * modules/unictype/category-L-tests (Files): Likewise.
2096 * modules/unictype/category-Ll-tests (Files): Likewise.
2097 * modules/unictype/category-Lm-tests (Files): Likewise.
2098 * modules/unictype/category-Lo-tests (Files): Likewise.
2099 * modules/unictype/category-Lt-tests (Files): Likewise.
2100 * modules/unictype/category-Lu-tests (Files): Likewise.
2101 * modules/unictype/category-M-tests (Files): Likewise.
2102 * modules/unictype/category-Mc-tests (Files): Likewise.
2103 * modules/unictype/category-Me-tests (Files): Likewise.
2104 * modules/unictype/category-Mn-tests (Files): Likewise.
2105 * modules/unictype/category-N-tests (Files): Likewise.
2106 * modules/unictype/category-Nd-tests (Files): Likewise.
2107 * modules/unictype/category-Nl-tests (Files): Likewise.
2108 * modules/unictype/category-No-tests (Files): Likewise.
2109 * modules/unictype/category-P-tests (Files): Likewise.
2110 * modules/unictype/category-Pc-tests (Files): Likewise.
2111 * modules/unictype/category-Pd-tests (Files): Likewise.
2112 * modules/unictype/category-Pe-tests (Files): Likewise.
2113 * modules/unictype/category-Pf-tests (Files): Likewise.
2114 * modules/unictype/category-Pi-tests (Files): Likewise.
2115 * modules/unictype/category-Po-tests (Files): Likewise.
2116 * modules/unictype/category-Ps-tests (Files): Likewise.
2117 * modules/unictype/category-S-tests (Files): Likewise.
2118 * modules/unictype/category-Sc-tests (Files): Likewise.
2119 * modules/unictype/category-Sk-tests (Files): Likewise.
2120 * modules/unictype/category-Sm-tests (Files): Likewise.
2121 * modules/unictype/category-So-tests (Files): Likewise.
2122 * modules/unictype/category-Z-tests (Files): Likewise.
2123 * modules/unictype/category-Zl-tests (Files): Likewise.
2124 * modules/unictype/category-Zp-tests (Files): Likewise.
2125 * modules/unictype/category-Zs-tests (Files): Likewise.
2126 * modules/unictype/category-and-not-tests (Files): Likewise.
2127 * modules/unictype/category-and-tests (Files): Likewise.
2128 * modules/unictype/category-byname-tests (Files): Likewise.
2129 * modules/unictype/category-name-tests (Files): Likewise.
2130 * modules/unictype/category-none-tests (Files): Likewise.
2131 * modules/unictype/category-of-tests (Files): Likewise.
2132 * modules/unictype/category-or-tests (Files): Likewise.
2133 * modules/unictype/category-test-withtable-tests (Files): Likewise.
2134 * modules/unictype/combining-class-tests (Files): Likewise.
2135 * modules/unictype/ctype-alnum-tests (Files): Likewise.
2136 * modules/unictype/ctype-alpha-tests (Files): Likewise.
2137 * modules/unictype/ctype-blank-tests (Files): Likewise.
2138 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
2139 * modules/unictype/ctype-digit-tests (Files): Likewise.
2140 * modules/unictype/ctype-graph-tests (Files): Likewise.
2141 * modules/unictype/ctype-lower-tests (Files): Likewise.
2142 * modules/unictype/ctype-print-tests (Files): Likewise.
2143 * modules/unictype/ctype-punct-tests (Files): Likewise.
2144 * modules/unictype/ctype-space-tests (Files): Likewise.
2145 * modules/unictype/ctype-upper-tests (Files): Likewise.
2146 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
2147 * modules/unictype/decimal-digit-tests (Files): Likewise.
2148 * modules/unictype/digit-tests (Files): Likewise.
2149 * modules/unictype/mirror-tests (Files): Likewise.
2150 * modules/unictype/numeric-tests (Files): Likewise.
2151 * modules/unictype/property-alphabetic-tests (Files): Likewise.
2152 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
2153 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
2154 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
2156 * modules/unictype/property-bidi-block-separator-tests (Files):
2158 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
2160 * modules/unictype/property-bidi-common-separator-tests (Files):
2162 * modules/unictype/property-bidi-control-tests (Files): Likewise.
2163 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
2165 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
2167 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
2169 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
2170 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
2172 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
2173 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
2175 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
2176 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
2177 * modules/unictype/property-bidi-segment-separator-tests (Files):
2179 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
2180 * modules/unictype/property-byname-tests (Files): Likewise.
2181 * modules/unictype/property-combining-tests (Files): Likewise.
2182 * modules/unictype/property-composite-tests (Files): Likewise.
2183 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
2184 * modules/unictype/property-dash-tests (Files): Likewise.
2185 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
2186 * modules/unictype/property-default-ignorable-code-point-tests (Files):
2188 * modules/unictype/property-deprecated-tests (Files): Likewise.
2189 * modules/unictype/property-diacritic-tests (Files): Likewise.
2190 * modules/unictype/property-extender-tests (Files): Likewise.
2191 * modules/unictype/property-format-control-tests (Files): Likewise.
2192 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
2193 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
2194 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
2195 * modules/unictype/property-hex-digit-tests (Files): Likewise.
2196 * modules/unictype/property-hyphen-tests (Files): Likewise.
2197 * modules/unictype/property-id-continue-tests (Files): Likewise.
2198 * modules/unictype/property-id-start-tests (Files): Likewise.
2199 * modules/unictype/property-ideographic-tests (Files): Likewise.
2200 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
2201 * modules/unictype/property-ids-trinary-operator-tests (Files):
2203 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
2204 * modules/unictype/property-iso-control-tests (Files): Likewise.
2205 * modules/unictype/property-join-control-tests (Files): Likewise.
2206 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
2207 * modules/unictype/property-line-separator-tests (Files): Likewise.
2208 * modules/unictype/property-logical-order-exception-tests (Files):
2210 * modules/unictype/property-lowercase-tests (Files): Likewise.
2211 * modules/unictype/property-math-tests (Files): Likewise.
2212 * modules/unictype/property-non-break-tests (Files): Likewise.
2213 * modules/unictype/property-not-a-character-tests (Files): Likewise.
2214 * modules/unictype/property-numeric-tests (Files): Likewise.
2215 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
2216 * modules/unictype/property-other-default-ignorable-code-point-tests
2218 * modules/unictype/property-other-grapheme-extend-tests (Files):
2220 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
2221 * modules/unictype/property-other-id-start-tests (Files): Likewise.
2222 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
2223 * modules/unictype/property-other-math-tests (Files): Likewise.
2224 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
2225 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
2226 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
2227 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
2228 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
2229 * modules/unictype/property-private-use-tests (Files): Likewise.
2230 * modules/unictype/property-punctuation-tests (Files): Likewise.
2231 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
2232 * modules/unictype/property-radical-tests (Files): Likewise.
2233 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
2234 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
2235 * modules/unictype/property-space-tests (Files): Likewise.
2236 * modules/unictype/property-terminal-punctuation-tests (Files):
2238 * modules/unictype/property-test-tests (Files): Likewise.
2239 * modules/unictype/property-titlecase-tests (Files): Likewise.
2240 * modules/unictype/property-unassigned-code-value-tests (Files):
2242 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
2243 * modules/unictype/property-uppercase-tests (Files): Likewise.
2244 * modules/unictype/property-variation-selector-tests (Files): Likewise.
2245 * modules/unictype/property-white-space-tests (Files): Likewise.
2246 * modules/unictype/property-xid-continue-tests (Files): Likewise.
2247 * modules/unictype/property-xid-start-tests (Files): Likewise.
2248 * modules/unictype/property-zero-width-tests (Files): Likewise.
2249 * modules/unictype/scripts-tests (Files): Likewise.
2250 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
2251 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
2252 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
2253 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
2254 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
2255 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
2256 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
2257 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
2258 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
2259 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
2260 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
2261 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
2262 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
2263 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
2264 * modules/uninorm/composition-tests (Files): Likewise.
2265 * modules/uninorm/decomposing-form-tests (Files): Likewise.
2266 * modules/uninorm/decomposition-tests (Files): Likewise.
2267 * modules/uninorm/filter-tests (Files): Likewise.
2268 * modules/uninorm/nfc-tests (Files): Likewise.
2269 * modules/uninorm/nfd-tests (Files): Likewise.
2270 * modules/uninorm/nfkc-tests (Files): Likewise.
2271 * modules/uninorm/nfkd-tests (Files): Likewise.
2272 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
2273 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
2274 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
2275 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
2276 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
2277 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
2278 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
2279 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
2280 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
2281 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
2282 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
2283 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
2284 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
2285 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
2286 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
2287 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
2288 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
2289 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
2290 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
2291 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
2292 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
2293 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
2294 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
2295 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
2296 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
2297 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
2298 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
2299 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
2300 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
2301 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
2302 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
2303 * modules/uniwidth/u8-width-tests (Files): Likewise.
2304 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
2305 * modules/uniwidth/u16-width-tests (Files): Likewise.
2306 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
2307 * modules/uniwidth/u32-width-tests (Files): Likewise.
2308 * modules/uniwidth/width-tests (Files): Likewise.
2309 * modules/unlink-tests (Files): Likewise.
2310 * modules/unsetenv-tests (Files): Likewise.
2311 * modules/usleep-tests (Files): Likewise.
2312 * modules/utimens-tests (Files): Likewise.
2313 * modules/utimensat-tests (Files): Likewise.
2314 * modules/vasnprintf-posix-tests (Files): Likewise.
2315 * modules/vasnprintf-tests (Files): Likewise.
2316 * modules/vasprintf-posix-tests (Files): Likewise.
2317 * modules/vasprintf-tests (Files): Likewise.
2318 * modules/vdprintf-posix-tests (Files): Likewise.
2319 * modules/vfprintf-posix-tests (Files): Likewise.
2320 * modules/vprintf-posix-tests (Files): Likewise.
2321 * modules/vsnprintf-posix-tests (Files): Likewise.
2322 * modules/vsnprintf-tests (Files): Likewise.
2323 * modules/vsprintf-posix-tests (Files): Likewise.
2324 * modules/wcrtomb-tests (Files): Likewise.
2325 * modules/wcsnrtombs-tests (Files): Likewise.
2326 * modules/wcsrtombs-tests (Files): Likewise.
2327 * modules/wctype-tests (Files): Likewise.
2328 * modules/wcwidth-tests (Files): Likewise.
2329 * modules/xmemdup0-tests (Files): Likewise.
2330 * modules/xprintf-posix-tests (Files): Likewise.
2331 * modules/xvasprintf-tests (Files): Likewise.
2333 2009-12-24 Eric Blake <ebb9@byu.net>
2335 test-nanosleep: fix typo
2336 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
2338 Reported by Bruno Haible.
2340 2009-12-24 Bruno Haible <bruno@clisp.org>
2342 Reduce namespace pollution on glibc systems.
2343 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
2344 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
2346 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
2347 <getopt.h> on glibc systems.
2348 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
2350 * lib/fcntl.c: Include <unistd.h> here instead.
2352 2009-12-24 Bruno Haible <bruno@clisp.org>
2354 * lib/stdlib.in.h (includes): Fix typo in today's commit.
2356 2009-12-24 Eric Blake <ebb9@byu.net>
2358 tests: add signature checks
2359 * tests/signature.h (SIGNATURE_CHECK): New file.
2360 * modules/atexit-tests (Files): Use it.
2361 * modules/btowc-tests (Files): Likewise.
2362 * modules/canonicalize-lgpl-tests (Files): Likewise.
2363 * modules/ceilf-tests (Files): Likewise.
2364 * modules/ceill-tests (Files): Likewise.
2365 * modules/chown-tests (Files): Likewise.
2366 * modules/dprintf-posix-tests (Files): Likewise.
2367 * modules/dup2-tests (Files): Likewise.
2368 * modules/dup3-tests (Files): Likewise.
2369 * modules/duplocale-tests (Files): Likewise.
2370 * modules/fchdir-tests (Files): Likewise.
2371 * modules/fcntl-tests (Files): Likewise.
2372 * modules/fdopendir-tests (Files): Likewise.
2373 * modules/fflush-tests (Files): Likewise.
2374 * modules/flock-tests (Files): Likewise.
2375 * modules/floorf-tests (Files): Likewise.
2376 * modules/floorl-tests (Files): Likewise.
2377 * modules/fnmatch-tests (Files): Likewise.
2378 * modules/fopen-tests (Files): Likewise.
2379 * modules/fprintf-posix-tests (Files): Likewise.
2380 * modules/freopen-tests (Files): Likewise.
2381 * modules/frexp-nolibm-tests (Files): Likewise.
2382 * modules/frexp-tests (Files): Likewise.
2383 * modules/frexpl-nolibm-tests (Files): Likewise.
2384 * modules/frexpl-tests (Files): Likewise.
2385 * modules/fseek-tests (Files): Likewise.
2386 * modules/fseeko-tests (Files): Likewise.
2387 * modules/fsync-tests (Files): Likewise.
2388 * modules/ftell-tests (Files): Likewise.
2389 * modules/ftello-tests (Files): Likewise.
2390 * modules/futimens-tests (Files): Likewise.
2391 * modules/getaddrinfo-tests (Files): Likewise.
2392 * modules/getcwd-tests (Files): Likewise.
2393 * modules/getdelim-tests (Files): Likewise.
2394 * modules/getdtablesize-tests (Files): Likewise.
2395 * modules/getgroups-tests (Files): Likewise.
2396 * modules/gethostname-tests (Files): Likewise.
2397 * modules/getline-tests (Files): Likewise.
2398 * modules/getopt-posix-tests (Files): Likewise.
2399 * modules/gettimeofday-tests (Files): Likewise.
2400 * modules/glob-tests (Files): Likewise.
2401 * modules/iconv-tests (Files): Likewise.
2402 * modules/inet_ntop-tests (Files): Likewise.
2403 * modules/inet_pton-tests (Files): Likewise.
2404 * modules/isblank-tests (Files): Likewise.
2405 * modules/lchown-tests (Files): Likewise.
2406 * modules/ldexpl-tests (Files): Likewise.
2407 * modules/link-tests (Files): Likewise.
2408 * modules/linkat-tests (Files): Likewise.
2409 * modules/lseek-tests (Files): Likewise.
2410 * modules/lstat-tests (Files): Likewise.
2411 * modules/mbrtowc-tests (Files): Likewise.
2412 * modules/mbsinit-tests (Files): Likewise.
2413 * modules/mbsnrtowcs-tests (Files): Likewise.
2414 * modules/mbsrtowcs-tests (Files): Likewise.
2415 * modules/memchr-tests (Files): Likewise.
2416 * modules/memcmp-tests (Files): Likewise.
2417 * modules/memmem-tests (Files): Likewise.
2418 * modules/memrchr-tests (Files): Likewise.
2419 * modules/mkdir-tests (Files): Likewise.
2420 * modules/mkfifo-tests (Files): Likewise.
2421 * modules/mkfifoat-tests (Files): Likewise.
2422 * modules/mknod-tests (Files): Likewise.
2423 * modules/nanosleep-tests (Files): Likewise.
2424 * modules/nl_langinfo-tests (Files): Likewise.
2425 * modules/obstack-printf-tests (Files): Likewise.
2426 * modules/open-tests (Files): Likewise.
2427 * modules/openat-tests (Files): Likewise.
2428 * modules/perror-tests (Files): Likewise.
2429 * modules/pipe2-tests (Files): Likewise.
2430 * modules/poll-tests (Files): Likewise.
2431 * modules/popen-tests (Files): Likewise.
2432 * modules/posix_spawn-tests (Files): Likewise.
2433 * modules/posix_spawnp-tests (Files): Likewise.
2434 * modules/pread-tests (Files): Likewise.
2435 * modules/printf-posix-tests (Files): Likewise.
2436 * modules/pty-tests (Files): Likewise.
2437 * modules/random_r-tests (Files): Likewise.
2438 * modules/rawmemchr-tests (Files): Likewise.
2439 * modules/readlink-tests (Files): Likewise.
2440 * modules/remove-tests (Files): Likewise.
2441 * modules/rename-tests (Files): Likewise.
2442 * modules/renameat-tests (Files): Likewise.
2443 * modules/rmdir-tests (Files): Likewise.
2444 * modules/round-tests (Files): Likewise.
2445 * modules/roundf-tests (Files): Likewise.
2446 * modules/roundl-tests (Files): Likewise.
2447 * modules/select-tests (Files): Likewise.
2448 * modules/setenv-tests (Files): Likewise.
2449 * modules/sigaction-tests (Files): Likewise.
2450 * modules/sleep-tests (Files): Likewise.
2451 * modules/snprintf-posix-tests (Files): Likewise.
2452 * modules/snprintf-tests (Files): Likewise.
2453 * modules/sprintf-posix-tests (Files): Likewise.
2454 * modules/stat-tests (Files): Likewise.
2455 * modules/strcasestr-tests (Files): Likewise.
2456 * modules/strchrnul-tests (Files): Likewise.
2457 * modules/strerror-tests (Files): Likewise.
2458 * modules/strsignal-tests (Files): Likewise.
2459 * modules/strstr-tests (Files): Likewise.
2460 * modules/strtod-tests (Files): Likewise.
2461 * modules/strverscmp-tests (Files): Likewise.
2462 * modules/symlink-tests (Files): Likewise.
2463 * modules/symlinkat-tests (Files): Likewise.
2464 * modules/times-tests (Files): Likewise.
2465 * modules/trunc-tests (Files): Likewise.
2466 * modules/truncf-tests (Files): Likewise.
2467 * modules/truncl-tests (Files): Likewise.
2468 * modules/tsearch-tests (Files): Likewise.
2469 * modules/uname-tests (Files): Likewise.
2470 * modules/unlink-tests (Files): Likewise.
2471 * modules/unsetenv-tests (Files): Likewise.
2472 * modules/usleep-tests (Files): Likewise.
2473 * modules/utimensat-tests (Files): Likewise.
2474 * modules/vasprintf-tests (Files): Likewise.
2475 * modules/vdprintf-posix-tests (Files): Likewise.
2476 * modules/vfprintf-posix-tests (Files): Likewise.
2477 * modules/vprintf-posix-tests (Files): Likewise.
2478 * modules/vsnprintf-posix-tests (Files): Likewise.
2479 * modules/vsnprintf-tests (Files): Likewise.
2480 * modules/vsprintf-posix-tests (Files): Likewise.
2481 * modules/wcrtomb-tests (Files): Likewise.
2482 * modules/wcsnrtombs-tests (Files): Likewise.
2483 * modules/wcsrtombs-tests (Files): Likewise.
2484 * modules/wcwidth-tests (Files): Likewise.
2485 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
2486 * tests/test-isinf.c (isinf): Likewise.
2487 * tests/test-isnan.c (isnan): Likewise.
2488 * tests/test-signbit.c (signbit): Likewise.
2489 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
2490 declaration, either as macro or with correct signature.
2491 (select): Ensure function under test is declared with correct
2492 signature in correct header.
2493 * tests/test-atexit.c (atexit): Likewise.
2494 * tests/test-btowc.c (btowc): Likewise.
2495 * tests/test-canonicalize-lgpl.c (realpath)
2496 (canonicalize_file_name): Likewise.
2497 * tests/test-ceilf1.c (ceilf): Likewise.
2498 * tests/test-ceill.c (ceill): Likewise.
2499 * tests/test-chown.c (chown): Likewise.
2500 * tests/test-dprintf-posix.c (dprintf): Likewise.
2501 * tests/test-dup2.c (dup2): Likewise.
2502 * tests/test-dup3.c (dup3): Likewise.
2503 * tests/test-duplocale.c (duplocale): Likewise.
2504 * tests/test-fchdir.c (fchdir): Likewise.
2505 * tests/test-fchownat.c (fchownat): Likewise.
2506 * tests/test-fcntl.c (fcntl): Likewise.
2507 * tests/test-fdopendir.c (fdopendir): Likewise.
2508 * tests/test-fflush.c (fflush): Likewise.
2509 * tests/test-flock.c (flock): Likewise.
2510 * tests/test-floorf1.c (floorf): Likewise.
2511 * tests/test-floorl.c (floorl): Likewise.
2512 * tests/test-fnmatch.c (fnmatch): Likewise.
2513 * tests/test-fopen.c (fopen): Likewise.
2514 * tests/test-fprintf-posix.c (fprintf): Likewise.
2515 * tests/test-freopen.c (freopen): Likewise.
2516 * tests/test-frexp.c (frexp): Likewise.
2517 * tests/test-frexpl.c (frexpl): Likewise.
2518 * tests/test-fseek.c (fseek): Likewise.
2519 * tests/test-fseeko.c (fseeko): Likewise.
2520 * tests/test-fstatat.c (fstatat): Likewise.
2521 * tests/test-fsync.c (fsync): Likewise.
2522 * tests/test-ftell.c (ftell): Likewise.
2523 * tests/test-ftello.c (ftello): Likewise.
2524 * tests/test-futimens.c (futimens): Likewise.
2525 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
2526 (gai_strerror): Likewise.
2527 * tests/test-getcwd.c (getcwd): Likewise.
2528 * tests/test-getdelim.c (getdelim): Likewise.
2529 * tests/test-getdtablesize.c (getdtablesize): Likewise.
2530 * tests/test-getgroups.c (getgroups): Likewise.
2531 * tests/test-gethostname.c (gethostname): Likewise.
2532 * tests/test-getline.c (getline): Likewise.
2533 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
2535 * tests/test-gettimeofday.c (gettimeofday): Likewise.
2536 * tests/test-glob.c (glob, globfree): Likewise.
2537 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
2538 * tests/test-inet_ntop.c (inet_ntop): Likewise.
2539 * tests/test-inet_pton.c (inet_pton): Likewise.
2540 * tests/test-isblank.c (isblank): Likewise.
2541 * tests/test-lchown.c (lchown): Likewise.
2542 * tests/test-ldexpl.c (ldexpl): Likewise.
2543 * tests/test-link.c (link): Likewise.
2544 * tests/test-linkat.c (linkat): Likewise.
2545 * tests/test-lseek.c (lseek): Likewise.
2546 * tests/test-lstat.c (lstat): Likewise.
2547 * tests/test-mbrtowc.c (mbrtowc): Likewise.
2548 * tests/test-mbsinit.c (mbsinit): Likewise.
2549 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
2550 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
2551 * tests/test-memchr.c (memchr): Likewise.
2552 * tests/test-memcmp.c (memcmp): Likewise.
2553 * tests/test-memmem.c (memmem): Likewise.
2554 * tests/test-memrchr.c (memrchr): Likewise.
2555 * tests/test-mkdir.c (mkdir): Likewise.
2556 * tests/test-mkdirat.c (mkdirat): Likewise.
2557 * tests/test-mkfifo.c (mkfifo): Likewise.
2558 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
2559 * tests/test-mknod.c (mknod): Likewise.
2560 * tests/test-nanosleep.c (nanosleep): Likewise.
2561 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
2562 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
2564 * tests/test-open.c (open): Likewise.
2565 * tests/test-openat.c (openat): Likewise.
2566 * tests/test-perror.c (perror): Likewise.
2567 * tests/test-pipe2.c (pipe2): Likewise.
2568 * tests/test-poll.c (poll): Likewise.
2569 * tests/test-popen.c (popen, pclose): Likewise.
2570 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
2571 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
2572 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
2573 (posix_spawn_file_actions_destroy)
2574 (posix_spawn_file_actions_addclose)
2575 (posix_spawn_file_actions_addopen)
2576 (posix_spawn_file_actions_adddup2): Likewise.
2577 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
2578 * tests/test-pread.c (pread): Likewise.
2579 * tests/test-printf-posix.c (printf): Likewise.
2580 * tests/test-pty.c (openpty, forkpty): Likewise.
2581 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
2582 (random_r): Likewise.
2583 * tests/test-rawmemchr.c (rawmemchr): Likewise.
2584 * tests/test-readlink.c (readlink): Likewise.
2585 * tests/test-remove.c (remove): Likewise.
2586 * tests/test-rename.c (rename): Likewise.
2587 * tests/test-renameat.c (renameat): Likewise.
2588 * tests/test-rmdir.c (rmdir): Likewise.
2589 * tests/test-round1.c (round): Likewise.
2590 * tests/test-roundf1.c (roundf): Likewise.
2591 * tests/test-roundl.c (roundl): Likewise.
2592 * tests/test-setenv.c (setenv): Likewise.
2593 * tests/test-sigaction.c (sigaction): Likewise.
2594 * tests/test-sleep.c (sleep): Likewise.
2595 * tests/test-snprintf.c (snprintf): Likewise.
2596 * tests/test-sprintf-posix.c (sprintf): Likewise.
2597 * tests/test-stat.c (stat): Likewise.
2598 * tests/test-stpncpy.c (stpncpy): Likewise.
2599 * tests/test-strcasestr.c (strcasestr): Likewise.
2600 * tests/test-strchrnul.c (strchrnul): Likewise.
2601 * tests/test-strerror.c (strerror): Likewise.
2602 * tests/test-strsignal.c (strsignal): Likewise.
2603 * tests/test-strstr.c (strstr): Likewise.
2604 * tests/test-strtod.c (strtod): Likewise.
2605 * tests/test-strverscmp.c (strverscmp): Likewise.
2606 * tests/test-symlink.c (symlink): Likewise.
2607 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
2608 * tests/test-times.c (times): Likewise.
2609 * tests/test-trunc1.c (trunc): Likewise.
2610 * tests/test-truncf1.c (truncf): Likewise.
2611 * tests/test-truncl.c (truncl): Likewise.
2612 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
2614 * tests/test-uname.c (uname): Likewise.
2615 * tests/test-unlink.c (unlink): Likewise.
2616 * tests/test-unlinkat.c (unlinkat): Likewise.
2617 * tests/test-unsetenv.c (unsetenv): Likewise.
2618 * tests/test-usleep.c (usleep): Likewise.
2619 * tests/test-utimensat.c (utimensat): Likewise.
2620 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
2621 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
2622 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
2623 * tests/test-vprintf-posix.c (vprintf): Likewise.
2624 * tests/test-vsnprintf.c (vsnprintf): Likewise.
2625 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
2626 * tests/test-wcrtomb.c (wcrtomb): Likewise.
2627 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
2628 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
2629 * tests/test-wcwidth.c (wcwidth): Likewise.
2631 build: pull in conditional headers during GNULIB_POSIXCHECK
2632 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
2633 definitions from any conditionally-included headers.
2634 * lib/stdlib.in.h (includes): Likewise.
2635 * lib/unistd.in.h (includes): Likewise.
2637 2009-12-24 Bruno Haible <bruno@clisp.org>
2639 * tests/test-argv-iter.c: Include header file being tested immediately
2641 * tests/test-base64.c: Likewise.
2642 * tests/test-flock.c: Likewise.
2643 * tests/test-fsync.c: Likewise.
2644 * tests/test-getdate.c: Likewise.
2645 * tests/test-getndelim2.c: Likewise.
2646 * tests/test-isfinite.c: Likewise.
2647 * tests/test-isinf.c: Likewise.
2648 * tests/test-strerror.c: Likewise.
2649 * tests/test-strsignal.c: Likewise.
2651 2009-12-23 Eric Blake <ebb9@byu.net>
2653 unistd: work around cygwin bug
2654 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
2655 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
2656 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
2658 2009-12-23 Bruno Haible <bruno@clisp.org>
2660 localename: More tests.
2661 * tests/test-localename.c (SIZEOF): New macro.
2662 (categories): New variable.
2663 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
2664 test_locale_name_default): Add test w.r.t. thread locale.
2665 (test_locale_name_thread): New function.
2668 localename: Make aware of thread locale.
2669 * lib/localename.h (gl_locale_name_thread): New declaration.
2670 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
2671 behaviour with respect to thread locale.
2672 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
2673 <langinfo.h>, glthread/lock.h.
2674 (SIZE_BITS): New macro.
2675 (string_hash): New function.
2676 (struct hash_node): New type.
2677 (HASH_TABLE_SIZE): New macro.
2678 (struniq_hash_table, struniq_lock): New variables.
2679 (struniq): New function.
2680 (gl_locale_name_thread): New function.
2681 (gl_locale_name): Invoke it.
2682 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
2683 * modules/localename (Depends-on): Add lock.
2684 Reported by Mike Gran <spk121@yahoo.com>.
2686 2009-12-23 Eric Blake <ebb9@byu.net>
2689 * modules/va-args: New file.
2690 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
2691 * MODULES.html.sh (Core language properties): Mention it.
2693 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
2694 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
2695 named alias for __attribute__((__unused__)).
2696 * lib/chown.c: Update client.
2697 * lib/fchmodat.c: Likewise.
2698 * lib/fts.c: Likewise.
2699 * lib/getdate.y: Likewise.
2700 * lib/getgroups.c: Likewise.
2701 * lib/getopt.c: Likewise.
2702 * lib/getugroups.c: Likewise.
2703 * lib/mkdir.c: Likewise.
2704 * lib/mkfifo.c: Likewise.
2705 * lib/mkfifoat.c: Likewise.
2706 * lib/mknod.c: Likewise.
2707 * lib/mknodat.c: Likewise.
2708 * lib/readlink.c: Likewise.
2709 * lib/se-context.in.h: Likewise.
2710 * lib/se-selinux.in.h: Likewise.
2711 * lib/sockets.c: Likewise.
2712 * lib/symlink.c: Likewise.
2713 * lib/symlinkat.c: Likewise.
2714 * lib/unicodeio.c: Likewise.
2715 * lib/unistr.h: Likewise.
2716 * tests/test-areadlink.c: Likewise.
2717 * tests/test-areadlinkat.c: Likewise.
2718 * tests/test-filenamecat.c: Likewise.
2719 * tests/test-fseeko.c: Likewise.
2720 * tests/test-ftello.c: Likewise.
2721 * tests/test-getdate.c: Likewise.
2722 * tests/test-getgroups.c: Likewise.
2723 * tests/test-gethostname.c: Likewise.
2724 * tests/test-quotearg.c: Likewise.
2725 * tests/test-version-etc.c: Likewise.
2726 * tests/test-xalloc-die.c: Likewise.
2727 * tests/test-xfprintf-posix.c: Likewise.
2728 * tests/test-xprintf-posix.c: Likewise.
2729 * tests/test-xvasprintf.c: Likewise.
2731 tests: avoid compiler warnings
2732 * tests/test-fcntl.c (main): Delete unused parameters.
2733 * tests/test-freopen-safer.c (main): Likewise.
2734 * tests/test-xalloc-die.c (main): Mark unused parameters.
2735 * tests/test-fseeko.c (main): Likewise.
2736 * tests/test-ftello.c (main): Likewise.
2737 * tests/test-nanosleep.c (main): Avoid declaration warning.
2738 * tests/test-sleep.c (main): Likewise.
2739 * tests/test-unsetenv.c (main): Silence warning about string
2741 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2743 2009-12-23 Bruno Haible <bruno@clisp.org>
2745 * tests/test-localename.c (test_locale_name): New function, extracted
2746 from main. Also test mixed situations.
2747 (test_locale_name_posix, test_locale_name_environ,
2748 test_locale_name_default): New functions.
2749 (main): Invoke them all.
2750 * modules/localename-tests (configure.ac): Test for newlocale.
2752 2009-12-23 Bruno Haible <bruno@clisp.org>
2754 unistd: Ensure getcwd gets declared before being overridden.
2755 * lib/unistd.in.h: Conditionally include <io.h>.
2757 2009-12-22 Bruno Haible <bruno@clisp.org>
2759 wchar: Diagnose broken combination of glibc and gcc versions and flags.
2760 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
2761 (gl_WCHAR_H): Invoke it.
2762 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
2763 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
2764 Reported by Karl Berry <karl@freefriends.org>.
2766 2009-12-22 Eric Blake <ebb9@byu.net>
2768 math, unistd: avoid redundant includes
2769 * lib/math.in.h (isnan): No need to re-include <math.h>.
2770 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
2772 getsubopt: work around cygwin bug
2773 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
2774 avoid conflicting with system getsubopt.
2775 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
2778 getopt: synchronize from glibc
2779 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
2780 parameter order. Adjust all callers.
2781 (_getopt_internal_r, main): Adjust quoting in error messages.
2782 Drop considerations for outdated POSIX 1003.2 error message.
2783 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
2785 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
2787 test-getopt: test stderr behavior
2788 * modules/getopt-posix-tests (Depends-on): Add dup2.
2789 * tests/test-getopt.c (ASSERT): Avoid stderr.
2790 (main): Move stderr to a temporary file.
2791 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
2792 Instead, add parameter to inform caller if output occurred.
2793 (test_getopt): Adjust all existing tests to expect silence, and
2794 add new tests of leading ":".
2795 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2796 glibc shortcomings with leading "-:" or "+:" in optstring.
2797 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2799 * doc/posix-functions/getopt.texi (getopt): Likewise.
2801 test-getopt: enhance test
2802 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
2804 * tests/test-getopt.c (OPTIND_MIN): Move...
2805 * tests/test-getopt.h (OPTIND_MIN): ...here.
2806 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
2807 Require that optind=0 works, since modern BSD supports it in
2808 addition to optreset, and since coreutils expects it.
2809 (test_getopt_long_only): New test.
2810 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2811 glibc shortcomings with 'W;', and enforcement of optind=0.
2812 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2815 2009-12-21 Bruno Haible <bruno@clisp.org>
2817 localename: Improvements for MacOS X and Cygwin.
2818 * lib/localename.h (gl_locale_name_environ): New declaration.
2819 * lib/localename.c (gl_locale_name_environ): New function, extracted from
2820 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
2821 (gl_locale_name_posix): Invoke it.
2822 (gl_locale_name_default): Add comments. Use Windows native API also on
2825 2009-12-21 Bruno Haible <bruno@clisp.org>
2827 Update list of Win32 locale ids.
2828 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
2829 (LANG_SAMI): Renamed from LANG_SAAMI.
2830 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
2831 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
2832 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
2833 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
2834 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
2835 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
2836 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
2837 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
2838 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
2839 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
2840 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
2841 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
2842 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
2843 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
2844 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
2845 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
2846 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
2847 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
2848 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
2849 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
2850 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
2851 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
2852 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
2853 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
2854 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
2855 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
2856 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
2857 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
2858 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
2859 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
2860 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
2861 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
2862 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
2863 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
2864 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
2865 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
2866 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
2867 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
2868 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
2869 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
2870 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
2871 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
2872 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
2873 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
2874 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
2875 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
2876 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
2877 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
2878 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
2879 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
2880 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
2881 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
2882 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
2883 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
2884 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
2885 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
2886 Add more languages and countries for Sami, Sorbian. Add more countries
2887 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
2888 for Pashto. Change country for Syriac, Tswana.
2890 2009-12-21 Eric Blake <ebb9@byu.net>
2892 test-utimens: avoid spurious failure
2893 * tests/test-chown.h (nap): Factor...
2894 * tests/nap.h: ...into new file.
2895 * tests/test-lchown.h (nap): Avoid duplication.
2896 * tests/test-utimens-common.h (nap): Use shared implementation,
2897 necessary on file systems with 1-second resolution.
2898 * modules/chown-tests (Files): Include new file.
2899 * modules/fdutimensat-tests (Files): Likewise.
2900 * modules/futimens-tests (Files): Likewise.
2901 * modules/lchown-tests (Files): Likewise.
2902 * modules/openat-tests (Files): Likewise.
2903 * modules/utimens-tests (Files): Likewise.
2904 * modules/utimensat-tests (Files): Likewise.
2906 2009-12-19 Eric Blake <ebb9@byu.net>
2908 futimens, utimensat: work around Linux bug
2909 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
2910 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2911 * lib/utimensat.c (rpl_utimensat): Work around it.
2912 * lib/futimens.c (rpl_futimens): Adjust comment.
2914 utimens: work around Linux ctime bug
2915 * lib/utimens.c (detect_ctime_bug): New helper function.
2916 (update_timespec): Differentiate between workaround needed for
2917 this bug vs. what is needed for systems that lack utimensat.
2918 (fdutimens, lutimens): Work around bug.
2920 utimens: check for ctime update
2921 * tests/test-utimens-common.h (check_ctime): Define.
2922 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
2923 * tests/test-futimens.h (test_futimens): Likewise.
2924 * tests/test-lutimens.h (test_lutimens): Likewise.
2925 * doc/posix-functions/futimens.texi (futimens): Document the bug.
2926 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2928 2009-12-19 Bruno Haible <bruno@clisp.org>
2930 dprintf-posix: Check against memory leak fixed on 2009-12-15.
2931 * tests/test-dprintf-posix2.sh: New file.
2932 * tests/test-dprintf-posix2.c: New file.
2933 * modules/dprintf-posix-tests (Files): Add them.
2934 (configure.ac): Check for getrlimit and setrlimit.
2935 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
2937 2009-12-19 Bruno Haible <bruno@clisp.org>
2939 fprintf-posix: Check against memory leak fixed on 2009-12-15.
2940 * tests/test-fprintf-posix3.sh: New file.
2941 * tests/test-fprintf-posix3.c: New file.
2942 * modules/fprintf-posix-tests (Files): Add them.
2943 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
2945 2009-12-19 Eric Blake <ebb9@byu.net>
2947 dirfd: fix prototype
2948 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
2949 * lib/dirfd.c (dirfd): Likewise.
2951 canonicalize: reduce memory usage
2952 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
2954 Reported by Solar Designer <solar@openwall.com>.
2956 2009-12-19 Bruno Haible <bruno@clisp.org>
2958 New module attribute 'Applicability'.
2959 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
2960 * gnulib-tool: New option --extract-applicability.
2961 (func_usage): Document it.
2962 (sed_extract_prog): Recognize it.
2963 (func_get_applicability): New function.
2964 (func_import): Generalize handling of 'link-warning' module.
2965 * modules/link-warning (Applicability): New section.
2966 * modules/arg-nonnull (Applicability): New section.
2967 Repoted by Simon Josefsson <simon@josefsson.org>.
2969 2009-12-19 Bruno Haible <bruno@clisp.org>
2972 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
2973 * lib/fseeko.c (rpl_fseeko): Likewise.
2975 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
2977 * lib/gl_list.h: Fix typo in comment.
2979 2009-12-16 Eric Blake <ebb9@byu.net>
2981 fcntl: use to simplify other modules
2982 * modules/cloexec (Depends-on): Add fcntl.
2983 * modules/fchdir (Depends-on): Likewise.
2984 * modules/fd-safer-flag (Depends-on): Likewise.
2985 * modules/unistd-safer (Depends-on): Likewise.
2986 * modules/dup3 (configure.ac): Set module indicator.
2987 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
2989 * lib/fchdir.c (_gl_register_dup): Fix comment.
2990 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
2991 * lib/dup-safer.c (dup_safer): Likewise.
2992 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
2993 * lib/dup3.c (dup3): Likewise.
2994 * tests/test-fchdir.c (main): Enhance test.
2995 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
2997 fcntl: port portions of fcntl to mingw
2998 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
2999 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
3000 replacement for mingw.
3001 * modules/fcntl (Description): Update.
3002 (Depends-on): Add dup2.
3003 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
3004 * modules/fcntl-h (Makefile.am): Substitute it.
3005 * lib/fcntl.in.h (fcntl): Update declaration.
3006 (F_DUPFD, F_GETFD): New macros, when needed.
3007 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
3008 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
3009 * tests/test-fcntl.c (check_flags, main): Enhance test for items
3012 fcntl: work around cygwin bug in F_DUPFD
3013 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
3014 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
3015 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
3016 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
3017 * doc/posix-functions/fcntl.texi (fcntl): Document it.
3019 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
3020 * modules/fcntl (Files): List new files.
3021 (configure.ac): Run a test.
3022 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
3023 * lib/fcntl.c (rpl_fcntl): Likewise.
3024 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
3025 (gl_FCNTL_H): Always replace fcntl.h.
3026 * modules/fcntl-h (Makefile.am): Substitute witnesses.
3027 * lib/fcntl.in.h (fcntl): Declare replacement.
3028 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
3029 needed, plus a witness.
3030 * doc/posix-functions/fcntl.texi (fcntl): Document this.
3031 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
3032 * tests/test-fcntl.c: New file.
3033 * modules/fcntl-tests: Likewise.
3035 binary-io: avoid potential compilation warning
3036 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
3039 fflush: avoid compilation error on NetBSD
3040 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
3041 between off_t and fpos_t, since the latter is sometimes a struct.
3042 * lib/fseeko.c (rpl_fseeko): Likewise.
3043 Reported by Alexander Nasonov <alnsn@yandex.ru>.
3045 2009-12-15 Eric Blake <ebb9@byu.net>
3047 fcntl-h, stdio, sys_ioctl: fix declarations
3048 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
3049 function must not take arguments.
3050 * lib/sys_ioctl.in.h (ioctl): Likewise.
3051 * lib/fcntl.in.h (openat): Likewise. Declare extern.
3052 (open): Add a link warning.
3054 2009-12-15 Jim Meyering <meyering@redhat.com>
3056 areadlink, areadlink-with-size: relax license to LGPLv2+
3057 * modules/areadlink (License): Relax to LGPLv2+.
3058 * modules/areadlink-with-size (License): Likewise.
3060 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
3061 Bruno Haible <bruno@clisp.org>
3063 *printf: Fix memory leak.
3064 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
3065 * lib/vfprintf.c (vfprintf): Likewise.
3066 * lib/dprintf.c (dprintf): Likewise.
3067 * lib/vdprintf.c (vdprintf): Likewise.
3069 2009-12-14 Eric Blake <ebb9@byu.net>
3071 accept4: adjust module dependencies
3072 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
3074 utimens: one more try at avoiding compiler warning
3075 * lib/utimens.c (lutimens): Lower scope of result.
3077 2009-12-13 Bruno Haible <bruno@clisp.org>
3079 Move the malloc checking from module 'list' to new module 'xlist'.
3080 * modules/xlist: New file.
3081 * lib/gl_xlist.h: New file.
3082 * lib/gl_xlist.c: New file.
3083 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
3084 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
3085 gl_list_add_last, gl_list_add_before, gl_list_add_after,
3086 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
3087 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
3088 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
3089 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
3090 gl_sortedlist_nx_add): New declarations.
3091 (struct gl_list_implementation): Rename and change methods accordingly.
3092 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
3093 (gl_list_nx_create): Renamed from gl_list_create.
3094 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3095 (gl_list_nx_set_at): Renamed from gl_list_set_at.
3096 (gl_list_nx_add_first): Renamed from gl_list_add_first.
3097 (gl_list_nx_add_last): Renamed from gl_list_add_last.
3098 (gl_list_nx_add_before): Renamed from gl_list_add_before.
3099 (gl_list_nx_add_after): Renamed from gl_list_add_after.
3100 (gl_list_nx_add_at): Renamed from gl_list_add_at.
3101 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3102 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
3103 gl_list_create_empty.
3104 (gl_list_nx_create): Renamed from gl_list_create.
3105 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3106 (gl_list_nx_set_at): Renamed from gl_list_set_at.
3107 (gl_list_nx_add_first): Renamed from gl_list_add_first.
3108 (gl_list_nx_add_last): Renamed from gl_list_add_last.
3109 (gl_list_nx_add_before): Renamed from gl_list_add_before.
3110 (gl_list_nx_add_after): Renamed from gl_list_add_after.
3111 (gl_list_nx_add_at): Renamed from gl_list_add_at.
3112 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3113 * lib/gl_array_list.c: Don't include xalloc.h.
3114 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
3115 NULL upon out-of-memory.
3116 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
3118 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
3119 Change return type to 'int'.
3120 (gl_array_nx_set_at): Renamed from gl_array_set_at.
3121 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3122 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
3124 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
3126 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
3128 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
3130 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
3132 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
3134 (gl_array_list_implementation): Update.
3135 * lib/gl_carray_list.c: Don't include xalloc.h.
3136 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
3137 Return NULL upon out-of-memory.
3138 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
3140 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
3141 Change return type to 'int'.
3142 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
3143 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3144 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
3146 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
3148 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
3150 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
3151 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
3152 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
3154 (gl_carray_list_implementation): Update.
3155 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
3156 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
3157 gl_linked_create_empty. Return NULL upon out-of-memory.
3158 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
3160 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
3161 Change return type to 'int'. Return -1 upon out-of-memory.
3162 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
3164 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
3166 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
3168 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
3169 NULL upon out-of-memory.
3170 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
3172 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
3174 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
3176 * lib/gl_linked_list.c: Don't include xalloc.h.
3177 (gl_linked_list_implementation): Update.
3178 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
3179 (add_to_bucket): Change return type to 'int'.
3180 (gl_linkedhash_list_implementation): Update.
3181 * lib/gl_anytree_list1.h (free_subtree): New function.
3182 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
3183 gl_tree_create_empty. Return NULL upon out-of-memory.
3184 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
3185 Change return type to 'int'. Return -1 upon out-of-memory.
3186 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
3188 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
3189 (gl_tree_remove_node): New function, moved here from
3190 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
3191 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
3193 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
3194 malloc, not xmalloc. Return NULL upon out-of-memory.
3195 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3197 (gl_tree_remove_node_from_tree): New function, extracted from
3198 gl_tree_remove_node.
3199 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3201 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3203 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3205 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3207 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3208 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
3209 not xmalloc. Return NULL upon out-of-memory.
3210 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3212 (gl_tree_remove_node_from_tree): New function, extracted from
3213 gl_tree_remove_node.
3214 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3216 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3218 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3220 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3222 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3223 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
3224 gl_anytree_list1.h before gl_anyavltree_list2.h.
3225 (gl_avltree_list_implementation): Update.
3226 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
3227 gl_anytree_list1.h before gl_anyavltree_list2.h.
3228 (gl_rbtree_list_implementation): Update.
3229 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
3230 Change return type to 'int'. Return -1 upon out-of-memory. Use
3232 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
3233 (gl_avltreehash_list_implementation): Update.
3234 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
3235 (gl_rbtreehash_list_implementation): Update.
3236 * modules/array-list (Depends-on): Remove xalloc.
3237 * modules/carray-list (Depends-on): Likewise.
3238 * modules/linked-list (Depends-on): Likewise.
3239 * modules/linkedhash-list (Depends-on): Likewise.
3240 * modules/avltree-list (Depends-on): Likewise.
3241 * modules/rbtree-list (Depends-on): Likewise.
3242 * modules/avltreehash-list (Depends-on): Likewise.
3243 * modules/rbtreehash-list (Depends-on): Likewise.
3245 * modules/xsublist: New file.
3246 * lib/gl_xsublist.h: New file.
3247 * lib/gl_xsublist.c: New file.
3248 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
3249 (gl_sublist_nx_create): New declaration.
3250 * lib/gl_sublist.c: Don't include xalloc.h.
3251 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
3252 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
3253 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
3254 Change return type to 'int'. Return -1 upon out-of-memory.
3255 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
3257 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
3258 NULL upon out-of-memory.
3259 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
3261 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
3262 NULL upon out-of-memory.
3263 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
3264 NULL upon out-of-memory.
3265 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
3267 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
3268 (gl_sublist_list_implementation): Update.
3269 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
3271 * modules/sublist (Depends-on): Remove xalloc.
3273 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
3274 * tests/test-carray_list.c: Likewise.
3275 * tests/test-linked_list.c: Likewise.
3276 * tests/test-linkedhash_list.c: Likewise.
3277 * tests/test-avltree_list.c: Likewise.
3278 * tests/test-rbtree_list.c: Likewise.
3279 * tests/test-avltreehash_list.c: Likewise.
3280 * tests/test-rbtreehash_list.c: Likewise.
3281 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
3282 * modules/carray-list-tests (Makefile.am): Likewise.
3283 * modules/linked-list-tests (Makefile.am): Likewise.
3284 * modules/linkedhash-list-tests (Makefile.am): Likewise.
3285 * modules/avltree-list-tests (Makefile.am): Likewise.
3286 * modules/rbtree-list-tests (Makefile.am): Likewise.
3287 * modules/avltreehash-list-tests (Makefile.am): Likewise.
3288 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3290 * NEWS: Mention the changes.
3292 * lib/clean-temp.c: Include gl_xlist.h.
3293 * modules/clean-temp (Depends-on): Add xlist.
3295 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
3296 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
3298 * tests/test-array_oset.c: Include gl_xlist.h.
3299 * modules/array-oset-tests (Depends-on): Add xlist.
3301 Reported by José E. Marchesi <jemarch@gnu.org>.
3303 2009-12-13 Bruno Haible <bruno@clisp.org>
3305 Move the malloc checking from module 'oset' to new module 'xoset'.
3306 * modules/xoset: New file.
3307 * lib/gl_xoset.h: New file.
3308 * lib/gl_xoset.c: New file.
3309 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
3311 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
3312 (struct gl_oset_implementation): Rename and change methods accordingly.
3313 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
3314 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3315 'int'. Mark as __warn_unused_result__.
3316 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
3317 gl_oset_create_empty.
3318 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3320 * lib/gl_array_oset.c: Don't include xalloc.h.
3321 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
3322 malloc, not xmalloc.
3323 (grow): Change return type to 'int'. Don't call xalloc_die.
3324 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
3326 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
3328 (gl_array_oset_implementation): Update.
3329 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
3330 gl_tree_create_empty.
3331 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
3333 * lib/gl_avltree_oset.c: Don't include xalloc.h.
3334 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3336 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3338 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3340 (gl_avltree_oset_implementation): Update.
3341 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
3342 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3344 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3346 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3348 (gl_rbtree_oset_implementation): Update.
3349 * modules/array-oset (Depends-on): Remove xalloc.
3350 * modules/avltree-oset (Depends-on): Likewise.
3351 * modules/rbtree-oset (Depends-on): Likewise.
3352 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
3353 * tests/test-avltree_oset.c: Likewise.
3354 * tests/test-rbtree_oset.c: Likewise.
3355 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
3356 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
3357 * modules/rbtree-oset-tests (Makefile.am): Likewise.
3358 * NEWS: Mention the change.
3360 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
3362 maint.mk: allow a project to override release-prep commands
3363 * top/maint.mk (alpha, beta, stable): Move release-preparatory
3364 commands into a new rule.
3365 (release-prep): New rule.
3366 (release-prep-hook): New overridable variable.
3368 2009-12-13 Bruno Haible <bruno@clisp.org>
3370 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
3372 2009-12-13 Jim Meyering <meyering@redhat.com>
3374 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
3375 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
3377 2009-12-12 Bruno Haible <bruno@clisp.org>
3380 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
3382 2009-12-12 Karl Berry <karl@gnu.org>
3384 * config/srclist.txt (strtoll.c): tab changes, no more sync.
3386 2009-12-12 Bruno Haible <bruno@clisp.org>
3388 * m4/po.m4: Undo incorrect untabification.
3390 2009-12-12 Bruno Haible <bruno@clisp.org>
3392 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
3393 * modules/c-strtod (Depends-on): Add locale.
3394 * modules/c-strtold (Depends-on): Likewise.
3396 2009-12-12 Bruno Haible <bruno@clisp.org>
3398 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
3400 2009-12-11 Eric Blake <ebb9@byu.net>
3402 setenv: relax requirement in light of POSIX ruling
3403 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
3405 * tests/test-setenv.c (main): Relax test.
3406 * tests/test-unsetenv.c (main): Likewise.
3407 * doc/posix-functions/setenv.texi (setenv): Document this.
3408 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
3410 2009-12-11 Bruno Haible <bruno@clisp.org>
3412 New module 'fd-safer-flag'.
3413 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
3414 * lib/dup-safer.c (dup_safer_flag): Remove function.
3415 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
3416 * lib/fd-safer.c (fd_safer_flag): Remove function.
3417 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
3418 * modules/cloexec (configure.ac): Drop indicator macro.
3419 * modules/fd-safer-flag: New file.
3420 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
3421 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
3422 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
3424 2009-12-11 Bruno Haible <bruno@clisp.org>
3426 Tests for module 'nl_langinfo'.
3427 * modules/nl_langinfo-tests: New file.
3428 * tests/test-nl_langinfo.sh: New file.
3429 * tests/test-nl_langinfo.c: New file.
3431 New module 'nl_langinfo'.
3432 * lib/nl_langinfo.c: New file.
3433 * m4/nl_langinfo.m4: New file.
3434 * modules/nl_langinfo: New file.
3435 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
3437 2009-12-11 Bruno Haible <bruno@clisp.org>
3439 Tests for module 'langinfo'.
3440 * modules/langinfo-tests: New file.
3441 * tests/test-langinfo.c: New file.
3443 New module 'langinfo'.
3444 * lib/langinfo.in.h: New file.
3445 * m4/langinfo_h.m4: New file.
3446 * modules/langinfo: New file.
3447 * doc/posix-headers/langinfo.texi: Mention the new module.
3449 2009-12-11 Bruno Haible <bruno@clisp.org>
3451 * lib/config.charset: Untabify.
3453 2009-12-11 Bruno Haible <bruno@clisp.org>
3455 * modules/unistd-safer (configure.ac): Drop indicator macro.
3457 2009-12-11 Bruno Haible <bruno@clisp.org>
3459 Move pipe2-safer code to its own file.
3460 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
3461 * lib/pipe-safer.c (pipe2_safer): Remove function.
3462 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
3463 (Makefile.am): Add it to lib_SOURCES.
3465 2009-12-10 Bruno Haible <bruno@clisp.org>
3467 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
3469 2009-12-10 Bruno Haible <bruno@clisp.org>
3471 Declare which arguments expect non-NULL values, for GCC and clang.
3472 * build-aux/arg-nonnull.h: New file.
3473 * modules/arg-nonnull: New file.
3474 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
3475 (inet_ntop, inet_pton): Use it.
3476 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
3477 (closedir, dirfd, opendir, scandir, alphasort): Use it.
3478 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
3479 (open, openat): Use it.
3480 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
3482 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
3483 (getopt, getopt_long, getopt_long_only): Use it.
3484 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
3485 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
3487 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
3488 (iconv_open): Use it.
3489 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
3490 (strtoimax, strtoumax): Use it.
3491 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
3492 (duplocale): Use it.
3493 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
3494 (frexp, frexpl): Use it.
3495 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
3496 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
3497 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
3498 (tsearch, tfind, tdelete, twalk): Use it.
3499 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
3500 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
3501 sigpending): Use it.
3502 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
3503 (posix_spawn, posix_spawnp, posix_spawnattr_init,
3504 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
3505 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
3506 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
3507 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
3508 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
3509 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
3510 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
3511 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
3512 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
3514 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
3515 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
3516 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
3517 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
3518 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
3519 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
3520 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
3521 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
3522 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
3523 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
3524 strtoull, unsetenv): Use it.
3525 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
3526 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
3527 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
3528 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3529 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3530 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
3531 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
3532 (strcasecmp, strncasecmp): Use it.
3533 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
3534 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
3535 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
3536 rpl_setsockopt): Use it.
3537 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
3538 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
3539 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
3540 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
3541 (gettimeofday): Use it.
3542 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
3544 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
3546 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
3547 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
3548 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
3549 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
3550 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
3551 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
3552 unlinkat, write): Use it.
3553 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
3554 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
3555 * lib/argv-iter.h: Include arg-nonnull.h.
3556 (_ATTRIBUTE_NONNULL_): Remove macro.
3557 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
3558 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
3559 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
3561 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
3562 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
3563 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
3564 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
3565 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
3566 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
3567 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
3568 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
3569 * modules/arpa_inet (Depends-on): Add arg-nonnull.
3570 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
3571 * modules/dirent (Depends-on): Add arg-nonnull.
3572 (Makefile.am): Insert arg-nonnull.h into dirent.h.
3573 * modules/fcntl-h (Depends-on): Add arg-nonnull.
3574 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
3575 * modules/fnmatch (Depends-on): Add arg-nonnull.
3576 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
3577 * modules/getopt-posix (Depends-on): Add arg-nonnull.
3578 (Makefile.am): Insert arg-nonnull.h into getopt.h.
3579 * modules/glob (Depends-on): Add arg-nonnull.
3580 (Makefile.am): Insert arg-nonnull.h into glob.h.
3581 * modules/iconv_open (Depends-on): Add arg-nonnull.
3582 (Makefile.am): Insert arg-nonnull.h into iconv.h.
3583 * modules/inttypes (Depends-on): Add arg-nonnull.
3584 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
3585 * modules/locale (Depends-on): Add arg-nonnull.
3586 (Makefile.am): Insert arg-nonnull.h into locale.h.
3587 * modules/math (Depends-on): Add arg-nonnull.
3588 (Makefile.am): Insert arg-nonnull.h into math.h.
3589 * modules/netdb (Depends-on): Add arg-nonnull.
3590 (Makefile.am): Insert arg-nonnull.h into netdb.h.
3591 * modules/search (Depends-on): Add arg-nonnull.
3592 (Makefile.am): Insert arg-nonnull.h into search.h.
3593 * modules/signal (Depends-on): Add arg-nonnull.
3594 (Makefile.am): Insert arg-nonnull.h into signal.h.
3595 * modules/spawn (Depends-on): Add arg-nonnull.
3596 (Makefile.am): Insert arg-nonnull.h into spawn.h.
3597 * modules/stdio (Depends-on): Add arg-nonnull.
3598 (Makefile.am): Insert arg-nonnull.h into stdio.h.
3599 * modules/stdlib (Depends-on): Add arg-nonnull.
3600 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
3601 * modules/string (Depends-on): Add arg-nonnull.
3602 (Makefile.am): Insert arg-nonnull.h into string.h.
3603 * modules/strings (Depends-on): Add arg-nonnull.
3604 (Makefile.am): Insert arg-nonnull.h into strings.h.
3605 * modules/sys_socket (Depends-on): Add arg-nonnull.
3606 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
3607 * modules/sys_stat (Depends-on): Add arg-nonnull.
3608 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
3609 * modules/sys_time (Depends-on): Add arg-nonnull.
3610 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
3611 * modules/sys_times (Depends-on): Add arg-nonnull.
3612 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
3613 * modules/sys_utsname (Depends-on): Add arg-nonnull.
3614 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
3615 * modules/time (Depends-on): Add arg-nonnull.
3616 (Makefile.am): Insert arg-nonnull.h into time.h.
3617 * modules/unistd (Depends-on): Add arg-nonnull.
3618 (Makefile.am): Insert arg-nonnull.h into unistd.h.
3619 * modules/wchar (Depends-on): Add arg-nonnull.
3620 (Makefile.am): Insert arg-nonnull.h into wchar.h.
3621 * modules/argv-iter (Depends-on): Add arg-nonnull.
3622 * tests/test-canonicalize.c (null_ptr): New function.
3624 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
3626 * tests/test-memmem.c (null_ptr): New function.
3628 Reported by Jim Meyering.
3630 2009-12-10 Bruno Haible <bruno@clisp.org>
3632 Use spaces for indentation, not tabs.
3633 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3634 * m4/*.m4: Untabify.
3635 * build-aux/*.h: Untabify.
3636 * tests/**/*.[hc]: Untabify.
3637 * README: New section "Indent with spaces, not TABs", based on
3638 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
3639 * NEWS: Mention the change.
3641 2009-12-10 Bruno Haible <bruno@clisp.org>
3643 pty test: Fix link error.
3644 * modules/pty-tests (Makefile.am): Add the default LDADD value to
3647 2009-12-07 Simon Josefsson <simon@josefsson.org>
3649 * modules/pty: New file.
3650 * modules/pty-tests: New file.
3651 * m4/pty.m4: New file.
3652 * tests/test-pty.c: New file.
3653 * doc/glibc-headers/pty.texi: Modified.
3654 * doc/glibc-functions/forkpty.texi: Modified.
3655 * doc/glibc-functions/openpty.texi: Modified.
3657 2009-12-10 Bruno Haible <bruno@clisp.org>
3659 Avoid syntax error in C++ mode.
3660 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
3662 2009-12-10 Bruno Haible <bruno@clisp.org>
3664 Use sed with option -e.
3665 * gnulib-tool (func_version, func_emit_copyright_notice,
3666 func_emit_initmacro_end, func_import, func_create_testdir): Pass
3668 * modules/link-warning (Makefile.am): Likewise.
3670 2009-12-10 Jim Meyering <meyering@redhat.com>
3672 mgetgroups: do not write bytes beyond end of malloc'd buffer
3673 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
3674 username, we call getgroups with a one-element-shorter buffer,
3675 but still told it the length was original, max_n_groups.
3677 2009-12-09 Eric Blake <ebb9@byu.net>
3679 cloexec: relax license
3680 * modules/cloexec (Maintainer): Add myself.
3681 (License): Use LGPL, not GPL.
3683 link-warning: optimize generation
3684 * modules/link-warning (Makefile.am): Reduce process usage.
3686 2009-12-09 Bruno Haible <bruno@clisp.org>
3688 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
3689 workaround was added on 2009-11-17.
3691 2009-12-09 Jim Meyering <meyering@redhat.com>
3692 Bruno Haible <bruno@clisp.org>
3694 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
3695 * modules/link-warning (Makefile.am): Make the comment-removing sed
3696 command more robust in the face of bootstrap-prepended comment lines.
3698 2009-12-09 Bruno Haible <bruno@clisp.org>
3700 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
3703 2009-12-09 Simon Josefsson <simon@josefsson.org>
3704 Bruno Haible <bruno@clisp.org>
3706 * build-aux/link-warning.h: Add copyright notice.
3707 * modules/link-warning (Makefile.am): Generate link-warning.h from
3708 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
3709 * NEWS: Mention change in link-warning module.
3710 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
3711 * modules/dirent (Makefile.am): Add dependency to dirent.h.
3712 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
3713 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
3714 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
3715 * modules/math (Makefile.am): Add dependency to math.h.
3716 * modules/search (Makefile.am): Add dependency to search.h.
3717 * modules/signal (Makefile.am): Add dependency to signal.h.
3718 * modules/spawn (Makefile.am): Add dependency to spawn.h.
3719 * modules/stdio (Makefile.am): Add dependency to stdio.h.
3720 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
3721 * modules/string (Makefile.am): Add dependency to string.h.
3722 * modules/strings (Makefile.am): Add dependency to strings.h.
3723 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
3724 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
3725 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
3726 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
3727 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
3728 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
3729 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
3730 * modules/unistd (Makefile.am): Add dependency to unistd.h.
3731 * modules/wchar (Makefile.am): Add dependency to wchar.h.
3733 2009-12-09 Bruno Haible <bruno@clisp.org>
3735 fchdir: Optimize away rpl_fstat when possible.
3736 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
3737 REPLACE_OPEN_DIRECTORY.
3738 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
3740 2009-12-09 Bruno Haible <bruno@clisp.org>
3742 * lib/fchdir.c: Update comment.
3744 2009-12-09 Bruno Haible <bruno@clisp.org>
3746 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
3748 2009-12-08 Eric Blake <ebb9@byu.net>
3750 fchdir: avoid memory leak on re-registration.
3751 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
3753 2009-12-08 Jim Meyering <meyering@redhat.com>
3755 init.sh: avoid Solaris 10 /bin/sh portability problem
3756 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
3758 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
3759 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
3761 tests/init.sh relied on that, accepting a --set-path=DIR argument,
3762 and two tests used that idiom.
3763 * tests/init.sh: Update suggested usage comments.
3764 (path_prepend_): New function, to be used in place
3765 of the --src-path=DIR option.
3766 (setup_): Move PATH-prepending code into path_prepend_.
3767 * tests/test-pread.sh: Adapt to new usage.
3768 * tests/test-xalloc-die.sh: Likewise.
3770 2009-12-08 Simon Josefsson <simon@josefsson.org>
3772 * doc/gnulib.texi (Glibc pty.h): Add.
3773 * doc/glibc-functions/forkpty.texi: Add.
3774 * doc/glibc-functions/openpty.texi: Add.
3775 Suggested by Bruno Haible.
3777 2009-12-08 Eric Blake <ebb9@byu.net>
3779 fchdir: fix logic bugs
3780 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
3781 * tests/test-fchdir.c (main): Enhance test.
3782 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
3785 dup2: fix logic bugs
3786 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
3787 REPLACE_DUP2 to decide when rpl_dup2 is needed.
3788 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
3790 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
3792 2009-12-07 Eric Blake <ebb9@byu.net>
3794 unlink: fix m4 detection
3795 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
3797 unistd-safer: add unit test
3798 * modules/unistd-safer-tests: New file.
3799 * tests/test-dup-safer.c: Likewise.
3800 * tests/test-cloexec.c (setmode): Avoid compiler warning.
3801 * tests/test-dup2.c (setmode): Likewise.
3802 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
3804 cloexec: preserve text vs. binary across dup_cloexec
3805 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
3807 * modules/dup2-tests (Depends-on): Add binary-io.
3808 * modules/cloexec-tests (Depends-on): Likewise.
3809 * tests/test-dup2.c (setmode, is_mode): New helpers.
3810 (main): Add tests that translation mode is preserved.
3811 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
3812 Reported by Bruno Haible.
3814 mgetgroups: reduce duplicate listings
3815 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
3817 * tests/test-chown.h (test_chown): Simplify client.
3818 * tests/test-lchown.h (test_lchown): Likewise.
3820 2009-12-06 Bruno Haible <bruno@clisp.org>
3822 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
3825 2009-12-06 Bruno Haible <bruno@clisp.org>
3827 * lib/progname.c: Include stdio.h, stdlib.h.
3828 (set_program_name): Reject a NULL argument.
3830 2009-12-05 Eric Blake <ebb9@byu.net>
3832 pipe2-safer: new module
3833 * modules/pipe2-safer: New file.
3834 * lib/unistd-safer.h (pipe2_safer): New prototype.
3835 * lib/unistd--.h (pipe2): New wrapper.
3836 * lib/pipe-safer.c (pipe2_safer): New function.
3837 * modules/pipe (Depends-on): Add pipe2-safer.
3838 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
3840 stdlib-safer: preserve cloexec flag for mkostemp[s]
3841 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
3844 unistd-safer: allow preservation of cloexec status via flag
3845 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
3847 * lib/dup-safer.c (dup_safer_flag): New function.
3848 * lib/fd-safer.c (fd_safer_flag): Likewise.
3849 * modules/cloexec (configure.ac): Set witness.
3851 test-dup2: enhance test
3852 * modules/dup2-tests (Depends-on): Add cloexec.
3853 * tests/test-dup2.c (main): Enhance test.
3855 cloexec: add dup_cloexec
3856 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
3857 header and comments.
3858 * lib/cloexec.c (set_cloexec_flag): Add comments.
3859 (dup_cloexec): New function, with mingw implementation borrowed
3861 * lib/w32spawn.h (dup_noinherit): ...here.
3862 * modules/execute (Depends-on): Add cloexec.
3863 * modules/pipe (Depends-on): Likewise.
3864 * modules/cloexec (Depends-on): Add dup2.
3865 * modules/cloexec-tests (Files): New file.
3866 * tests/test-cloexec.c: Likewise.
3868 test-xalloc-die: fix test for mingw
3869 * modules/xalloc-die-tests (Files): Add tests/init.sh.
3870 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
3871 directory and .exe suffix off argv[0] output.
3873 test-fseeko: fix test for mingw
3874 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
3875 than undefining fseek, so test will pass on mingw.
3877 2009-12-05 Bruno Haible <bruno@clisp.org>
3879 * lib/progname.h (set_program_name): Clarify specification.
3880 * lib/progname.c (set_program_name): Likewise.
3881 Reported by Jim Meyering.
3883 2009-12-05 Jim Meyering <meyering@redhat.com>
3885 maint.mk: backslash-escape parens in default regexp
3886 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
3887 backslash-escape the literal parentheses.
3889 maint.mk: news-date-check: use grep -E
3890 * top/maint.mk (today): Define a Make variable, not a...
3891 (news-date-check): ...shell variable.
3892 (news-date-regexp): Use the Make variable.
3893 Use grep's -E option. Change the failing diagnostic to mention
3894 the variable, $(news-date-regexp).
3896 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
3898 maintainer-makefile: allow customization of NEWS entry format
3899 * top/maint.mk (news-date-regexp): New overridable variable.
3900 (news-date-check): Use it.
3902 2009-12-04 Eric Blake <ebb9@byu.net>
3904 mgetgroups: add xgetgroups, and avoid ENOSYS failures
3905 * lib/mgetgroups.h (xgetgroups): New prototype.
3906 * lib/mgetgroups.c (xgetgroups): New wrapper.
3907 (mgetgroups): Handle ENOSYS.
3908 * modules/mgetgroups (Depends-on): Add realloc.
3909 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
3911 mgetgroups: avoid argument promotion issues with -1
3912 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
3914 * tests/test-chown.h (getegid, test_chown): Likewise.
3915 * tests/test-lchown.h (getegid, test_lchown): Likewise.
3917 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
3919 exclude: Fix header file problems.
3920 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
3922 2009-12-01 Jim Meyering <meyering@redhat.com>
3924 fts: fts_open: do not let an empty string cause immediate failure
3925 This is required in support of GNU rm, for which the command
3926 "rm A '' B" must process and remove both A and B, in spite of
3927 the empty string argument.
3928 * lib/fts.c (fts_open): Do not let the presence of an empty string
3929 cause fts_open to fail immediately. Most fts-using tools must be
3930 able to process all arguments, in order, and can be expected to
3931 diagnose such arguments themselves.
3933 2009-11-30 Eric Blake <ebb9@byu.net>
3935 utimens: fix compilation error
3936 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
3937 Declare variable at right scope.
3939 2009-11-29 Jim Meyering <meyering@redhat.com>
3941 bootstrap: handle perl-5.11's changed --version output
3942 * build-aux/bootstrap (get_version): Handle perl separately,
3943 since perl-5.11's --version output is different.
3945 2009-11-28 Jim Meyering <meyering@redhat.com>
3947 userspec: depend on the inttostr module, too
3948 * modules/userspec (Depends-on): Add inttostr.
3950 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
3951 * lib/userspec.c (parse_with_separator): Do not accept a user ID
3952 number of MAXUID when it evaluates to (uid_t) -1.
3953 Likewise for group ID. Reported by Matt McCutchen in
3954 <http://savannah.gnu.org/bugs/?28113>
3956 userspec: reformat to use spaces, not TABs
3957 * lib/userspec.c: Expand TABs to spaces.
3958 Add Emacs' "indent-tabs-mode: nil" hint.
3960 2009-11-27 Eric Blake <ebb9@byu.net>
3962 getopt-gnu: flush out another BSD bug
3963 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
3964 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
3966 * tests/test-getopt.h (test_getopt): End lists with NULL.
3967 * tests/test-getopt_long.h (test_getopt_long): Likewise.
3968 (test_getopt_long_posix): Enhance test.
3969 * modules/getopt-posix-tests (Depends-on): Add stdbool.
3970 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
3972 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3975 2009-11-27 Simon Josefsson <simon@josefsson.org>
3977 * modules/idpriv-droptemp-tests (Notice): Fix text.
3979 2009-11-27 Jim Meyering <meyering@redhat.com>
3981 test-xalloc-die: avoid spurious failure due to libtool argv difference
3982 In a libtool-enabled project, this test would fail due to a difference
3983 in the emitted program name, e.g.,
3984 -test-xalloc-die: memory exhausted
3985 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
3986 Use program to avoid that.
3987 * modules/xalloc-die-tests (Depends-on): Add progname.
3988 * tests/test-xalloc-die.c: Include progname.h".
3989 (program_name): Remove decl.
3990 (main): Call set_program_name.
3991 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
3993 2009-11-26 Richard Jones <rjones@redhat.com>
3995 w32sock: leave win32 error in place.
3996 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
3998 2009-11-26 Eric Blake <ebb9@byu.net>
4000 init.sh: suggest to use skip_ and fail_ functions in comments
4001 * tests/init.sh: Add a sentence.
4003 2009-11-25 Bruno Haible <bruno@clisp.org>
4005 init.sh: add documentation in comments
4006 * tests/init.sh: Add some developer and user documentation.
4008 2009-11-26 Jim Meyering <meyering@redhat.com>
4010 init.sh: accommodate even those who specify bogus srcdir manually
4011 * tests/init.sh: Normally, srcdir is guaranteed by automake and
4012 configure-time tests to be sanitized, so that there is no need to
4013 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
4014 (with no double quotes) suffices. However, since tests may be
4015 invoked manually, and since you may explicitly set srcdir to the
4016 name of a directory containing spaces, do quote its uses here.
4017 * tests/test-pread.sh: Likewise.
4018 Suggested by Bruno Haible.
4020 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
4021 * tests/test-pread.sh: Write no data into the pipe, because
4022 test-pread actually reads none. This avoids a diagnostic,
4023 "bash: echo: write error: Broken pipe", that arises in the unusual
4024 event something is ignoring SIGPIPE, and might be interpreted
4025 as some sort of failure. Reported by Bruno Haible.
4027 2009-11-25 Jim Meyering <meyering@redhat.com>
4029 test-pread: cover failure with ESPIPE and EINVAL
4030 * tests/test-pread.c (main): Test for failure, too.
4031 * tests/test-pread.sh: Invoke with stdin on a pipe.
4032 Suggested by Eric Blake.
4034 pread: improvement and fix
4035 * modules/pread (Depends-on): Depend on lseek, for portability to
4036 e.g., mingw. Suggested by Eric Blake.
4037 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
4039 unistd.in.h: correct declaration of pread
4040 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
4041 Reported by Richard W.M. Jones.
4043 test-pread.sh: distribute the test script
4044 * modules/pread-tests (Files): Include test-pread.sh.
4046 test-pread.sh: clean up
4047 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
4048 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
4049 That is unnecessary, since it's always ".".
4050 Suggestion from Eric Blake.
4052 test-pread.sh: make executable
4053 * tests/test-pread.sh: Set executable bit.
4054 Reported by Eric Blake.
4056 correct typo in test-pread.sh
4057 * tests/test-pread.sh: Add #! line.
4060 * tests/test-pread.c: New file.
4061 * tests/test-pread.sh: Likewise.
4062 * modules/pread-tests: Likewise.
4065 * modules/pread: New file.
4066 * lib/unistd.in.h (pread): Define/declare.
4067 * lib/pread.c (pread): New file.
4068 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
4069 * modules/unistd (Makefile.am): Substitute witnesses.
4070 * doc/posix-functions/pread.texi (pread): Update.
4071 * MODULES.html.sh: Add pread.
4073 2009-11-25 Jim Meyering <meyering@redhat.com>
4075 tests/init.sh: new file to be used via most *.sh tests
4076 * tests/init.sh: New file.
4078 2009-11-25 Eric Blake <ebb9@byu.net>
4080 utimens: work around older Linux failure with symlinks
4081 * lib/utimens.c (lutimensat_works_really): New variable.
4082 (fdutimens, lutimens): Use it to manage kernels that support
4083 nanosecond times on files, but not on symlinks.
4084 Reported by OndÅ™ej VaÅ¡Ãk.
4086 utimes: fix configure grammar
4087 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
4089 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
4091 regex: Fix fastmap for multibyte character ranges.
4092 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
4093 characters when a multibyte character range is included.
4095 2009-11-22 Andy Wingo <wingo@pobox.com>
4097 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
4098 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
4100 2009-11-24 Bruno Haible <bruno@clisp.org>
4102 doc: Most *_l functions exist in MacOS X 10.5.
4103 * doc/posix-functions/duplocale.texi: Update platforms list.
4104 * doc/posix-functions/freelocale.texi: Likewise.
4105 * doc/posix-functions/newlocale.texi: Likewise.
4106 * doc/posix-functions/uselocale.texi: Likewise.
4107 * doc/posix-functions/isalnum_l.texi: Likewise.
4108 * doc/posix-functions/isalpha_l.texi: Likewise.
4109 * doc/posix-functions/isblank_l.texi: Likewise.
4110 * doc/posix-functions/iscntrl_l.texi: Likewise.
4111 * doc/posix-functions/isdigit_l.texi: Likewise.
4112 * doc/posix-functions/isgraph_l.texi: Likewise.
4113 * doc/posix-functions/islower_l.texi: Likewise.
4114 * doc/posix-functions/isprint_l.texi: Likewise.
4115 * doc/posix-functions/ispunct_l.texi: Likewise.
4116 * doc/posix-functions/isspace_l.texi: Likewise.
4117 * doc/posix-functions/isupper_l.texi: Likewise.
4118 * doc/posix-functions/iswalnum_l.texi: Likewise.
4119 * doc/posix-functions/iswalpha_l.texi: Likewise.
4120 * doc/posix-functions/iswblank_l.texi: Likewise.
4121 * doc/posix-functions/iswcntrl_l.texi: Likewise.
4122 * doc/posix-functions/iswctype_l.texi: Likewise.
4123 * doc/posix-functions/iswdigit_l.texi: Likewise.
4124 * doc/posix-functions/iswgraph_l.texi: Likewise.
4125 * doc/posix-functions/iswlower_l.texi: Likewise.
4126 * doc/posix-functions/iswprint_l.texi: Likewise.
4127 * doc/posix-functions/iswpunct_l.texi: Likewise.
4128 * doc/posix-functions/iswspace_l.texi: Likewise.
4129 * doc/posix-functions/iswupper_l.texi: Likewise.
4130 * doc/posix-functions/iswxdigit_l.texi: Likewise.
4131 * doc/posix-functions/isxdigit_l.texi: Likewise.
4132 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
4133 * doc/posix-functions/strcasecmp_l.texi: Likewise.
4134 * doc/posix-functions/strcoll_l.texi: Likewise.
4135 * doc/posix-functions/strfmon_l.texi: Likewise.
4136 * doc/posix-functions/strftime_l.texi: Likewise.
4137 * doc/posix-functions/strncasecmp_l.texi: Likewise.
4138 * doc/posix-functions/strxfrm_l.texi: Likewise.
4139 * doc/posix-functions/tolower_l.texi: Likewise.
4140 * doc/posix-functions/toupper_l.texi: Likewise.
4141 * doc/posix-functions/towctrans_l.texi: Likewise.
4142 * doc/posix-functions/towlower_l.texi: Likewise.
4143 * doc/posix-functions/towupper_l.texi: Likewise.
4144 * doc/posix-functions/wcscoll_l.texi: Likewise.
4145 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
4146 * doc/posix-functions/wctrans_l.texi: Likewise.
4147 * doc/posix-functions/wctype_l.texi: Likewise.
4148 * doc/glibc-functions/strptime_l.texi: Likewise.
4149 * doc/glibc-functions/strtod_l.texi: Likewise.
4150 * doc/glibc-functions/strtof_l.texi: Likewise.
4151 * doc/glibc-functions/strtol_l.texi: Likewise.
4152 * doc/glibc-functions/strtold_l.texi: Likewise.
4153 * doc/glibc-functions/strtoll_l.texi: Likewise.
4154 * doc/glibc-functions/strtoul_l.texi: Likewise.
4155 * doc/glibc-functions/strtoull_l.texi: Likewise.
4156 * doc/glibc-functions/wcsftime_l.texi: Likewise.
4157 * doc/glibc-functions/wcstod_l.texi: Likewise.
4158 * doc/glibc-functions/wcstof_l.texi: Likewise.
4159 * doc/glibc-functions/wcstol_l.texi: Likewise.
4160 * doc/glibc-functions/wcstold_l.texi: Likewise.
4161 * doc/glibc-functions/wcstoll_l.texi: Likewise.
4162 * doc/glibc-functions/wcstoul_l.texi: Likewise.
4163 * doc/glibc-functions/wcstoull_l.texi: Likewise.
4165 2009-11-24 Bruno Haible <bruno@clisp.org>
4167 duplocale: Fix logic bug.
4168 * lib/duplocale.c: Don't include <langinfo.h>.
4169 (_NL_LOCALE_NAME): Remove macro.
4170 (rpl_duplocale): Use setlocale instead of nl_langinfo.
4171 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
4173 2009-11-23 Jim Meyering <meyering@redhat.com>
4175 test-update-copyright: don't hard-code /usr/bin/perl
4176 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
4177 perl to print the current year. Gilles Espinasse reported that
4178 the replaced use of perl was hard-coded as /usr/bin/perl.
4180 2009-11-23 Bruno Haible <bruno@clisp.org>
4182 duplocale: Add support for glibc 2.3.x.
4183 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
4185 2009-11-22 Bruno Haible <bruno@clisp.org>
4187 vasnprintf: Tiny optimization.
4188 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
4191 2009-11-22 Bruno Haible <bruno@clisp.org>
4193 Tests for module 'duplocale'.
4194 * modules/duplocale-tests: New file.
4195 * tests/test-duplocale.c: New file.
4197 New module 'duplocale'.
4198 * m4/duplocale.m4: New file.
4199 * lib/locale.in.h (duplocale): New declaration.
4200 * lib/duplocale.c: New file.
4201 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
4202 gl_LOCALE_H_DEFAULTS): New macros.
4203 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
4204 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
4205 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
4207 * modules/duplocale: New file.
4208 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
4210 2009-11-22 Bruno Haible <bruno@clisp.org>
4212 * modules/locale-tests (configure.ac): Test for newlocale function.
4213 * tests/test-locale.c: When the system has extended locale functions,
4214 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
4216 locale: Make locale_t available when possible.
4217 * lib/locale.in.h: Include <xlocale.h> when it exists.
4218 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
4219 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
4220 * modules/locale (Depends-on): Add extensions.
4221 (Makefile.am): Also substitute HAVE_XLOCALE_H.
4222 * doc/posix-headers/locale.texi: Document the problem with locale_t.
4224 2009-11-22 Bruno Haible <bruno@clisp.org>
4227 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
4229 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
4230 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4231 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
4233 2009-11-22 Bruno Haible <bruno@clisp.org>
4235 error: account for the possibility of freopen (stdout).
4236 * lib/error.c: Include <unistd.h>.
4237 (flush_stdout): New function, extracted from error and error_at_line.
4238 Determine stdout's fd dynamically.
4239 (error, error_at_line): Invoke flush_stdout.
4240 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
4241 * modules/error (Depends-on): Add unistd.
4243 2009-11-22 Bruno Haible <bruno@clisp.org>
4245 diffseq: Add comment.
4246 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
4248 2009-11-22 Jim Meyering <meyering@redhat.com>
4250 c-stack: avoid defining an unused static function
4251 * lib/c-stack.c (find_stack_direction): Do not define this function
4252 when it will not be used.
4254 diffseq: avoid spurious gcc warnings
4255 * lib/diffseq.h (IF_LINT2): Define.
4256 (compareseq): Use it to initialize two members of "part".
4257 This avoids two used-uninitialized warnings.
4259 2009-11-21 Jim Meyering <meyering@redhat.com>
4261 c-stack: avoid "ignoring return value of `write'" warning
4262 * lib/c-stack.c: Include "ignore-value.h".
4263 (die): Explicitly ignore each write return value.
4264 * modules/c-stack (Depends-on): Add ignore-value.
4266 2009-11-21 Bruno Haible <bruno@clisp.org>
4268 diffseq: reduce scope of variable 'best'.
4269 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
4270 variable, earlier used for two different purposes.
4272 2009-11-21 Jim Meyering <meyering@redhat.com>
4274 diffseq: remove useless assignment to "best"
4275 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
4276 assignment. At that point "best" is already guaranteed to be zero.
4278 2009-11-20 Eric Blake <ebb9@byu.net>
4280 build: mention ftp redirector in release announcements
4281 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
4282 values that used to come from cfg.mk; mention FTP redirect URL.
4283 * build-aux/announce-gen: Mention the mirror list.
4284 Suggested by Karl Berry.
4286 nanosleep: improve port to mingw
4287 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
4288 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
4289 LIB_NANOSLEEP, but only when needed.
4290 * modules/select (Link): Document LIBSOCKET.
4291 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
4294 nanosleep: work around cygwin bug
4295 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
4296 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
4298 (getnow): Delete, not needed.
4299 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
4301 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
4302 clock-time, gettime.
4303 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
4305 * modules/nanosleep-tests: New test.
4306 * tests/test-nanosleep.c: New file.
4308 sleep: work around cygwin bug
4309 * lib/sleep.c (rpl_sleep): Work around the bug.
4310 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
4311 (gl_PREREQ_SLEEP): Delete unused macro.
4312 * modules/sleep (Depends-on): Add verify.
4313 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4314 * modules/unistd (Makefile.am): Substitute witness.
4315 * lib/unistd.in.h (sleep): Update prototype.
4316 * doc/posix-functions/sleep.texi (sleep): Document the bug.
4317 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
4318 * modules/sleep-tests (Depends-on): Check for alarm.
4320 2009-11-20 Jim Meyering <meyering@redhat.com>
4322 maint.mk: improve sc_prohibit_magic_number_exit
4323 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
4324 so it does not match uses like System.exit(1).
4325 Add comments showing how to correct all offenders.
4327 2009-11-19 Eric Blake <ebb9@byu.net>
4329 xalloc-die-tests: add missing library
4330 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
4332 test-xvasprintf: silence compiler warnings
4333 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
4334 empty string from gcc.
4336 2009-11-19 Jim Meyering <meyering@redhat.com>
4338 xfreopen: new module, from coreutils
4339 * modules/xfreopen: New module.
4340 * lib/xfreopen.c: New file.
4341 * lib/xfreopen.h: New file.
4342 * MODULES.html.sh (File stream based Input/Output"): Add it.
4344 2009-11-19 Eric Blake <ebb9@byu.net>
4346 manywarnings: depend on warnings
4347 * modules/manywarnings (Depends-on): Add warnings.
4349 build: avoid compiler warnings
4350 * lib/select.c (rpl_select): Delete unused variable.
4351 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
4353 2009-11-18 Eric Blake <ebb9@byu.net>
4355 tests: avoid false negative with --with-packager
4356 * tests/test-version-etc.sh: Discard packager information.
4357 * tests/test-argp-version-etc-1.sh: Likewise.
4358 Reported by Mike Frysinger.
4360 utimens: fix regression on Solaris
4361 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
4362 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
4363 can only change fd timestamps via futimesat. Instead, use an
4364 additional witness macro to avoid BSD bug.
4365 Reported by Jim Meyering.
4367 2009-11-17 Eric Blake <ebb9@byu.net>
4369 usleep: use it to simplify tests
4370 * modules/stat-time-tests (Depends-on): Add usleep.
4371 (configure.ac): Drop usleep check.
4372 * modules/chown-tests (Depends-on, configure.ac): Likewise.
4373 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
4374 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
4375 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
4376 * modules/openat-tests (Depends-on, configure.ac): Likewise.
4377 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
4378 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
4379 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
4381 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
4382 * tests/test-lchown.h (nap): Likewise.
4383 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
4384 * tests/test-stat-time.c (nap): Likewise.
4385 * tests/test-utimens-common.h (nap): Update comments.
4388 * modules/usleep: New file.
4389 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4390 * lib/usleep.c (usleep): Likewise.
4391 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
4392 * modules/unistd (Makefile.am): Substitute witnesses.
4393 * lib/unistd.in.h (usleep): Add declaration.
4394 * doc/pastposix-functions/usleep.texi (usleep): Document this.
4395 * MODULES.html.sh (Date and time): Likewise.
4396 * modules/usleep-tests (Depends-on): New test.
4397 * tests/test-usleep.c: New file.
4399 chown: work around OpenBSD bug
4400 * lib/chown.c (rpl_chown): Work around the bug.
4401 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
4402 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
4403 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
4404 * modules/chown (Depends-on): Add stdbool.
4405 * modules/lchown (Depends-on): Likewise.
4406 * doc/posix-functions/chown.texi (chown): Document the bug.
4407 * doc/posix-functions/lchown.texi (lchown): Likewise.
4408 * tests/test-lchown.h (test_chown): Relax test.
4410 mkstemp: avoid conflict with C++ keyword template
4411 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
4412 * lib/mkostemp.c (mkostemp): Likewise.
4413 * lib/mkostemps.c (mkostemps): Likewise.
4414 * lib/mkstemp.c (mkstemp): Likewise.
4415 * lib/mkstemps.c (mkstemps): Likewise.
4417 xalloc-die-tests: optimize
4418 * tests/test-xalloc-die.sh: Reduce number of processes.
4420 2009-11-17 Simon Josefsson <simon@josefsson.org>
4422 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
4423 patch from ludo@gnu.org (Ludovic Courtès).
4425 2009-11-17 Jim Meyering <meyering@redhat.com>
4427 version-etc: use proper license string
4428 * modules/version-etc (License): Use LGPL, not LGPLv3+.
4429 * modules/version-etc-fsf: Likewise.
4431 2009-11-17 Simon Josefsson <simon@josefsson.org>
4433 * tests/test-xalloc-die.sh: Add license. Check that nothing is
4434 printed to stdout. Deal with EOL differences.
4436 2009-11-17 Eric Blake <ebb9@byu.net>
4438 unsetenv: work around Solaris bug
4439 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
4440 * lib/unsetenv.c (rpl_unsetenv): Work around it.
4441 Reported by Jim Meyering.
4443 vasnprintf: avoid compiler warnings
4444 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
4446 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
4448 2009-11-17 Simon Josefsson <simon@josefsson.org>
4450 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
4451 settings since xalloc-die is no longer the self test,
4454 2009-11-17 Jim Meyering <meyering@redhat.com>
4456 test-xalloc-die.sh: make the code agree with the commit log
4457 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
4458 at the end, just in case you happen to have a test-xalloc-die
4459 program in some other PATH directory.
4461 test-xalloc-die.sh: fix a portability bug
4462 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
4463 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
4464 Otherwise, argv[0] (as often seen in diagnostics) would be too
4465 system-dependent, sometimes with, and sometimes without the leading "./".
4467 version-etc-fsf: relax license to LGPLv3+
4468 * modules/version-etc-fsf (License): Relax license.
4470 2009-11-16 Eric Blake <ebb9@byu.net>
4472 xalloc-die-tests: avoid printing null pointer
4473 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
4475 * tests/test-xalloc-die.c (program_name): Declare.
4476 * tests/test-xalloc-die.sh (tmpfiles): New file.
4478 setenv, unsetenv: work around various bugs
4479 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
4480 (setenv) [HAVE_SETENV]: Work around bugs.
4481 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
4482 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
4484 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
4485 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
4486 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
4487 * modules/stdlib (Makefile.am): Update substitutions.
4488 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
4489 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
4490 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4491 * modules/setenv-tests: New test.
4492 * modules/unsetenv-tests: Likewise.
4493 * tests/test-setenv.c: New file.
4494 * tests/test-unsetenv.c: Likewise.
4496 2009-11-16 Jim Meyering <meyering@redhat.com>
4498 version-etc: relax license to LGPLv3+
4499 * modules/version-etc (License): Relax license.
4501 better AC_REQUIRE expanded-before-required-warning avoidance
4502 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
4503 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
4504 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
4505 which is no longer needed.
4507 2009-11-16 Eric Blake <ebb9@byu.net>
4509 test-freading: clean up temporary file
4510 * tests/test-freading.c (main): Remove file on success, and use
4511 ASSERT more liberally.
4512 Reported by Jim Meyering.
4514 2009-11-16 Jim Meyering <meyering@redhat.com>
4516 avoid new AC_REQUIRE expanded-before-required warnings
4517 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
4519 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
4520 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
4522 2009-11-15 Simon Josefsson <simon@josefsson.org>
4524 * tests/test-xalloc-die.c: New file.
4525 * modules/xalloc-die-tests: New file.
4526 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
4527 XFAIL_TESTS so it can be appended by modules.
4529 2009-11-15 Simon Josefsson <simon@josefsson.org>
4531 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
4532 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
4534 2009-11-14 Eric Blake <ebb9@byu.net>
4536 fnmatch: avoid compiler warning
4537 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
4538 to silence compiler warning about mismatch signedness in ?:.
4539 Reported by Robert Millan.
4541 intprops: add double-inclusion guard
4542 * lib/intprops.h: Allow idempotent includes.
4543 Suggested by Bruce Korb.
4545 openat: detect Solaris fchownat bug
4546 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
4547 penalizing glibc chownat when only lchownat is broken.
4548 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
4549 trailing slash bugs.
4550 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
4551 * modules/openat-tests (Files): Include more files.
4552 (Depends-on): Add mgetgroups, sleep, stat-time.
4553 (configure.ac): Add additional checks.
4554 (Makefile.am): Build new test.
4555 * tests/test-fchownat.c: New file.
4557 lchown: detect Solaris and FreeBSD bug
4558 * lib/lchown.c (rpl_lchown): Work around bug.
4559 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
4560 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4561 * modules/unistd (Makefile.am): Populate it.
4562 * lib/unistd.in.h (lchown): Update declaration.
4563 * doc/posix-functions/lchown.texi (lchown): Document the bug.
4564 * modules/lchown-tests: New file.
4565 * tests/test-lchown.h (test_lchown): Likewise.
4566 * tests/test-lchown.c (main): Likewise.
4568 chown: detect Solaris and FreeBSD bug
4569 * lib/chown.c (rpl_chown): Work around bug.
4570 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
4571 (gl_PREREQ_CHOWN): Delete.
4572 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4573 * modules/unistd (Makefile.am): Populate it.
4574 * lib/unistd.in.h (chown): Update declaration.
4575 * lib/lchown.c (chown): Update client.
4576 * modules/lchown (Depends-on): Add lstat.
4577 * doc/posix-functions/chown.texi (chown): Document the bug.
4578 * doc/posix-functions/getgroups.texi (getgroups): Document
4580 * modules/chown-tests: New file.
4581 * tests/test-chown.h (test_chown): Likewise.
4582 * tests/test-chown.c (main): Likewise.
4584 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
4586 gnulib-tool: correctly detect absence of m4 directories
4587 * gnulib-tool: Avoid extra newline on data passed to wc -l.
4589 2009-11-14 Jim Meyering <meyering@redhat.com>
4591 maint.mk: Prohibit inclusion of "xalloc.h" without use.
4592 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4594 2009-11-14 John W. Eaton <jwe@gnu.org>
4596 strftime.h: wrap funtion declaration in extern "C" block
4597 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
4599 2009-11-13 Eric Blake <ebb9@byu.net>
4601 getgroups: avoid compiler warning
4602 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
4604 getgroups: work around FreeBSD bug
4605 * lib/getgroups.c (rpl_getgroups): Work around the bug.
4606 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
4607 * doc/posix-functions/getgroups.texi (getgroups): Document it.
4608 * tests/test-getgroups.c (main): Fix buffer overrun.
4610 getgroups: avoid compilation failure
4611 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
4612 * modules/getgroups (Depends-on): Add stdint.
4614 2009-11-13 Jim Meyering <meyering@redhat.com>
4616 test-getgroups: avoid compilation failure
4617 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
4619 2009-11-13 Eric Blake <ebb9@byu.net>
4621 mgetgroups: new module, taken from coreutils
4622 * modules/mgetgroups: New file.
4623 * lib/mgetgroups.h: Likewise.
4624 * lib/mgetgroups.c (mgetgroups): Likewise.
4625 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
4626 * MODULES.html.sh (Users and groups): Mention it.
4628 getgroups: don't expose GETGROUPS_T to user
4629 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
4630 an element at a time if GETGROUPS_T is wrong size.
4631 * lib/getugroups.h (getugroups): Change signature.
4632 * lib/unistd.in.h (getgroups): Likewise.
4633 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
4634 signature needs fixing.
4635 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
4637 * modules/group-member (Depends-on): Add getgroups.
4638 * lib/group-member.c (group_info, get_group_info): Use gid_t.
4639 (group_member): Rely on getgroups replacement.
4640 * lib/getugroups.c (getugroups): Use gid_t.
4641 * tests/test-getgroups.c (main): Likewise.
4642 * NEWS: Mention the signature change.
4643 * doc/posix-functions/getgroups.texi (getgroups): Mention the
4644 problem with signature.
4645 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
4646 GETGROUPS_T is still useful for setgroups.
4648 getgroups, getugroups: provide stubs for mingw
4649 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
4650 * lib/getugroups.c (getugroups): Likewise.
4651 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
4652 function. Modernize replacement scheme.
4653 (gl_PREREQ_GETGROUPS): Delete.
4654 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
4655 * modules/getgroups (configure.ac): Declare witness.
4656 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4657 * modules/unistd (Depends-on): Substitute witness.
4658 * lib/unistd.in.h (getgroups): Declare replacement.
4660 getgroups: avoid calling exit
4661 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
4663 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
4665 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
4666 exiting, in the rare case of malloc failure.
4668 getgroups: fix logic error
4669 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
4670 has more than 20 groups.
4671 * modules/getgroups-tests: New test.
4672 * tests/test-getgroups.c: New file.
4674 2009-11-13 Simon Josefsson <simon@josefsson.org>
4676 * tests/test-base64.c: Improve.
4678 2009-11-13 Simon Josefsson <simon@josefsson.org>
4680 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
4681 Blake <ebb9@byu.net>.
4683 2009-11-13 Simon Josefsson <simon@josefsson.org>
4685 * tests/test-xvasprintf.c: Add %s%s related checks.
4687 2009-11-12 Eric Blake <ebb9@byu.net>
4689 version-etc: match standards.texi style
4690 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
4691 and use <> only for URLs.
4693 2009-11-10 Kamil Dudka <kdudka@redhat.com>
4695 fts: do not fail on a submount during traversal
4696 * lib/fts.c (fts_build): Read the stat info again after opening
4697 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
4698 Original report at http://bugzilla.redhat.com/501848.
4700 2009-11-12 Jim Meyering <meyering@redhat.com>
4702 bootstrap: sync from coreutils
4703 * build-aux/bootstrap (bootstrap_epilogue): New function.
4704 Use git_modules_config in one more place. This make bootstrap's
4705 --gnulib-srcdir option more useful for testing.
4707 bootstrap: generalize autoheader check
4708 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
4711 2009-11-11 Eric Blake <ebb9@byu.net>
4713 mkfifoat: use new modules for Solaris and BSD bugs
4714 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
4715 * lib/mkfifoat.c (mknodat): Split...
4716 * lib/mknodat.c (mknodat): ...into new file.
4717 * modules/mkfifoat (Files): Ship new file.
4718 (Depends-on): Add mkfifo, mknod.
4719 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
4720 (Depends-on): Add symlink.
4721 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
4722 redundant with test_mkfifo.h.
4723 (do_mkfifoat, do_mknodat): New helpers.
4726 * modules/mknod: New file.
4727 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
4728 * lib/mknod.c (mknod): Likewise.
4729 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4731 * modules/sys_stat (Makefile.am): Substitute them.
4732 * lib/sys_stat.in.h (mknod): Declare replacement.
4733 * MODULES.html.sh (Support for systems lacking POSIX:2008):
4735 * doc/posix-functions/mknod.texi (mknod): Likewise.
4736 * modules/mknod-tests: New test.
4737 * tests/test-mknod.c: Likewise.
4740 * modules/mkfifo: New file.
4741 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
4742 * lib/mkfifo.c (mkfifo): Likewise.
4743 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4745 * modules/sys_stat (Makefile.am): Substitute them.
4746 * lib/sys_stat.in.h (mkfifo): Declare replacement.
4747 * MODULES.html.sh (Support for systems lacking POSIX:2008):
4749 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
4750 * modules/mkfifo-tests: New test.
4751 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
4752 from test-mkfifoat.c.
4753 * tests/test-mkfifo.c: New file.
4755 readlink: detect FreeBSD bug
4756 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
4758 * doc/posix-functions/readlink.texi (readlink): Document the bug.
4759 * tests/test-readlink.h (test_readlink): Enhance test.
4761 symlink: detect FreeBSD bug
4762 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
4764 * doc/posix-functions/symlink.texi (symlink): Document the bug.
4765 * tests/test-symlink.h (test_symlink): Enhance test.
4767 2009-11-10 Eric Blake <ebb9@byu.net>
4769 link: detect FreeBSD bug
4770 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
4772 * doc/posix-functions/link.texi (link): Document the bug.
4773 * tests/test-link.h (test_link): Enhance test.
4774 * tests/test-linkat.c (main): Update caller.
4776 unlink, remove: detect FreeBSD bug
4777 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
4779 * doc/posix-functions/unlink.texi (unlink): Document the bug.
4780 * doc/posix-functions/remove.texi (remove): Likewise.
4781 * tests/test-unlink.h (test_unlink): Enhance test.
4782 * tests/test-remove.c (main): Likewise.
4784 2009-11-09 Eric Blake <ebb9@byu.net>
4786 rename: detect FreeBSD bug
4787 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
4789 * modules/renameat-tests (Depends-on): Add filenamecat.
4790 * tests/test-rename.h (test_rename): Allow one more errno.
4791 * tests/test-renameat.c (main): Likewise.
4792 * doc/posix-functions/rename.texi (rename): Document the bug.
4794 open: detect FreeBSD bug
4795 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
4797 * doc/posix-functions/open.texi (open): Document the bug.
4798 * doc/posix-functions/utimes.texi (utimes): Likewise.
4799 * tests/test-open.h (test_open): Add parameters, and test symlink
4801 * tests/test-open.c (main): Adjust caller.
4802 * tests/test-fcntl-safer.c (main): Likewise.
4803 * modules/open-tests (Depends-on): Add stdbool, symlink.
4804 * modules/fcntl-safer-tests (Depends-on): Likewise.
4805 * tests/test-openat.c (main): Add test-open tests.
4807 stat: detect FreeBSD bug
4808 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
4810 * doc/posix-functions/stat.texi (stat): Document the bug.
4811 * tests/test-stat.h (test_stat_func): Add argument.
4812 * tests/test-stat.c (main): Adjust caller.
4813 * tests/test-fstatat.c (main): Likewise.
4814 * modules/stat-tests (Depends-on): Add stdbool, symlink.
4815 Reported by Jim Meyering.
4817 2009-11-09 James Youngman <jay@gnu.org>
4819 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
4820 * lib/strftime.c: Correct placement of #include "ignore-value.h".
4822 2009-11-08 Jim Meyering <meyering@redhat.com>
4824 utimens: remove invalid futimesat call
4825 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
4826 It used the file descriptor of the target file as the DIR_FD
4827 parameter and NULL as the file name. That caused failure with
4828 errno == EFAULT on FreeBSD-8.0-rc2
4830 2009-11-07 Eric Blake <ebb9@byu.net>
4832 fflush, freadseek: use fseeko, not fseek
4833 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4834 (clear_ungetc_buffer): Avoid potential problems on large files.
4835 * lib/freadseek.c (freadseek): Likewise.
4836 * modules/freadseek (Depends-on): Add fseeko.
4837 * modules/fseek (configure.ac): Set a witness.
4838 * tests/test-fflush.c (main): Use fseeko.
4839 * tests/test-fpurge.c (fseek): Disable link warning.
4840 * tests/test-freadable.c (fseek): Likewise.
4841 * tests/test-freading.c (fseek): Likewise.
4842 * tests/test-fseeko.c (fseek): Likewise.
4843 * tests/test-ftell.c (fseek): Likewise.
4844 * tests/test-ftello.c (fseek): Likewise.
4845 * tests/test-fwritable.c (fseek): Likewise.
4846 * tests/test-fwriting.c (fseek): Likewise.
4848 2009-11-06 Simon Josefsson <simon@josefsson.org>
4850 * modules/memchr (Depends-on): Drop getpagesize dependency.
4852 2009-11-06 Simon Josefsson <simon@josefsson.org>
4854 * build-aux/pmccabe2html: Disable execute bit. Suggested by
4855 Reported by Ludovic Courtès.
4856 * build-aux/pmccabe2html: Improve example usage.
4857 * build-aux/pmccabe2html: Drop #! header. Doc fix.
4859 2009-11-06 Jim Meyering <meyering@redhat.com>
4861 do-release-commit-and-tag: New module.
4862 Automate the release-commit and tag process.
4863 * build-aux/do-release-commit-and-tag: New script, from coreutils.
4864 * modules/do-release-commit-and-tag: New file.
4865 * MODULES.html.sh (Support for maintaining and releasing): Add it.
4867 2009-11-06 Simon Josefsson <simon@josefsson.org>
4869 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
4870 because test-select.c uses inet_pton.
4872 2009-11-06 Simon Josefsson <simon@josefsson.org>
4874 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
4875 GETADDRINFO_LIB. Bump serial number.
4876 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
4877 Suggested by Eric Blake <ebb9@byu.net>.
4879 2009-11-05 Eric Blake <ebb9@byu.net>
4881 strtod: detect darwin bug
4882 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
4883 Reported by Leo Davis.
4885 freopen-safer: new module
4886 * modules/freopen-safer: New module.
4887 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
4888 * lib/freopen-safer.c (freopen_safer): New file.
4889 * lib/stdio-safer.h (freopen_safer): New declaration.
4890 * lib/stdio--.h (freopen): New override.
4891 * MODULES.html.sh (File stream based Input/Output): Mention it.
4892 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
4893 freopen-safer module.
4894 * doc/posix-functions/stderr.texi (stderr): Likewise.
4895 * doc/posix-functions/stdin.texi (stdin): Likewise.
4896 * doc/posix-functions/stdout.texi (stdout): Likewise.
4897 * modules/freopen-safer-tests: New test.
4898 * tests/test-reopen-safer.c: New file.
4900 2009-11-05 Jim Meyering <meyering@redhat.com>
4902 maint.mk: Prohibit inclusion of "close-stream.h" without use.
4903 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4905 2009-11-05 Simon Josefsson <simon@josefsson.org>
4907 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
4909 2009-11-05 Simon Josefsson <simon@josefsson.org>
4911 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
4913 2009-11-05 Simon Josefsson <simon@josefsson.org>
4916 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
4917 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4919 2009-11-05 Simon Josefsson <simon@josefsson.org>
4921 * tests/test-func.c: Also test value of __func__.
4923 2009-11-05 Simon Josefsson <simon@josefsson.org>
4925 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
4926 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
4928 2009-11-05 Bruno Haible <bruno@clisp.org>
4931 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
4932 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4933 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
4935 2009-11-05 Bruno Haible <bruno@clisp.org>
4937 Tests for module 'inet_pton'.
4938 * modules/inet_pton-tests: New file.
4939 * tests/test-inet_pton.c: New file.
4941 2009-11-05 Bruno Haible <bruno@clisp.org>
4943 Tests for module 'inet_ntop'.
4944 * modules/inet_ntop-tests: New file.
4945 * tests/test-inet_ntop.c: New file.
4947 2009-11-04 Eric Blake <ebb9@byu.net>
4949 stdlib-safer: wrap all mkstemp variants
4950 * modules/mkostemp (configure.ac): Set witness.
4951 * modules/mkostemps (configure.ac): Likewise.
4952 * modules/mkstemps (configure.ac): Likewise.
4953 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
4954 (mkstemps_safer): Wrap more functions.
4955 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
4957 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
4958 (mkstemps_safer): Implement the wrappers.
4960 mkstemps, mkostemps: new modules
4961 * modules/mkostemps: New module.
4962 * modules/mkstemps: Likewise.
4963 * lib/mkostemps.c (mkostemps): New file.
4964 * lib/mkstemps.c (mkstemps): Likewise.
4965 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
4966 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
4967 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
4968 * modules/stdlib (Makefile.am): Substitute them.
4969 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
4970 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
4971 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4972 * doc/gnulib.texi (Glibc stdlib.h): Include them.
4973 * MODULES.html.sh (File system functions): Mention them.
4975 tempname: resync from glibc
4976 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
4977 same values for __GT_FILE as glibc. Abort even when assertions
4979 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
4980 match its value otherwise. Allow idempotent inclusion.
4981 * lib/mkdtemp.c (mkdtemp): Adjust caller.
4982 * lib/mkostemp.c (mkostemp): Likewise.
4983 * lib/mkstemp.c (mkstemp): Likewise.
4984 * lib/tmpfile.c (tmpfile): Likewise.
4985 * NEWS: Document this.
4987 utimens: fix use of futimens on older Linux
4988 * lib/utimens.c (fdutimens): Use updated, rather than original,
4989 timespec to avoid bug in older Linux kernel.
4990 Reported by Simon Josefsson.
4992 2009-11-04 Bruno Haible <bruno@clisp.org>
4994 Make num_processors more flexible and consistent.
4995 * lib/nproc.h (enum nproc_query): New type.
4996 (num_processors): Add a 'query' argument.
4997 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
4998 (num_processors): Add a 'query' argument. Test the value of the
4999 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
5000 mingw, count the number of CPUs available for the current process.
5001 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
5002 Check for sched_getaffinity and sched_getaffinity_np.
5003 * modules/nproc (Depends-on): Add c-ctype, extensions.
5004 * NEWS: Mention the change.
5006 2009-11-03 Bruno Haible <bruno@clisp.org>
5008 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
5010 2009-11-03 Jim Meyering <meyering@redhat.com>
5012 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
5013 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
5016 2009-11-02 Eric Blake <ebb9@byu.net>
5018 mktime, timegm: share common declaration
5019 * lib/mktime-internal.h: New file.
5020 * lib/mktime.c: Use it rather than open-coding a declaration.
5021 * lib/timegm.c: Likewise.
5022 * modules/mktime (Files): Ship it.
5023 * modules/timegm (Files): Likewise.
5024 Suggested by Bruno Haible.
5026 test-update-copyright: update test to match script changes
5027 * tests/test-update-copyright.sh: Avoid hard-coding perl
5028 location. Don't update *.bak created by earlier runs.
5030 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
5031 Simon Josefsson <simon@josefsson.org>
5032 Bruno Haible <bruno@clisp.org>
5034 Fix link error on Solaris 8.
5035 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
5036 also in libnsl. Define also INET_PTON_LIB.
5037 * modules/inet_pton (Link): New section.
5039 2009-11-02 Simon Josefsson <simon@josefsson.org>
5040 Bruno Haible <bruno@clisp.org>
5042 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
5043 * modules/inet_ntop (Link): New section.
5044 Reported by Boyan Kasarov <bkasarov@gmail.com>.
5046 2009-11-02 Eric Blake <ebb9@byu.net>
5048 maint: avoid compiler warnings in m4 macros
5049 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
5050 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
5052 2009-11-02 Simon Josefsson <simon@josefsson.org>
5054 * m4/pmccabe2html.m4: Remove file.
5055 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
5056 function. Change maintainer.
5057 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
5058 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
5061 2009-10-31 Eric Blake <ebb9@byu.net>
5063 fseeko: fix m4 regression
5064 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
5065 regression from 2009-10-27.
5066 Reported by Ralf Wildenhues.
5068 2009-10-31 Jim Meyering <meyering@redhat.com>
5070 inttostr: aesthetics and improved (compile-time) safety
5071 Define inttype_is_signed rather than inttype_is_unsigned,
5072 since the sole use is via "#if inttype_is_signed".
5073 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
5074 inttype_is_unsigned.
5075 * lib/offtostr.c (inttype_is_signed): Likewise.
5076 * lib/uinttostr.c (inttype_is_signed): Likewise.
5077 * lib/umaxtostr.c (inttype_is_signed): Likewise.
5078 * lib/inttostr.c (inttostr): Use verify to cross-check the
5079 inttype_is_signed value and the signedness of the actual type.
5080 * modules/inttostr (Depends-on): Add verify.
5082 2009-10-30 Eric Blake <ebb9@byu.net>
5084 build: avoid compiler warnings
5085 * lib/fchmodat.c (lchmod): Mark unused variables.
5086 * lib/getopt.c (_getopt_initialize): Likewise.
5087 * lib/mktime.c (__mktime_internal): Provide prototype.
5088 * lib/inttostr.c (inttostr): Avoid compiler warning even with
5089 older gcc that do not understand #pragma GCC diagnostic.
5090 * lib/uinttostr.c (inttype_is_unsigned): Define.
5091 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
5093 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5095 stat: fix compilation on AIX
5096 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
5097 only see struct stat64.
5099 2009-10-30 Eric Blake <ebb9@byu.net>
5101 exclude: make more robust
5102 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
5103 rather than masking a coding bug.
5104 Suggested by Bruno Haible.
5106 2009-10-30 Jim Meyering <meyering@redhat.com>
5108 perl scripts: remove #!/usr/bin/perl in favor of more portable...
5109 Rather than putting #!/usr/bin/perl on the first line,
5110 start with a variant of what's recommended by "man perlrun" that
5111 invokes the first "perl" program from your shell's search path.
5112 * build-aux/gitlog-to-changelog: Replace #!... as above.
5113 Add a "Local Variables" perl mode setting.
5114 Prompted by a patch from Ludovic Courtès.
5115 Improved by Eric Blake.
5116 * build-aux/useless-if-before-free: Likewise.
5117 * build-aux/announce-gen: Likewise.
5118 * build-aux/update-copyright: Likewise.
5120 2009-10-29 Eric Blake <ebb9@byu.net>
5122 filenamecat-lgpl: adjust clients
5123 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
5125 * modules/renameat (Depends-on): Likewise.
5127 filenamecat: split into filenamecat-lgpl
5128 * modules/filenamecat-lgpl: New module.
5129 * modules/filenamecat (Files): Move library-safe files into
5131 (Depends-on): Add filenamecat-lgpl.
5132 (configure.ac): Declare witness.
5133 * lib/filenamecat.h (file_name_concat): Only declare when using
5135 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
5137 * lib/filenamecat-lgpl.c: ...into new file.
5138 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
5139 (gl_FILE_NAME_CONCAT): Use it.
5140 * MODULES.html.sh (File system functions): Mention new module.
5142 argp: avoid memory leak
5143 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
5144 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
5145 base_name, since the latter malloc()s and can call exit().
5146 Leak introduced 2006-07-03.
5148 dirname-lgpl: adjust clients that don't need full dirname
5149 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
5150 * modules/filenamecat (Depends-on): Likewise.
5151 * modules/linkat (Depends-on): Likewise.
5152 * modules/mkancesdirs (Depends-on): Likewise.
5153 * modules/mkdir (Depends-on): Likewise.
5154 * modules/openat (Depends-on): Likewise.
5155 * modules/savewd (Depends-on): Likewise.
5156 * modules/rename (Depends-on): Likewise.
5157 (License): Relax license.
5158 * modules/mkdir-tests (Depends-on): Drop progname.
5159 (Makefile.am): Delete unneeded LDADD.
5160 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
5162 dirname: split into dirname-lgpl
5163 * modules/dirname-lgpl: New module.
5164 * modules/dirname (Files): Move library-safe files into
5166 (Depends-on): Add dirname-lgpl.
5167 (configure.ac): Declare witness.
5168 * modules/double-slash-root (License): Relax license.
5169 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
5171 * lib/dirname.c (dir_len, mdir_name): Move...
5172 * lib/dirname-lgpl.c: ...into new file.
5173 * lib/basename.c (last_component, base_len): Move...
5174 * lib/basename-lgpl.c: ...into new file.
5175 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
5176 (gl_DIRNAME): Use it.
5177 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
5179 * modules/dirname-tests (Depends-on): Add progname.
5180 * tests/test-dirname.c (program_name): Delete.
5182 mkdir: make safe for libraries
5183 * modules/mkdir (Depends-on): Drop xalloc.
5184 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
5187 tests: avoid some compiler warnings
5188 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
5190 * tests/test-memchr.c (main): Avoid type mismatch.
5191 * tests/test-arpa_inet.c (main): Avoid unused parameters.
5192 * tests/test-base64.c (main): Likewise.
5193 * tests/test-getdelim.c (main): Likewise.
5194 * tests/test-gethostname.c (main): Likewise.
5195 * tests/test-getline.c (main): Likewise.
5196 * tests/test-netinet_in.c (main): Likewise.
5197 * tests/test-select.c (open_server_socket, main): Likewise.
5198 * tests/test-select-stdin.c (main): Likewise.
5199 * tests/test-sockets.c (main): Likewise.
5200 * tests/test-strsignal.c (main): Likewise.
5201 * tests/test-sys_select.c (main): Likewise.
5202 * tests/test-sys_socket.c (main): Likewise.
5203 * tests/test-u64.c (main): Likewise.
5204 * tests/test-xfprintf-posix.c (main): Likewise.
5205 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
5207 sockets: avoid compiler warning
5208 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
5210 maint: detect usage(1) and other suspicious exits
5211 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
5213 2009-10-29 Jim Meyering <meyering@redhat.com>
5215 timespec: long-to-int truncation could make timespec_cmp malfunction
5216 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
5217 a multiple of 2^32 nanoseconds as no difference.
5219 2009-10-28 Jim Meyering <meyering@redhat.com>
5221 fprintftime: wrap macro code argument in "do {...} while(0)"
5222 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
5223 cpy macro must be a statement that can be followed by a semicolon.
5224 Now that the else clause contains a comment and is hence longer
5225 than one line, I require curly braces. That in turn requires
5226 that we wrap this code block in the standard do...while(0).
5228 fprintftime: remove stray semicolon from previous change
5229 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
5231 fprintftime: avoid a warning about ignored fwrite return value
5232 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
5233 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
5235 * modules/fprintftime (Depends-on): Add ignore-value.
5237 exclude: avoid an unwarranted warning
5238 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
5240 2009-10-27 Eric Blake <ebb9@byu.net>
5242 fseek: avoid compilation failure when fflush is replaced
5243 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
5244 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
5246 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
5247 module is not in use; since REPLACE_FSEEK worked otherwise.
5248 (GNULIB_FTELLO): Likewise for ftell.
5249 Reported by Ian Beckwith and others.
5251 2009-10-27 Bruno Haible <bruno@clisp.org>
5253 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
5254 Reported by Jim Meyering.
5256 2009-10-27 Jim Meyering <jim@meyering.net>
5257 Bruno Haible <bruno@clisp.org>
5259 Avoid warning despite dropping the return value of fwrite.
5260 * lib/unicodeio.c: Include ignore-value.h.
5261 (fwrite_success_callback): Explicitly ignore fwrite's return value.
5262 * modules/unicodeio (Depends-on): Add ignore-value.
5264 2009-10-26 Eric Blake <ebb9@byu.net>
5266 areadlinkat: fix fallback path
5267 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
5270 2009-10-22 Pádraig Brady <P@draigBrady.com>
5272 Use a better IO block size for modern systems
5273 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
5274 * lib/md2.c: Likewise.
5275 * lib/md4.c: Likewise.
5276 * lib/md5.c: Likewise.
5277 * lib/sha1.c: Likewise.
5278 * lib/sha256.c: Likewise.
5279 * lib/sha512.c: Likewise.
5281 2009-10-22 Eric Blake <ebb9@byu.net>
5283 tests: avoid several compiler warnings
5284 * tests/test-getcwd.c (main): Avoid buffer underflow.
5285 * tests/test-getdate.c (main): String literals are not safe with
5286 putenv, so use setenv. Declare unused argument.
5287 * modules/getdate-tests (Depends-on): Add setenv.
5288 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
5289 problems with string literals in char *.
5290 * tests/test-hash.c (main): Avoid shadowing declaration.
5291 (insert_new): Treat string literals as char const *.
5292 * tests/test-getopt.h (test_getopt): Likewise.
5293 (getopt_loop): Alter types to minimize casting elsewhere.
5294 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
5295 (test_getopt_long_posix): Likewise.
5296 (do_getopt_long): Add wrapper to minimize casting.
5297 * tests/test-atexit.c (clear_temp_file): Use void.
5298 * tests/test-areadlink-with-size.c (main): Declare unused
5300 * tests/test-areadlink.c (main): Likewise.
5301 * tests/test-areadlinkat-with-size.c (main): Likewise.
5302 * tests/test-areadlinkat.c (main): Likewise.
5303 * tests/test-canonicalize-lgpl.c (main): Likewise.
5304 * tests/test-canonicalize.c (main): Likewise.
5305 * tests/test-dirent-safer.c (main): Likewise.
5306 * tests/test-dirname.c (main): Likewise.
5307 * tests/test-dup2.c (main): Likewise.
5308 * tests/test-fchdir.c (main): Likewise.
5309 * tests/test-fcntl-h.c (main): Likewise.
5310 * tests/test-fcntl-safer.c (main): Likewise.
5311 * tests/test-fdopendir.c (main): Likewise.
5312 * tests/test-fdutimensat.c (main): Likewise.
5313 * tests/test-fflush.c (main): Likewise.
5314 * tests/test-filenamecat.c (main): Likewise.
5315 * tests/test-filevercmp.c (main): Likewise.
5316 * tests/test-fopen-safer.c (main): Likewise.
5317 * tests/test-fopen.c (main): Likewise.
5318 * tests/test-fpending.c (main): Likewise.
5319 * tests/test-fpurge.c (main): Likewise.
5320 * tests/test-freading.c (main): Likewise.
5321 * tests/test-fstatat.c (main): Likewise.
5322 * tests/test-fsync.c (main): Likewise.
5323 * tests/test-futimens.c (main): Likewise.
5324 * tests/test-getndelim2.c (main): Likewise.
5325 * tests/test-gettimeofday.c (main): Likewise.
5326 * tests/test-getopt.c (main): Likewise.
5327 * tests/test-i-ring.c (main): Likewise.
5328 * tests/test-inttypes.c (main): Likewise.
5329 * tests/test-link.c (main): Likewise.
5330 * tests/test-lstat.c (main): Likewise.
5331 * tests/test-math.c (main): Likewise.
5332 * tests/test-md5.c (main): Likewise.
5333 * tests/test-memchr2.c (main): Likewise.
5334 * tests/test-memrchr.c (main): Likewise.
5335 * tests/test-mkdir.c (main): Likewise.
5336 * tests/test-mkdirat.c (main): Likewise.
5337 * tests/test-mkfifoat.c (main): Likewise.
5338 * tests/test-open.c (main): Likewise.
5339 * tests/test-openat-safer.c (main): Likewise.
5340 * tests/test-openat.c (main): Likewise.
5341 * tests/test-quotearg.c (main): Likewise.
5342 * tests/test-rawmemchr.c (main): Likewise.
5343 * tests/test-readlink.c (main): Likewise.
5344 * tests/test-remove.c (main): Likewise.
5345 * tests/test-rename.c (main): Likewise.
5346 * tests/test-renameat.c (main): Likewise.
5347 * tests/test-rmdir.c (main): Likewise.
5348 * tests/test-sha1.c (main): Likewise.
5349 * tests/test-signal.c (main): Likewise.
5350 * tests/test-sigaction.c (main): Likewise.
5351 * tests/test-stat.c (main): Likewise.
5352 * tests/test-stat-time.c (main): Likewise.
5353 * tests/test-stddef.c (main): Likewise.
5354 * tests/test-stdint.c (main): Likewise.
5355 * tests/test-stdio.c (main): Likewise.
5356 * tests/test-stdlib.c (main): Likewise.
5357 * tests/test-strchrnul.c (main): Likewise.
5358 * tests/test-strerror.c (main): Likewise.
5359 * tests/test-string.c (main): Likewise.
5360 * tests/test-strtod.c (main): Likewise.
5361 * tests/test-strverscmp.c (main): Likewise.
5362 * tests/test-symlink.c (main): Likewise.
5363 * tests/test-symlinkat.c (main): Likewise.
5364 * tests/test-sys_stat.c (main): Likewise.
5365 * tests/test-sys_time.c (main): Likewise.
5366 * tests/test-time.c (main): Likewise.
5367 * tests/test-unistd.c (main): Likewise.
5368 * tests/test-unlink.c (main): Likewise.
5369 * tests/test-unlinkat.c (main): Likewise.
5370 * tests/test-utimens.c (main): Likewise.
5371 * tests/test-utimensat.c (main): Likewise.
5372 * tests/test-version-etc.c (main): Likewise.
5373 * tests/test-wchar.c (main): Likewise.
5374 * tests/test-wctype.c (main): Likewise.
5375 * tests/test-xprintf-posix.c (main): Likewise.
5376 * tests/test-posixtm.c (main): Likewise.
5377 (STREQ): Delete unused macro.
5378 * tests/test-linkat.c (main): Declare unused arguments. Avoid
5380 * tests/test-memchr.c (main): Likewise.
5382 2009-10-21 Eric Blake <ebb9@byu.net>
5384 areadlinkat: avoid failure on older glibc
5385 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
5386 rather than mis-comparing 0 against FUNC_RESULT of char*.
5388 2009-10-21 Bruno Haible <bruno@clisp.org>
5390 * modules/stpncpy (License): Relicense under LGPLv2+.
5391 Reported by David Lutterkort <lutter@redhat.com>.
5393 2009-10-20 Eric Blake <ebb9@byu.net>
5395 utimensat: work around Solaris 9 bug
5396 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
5397 has trailing slash bugs.
5398 * tests/test-lutimens.h (test_lutimens): Enhance test.
5399 * tests/test-utimens.h (test_utimens): Likewise.
5400 * doc/posix-functions/utime.texi (utime): Enhance documentation.
5401 * doc/posix-functions/utimes.texi (utimes): Likewise.
5402 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5403 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
5404 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
5405 * doc/posix-functions/futimens.texi (futimens): Likewise.
5407 fdutimensat: new module
5408 * modules/fdutimensat: New file.
5409 * lib/fdutimensat.c (fdutimensat): Likewise.
5410 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
5411 * MODULES.html.sh (File system functions): Mention module.
5412 * modules/fdutimensat-tests: New test.
5413 * tests/test-fdutimensat.c: Likewise.
5415 doc: regenerate INSTALL
5416 * doc/INSTALL: Reflect recent autoconf update.
5417 * doc/INSTALL.ISO: Likewise.
5418 * doc/INSTALL.UTF-8: Likewise.
5420 2009-10-20 Pádraig Brady <P@draigBrady.com>
5422 acl: warn if ACL support is not detected
5423 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
5425 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
5427 * lib/nproc.h: Add extern "C" block for C++.
5429 2009-10-18 Reuben Thomas <rrt@sc3d.org>
5430 Bruno Haible <bruno@clisp.org>
5432 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
5433 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
5434 * doc/posix-functions/isalpha.texi: Likewise.
5435 * doc/posix-functions/isblank.texi: Likewise.
5436 * doc/posix-functions/iscntrl.texi: Likewise.
5437 * doc/posix-functions/isdigit.texi: Likewise.
5438 * doc/posix-functions/isgraph.texi: Likewise.
5439 * doc/posix-functions/islower.texi: Likewise.
5440 * doc/posix-functions/isprint.texi: Likewise.
5441 * doc/posix-functions/ispunct.texi: Likewise.
5442 * doc/posix-functions/isspace.texi: Likewise.
5443 * doc/posix-functions/isupper.texi: Likewise.
5444 * doc/posix-functions/isxdigit.texi: Likewise.
5446 2009-10-18 Bruno Haible <bruno@clisp.org>
5448 Tests for module 'isblank'.
5449 * modules/isblank-tests: New file.
5450 * tests/test-isblank.c: New file.
5452 New module 'isblank'.
5453 * lib/isblank.c: New file.
5454 * m4/isblank.m4: New file.
5455 * modules/isblank: New file.
5456 * doc/posix-functions/isblank.texi: Mention the new module.
5458 2009-10-18 Bruno Haible <bruno@clisp.org>
5461 * lib/ctype.in.h: New file.
5462 * m4/ctype.m4: New file.
5463 * modules/ctype: New file.
5464 * doc/posix-headers/ctype.texi: Mention the new module.
5466 2009-10-18 Jim Meyering <meyering@redhat.com>
5468 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
5469 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
5470 right after its initialization, rather than farther down.
5471 Keeping these in close proximity makes it easier to ensure
5472 that each such variable is initialized. E.g.,
5475 AC_SUBST([LIB_CLOCK_GETTIME])
5477 This change also increments these serial numbers.
5478 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
5479 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5480 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5482 2009-10-18 Bruno Haible <bruno@clisp.org>
5484 Don't let environment variables perturb build.
5485 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
5486 (gl_PREREQ_GETHRXTIME): ... not here.
5488 2009-10-18 Bruno Haible <bruno@clisp.org>
5490 Avoid symlink attack in localcharset module.
5491 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
5492 (O_NOFOLLOW): Define fallback.
5493 (get_charset_aliases): Don't open the file if it is a symbolic link.
5494 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
5496 (gl_FCNTL_H): Require it.
5497 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
5498 * modules/localcharset (Files): Add m4/fcntl_h.m4.
5499 Reported by Fergal Glynn <fglynn@veracode.com>.
5501 2009-10-18 Bruno Haible <bruno@clisp.org>
5503 Implement nproc for mingw.
5504 * lib/nproc.c: Include <windows.h>
5505 (num_processors): On native Windows platforms, try GetSystemInfo.
5507 2009-10-18 Bruno Haible <bruno@clisp.org>
5509 Implement nproc for IRIX.
5510 * lib/nproc.c: Include <sys/sysmp.h>.
5511 (num_processors): On IRIX systems, try sysmp.
5512 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
5514 2009-10-18 Bruno Haible <bruno@clisp.org>
5516 Implement nproc for HP-UX.
5517 * lib/nproc.c: Include <sys/pstat.h>
5518 (num_processors): On HP-UX systems, try pstat_getdynamic.
5519 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
5522 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
5523 Bruno Haible <bruno@clisp.org>
5525 Implement nproc for NetBSD, OpenBSD.
5526 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
5527 (ARRAY_SIZE): New macro.
5528 (num_processors): On BSD systems, try sysctl of HW_NCPU.
5529 * m4/nproc.m4: New file.
5530 * modules/nproc (Files): Add m4/nproc.m4.
5531 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
5532 (Makefile.am): Instead, augment lib_SOURCES.
5534 2009-10-18 Bruno Haible <bruno@clisp.org>
5536 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
5537 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
5540 2009-10-16 Eric Blake <ebb9@byu.net>
5542 utimensat: new module
5543 * modules/utimensat: New file.
5544 * lib/utimensat.c (utimensat): Likewise.
5545 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5546 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
5547 so we can work around Linux bugs.
5548 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5549 * modules/sys_stat (Makefile.am): Substitute them.
5550 * lib/sys_stat.in.h (utimensat): Declare it.
5551 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5552 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5553 * modules/utimensat-tests: New test.
5554 * tests/test-utimensat.c: Likewise.
5556 utimens: let lutimens work on non-symlinks
5557 * lib/utimens.c (lutimens): Fall back to utimens rather than
5558 failing with ENOSYS, when file is not a symlink.
5559 (utimens): Reduce redirection.
5560 * tests/test-lutimens.h (test_lutimens): Update test to cover
5562 * tests/test-utimens.h (test_utimens): Update test to cover
5564 * tests/test-utimens.c (main): Update caller.
5566 utimens: cache whether utimensat syscall works
5567 * lib/utimens.c (utimensat_works_really): New cache variable.
5568 (fdutimens, lutimens): Use it to avoid failing syscall.
5570 test-stat-time, test-utimens: improve portability
5571 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
5572 ext4 on alpha, and for cygwin.
5573 * tests/test-utimens-common.h: New file.
5574 (nap): Factor delays into single function.
5575 * tests/test-lutimens.h (test_lutimens): Use new header.
5576 * tests/test-futimens.h (test_futimens): Likewise.
5577 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
5578 timestamps to occur from same machine, as was done previously for
5580 * modules/utimens-tests (Files): Ship new file.
5581 * modules/futimens-tests (Files): Likewise.
5582 Reported in part by Jim Meyering.
5584 sys_stat: sort replacement declarations
5585 * lib/sys_stat.in.h: Sort declarations.
5586 * lib/futimens.c (futimens): Fix typo.
5588 2009-10-15 Jim Meyering <meyering@redhat.com>
5590 don't let environment settings perturb build
5591 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
5592 could cause a configure-time and/or build-time malfunction.
5593 Typically, a configure-time function-in-library test is performed
5598 prefix_saved_LIBS=$LIBS
5599 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
5600 [test "$ac_cv_search_FUNC" = "none required" ||
5601 LIB_VAR=$ac_cv_search_FUNC])
5602 LIBS=$prefix_saved_LIBS
5604 However, in each of the files affected by this change, the LIB_VAR=
5605 initialization was omitted. Thus, when set in the environment, its
5606 value would propagate into generated Makefiles when FUNC is not found
5608 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
5609 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5610 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5612 2009-10-14 Eric Blake <ebb9@byu.net>
5614 fchdir: avoid infinite recursion in mingw
5615 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
5618 test-stat-time: port to mingw
5619 * tests/test-stat-time.c (force_unlink): Return a value.
5620 (test_ctime) [W32]: Fix compilation error.
5621 (nap): Don't call usleep with too large an argument. Use
5623 * doc/pastposix-functions/usleep.texi (usleep): Document the
5626 2009-10-13 Jim Meyering <meyering@redhat.com>
5628 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
5629 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
5630 * modules/pipe-filter-ii: Likewise.
5631 * modules/sys_socket-tests: Likewise.
5632 * modules/tsearch-tests: Likewise.
5633 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
5634 (check): Depend on it.
5636 2009-10-12 Eric Blake <ebb9@byu.net>
5638 utimens-tests: port to NFS file systems
5639 * tests/test-utimens.h (test_utimens): Refactor utimecmp
5640 comparisons to avoid spurious failures from timestamp drift
5641 between NFS machines.
5643 2009-10-12 Eric Blake <ebb9@byu.net>
5645 stat-time-tests: minor cleanups
5646 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
5647 * tests/test-stat-time.c (nap): Separate assignment from call.
5648 Suggested by Paolo Bonzini and Bruno Haible.
5650 sys_stat: guarantee struct timespec
5651 * lib/sys_stat.in.h (includes): Always include <time.h>
5652 * modules/sys_stat (Depends-on): Add time.
5653 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
5654 mode_t permission values.
5655 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
5656 get at subsecond timestamps.
5658 2009-10-10 Eric Blake <ebb9@byu.net>
5660 futimens: new module
5661 * modules/futimens: New file.
5662 * lib/futimens.c (futimens): Likewise.
5663 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
5664 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
5665 we can work around Linux bugs.
5666 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5667 * modules/sys_stat (Makefile.am): Substitute them.
5668 * lib/sys_stat.in.h (futimens): Declare it.
5669 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5670 * doc/posix-functions/futimens.texi (futimens): Likewise.
5671 * modules/futimens-tests: New test.
5672 * tests/test-futimens.c: Likewise.
5674 utimens: introduce fdutimens
5675 * lib/utimens.h (fdutimens): New prototype.
5676 * lib/utimens.c (gl_futimens): Move guts...
5677 (fdutimens): ...to new interface.
5678 * tests/test-utimens.c (do_fdutimens): Use it.
5680 utimens: add UTIME_NOW and UTIME_OMIT support
5681 * lib/utimens.c (validate_timespec, update_timespec): New helper
5683 (gl_futimens, lutimens): Use them.
5684 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
5686 (Link): Mention resulting library dependency.
5687 * modules/utimecmp (Link): Likewise.
5688 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
5689 (Makefile.am): Pick up library dependency.
5690 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
5692 * tests/test-sys_stat.c: Test the definitions.
5693 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
5694 * NEWS: Document library dependency.
5696 utimecmp: support symlink timestamps
5697 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
5698 hashing when possible. Use pathconf when available.
5699 (SYSCALL_RESOLUTION): Recognize tighter resolution.
5700 * modules/utimecmp (Depends-on): Add lstat.
5702 utimens: add lutimens interface
5703 * lib/utimens.c (lutimens): New function.
5704 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
5705 * lib/utimens.h (lutimens): Declare new interface.
5706 * tests/test-utimens.c (main): Enhance test.
5707 * tests/test-lutimens.h (test_lutimens): New file.
5708 * modules/utimens-tests (Files): Distribute it.
5709 (Depends-on): Add symlink.
5710 (configure.ac): Check for usleep.
5712 utimens: validate futimens usage
5713 * lib/utimens.c (gl_futimens): Require valid fd up front, using
5714 fewer syscalls on failure later on. Avoid compiler warning on
5716 * modules/utimens (Depends-on): Add dup2.
5719 * modules/utimens-tests: New test.
5720 * tests/test-utimens.h: New file.
5721 * tests/test-futimens.h: Likewise.
5722 * tests/test-utimens.c: Likewise.
5724 doc: mention timestamp portability issues
5725 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
5727 * doc/posix-functions/utime.texi (utime): Likewise.
5728 * doc/posix-functions/utimes.texi (utimes): Likewise.
5729 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
5731 * doc/posix-functions/futimens.texi (futimens): Mention utimens
5733 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5734 Mention weakness with symlink timestamps.
5735 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
5736 to utimensat/futimens instead.
5737 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
5739 test-dup2: enhance test
5740 * tests/test-dup2.c (main): Also check AT_FDCWD.
5742 test-stat-time: avoid more spurious failures
5743 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
5744 xfs; and avoid race if the two timestamps cross quantization edge.
5746 relocatable: prefer 'file system' over 'filesystem'
5747 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
5748 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
5749 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
5750 * doc/relocatable.texi (Enabling Relocatability): Likewise.
5751 * lib/relocatable.c (compute_curr_prefix): Likewise.
5753 2009-10-10 Jim Meyering <meyering@redhat.com>
5755 stat-time-tests: check for the usleep function
5756 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
5758 2009-10-10 Bruno Haible <bruno@clisp.org>
5760 * modules/xnanosleep: Put the Link section after the Include section.
5762 2009-10-09 Eric Blake <ebb9@byu.net>
5764 dup2: work around FreeBSD 6.1 bug
5765 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
5766 * doc/posix-functions/dup2.texi (dup2): Document it.
5767 Reported by Nelson H. F. Beebe and Jim Meyering.
5769 test-stat-time: port to buggy NFS clients
5770 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
5771 (test_ctime): Also skip test if mtime and ctime are skewed.
5773 maint: prefer 'file system' over 'filesystem'
5774 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
5775 * doc/posix-functions/lstat.texi (lstat): Likewise.
5776 * lib/file-has-acl.c (file_has_acl): Likewise.
5777 * lib/fwriteerror.c [TEST]: Likewise.
5778 * tests/test-areadlink.h (test_areadlink): Likewise.
5779 * tests/test-areadlinkat-with-size.c (main): Likewise.
5780 * tests/test-areadlinkat.c (main): Likewise.
5781 * tests/test-canonicalize-lgpl.c (main): Likewise.
5782 * tests/test-canonicalize.c (main): Likewise.
5783 * tests/test-fstatat.c (main): Likewise.
5784 * tests/test-linkat.c (main): Likewise.
5785 * tests/test-lstat.h (test_lstat_func): Likewise.
5786 * tests/test-mkdir.h (test_mkdir): Likewise.
5787 * tests/test-readlink.h (test_readlink): Likewise.
5788 * tests/test-remove.c (main): Likewise.
5789 * tests/test-rename.h (test_rename): Likewise.
5790 * tests/test-renameat.c (main): Likewise.
5791 * tests/test-rmdir.h (test_rmdir_func): Likewise.
5792 * tests/test-symlink.h (test_symlink): Likewise.
5793 * tests/test-symlinkat.c (main): Likewise.
5794 * tests/test-unlink.h (test_unlink_func): Likewise.
5795 * tests/test-unlinkat.c (main): Likewise.
5797 maint: make realtime library usage explicit
5798 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
5799 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
5800 * modules/settime (Link): Likewise.
5801 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
5803 test-stat-time: speed up execution
5804 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
5806 (nap): New helper function.
5807 (prepare_test): Use it to reduce sleep time.
5808 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
5810 * modules/stat-time-tests (configure.ac): Check for usleep.
5812 2009-10-09 Jim Meyering <meyering@redhat.com>
5814 selinux-h: always use getfilecon wrappers
5815 * lib/getfilecon.c: New file.
5816 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
5817 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
5818 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
5819 (fgetfilecon): Provide a stub.
5820 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
5821 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
5822 file unconditionally.
5823 When <selinux/selinux.h> is found, arrange to use wrappers.
5824 * modules/selinux-h (Files): Add getfilecon.c.
5825 (Makefile.am): Substitute include-next-related bits
5826 into the now-always-generated selinux/selinux.h file.
5827 * doc/glibc-functions/lgetfilecon.texi: New file.
5828 * doc/glibc-functions/fgetfilecon.texi: New file.
5829 * doc/glibc-functions/getfilecon.texi: New file.
5830 * doc/glibc-functions/getfilecon-desc.texi: New file.
5831 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
5832 which to pull in the new files.
5833 * MODULES.html.sh (Misc): Add selinux-h.
5835 2009-10-08 Jim Meyering <meyering@redhat.com>
5837 unistd: fix comment typo
5838 * lib/unistd.in.h (euidaccess): Fix a comment typo.
5840 2009-10-08 Eric Blake <ebb9@byu.net>
5842 areadlink: use SIZE_MAX consistently
5843 * modules/areadlink (Depends-on): Add stdint.
5844 * modules/areadlink-with-size (Depends-on): Likewise.
5845 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
5846 gives NULL; drop sys/types, since unistd gives size_t; and add
5847 stdint for SIZE_MAX.
5848 (SIZE_MAX): Rely on headers.
5849 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
5851 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
5852 (SIZE_MAX): Likewise.
5853 (INITIAL_BUF_SIZE): Turn into enum.
5854 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
5856 2009-10-08 Jim Meyering <meyering@redhat.com>
5858 areadlinkat: avoid compilation failure
5859 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
5860 Fix typo in comment.
5862 2009-10-07 Eric Blake <ebb9@byu.net>
5864 areadlinkat-with-size: new module
5865 * modules/areadlinkat-with-size: New module.
5866 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
5867 * lib/areadlink.h (areadlinkat): Declare it.
5868 * MODULES.html.sh (File system functions): Mention it.
5869 * modules/areadlinkat-with-size-tests: New test.
5870 * tests/test-areadlinkat-with-size.c: New file.
5872 xreadlinkat: new module
5873 * modules/xreadlinkat: New module.
5874 * lib/xreadlinkat.c (xreadlinkat): New file.
5875 * lib/xreadlink.h (xreadlinkat): Declare it.
5876 * MODULES.html.sh (File system functions): Mention it.
5878 areadlinkat: new module
5879 * lib/at-func.c (FUNC_FAIL): New define.
5880 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
5881 * modules/areadlinkat: New module.
5882 * lib/linkat.c (areadlinkat): Move...
5883 * lib/areadlinkat.c (areadlinkat): ...to new file.
5884 * lib/areadlink.h (areadlinkat): Declare it.
5885 * modules/linkat (Depends-on): Add areadlinkat.
5886 * MODULES.html.sh (File system functions): Mention it.
5887 * modules/areadlinkat-tests: New test.
5888 * tests/test-areadlinkat.c: New file.
5890 areadlink, areadlink-with-size: add tests
5891 * modules/areadlink-tests: New test.
5892 * modules/areadlink-with-size-tests: Likewise.
5893 * tests/test-areadlink.h: New file.
5894 * tests/test-areadlink.c: Likewise.
5895 * tests/test-areadlink-with-size.c: Likewise.
5897 maint: minor cleanups
5898 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
5899 _UNUSED_PARAMETER_ instead.
5900 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
5901 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
5902 * modules/linkat-tests (Files): Distribute test-link.h.
5904 openat, utimens: whitespace cleanup
5905 * lib/openat.c: Prefer space throughout, rather than mix of 8
5907 * lib/at-func.c: Likewise.
5908 * lib/utimens.c: Likewise.
5910 openat: avoid using wrong fd
5911 * lib/openat.c (openat_permissive): Reject user's fd if saving the
5912 working directory chooses same fd.
5913 * lib/at-func.c (AT_FUNC_NAME): Likewise.
5915 mkdir, mkdirat: fix cygwin 1.5.x bug
5916 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
5917 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
5918 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
5920 (gl_PREREQ_MKDIR): Delete unused macro.
5921 * modules/mkdir (Files): Track file rename.
5922 (configure.ac): Update macro name.
5923 * modules/openat (Depends-on): Add mkdir.
5924 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
5926 mkdir, mkdirat: add tests
5927 * modules/mkdir-tests: New test.
5928 * tests/test-mkdir.h: New file.
5929 * tests/test-mkdir.c: Likewise.
5930 * tests/test-mkdirat.c: Likewise.
5931 * modules/openat-tests (Files): Add new files.
5932 (Makefile.am): Run new test.
5934 2009-10-06 Eric Blake <ebb9@byu.net>
5936 doc: tweak *at function documentation
5937 * doc/posix-functions/faccessat.texi (faccessat): Mention
5938 known issue with replacement.
5939 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
5940 * doc/posix-functions/linkat.texi (linkat): Likewise.
5941 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
5942 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
5943 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5944 * doc/posix-functions/renameat.texi (renameat): Likewise.
5945 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5947 openat: fix GNU/Hurd bug in unlinkat
5948 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
5950 * doc/posix-functions/unlink.texi (unlink): Document this.
5951 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
5953 fdopendir: fix GNU/Hurd bug
5954 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
5955 allowing non-directory fds.
5956 * lib/fdopendir.c (rpl_fdopendir): Work around it.
5957 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5958 * modules/dirent (Makefile.am): Substitute it.
5959 * lib/dirent.in.h (fdopendir): Declare replacement.
5960 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
5961 * tests/test-fdopendir.c (main): Test something other than
5962 /dev/null, since on Hurd that behaves like a directory.
5964 test-symlink: port to GNU/Hurd
5965 * tests/test-symlink.h (test_symlink): Relax expected errno.
5967 doc: tweak more cygwin information
5968 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
5969 now compatible with glibc.
5970 * doc/posix-functions/getopt.texi (getopt): Likewise.
5972 getopt-gnu: add another test
5973 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
5974 guarantee behavior relied on by m4.
5975 * tests/test-getopt.c (main): Use it.
5976 * modules/getopt-posix-tests (Depends-on): Add setenv.
5977 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
5979 getopt: fix compilation on darwin
5980 * lib/getopt.in.h (includes): Leave breadcrumbs during system
5982 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
5983 Reported by Ludovic Courtès.
5985 2009-10-06 Bruno Haible <bruno@clisp.org>
5987 * modules/size_max (Description): Discourage its use.
5988 Reported by Simon Josefsson.
5990 2009-10-06 Jim Meyering <meyering@redhat.com>
5992 linkat: avoid compilation failure
5993 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
5995 2009-10-05 Eric Blake <ebb9@byu.net>
5997 linkat: support Linux 2.6.17
5998 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
5999 linkat on Linux, but allow cache variable override.
6000 * lib/linkat.c (rpl_linkat): Define override.
6001 * modules/linkat (Depends-on): Add symlinkat.
6002 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
6003 * modules/unistd (Makefile.am): Substitute it.
6004 * lib/unistd.in.h (linkat): Declare replacement.
6005 Reported by Pádraig Brady.
6007 quotearg: port test to systems with C.UTF-8 locale
6008 * tests/test-quotearg.c (struct result_strings): Add another
6009 member, differentiating between C.ASCII and C.UTF-8 handling.
6010 (compare_strings): Add parameter.
6011 (main): Adjust all callers.
6013 getopt: avoid clash with FreeBSD _getopt_internal
6014 * lib/getopt.in.h (_getopt_internal): Override the name.
6015 * lib/getopt_int.h (includes): Pick up any overrides.
6016 Reported by Reuben Thomas.
6018 hash: allow C89 compilation
6019 * lib/hash.c (check_tuning): Move declaration before statement.
6020 Reported by Reuben Thomas.
6022 2009-10-05 Karl Berry <karl@gnu.org>
6024 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
6026 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
6027 Bruno Haible <bruno@clisp.org>
6029 * lib/uname.c (uname): Use a table-driven algorithm to compute
6030 Windows NT versions.
6032 2009-10-04 Bruno Haible <bruno@clisp.org>
6034 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
6035 program_invocation_short_name.
6036 * modules/progname (configure.ac): Test for presence of
6037 program_invocation_short_name.
6038 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
6040 2009-10-04 Bruno Haible <bruno@clisp.org>
6042 * lib/progname.c (set_program_name): Fix comment.
6043 Reported by Jim Meyering.
6045 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
6046 Bruno Haible <bruno@clisp.org>
6048 * lib/uname.c: Include <string.h>.
6049 (uname): Do only one call to GetVersionEx in the common case.
6051 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
6052 Bruno Haible <bruno@clisp.org>
6054 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
6055 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
6056 (uname): Add support for Windows CE and various non-x86 CPU types.
6058 2009-10-03 Bruno Haible <bruno@clisp.org>
6060 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
6061 invocation to tests/configure.ac.
6062 Reported by Ian Beckwith <ianb@erislabs.net>.
6064 2009-10-02 Eric Blake <ebb9@byu.net>
6066 fchdir: avoid compiler warning
6067 * lib/fchdir.c (canonicalize_file_name)
6068 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
6070 test-open: support mingw errno values
6071 * tests/test-open.h (test_open): Relax test.
6072 * tests/test-fopen.h (test_fopen): Likewise.
6073 * tests/test-openat-safer.c (main): Likewise.
6075 open: fix opening directory on mingw
6076 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
6078 test-open: on GNU/Hurd, /dev/null is a directory
6079 * tests/test-fopen.h (main): Rename...
6080 (test_fopen): ...to this. Use a guaranteed non-directory when
6081 confirming open behavior on trailing slash.
6082 * tests/test-openat-safer.c (main): Likewise.
6083 * tests/test-open.h (main): Likewise....
6084 (test_open): ...to this.
6085 * tests/test-fopen.c (main): Adjust caller.
6086 * tests/test-fopen-safer.c (main): Likewise.
6087 * tests/test-open.c (main): Likewise.
6088 * tests/test-fcntl-safer.c (main): Likewise.
6089 Reported by Samuel Thibault.
6091 rename, fchdir: don't ignore chdir failure
6092 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
6093 * lib/rename.c (rpl_rename) [W32]: Likewise.
6094 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
6095 an empty destination directory if source cannot be renamed,
6096 although there is still possibility for failure.
6097 * doc/posix-functions/rename.texi (rename): Document the race.
6098 Reported by Jim Meyering.
6100 maint: cleanup whitespace in recent commits
6101 * lib/rename.c (rpl_rename): Remove tabs.
6102 * tests/test-link.h (test_link): Likewise.
6103 * lib/fchdir.c (get_name): Likewise.
6104 Reported by Jim Meyering.
6106 2009-10-02 Ben Pfaff <blp@gnu.org>
6108 relocatable-prog-wrapper: Add missing dependency on
6110 * modules/relocatable-prog-wrapper: Add dependency.
6111 Reported by Ian Beckwith <ianb@erislabs.net>.
6113 2009-10-02 Eric Blake <ebb9@byu.net>
6115 renameat: fix Solaris bugs
6116 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
6118 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
6119 * modules/stdio (Makefile.am): Substitute it.
6120 * lib/stdio.in.h (renameat): Declare replacement.
6121 * lib/renameat.c (rpl_renameat): Implement fix.
6123 renameat: new module
6124 * modules/renameat: New file.
6125 * lib/renameat.c (renameat): Likewise.
6126 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
6127 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6128 * modules/stdio (Makefile.am): Substitute them.
6129 * lib/stdio.in.h (renameat): Declare it.
6130 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6131 * doc/posix-functions/renameat.texi (renameat): Likewise.
6132 * modules/renameat-tests: New test.
6133 * tests/test-renameat.c: Likewise.
6135 rename: fix mingw bugs
6136 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
6137 directory overwrite bugs.
6139 rename: fix another cygwin 1.5 bug
6140 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
6142 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
6143 unnecessary cygwin workarounds. Also work around bug with moving
6144 full directory onto an empty one.
6145 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
6147 rename-dest-slash: merge into rename module
6148 * modules/rename-dest-slash (Status): Mark obsolete.
6149 (Depends-on): Add rename.
6150 (Files): Let rename do it all.
6151 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
6152 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
6153 * m4/rename-dest-slash.m4: ...so this file can be deleted.
6154 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
6155 * lib/rename.c (rpl_rename): Update comments.
6157 rename: fix cygwin 1.5.x bugs
6158 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
6159 * lib/rename.c (rpl_rename): Work around them.
6160 * modules/rename (Depends-on): Add same-inode.
6162 rename: fix Solaris 10 bug
6163 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6164 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
6167 rename: fix Solaris 9 bug
6168 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
6169 on non-directory. Avoid calling exit.
6170 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
6172 * modules/rename-tests (Depends-on): Drop lstat.
6173 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6174 (gl_PREREQ_RENAME): Delete unused macro.
6176 rename-dest-slash: fix NetBSD bug
6177 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
6179 * modules/rename-dest-slash (Depends-on): Add same-inode.
6181 rename-tests: new test, exposes several platform bugs
6182 * modules/rename-tests: New file.
6183 * tests/test-rename.h: Likewise.
6184 * tests/test-rename.c: Likewise.
6185 * doc/posix-functions/rename.texi (rename): Improve documentation,
6186 including bugs that will eventually be fixed in gnulib.
6188 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
6190 * lib/uname.c: Include <stdlib.h>
6191 (uname): Assume version info is available.
6193 2009-10-02 Jim Meyering <meyering@redhat.com>
6195 gnu-web-doc-update: correct --help output
6196 * build-aux/gnu-web-doc-update: Make --help output relevant.
6198 gnu-web-doc-update: add standard options
6199 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
6201 gnu-web-doc-update: New module.
6202 Use this script to automatically update the on-line web documentation
6203 for your GNU project at http://www.gnu.org/software/$pkg/manual/
6204 * modules/gnu-web-doc-update: New file, from coreutils.
6205 * build-aux/gnu-web-doc-update: New script.
6207 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
6209 link: LoadLibrary is not needed.
6210 * lib/link.c: Use GetModuleHandle.
6212 2009-10-01 Eric Blake <ebb9@byu.net>
6214 getopt: bump serial number
6215 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
6218 tests: tighten link, rmdir, and remove tests
6219 * tests/test-link.h (includes): No need to use <config.h> here.
6220 Clean up if directory hard link was created, otherwise test for
6222 * tests/test-linkat.c (main): Simplify.
6223 * tests/test-remove.c (main): Enhance test for trailing '.'.
6224 * tests/test-rmdir.h (test_rmdir_func): Likewise.
6226 2009-10-01 Jim Meyering <meyering@redhat.com>
6228 maint.mk: requiring "make major" was annoying, for a "minor" release.
6229 What is intended is "stable", to contrast with alpha and beta,
6230 so require "make stable", not "make major".
6231 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
6232 (get_tool_versions): Likewise.
6233 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
6235 2009-09-30 Ben Pfaff <blp@gnu.org>
6237 Fix broken build of replacement for Windows tmpfile().
6238 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
6239 flags argument added along with the 'mkostemp' module.
6241 2009-09-28 Bruno Haible <bruno@clisp.org>
6243 Avoid identifier clash with POSIX function 'remove' defined as a macro.
6244 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
6246 (gl_list_remove): Update.
6247 * lib/gl_list.c (gl_list_remove): Update.
6248 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
6250 (gl_oset_remove): Update.
6251 * lib/gl_list.c (gl_oset_remove): Update.
6252 Reported by Eric Blake.
6254 2009-09-28 Eric Blake <ebb9@byu.net>
6256 doc: mention yet more cygwin 1.7 status
6257 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
6259 * doc/glibc-functions/execvpe.texi (execvpe): New file.
6260 * doc/gnulib.texi (Glibc unistd.h): Mention it.
6262 argp: fix test failure
6263 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
6264 that are not upper-case. Pass correct range to tolower.
6266 2009-09-27 Jim Meyering <meyering@redhat.com>
6268 test-yesno: work around sparc-dash here-document infelicity
6269 Without this change, the literal \177 byte in a here document
6270 would make dash 0.5.5.1-3 access uninitialized memory.
6271 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
6272 Instead, use a marker, "@", and filter through tr to create the desired
6273 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
6275 2009-09-27 Bruno Haible <bruno@clisp.org>
6277 Disable untested support for new flavours of ACLs on AIX.
6278 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
6280 * lib/set-mode-acl.c (qset_acl): Likewise.
6282 2008-12-07 Bruno Haible <bruno@clisp.org>
6284 Add support for new flavours of ACLs on AIX. (Untested.)
6285 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
6286 (file_has_acl): Add support for newer AIX.
6287 * lib/set-mode-acl.c (qset_acl): Likewise.
6288 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
6289 Rainer Tammer <tammer@tammer.net>.
6291 2009-09-26 Eric Blake <ebb9@byu.net>
6293 argp: fix compilation of getopt
6294 * lib/getopt.in.h (includes): Use different guard than glibc.
6295 Reported by Sergey Poznyakoff.
6297 doc: mention more cygwin 1.7 status
6298 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
6300 * doc/posix-functions/execl.texi (execl): Likewise.
6301 * doc/posix-functions/execle.texi (execle): Likewise.
6302 * doc/posix-functions/execlp.texi (execlp): Likewise.
6303 * doc/posix-functions/execv.texi (execv): Likewise.
6304 * doc/posix-functions/execve.texi (execve): Likewise.
6305 * doc/posix-functions/execvp.texi (execvp): Likewise.
6306 * doc/glibc-functions/canonicalize_file_name.texi
6307 (canonicalize_file_name): Cygwin 1.7 now provides this.
6308 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
6309 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
6310 on AT_SYMLINK_NOFOLLOW.
6312 2009-09-24 Eric Blake <ebb9@byu.net>
6314 test-linkat: make test more robust
6315 * tests/test-linkat.c (main): Avoid collision with EEXIST.
6317 getopt: fix inclusion guards for cygwin
6318 * modules/getopt-posix (Depends-on): Add include-next.
6319 (Makefile.am): Substitute more items in replacement header.
6320 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
6322 * lib/getopt.in.h (includes): Use split inclusion guard, and
6323 prefer <getopt.h> over include <unistd.h> when one is present.
6324 (option): Also override name of 'struct option'.
6326 same-inode: revert prior change; it is not yet ready
6327 * NEWS: Undo mention of this change.
6328 * lib/same-inode.h (same-inode.h): Undo tri-state change.
6329 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6330 * lib/cycle-check.c (cycle_check): Likewise.
6331 * lib/same.c (same_name): Likewise.
6332 * lib/at-func2.c (at_func2): Likewise.
6334 2009-09-23 Eric Blake <ebb9@byu.net>
6337 * modules/linkat: New file.
6338 * lib/at-func2.c (at_func2): Likewise.
6339 * lib/linkat.c (linkat): Likewise.
6340 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6341 * lib/openat-priv.h (at_func2): Add declaration.
6342 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6343 * modules/unistd (Makefile.am): Substitute them.
6344 * lib/unistd.in.h (linkat): Declare it.
6345 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6346 * doc/posix-functions/linkat.texi (linkat): Likewise.
6347 * doc/posix-functions/link.texi (link): Tweak wording.
6348 * tests/test-link.c (main): Move guts...
6349 * tests/test-link.h (test_link): ...into new file.
6350 * modules/linkat-tests: New test.
6351 * tests/test-linkat.c: Likewise.
6352 * modules/link-tests (Files): Ship new file.
6353 (Depends-on): Add stdbool.
6355 dirname: add library-safe mdir_name
6356 * lib/dirname.h (mdir_name): New prototype.
6357 * lib/dirname.c (dir_name): Move guts...
6358 (mdir_name): ...to new function that avoids xalloc_die.
6360 fchdir: another mingw fix
6361 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
6362 * lib/fchdir.c (get_name): New helper method; skips canonicalize
6363 on mingw (where it has not yet been ported), and make it optional
6365 (_gl_register_fd): Use it.
6367 same-inode: make SAME_INODE tri-state, to port to mingw
6368 * NEWS: Mention this change.
6369 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
6370 st_ino always being 0.
6371 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6372 * lib/cycle-check.c (cycle_check): Likewise.
6373 * lib/same.c (same_name): Likewise.
6375 lstat: avoid mingw compilation error
6376 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
6377 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
6379 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
6381 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
6382 the checks for lstat.
6383 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
6385 link: fix test failure on Solaris 9
6386 * lib/link.c (rpl_link): Don't assume link will catch bogus
6387 trailing slash on source.
6389 test-symlinkat: enhance test
6390 * tests/test-readlink.c (main): Move guts...
6391 * tests/test-readlink.h (test_readlink): ...into new file.
6392 * tests/test-symlink.c (main): Move guts...
6393 * tests/test-symlink.h (test_symlink): ...into new file.
6394 * tests/test-symlinkat.c (main): Use new files for further
6396 (do_symlink, do_readlink): New helper functions.
6397 * modules/symlink-tests (Files): Ship new file.
6398 (Depends-on): Add stdbool.
6399 * modules/readlink-tests (Files): Ship new file.
6400 (Depends-on): Add stdbool.
6401 * modules/symlinkat-tests (Files): Use new files.
6403 2009-09-23 Eric Blake <ebb9@byu.net>
6405 readlink: document portability issue with symlink length
6406 * doc/posix-functions/lstat.texi (lstat): Mention that some file
6407 systems have bogus st_size on symlinks, and mention the
6408 areadlink-with-size module.
6409 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6410 * doc/posix-functions/readlink.texi (readlink): Mention the
6411 areadlink module, and ERANGE failure.
6412 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6413 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
6415 readlink: fix Solaris 9 bug with trailing slash
6416 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
6417 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
6418 * doc/posix-functions/readlink.texi (readlink): Document this.
6419 * modules/readlink-tests: New test.
6420 * tests/test-readlink.c: Likewise.
6422 readlink: fix cygwin 1.5.x bug with return type
6423 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
6424 * lib/unistd.in.h (readlink): Use ssize_t.
6425 * lib/readlink.c (readlink): Likewise.
6426 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6427 * modules/unistd (Makefile.am): Substitute it.
6428 * lib/unistd.in.h (readlink): Declare replacement.
6429 * doc/posix-functions/readlink.texi (readlink): Document this.
6431 symlink: use throughout gnulib
6432 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
6433 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
6434 symlink is not used.
6435 * modules/symlinkat (Depends-on): Add symlink.
6436 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6437 * modules/canonicalize-tests (Depends-on): Likewise.
6438 * modules/lstat-tests (Depends-on): Likewise.
6439 * modules/openat-tests (Depends-on): Likewise.
6440 * modules/remove-tests (Depends-on): Likewise.
6441 * modules/rmdir-tests (Depends-on): Likewise.
6442 * modules/unlink-tests (Depends-on): Likewise.
6443 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
6444 * tests/test-canonicalize.c (symlink): Likewise.
6445 * tests/test-fstatat.c (symlink): Likewise.
6446 * tests/test-lstat.c (symlink): Likewise.
6447 * tests/test-remove.c (symlink): Likewise.
6448 * tests/test-rmdir.c (symlink): Likewise.
6449 * tests/test-unlink.c (symlink): Likewise.
6450 * tests/test-unlinkat.c (symlink): Likewise.
6452 symlink: new module, for Solaris 9 bug
6453 * modules/symlink: New file.
6454 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6455 * lib/symlink.c: Likewise.
6456 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6457 * modules/unistd (Makefile.am): Substitute them.
6458 * lib/unistd.in.h (symlink): Declare replacement.
6459 * MODULES.html.sh (File system functions): Mention it.
6460 * doc/posix-functions/symlink.texi (symlink): Likewise.
6461 * modules/symlink-tests: New test.
6462 * tests/test-symlink.c: Likewise.
6464 2009-09-23 Bruno Haible <bruno@clisp.org>
6466 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
6468 Test case: gnulib-tool --import --with-tests atexit inttypes.
6469 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
6471 2009-09-23 Bruno Haible <bruno@clisp.org>
6473 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
6474 subcommand, not in a subshell.
6476 2009-09-22 Eric Blake <ebb9@byu.net>
6478 unistd: sort replacement declarations
6479 * lib/unistd.in.h: Sort declarations.
6481 open, openat: minor optimization
6482 * lib/open.c (open): If open succeeded, len is non-zero.
6483 * lib/openat.c (rpl_openat): Likewise.
6485 link-follow: ensure correct result
6486 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
6487 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
6488 distinguish between possible failures.
6490 2009-09-21 Eric Blake <ebb9@byu.net>
6492 fts: avoid compiler warning
6493 * lib/fts.c (dirent_inode_sort_may_be_useful)
6494 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
6496 2009-09-19 Bruno Haible <bruno@clisp.org>
6498 * lib/progreloc.c (canonicalize_file_name): New declaration.
6500 2009-09-19 Eric Blake <ebb9@byu.net>
6503 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
6505 openat: fix openat bugs on Solaris 9
6506 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
6507 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
6508 * modules/openat (Depends-on): Add open.
6509 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
6510 * modules/fcntl-h (Makefile.am): Substitute it.
6511 * lib/fcntl.in.h (openat): Declare replacement.
6512 * doc/posix-functions/openat.texi (openat): Document this.
6514 openat: move fstatat and unlinkat into correct files
6515 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
6517 * lib/openat.c (fstatat, unlinkat): Move...
6518 * lib/fstatat.c (fstatat): ...into correct files.
6519 * lib/unlinkat.c (unlinkat): Likewise.
6521 openat: fix unlinkat bugs on Solaris 9
6522 * lib/unlinkat.c (unlinkat): New file.
6523 * modules/openat (Depends-on): Add unlink.
6524 (Files): Distribute it.
6525 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
6526 trailing slash behavior is broken.
6527 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6528 * modules/unistd (Makefile.am): Substitute it.
6529 * lib/unistd.in.h (unlinkat): Declare replacement.
6530 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
6532 openat: fix fstatat bugs on Solaris 9
6533 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
6535 * doc/posix-functions/fstatat.texi (fstatat): Document this.
6537 test-unlinkat: enhance test, to expose Solaris 9 bug
6538 * tests/test-unlink.c (main): Factor guts...
6539 * tests/test-unlink.h (test_rmdir_func): ...into new file.
6540 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
6541 * tests/test-rmdir.c (main): Adjust caller.
6542 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
6543 (unlinker): New helper function.
6544 (rmdirat): Enhance check.
6545 * modules/rmdir-tests (Depends-on): Add stdbool.
6546 * modules/unlink-tests (Depends-on): Likewise.
6547 (Files): Add test-unlink.h.
6548 * modules/openat-tests (Files): Likewise.
6549 (Depends-on): Add unlinkdir.
6551 test-fstatat: new test, to expose Solaris 9 bugs
6552 * tests/test-stat.c (main): Factor guts...
6553 * tests/test-stat.h (test_stat_func): ...into new file.
6554 * tests/test-lstat.c (main): Factor guts...
6555 * tests/test-lstat.h (test_lstat_func): ...into new file.
6556 * tests/test-fstatat.c: New file.
6557 * modules/stat-tests (Files): Add test-stat.h.
6558 * modules/lstat-tests (Files): Add test-lstat.h.
6559 (Depends-on): Add stdbool.
6560 * modules/openat-tests (Depends-on): Add pathmax.
6561 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
6562 (Makefile.am): Run new test.
6564 remove: new module, for mingw and Solaris 9 bugs
6565 * modules/remove: New file.
6566 * lib/remove.c: Likewise.
6567 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
6568 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6569 * modules/stdio (Makefile.am): Use them.
6570 * lib/stdio.in.h (remove): Declare replacement.
6571 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6572 * doc/posix-functions/remove.texi (remove): Likewise.
6573 * modules/remove-tests: New test.
6574 * tests/test-remove.c: Likewise.
6576 unlink: new module, for Solaris 9 bug
6577 * modules/unlink: New file.
6578 * lib/unlink.c: Likewise.
6579 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6580 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6581 * modules/unistd (Makefile.am): Use them.
6582 * lib/unistd.in.h (stat): Declare replacement.
6583 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6584 * doc/posix-functions/unlink.texi (unlink): Likewise.
6585 * modules/unlink-tests: New test.
6586 * tests/test-unlink.c: Likewise.
6588 lstat: fix Solaris 9 bug
6589 * lib/lstat.c (lstat): Also check for trailing slash on
6590 non-symlink, non-directories. Use stat module to simplify logic.
6591 * doc/posix-functions/lstat.texi (lstat): Document it.
6592 * modules/lstat-tests (Depends-on): Add errno, same-inode.
6593 (configure.ac): Check for symlink.
6594 * tests/test-lstat.c (main): Add more tests.
6596 stat: add as dependency to other modules
6597 * modules/chown (Depends-on): Add stat.
6598 * modules/euidaccess (Depends-on): Likewise.
6599 * modules/fchdir (Depends-on): Likewise.
6600 * modules/isdir (Depends-on): Likewise.
6601 * modules/link (Depends-on): Likewise.
6602 * modules/lstat (Depends-on): Likewise.
6603 * modules/mkdir-p (Depends-on): Likewise.
6604 * modules/modechange (Depends-on): Likewise.
6605 * modules/open (Depends-on): Likewise.
6606 * modules/readlink (Depends-on): Likewise.
6607 * modules/same (Depends-on): Likewise.
6609 stat: fix Solaris 9 bug
6610 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
6612 * lib/stat.c (rpl_stat): Work around it.
6613 * doc/posix-functions/stat.texi (stat): Update documentation.
6615 stat: new module, for mingw bug
6616 * modules/stat: New file.
6617 * lib/stat.c: Likewise.
6618 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6619 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6620 * modules/sys_stat (Makefile.am): Use them.
6621 * lib/sys_stat.in.h (stat): Declare replacement.
6622 * lib/openat.c (fstatat): Deal with lstat and stat being function
6624 * modules/openat (Depends-on): Add inline.
6625 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6626 * doc/posix-functions/stat.texi (stat): Likewise.
6627 * modules/stat-tests: New test.
6628 * tests/test-stat.c: Likewise.
6630 2009-09-19 Jim Meyering <meyering@redhat.com>
6632 syntax-check: detect unnecessary inclusion of canonicalize.h
6633 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
6635 2009-09-19 Eric Blake <ebb9@byu.net>
6637 canonicalize-lgpl: adjust clients to use correct header
6638 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6639 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
6640 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
6641 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
6642 * lib/progreloc.c (includes): Likewise.
6644 2009-09-19 Jim Meyering <meyering@redhat.com>
6646 test-posixtm.c: correct a comment
6647 * tests/test-posixtm.c: Correct first-line comment.
6648 Spotted by Eric Blake.
6650 2009-09-16 Jim Meyering <meyering@redhat.com>
6652 posixtm-tests: make T const-correct; add a test case
6653 * tests/test-posixtm.c (T): Declare const.
6654 Add a test for -(2^31+1).
6655 Remove useless can-succeed-only-in-2002 test.
6657 posixtm-tests: adjust the sole failing test
6658 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
6659 expected output matches what mktime now produces. Cross-checked via
6660 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
6662 posixtm: move #ifdef'd tests into a new module
6663 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
6664 * tests/test-posixtm.c: ... this new file.
6665 * modules/posixtm-tests: New module.
6667 2009-09-19 Eric Blake <ebb9@byu.net>
6669 openat: simplify use of at-func.c
6670 * lib/at-func.c (includes): Include prerequisites here, to
6671 simplify requirements on client files.
6672 * lib/openat-priv.h: Add double-inclusion guard.
6673 * lib/faccessat.c (includes): Simplify.
6674 * lib/fchmodat.c (includes): Likewise.
6675 * lib/fchownat.c (includes): Likewise.
6676 * lib/mkdirat.c (includes): Likewise.
6677 * lib/mkfifoat.c (includes): Likewise.
6678 * lib/symlinkat.c (includes): Likewise.
6680 openat: allow return of fd 0
6681 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
6682 * modules/save-cwd (Depends-on): Replace fcntl-safer with
6684 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
6685 <fcntl.h>; this module does not leak fds.
6686 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
6687 must be allowed to return 0, leaving openat_safer to add the
6689 (openat_permissive): Avoid writing to just-opened fd 2 if
6690 restoring the current directory fails.
6691 * lib/openat-die.c (openat_restore_fail): Add comment.
6692 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
6693 (save_cwd): Guarantee safe fd, but without use of open_safer.
6694 * tests/test-openat.c: New test.
6695 * modules/openat-tests (Files, Makefile.am): Distribute and build
6698 relocatable-prog-wrapper: fix build
6699 * modules/relocatable-prog-wrapper (Files): Update name of
6700 canonicalize m4 file, broken on 2009-09-17.
6701 Reported by emad hajjar <aleppos@hotmail.com>.
6703 2009-09-19 Bruno Haible <bruno@clisp.org>
6705 * lib/safe-alloc.h: Use the standard header with GPL copyright.
6706 * lib/safe-alloc.c: Likewise.
6707 Reported by Ian Beckwith <ianb@erislabs.net>.
6709 2009-09-18 Bruno Haible <bruno@clisp.org>
6711 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
6712 Reported by <erobles@sensacd.com.mx>.
6714 2009-09-17 Eric Blake <ebb9@byu.net>
6716 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
6717 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
6718 slashes when checking if last component is missing.
6719 * tests/test-canonicalize.c (main): Test this.
6721 canonicalize, canonicalize-lgpl: honor // if distinct from /
6722 * modules/canonicalize (Files): Add double-slash-root.m4.
6723 * modules/canonicalize-lgpl (Files): Likewise.
6724 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6725 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
6726 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
6727 fallback definition.
6728 (canonicalize_filename_mode): Use it to protect //.
6729 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
6730 (__realpath): Likewise.
6731 * tests/test-canonicalize.c (main): Test this.
6732 * tests/test-canonicalize-lgpl.c (main): Likewise.
6733 * modules/canonicalize-tests (Depends-on): Add same-inode.
6734 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6736 canonicalize-lgpl: fix glibc bug with trailing slash
6737 * m4/canonicalize-lgpl.m4: Move contents...
6738 * m4/canonicalize.m4: ...here.
6739 (gl_CANONICALIZE_LGPL): Factor realpath check...
6740 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
6741 glibc 2.3.5 bug, fixed 2005-04-27.
6742 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
6743 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
6744 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
6745 * modules/canonicalize-lgpl (Files): Manage file rename.
6746 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6747 * modules/stdlib (Makefile.am): Substitute witness.
6748 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
6750 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
6751 replacement is required.
6752 * lib/canonicalize.c (canonicalize_file_name): Likewise.
6753 * doc/glibc-functions/canonicalize_file_name.texi
6754 (canonicalize_file_name): Document this.
6755 * doc/posix-functions/realpath.texi (realpath): Likewise.
6757 canonicalize-lgpl: reject non-directory with trailing slash
6758 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
6759 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
6760 catches failures in glibc 2.3.5.
6761 * tests/test-canonicalize.c (main): Likewise.
6763 canonicalize-lgpl: use native realpath if it works
6764 * lib/canonicalize-lgpl.c (realpath): Guard with
6765 FUNC_REALPATH_WORKS.
6766 * lib/stdlib.in.h (realpath): Make declaration optional based on
6768 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
6769 native realpath works.
6770 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6771 * modules/stdlib (Makefile.am): Substitute witness.
6773 canonicalize, canonicalize-lgpl: use <stdlib.h>
6774 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
6775 (Include): Mention <stdlib.h>.
6776 (configure.ac): Mention functions we provide.
6777 * modules/canonicalize (configure.ac): Likewise.
6778 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
6779 realpath if canonicalize_file_name is missing.
6780 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
6781 * modules/stdlib (Makefile.am): Substitute witnesses.
6782 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
6783 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
6784 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
6785 * NEWS: Document this.
6786 * doc/glibc-functions/canonicalize_file_name.texi
6787 (canonicalize_file_name): Likewise.
6788 * doc/posix-functions/realpath.texi (realpath): Likewise.
6789 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
6791 test-canonicalize: consolidate into single C program
6792 * tests/test-canonicalize.sh: Delete; move setup into...
6793 * tests/test-canonicalize.c (main): ...the program, making it
6794 easier to run in debugger. Add some tests.
6795 * modules/canonicalize-tests (Files): Remove unused file.
6796 (Depends-on): Add progname.
6797 (configure.ac, Makefile.am): Simplify.
6799 test-canonicalize-lgpl: consolidate into single C program
6800 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
6801 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
6802 easier to run in debugger. Add some tests.
6803 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
6804 (configure.ac, Makefile.am): Simplify.
6806 canonicalize: avoid resolvepath
6807 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
6809 * lib/canonicalize.c (includes): Simplify.
6810 (canonicalize_file_name): Drop resolvepath implementation.
6811 * modules/canonicalize (Depends-on): Drop filenamecat.
6813 canonicalize: don't lose errno
6814 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
6817 canonicalize: simplify errno handling
6818 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
6821 canonicalize, canonicalize-lgpl: update module dependencies
6822 * modules/canonicalize (Depends-on): Add extensions, lstat,
6824 (Files): Drop pathmax.h.
6825 (configure.ac): Adjust macro name.
6826 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
6827 lstat, stdlib, sys_stat.
6828 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
6829 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
6831 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
6832 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
6833 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
6834 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
6835 declaration, if available.
6836 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
6837 we can rely on the readlink module.
6838 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
6839 (includes): Use <unistd.h> unconditionally.
6841 2009-09-17 Eric Blake <ebb9@byu.net>
6843 maint: make Include sections of modules consistent
6844 * modules/alloca: Use only header name; no need to list #include.
6845 * modules/alloca-opt: Likewise.
6846 * modules/arpa_inet: Likewise.
6847 * modules/canon-host: Likewise.
6848 * modules/configmake: Likewise.
6849 * modules/dirent: Likewise.
6850 * modules/eealloc: Likewise.
6851 * modules/environ: Likewise.
6852 * modules/fchdir: Likewise.
6853 * modules/fcntl: Likewise.
6854 * modules/fcntl-h: Likewise.
6855 * modules/gethrxtime: Likewise.
6856 * modules/gettime: Likewise.
6857 * modules/ignore-value: Likewise.
6858 * modules/inet_ntop: Likewise.
6859 * modules/inet_pton: Likewise.
6860 * modules/inttypes: Likewise.
6861 * modules/isnand-nolibm: Likewise.
6862 * modules/isnanf-nolibm: Likewise.
6863 * modules/mbchar: Likewise.
6864 * modules/mbfile: Likewise.
6865 * modules/mbiter: Likewise.
6866 * modules/mbuiter: Likewise.
6867 * modules/netdb: Likewise.
6868 * modules/netinet_in: Likewise.
6869 * modules/nproc: Likewise.
6870 * modules/pagealign_alloc: Likewise.
6871 * modules/poll: Likewise.
6872 * modules/printf-frexp: Likewise.
6873 * modules/pthread: Likewise.
6874 * modules/putenv: Likewise.
6875 * modules/random_r: Likewise.
6876 * modules/relocatable-prog: Likewise.
6877 * modules/search: Likewise.
6878 * modules/select: Likewise.
6879 * modules/selinux-h: Likewise.
6880 * modules/settime: Likewise.
6881 * modules/signal: Likewise.
6882 * modules/size_max: Likewise.
6883 * modules/socklen: Likewise.
6884 * modules/ssize_t: Likewise.
6885 * modules/stdarg: Likewise.
6886 * modules/stdbool: Likewise.
6887 * modules/stddef: Likewise.
6888 * modules/stdint: Likewise.
6889 * modules/stdio: Likewise.
6890 * modules/stdlib: Likewise.
6891 * modules/string: Likewise.
6892 * modules/strings: Likewise.
6893 * modules/sys_file: Likewise.
6894 * modules/sys_ioctl: Likewise.
6895 * modules/sys_select: Likewise.
6896 * modules/sys_socket: Likewise.
6897 * modules/sys_stat: Likewise.
6898 * modules/sys_time: Likewise.
6899 * modules/sys_times: Likewise.
6900 * modules/sys_utsname: Likewise.
6901 * modules/sys_wait: Likewise.
6902 * modules/sysexits: Likewise.
6903 * modules/time: Likewise.
6904 * modules/times: Likewise.
6905 * modules/tmpfile: Likewise.
6906 * modules/trim: Likewise.
6907 * modules/unistd: Likewise.
6908 * modules/wchar: Likewise.
6909 * modules/wctype: Likewise.
6911 2009-09-17 Bruno Haible <bruno@clisp.org>
6913 Make getdate.y compile on QNX and NetBSD 5 / i386.
6914 * m4/getdate.m4 (gl_GETDATE): Conditionally define
6915 TIME_T_FITS_IN_LONG_INT.
6916 * lib/getdate.y (long_time_t): New type.
6917 (relative_time): Change type of 'seconds' field to long_time_t.
6918 (get_date): Update types of local variables. Check against overflow
6919 during conversion from long_time_t to time_t.
6920 Reported by Matt Kraai <kraai@ftbfs.org>
6921 and Hasso Tepper <hasso@netbsd.org>.
6923 2009-09-17 Bruno Haible <bruno@clisp.org>
6925 * modules/COPYING: Update copyright years.
6926 * modules/README: Likeiwse.
6927 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
6928 Reported by Ian Beckwith <ianb@erislabs.net>.
6930 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
6932 * users.txt: Update references for gnuit package.
6934 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
6936 * m4/getdelim.m4: Fix typo in copyright line.
6938 2009-09-17 Bruno Haible <bruno@clisp.org>
6940 * lib/atoll.c: Use the standard header with GPL copyright.
6941 * lib/argz.in.h: Likewise.
6942 * lib/glob.c: Likewise.
6943 * lib/glob-libc.h: Likewise.
6944 * lib/random_r.c: Likewise.
6945 * lib/siglist.h: Likewise.
6946 * lib/strsignal.c: Likewise.
6947 Reported by Ian Beckwith <ianb@erislabs.net>.
6949 2009-09-17 Eric Blake <ebb9@byu.net>
6951 rmdir: ensure correct dependency order
6952 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
6954 2009-09-17 Bruno Haible <bruno@clisp.org>
6956 Disable assertion that fails on NetBSD 5 / i386.
6957 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
6958 Reported by Sam Steingold <sds@gnu.org>
6959 and Hasso Tepper <hasso@netbsd.org>.
6961 2009-09-16 Eric Blake <ebb9@byu.net>
6963 unlinkdir: port to mingw
6964 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
6965 on which no one can unlink a directory.
6967 stdlib: sort witness names
6968 * modules/stdlib (Makefile.am): Sort replacements.
6969 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6970 * lib/stdlib.in.h: Likewise.
6972 parse-duration-tests: avoid link failure
6973 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
6975 Reported by Tom G. Christensen.
6977 openat-tests: ensure unlinkat behaves like rmdir
6978 * tests/test-rmdir.c (main): Factor guts...
6979 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
6980 * modules/rmdir-tests (Files): Ship new file.
6981 * modules/openat-tests: New test.
6982 * tests/test-unlinkat.c: Likewise.
6984 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
6985 * modules/rmdir-errno (Status, Notice): Now obsolete.
6987 rmdir: work around cygwin 1.5.x and mingw bugs
6988 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
6989 * lib/rmdir.c (rmdir): Work around it.
6990 * modules/rmdir (Status, Notice): No longer obsolete.
6991 (Files): Add dos.m4.
6992 (Depends-on): Add unistd.
6993 (configure.ac): Set witnesses.
6994 (License): Relax to LGPLv2+.
6995 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
6996 * modules/unistd (Makefile.am): Substitute witnesses.
6997 * lib/unistd.in.h (rmdir): Declare replacement.
6998 * doc/posix-functions/rmdir.texi (rmdir): Document this.
6999 * modules/rmdir-tests: New tests.
7000 * tests/test-rmdir.c: Likewise.
7002 2009-09-15 Eric Blake <ebb9@byu.net>
7004 fchdir: improve use of replacement functions
7005 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
7006 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
7007 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
7009 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
7010 * modules/sys_stat (Makefile.am): Substitute correct witness.
7011 * modules/dirent (Makefile.am): Likewise.
7012 * modules/unistd (Makefile.am): Likewise.
7013 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
7014 * lib/unistd.in.h (dup): Likewise.
7015 * lib/sys_stat.in.h (fstat): Likewise.
7017 maint: ignore gnulib-tool temp files
7018 * .gitignore: Ignore files created during gnulib-tool --test.
7020 2009-09-13 Jim Meyering <meyering@redhat.com>
7022 posixtm: don't reject a time that specify "60" as the number of seconds
7023 * lib/posixtm.c (posixtime): The code to reject invalid dates
7024 would also reject a time specified with the .60 suffix.
7025 But POSIX allows that, in order to accommodate leap seconds.
7027 (main): Adjust tests accordingly.
7028 * modules/posixtm (Depends-on): Add stpcpy.
7030 2009-09-11 Jim Meyering <meyering@redhat.com>
7032 announce-gen: include [$release_type] in emitted Subject:
7033 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
7034 e.g., [stable] in the emitted Subject: line.
7036 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7038 Remove obsolete macros from several modules.
7039 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
7040 obsolete Autoconf macros with their modern counterparts.
7041 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
7042 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
7043 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
7044 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
7045 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
7046 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7047 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7048 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7049 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7050 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
7051 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7052 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7053 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
7054 * m4/sockets.m4 (gl_SOCKETS): Likewise.
7055 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
7056 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
7057 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
7058 * m4/time_r.m4 (gl_TIME_R): Likewise.
7059 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7060 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
7061 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7063 Fix copyright header in build-aux scripts.
7064 * build-aux/git-version-gen: Fix copyright header to match GPLv3
7066 * build-aux/ncftpput-ftp: Likewise.
7067 * build-aux/update-copyright: Likewise.
7069 2009-09-09 Eric Blake <ebb9@byu.net>
7071 test-link: allow Linux choice of errno
7072 * tests/test-link.c (main): Relax test for alternate error.
7074 strndup: fix improper m4 caching
7075 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
7076 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
7077 (gl_PREREQ_STRNDUP): Delete.
7078 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
7079 * modules/string (Makefile.am): Substitute it.
7080 * lib/string.in.h (strndup): Modernize prototype.
7082 getcwd: port to mingw
7083 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
7084 different from the POSIX assumptions made throughout the getcwd
7085 module; fortunately, the mingw getcwd does not need replacement.
7086 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
7087 * modules/getcwd-tests: New test.
7088 * tests/test-getcwd.c: Likewise.
7090 link: fix platform bugs
7091 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
7092 * lib/link.c (link): Work around them. Fix related mingw bug.
7093 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
7094 * modules/unistd (Makefile.am): Substitute it.
7095 * lib/unistd.in.h (link): Declare replacement.
7096 * doc/posix-functions/link.texi (link): Document this.
7097 * modules/link (Depends-on): Add strdup-posix, sys_stat.
7099 test-link: consolidate into single C program, test more cases
7100 * tests/test-link.sh: Delete.
7101 * tests/test-link.c: Test more error conditions. Exposes bugs on
7102 at least Cygwin and Solaris.
7103 * modules/link-tests (Files): Remove unused file.
7104 (Depends-on): Add errno, sys_stat.
7105 (Makefile.am): Simplify.
7107 2009-09-08 Bruno Haible <bruno@clisp.org>
7109 Work around towlower, towupper bug on mingw.
7110 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
7111 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
7112 * doc/posix-functions/towlower.texi: Mention the mingw bug.
7113 * doc/posix-functions/towupper.texi: Likewise.
7114 Reported by Eric Blake.
7116 2009-09-08 Jim Meyering <meyering@redhat.com>
7118 build: don't try to run autoheader if we don't use it
7119 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
7120 is not used in configure.ac.
7122 2009-09-08 Eric Blake <ebb9@byu.net>
7124 euidaccess: fix compilation error
7125 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
7127 rawmemchr: relax license
7128 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
7130 Reported by Jim Meyering.
7132 mkfifoat: new module
7133 * modules/mkfifoat: New file.
7134 * lib/mkfifoat.c: Likewise.
7135 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
7136 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7137 * modules/sys_stat (Makefile.am): Use them.
7138 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
7139 * MODULES.html.sh (File system functions): Mention module.
7140 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7141 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7142 * modules/mkfifoat-tests: New test.
7143 * tests/test-mkfifoat.c: Likewise.
7145 strchrnul: relax license
7146 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
7148 Reported by Jim Meyering.
7150 2009-09-08 Eric Blake <ebb9@byu.net>
7152 fstatat: fix compilation on Solaris
7153 * lib/fstatat.c (includes): Add fcntl.h.
7154 Reported by Pádraig Brady.
7156 2009-09-07 Eric Blake <ebb9@byu.net>
7158 rename: modernize replacement
7159 * modules/rename (Depends-on): Add stdio.
7160 (configure.ac): Declare witness.
7161 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
7162 stdio take care of replacement.
7163 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
7164 * modules/stdio (Makefile.am): Substitute them.
7165 * lib/stdio.in.h (rename): Declare replacement.
7166 * lib/rename.c (includes): Allow cross-compilation to non-windows
7168 * doc/posix-functions/rename.texi (rename): Improve
7171 stdio: sort witness names
7172 * modules/stdio (Makefile.am): Sort replacements.
7173 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7174 * lib/stdio.in.h: Likewise.
7176 getcwd: minor cleanups
7177 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
7178 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
7180 openat: provide more convenience names
7181 * modules/faccessat (configure.ac): Add C witness.
7182 * lib/unistd.in.h (readlinkat): Fix typo.
7183 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
7184 convenience wrappers.
7185 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
7186 wrappers in syntax checks.
7188 2009-09-06 Eric Blake <ebb9@byu.net>
7190 doc: fix comments in recent patches
7191 * lib/faccessat.c: Mention correct function.
7192 * lib/fchmodat.c: Likewise.
7193 * lib/fchownat.c: Likewise.
7194 * lib/symlinkat.c: Likewise.
7195 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
7198 faccessat, symlinkat: continue cleanup of previous patch
7199 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
7200 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7201 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
7202 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
7203 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
7204 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
7207 2009-09-06 Bruno Haible <bruno@clisp.org>
7209 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
7210 (fstatat): Declare if GNULIB_FSTATAT is set.
7211 (mkdirat): Declare if GNULIB_MKDIRAT is set.
7212 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
7213 (unlinkat): Declare if GNULIB_UNLINKAT is set.
7214 * modules/fcntl-h (Files): Remove m4/openat.m4.
7215 * modules/sys_stat (Files): Remove m4/openat.m4.
7216 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
7217 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
7218 * modules/unistd (Files): Remove m4/openat.m4.
7219 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
7221 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
7222 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
7223 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7224 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
7225 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
7227 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
7228 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
7229 Don't require gl_OPENAT_DEFAULTS.
7230 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
7231 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
7232 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
7233 (gl_OPENAT_DEFAULTS): Remove macro.
7235 2009-09-06 Bruno Haible <bruno@clisp.org>
7237 * modules/openat (configure.ac): Remove unneeded witness.
7239 2009-09-06 Bruno Haible <bruno@clisp.org>
7241 Set errno to ENOSYS when a function is entirely unsupported.
7242 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
7244 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7245 * modules/chown (Depends-on): Remove errno.
7247 2009-09-06 Bruno Haible <bruno@clisp.org>
7249 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
7251 2009-09-06 Bruno Haible <bruno@clisp.org>
7253 * lib/sys_stat.in.h: Fix preprocessor command indentation.
7255 2009-09-06 Ben Pfaff <blp@gnu.org>
7256 Bruno Haible <bruno@clisp.org>
7258 Work around a glibc bug in strtok_r.
7259 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
7260 Undefine if UNDEFINE_STRTOK_R is set.
7261 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
7262 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7263 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
7264 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
7265 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
7267 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
7269 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
7272 * lib/exclude.c: Include wctype.h
7274 2009-09-06 Akim Demaille <demaille@gostai.com>
7276 bootstrap: improve error message
7277 * build-aux/bootstrap (find_tool): Upon failure, report the list
7279 Honor the initial value of the envvar.
7281 2009-09-05 Eric Blake <ebb9@byu.net>
7283 symlinkat: new module
7284 * modules/symlinkat: New file.
7285 * lib/symlinkat.c: Likewise.
7286 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
7287 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7288 * modules/unistd (Makefile.am): Use them.
7289 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
7290 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
7291 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
7292 * MODULES.html.sh (File system functions): Mention module.
7293 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7294 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7295 * modules/symlinkat-tests: New test.
7296 * tests/test-symlinkat.c: Likewise.
7298 test-openat-safer: add more checks
7299 * tests/test-openat-safer.c (main): Check more code paths.
7301 2009-09-05 Jim Meyering <meyering@redhat.com>
7303 syntax-check: detect unnecessary inclusion of openat.h
7304 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
7306 2009-09-05 Bruno Haible <bruno@clisp.org>
7308 Support towlower, towupper.
7309 * doc/posix-functions/towlower.texi: Mention module wctype.
7310 * doc/posix-functions/towupper.texi: Likewise.
7311 * lib/wctype.in.h (towlower, towupper): New functions.
7312 * tests/test-wctype.c: Include stdio.h, stdlib.h.
7313 (ASSERT): New macro.
7315 (main): Test also towlower, towupper. Test WEOF argument.
7316 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
7318 2009-09-05 Bruno Haible <bruno@clisp.org>
7320 Fix conversion behaviour when the input is invalid.
7321 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
7322 mark occurring in first pass of indirect conversion.
7323 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
7325 Found by clang's static analyzer.
7327 2009-09-05 Bruno Haible <bruno@clisp.org>
7329 * tests/test-striconveh.c (main): Test indirect conversion on platforms
7330 where direct conversion is possible.
7332 2009-09-04 Eric Blake <ebb9@byu.net>
7334 openat: fail with ENOENT on empty name
7335 * lib/openat-proc.c (openat_proc_name): Special-case the empty
7338 link-follow: fix logic bug in prior patch
7339 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
7340 reversed sense of yes and no in prior patch. Avoid confusing
7341 compilation failure with desired semantics.
7343 link-follow: accomodate mingw and cross-compilation
7344 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
7345 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
7346 cross-compilation results to -1, to make linkat easier to
7347 implement when cross-compiling. Trivially support mingw.
7348 * modules/link-follow (configure.ac): Call new name.
7349 * NEWS: Mention this.
7351 2009-09-03 Eric Blake <ebb9@byu.net>
7353 faccessat: compile replacement
7354 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
7357 fts: fix compilation error
7358 * lib/fts.c (includes): Re-add "openat.h", for
7359 openat_needs_fchdir.
7361 faccessat: new module
7362 * modules/faccessat: New file.
7363 * lib/faccessat.c: Likewise.
7364 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7365 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7366 * modules/unistd (Makefile.am): Use it.
7367 * lib/unistd.in.h (faccessat): Declare it.
7368 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
7369 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
7370 * MODULES.html.sh (File system functions): Mention it.
7371 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
7372 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7374 euidaccess: prefer POSIX over non-standard implementation
7375 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
7376 * lib/euidaccess.c (euidaccess): Use it if available.
7378 openat: make template easier to use
7379 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
7380 AT_FUNC_F2 to be undefined.
7381 (VALIDATE_FLAG): New macro; use it to reject bad flags.
7382 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
7383 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
7384 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
7385 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
7387 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
7388 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
7389 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
7392 openat: declare in POSIX headers
7393 * NEWS: Mention this.
7394 * modules/openat (configure.ac): Declare witnesses.
7395 (Depends-on): Add fcntl-h, sys_stat, unistd.
7396 (Include): Mention correct headers.
7397 * modules/fcntl-h (Depends-on): Add link-warning.
7398 (Files): Add openat.m4.
7399 (Makefile.am): Substitute witnesses.
7400 * modules/sys_stat (Files, Makefile.am): Likewise.
7401 * modules/unistd (Files, Makefile.am): Likewise.
7402 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
7403 (gl_OPENAT_DEFAULTS): New macro.
7404 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
7405 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
7406 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
7407 (SYS_STAT_H): Remove unused variable.
7408 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
7409 * lib/fcntl--.h (includes): Remove unneeded header.
7410 * lib/openat-safer.c (includes): Likewise.
7411 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
7412 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
7413 appropriate headers.
7414 (__OPENAT_PREFIX): Delete.
7415 * lib/fcntl.in.h (openat): Provide declaration.
7416 (AT_FDCWD): Fix Solaris bug.
7417 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
7418 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
7419 * lib/fchmodat.c (includes): Adjust to find declaration.
7420 * lib/fchownat.c (includes): Likewise.
7421 * lib/mkdirat.c (includes): Likewise.
7422 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
7425 2009-09-02 Eric Blake <ebb9@byu.net>
7427 errno: use consistently
7428 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
7429 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
7430 * lib/canonicalize.c (ELOOP): Likewise.
7431 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
7432 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
7433 * lib/lchown.c (EOPNOTSUPP): Likewise.
7434 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
7435 * lib/savewd.c (ESTALE): Likewise.
7436 * lib/settime.c (ENOSYS): Likewise.
7437 * lib/utimens.c (ENOSYS): Likewise.
7438 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
7439 * lib/chdir-safer.c (ELOOP): Likewise.
7440 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
7441 * modules/c-stack (Depends-on): Add errno.
7442 * modules/canonicalize (Depends-on): Likewise.
7443 * modules/chdir-safer (Depends-on): Likewise.
7444 * modules/fdopendir (Depends-on): Likewise.
7445 * modules/inet_ntop (Depends-on): Likewise.
7446 * modules/inet_pton (Depends-on): Likewise.
7447 * modules/lchown (Depends-on): Likewise.
7448 * modules/openat (Depends-on): Likewise.
7449 * modules/savewd (Depends-on): Likewise.
7450 * modules/settime (Depends-on): Likewise.
7451 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
7453 fts: avoid leaking fds
7454 * modules/fts (Depends-on): Add cloexec.
7455 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
7458 fts: make directory fds more robust
7459 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
7460 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
7462 backupfile, chdir-long, fts, savedir: make safer
7463 * lib/backupfile.c (includes): Use "dirent--.h", since
7464 numbered_backup can write to stderr during readdir.
7465 * lib/savedir.c (includes): Likewise.
7466 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
7467 emulation can write to stderr on failure.
7468 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
7469 * lib/getcwd.c: Document why opendir_safer is unused.
7470 * lib/glob.c: Likewise.
7471 * lib/scandir.c: Likewise.
7472 * lib/openat-proc.c: Likewise, for open_safer.
7473 * modules/backupfile (Depends-on): Add dirent-safer.
7474 * modules/savedir (Depends-on): Likewise.
7475 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
7476 * modules/chdir-long (Depends-on): Add openat-safer.
7478 openat-safer: new module
7479 * modules/openat-safer: New file.
7480 * lib/openat-safer.c: Likewise.
7481 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
7482 * lib/fcntl-safer.h (openat_safer): Declare.
7483 * lib/fcntl--.h (openat): Override.
7484 * MODULES.html.sh (File descriptor based I/O): Mention it.
7485 * lib/openat.h: Add double-inclusion guards.
7486 * lib/openat.c (includes): Only include "fcntl-safer.h", not
7487 "fcntl--.h", so we can implement openat.
7488 * modules/openat-safer-tests: New test.
7489 * tests/test-openat-safer.c: New file.
7491 dirent-safer: new module
7492 * modules/dirent-safer: New file.
7493 * lib/dirent--.h: Likewise.
7494 * lib/dirent-safer.h: Likewise.
7495 * lib/opendir-safer.c: Likewise.
7496 * m4/dirent-safer.m4: Likewise.
7497 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
7498 * modules/dirent-safer-tests: New test.
7499 * tests/test-dirent-safer.c: New file.
7500 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
7502 fdopendir: optimize on mingw
7503 * lib/unistd.in.h (_gl_directory_name): New prototype.
7504 * lib/fchdir.c (_gl_directory_name): Implement it.
7505 (fchdir): Use it to simplify implementation.
7506 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
7507 fchdir, when available, to avoid calling [f]chdir().
7509 fdopendir: split into its own module
7510 * lib/openat.c (fdopendir): Move...
7511 * lib/fdopendir.c: ...into new file.
7512 * modules/fdopendir: New module.
7513 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
7514 * modules/openat (Depends-on): Add fdopendir.
7515 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
7517 * modules/savedir (Depends-on): Only need fdopendir, not full
7519 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
7520 * lib/openat.h (fdopendir): Drop prototype.
7521 * lib/dirent.in.h (fdopendir): Provide prototype.
7522 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
7523 * modules/dirent (Makefile.am): Substitute them.
7524 * MODULES.html.sh (File system functions): Mention it.
7525 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
7526 * modules/fdopendir-tests: New file.
7527 * tests/test-fdopendir.c: Likewise.
7529 fchdir: use more consistent macro convention
7530 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
7531 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
7532 REPLACE_FCHDIR, rather than relying on config.h macros.
7533 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
7534 inside a single make-time REPLACE_FCHDIR block, rather than using
7535 the config.h FCHDIR_REPLACEMENT.
7536 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
7537 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
7538 Manage fstat replacement.
7539 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
7541 * modules/sys_stat (Files): Add m4/unistd_h.m4.
7542 (Makefile.am): Substitute REPLACE_FCHDIR.
7543 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
7545 * lib/dup-safer.c (dup_safer): Likewise.
7546 * lib/dup2.c (rpl_dup2): Likewise.
7547 * lib/dup3.c (rpl_dup3): Likewise.
7548 * lib/open.c (rpl_open): Likewise.
7550 fchdir: simplify error handling, and support dup3
7551 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
7552 stdbool, malloc-posix, realloc-posix.
7553 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
7554 (ensure_dirs_slot): Return false on allocation failure.
7556 (_gl_register_dup): New function.
7557 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
7558 (_gl_register_fd): Close fd on allocation failure.
7559 * lib/fcntl.in.h (_gl_register_fd): Update signature.
7560 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
7562 (rpl_dup2_fchdir): Delete prototype.
7563 * lib/open.c (open): Update caller.
7564 * lib/dup2.c (dup2): Track fchdir metadata.
7565 * lib/dup3.c (dup3): Likewise.
7566 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
7567 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
7569 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7571 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
7572 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
7573 don't pass arguments to AC_OUTPUT.
7575 2009-09-02 Bruno Haible <bruno@clisp.org>
7577 * modules/mkdtemp (License): Relicense under LGPLv2+.
7578 Reported by Paolo Bonzini.
7580 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7582 Replace uses of obsolete autoconf macros in Jim's modules.
7583 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
7584 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
7585 can evoke a warning from autoconf when run with -Wobsolete
7586 enabled. They were declared obsolete for good reasons (see
7587 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
7588 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
7589 should not continue using the deprecated macros.
7590 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
7591 obsolete Autoconf macros with modern counterparts.
7592 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7593 * m4/dos.m4 (gl_AC_DOS): Likewise.
7594 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
7595 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7596 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
7597 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
7598 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
7599 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
7600 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
7601 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
7602 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
7604 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7605 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7606 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
7607 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
7608 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7609 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
7611 2009-09-01 Eric Blake <ebb9@byu.net>
7613 fchdir: fix off-by-one bug in previous patch
7614 * lib/fchdir.c (rpl_fstat): Use correct bounds.
7615 (_gl_unregister_fd): Delete useless if.
7617 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
7619 maint.mk: sort the list of syntax-check rules
7620 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
7621 easier to get a sense of progress when the rules are run sequentially
7622 and take a long time.
7624 2009-09-01 Simon Josefsson <simon@josefsson.org>
7626 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
7627 * modules/netinet_in: Likewise.
7628 * modules/sys_file: Likewise.
7629 * modules/sys_ioctl: Likewise.
7630 * modules/sys_select: Likewise.
7631 * modules/sys_socket: Likewise.
7632 * modules/sys_stat: Likewise.
7633 * modules/sys_time: Likewise.
7634 * modules/sys_times: Likewise.
7635 * modules/sys_utsname: Likewise.
7636 * modules/sys_wait: Likewise.
7638 2009-09-01 Jim Meyering <meyering@redhat.com>
7640 fts: help ensure that return values are not ignored
7641 * lib/fts_.h (__GNUC_PREREQ): Define.
7642 (__attribute_warn_unused_result__): Define.
7643 (fts_children, fts_close, fts_open, fts_read): Declare with
7644 __attribute_warn_unused_result__.
7646 fts: fts_close now fails also when closing a dir file descriptor fails
7647 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
7648 and propagate to caller, along with errno.
7650 announce-gen: correct formatting in --help output
7651 * build-aux/announce-gen (usage): Move the one-line description in
7652 --help output "up", to where it belongs, just after Usage:.
7654 2009-08-31 Eric Blake <ebb9@byu.net>
7656 fchdir: port to mingw
7657 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
7658 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
7659 opened, then use a substitute.
7660 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
7662 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
7663 (_gl_register_fd): No need to check stat if open already filters
7665 (fchdir): Fix error condition to match POSIX.
7666 * modules/fchdir (Depends-on): Add sys_stat.
7667 * doc/posix-functions/open.texi (open): Document the limitation.
7668 * modules/fchdir-tests: New file.
7669 * tests/test-fchdir.c: Likewise.
7671 canonicalize: allow cross-testing from cygwin to mingw
7672 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
7673 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
7674 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
7676 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
7677 target does not support symlinks.
7678 * tests/test-canonicalize-lgpl.sh: Likewise.
7680 chown: avoid compilation warning on mingw
7681 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
7682 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
7684 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7685 * modules/chown (Depends-on): Add errno.
7687 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
7689 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
7692 2009-08-31 Jim Meyering <meyering@redhat.com>
7694 canonicalize: remove useless initialization
7695 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
7696 initialization of local, "end".
7698 2009-08-30 Bruno Haible <bruno@clisp.org>
7700 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
7701 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
7704 2009-08-30 Bruno Haible <bruno@clisp.org>
7706 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
7707 /usr/xpg4/bin/tr when it exists.
7708 * tests/test-pipe-filter-gi1.sh: Likewise.
7710 2009-08-30 Bruno Haible <bruno@clisp.org>
7712 Work around deficient /usr/bin/id program on Solaris.
7713 * tests/test-file-has-acl.sh (ID): New variable.
7714 * tests/test-set-mode-acl.sh (ID): Likewise.
7715 * tests/test-copy-acl.sh (ID): Likewise.
7716 * tests/test-copy-file.sh (ID): Likewise.
7718 2009-08-30 Bruno Haible <bruno@clisp.org>
7720 New module 'xstriconveh'.
7721 * lib/xstriconveh.h: New file.
7722 * lib/xstriconveh.c: New file.
7723 * modules/xstriconveh: New file.
7725 2009-08-30 Bruno Haible <bruno@clisp.org>
7727 Make it easier to use mem_cd_iconveh.
7728 * lib/striconveh.h (iconveh_t): New type.
7729 (iconveh_open, iconveh_close): New declarations.
7730 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7731 with a single 'const iconveh_t *' argument.
7732 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
7733 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7734 with a single 'const iconveh_t *' argument.
7735 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
7736 * tests/test-striconveh.c (main): Update.
7737 * NEWS: Mention the change.
7739 2009-08-30 Bruno Haible <bruno@clisp.org>
7741 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
7744 2009-08-30 Bruno Haible <bruno@clisp.org>
7746 Work around iconv_open problem on Solaris.
7747 * lib/iconv_open-solaris.gperf: New file.
7748 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
7749 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
7750 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
7751 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
7752 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
7753 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
7755 2009-08-29 Jim Meyering <meyering@redhat.com>
7757 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
7758 * top/maint.mk (cvs-check): Remove target; it was just an alias
7759 to the better-named vc-diff-check.
7760 (maintainer-distcheck): Remove rule. It was used only from
7761 the (alpha/beta/major) target, and all of its commands but one
7762 were coreutils-specific.
7763 (vc-dist): Remove rule.
7764 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
7765 Run vc-diff-check, not vc-dist.
7766 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
7768 2009-08-27 Bruno Haible <bruno@clisp.org>
7770 * tests/test-bitrotate.c (main): Remove test that uses a shift count
7773 2009-08-27 Bruno Haible <bruno@clisp.org>
7775 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
7777 * doc/func.texi: Document the SunPRO C bug.
7779 2009-08-27 Bruno Haible <bruno@clisp.org>
7781 Fix link error on Solaris.
7782 * tests/test-parse-duration.c (xstrdup): Remove function.
7784 2009-08-26 Pádraig Brady <P@draigbrady.com>
7786 ignore-value: handle pointer types, too
7787 * lib/ignore-value.h (__attribute__): Remove definition.
7788 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
7789 of a more concise and more-often effective "(void) i" statement.
7790 (ignore_ptr): New function to suppress warnings from functions that
7791 return pointers, and to make it explicit that one function doesn't
7794 2009-08-25 Bruno Haible <bruno@clisp.org>
7796 dup2: work around a Linux bug.
7797 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
7798 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
7799 * doc/posix-functions/dup2.texi: Mention the Linux bug.
7800 Reported by Simon Josefsson.
7802 2009-08-25 Jim Meyering <meyering@redhat.com>
7804 libguestfs uses gnulib
7805 * users.txt: Add libguestfs.
7807 2009-08-24 Eric Blake <ebb9@byu.net>
7809 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
7810 * lib/pipe2.c (includes): Add binary-io.h.
7811 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
7813 2009-08-24 Bruno Haible <bruno@clisp.org>
7815 Tolerate declared but missing accept4 syscall.
7816 * lib/accept4.c (accept4): Invoke original accept4 function first, if
7818 * lib/sys_socket.in.h (accept4): If the function is already present,
7820 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
7821 * modules/accept4 (Makefile.am): Compile accept4.c always.
7822 Reported by Paolo Bonzini and Eric Blake.
7824 2009-08-23 Bruno Haible <bruno@clisp.org>
7826 New module 'accept4'.
7827 * lib/sys_socket.in.h (accept4): New declaration.
7828 * lib/accept4.c: New file.
7829 * m4/accept4.m4: New file.
7830 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7831 GNULIB_ACCEPT4, HAVE_ACCEPT4.
7832 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
7834 * modules/accept4: New file.
7835 * doc/glibc-functions/accept4.texi: Mention the new module.
7837 2009-08-24 Jim Meyering <meyering@redhat.com>
7839 progname: also set global program_invocation_name, when possible
7840 Before this change, a libtool-enabled program that calls glibc's
7841 error function would report the program name as
7842 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
7843 * modules/progname (configure.ac): Check for a declaration of
7844 program_invocation_name.
7845 * lib/progname.c: Include <errno.h>.
7846 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
7847 Set program_invocation_name.
7849 2009-08-23 Bruno Haible <bruno@clisp.org>
7851 * lib/dup3.c: Include <string.h>.
7853 2009-08-23 Bruno Haible <bruno@clisp.org>
7855 * lib/dup3.c (dup3): Test only once whether the system actually exists.
7856 * lib/pipe2.c (pipe2): Likewise.
7857 Suggested by Eric Blake.
7859 2009-08-23 Bruno Haible <bruno@clisp.org>
7861 Tolerate declared but missing dup3 syscall.
7862 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
7863 * lib/unistd.in.h (dup3): If the function is already present,
7865 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
7866 * modules/dup3 (Makefile.am): Compile dup3.c always.
7867 Reported by Paolo Bonzini.
7869 2009-08-23 Bruno Haible <bruno@clisp.org>
7871 Tolerate declared but missing pipe2 syscall.
7872 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
7874 * lib/unistd.in.h (pipe2): If the function is already present,
7876 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
7877 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
7878 Reported by Paolo Bonzini.
7880 2009-08-23 Bruno Haible <bruno@clisp.org>
7882 * lib/pipe2.c (pipe2): Move #ifs inside function.
7884 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
7886 quotearg: document limitations of quote_these_too
7887 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
7888 those limitations are created.
7889 * lib/quotearg.h (set_char_quoting): Document that digits and
7890 letters that are special after backslash are not permitted.
7891 (quotearg_char): Cross-reference set_char_quoting documentation.
7893 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
7895 quotearg: implement custom_quoting_style
7896 * lib/quotearg.c: (struct quoting_options): Add left_quote and
7898 (set_custom_quoting): New public function.
7899 (quotearg_buffer_restyled): Add left_quote and right_quote
7900 arguments, handle them very much like locale quoting, and update
7902 (quotearg_n_custom): New public function.
7903 (quotearg_n_custom_mem): New public function.
7904 (quotearg_custom): New public function.
7905 (quotearg_custom_mem): New public function.
7906 * lib/quotearg.h: Prototype and document new public functions.
7907 (enum quoting_style): For escape_quoting_style and
7908 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
7909 ignored even though they're otherwise like c_quoting_style.
7910 Add custom_quoting_style member and document with comparison to
7911 clocale_quoting_style.
7912 * tests/test-quotearg.c (custom_quotes): New array.
7913 (custom_results): New array.
7914 (main): Extend to test custom quoting.
7916 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
7918 quotearg: fix right quote escaping when it's in quote_these_too
7919 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
7920 quote, be sure to prepend only one backslash.
7921 * tests/test-quotearg.c (use_quote_double_quotes): New function.
7924 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
7926 quotearg-tests: test escaping of embedded locale quotes
7927 * tests/test-quotearg.c (struct result_strings): Add member for
7929 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
7930 (inputs): Add new input.
7931 (results_g): Add expected results.
7932 (flag_results): Likewise.
7933 (locale_results): Likewise.
7934 (compare_strings): Check those.
7936 2009-08-23 Bruno Haible <bruno@clisp.org>
7938 Tests for module 'dup3'.
7939 * modules/dup3-tests: New file.
7940 * tests/test-dup3.c: New file.
7943 * lib/unistd.in.h (dup3): New declaration.
7944 * lib/dup3.c: New file.
7945 * m4/dup3.m4: New file.
7946 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
7948 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
7949 * modules/dup3: New file.
7950 * doc/glibc-functions/dup3.texi: Mention the new module.
7952 2009-08-23 Bruno Haible <bruno@clisp.org>
7954 Tweak the dup2 test.
7955 * tests/test-dup2.c (main): Create the test file empty. Verify that an
7956 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
7957 the test file is still empty. Fix argument order of lseek.
7959 2009-08-23 Bruno Haible <bruno@clisp.org>
7961 Avoid test link errors when the modules getopt-gnu, gettext are used.
7962 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
7963 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7965 2009-08-23 Bruno Haible <bruno@clisp.org>
7967 Fix getdtablesize() on mingw.
7968 * lib/getdtablesize.c (getdtablesize): Implement differently.
7969 * lib/unistd.in.h (getdtablesize): Improve comment.
7971 2009-08-23 Bruno Haible <bruno@clisp.org>
7973 New module 'mkostemp'.
7974 Based on Ulrich Drepper's 2007-08-10 change in glibc.
7975 * lib/stdlib.in.h (mksotemp): New declaration.
7976 * lib/mkostemp.c: New file, from glibc with modifications.
7977 * lib/tempname.h (GT_FILE): Remove outdated comment.
7978 (gen_tempname): Add flags argument.
7979 * lib/tempname.c (__GT_BIGFILE): Remove macro.
7980 (__GT_FILE): Map to 1.
7981 (small_open, large_open): Remove macros.
7982 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
7983 * lib/mkstemp.c (mkstemp): Update.
7984 * lib/mkdtemp.c (mkdtemp): Likewise.
7985 * m4/mkostemp.m4: New file.
7986 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
7988 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
7990 * modules/mkostemp: New file, based on modules/mkstemp.
7991 * doc/glibc-functions/mkostemp.texi: Mention the new module.
7992 * NEWS: Mention the change.
7994 2009-08-23 Bruno Haible <bruno@clisp.org>
7996 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
7997 Reported by Eric Blake.
7999 2009-08-23 Bruno Haible <bruno@clisp.org>
8001 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
8002 Reported by Eric Blake.
8004 2009-08-23 Bruno Haible <bruno@clisp.org>
8006 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
8007 * modules/pipe2 (Depends-on): Likewise.
8009 2009-08-23 Eric Blake <ebb9@byu.net>
8011 fcntl-h: add O_TTY_INIT support
8012 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
8013 * tests/test-fcntl-h.c (o): Test it.
8014 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8016 fcntl-h: rename from fcntl, in preparation for fcntl(2)
8017 * modules/fcntl: Move <fcntl.h> header replacement...
8018 * modules/fcntl-h: ...to new name, so as not to collide with
8019 like-named function.
8020 * tests/test-fcntl.c: Rename...
8021 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
8022 * modules/fcntl-tests: Rename...
8023 * modules/fcntl-h-tests: ...to this. Update test file name.
8024 * modules/chdir-long (Depends-on): Update clients.
8025 * modules/chdir-safer (Depends-on): Likewise.
8026 * modules/fcntl-safer (Depends-on): Likewise.
8027 * modules/fts (Depends-on): Likewise.
8028 * modules/mkancesdirs (Depends-on): Likewise.
8029 * modules/mkdir-p (Depends-on): Likewise.
8030 * modules/open (Depends-on): Likewise.
8031 * modules/savewd (Depends-on): Likewise.
8032 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
8033 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
8035 2009-08-22 Bruno Haible <bruno@clisp.org>
8037 * modules/binary-io (License): Relicense under LGPL.
8038 * modules/pipe2 (License): Likewise.
8040 2009-08-22 Bruno Haible <bruno@clisp.org>
8042 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
8044 * lib/pipe-filter-gi.c (filter_init): Likewise.
8045 Reported by Eric Blake.
8047 2009-08-22 Bruno Haible <bruno@clisp.org>
8049 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
8050 * modules/pipe (Depends-on): Add pipe2.
8052 2009-08-22 Bruno Haible <bruno@clisp.org>
8054 Tests for module 'pipe2'.
8055 * modules/pipe2-tests: New file.
8056 * tests/test-pipe2.c: New file.
8059 * lib/unistd.in.h (pipe2): New declaration.
8060 * lib/pipe2.c: New file.
8061 * m4/pipe2.m4: New file.
8062 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
8064 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
8065 * modules/pipe2: New file.
8066 * doc/glibc-functions/pipe2.texi: Mention the new module.
8068 2009-08-22 Bruno Haible <bruno@clisp.org>
8070 Reference some new glibc functions.
8071 * doc/glibc-functions/accept4.texi: New file.
8072 * doc/glibc-functions/dup3.texi: New file.
8073 * doc/glibc-functions/mkostemp.texi: New file.
8074 * doc/glibc-functions/pipe2.texi: New file.
8075 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
8076 (Glibc sys/socket.h): Refer to accept4.
8077 (Glibc unistd.h): Refer to dup3, pipe2.
8078 Reported by Eric Blake.
8080 2009-08-22 Jim Meyering <meyering@redhat.com>
8081 Bruno Haible <bruno@clisp.org>
8083 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
8084 This makes it so packages using automake-1.11's silent-rules option
8085 can print e.g., a single "GEN configmake.h" line, rather than
8086 the 30+ statements that perform the job. If you want to see the
8087 actual commands, you can still run "make V=1".
8088 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
8089 so that make output is abbreviated when those variables are defined
8091 * modules/argz: Likewise.
8092 * modules/arpa_inet: Likewise.
8093 * modules/byteswap: Likewise.
8094 * modules/configmake: Likewise.
8095 * modules/dirent: Likewise.
8096 * modules/errno: Likewise.
8097 * modules/fcntl: Likewise.
8098 * modules/float: Likewise.
8099 * modules/fnmatch: Likewise.
8100 * modules/getopt-posix: Likewise.
8101 * modules/glob: Likewise.
8102 * modules/iconv_open: Likewise.
8103 * modules/inttypes: Likewise.
8104 * modules/localcharset: Likewise.
8105 * modules/locale: Likewise.
8106 * modules/math: Likewise.
8107 * modules/netdb: Likewise.
8108 * modules/netinet_in: Likewise.
8109 * modules/poll: Likewise.
8110 * modules/posix_spawnp-tests: Likewise.
8111 * modules/sched: Likewise.
8112 * modules/search: Likewise.
8113 * modules/selinux-h: Likewise.
8114 * modules/signal: Likewise.
8115 * modules/spawn: Likewise.
8116 * modules/stdarg: Likewise.
8117 * modules/stdbool: Likewise.
8118 * modules/stddef: Likewise.
8119 * modules/stdint: Likewise.
8120 * modules/stdio: Likewise.
8121 * modules/stdlib: Likewise.
8122 * modules/string: Likewise.
8123 * modules/strings: Likewise.
8124 * modules/sys_file: Likewise.
8125 * modules/sys_ioctl: Likewise.
8126 * modules/sys_select: Likewise.
8127 * modules/sys_socket: Likewise.
8128 * modules/sys_stat: Likewise.
8129 * modules/sys_time: Likewise.
8130 * modules/sys_times: Likewise.
8131 * modules/sys_utsname: Likewise.
8132 * modules/sys_wait: Likewise.
8133 * modules/sysexits: Likewise.
8134 * modules/time: Likewise.
8135 * modules/unistd: Likewise.
8136 * modules/wchar: Likewise.
8137 * modules/wctype: Likewise.
8139 2009-08-22 Jim Meyering <meyering@redhat.com>
8141 announce-gen: detect write failure
8142 * build-aux/announce-gen: Add Coda at end.
8143 Remove equivalent-but-more-verbose block at top.
8145 2009-08-19 Akim Demaille <demaille@gostai.com>
8147 bootstrap: --help to stdout.
8148 * bootstrap (usage): Don't send --help to stderr.
8149 Use a here doc instead of a long string.
8151 2009-08-21 Eric Blake <ebb9@byu.net>
8153 test-popen-safer: split from test-popen
8154 * tests/test-popen.c (main): Move...
8155 * tests/test-popen.h: ...into new file.
8156 * tests/test-popen-safer2.c: New file.
8157 * modules/popen-tests (Files): Add test-popen.h.
8158 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
8159 Suggested by Bruno Haible.
8161 test-fcntl-safer: split from test-open
8162 * tests/test-open.c (main): Move...
8163 * tests/test-open.h: ...into new file.
8164 * tests/test-fcntl-safer.c: New file.
8165 * modules/open-tests (Files): Add test-open.h.
8166 * modules/fcntl-safer-tests: New file.
8167 Suggested by Bruno Haible.
8169 test-fopen-safer: split from test-fopen
8170 * tests/test-fopen.c (main): Move...
8171 * tests/test-fopen.h: ...into new file.
8172 * tests/test-fopen-safer.c: New file.
8173 * modules/fopen-tests (Files): Add test-fopen.h.
8174 * modules/fopen-safer-tests: New file.
8175 Suggested by Bruno Haible.
8177 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
8179 popen-safer: test O_CLOEXEC at run-time.
8180 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
8182 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
8184 fcntl: move more flags to the header
8185 * lib/cloexec.c: Do not define FD_CLOEXEC here.
8186 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
8187 * lib/fcntl.in.h: Do both things here.
8189 2009-08-21 Jim Meyering <meyering@redhat.com>
8191 consistently remove $@-t before redirecting to it
8192 * modules/argz: Remove $@-t and $@ before redirecting to the former.
8193 * modules/alloca-opt: Likewise.
8194 * modules/byteswap: Likewise.
8195 * modules/fnmatch: Likewise.
8196 * modules/getopt-posix: Likewise.
8197 * modules/glob: Likewise.
8198 * modules/poll: Likewise.
8199 * modules/posix_spawnp-tests: Likewise.
8200 * modules/sys_socket: Likewise.
8201 * modules/sysexits: Likewise.
8203 2009-08-21 Eric Blake <ebb9@byu.net>
8205 popen: simplify access to original popen
8206 * lib/popen.c (rpl_popen): No need to worry about popen being a
8208 Reported by Bruno Haible.
8210 2009-08-20 Eric Blake <ebb9@byu.net>
8212 build: avoid some compiler warnings
8213 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
8214 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
8216 (new_exclude_segment, excluded_file_pattern_p)
8217 (excluded_file_name_p): Reduce scope.
8218 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
8219 old-style declaration.
8221 2009-08-20 Simon Josefsson <simon@josefsson.org>
8223 * tests/test-exclude1.sh: Handle Windows EOL.
8224 * tests/test-exclude2.sh: Likewise.
8225 * tests/test-exclude3.sh: Likewise.
8226 * tests/test-exclude4.sh: Likewise.
8227 * tests/test-exclude5.sh: Likewise.
8228 * tests/test-exclude6.sh: Likewise.
8229 * tests/test-exclude7.sh: Likewise.
8231 2009-08-19 Akim Demaille <demaille@gostai.com>
8233 bootstrap: find sha1sum when named gsha1sum.
8234 * bootstrap (find_tool): New.
8238 2009-08-20 Jim Meyering <meyering@redhat.com>
8240 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
8241 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
8242 expression that converts "." in a file name to "\." in the resulting
8243 regexp. Start with a dummy statement, so that prior shell variable
8244 definitions are expanded portably. Reported by Simon Josefsson.
8246 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
8248 Fix polling for writeability of a screen buffer.
8249 * lib/poll.c: Distinguish input and screen buffers for the
8250 Win32 implementation.
8251 * lib/select.c: Likewise.
8253 2009-08-19 Eric Blake <ebb9@byu.net>
8255 popen-safer: prevent popen from clobbering std descriptors
8256 * modules/popen-safer: New file.
8257 * lib/popen-safer.c: Likewise.
8258 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
8259 * lib/stdio--.h (popen): Provide override.
8260 * lib/stdio-safer.h (popen_safer): Provide declaration.
8261 * tests/test-popen.c (includes): Partially test this.
8262 * modules/popen-safer-tests: New file, for more tests.
8263 * tests/test-popen-safer.c: Likewise.
8264 * MODULES.html.sh (file stream based Input/Output): Mention it.
8266 tests: test some of the *-safer modules
8267 * modules/fopen-safer (Depends-on): Add fopen.
8268 * modules/fcntl-safer (Depends-on): Add fcntl.
8269 * modules/stdlib-safer (Depends-on): Add stdlib.
8270 (configure.ac): Set indicator.
8271 * modules/unistd-safer (configure.ac): Likewise.
8272 * modules/tmpfile-safer (configure.ac): Likewise.
8273 (Depends-on): Add tmpfile.
8274 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
8276 * tests/test-fopen.c (includes): Test safer versions when they are
8278 * tests/test-open.c (includes): Likewise.
8280 popen: fix cygwin 1.5 bug when stdin closed
8281 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
8282 * modules/popen: New file.
8283 * modules/popen-tests: Likewise.
8284 * tests/test-popen.c: Likewise.
8285 * m4/popen.m4: Likewise.
8286 * lib/popen.c: Likewise.
8287 * lib/stdio.in.h (popen): New declaration.
8288 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
8289 * modules/stdio (Makefile.am): Likewise.
8290 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
8292 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
8294 maint.mk: give full control over update-copyright exclusions
8295 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
8296 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
8297 (update-copyright): Don't force inclusion of top-level
8298 ChangeLog. Don't force exclusion of all COPYING files, but make
8299 them the default exclusion instead.
8301 2009-08-16 Bruno Haible <bruno@clisp.org>
8303 Fix test failures on Solaris 10.
8304 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
8305 tests when Solaris iconv() is used.
8306 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
8307 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
8308 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
8309 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
8310 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
8312 2009-08-16 Bruno Haible <bruno@clisp.org>
8314 Fix test failures on Solaris 10.
8315 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
8316 'tr' program and pass it as first argument.
8317 * tests/test-pipe-filter-gi1.sh: Likewise.
8318 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
8319 program as first argument.
8320 * tests/test-pipe-filter-gi1.c (main): Likewise.
8322 2009-08-16 Eric Blake <ebb9@byu.net>
8324 fpurge: fix previous commits
8325 * modules/fpurge (Makefile.am): Make replacement conditional,
8326 partially reverting 2007-04-29 change; missed in previous
8328 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
8331 2009-08-16 Bruno Haible <bruno@clisp.org>
8333 Clarify fpurge's effect on the file position.
8334 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
8335 * tests/test-fpurge.c (main): Make a second pass for checking the file
8338 2009-08-16 Bruno Haible <bruno@clisp.org>
8340 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
8341 declaration of fpurge is missing.
8342 * tests/test-fpurge.c (main): Check that the file has not more contents
8343 than expected. Close the file before removing it.
8345 2009-08-15 Eric Blake <ebb9@byu.net>
8347 fpurge: don't wrap working cygwin implementation
8348 * lib/fpurge.c (fpurge): Fix comment typo.
8349 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
8350 1.7 to avoid replacement.
8351 * tests/test-fpurge.c (main): Enhance test.
8353 2009-08-15 Eric Blake <ebb9@byu.net>
8354 and Jim Meyering <meyering@redhat.com>
8356 test-update-copyright: skip if perl is insufficient
8357 * tests/test-update-copyright.sh: Failure to run maintainer tool
8358 should not cause testsuite failure on cygwin 1.5.
8360 2009-08-14 Eric Blake <ebb9@byu.net>
8362 doc: mention more functions added in cygwin 1.7.0
8363 * doc/posix-headers/limits.texi (limits.h): Update for recent
8365 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
8366 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8367 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
8368 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
8369 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
8371 2009-08-14 Eric Blake <ebb9@byu.net>
8373 maint.mk: simplify update-copyright rule
8374 * top/maint.mk (update-copyright-local): Delete, and document how
8375 to do it in cfg.mk instead.
8376 (update-copyright-exclude-regexp): Delete, and document how to do
8377 it in .x-update-copyright instead.
8378 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
8381 2009-08-14 Bruno Haible <bruno@clisp.org>
8383 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
8385 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
8387 maint.mk: support update-copyright-env
8388 * top/maint.mk (update-copyright-env): Define place-holder.
8389 (update-copyright): Expand $(update-copyright-env) before
8390 invoking update-copyright.
8392 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
8394 update-copyright: implement forced reformatting
8395 * build-aux/update-copyright: Implement and document
8396 UPDATE_COPYRIGHT_FORCE.
8397 * tests/test-update-copyright.sh: Test it.
8399 2009-08-14 Eric Blake <ebb9@byu.net>
8400 and Bruno Haible <bruno@clisp.org>
8402 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
8403 * tests/test-locale.c: Revert previous patch related to NULL.
8404 * tests/test-stdio.c: Likewise.
8405 * tests/test-stdlib.c: Likewise.
8406 * tests/test-string.c: Likewise.
8407 * tests/test-unistd.c: Likewise.
8408 * modules/time-tests (Depends-on): Add verify.
8409 * modules/wchar-tests (Depends-on): Likewise.
8410 * tests/test-time.c: Test for NULL compliance.
8411 * tests/test-wchar.c: Likewise.
8412 * modules/locale (Depends-on): Add stddef.
8413 * modules/stdio (Depends-on): Likewise.
8414 * modules/stdlib (Depends-on): Likewise.
8415 * modules/string (Depends-on): Likewise.
8416 * modules/time (Depends-on): Likewise.
8417 * modules/unistd (Depends-on): Likewise.
8418 * modules/wchar (Depends-on): Likewise.
8419 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
8420 * lib/stdlib.in.h (includes): Likewise.
8421 * lib/string.in.h (includes): Likewise.
8422 * lib/time.in.h (includes): Likewise.
8423 * lib/unistd.in.h (includes): Likewise.
8424 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
8426 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8427 * m4/stddef_h.m4: New file.
8428 * modules/stddef: Likewise.
8429 * lib/stddef.in.h: Likewise.
8430 * modules/stddef-tests: Likewise.
8431 * tests/test-stddef.c: Likewise.
8432 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
8433 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
8434 * doc/posix-headers/locale.texi (locale.h): Likewise.
8435 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
8436 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8437 * doc/posix-headers/string.texi (string.h): Likewise.
8438 * doc/posix-headers/time.texi (time.h): Likewise.
8439 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
8440 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
8442 2009-08-14 Eric Blake <ebb9@byu.net>
8444 doc: improve git diff of texinfo files
8445 * .gitattributes: Add rule for *.texi files, with hint on how to
8447 Copied from m4, and based on a report by Bruno Haible.
8449 2009-08-14 Bruno Haible <bruno@clisp.org>
8451 Disable multithread support by default on Cygwin 1.5.x for real.
8452 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
8454 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
8456 update-copyright: much ado about intervals
8457 * build-aux/update-copyright: Implement and document
8458 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
8459 of copyright year intervals.
8460 Also, document UPDATE_COPYRIGHT_YEAR.
8461 * tests/test-update-copyright.sh: Test it.
8463 update-copyright: convert 2-digit to 4-digit years
8464 * build-aux/update-copyright: Implement and document.
8465 * tests/test-update-copyright.sh: Update.
8467 2009-08-14 Jim Meyering <meyering@redhat.com>
8469 test-exclude: avoid coreutils "make check" failure
8470 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
8471 just as in test-argmatch.c.
8473 2009-08-13 Eric Blake <ebb9@byu.net>
8475 test-dup2: fix bad assumption
8476 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
8477 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
8479 test-version-etc: fix CRLF portability issue
8480 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
8482 * tests/test-argp-version-etc-1.sh: Likewise.
8484 getopt: update client modules
8485 * modules/argp (Depends-on): Use getopt-gnu.
8486 * modules/git-merge-changelog (Depends-on): Likewise.
8487 * modules/long-options (Depends-on): Likewise.
8488 * modules/xstrtol (Depends-on): Likewise.
8490 2009-08-13 Simon Josefsson <simon@josefsson.org>
8492 * tests/test-version-etc.sh: Don't fail on different
8493 project/version. Don't fail on CRLF differences. Rewrite to use
8494 multiple -e instead of multiple sed forks, suggested by Eric Blake
8496 * tests/test-argp-version-etc-1.sh: Likewise.
8498 2009-08-13 Simon Josefsson <simon@josefsson.org>
8500 * tests/test-version-etc.sh: Don't fail on different
8503 2009-08-12 Bruno Haible <bruno@clisp.org>
8505 Tests for modules 'getopt-posix', 'getopt-gnu'.
8506 * modules/getopt-posix-tests: New file.
8507 * tests/test-getopt.c: New file.
8508 * tests/test-getopt.h: New file.
8509 * tests/test-getopt_long.h: New file.
8511 New modules 'getopt-posix', 'getopt-gnu'.
8512 * modules/getopt-gnu: New file, renamed from modules/getopt.
8513 * modules/getopt-posix: New file.
8514 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
8515 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
8516 (gl_GETOPT): Remove macro.
8517 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
8518 Disable the test against BSD systems that declare optreset. Test
8519 against mingw bug. Test against lack of support of optional arguments
8521 * doc/glibc-headers/getopt.texi: Update module name and list of
8523 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
8524 'getopt-gnu' and more portability problems.
8525 * NEWS: Mention the changes.
8527 2009-08-12 Bruno Haible <bruno@clisp.org>
8529 Ensure that optarg etc. get declared by <unistd.h>.
8530 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
8531 AC_USE_SYSTEM_EXTENSIONS.
8532 * modules/getopt (Depends-on): Add 'extensions'.
8534 2009-08-12 Bruno Haible <bruno@clisp.org>
8536 Avoid test link errors.
8537 * modules/pipe-filter-ii-tests (Makefile.am): Define
8538 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
8539 * modules/pipe-filter-gi-tests (Makefile.am): Define
8540 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
8541 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8543 2009-08-12 Bruno Haible <bruno@clisp.org>
8545 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
8546 gl_GETOPT_SUBSTITUTE before.
8547 (gl_GETOPT): Use it.
8548 * m4/argp.m4 (gl_ARGP): Update.
8549 Reported by Sergey Poznyakoff.
8551 * m4/getopt.m4: Reorder macros.
8552 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
8553 (gl_GETOPT_SUBSTITUTE): Remove macro.
8555 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
8557 Minor improvement in gitlog-to-changelog
8559 * build-aux/gitlog-to-changelog: New option `--format' makes
8560 output format string configurable.
8562 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
8564 Optimize exclude: use hash tables for non-wildcard patterns.
8566 * lib/exclude.c: Include hash.h and mbuiter.h
8567 (struct exclude_pattern, exclude_segment): New data types.
8568 (struct exclude): Rewrite.
8569 (fnmatch_pattern_has_wildcards): New function.
8570 (new_exclude_segment, free_exclude_segment): New functions.
8571 (excluded_file_pattern_p, excluded_file_name_p): New functions.
8572 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
8573 * lib/exclude.h (is_fnmatch_pattern): New prototype.
8574 * modules/exclude: Depend on hash and mbuiter.
8576 * modules/exclude-tests: New file.
8577 * tests/test-exclude.c: New file.
8578 * tests/test-exclude1.sh: New file.
8579 * tests/test-exclude2.sh: New file.
8580 * tests/test-exclude3.sh: New file.
8581 * tests/test-exclude4.sh: New file.
8582 * tests/test-exclude5.sh: New file.
8583 * tests/test-exclude6.sh: New file.
8584 * tests/test-exclude7.sh: New file.
8586 2009-08-12 Bruno Haible <bruno@clisp.org>
8588 Ensure that getopt() gets declared by <unistd.h>.
8589 * lib/unistd.in.h: Conditionally include getopt.h.
8590 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
8591 Set GNULIB_UNISTD_H_GETOPT.
8592 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8593 GNULIB_UNISTD_H_GETOPT.
8594 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
8596 2009-08-12 Bruno Haible <bruno@clisp.org>
8599 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
8600 gl_replace_getopt instead of GETOPT_H.
8602 2009-08-12 Bruno Haible <bruno@clisp.org>
8604 * m4/getopt.m4: Add comments.
8606 2009-08-12 Bruno Haible <bruno@clisp.org>
8608 Disable multithread support by default on Cygwin 1.5.x.
8609 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
8610 set gl_use_threads=no if not specified otherwise.
8612 2009-08-11 Bruno Haible <bruno@clisp.org>
8614 Avoid compilation error on NetBSD 5.0.
8615 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
8616 * tests/test-stdio.c: Likewise.
8617 * tests/test-stdlib.c: Likewise.
8618 * tests/test-string.c: Likewise.
8619 * tests/test-unistd.c: Likewise.
8620 Reported by Greg Troxel <gdt@ir.bbn.com>
8621 at <https://savannah.gnu.org/support/?106973>.
8623 2009-08-11 Bruno Haible <bruno@clisp.org>
8625 * modules/dup2-tests (Depends-on): Remove close.
8627 Undo 2009-07-19 commit.
8628 * modules/acl-tests (Depends-on): Remove close.
8629 * modules/binary-io-tests (Depends-on): Likewise.
8630 * modules/closein-tests (Depends-on): Likewise.
8631 * modules/flock-tests (Depends-on): Likewise.
8632 * modules/fsync-tests (Depends-on): Likewise.
8633 * modules/lseek-tests (Depends-on): Likewise.
8634 * modules/pipe-tests (Depends-on): Likewise.
8635 * modules/posix_spawn-tests (Depends-on): Likewise.
8636 * modules/posix_spawnp-tests (Depends-on): Likewise.
8637 * modules/stat-time-tests (Depends-on): Likewise.
8638 * modules/yesno-tests (Depends-on): Likewise.
8640 2009-08-10 Bruno Haible <bruno@clisp.org>
8642 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
8644 2009-08-10 Bruno Haible <bruno@clisp.org>
8647 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
8649 2009-08-10 Bruno Haible <bruno@clisp.org>
8651 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
8652 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
8653 not only the first time.
8654 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
8655 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
8656 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
8657 is 1, not only the the first time.
8659 2009-08-10 Bruno Haible <bruno@clisp.org>
8661 Make it possible to use module 'gethostname' without module 'close'.
8662 * lib/unistd.in.h (close): Evoke a link error only if
8663 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8664 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8665 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8666 * modules/unistd (Makefile.am): Substitute
8667 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8668 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
8669 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8670 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8671 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8672 * modules/sys_ioctl (Makefile.am): Substitute
8673 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8674 * modules/socket (configure.ac): On native Windows, set
8675 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
8676 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8677 Reported by Sam Steingold <sds@gnu.org>.
8679 2009-08-10 Bruno Haible <bruno@clisp.org>
8681 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
8682 * modules/ioctl (configure.ac): Likewise.
8684 2009-08-10 Bruno Haible <bruno@clisp.org>
8686 Avoid collision between gnulib wrapper and libintl wrapper.
8687 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
8688 already defined in intl/printf.c.
8689 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
8690 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
8692 2009-08-09 Bruno Haible <bruno@clisp.org>
8694 Make <sys/select.h> really self-contained, also on Solaris 10.
8695 * lib/sys_select.in.h: Include <string.h>.
8696 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
8698 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
8699 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
8700 Reported by Jim Meyering.
8702 2009-08-09 Bruno Haible <bruno@clisp.org>
8704 Avoid warnings from 'aclocal' that are due to a use of macro name
8705 AM_XGETTEXT_OPTION that is not defined in automake.
8706 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
8708 * modules/error (configure.ac): Likewise.
8709 * modules/propername (configure.ac): Likewise.
8710 * modules/vasprintf (configure.ac): Likewise.
8711 * modules/verror (configure.ac): Likewise.
8712 * modules/xprintf (configure.ac): Likewise.
8713 * modules/xvasprintf (configure.ac): Likewise.
8715 2009-08-08 Bruno Haible <bruno@clisp.org>
8717 Avoid compilation error in C++ mode.
8718 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
8719 Reported by Sam Steingold <sds@gnu.org>.
8721 2009-08-08 Bruno Haible <bruno@clisp.org>
8723 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
8724 for the various Unix platforms.
8725 * doc/posix-headers/limits.texi: Update platforms list regarding
8727 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8729 2009-08-07 Jim Meyering <meyering@redhat.com>
8731 selinux-at: fix typo in a comment
8732 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
8733 Spotted by Paolo Bonzini.
8735 selinux-at: remove redundant m4 code, add documentation
8736 * modules/selinux-at (configure.ac): Remove redundant code.
8737 LIB_SELINUX is already set via the dependent module, selinux-h.
8738 (Include): Add quotes around selinux-at.h.
8739 * lib/selinux-at.h: Add documentation.
8740 Reported by Bruno Haible in
8741 http://marc.info/?l=gnulib-bug&m=124958988300749
8743 2009-08-07 Bruno Haible <bruno@clisp.org>
8745 Avoid link error on MacOS X 10.3 and 10.4.
8746 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
8748 * lib/argp-pv.c (argp_program_version): Likewise.
8749 Reported by Simon Josefsson.
8751 2009-08-07 Simon Josefsson <simon@josefsson.org>
8753 * tests/test-version-etc.sh: Use $EXEEXT.
8755 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
8757 update-copyright: update documentation to point to maint.mk
8758 * build-aux/update-copyright: Here.
8760 2009-08-06 Jim Meyering <meyering@redhat.com>
8762 maint.mk: support update-copyright-local
8763 * top/maint.mk (update-copyright-local): Define place-holder.
8764 (update-copyright): Depend on $(update-copyright-local).
8766 2009-08-06 Jim Meyering <meyering@redhat.com>
8768 selinux-at: new module
8769 Initially written for coreutils, this module will soon be
8770 used by findutils, too.
8771 * MODULES.html.sh [Misc]: Add selinux-at.
8772 * lib/selinux-at.h: New file, from coreutils.
8773 * lib/selinux-at.c: Likewise.
8774 * modules/selinux-at: Likewise.
8775 (License): Change from LGPL to GPL, since it depends
8776 on the GPL'd openat module.
8779 * README: Remove references to cogito.
8780 Remove cvs-repo-updating instructions from 2007.
8781 Don't imply that CVS is better if you have limited disk space.
8783 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
8785 update-copyright: support C-style comments
8786 * build-aux/update-copyright: Implement and document.
8787 * tests/test-update-copyright.sh: Test.
8789 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
8791 update-copyright: support omitted "(C)"
8792 * build-aux/update-copyright: Implement and document. Also,
8793 allow variable whitespace before "(C)".
8794 * tests/test-update-copyright.sh: Test.
8796 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
8798 update-copyright: don't trip on non-FSF copyright statements
8799 * build-aux/update-copyright: Fix so that the first correctly
8800 formatted FSF copyright statement is recognized no matter what
8801 appears before it. Update documentation.
8802 * tests/test-update-copyright.sh: Test that.
8804 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
8806 update-copyright: clean up code a little
8807 * build-aux/update-copyright: Append "_re" to the name of any
8808 variable holding a regular expression.
8809 Replace "old" and "new" with "stmt" in variable names.
8810 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
8812 Format code more consistently.
8814 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
8816 update-copyright-tests: improve portability
8817 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
8818 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
8820 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
8822 update-copyright: support @copyright{} and ©
8823 * build-aux/update-copyright: Implement and document.
8824 * tests/test-update-copyright.sh: Test.
8826 2009-08-04 Jim Meyering <meyering@redhat.com>
8828 update-copyright-tests: correctly test EOL=\r\n handling
8829 * tests/test-update-copyright.sh: Put \r at the end of some lines
8830 for the dos-eol tests. Based on a patch by Joel E. Denny.
8832 maint.mk: make update-copyright exclusion list more configurable
8833 * top/maint.mk (update-copyright): Default to excluding COPYING,
8834 but allow an override, in case someone does want to update that file.
8836 maint.mk: don't update copyright date in COPYING
8837 * top/maint.mk (update-copyright): Exclude COPYING.
8839 maint.mk: add a copyright-updating rule
8840 * top/maint.mk (update-copyright): New rule.
8841 Derived from coreutils/Makefile.am.
8843 update-copyright: rename some variables
8844 * build-aux/update-copyright: Rename a few variables for clarity.
8845 Tweak syntax. List Joel E. Denny as coauthor.
8847 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
8849 update-copyright: fix bug for 2-digit last year and add tests
8850 * build-aux/update-copyright: Fix bug.
8851 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
8853 * modules/update-copyright-tests: New
8854 * tests/test-update-copyright.sh: New.
8856 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
8858 update-copyright: handle leading tabs in line prefix
8859 * build-aux/update-copyright: Count leading tabs as 8 spaces
8860 when computing margin. This helps with the formatting of
8861 ChangeLogs, for example.
8862 Fix documentation a little.
8864 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
8866 update-copyright: support EOL=\r\n
8867 * build-aux/update-copyright: Implement that.
8869 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
8871 update-copyright: automatically format copyright statements
8872 * build-aux/update-copyright: Implement that.
8873 Also, be a little more predictable and safer by always failing
8874 when the full copyright format is not perfectly recognized as an
8875 unbroken whole. Discussed at
8876 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
8877 Rewrite documentation.
8879 2009-08-03 Bruno Haible <bruno@clisp.org>
8881 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
8883 2009-08-02 Bruno Haible <bruno@clisp.org>
8885 Tests for module 'uname'.
8886 * modules/uname-tests: New file.
8887 * tests/test-uname.c: New file.
8890 * lib/uname.c: New file.
8891 * m4/uname.m4: New file.
8892 * modules/uname: New file.
8893 * doc/posix-functions/uname.texi: Mention the new module.
8895 2009-08-02 Bruno Haible <bruno@clisp.org>
8897 Tests for module 'sys_utsname'.
8898 * modules/sys_utsname-tests: New file.
8899 * tests/test-sys_utsname.c: New file.
8901 New module 'sys_utsname'.
8902 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
8903 * m4/sys_utsname_h.m4: New file.
8904 * modules/sys_utsname: New file.
8905 * doc/posix-headers/sys_utsname.texi: Mention the new module.
8907 2009-08-02 Bruno Haible <bruno@clisp.org>
8909 Implicitly initialize the sockets library.
8910 * lib/gethostname.c: Include sockets.h.
8911 (rpl_gethostname): Invoke gl_sockets_startup.
8912 * lib/socket.c: Include sockets.h.
8913 (rpl_socket): Invoke gl_sockets_startup.
8914 * modules/gethostname (Depends-on): Add sockets.
8915 * modules/socket (Depends-on): Likewise.
8916 * tests/test-poll.c: Don't include sockets.h.
8917 (main): Don't invoke gl_sockets_startup.
8918 * tests/test-select.c: Don't include sockets.h.
8919 (main): Don't invoke gl_sockets_startup.
8921 2009-08-02 Bruno Haible <bruno@clisp.org>
8923 Allow multiple calls to gl_sockets_startup.
8924 * lib/sockets.c (initialized_sockets_version): New variable.
8925 (gl_sockets_startup): Do nothing if already called for this or a higher
8927 (gl_sockets_cleanup): Reset initialized_sockets_version.
8929 2009-08-03 Simon Josefsson <simon@josefsson.org>
8931 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
8932 different project/version.
8934 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
8935 Bruno Haible <bruno@clisp.org>
8937 Tests for module 'pipe-filter-gi'.
8938 * modules/pipe-filter-gi-tests: New file.
8939 * tests/test-pipe-filter-gi1.sh: New file.
8940 * tests/test-pipe-filter-gi1.c: New file.
8941 * tests/test-pipe-filter-gi2.sh: New file.
8942 * tests/test-pipe-filter-gi2-main.c: New file.
8943 * tests/test-pipe-filter-gi2-child.c: New file.
8945 New module 'pipe-filter-gi'.
8946 * lib/pipe-filter-gi.c: New file.
8947 * modules/pipe-filter-gi: New file.
8949 2009-08-02 Bruno Haible <bruno@clisp.org>
8950 Paolo Bonzini <bonzini@gnu.org>
8952 Tests for module 'pipe-filter-ii'.
8953 * modules/pipe-filter-ii-tests: New file.
8954 * tests/test-pipe-filter-ii1.sh: New file.
8955 * tests/test-pipe-filter-ii1.c: New file.
8956 * tests/test-pipe-filter-ii2.sh: New file.
8957 * tests/test-pipe-filter-ii2-main.c: New file.
8958 * tests/test-pipe-filter-ii2-child.c: New file.
8960 New module 'pipe-filter-ii'.
8961 * lib/pipe-filter.h: New file.
8962 * lib/pipe-filter-ii.c: New file.
8963 * lib/pipe-filter-aux.h: New file.
8964 * modules/pipe-filter-ii: New file.
8966 2009-08-02 Simon Josefsson <simon@josefsson.org>
8968 * lib/gc-libgcrypt.c: Change copyright to FSF.
8969 * lib/gc-gnulib.c: Likewise.
8971 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
8973 * lib/gethostname.c: Include limits.h.
8975 2009-08-02 Simon Josefsson <simon@josefsson.org>
8976 Bruno Haible <bruno@clisp.org>
8978 Ensure HOST_NAME_MAX as part of the gethostname module.
8979 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
8980 define also HOST_NAME_MAX.
8981 * tests/test-gethostname.c: Include <limits.h>.
8982 (main): Check also HOST_NAME_MAX.
8983 * doc/posix-headers/limits.texi: Document the mingw problem.
8985 2009-08-02 Bruno Haible <bruno@clisp.org>
8987 * lib/gethostname.c (gethostname): Fix handling of large len argument.
8990 2009-03-31 Simon Josefsson <simon@josefsson.org>
8992 * lib/gethostname.c: Add Windows wrapper.
8993 * m4/gethostname.m4: Look for gethostname in -lws2_32.
8994 * modules/gethostname: Depend on sys_socket & errno, for also
8995 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
8996 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
8998 2009-07-31 Jim Meyering <meyering@redhat.com>
9000 getloadavg: fix symbol name in comment
9001 * lib/getloadavg.c: Correct a typo I introduced when adding
9002 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
9003 Matt Kraai spotted the problem.
9005 2009-07-29 Matt Kraai <mkraai@beckman.com>
9007 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
9008 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
9009 code also if ! defined N_NAME_POINTER.
9010 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
9011 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
9012 but the n_name member is a 12-byte array.
9014 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
9016 update-copyright: generalize comment handling
9017 * build-aux/update-copyright: Handle copyright statements
9018 within more comment styles.
9020 Report any file with an external copyright holder or parse failure.
9022 2009-07-29 Jim Meyering <meyering@redhat.com>
9024 mktime: correct setting of REPLACE_MKTIME
9025 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
9027 update-copyright: new module
9028 * modules/update-copyright: New file.
9029 * build-aux/update-copyright: New file.
9030 * MODULES.html.sh (maint+release support): Add update-copyright.
9032 2009-07-27 Bruno Haible <bruno@clisp.org>
9034 Fix compilation error when <ctime> is used and mktime is replaced.
9035 * lib/time.in.h (mktime): New declaration.
9036 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
9037 REPLACE_MKTIME instead of defining mktime in config.h.
9038 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
9039 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
9040 Reported by Ross McFarland <rwmcfa1@neces.com>.
9042 2009-07-27 Bruno Haible <bruno@clisp.org>
9044 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
9045 Reported by Matt Kraai <mkraai@beckman.com>.
9047 2009-07-25 Jim Meyering <meyering@redhat.com>
9049 maint.mk: avoid warnings about missing files
9050 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
9051 diagnostic when .prev-version does not exist.
9052 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
9053 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
9055 Suggestions from Simon Josefsson.
9057 2009-07-25 Bruno Haible <bruno@clisp.org>
9059 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
9060 defined as macros. Needed on QNX 6.4.1.
9061 Reported by Matt Kraai <mkraai@beckman.com>.
9063 2009-07-23 Jim Meyering <meyering@redhat.com>
9065 maint.mk: invoke "make dist" with a working value of XZ_OPT
9066 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
9068 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
9070 Make fseeko.c compile on QNX.
9071 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
9073 2009-07-22 Peter Simons <simons@cryp.to>
9075 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
9076 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
9077 * lib/md4.h: Likewise.
9078 * lib/md5.h: Likewise.
9079 * lib/sha1.h: Likewise.
9080 * lib/sha256.h: Likewise.
9081 * lib/sha512.h: Likewise.
9083 tests-sha1: don't assign literal string to 'char *' variable
9084 * tests/test-sha1.c (main): Declare locals with "const" to match
9085 attributes of the right hand side.
9087 2009-07-21 Eric Blake <ebb9@byu.net>
9089 dup2: fix more mingw problems
9090 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
9092 * doc/posix-functions/dup2.texi (dup2): Document the bug.
9093 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
9094 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
9095 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
9098 2009-07-21 Jim Meyering <meyering@redhat.com>
9100 vc-list-files: avoid failure when /bin/sh is dash
9101 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
9102 On some Debian based systems, /bin/sh is a symlink to dash, and running
9103 this command would omit the "/" following each 'tests' prefix:
9104 dash -x build-aux/vc-list-files -C . tests
9105 That is because bash and dash work differently:
9106 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
9110 2009-07-21 Eric Blake <ebb9@byu.net>
9112 dup2-tests: test previous patch
9113 * modules/dup2-tests: New file.
9114 * tests/test-dup2.c: Likewise.
9115 * tests/test-open.c (main): Avoid unspecified behavior.
9116 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
9119 dup2: work around mingw and cygwin 1.5 bug
9120 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
9121 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9122 * modules/unistd (Makefile.am): Substitute it.
9123 * lib/unistd.in.h (dup2): Declare the replacement.
9124 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
9125 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
9126 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
9127 * modules/execute (Depends-on): Add dup2.
9128 * modules/fseterr (Depends-on): Likewise.
9129 * modules/pipe (Depends-on): Likewise.
9130 * modules/posix_spawn-internal (Depends-on): Likewise.
9132 2009-07-21 Bruno Haible <bruno@clisp.org>
9134 * modules/.gitattributes: New file.
9136 2009-07-20 Bruno Haible <bruno@clisp.org>
9138 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
9141 2009-07-20 Eric Blake <ebb9@byu.net>
9143 test-pipe: make a bit more robust.
9144 * tests/test-pipe.c (myerr): Allow error messages regardless of
9145 what we do to stderr.
9146 (test_pipe): Rearrange to avoid deadlock.
9147 (child_main): Try a larger read, to ensure we avoided deadlock.
9148 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
9149 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
9152 2009-07-19 Jim Meyering <meyering@redhat.com>
9154 fts: avoid false-positive cycle-detection
9155 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
9156 for each new command line argument.
9158 2009-07-19 Bruno Haible <bruno@clisp.org>
9160 Fix build error on mingw with the modules sys_select and unistd.
9161 * modules/acl-tests (Depends-on): Add close.
9162 * modules/binary-io-tests (Depends-on): Likewise.
9163 * modules/closein-tests (Depends-on): Likewise.
9164 * modules/flock-tests (Depends-on): Likewise.
9165 * modules/fsync-tests (Depends-on): Likewise.
9166 * modules/lseek-tests (Depends-on): Likewise.
9167 * modules/pipe-tests (Depends-on): Likewise.
9168 * modules/posix_spawn-tests (Depends-on): Likewise.
9169 * modules/posix_spawnp-tests (Depends-on): Likewise.
9170 * modules/stat-time-tests (Depends-on): Likewise.
9171 * modules/yesno-tests (Depends-on): Likewise.
9173 2009-07-19 Bruno Haible <bruno@clisp.org>
9176 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
9177 macros, not at the compiler macros.
9178 * lib/pipe.c: Likewise.
9179 * lib/execute.c: Likewise.
9180 * lib/spawni.c: Likewise.
9182 2009-07-19 Bruno Haible <bruno@clisp.org>
9184 Fix handling of closed stdin/stdout/stderr on mingw.
9185 * lib/w32spawn.h: Include unistd.h.
9186 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
9187 file descriptor with O_NOINHERIT flag.
9188 (fd_safer_noinherit): New function, based on fd-safer.c.
9189 (dup_safer_noinherit): New function, based on dup-safer.c.
9190 (undup_safer_noinherit): New function.
9191 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
9192 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
9193 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
9194 instead of fd_safer.
9195 * tests/test-pipe.c: Include <windows.h>.
9196 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
9198 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
9200 (test_pipe): Pass an extra argument for disambiguation.
9201 (main): Invoke parent_main or child_main.
9203 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
9206 2009-07-18 Eric Blake <ebb9@byu.net>
9208 test-pipe: fix mingw build
9209 * tests/test-pipe.c (main): Avoid fcntl on mingw.
9211 2009-07-18 Bruno Haible <bruno@clisp.org>
9213 * modules/pipe-tests (Makefile.am): Fix typo.
9215 2009-07-18 Eric Blake <ebb9@byu.net>
9217 error: fix mingw build
9218 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
9219 Reported by Bruno Haible.
9221 error: avoid undefined use of stdout
9222 * lib/error.c (error, error_at_line): Check that fd 1 is open
9223 before flushing stdout. Avoids a crash on cygwin when libsigsegv
9224 is handling faults and the close_stdout module wants to report the
9225 detection of closed stdout as an error.
9227 2009-07-17 Eric Blake <ebb9@byu.net>
9229 pipe: be robust in face of closed fds
9230 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
9231 should cause child to misbehave.
9232 * modules/pipe-tests: New module.
9233 * tests/test-pipe.c: New file.
9234 * tests/test-pipe.sh: New file.
9235 Reported by Akim Demaille.
9237 2009-07-14 Bruno Haible <bruno@clisp.org>
9239 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
9240 Reported by anonymous kc.
9242 2009-07-07 Jim Meyering <meyering@redhat.com>
9244 maint.mk: don't look for translatable strings in *.m4 or *.mk
9245 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
9246 when searching for translatable strings.
9248 2009-07-05 Jim Meyering <meyering@redhat.com>
9250 remove superfluous parentheses in STREQ definition
9251 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
9252 * lib/getugroups.c (STREQ): Likewise.
9253 * lib/fnmatch.c (STREQ): Likewise.
9254 Spotted by Bruno Haible.
9256 2009-07-04 Jim Meyering <meyering@redhat.com>
9258 argv-iter: new module
9259 * MODULES.html.sh: Add argv-iter.
9260 * lib/argv-iter.c, lib/argv-iter.h: New files.
9261 * modules/argv-iter: New file.
9262 * modules/argv-iter-tests: New file.
9263 * tests/test-argv-iter.c: Test it.
9265 2009-07-04 Bruno Haible <bruno@clisp.org>
9268 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
9269 contains more exact copies of a given entry than file2, leave the extra
9270 copies unpaired rather than aborting.
9271 Reported by Eric Blake.
9273 2009-07-02 Bruno Haible <bruno@clisp.org>
9275 Speedup git-merge-changelog for git cherry-pick.
9276 * lib/git-merge-changelog.c (struct entries_mapping): New type.
9277 (entries_mapping_get): New function, extracted from compute_mapping.
9278 (entries_mapping_reverse_get): New function.
9279 (compute_mapping): Add a 'full' argument. Return the result in a
9280 'struct entries_mapping'.
9281 (main): Update. Access the mappings through entries_mapping_get.
9282 Reported by Eric Blake.
9284 2009-07-02 Bruno Haible <bruno@clisp.org>
9286 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
9289 2009-07-02 Bruno Haible <bruno@clisp.org>
9291 Speed up approximate search for matching ChangeLog entries.
9292 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
9293 argument. Call fstrcmp_bounded instead of fstrcmp.
9294 (compute_mapping, try_split_merged_entry, main): Update callers.
9296 2009-07-02 Bruno Haible <bruno@clisp.org>
9298 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
9300 2009-06-30 Bruno Haible <bruno@clisp.org>
9302 Reduce the number of uc_is_cased calls.
9303 * lib/unicase.h (casing_suffix_context_t): Add
9304 'first_char_except_ignorable' field.
9305 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
9306 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
9307 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
9309 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
9310 case-ignorable characters.
9311 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
9312 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
9313 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
9314 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
9315 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
9317 2009-06-30 Bruno Haible <bruno@clisp.org>
9319 Tests for module 'unicase/ignorable'.
9320 * modules/unicase/ignorable-tests: New file.
9321 * tests/unicase/test-ignorable.c: New file, generated by
9324 Tests for module 'unicase/cased'.
9325 * modules/unicase/cased-tests: New file.
9326 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
9327 * tests/unicase/test-predicate-part1.h: New file, derived from
9328 tests/unictype/test-predicate-part1.h.
9329 * tests/unicase/test-predicate-part2.h: New file, same as
9330 tests/unictype/test-predicate-part2.h.
9332 Fix evaluation of "Before C" condition of FINAL_SIGMA.
9333 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
9334 (output_casing_properties): New function.
9336 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
9337 * lib/unicase/cased.c: Include unictype/bitmap.h.
9338 (uc_is_cased): Define through a bitmap lookup.
9339 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
9340 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
9341 (uc_is_case_ignorable): Define through a bitmap lookup.
9342 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
9343 lib/unictype/bitmap.h.
9344 (Depends-on): Add inline. Clean up.
9345 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
9346 lib/unictype/bitmap.h.
9347 (Depends-on): Add inline. Clean up.
9348 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
9350 * tests/unicase/test-u16-tolower.c (main): Likewise.
9351 * tests/unicase/test-u32-tolower.c (main): Likewise.
9353 2009-06-30 Bruno Haible <bruno@clisp.org>
9355 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
9356 * lib/unicase/u16-casemap.c: Likewise.
9357 * lib/unicase/u32-casemap.c: Likewise.
9359 2009-06-29 Bruno Haible <bruno@clisp.org>
9361 Define u32_casefold as a wrapper around u32_ct_casefold.
9362 * lib/unicase/u32-casefold.c: Update.
9363 * modules/unicase/u32-casefold (Depends-on): Add
9364 unicase/u32-ct-casefold, unicase/empty-prefix-context,
9365 unicase/empty-suffix-context. Clean up.
9367 Define u16_casefold as a wrapper around u16_ct_casefold.
9368 * lib/unicase/u16-casefold.c: Update.
9369 * modules/unicase/u16-casefold (Depends-on): Add
9370 unicase/u16-ct-casefold, unicase/empty-prefix-context,
9371 unicase/empty-suffix-context. Clean up.
9373 Define u8_casefold as a wrapper around u8_ct_casefold.
9374 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
9375 * lib/unicase/u8-casefold.c: Update.
9376 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
9377 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9379 Define u32_totitle as a wrapper around u32_ct_totitle.
9380 * lib/unicase/u32-totitle.c: Update.
9381 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
9382 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9384 Define u16_totitle as a wrapper around u16_ct_totitle.
9385 * lib/unicase/u16-totitle.c: Update.
9386 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
9387 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9389 Define u8_totitle as a wrapper around u8_ct_totitle.
9390 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
9392 (FUNC): Delegate to U_CT_TOTITLE.
9393 * lib/unicase/u8-totitle.c: Update.
9394 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
9395 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9397 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
9399 * modules/unicase/u32-tolower (Depends-on): Add
9400 unicase/empty-prefix-context, unicase/empty-suffix-context.
9402 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
9404 * modules/unicase/u16-tolower (Depends-on): Add
9405 unicase/empty-prefix-context, unicase/empty-suffix-context.
9407 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
9408 * modules/unicase/u8-tolower (Depends-on): Add
9409 unicase/empty-prefix-context, unicase/empty-suffix-context.
9411 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
9413 * modules/unicase/u32-toupper (Depends-on): Add
9414 unicase/empty-prefix-context, unicase/empty-suffix-context.
9416 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
9418 * modules/unicase/u16-toupper (Depends-on): Add
9419 unicase/empty-prefix-context, unicase/empty-suffix-context.
9421 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
9422 * modules/unicase/u8-toupper (Depends-on): Add
9423 unicase/empty-prefix-context, unicase/empty-suffix-context.
9425 New module 'unicase/u32-ct-casefold'.
9426 * lib/unicase/u32-ct-casefold.c: New file.
9427 * modules/unicase/u32-ct-casefold: New file.
9429 New module 'unicase/u16-ct-casefold'.
9430 * lib/unicase/u16-ct-casefold.c: New file.
9431 * modules/unicase/u16-ct-casefold: New file.
9433 New module 'unicase/u8-ct-casefold'.
9434 * lib/unicase/u8-ct-casefold.c: New file.
9435 * lib/unicase/u-ct-casefold.h: New file, derived from
9436 lib/unicase/u-casefold.h.
9437 * modules/unicase/u8-ct-casefold: New file.
9439 New module 'unicase/u32-ct-totitle'.
9440 * lib/unicase/u32-ct-totitle.c: New file.
9441 * modules/unicase/u32-ct-totitle: New file.
9443 New module 'unicase/u16-ct-totitle'.
9444 * lib/unicase/u16-ct-totitle.c: New file.
9445 * modules/unicase/u16-ct-totitle: New file.
9447 New module 'unicase/u8-ct-totitle'.
9448 * lib/unicase/u8-ct-totitle.c: New file.
9449 * lib/unicase/u-ct-totitle.h: New file, derived from
9450 lib/unicase/u-totitle.h.
9451 * modules/unicase/u8-ct-totitle: New file.
9453 New module 'unicase/u32-ct-tolower'.
9454 * lib/unicase/u32-ct-tolower.c: New file.
9455 * modules/unicase/u32-ct-tolower: New file.
9457 New module 'unicase/u16-ct-tolower'.
9458 * lib/unicase/u16-ct-tolower.c: New file.
9459 * modules/unicase/u16-ct-tolower: New file.
9461 New module 'unicase/u8-ct-tolower'.
9462 * lib/unicase/u8-ct-tolower.c: New file.
9463 * modules/unicase/u8-ct-tolower: New file.
9465 New module 'unicase/u32-ct-toupper'.
9466 * lib/unicase/u32-ct-toupper.c: New file.
9467 * modules/unicase/u32-ct-toupper: New file.
9469 New module 'unicase/u16-ct-toupper'.
9470 * lib/unicase/u16-ct-toupper.c: New file.
9471 * modules/unicase/u16-ct-toupper: New file.
9473 New module 'unicase/u8-ct-toupper'.
9474 * lib/unicase/u8-ct-toupper.c: New file.
9475 * modules/unicase/u8-ct-toupper: New file.
9477 Add context arguments to u*_casemap functions.
9478 * lib/unicase/unicasemap.h: Include unicase.h.
9479 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
9480 suffix_context arguments.
9481 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
9483 (FUNC): Add prefix_context and suffix_context arguments. Use
9484 uc_is_cased and uc_is_case_ignorable.
9485 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
9486 * lib/unicase/u16-casemap.c: Likewise.
9487 * lib/unicase/u32-casemap.c: Likewise.
9488 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
9489 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9490 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
9491 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9492 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
9493 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9495 New module 'unicase/u32-suffix-context'.
9496 * lib/unicase/u32-suffix-context.c: New file.
9497 * modules/unicase/u32-suffix-context: New file.
9499 New module 'unicase/u16-suffix-context'.
9500 * lib/unicase/u16-suffix-context.c: New file.
9501 * modules/unicase/u16-suffix-context: New file.
9503 New module 'unicase/u8-suffix-context'.
9504 * lib/unicase/u8-suffix-context.c: New file.
9505 * lib/unicase/u-suffix-context.h: New file.
9506 * modules/unicase/u8-suffix-context: New file.
9508 New module 'unicase/empty-suffix-context'.
9509 * lib/unicase/empty-suffix-context.c: New file.
9510 * modules/unicase/empty-suffix-context: New file.
9512 New module 'unicase/u32-prefix-context'.
9513 * lib/unicase/u32-prefix-context.c: New file.
9514 * modules/unicase/u32-prefix-context: New file.
9516 New module 'unicase/u16-prefix-context'.
9517 * lib/unicase/u16-prefix-context.c: New file.
9518 * modules/unicase/u16-prefix-context: New file.
9520 New module 'unicase/u8-prefix-context'.
9521 * lib/unicase/u8-prefix-context.c: New file.
9522 * lib/unicase/u-prefix-context.h: New file.
9523 * lib/unicase/context.h: New file.
9524 * modules/unicase/u8-prefix-context: New file.
9526 New module 'unicase/empty-prefix-context'.
9527 * lib/unicase/empty-prefix-context.c: New file.
9528 * modules/unicase/empty-prefix-context: New file.
9530 New module 'unicase/ignorable'.
9531 * lib/unicase/ignorable.c: New file.
9532 * modules/unicase/ignorable: New file.
9534 New module 'unicase/cased'.
9535 * lib/unicase/caseprop.h: New file.
9536 * lib/unicase/cased.c: New file.
9537 * modules/unicase/cased: New file.
9539 New functions for case mapping of substrings.
9540 * lib/unicase.h (casing_prefix_context_t): New type.
9541 (unicase_empty_prefix_context): New variable.
9542 (u8_casing_prefix_context, u16_casing_prefix_context,
9543 u32_casing_prefix_context, u8_casing_prefixes_context,
9544 u16_casing_prefixes_context, u32_casing_prefixes_context): New
9546 (casing_suffix_context_t): New type.
9547 (unicase_empty_suffix_context): New variable.
9548 (u8_casing_suffix_context, u16_casing_suffix_context,
9549 u32_casing_suffix_context, u8_casing_suffixes_context,
9550 u16_casing_suffixes_context, u32_casing_suffixes_context,
9551 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
9552 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
9553 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
9556 2009-06-28 Jim Meyering <meyering@redhat.com>
9558 boostrap: indent only with spaces
9559 * build-aux/bootstrap: Indent only with spaces, never TABs.
9561 bootstrap: split long lines
9562 * build-aux/bootstrap: Keep line length < 80.
9564 bootstrap: sync from coreutils
9565 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
9566 just as autoreconf does. Verify a list of prerequisite
9567 package-name,version-number pairs if defined in bootstrap.conf.
9568 Refer to README-prereq, if prerequisites are not satisfied.
9570 2009-06-27 Eric Blake <ebb9@byu.net>
9572 tests: add test for bogus NULL definition
9573 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
9574 * tests/test-stdlib.c: Likewise.
9575 * tests/test-string.c: Likewise.
9576 * tests/test-locale.c: Likewise.
9577 * tests/test-unistd.c: Likewise.
9578 * modules/stdio-tests (Depends-on): Add verify.
9579 * modules/stdlib-tests (Depends-on): Likewise.
9580 * modules/string-tests (Depends-on): Likewise.
9581 * modules/locale-tests (Depends-on): Likewise.
9582 * modules/unistd-tests (Depends-on): Likewise.
9584 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
9586 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
9587 self-explaining comment.
9588 * m4/selinux-selinux-h: Update serial.
9589 (gl_LIBSELINUX): New macro, adding a warning for missing development
9590 packages to code extracted from...
9591 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
9592 Add warning for missing development packages here, too.
9594 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
9596 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
9598 2009-06-25 Eric Blake <ebb9@byu.net>
9600 version-etc: fix regression
9601 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
9603 (version_etc): Use it, to catch bugs with trailing NULL.
9604 * lib/version-etc.c (version_etc_arn): Delete unused argument.
9605 (version_etc_va): Fix logic bug.
9606 * modules/version-etc-tests: Add test.
9607 * tests/test-version-etc.c: New file.
9608 * tests/test-version-etc.sh: Likewise.
9610 2009-06-25 Sam Steingold <sds@gnu.org>
9612 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
9615 2009-06-25 Eric Blake <ebb9@byu.net>
9617 fpurge: migrate into <stdio.h>
9618 * lib/fpurge.h: Delete...
9619 * lib/stdio.in.h (fpurge): ...and declare here, instead.
9620 * lib/fpurge.c (fpurge): Change declaring header.
9621 * modules/fpurge (Files): Drop deleted file.
9622 (Depends-on): Add stdio.
9623 (configure.ac): Set witness.
9624 * modules/stdio (Makefile.am): Support fpurge macros.
9625 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9626 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
9627 * lib/fflush.c: Update client.
9628 * tests/test-fpurge.c: Likewise.
9629 * NEWS: Mention the change.
9631 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
9633 * lib/argp-version-etc.c (program_authors): Add const
9635 * lib/version-etc.c: Fix typos in the comments.
9636 * modules/argp-version-etc: Depends on version-etc.
9638 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
9640 argp-version-etc: new module.
9642 * lib/argp-version-etc.c: New file.
9643 * lib/argp-version-etc.h: New file.
9644 * modules/argp-version-etc: New file.
9645 * modules/argp-version-etc-tests: New file.
9646 * tests/test-argp-version-etc.c: New test.
9647 * tests/test-argp-version-etc-1.sh: New test.
9649 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
9651 Provide additional interfaces and documentation for version-etc
9654 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
9656 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
9659 2009-06-24 Bruno Haible <bruno@clisp.org>
9661 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
9662 HAVE_LIB${NAME} macro.
9663 Reported by Sam Steingold <sds@gnu.org>.
9665 2009-06-23 Simon Josefsson <simon@josefsson.org>
9667 * modules/hash-tests (test_hash_LDADD): Link to libintl when
9670 2009-06-21 Bruno Haible <bruno@clisp.org>
9672 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
9674 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
9675 together with LIB${NAME}, LTLIB${NAME}.
9676 Reported by Sam Steingold <sds@gnu.org>.
9678 2009-06-20 Jim Meyering <meyering@redhat.com>
9680 tests: make sc_require_test_exit_idiom more generic
9681 * top/maint.mk (Exit_witness_file): New overridable variable.
9682 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
9683 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
9685 2009-06-19 Jim Meyering <meyering@redhat.com>
9687 hash: reverse order of src/dst parameters in an internal interface
9688 * lib/hash.c (transfer_entries): Reverse order of parameters to
9689 put DST before SRC. Adjust callers.
9691 tests: test-hash: avoid wholesale duplication
9692 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
9693 Instead, use a loop and add a single conditional.
9695 tests: test-hash: allow seed selection via a command line argument
9696 * tests/test-hash.c (get_seed): New function.
9699 2009-06-19 Eric Blake <ebb9@byu.net>
9701 hash: avoid memory leak on allocation failure
9702 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
9703 failure. Factor repeated algorithm...
9704 (transfer_entries): ...into new helper routine.
9705 (hash_delete): React to hash_rehash return value.
9707 hash: reduce memory pressure in hash_rehash no-op case
9708 * lib/hash.c (next_prime): Avoid overflow.
9709 (hash_initialize): Factor bucket size computation...
9710 (compute_bucket_size): ...into new helper function.
9711 (hash_rehash): Use new function and open coding to reduce memory
9712 pressure, and avoid a memory leak in USE_OBSTACK code.
9713 Reported by Jim Meyering.
9715 2009-06-18 Eric Blake <ebb9@byu.net>
9717 hash: make rotation more obvious
9718 * modules/hash (Depends-on): Add bitrotate and stdint.
9719 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
9720 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
9721 (SIZE_MAX): Rely on headers for definition.
9722 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
9723 (raw_hasher): Use rotr_sz.
9724 Suggested by Jim Meyering.
9726 hash: fix memory leak in last patch
9727 * lib/hash.c (hash_rehash): Avoid memory leak.
9729 hash: avoid no-op rehashing
9730 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
9732 hash: provide default callback functions
9733 * lib/hash.c (raw_hasher, raw_comparator): New functions.
9734 (hash_initialize): Use them as defaults.
9735 * tests/test-hash.c (main): Test this.
9737 hash: minor optimization
9738 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
9740 (hash_initialize): Document this promise.
9741 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
9742 * tests/test-hash.c (hash_compare_strings): Test this.
9744 2009-06-18 Bruno Haible <bruno@clisp.org>
9746 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
9747 going to be replaced anyway.
9749 2009-06-18 Bruno Haible <bruno@clisp.org>
9751 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
9753 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
9756 2009-06-18 Eric Blake <ebb9@byu.net>
9758 hash: check for resize before insertion
9759 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
9760 threshold before insertion, so that a pathological hash_rehash
9761 that fills every bucket can still trigger another rehash.
9763 2009-06-18 Jim Meyering <meyering@redhat.com>
9765 hash-tests: add a loop around the small tests
9766 * tests/test-hash.c (main): Repeat small tests with selected
9767 small initial table sizes.
9769 2009-06-17 Eric Blake <ebb9@byu.net>
9771 hash: minor cleanups
9772 * lib/hash.h (hash_entry): Make opaque, by moving...
9773 * lib/hash.c (hash_entry): ...here.
9774 (hash_insert): Clarify restrictions on what can be inserted.
9775 (hash_get_next): Clarify when it is safe to remove an element
9777 (check_tuning): Skip verification when tuning is known safe.
9778 (hash_initialize): Clarify restrictions on tuning.
9780 2009-06-17 Jim Meyering <jim@meyering.net>
9781 and Eric Blake <ebb9@byu.net>
9783 hash-tests: new module
9784 * modules/hash-tests: New file.
9785 * tests/test-hash.c: New file.
9787 2009-06-17 Eric Blake <ebb9@byu.net>
9789 strstr-simple: document new module
9790 * MODULES.html.sh: Document new module.
9792 strstr, strcasestr: replace on platforms with broken memchr
9793 * modules/strstr: Split into...
9794 * modules/strstr-simple: ...new module that does not care about
9795 performance, but does care about glibc bug.
9796 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
9797 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
9798 if platform memchr is broken, per Debian bug 521737.
9799 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
9801 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
9802 * doc/posix-functions/strstr.texi (strstr): Document the fix.
9803 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9804 * modules/mountlist (Depends-on): Add strstr-simple.
9805 * modules/gen-uni-tables (Depends-on): Likewise.
9806 * modules/argz (Depends-on): Add strstr.
9808 2009-06-17 Bruno Haible <bruno@clisp.org>
9810 * modules/posix_spawn-internal (Depends-on): Add errno.
9812 2009-06-17 Bruno Haible <bruno@clisp.org>
9814 Define missing ESTALE on Interix 3.5.
9815 * lib/errno.in.h (ESTALE): Assign a value if missing.
9816 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
9817 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
9819 * doc/posix-headers/errno.texi: Mention the Interix bug.
9820 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
9822 2009-06-15 Eric Blake <ebb9@byu.net>
9824 memchr, memchr2: add valgrind exception
9825 * lib/memchr.valgrind: New file.
9826 * lib/memchr2.valgrind: New file.
9827 * modules/memchr (Files): Distribute valgrind file.
9828 * modules/memchr2 (Files): Likewise.
9830 docs: memchr is no longer obsolete
9831 * MODULES.html.sh: Move memchr from obsolete to string.h section.
9832 * lib/string.in.h (memchr): Simplify logic.
9834 2009-06-14 Jim Meyering <meyering@redhat.com>
9836 link-follow: fix the "checking..." message to not mention trailing slash
9837 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
9838 never considered trailing slashes.
9840 2009-06-14 Bruno Haible <bruno@clisp.org>
9842 * m4/memchr.m4: Mention also the bug on IA-64.
9843 * doc/posix-functions/memchr.texi: Likewise.
9845 2009-06-12 Eric Blake <ebb9@byu.net>
9847 memchr: detect broken x86_64 and alpha implementations
9848 * modules/memchr-tests (Depends-on): Move mmap detection...
9849 * modules/memchr (Depends-on): ...here.
9850 (configure.ac): Set indicator.
9851 * lib/string.in.h (memchr): Declare replacement.
9852 * modules/string (Makefile.am): Trigger replacement.
9853 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
9854 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
9856 * doc/posix-functions/memchr.texi (memchr): Document the bug.
9857 * modules/getpagesize (License): Relax license.
9859 2009-06-11 Bruno Haible <bruno@clisp.org>
9861 * lib/idpriv.h: Add more references.
9863 2009-06-08 Bruno Haible <bruno@clisp.org>
9865 Tests for module 'idpriv-droptemp'.
9866 * modules/idpriv-droptemp-tests: New file.
9867 * tests/test-idpriv-droptemp.sh: New file.
9868 * tests/test-idpriv-droptemp.su.sh: New file.
9869 * tests/test-idpriv-droptemp.c: New file.
9871 New module 'idpriv-droptemp'.
9872 * lib/idpriv-droptemp.c: New file.
9873 * modules/idpriv-droptemp: New file.
9875 2009-06-08 Bruno Haible <bruno@clisp.org>
9877 Tests for module 'idpriv-drop'.
9878 * modules/idpriv-drop-tests: New file.
9879 * tests/test-idpriv-drop.sh: New file.
9880 * tests/test-idpriv-drop.su.sh: New file.
9881 * tests/test-idpriv-drop.c: New file.
9883 New module 'idpriv-drop'.
9884 * lib/idpriv.h: New file.
9885 * lib-idpriv-drop.c: New file.
9886 * m4/idpriv.m4: New file.
9887 * modules/idpriv-drop: New file.
9889 2009-06-08 Bruno Haible <bruno@clisp.org>
9891 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
9892 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9893 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9894 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9895 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9896 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9897 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9899 2009-06-08 Eric Blake <ebb9@byu.net>
9901 test-strstr: use memory fence, when possible
9902 * tests/test-strstr.c (main): Use memory fence, in order to be
9903 more likely to trigger Debian bug 521737.
9904 * modules/strstr-tests (Files): Pull in additional files.
9906 memchr: no longer obsolete, for wider field testing
9907 * modules/memchr (Status, Notice): Delete, this module is no
9909 * modules/vasnprintf (Depends-on): Add memchr.
9911 2009-06-07 Jim Meyering <meyering@redhat.com>
9913 hash: declare some functions with the warn_unused_result attribute
9914 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
9916 2009-06-07 Bruno Haible <bruno@clisp.org>
9918 * tests/test-alignof.c: Don't test int64_t if it does not exist.
9919 Reported by Eric Blake.
9921 2009-06-06 Eric Blake <ebb9@byu.net>
9923 test-alignof: fix typo with long double
9924 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
9927 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
9929 Escape non-texinfo { and }s.
9930 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
9933 2009-06-04 Jim Meyering <meyering@redhat.com>
9935 gitlog-to-changelog: don't infloop on an empty commit log
9936 * build-aux/gitlog-to-changelog: Warn about an empty log message.
9937 Reported by Boris Petersen <transacid@centerim.org>.
9939 2009-06-03 Mike Frysinger <vapier@gentoo.org>
9941 version-etc: extend for packagers
9942 Add three new configure options, intended for packagers:
9943 --with-packager="packager name"
9944 --with-packager-version="packager-specific version"
9945 --with-packager-bug-reports="packager bug reporting"
9946 An example with coreutils:
9948 --with-packager=Gentoo \
9949 --with-packager-bug-report=http://bugs.gentoo.org/ \
9950 --with-packager-version="patchset 1.6"
9951 $ ./src/ls --version | head -n2
9952 ls (GNU coreutils) 7.1-dirty
9953 Packaged by Gentoo (patchset 1.6)
9954 Note that the bug reporting info via --help doesn't show up because
9955 coreutils uses its own custom emit_bug_reporting_address() implementation
9956 in src/system.h. If it didn't, it'd look like:
9957 $ ./src/ls --help | tail -n4
9958 Report bugs to <bug-coreutils@gnu.org>.
9959 Report Gentoo bugs to <http://bugs.gentoo.org/>.
9960 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
9961 General help using GNU software: <http://www.gnu.org/gethelp/>.
9962 * lib/version-etc.c: Print new information, if provided.
9963 * m4/version-etc.m4: New file.
9964 * modules/version-etc (Files): Add m4/version-etc.m4.
9965 (configure.ac): Add gl_VERSION_ETC.
9967 2009-05-31 Bruno Haible <bruno@clisp.org>
9969 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
9971 * modules/alignof-tests (Dependencies): Add stdint.
9972 Reported by Eric Blake.
9974 2009-05-31 Bruno Haible <bruno@clisp.org>
9976 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
9977 restriction due to compiler bugs.
9978 Reported by Eric Blake.
9980 2009-05-31 Simon Josefsson <simon@josefsson.org>
9981 Bruno Haible <bruno@clisp.org>
9983 Fix test-alignof failure.
9984 * lib/alignof.h (alignof_slot): New macro.
9985 (alignof_type): New macro, with the same semantics as the previous
9987 (alignof): Alias to alignof_slot.
9988 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
9989 check that the results are usable as constant expressions.
9991 2009-05-31 Bruno Haible <bruno@clisp.org>
9993 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
9994 * tests/test-memchr.c (main): Check that memchr does not read past the
9995 first occurrence of the byte.
9996 * tests/test-strstr.c (main): Update comment.
9997 Suggested by Eric Blake.
9999 2009-05-30 Bruno Haible <bruno@clisp.org>
10001 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
10002 detail how to use dumpbin.
10003 Reported by David Byron <dbyron@dbyron.com>.
10005 2009-06-02 Simon Josefsson <simon@josefsson.org>
10007 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
10009 2009-06-02 Simon Josefsson <simon@josefsson.org>
10011 * m4/manywarnings.m4: Add GCC 4.4 warnings.
10013 2009-05-28 Bruno Haible <bruno@clisp.org>
10015 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
10018 2009-05-28 Simon Josefsson <simon@josefsson.org>
10020 * gnulib-tool (func_import): Transform license on build-aux/ files too.
10022 2009-05-27 Simon Josefsson <simon@josefsson.org>
10024 * gnulib-tool (sed_transform_main_lib_file)
10025 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
10028 2009-05-26 Simon Josefsson <simon@josefsson.org>
10030 * tests/test-strstr.c: Add another self-test.
10031 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
10032 strdup. Suggested by Eric Blake <ebb9@byu.net>.
10034 2009-05-23 Bruno Haible <bruno@clisp.org>
10036 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
10039 2009-05-21 Bruno Haible <bruno@clisp.org>
10041 Simplify use of mode_t varargs.
10042 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
10043 uses 'mode_t' or 'int'.
10044 * lib/openat.c (openat): Likewise.
10045 * lib/open-safer.c (open_safer): Likewise.
10046 * m4/mode_t.m4: New file.
10047 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
10048 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
10049 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
10050 * modules/open (Files): Add m4/mode_t.m4.
10051 * modules/openat (Files): Likewise.
10052 * modules/fcntl-safer (Files): Likewise.
10053 Suggested by Eric Blake.
10055 2009-05-21 Pádraig Brady <P@draigbrady.com>
10057 * doc/glibc-functions/fallocate.texi: New file.
10058 * doc/gnulib.texi: Include it.
10060 2009-05-21 Eric Blake <ebb9@byu.net>
10061 Bruno Haible <bruno@clisp.org>
10063 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
10065 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
10067 2009-05-21 Eric Blake <ebb9@byu.net>
10068 Bruno Haible <bruno@clisp.org>
10070 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
10071 include_next. Fix of 2008-11-20 commit.
10072 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
10073 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
10074 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
10076 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
10077 instead of NEXT_MATH_H.
10079 2009-05-21 Bruno Haible <bruno@clisp.org>
10081 Avoid redefinition warnings for SIZE_MAX.
10082 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
10083 Reported by Simon Josefsson.
10085 2009-05-21 Bruno Haible <bruno@clisp.org>
10087 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
10090 2009-05-20 Bruno Haible <bruno@clisp.org>
10092 Make zeroptr.h work on mingw.
10093 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
10095 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
10096 * modules/memchr2-tests (configure.ac): Likewise.
10097 * modules/memcmp-tests (configure.ac): Likewise.
10098 * modules/memmem-tests (configure.ac): Likewise.
10099 * modules/memrchr-tests (configure.ac): Likewise.
10100 Reported by Simon Josefsson.
10102 2009-05-20 Simon Josefsson <simon@josefsson.org>
10104 * tests/test-glob.c: Include string.h for strcmp prototype.
10106 2009-05-20 Simon Josefsson <simon@josefsson.org>
10108 * modules/getdelim (Depends-on): Add explicit stdint, although it
10109 was implicitly already pulled in via realloc-posix.
10110 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
10112 2009-05-20 Simon Josefsson <simon@josefsson.org>
10114 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
10115 G. Christensen" <tgc@jupiterrise.com>.
10116 * m4/sys_socket_h.m4: Check for sa_family_t.
10117 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
10118 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
10119 * tests/test-sys_socket.c: Check that sa_family_t works.
10121 2009-05-18 Eric Blake <ebb9@byu.net>
10123 maint.mk: allow gnulib_dir in VPATH build
10124 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
10126 2009-05-15 Jim Meyering <meyering@redhat.com>
10128 maint.mk: Give gnulib_dir a default definition.
10129 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
10130 Thus, most packages no longer need to specify this variable in cfg.mk
10132 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
10134 rename.m4: fix typos that would make non-mingw cross-configure fail
10135 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
10137 2009-05-13 Eric Blake <ebb9@byu.net>
10139 mmap-anon: avoid out-of-order autoconf expansion
10140 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
10141 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
10142 * modules/memchr-tests (Depends-on): Add extensions.
10143 * modules/memchr2-tests (Depends-on): Add extensions.
10144 * modules/memcmp-tests (Depends-on): Add extensions.
10145 * modules/memmem-tests (Depends-on): Add extensions.
10146 * modules/memrchr-tests (Depends-on): Add extensions.
10148 2009-05-13 Bruno Haible <bruno@clisp.org>
10150 Make some tests ISO C 99 compliant.
10151 * tests/zerosize-ptr.h: New file.
10152 * tests/test-memchr.c: Include zerosize-ptr.h.
10153 (main): Use a zero-size object pointer instead of NULL.
10154 * tests/test-memchr2.c: Include zerosize-ptr.h.
10155 (main): Use a zero-size object pointer instead of NULL.
10156 * tests/test-memcmp.c: Include zerosize-ptr.h.
10157 (main): Use a zero-size object pointer instead of NULL.
10158 * tests/test-memmem.c: Include zerosize-ptr.h.
10159 (main): Use a zero-size object pointer instead of NULL.
10160 * tests/test-memrchr.c: Include zerosize-ptr.h.
10161 (main): Use a zero-size object pointer instead of NULL.
10162 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
10164 (Depends-on): Add getpagesize.
10165 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10166 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
10168 (Depends-on): Add getpagesize.
10169 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10170 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
10172 (Depends-on): Add getpagesize.
10173 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10174 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
10176 (Depends-on): Add getpagesize.
10177 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10178 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
10180 (Depends-on): Add getpagesize.
10181 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10183 2009-05-12 Bruno Haible <bruno@clisp.org>
10185 Tests for module 'alignof'.
10186 * modules/alignof-tests: New file.
10187 * tests/test-alignof.c: New file.
10189 2009-05-12 Bruno Haible <bruno@clisp.org>
10192 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
10193 vendor compilers that are always correct.
10195 2009-05-12 Bruno Haible <bruno@clisp.org>
10197 Make the MAP_ANONYMOUS detection work on HP-UX 11.
10198 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
10199 not whether its fully works.
10201 2009-05-12 Bruno Haible <bruno@clisp.org>
10203 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
10205 2009-05-12 Jim Meyering <meyering@redhat.com>
10207 * top/maint.mk: Adjust backslash alignment.
10209 2009-05-11 Simon Josefsson <simon@josefsson.org>
10211 * top/maint.mk: Make $(srcdir)/build-aux configurable.
10213 2009-05-11 Eric Blake <ebb9@byu.net>
10215 argp: avoid undefined behavior
10216 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
10219 2009-05-08 Simon Josefsson <simon@josefsson.org>
10221 * tests/test-vc-list-files-git.sh: Do git config of user.email and
10222 user.name to prevent git commit from complaining.
10224 2009-05-10 Bruno Haible <bruno@clisp.org>
10226 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
10227 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
10228 it rewrites every file name only once.
10229 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
10231 2009-05-08 Bruno Haible <bruno@clisp.org>
10233 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
10236 2009-05-08 Simon Josefsson <simon@josefsson.org>
10238 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
10239 sockaddr_storage test.
10241 2009-05-07 Simon Josefsson <simon@josefsson.org>
10243 * modules/sys_socket (Makefile.am): Substitute
10244 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
10245 * m4/sys_socket_h.m4: Check for sockaddr_storage.
10246 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
10247 * tests/test-sys_socket.c: Check sockaddr_storage.
10249 2009-05-08 Bruno Haible <bruno@clisp.org>
10251 New module 'alignof'.
10252 * lib/alignof.h: New file.
10253 * modules/alignof: New file.
10255 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
10256 Bruno Haible <bruno@clisp.org>
10258 Fix test-file-has-acl on FreeBSD.
10259 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
10260 mask is implicitly added.
10261 * tests/test-file-has-acl.c: Include <signal.h>.
10262 (main): Terminate the test after 5 seconds.
10263 * modules/acl-tests (configure.ac): Check for alarm function.
10265 2009-05-04 Bruno Haible <bruno@clisp.org>
10267 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
10268 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
10269 * modules/errno (configure.ac): Drop AC_REQUIRE.
10270 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
10271 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
10273 2009-05-04 Simon Josefsson <simon@josefsson.org>
10275 * modules/glob-tests: New module.
10276 * tests/test-glob.c: Add.
10278 2009-05-04 Simon Josefsson <simon@josefsson.org>
10280 * modules/fnmatch-tests: New module.
10281 * tests/test-fnmatch.c: Add.
10283 2009-05-04 Eric Blake <ebb9@byu.net>
10285 maint: make the new no-submodule-changes rule VPATH-safe
10286 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
10288 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
10289 Bruno Haible <bruno@clisp.org>
10291 acl: Fix infinite loop on FreeBSD.
10292 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
10293 of return value from acl_get_entry.
10294 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
10297 2009-05-03 Bruno Haible <bruno@clisp.org>
10299 * lib/acl-internal.h (acl_entries): Clarify return value.
10300 * lib/acl_entries.c (acl_entries): Likewise.
10302 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
10304 Bug fix in acl module.
10305 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
10307 2009-05-03 Bruno Haible <bruno@clisp.org>
10309 Create gperf-generated file in the source dir, not in the build dir.
10310 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
10311 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
10312 * modules/unicase/locale-language (unicase/locale-languages.h):
10314 * modules/unicase/special-casing (unicase/special-casing-table.h):
10316 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
10317 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
10318 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
10319 Reported by Ralf Wildenhues.
10321 2009-05-03 Bruno Haible <bruno@clisp.org>
10323 * modules/fnmatch (Description, configure.ac): Taken from
10325 * modules/fnmatch-posix: Turn into a symbolic reference to the
10326 'fnmatch' module, and deprecate.
10327 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
10329 2009-05-03 Bruno Haible <bruno@clisp.org>
10331 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
10332 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
10333 Reported by Ralf Wildenhues.
10335 2009-05-04 Simon Josefsson <simon@josefsson.org>
10337 * m4/fnmatch.m4: Fix fnmatch re-define.
10339 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
10341 priv-set: new module and tests; adapt write-any-file
10342 * lib/priv-set.c: New file.
10343 * lib/priv-set.h: New file.
10344 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
10345 * lib/write-any-file.c: Simplify by using priv-set module.
10346 * m4/priv-set.m4: New file.
10347 * modules/priv-set: New file.
10348 * modules/unlinkdir: Add dependency on priv-set module.
10349 * modules/write-any-file: Likewise.
10351 Tests for module 'priv-set'.
10352 * modules/priv-set-tests: New file.
10353 * tests/test-priv-set.c: New file.
10355 2009-05-03 Jim Meyering <meyering@redhat.com>
10356 Bruno Haible <bruno@clisp.org>
10358 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
10359 use the converted UTF-8 variant of the name instead.
10361 2009-05-03 Jim Meyering <meyering@redhat.com>
10363 tests: tighten some getdate tests
10364 * tests/test-getdate.c (main): Tighten tests: require equality,
10365 not just greater than. Set TZ envvar to UTC0.
10367 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
10369 getdate: correctly interpret "next monday" when run on a Monday
10370 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
10371 that e.g., "next tues" (when run on a tuesday) results in a date
10372 that is one week in the future, and not today's date.
10373 I.e., add a week when the wday is the same as the current one.
10374 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
10375 and earlier by Martin Bernreuther and Jan Minář.
10376 * tests/test-getdate.c (main): Check that "next DAY" is always in
10377 the future and that "last DAY" is always in the past.
10379 2009-05-02 Jim Meyering <meyering@redhat.com>
10381 build: ensure that a release build fails when a submodule is unclean
10382 * top/maint.mk (no-submodule-changes): New rule.
10383 (alpha beta major): Depend on it.
10385 2009-05-02 Bruno Haible <bruno@clisp.org>
10387 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
10388 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
10389 shell variable gl_fnmatch_required to detect which variant is
10391 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
10392 gl_FUNC_FNMATCH_POSIX.
10393 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
10394 exclude fnmatch-posix.
10396 2009-05-02 Bruno Haible <bruno@clisp.org>
10398 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
10399 * modules/mbsrtowcs (License): Change to LGPLv2+.
10400 * modules/strnlen1 (License): Likewise.
10401 Reported by Simon Josefsson.
10403 2009-05-02 Bruno Haible <bruno@clisp.org>
10405 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
10407 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
10408 gnulib-tool was called with option --source-base=lib.
10410 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10412 Use automake *-local hooks without commands, for extensibility.
10413 * modules/localcharset (Makefile.am): Rename install-exec-local
10414 rule to install-exec-localcharset, and make it a prerequisite of
10415 install-exec-local. Likewise, rename the uninstall-local rule to
10416 uninstall-localcharset, and make it a prerequisite of the former.
10418 2009-05-01 Bruno Haible <bruno@clisp.org>
10420 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
10421 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10422 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
10423 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
10424 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
10425 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10426 m4/locale-zh.m4, m4/codeset.m4.
10428 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10429 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
10430 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10433 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
10434 REPLACE_WCRTOMB if mbstate_t must be replaced.
10435 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
10436 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
10438 2009-05-01 Bruno Haible <bruno@clisp.org>
10440 Avoid compiler warnings when redefining macros defined by <libintl.h>.
10441 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
10442 dngettext, dcngettext, textdomain, bindtextdomain,
10443 bind_textdomain_codeset): Undefine before redefining.
10445 2009-04-30 Bruno Haible <bruno@clisp.org>
10447 Fix bug introduced on 2009-04-25.
10448 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
10449 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
10450 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
10452 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
10454 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
10456 Reported by Elbert_Pol <elbert.pol@gmail.com>.
10458 2009-04-28 Bruno Haible <bruno@clisp.org>
10461 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
10462 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
10463 * lib/unicase.h (u*_casexfrm): Likewise.
10464 Reported by Paolo Bonzini.
10466 2009-04-28 Bruno Haible <bruno@clisp.org>
10468 Fix a compilation error.
10469 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
10470 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10471 Reported by Jim Meyering.
10473 2009-04-27 Bruno Haible <bruno@clisp.org>
10475 New module 'libunistring'.
10476 * modules/libunistring: New file.
10477 * m4/libunistring.m4: New file.
10478 * MODULES.html.sh (Unicode string functions): Add it.
10480 2009-04-27 Eric Blake <ebb9@byu.net>
10482 maint.mk: allow package-specific header to provide <config.h>
10483 * top/maint.mk (sc_require_config_h): New variable.
10484 (sc_require_config_h, sc_require_config_h_first): Use it.
10486 2009-04-27 Simon Josefsson <simon@josefsson.org>
10488 * top/maint.mk (sc_avoid_if_before_free): Except
10489 useless-if-before-free script.
10491 2009-04-27 Eric Blake <ebb9@byu.net>
10493 maintainer-makefile: depend on all required helper scripts
10494 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
10495 useless-if-before-free.
10496 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
10497 version, rather than assuming gnulib checkout is available.
10498 Reported by Simen Josefsson.
10500 2009-04-26 Bruno Haible <bruno@clisp.org>
10502 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
10503 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
10506 2009-04-26 Bruno Haible <bruno@clisp.org>
10508 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
10509 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
10510 AC_LIB_HAVE_LINKFLAGS.
10512 2009-04-26 Bruno Haible <bruno@clisp.org>
10514 Simplify calling convention of u*_conv_from_encoding.
10515 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
10516 u32_conv_from_encoding): Expect a resultbuf argument and return the
10517 result directly as a pointer.
10518 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
10519 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
10520 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
10521 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
10522 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
10523 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10525 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
10526 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
10527 * lib/vasnprintf.c (VASNPRINTF): Update.
10528 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
10529 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
10530 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
10531 * NEWS: Mention the change.
10533 2009-04-26 Bruno Haible <bruno@clisp.org>
10535 Simplify calling convention of u*_conv_to_encoding.
10536 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
10537 u32_conv_to_encoding): Expect a resultbuf argument and return the
10538 result directly as a pointer.
10539 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10540 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
10541 freeing scaled_offsets if mem_iconveha failed.
10542 * lib/unicase/u-casexfrm.h (FUNC): Update.
10543 * lib/uninorm/u-normxfrm.h (FUNC): Update.
10544 * lib/vasnprintf.c (VASNPRINTF): Update.
10545 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
10546 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
10547 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
10548 * NEWS: Mention the change.
10550 2009-04-26 Bruno Haible <bruno@clisp.org>
10552 Avoid test failures on AIX and OSF/1.
10553 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
10555 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10556 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10558 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
10559 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
10560 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
10561 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
10562 * doc/posix-functions/malloc.texi: Document the portability problem
10563 related to malloc(0).
10565 2009-04-26 Bruno Haible <bruno@clisp.org>
10567 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
10568 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
10569 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
10571 2009-04-25 Bruno Haible <bruno@clisp.org>
10573 Avoid link error when creating a namespace clean library.
10574 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
10575 as macro with arguments if already defined as an alias.
10576 * lib/signbitf.c (gl_signbitf): Don't undefine.
10577 * lib/signbitd.c (gl_signbitd): Don't undefine.
10578 * lib/signbitl.c (gl_signbitl): Don't undefine.
10580 2009-04-25 Jim Meyering <meyering@redhat.com>
10582 vc-list-files: fix another quoting bug
10583 * build-aux/vc-list-files: Avoid sed backslash expansion
10584 of pathological directory names.
10586 2009-04-25 Eric Blake <ebb9@byu.net>
10588 vc-list-files: fix shell quoting error
10589 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
10592 2009-04-25 Jim Meyering <meyering@redhat.com>
10594 vc-list-files: restore lost functionality with subdir argument
10595 * build-aux/vc-list-files: When given a non-"." sub-directory
10596 argument, substitute the $dir/ prefix back onto each resulting name.
10597 Otherwise, coreutils' root_tests check would fail.
10599 2009-04-24 Eric Blake <ebb9@byu.net>
10601 vc-list-files: ignore git symlinks
10602 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
10603 than ls-files, to ignore git symlinks.
10605 maint.mk: import improvements from m4
10606 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
10607 (move_if_change): Delete unused macro.
10608 (news-date-check, vc-diff-check): Support VPATH builds.
10609 (announcement): Likewise. Split --bootstrap-tools list...
10610 (boostrap-tools): ...into separate list, which can be overridden
10612 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
10613 requiring dependency on useless-if-before-free module.
10614 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
10615 Support VPATH builds.
10617 2009-04-24 Jim Meyering <meyering@redhat.com>
10619 maint.mk: remove coreutils-specific rules and variables
10620 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
10621 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
10622 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
10624 maint.mk: remove obsolete rule
10625 * top/maint.mk (rel-check): Remove rule.
10626 (WGET, WGETFLAGS): Remove now-unused variables.
10628 2009-04-24 Simon Josefsson <simon@josefsson.org>
10630 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
10633 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
10634 '$(PATH_SEPARATOR)' instead of ':'.
10636 2009-04-24 Simon Josefsson <simon@josefsson.org>
10638 * lib/getopt1.c (main): Use 'const' for static array.
10640 2009-04-24 Simon Josefsson <simon@josefsson.org>
10642 * top/maint.mk: Sync with coreutils.
10643 * NEWS: Explain incompatibilities.
10645 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10646 Bruno Haible <bruno@clisp.org>
10648 Fix cross-compilation results.
10649 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
10650 statement, as third argument of AC_TRY_RUN.
10651 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10652 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10654 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10655 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10657 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10658 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
10659 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
10661 2009-04-20 Bruno Haible <bruno@clisp.org>
10663 Avoid test failure on mingw.
10664 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
10666 2009-04-20 Bruno Haible <bruno@clisp.org>
10668 Avoid compilation error on mingw.
10669 * modules/localename-tests (Depends-on): Add locale.
10671 2009-04-19 Bruno Haible <bruno@clisp.org>
10673 Support for building a shared library on Windows platforms.
10674 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
10675 (main): Test the presence of UNINORM_NFC here.
10676 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
10677 (main): Test the presence of UNINORM_NFD here.
10678 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
10679 (main): Test the presence of UNINORM_NFKC here.
10680 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
10681 (main): Test the presence of UNINORM_NFKD here.
10683 2009-04-19 Bruno Haible <bruno@clisp.org>
10685 Avoid a compiler warning.
10686 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
10687 Change type of variable 'sequence'.
10689 2009-04-19 Bruno Haible <bruno@clisp.org>
10691 * modules/configmake (Makefile.am): When the contents of configmake.h
10692 does not change, arrange to preserve its modification time.
10694 2009-04-17 Simon Josefsson <simon@josefsson.org>
10696 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
10699 2009-04-16 Jim Meyering <meyering@redhat.com>
10701 useless-if-before-free: improve conversion code
10702 * build-aux/useless-if-before-free: Adjust code-in-comment to match
10703 "...!= 0" as well as "...!= NULL". emacs has one of the former.
10705 2009-04-14 Bruno Haible <bruno@clisp.org>
10707 * modules/fcntl (Depends-on): Add extensions.
10708 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
10710 2009-04-12 Ben Pfaff <blp@gnu.org>
10712 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
10713 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
10715 2009-03-20 Ben Pfaff <blp@gnu.org>
10717 Make rename replace existing destinations on Windows.
10718 * m4/rename.m4: Add test for Mingw.
10719 * lib/rename.c: Add rename replacement that uses MoveFileEx with
10720 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
10721 * doc/posix-functions/rename.texi: Document.
10723 2009-04-10 Bruno Haible <bruno@clisp.org>
10725 New include file "iconveh.h".
10726 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
10727 * lib/striconveh.h: Include it.
10728 (enum iconv_ilseq_handler): Remove definition.
10729 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
10731 * lib/striconveha.c: Include striconveh.h.
10732 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
10733 * modules/striconveh (Files): Add lib/iconveh.h.
10734 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
10737 2009-04-10 Bruno Haible <bruno@clisp.org>
10739 * lib/uniconv.h: Update comment.
10741 2009-04-10 Bruno Haible <bruno@clisp.org>
10743 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
10745 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10746 * lib/unistr/u16-mbtouc-aux.c: Likewise.
10747 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10748 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
10749 "unistring-notinline.h", so that the function gets defined always.
10750 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10751 * lib/unistr/u8-uctomb.c: Likewise.
10752 * lib/unistr/u16-mbtouc.c: Likewise.
10753 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10754 * lib/unistr/u16-uctomb.c: Likewise.
10755 * lib/unistr/u32-mbtouc.c: Likewise.
10756 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10757 * lib/unistr/u32-uctomb.c: Likewise.
10759 2009-04-10 Bruno Haible <bruno@clisp.org>
10761 Mark 'utime' obsolete.
10762 * modules/utime (Status, Notice): New sections.
10763 Suggested by Jim Meyering.
10765 Fix cross-compile guess for utime test.
10766 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
10768 * doc/posix-functions/utime.texi: Give more precisions.
10769 Reported by Jan <ipif@ymail.com>.
10771 2009-04-09 Kamil Dudka <kdudka@redhat.com>
10773 filevercmp: correct today's change
10774 * lib/filevercmp.c: Also handle coreutils' test inputs.
10775 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
10777 Fix regression in 'filevercmp' module. Thanks Sven Joachim
10779 * lib/filevercmp.c: Special handle for "", "." and "..".
10780 * tests/test-filevercmp.c: Enlarge the set suite.
10782 2009-04-07 Jim Meyering <meyering@redhat.com>
10784 useless-if-before-free: show how to remove braced useless free, too
10785 * build-aux/useless-if-before-free: still only in a comment, though.
10787 2009-04-07 Reuben Thomas <rrt@sc3d.org>
10789 maint.mk: import changes to syntax-check macros from coreutils
10790 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
10791 Use them in the relevant macros.
10793 2009-04-06 Bruno Haible <bruno@clisp.org>
10795 Fix unportable use of bit-fields.
10796 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
10797 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
10798 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
10800 2009-04-06 Bruno Haible <bruno@clisp.org>
10802 Avoid test failures on AIX and OSF/1.
10803 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
10804 that malloc(0) = NULL.
10805 * tests/unicase/test-u8-tolower.c (check): Likewise.
10806 * tests/unicase/test-u8-totitle.c (check): Likewise.
10807 * tests/unicase/test-u8-toupper.c (check): Likewise.
10808 * tests/unicase/test-u16-casefold.c (check): Likewise.
10809 * tests/unicase/test-u16-tolower.c (check): Likewise.
10810 * tests/unicase/test-u16-totitle.c (check): Likewise.
10811 * tests/unicase/test-u16-toupper.c (check): Likewise.
10812 * tests/unicase/test-u32-casefold.c (check): Likewise.
10813 * tests/unicase/test-u32-tolower.c (check): Likewise.
10814 * tests/unicase/test-u32-totitle.c (check): Likewise.
10815 * tests/unicase/test-u32-toupper.c (check): Likewise.
10816 * tests/uninorm/test-u8-nfc.c (check): Likewise.
10817 * tests/uninorm/test-u8-nfd.c (check): Likewise.
10818 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
10819 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
10820 * tests/uninorm/test-u16-nfc.c (check): Likewise.
10821 * tests/uninorm/test-u16-nfd.c (check): Likewise.
10822 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
10823 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
10824 * tests/uninorm/test-u32-nfc.c (check): Likewise.
10825 * tests/uninorm/test-u32-nfd.c (check): Likewise.
10826 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
10827 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
10829 2009-04-05 Bruno Haible <bruno@clisp.org>
10831 Work around an autoconf limitation.
10832 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
10833 comment line if it would be longer than 3 KB.
10835 2009-04-05 Bruno Haible <bruno@clisp.org>
10837 Avoid test failure with libiconv-1.13.
10838 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
10839 of the expected test results.
10841 2009-04-05 Bruno Haible <bruno@clisp.org>
10843 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
10844 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
10845 that it should be installed.
10847 2009-04-05 Bruno Haible <bruno@clisp.org>
10849 * gnulib-tool: New option --copy-file.
10850 (func_usage): Document it.
10851 (func_dest_tmpfilename): Moved out of func_import.
10852 (func_add_file, func_update_file): New functions, extracted from
10854 (func_import): Update.
10856 2009-04-05 Karl Berry <karl@gnu.org>
10858 * README: prominently mention gnulib-tool.
10859 Rearrange sections so getting the code is near the top.
10861 2009-04-05 Bruno Haible <bruno@clisp.org>
10863 * lib/unicase.h: Mention u*_cmp2.
10864 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10865 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
10866 * lib/unicase/ulc-casecmp.c: Likewise.
10867 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
10868 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
10869 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
10871 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
10872 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
10874 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
10877 * lib/uninorm.h: Mention u*_cmp2.
10878 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10879 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
10880 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
10881 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
10882 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
10884 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
10886 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
10889 New module 'unistr/u32-cmp2'.
10890 * lib/unistr/u32-cmp2.c: New file.
10891 * modules/unistr/u32-cmp2: New file.
10893 New module 'unistr/u16-cmp2'.
10894 * lib/unistr/u16-cmp2.c: New file.
10895 * modules/unistr/u16-cmp2: New file.
10897 New module 'unistr/u8-cmp2'.
10898 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
10899 * lib/unistr/u8-cmp2.c: New file.
10900 * lib/unistr/u-cmp2.h: New file.
10901 * modules/unistr/u8-cmp2: New file.
10903 2009-04-05 Bruno Haible <bruno@clisp.org>
10905 * lib/unictype.h (uc_property_is_valid): New macro.
10906 * tests/unictype/test-pr_byname.c (main): Use it.
10908 * lib/unistr.h: Doc fixes.
10909 * lib/uniconv.h: Doc fixes.
10910 * lib/unictype.h: Doc fixes.
10912 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
10914 Port coreutils 7.2 to Solaris 8.
10916 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
10917 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
10918 for Solaris 8. This is a bit of a hack, as it means it's the
10919 caller's responsibility to add -lnsl if needed, but most likely it
10920 won't be needed since only getaddrinfo uses this and getaddrinfo
10921 isn't needed on Solaris 8.
10923 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
10924 problem to Solaris 8 encountered with coreutils 7.2, which
10925 resulted in a message "fnmatch.c:292: warning: passing argument 4
10926 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
10927 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
10929 2009-04-03 Simon Josefsson <simon@josefsson.org>
10931 * m4/ld-version-script.m4: Add FIXME comment.
10933 2009-04-02 Simon Josefsson <simon@josefsson.org>
10935 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
10936 SOVERSION variable.
10938 2009-04-02 Bruno Haible <bruno@clisp.org>
10940 * Makefile (info, html, dvi, pdf): Combine the rules.
10941 Suggested by Jim Meyering.
10943 2009-04-01 Bruno Haible <bruno@clisp.org>
10945 * Makefile (info, html, dvi, pdf): New targets.
10946 Reported by Reuben Thomas <rrt@sc3d.org>.
10948 2009-04-01 Bruno Haible <bruno@clisp.org>
10950 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
10951 can be put into PATH.
10952 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
10954 2009-04-01 Bruno Haible <bruno@clisp.org>
10956 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
10958 2009-04-01 Bruno Haible <bruno@clisp.org>
10960 Rename module 'visibility'.
10961 * modules/lib-symbol-visibility: Renamed from modules/visibility.
10962 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
10963 * doc/gnulib.texi: Update.
10964 * MODULES.html.sh (Misc): Update.
10965 * NEWS: Mention the change.
10967 2009-04-01 Simon Josefsson <simon@josefsson.org>
10969 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
10970 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
10971 Eric Blake <ebb9@byu.net> for review.
10972 * MODULES.html.sh: Add lib-msvc-compat.
10973 * doc/gnulib.texi: Link to new section.
10974 * m4/ld-output-def.m4: New file.
10975 * doc/ld-output-def.texi: New file.
10977 2009-04-01 Simon Josefsson <simon@josefsson.org>
10979 Rename ld-version-script to lib-symbol-versions. Suggested by
10980 Bruno Haible <bruno@clisp.org>.
10981 * modules/ld-version-script: Renamed to lib-symbol-versions.
10982 * doc/ld-version-script.texi: Fix module name.
10983 * MODULES.html.sh: Add lib-symbol-versions.
10985 2009-03-31 Simon Josefsson <simon@josefsson.org>
10987 * modules/u64-tests: New file.
10988 * tests/test-u64.c: New file.
10990 2009-03-04 Simon Josefsson <simon@josefsson.org>
10992 * MODULES.html.sh: Mention u64.
10993 * modules/u64: New module.
10994 * modules/crypto/sha512: Depend on u64 module instead of providing
10997 2009-03-27 Eric Blake <ebb9@byu.net>
10999 test-strerror: make debugging EAI_SYSTEM easier
11000 * modules/getaddrinfo-tests (Depends-on): Add strerror.
11001 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
11002 failure was EAI_SYSTEM.
11004 2009-03-25 Bruno Haible <bruno@clisp.org>
11006 Fix a problem with --enable-relocatable on Solaris 7.
11007 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
11010 2009-03-25 Eric Blake <ebb9@byu.net>
11012 test-sockets: avoid gcc warning
11013 * tests/test-sockets.c (main): Silence compiler warning.
11015 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
11017 New modules nproc, pthread, contributed by Glen Lenker.
11019 * MODULES.html.sh: Add pthread, nproc.
11020 * lib/nproc.c: New file.
11021 * lib/nproc.h: New file.
11022 * lib/pthread.in.h: New file.
11023 * m4/pthread.m4: New file.
11024 * modules/nproc: New file.
11025 * modules/pthread: New file.
11027 2009-03-24 Simon Josefsson <simon@josefsson.org>
11029 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
11032 2009-03-24 Kamil Dudka <kdudka@redhat.com>
11034 filevercmp: handle simple~ and numbered.~3~ backup suffixes
11035 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
11036 * tests/test-filevercmp.c: Add tests for backup suffixes.
11038 2009-03-24 Simon Josefsson <simon@josefsson.org>
11040 * modules/stdlib (Depends-on): Add stdint, needed when defining
11041 struct random_data on, for example, HP-UX 10.20. Reported by
11042 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11044 2009-03-24 Simon Josefsson <simon@josefsson.org>
11046 * lib/readline.c (readline): Call fflush on stdout after printing
11049 2009-03-20 Bruno Haible <bruno@clisp.org>
11051 Remove dependency from 'close' module to -lws2_32 on native Windows.
11052 * lib/close-hook.h: New file.
11053 * lib/close-hook.c: New file.
11054 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
11056 (_gl_close_fd_maybe_socket): Remove function.
11057 (rpl_close): Invoke execute_all_close_hooks instead of
11058 _gl_close_fd_maybe_socket.
11059 * lib/sockets.c: Include close-hook.h, w32sock.h.
11060 (close_fd_maybe_socket): New function, essentially from lib/close.c.
11061 (close_sockets_hook): New variable.
11062 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
11063 (gl_sockets_cleanup): Unregister it.
11064 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
11065 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
11066 * modules/close-hook: New file.
11067 * modules/close (Files): Remove lib/w32sock.h.
11068 (Depends-on): Add close-hook.
11069 (Link): Remove section.
11070 * modules/sockets (Files): Add lib/w32sock.h.
11071 (Depends-on): Add close-hook.
11072 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
11074 * NEWS: Mention that LIB_CLOSE is gone.
11076 2009-03-23 Eric Blake <ebb9@byu.net>
11078 signal-tests: test previous patch
11079 * tests/test-signal.c: New file.
11080 * modules/signal-tests: Likewise.
11082 signal.h: always support 'volatile sig_atomic_t'
11083 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
11084 (gl_SIGNAL_H_DEFAULTS): Add a default.
11085 * modules/signal (Makefile.am): Substitute if needed.
11086 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
11087 users can blindly add volatile.
11088 * doc/posix-headers/signal.texi (signal.h): Document it.
11089 Reported by Matthew Woehlke.
11091 2009-03-23 Jim Meyering <meyering@redhat.com>
11093 pathmax: PATH_MAX: use pathconf only when available
11094 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
11095 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
11096 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
11097 This avoids a link failure in a PSP cross-compilation environment
11098 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
11100 * lib/vasnprintf.c (divide): Fix typo in comment.
11102 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11104 * gnulib-tool (func_filter_filelist): Fix comment.
11106 2009-03-20 Bruno Haible <bruno@clisp.org>
11108 Make sockets.h self-contained.
11109 * lib/sockets.c: Include sockets.h first.
11110 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
11112 2009-03-19 Eric Blake <ebb9@byu.net>
11114 doc: mention more functions added in cygwin 1.7.0
11115 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
11117 * doc/posix-functions/log2f.texi: Likewise.
11119 2009-03-19 Jim Meyering <meyering@redhat.com>
11121 fsusage: avoid syntax error due to statement-before-declaration
11122 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
11123 after all declarations. Reported by Matthew Woehlke in
11124 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
11126 2009-03-18 Eric Blake <ebb9@byu.net>
11128 build-aux/compile: sync from automake
11129 * build-aux/compile: New file, from automake.
11130 * config/srclist.txt: Mention build-aux/compile.
11132 2009-03-17 Bruno Haible <bruno@clisp.org>
11134 * lib/git-merge-changelog.c: Fix typo in comment.
11135 Reported by Reuben Thomas <rrt@sc3d.org>.
11137 2009-03-17 Reuben Thomas <rrt@sc3d.org>
11139 * m4/regex.m4: update and improve help for
11140 --without-included-regex.
11142 2009-03-17 Simon Josefsson <simon@josefsson.org>
11144 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
11145 failure on missing include files.
11147 2009-03-17 Eric Blake <ebb9@byu.net>
11149 doc: mention more functions added in cygwin 1.7.0
11150 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
11152 * doc/posix-functions/fwscanf.texi: Likewise.
11153 * doc/posix-functions/swprintf.texi: Likewise.
11154 * doc/posix-functions/swscanf.texi: Likewise.
11155 * doc/posix-functions/vfwprintf.texi: Likewise.
11156 * doc/posix-functions/vfwscanf.texi: Likewise.
11157 * doc/posix-functions/vswprintf.texi: Likewise.
11158 * doc/posix-functions/vswscanf.texi: Likewise.
11159 * doc/posix-functions/vwprintf.texi: Likewise.
11160 * doc/posix-functions/vwscanf.texi: Likewise.
11161 * doc/posix-functions/wcscasecmp.texi: Likewise.
11162 * doc/posix-functions/wcsdup.texi: Likewise.
11163 * doc/posix-functions/wcsftime.texi: Likewise.
11164 * doc/posix-functions/wcsncasecmp.texi: Likewise.
11165 * doc/posix-functions/wprintf.texi: Likewise.
11166 * doc/posix-functions/wscanf.texi: Likewise.
11167 * doc/glibc-functions/gethostbyname2.texi: Likewise.
11169 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11171 maint.mk: really add $(AM_MAKEFLAGS)
11172 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
11173 was inadvertently omitted in the last commit.
11174 Spotted by Bruno Haible.
11176 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
11177 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
11178 $(AM_MAKEFLAGS)' rather than plain `make'.
11180 gnulib-tool: execute $MAKE not make
11181 * gnulib-tool: Default $MAKE to 'make'.
11182 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
11183 than make. Initialize $MAKE in the do-autobuild script.
11185 gnulib-tool: use $MAKE not make in generated files
11186 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
11187 make, in generated files. Initialize $MAKE in the do-autobuild
11190 * top/GNUmakefile (_have-git-version-gen): Fix typo.
11192 GNUmakefile: disable parallelism only for multiple, recursive targets
11193 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
11194 additions in the Makefile.
11195 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
11197 (.NOTPARALLEL): Only disable parallel builds if multiple targets
11198 are listed on the command line and at least one of them is
11199 listed in $(ALL_RECURSIVE_TARGETS).
11201 2009-03-14 Bruno Haible <bruno@clisp.org>
11203 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
11204 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
11205 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
11206 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
11207 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
11208 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
11209 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
11211 * modules/unistr/u8-strchr (Depends-on): Likewise.
11212 * modules/unistr/u8-strrchr (Depends-on): Likewise.
11213 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
11215 * modules/unistr/u16-strchr (Depends-on): Likewise.
11216 * modules/unistr/u16-strrchr (Depends-on): Likewise.
11218 2009-03-12 Bruno Haible <bruno@clisp.org>
11220 Work around select() bug on Interix 3.5.
11221 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
11222 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
11223 * m4/select.m4: New file.
11224 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
11225 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
11226 * modules/select (Files): Add m4/select.m4.
11227 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
11228 * modules/nanosleep (Depends-on): Add select.
11229 * modules/poll (Depends-on): Likewise.
11230 * doc/posix-functions/select.texi: Mention the Interix bug.
11231 Reported by Markus Duft <mduft@gentoo.org>.
11233 * lib/select.c: Renamed from lib/winsock-select.c.
11234 * modules/select (Files): Add lib/select.c, remove
11235 lib/winsock-select.c.
11236 (configure.ac): Update.
11238 2009-03-12 Jim Meyering <meyering@redhat.com>
11240 avoid gcc warnings about unused macro definitions
11241 * lib/readtokens.c (STREQ): Remove unused definition.
11242 * lib/xmalloc.c (SIZE_MAX): Likewise.
11243 * lib/openat-die.c (N_): Likewise.
11244 * lib/mountlist.c (SIZE_MAX): Remove definition.
11245 Instead, include <stdint.h>.
11246 * lib/readutmp.c: Likewise.
11247 * modules/readutmp (Depends-on): Add stdint.
11248 * modules/mountlist (Depends-on): Add stdint.
11249 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
11251 2009-03-10 Bruno Haible <bruno@clisp.org>
11253 Tests for module 'mbmemcasecoll'.
11254 * modules/mbmemcasecoll-tests: New file.
11255 * tests/test-mbmemcasecoll1.sh: New file.
11256 * tests/test-mbmemcasecoll2.sh: New file.
11257 * tests/test-mbmemcasecoll3.sh: New file.
11258 * tests/test-mbmemcasecoll.c: New file.
11260 New module 'mbmemcasecoll'.
11261 * lib/mbmemcasecoll.h: New file.
11262 * lib/mbmemcasecoll.c: New file.
11263 * modules/mbmemcasecoll: New file.
11265 * tests/test-mbmemcasecmp.h: New file, extracted from
11266 tests/test-mbmemcasecmp.c.
11267 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
11268 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
11270 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
11272 2009-03-09 Bruno Haible <bruno@clisp.org>
11274 Tests for module 'mbmemcasecmp'.
11275 * modules/mbmemcasecmp-tests: New file.
11276 * tests/test-mbmemcasecmp1.sh: New file.
11277 * tests/test-mbmemcasecmp2.sh: New file.
11278 * tests/test-mbmemcasecmp3.sh: New file.
11279 * tests/test-mbmemcasecmp.c: New file.
11281 New module 'mbmemcasecmp'.
11282 * lib/mbmemcasecmp.h: New file.
11283 * lib/mbmemcasecmp.c: New file.
11284 * modules/mbmemcasecmp: New file.
11286 2009-03-09 Bruno Haible <bruno@clisp.org>
11288 Tests for module 'unicase/ulc-casecoll'.
11289 * modules/unicase/ulc-casecoll-tests: New file.
11290 * tests/unicase/test-ulc-casecoll1.sh: New file.
11291 * tests/unicase/test-ulc-casecoll2.sh: New file.
11292 * tests/unicase/test-ulc-casecoll.c: New file.
11294 New module 'unicase/ulc-casecoll'.
11295 * lib/unicase.h (ulc_casecoll): New declaration.
11296 * lib/unicase/ulc-casecoll.c: New file.
11297 * modules/unicase/ulc-casecoll: New file.
11299 New module 'unicase/ulc-casexfrm'.
11300 * lib/unicase.h (ulc_casexfrm): New declaration.
11301 * lib/unicase/ulc-casexfrm.c: New file.
11302 * modules/unicase/ulc-casexfrm: New file.
11304 2009-03-09 Bruno Haible <bruno@clisp.org>
11306 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
11309 * m4/mbscasecmp.m4: Remove file.
11310 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
11311 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
11313 * m4/mbscasestr.m4: Remove file.
11314 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
11315 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
11317 * m4/mbschr.m4: Remove file.
11318 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
11319 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
11321 * m4/mbscspn.m4: Remove file.
11322 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
11323 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
11325 * m4/mbslen.m4: Remove file.
11326 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
11327 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
11329 * m4/mbsncasecmp.m4: Remove file.
11330 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
11331 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
11333 * m4/mbsnlen.m4: Remove file.
11334 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
11335 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
11337 * m4/mbspbrk.m4: Remove file.
11338 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
11339 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
11341 * m4/mbspcasecmp.m4: Remove file.
11342 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
11343 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
11345 * m4/mbsrchr.m4: Remove file.
11346 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
11347 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
11349 * m4/mbssep.m4: Remove file.
11350 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
11351 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
11353 * m4/mbsspn.m4: Remove file.
11354 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
11355 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
11357 * m4/mbsstr.m4: Remove file.
11358 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
11359 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
11361 * m4/mbstok_r.m4: Remove file.
11362 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
11363 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
11365 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
11367 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
11368 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
11370 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
11372 2009-03-08 Bruno Haible <bruno@clisp.org>
11374 Tests for module 'unicase/ulc-casecmp'.
11375 * modules/unicase/ulc-casecmp-tests: New file.
11376 * tests/unicase/test-ulc-casecmp1.sh: New file.
11377 * tests/unicase/test-ulc-casecmp2.sh: New file.
11378 * tests/unicase/test-ulc-casecmp.c: New file.
11380 New module 'unicase/ulc-casecmp'.
11381 * lib/unicase.h (ulc_casecmp): New declaration.
11382 * lib/unicase/ulc-casecmp.c: New file.
11383 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
11384 'const SRC_UNIT *'.
11385 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
11386 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
11387 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
11388 * modules/unicase/ulc-casecmp: New file.
11390 Tests for module 'unicase/u32-is-cased'.
11391 * modules/unicase/u32-is-cased-tests: New file.
11392 * tests/unicase/test-u32-is-cased.c: New file.
11394 Tests for module 'unicase/u16-is-cased'.
11395 * modules/unicase/u16-is-cased-tests: New file.
11396 * tests/unicase/test-u16-is-cased.c: New file.
11398 Tests for module 'unicase/u8-is-cased'.
11399 * modules/unicase/u8-is-cased-tests: New file.
11400 * tests/unicase/test-u8-is-cased.c: New file.
11401 * tests/unicase/test-is-cased.h: New file.
11403 New module 'unicase/u32-is-cased'.
11404 * lib/unicase/u32-is-cased.c: New file.
11405 * modules/unicase/u32-is-cased: New file.
11407 New module 'unicase/u16-is-cased'.
11408 * lib/unicase/u16-is-cased.c: New file.
11409 * modules/unicase/u16-is-cased: New file.
11411 New module 'unicase/u8-is-cased'.
11412 * lib/unicase/u8-is-cased.c: New file.
11413 * lib/unicase/u-is-cased.h: New file.
11414 * modules/unicase/u8-is-cased: New file.
11416 Tests for module 'unicase/u32-is-casefolded'.
11417 * modules/unicase/u32-is-casefolded-tests: New file.
11418 * tests/unicase/test-u32-is-casefolded.c: New file.
11420 Tests for module 'unicase/u16-is-casefolded'.
11421 * modules/unicase/u16-is-casefolded-tests: New file.
11422 * tests/unicase/test-u16-is-casefolded.c: New file.
11424 Tests for module 'unicase/u8-is-casefolded'.
11425 * modules/unicase/u8-is-casefolded-tests: New file.
11426 * tests/unicase/test-u8-is-casefolded.c: New file.
11427 * tests/unicase/test-is-casefolded.h: New file.
11429 New module 'unicase/u32-is-casefolded'.
11430 * lib/unicase/u32-is-casefolded.c: New file.
11431 * modules/unicase/u32-is-casefolded: New file.
11433 New module 'unicase/u16-is-casefolded'.
11434 * lib/unicase/u16-is-casefolded.c: New file.
11435 * modules/unicase/u16-is-casefolded: New file.
11437 New module 'unicase/u8-is-casefolded'.
11438 * lib/unicase/u8-is-casefolded.c: New file.
11439 * modules/unicase/u8-is-casefolded: New file.
11441 Tests for module 'unicase/u32-is-titlecase'.
11442 * modules/unicase/u32-is-titlecase-tests: New file.
11443 * tests/unicase/test-u32-is-titlecase.c: New file.
11445 Tests for module 'unicase/u16-is-titlecase'.
11446 * modules/unicase/u16-is-titlecase-tests: New file.
11447 * tests/unicase/test-u16-is-titlecase.c: New file.
11449 Tests for module 'unicase/u8-is-titlecase'.
11450 * modules/unicase/u8-is-titlecase-tests: New file.
11451 * tests/unicase/test-u8-is-titlecase.c: New file.
11452 * tests/unicase/test-is-titlecase.h: New file.
11454 New module 'unicase/u32-is-titlecase'.
11455 * lib/unicase/u32-is-titlecase.c: New file.
11456 * modules/unicase/u32-is-titlecase: New file.
11458 New module 'unicase/u16-is-titlecase'.
11459 * lib/unicase/u16-is-titlecase.c: New file.
11460 * modules/unicase/u16-is-titlecase: New file.
11462 New module 'unicase/u8-is-titlecase'.
11463 * lib/unicase/u8-is-titlecase.c: New file.
11464 * modules/unicase/u8-is-titlecase: New file.
11466 Tests for module 'unicase/u32-is-lowercase'.
11467 * modules/unicase/u32-is-lowercase-tests: New file.
11468 * tests/unicase/test-u32-is-lowercase.c: New file.
11470 Tests for module 'unicase/u16-is-lowercase'.
11471 * modules/unicase/u16-is-lowercase-tests: New file.
11472 * tests/unicase/test-u16-is-lowercase.c: New file.
11474 Tests for module 'unicase/u8-is-lowercase'.
11475 * modules/unicase/u8-is-lowercase-tests: New file.
11476 * tests/unicase/test-u8-is-lowercase.c: New file.
11477 * tests/unicase/test-is-lowercase.h: New file.
11479 New module 'unicase/u32-is-lowercase'.
11480 * lib/unicase/u32-is-lowercase.c: New file.
11481 * modules/unicase/u32-is-lowercase: New file.
11483 New module 'unicase/u16-is-lowercase'.
11484 * lib/unicase/u16-is-lowercase.c: New file.
11485 * modules/unicase/u16-is-lowercase: New file.
11487 New module 'unicase/u8-is-lowercase'.
11488 * lib/unicase/u8-is-lowercase.c: New file.
11489 * modules/unicase/u8-is-lowercase: New file.
11491 Tests for module 'unicase/u32-is-uppercase'.
11492 * modules/unicase/u32-is-uppercase-tests: New file.
11493 * tests/unicase/test-u32-is-uppercase.c: New file.
11495 Tests for module 'unicase/u16-is-uppercase'.
11496 * modules/unicase/u16-is-uppercase-tests: New file.
11497 * tests/unicase/test-u16-is-uppercase.c: New file.
11499 Tests for module 'unicase/u8-is-uppercase'.
11500 * modules/unicase/u8-is-uppercase-tests: New file.
11501 * tests/unicase/test-u8-is-uppercase.c: New file.
11502 * tests/unicase/test-is-uppercase.h: New file.
11504 New module 'unicase/u32-is-uppercase'.
11505 * lib/unicase/u32-is-uppercase.c: New file.
11506 * modules/unicase/u32-is-uppercase: New file.
11508 New module 'unicase/u16-is-uppercase'.
11509 * lib/unicase/u16-is-uppercase.c: New file.
11510 * modules/unicase/u16-is-uppercase: New file.
11512 New module 'unicase/u8-is-uppercase'.
11513 * lib/unicase/u8-is-uppercase.c: New file.
11514 * modules/unicase/u8-is-uppercase: New file.
11516 New module 'unicase/u32-is-invariant'.
11517 * lib/unicase/u32-is-invariant.c: New file.
11518 * modules/unicase/u32-is-invariant: New file.
11520 New module 'unicase/u16-is-invariant'.
11521 * lib/unicase/u16-is-invariant.c: New file.
11522 * modules/unicase/u16-is-invariant: New file.
11524 New module 'unicase/u8-is-invariant'.
11525 * lib/unicase/u8-is-invariant.c: New file.
11526 * lib/unicase/invariant.h: New file.
11527 * lib/unicase/u-is-invariant.h: New file.
11528 * modules/unicase/u8-is-invariant: New file.
11530 Tests for module 'unicase/u32-casecoll'.
11531 * modules/unicase/u32-casecoll-tests: New file.
11532 * tests/unicase/test-u32-casecoll.c: New file.
11534 Tests for module 'unicase/u16-casecoll'.
11535 * modules/unicase/u16-casecoll-tests: New file.
11536 * tests/unicase/test-u16-casecoll.c: New file.
11538 Tests for module 'unicase/u8-casecoll'.
11539 * modules/unicase/u8-casecoll-tests: New file.
11540 * tests/unicase/test-u8-casecoll.c: New file.
11542 New module 'unicase/u32-casecoll'.
11543 * lib/unicase/u32-casecoll.c: New file.
11544 * modules/unicase/u32-casecoll: New file.
11546 New module 'unicase/u16-casecoll'.
11547 * lib/unicase/u16-casecoll.c: New file.
11548 * modules/unicase/u16-casecoll: New file.
11550 New module 'unicase/u8-casecoll'.
11551 * lib/unicase/u8-casecoll.c: New file.
11552 * lib/unicase/u-casecoll.h: New file.
11553 * modules/unicase/u8-casecoll: New file.
11555 New module 'unicase/u32-casexfrm'.
11556 * lib/unicase/u32-casexfrm.c: New file.
11557 * modules/unicase/u32-casexfrm: New file.
11559 New module 'unicase/u16-casexfrm'.
11560 * lib/unicase/u16-casexfrm.c: New file.
11561 * modules/unicase/u16-casexfrm: New file.
11563 New module 'unicase/u8-casexfrm'.
11564 * lib/unicase/u8-casexfrm.c: New file.
11565 * lib/unicase/u-casexfrm.h: New file.
11566 * modules/unicase/u8-casexfrm: New file.
11568 Tests for module 'unicase/u32-casecmp'.
11569 * modules/unicase/u32-casecmp-tests: New file.
11570 * tests/unicase/test-u32-casecmp.c: New file.
11572 Tests for module 'unicase/u16-casecmp'.
11573 * modules/unicase/u16-casecmp-tests: New file.
11574 * tests/unicase/test-u16-casecmp.c: New file.
11576 Tests for module 'unicase/u8-casecmp'.
11577 * modules/unicase/u8-casecmp-tests: New file.
11578 * tests/unicase/test-u8-casecmp.c: New file.
11579 * tests/unicase/test-casecmp.h: New file.
11581 New module 'unicase/u32-casecmp'.
11582 * lib/unicase/u32-casecmp.c: New file.
11583 * modules/unicase/u32-casecmp: New file.
11585 New module 'unicase/u16-casecmp'.
11586 * lib/unicase/u16-casecmp.c: New file.
11587 * modules/unicase/u16-casecmp: New file.
11589 New module 'unicase/u8-casecmp'.
11590 * lib/unicase/u8-casecmp.c: New file.
11591 * lib/unicase/u-casecmp.h: New file.
11592 * modules/unicase/u8-casecmp: New file.
11594 Tests for module 'unicase/u32-casefold'.
11595 * modules/unicase/u32-casefold-tests: New file.
11596 * tests/unicase/test-u32-casefold.c: New file.
11598 Tests for module 'unicase/u16-casefold'.
11599 * modules/unicase/u16-casefold-tests: New file.
11600 * tests/unicase/test-u16-casefold.c: New file.
11602 Tests for module 'unicase/u8-casefold'.
11603 * modules/unicase/u8-casefold-tests: New file.
11604 * tests/unicase/test-u8-casefold.c: New file.
11606 New module 'unicase/u32-casefold'.
11607 * lib/unicase/u32-casefold.c: New file.
11608 * modules/unicase/u32-casefold: New file.
11610 New module 'unicase/u16-casefold'.
11611 * lib/unicase/u16-casefold.c: New file.
11612 * modules/unicase/u16-casefold: New file.
11614 New module 'unicase/u8-casefold'.
11615 * lib/unicase/u8-casefold.c: New file.
11616 * lib/unicase/u-casefold.h: New file.
11617 * modules/unicase/u8-casefold: New file.
11619 New module 'unicase/tocasefold'.
11620 * lib/unicase/casefold.h: New file.
11621 * lib/unicase/tocasefold.c: New file.
11622 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
11623 * modules/unicase/tocasefold: New file.
11625 Tests for module 'unicase/u32-totitle'.
11626 * modules/unicase/u32-totitle-tests: New file.
11627 * tests/unicase/test-u32-totitle.c: New file.
11629 Tests for module 'unicase/u16-totitle'.
11630 * modules/unicase/u16-totitle-tests: New file.
11631 * tests/unicase/test-u16-totitle.c: New file.
11633 Tests for module 'unicase/u8-totitle'.
11634 * modules/unicase/u8-totitle-tests: New file.
11635 * tests/unicase/test-u8-totitle.c: New file.
11637 New module 'unicase/u32-totitle'.
11638 * lib/unicase/u32-totitle.c: New file.
11639 * modules/unicase/u32-totitle: New file.
11641 New module 'unicase/u16-totitle'.
11642 * lib/unicase/u16-totitle.c: New file.
11643 * modules/unicase/u16-totitle: New file.
11645 New module 'unicase/u8-totitle'.
11646 * lib/unicase/u8-totitle.c: New file.
11647 * lib/unicase/u-totitle.h: New file.
11648 * modules/unicase/u8-totitle: New file.
11650 Tests for module 'unicase/u32-tolower'.
11651 * modules/unicase/u32-tolower-tests: New file.
11652 * tests/unicase/test-u32-tolower.c: New file.
11654 Tests for module 'unicase/u16-tolower'.
11655 * modules/unicase/u16-tolower-tests: New file.
11656 * tests/unicase/test-u16-tolower.c: New file.
11658 Tests for module 'unicase/u8-tolower'.
11659 * modules/unicase/u8-tolower-tests: New file.
11660 * tests/unicase/test-u8-tolower.c: New file.
11662 New module 'unicase/u32-tolower'.
11663 * lib/unicase/u32-tolower.c: New file.
11664 * modules/unicase/u32-tolower: New file.
11666 New module 'unicase/u16-tolower'.
11667 * lib/unicase/u16-tolower.c: New file.
11668 * modules/unicase/u16-tolower: New file.
11670 New module 'unicase/u8-tolower'.
11671 * lib/unicase/u8-tolower.c: New file.
11672 * modules/unicase/u8-tolower: New file.
11674 Tests for module 'unicase/u32-toupper'.
11675 * modules/unicase/u32-toupper-tests: New file.
11676 * tests/unicase/test-u32-toupper.c: New file.
11678 Tests for module 'unicase/u16-toupper'.
11679 * modules/unicase/u16-toupper-tests: New file.
11680 * tests/unicase/test-u16-toupper.c: New file.
11682 Tests for module 'unicase/u8-toupper'.
11683 * modules/unicase/u8-toupper-tests: New file.
11684 * tests/unicase/test-u8-toupper.c: New file.
11686 New module 'unicase/u32-toupper'.
11687 * lib/unicase/u32-toupper.c: New file.
11688 * modules/unicase/u32-toupper: New file.
11690 New module 'unicase/u16-toupper'.
11691 * lib/unicase/u16-toupper.c: New file.
11692 * modules/unicase/u16-toupper: New file.
11694 New module 'unicase/u8-toupper'.
11695 * lib/unicase/u8-toupper.c: New file.
11696 * modules/unicase/u8-toupper: New file.
11698 New module 'unicase/u32-casemap'.
11699 * lib/unicase/u32-casemap.c: New file.
11700 * modules/unicase/u32-casemap: New file.
11702 New module 'unicase/u16-casemap'.
11703 * lib/unicase/u16-casemap.c: New file.
11704 * modules/unicase/u16-casemap: New file.
11706 New module 'unicase/u8-casemap'.
11707 * lib/unicase/unicasemap.h: New file.
11708 * lib/unicase/u8-casemap.c: New file.
11709 * lib/unicase/u-casemap.h: New file.
11710 * modules/unicase/u8-casemap: New file.
11712 New module 'unicase/special-casing'.
11713 * lib/unicase/special-casing.h: New file.
11714 * lib/unicase/special-casing.c: New file.
11715 * lib/unicase/special-casing-table.gperf: New file, generated by
11717 * modules/unicase/special-casing: New file.
11719 Tests for module 'unicase/locale-language'.
11720 * modules/unicase/locale-language-tests: New file.
11721 * tests/unicase/test-locale-language.sh: New file.
11722 * tests/unicase/test-locale-language.c: New file.
11724 New module 'unicase/locale-language'.
11725 * lib/unicase/locale-language.c: New file.
11726 * lib/unicase/locale-languages.gperf: New file.
11727 * modules/unicase/locale-language: New file.
11729 Generate more tables for case conversion and case folding.
11730 * lib/gen-uni-tables.c (SCC_*): New enum items.
11731 (struct special_casing_rule): New type.
11732 (casing_rules, num_casing_rules, allocated_casing_rules): New
11734 (add_casing_rule, fill_casing_rules): New functions.
11735 (struct casefold_rule): New type.
11736 (casefolding_rules, num_casefolding_rules,
11737 allocated_casefolding_rules): New variables.
11738 (fill_casefolding_rules): New function.
11739 (unicode_casefold): New variable.
11740 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
11741 sort_casing_rules, output_casing_rules): New functions.
11742 (main): Accept to more arguments: SpecialCasing.txt and
11743 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
11744 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
11745 Output mapping for casefolding.
11747 * lib/unicase.h: Include stdbool.h, uninorm.h.
11748 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
11749 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
11750 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
11752 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
11754 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
11755 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
11757 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
11758 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
11759 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
11760 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
11762 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
11764 2009-03-08 Bruno Haible <bruno@clisp.org>
11766 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11767 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
11768 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
11769 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11771 2009-03-07 Bruno Haible <bruno@clisp.org>
11773 Adjust u*_normcmp, u*_normcoll API.
11774 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11775 u16_normcoll, u32_normcoll): Change failure conventions.
11776 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
11777 errno and return -1.
11778 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11780 2009-03-07 Bruno Haible <bruno@clisp.org>
11782 Tests for module 'uninorm/u32-normcoll'.
11783 * modules/uninorm/u32-normcoll-tests: New file.
11784 * tests/uninorm/test-u32-normcoll.c: New file.
11786 Tests for module 'uninorm/u16-normcoll'.
11787 * modules/uninorm/u16-normcoll-tests: New file.
11788 * tests/uninorm/test-u16-normcoll.c: New file.
11790 Tests for module 'uninorm/u8-normcoll'.
11791 * modules/uninorm/u8-normcoll-tests: New file.
11792 * tests/uninorm/test-u8-normcoll.c: New file.
11794 2009-03-07 Bruno Haible <bruno@clisp.org>
11796 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
11797 tests/uninorm/test-u32-normcmp.c.
11798 * tests/uninorm/test-u32-normcmp.c: Include it.
11799 (test_nonascii): New function, extracted from main. Add some more
11801 (main): Invoke test_ascii and test_nonascii.
11802 * modules/uninorm/u32-normcmp-tests (Files): Add
11803 tests/uninorm/test-u32-normcmp.h.
11804 (Depends-on): Remove uninorm/u32-normcmp.
11806 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
11807 tests/uninorm/test-u16-normcmp.c.
11808 * tests/uninorm/test-u16-normcmp.c: Include it.
11809 (test_nonascii): New function, extracted from main. Add some more
11811 (main): Invoke test_ascii and test_nonascii.
11812 * modules/uninorm/u16-normcmp-tests (Files): Add
11813 tests/uninorm/test-u16-normcmp.h.
11814 (Depends-on): Remove uninorm/u16-normcmp.
11816 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
11817 tests/uninorm/test-u8-normcmp.c.
11818 * tests/uninorm/test-u8-normcmp.c: Include it.
11819 (test_nonascii): New function, extracted from main. Add some more
11821 (main): Invoke test_ascii and test_nonascii.
11822 * modules/uninorm/u8-normcmp-tests (Files): Add
11823 tests/uninorm/test-u8-normcmp.h.
11824 (Depends-on): Remove uninorm/u8-normcmp.
11826 2009-03-07 Bruno Haible <bruno@clisp.org>
11828 New module 'uninorm/u32-normcoll'.
11829 * lib/uninorm/u32-normcoll.c: New file.
11830 * modules/uninorm/u32-normcoll: New file.
11832 New module 'uninorm/u16-normcoll'.
11833 * lib/uninorm/u16-normcoll.c: New file.
11834 * modules/uninorm/u16-normcoll: New file.
11836 New module 'uninorm/u8-normcoll'.
11837 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
11839 * lib/uninorm/u8-normcoll.c: New file.
11840 * lib/uninorm/u-normcoll.h: New file.
11841 * modules/uninorm/u8-normcoll: New file.
11843 New module 'uninorm/u32-normxfrm'.
11844 * lib/uninorm/u32-normxfrm.c: New file.
11845 * modules/uninorm/u32-normxfrm: New file.
11847 New module 'uninorm/u16-normxfrm'.
11848 * lib/uninorm/u16-normxfrm.c: New file.
11849 * modules/uninorm/u16-normxfrm: New file.
11851 New module 'uninorm/u8-normxfrm'.
11852 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
11854 * lib/uninorm/u8-normxfrm.c: New file.
11855 * lib/uninorm/u-normxfrm.h: New file.
11856 * modules/uninorm/u8-normxfrm: New file.
11858 2009-03-07 Bruno Haible <bruno@clisp.org>
11860 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
11861 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
11862 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
11864 2009-03-07 Bruno Haible <bruno@clisp.org>
11866 New module 'memxfrm'.
11867 * lib/memxfrm.h: New file.
11868 * lib/memxfrm.c: New file.
11869 * modules/memxfrm: New file.
11871 2009-03-07 Bruno Haible <bruno@clisp.org>
11873 New module 'memcmp2'.
11874 * lib/memcmp2.h: New file.
11875 * lib/memcmp2.c: New file.
11876 * modules/memcmp2: New file.
11878 2009-03-07 Bruno Haible <bruno@clisp.org>
11880 Tests for module 'uninorm/decomposing-form'.
11881 * modules/uninorm/decomposing-form-tests: New file.
11882 * tests/uninorm/test-decomposing-form.c: New file.
11884 New module 'uninorm/decomposing-form'.
11885 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
11886 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
11887 Add 'decomposing_variant' field.
11888 * lib/uninorm/decomposing-form.c: New file.
11889 * lib/uninorm/nfc.c (uninorm_nfc): Update.
11890 * lib/uninorm/nfd.c (uninorm_nfd): Update.
11891 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
11892 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
11893 * modules/uninorm/decomposing-form: New file.
11894 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
11895 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
11897 2009-03-07 Bruno Haible <bruno@clisp.org>
11899 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
11902 2009-03-06 Bruno Haible <bruno@clisp.org>
11904 Tests for module 'uninorm/u32-normcmp'.
11905 * tests/uninorm/test-u32-normcmp.c: New file.
11906 * modules/uninorm/u32-normcmp-tests: New file.
11908 Tests for module 'uninorm/u16-normcmp'.
11909 * tests/uninorm/test-u16-normcmp.c: New file.
11910 * modules/uninorm/u16-normcmp-tests: New file.
11912 Tests for module 'uninorm/u8-normcmp'.
11913 * tests/uninorm/test-u8-normcmp.c: New file.
11914 * modules/uninorm/u8-normcmp-tests: New file.
11916 New module 'uninorm/u32-normcmp'.
11917 * lib/uninorm/u32-normcmp.c: New file.
11918 * modules/uninorm/u32-normcmp: New file.
11920 New module 'uninorm/u16-normcmp'.
11921 * lib/uninorm/u16-normcmp.c: New file.
11922 * modules/uninorm/u16-normcmp: New file.
11924 New module 'uninorm/u8-normcmp'.
11925 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
11927 * lib/uninorm/u8-normcmp.c: New file.
11928 * lib/uninorm/u-normcmp.h: New file.
11929 * modules/uninorm/u8-normcmp: New file.
11931 2009-03-06 Bruno Haible <bruno@clisp.org>
11933 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
11934 Reported by Eric Blake.
11936 2009-03-06 Eric Blake <ebb9@byu.net>
11937 Bruno Haible <bruno@clisp.org>
11939 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
11940 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
11942 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
11943 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
11945 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
11947 2009-03-06 Eric Blake <ebb9@byu.net>
11949 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
11950 to avoid compiler warnings.
11951 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
11953 2009-03-05 Bruno Haible <bruno@clisp.org>
11955 * tests/test-ftell.c (main): Disable test beyond end of file on
11957 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
11959 2009-03-05 Kamil Dudka <kdudka@redhat.com>
11961 * lib/filevercmp.c: Move hidden files up in ordering.
11962 * tests/test-filevercmp.c: Add tests for hidden files.
11964 2009-03-04 Bruno Haible <bruno@clisp.org>
11966 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
11967 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
11969 Reported by Simon Josefsson.
11971 2009-03-03 Bruno Haible <bruno@clisp.org>
11973 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
11974 Reported by Simon Josefsson.
11976 * doc/ld-version-script.texi: Update node reference.
11978 2009-03-03 Bruno Haible <bruno@clisp.org>
11980 * modules/visibility (License): Change to 'unlimited'.
11981 Suggested by Simon Josefsson.
11983 2009-03-03 Jim Meyering <meyering@redhat.com>
11985 unlinkdir: cannot_unlink_dir may modify process state
11986 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
11987 it's neither thread-safe nor appropriate for use in a library.
11989 2009-03-03 Eric Blake <ebb9@byu.net>
11991 test-closein: silence test under Darwin
11992 * tests/test-closein.sh: Ignore stderr from cat, since we don't
11993 care if it dies from EPIPE or EBADF.
11995 2009-03-03 Bruno Haible <bruno@clisp.org>
11997 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
11999 * doc/visibility.texi: Fix @node and @section.
12001 2009-03-03 Simon Josefsson <simon@josefsson.org>
12003 * doc/gnulib.texi: Link to sections for ld version script and
12005 * doc/visibility.texi: Add @node and @section.
12006 * modules/ld-version-script: New module.
12007 * m4/ld-version-script.m4: New file.
12008 * doc/ld-version-script.texi: New file.
12010 2009-03-02 David Lutterkort <lutter@redhat.com>
12012 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
12013 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12015 2009-03-02 Bruno Haible <bruno@clisp.org>
12017 * doc/visibility.texi: Mention libtool's -export-symbols option.
12019 2009-03-02 Jim Meyering <meyering@redhat.com>
12021 announce-gen: new option: --no-print-checksums
12022 * build-aux/announce-gen (usage): Describe it.
12023 (print_checksums): Print a newline here, not in the [*] footnote.
12026 2009-03-01 Bruno Haible <bruno@clisp.org>
12028 Use socklen_t in the native Windows replacements prototypes.
12029 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
12031 * lib/getsockopt.c (rpl_getsockopt): Likewise.
12032 * lib/setsockopt.c (rpl_setsockopt): Likewise.
12033 * modules/getsockopt (Depends-on): Add socklen.
12034 * modules/setsockopt (Depends-on): Add socklen.
12036 2009-03-01 Bruno Haible <bruno@clisp.org>
12038 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
12041 2009-03-01 Eric Blake <ebb9@byu.net>
12042 Bruno Haible <bruno@clisp.org>
12044 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
12046 * lib/wait-process.c (wait_subprocess): Omit error message about
12047 deadly signal sent to the child of termsigp != NULL.
12049 2009-03-01 Eric Blake <ebb9@byu.net>
12051 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
12053 2009-03-01 Bruno Haible <bruno@clisp.org>
12055 Avoid a gcc warning.
12056 * tests/test-sched.c (b): Make global.
12057 Reported by Eric Blake.
12059 2009-01-19 Martin Lambers <marlam@marlam.de>
12061 Provide POSIX semantics for socket timeout options on W32.
12062 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
12063 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
12064 * modules/setsockopt: Depend on sys_time module for struct timeval.
12065 * modules/getsockopt: Depend on sys_time module for struct timeval.
12067 2009-03-01 Simon Josefsson <simon@josefsson.org>
12069 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
12070 __USE_GNU, for consistency with netdb.in.h.
12071 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12073 2009-03-01 Bruno Haible <bruno@clisp.org>
12075 More support for FreeMiNT.
12076 * lib/fseeko.c (rpl_fseeko): Complete last commit.
12077 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12079 2009-03-01 Bruno Haible <bruno@clisp.org>
12081 More support for FreeMiNT.
12082 * lib/fpurge.c (fpurge): Correct last commit.
12083 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12085 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12087 Fix unportable awk script in vc-list-files.
12088 * build-aux/vc-list-files: In the replacement awk script, use
12089 substr with a second argument of 1, not zero.
12090 Report by Simon Josefsson.
12092 2009-02-28 Bruno Haible <bruno@clisp.org>
12094 More support for FreeMiNT.
12095 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
12097 * lib/fwriting.c (fwriting): Likewise.
12098 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
12100 2009-02-28 Bruno Haible <bruno@clisp.org>
12102 * tests/test-freadseek.c (main): Disable test beyond end of file on
12104 * tests/test-ftello.c (main): Likewise.
12105 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12107 2009-02-28 Bruno Haible <bruno@clisp.org>
12109 Add tentative support for FreeMiNT.
12110 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
12111 * lib/fpurge.c (fpurge): Likewise.
12112 * lib/freadable.c (freadable): Likewise.
12113 * lib/freading.c (freading): Likewise.
12114 * lib/freadptr.c (freadptr): Likewise.
12115 * lib/freadseek.c (freadptrinc): Likewise.
12116 * lib/fseeko.c (rpl_fseeko): Likewise.
12117 * lib/fseterr.c (fseterr): Likewise.
12118 * lib/fwritable.c (fwritable): Likewise.
12119 * lib/fwriting.c (fwriting): Likewise.
12120 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
12122 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12124 2009-02-28 Bruno Haible <bruno@clisp.org>
12126 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
12128 Reported by Jim Meyering.
12130 2009-02-28 Bruno Haible <bruno@clisp.org>
12132 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
12133 Mention the results of these tests on various platforms.
12134 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
12136 * doc/posix-functions/printf.texi: Likewise.
12137 * doc/posix-functions/snprintf.texi: Likewise.
12138 * doc/posix-functions/sprintf.texi: Likewise.
12139 * doc/posix-functions/vfprintf.texi: Likewise.
12140 * doc/posix-functions/vprintf.texi: Likewise.
12141 * doc/posix-functions/vsnprintf.texi: Likewise.
12142 * doc/posix-functions/vsprintf.texi: Likewise.
12143 * doc/glibc-functions/obstack_printf.texi: Likewise.
12144 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12146 2009-02-28 Bruno Haible <bruno@clisp.org>
12148 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
12149 Reported by Loïc Minier <lool@dooz.org>.
12151 2009-02-27 Bruno Haible <bruno@clisp.org>
12153 * gnulib-tool (func_import): Make the sed expression used to create the
12154 sed script for updating the .gitignore file POSIX compliant.
12155 Reported by Eric Blake.
12157 2009-02-27 Bruno Haible <bruno@clisp.org>
12159 * gnulib-tool (sed): Don't alias as "sed --posix".
12160 Reported by Eric Blake.
12162 2009-02-27 Bruno Haible <bruno@clisp.org>
12164 Avoid test link errors.
12165 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
12166 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
12167 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
12168 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
12169 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12171 2009-02-27 Bruno Haible <bruno@clisp.org>
12173 Avoid spurious "(cached)" in configure output.
12174 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
12175 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
12176 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12177 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12178 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12179 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12180 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12181 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12182 Reported by Eric Blake.
12184 2009-02-27 Eric Blake <ebb9@byu.net>
12186 printf: fix regression in previous patch
12187 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
12189 2009-02-27 Bruno Haible <bruno@clisp.org>
12191 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
12193 * lib/stdint.in.h: Likewise.
12194 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
12196 2009-02-27 Eric Blake <ebb9@byu.net>
12198 doc: mention more functions added in cygwin 1.7.0
12199 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
12201 * doc/posix-functions/open_wmemstream.texi: Likewise.
12202 * doc/posix-functions/wcsnlen.texi: Likewise.
12203 * doc/posix-functions/wcsnrtombs.texi: Likewise.
12204 * doc/posix-functions/wcstod.texi: Likewise.
12205 * doc/posix-functions/wcstof.texi: Likewise.
12206 * doc/posix-functions/wcstoimax.texi: Likewise.
12207 * doc/posix-functions/wcstok.texi: Likewise.
12208 * doc/posix-functions/wcstoumax.texi: Likewise.
12210 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
12211 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
12212 * doc/posix-functions/fprintf.texi: Update.
12213 * doc/posix-functions/printf.texi: Update.
12214 * doc/posix-functions/snprintf.texi: Update.
12215 * doc/posix-functions/sprintf.texi: Update.
12216 * doc/posix-functions/vfprintf.texi: Update.
12217 * doc/posix-functions/vprintf.texi: Update.
12218 * doc/posix-functions/vsnprintf.texi: Update.
12219 * doc/posix-functions/vsprintf.texi: Update.
12220 * doc/glibc-functions/obstack_printf.texi: Update.
12221 * doc/glibc-functions/obstack_vprintf.texi: Update.
12223 2009-02-26 Eric Blake <ebb9@byu.net>
12225 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
12226 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
12227 compilation bug by using runtime conversion.
12228 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12229 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
12230 * modules/ceill-tests (Files): Use nan.h.
12231 * modules/floorl-tests (Files): Likewise.
12232 * modules/frexpl-tests (Files): Likewise.
12233 * modules/isnanl-tests (Files): Likewise.
12234 * modules/ldexpl-tests (Files): Likewise.
12235 * modules/roundl-tests (Files): Likewise.
12236 * modules/truncl-tests (Files): Likewise.
12237 * tests/test-ceill.c (main): Use a working NaN.
12238 * tests/test-floorl.c (main): Likewise.
12239 * tests/test-frexpl.c (main): Likewise.
12240 * tests/test-isnan.c (test_long_double): Likewise.
12241 * tests/test-isnanl.h (main): Likewise.
12242 * tests/test-ldexpl.h (main): Likewise.
12243 * tests/test-roundl.h (main): Likewise.
12244 * tests/test-truncl.h (main): Likewise.
12245 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
12247 2009-02-26 Eric Blake <ebb9@byu.net>
12248 Bruno Haible <bruno@clisp.org>
12250 Work around a *printf bug with %ls on Solaris.
12251 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
12252 precision is specified, sprintf stops converting the wide string
12253 argument when the number of bytes that have been produced by this
12254 conversion equals or exceeds the precision.
12255 * doc/posix-functions/fprintf.texi: Update.
12256 * doc/posix-functions/printf.texi: Update.
12257 * doc/posix-functions/snprintf.texi: Update.
12258 * doc/posix-functions/sprintf.texi: Update.
12259 * doc/posix-functions/vfprintf.texi: Update.
12260 * doc/posix-functions/vprintf.texi: Update.
12261 * doc/posix-functions/vsnprintf.texi: Update.
12262 * doc/posix-functions/vsprintf.texi: Update.
12263 * doc/glibc-functions/obstack_printf.texi: Update.
12264 * doc/glibc-functions/obstack_vprintf.texi: Update.
12266 2009-02-26 Eric Blake <ebb9@byu.net>
12268 stdlib: favor compiler check of random.h
12269 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
12270 to avoid an ObjC random.h installed by Swarm.
12272 2009-02-26 Bruno Haible <bruno@clisp.org>
12274 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
12275 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
12276 Reported by Gary V. Vaughan <gary@gnu.org>.
12278 2009-02-26 Bruno Haible <bruno@clisp.org>
12280 Fix *printf behaviour regarding the %ls directive.
12281 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
12282 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
12283 NEED_PRINTF_DIRECTIVE_LS.
12284 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
12285 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12286 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12287 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
12288 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
12289 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
12290 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
12291 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12292 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12293 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12294 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12295 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
12296 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12297 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12298 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12299 * doc/posix-functions/fprintf.texi: Update.
12300 * doc/posix-functions/printf.texi: Update.
12301 * doc/posix-functions/snprintf.texi: Update.
12302 * doc/posix-functions/sprintf.texi: Update.
12303 * doc/posix-functions/vfprintf.texi: Update.
12304 * doc/posix-functions/vprintf.texi: Update.
12305 * doc/posix-functions/vsnprintf.texi: Update.
12306 * doc/posix-functions/vsprintf.texi: Update.
12307 * doc/glibc-functions/obstack_printf.texi: Update.
12308 * doc/glibc-functions/obstack_vprintf.texi: Update.
12309 Reported by Eric Blake.
12311 2009-02-25 Bruno Haible <bruno@clisp.org>
12313 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
12315 Reported by Gary V. Vaughan <gary@gnu.org>.
12317 2009-02-25 Bruno Haible <bruno@clisp.org>
12319 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
12320 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
12321 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
12322 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
12323 Reported by Gary V. Vaughan <gary@gnu.org>.
12325 2009-02-25 Bruno Haible <bruno@clisp.org>
12327 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
12328 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
12329 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
12330 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
12331 Reported by Gary V. Vaughan <gary@gnu.org>.
12333 2009-02-25 Eric Blake <ebb9@byu.net>
12335 tests: skip fseek/ftell tests if ungetc is broken
12336 * m4/ungetc.m4: New file.
12337 * modules/fseek-tests: Split test, so ungetc dependency is
12338 separate from rest of test.
12339 * modules/fseeko-tests: Likewise.
12340 * modules/ftell-tests: Likewise.
12341 * modules/ftello-tests: Likewise.
12342 * tests/test-fseek.c (main): Isolate ungetc dependency.
12343 * tests/test-fseeko.c (main): Likewise.
12344 * tests/test-ftell.c (main): Likewise.
12345 * tests/test-ftello.c (main): Likewise.
12346 * tests/test-fseek2.sh: New file.
12347 * tests/test-fseeko2.sh: Likewise.
12348 * tests/test-ftell2.sh: Likewise.
12349 * tests/test-ftello2.sh: Likewise.
12351 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
12353 test-getaddrinfo: fix usage of skip return code 77
12354 * tests/test-gettaddrinfo.c: Return skip code 77 only
12355 for first occurance of skip (4x77 is not 77)
12357 2009-02-25 Gary V. Vaughan <gary@gnu.org>
12359 strtod: avoid C99 decl-after-statement
12360 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
12362 2009-02-24 Eric Blake <ebb9@byu.net>
12364 strtod: detect HP-UX 11.31 bug
12365 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
12366 Reported by Gary V. Vaughan.
12368 2009-02-23 Bruno Haible <bruno@clisp.org>
12370 Fix invalid read past end of memory block.
12371 * lib/vasnprintf.c (DCHAR_SET): Define.
12372 (local_wcslen): Define only when needed.
12373 (local_strnlen, local_wcsnlen): New functions.
12374 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
12375 directives that involve a conversion ourselves.
12376 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
12377 wcsnlen, mbrtowc, wcrtomb.
12378 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
12379 * tests/test-vasprintf-posix.c (test_function): Likewise.
12380 * tests/test-snprintf-posix.h (test_function): Likewise.
12381 * tests/test-sprintf-posix.h (test_function): Likewise.
12382 Reported by Ben Pfaff <blp@cs.stanford.edu>.
12384 2009-02-22 Bruno Haible <bruno@clisp.org>
12386 Implement new clarified decomposition of Hangul syllables.
12387 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
12388 of type LTV, return only a pairwise decomposition.
12389 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
12391 * tests/uninorm/test-decomposition.c (main): Updated expected result.
12392 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
12393 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
12395 2009-02-22 Bruno Haible <bruno@clisp.org>
12397 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
12398 zero-length results and shrink excess allocated memory.
12399 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
12400 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
12401 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
12402 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
12403 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
12404 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
12405 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
12406 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
12407 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
12408 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
12409 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
12410 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
12412 2009-02-21 Bruno Haible <bruno@clisp.org>
12414 * doc/gnulib.texi: Include safe-alloc.texi earlier.
12415 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
12416 spaces after a period. Put a space between a macro name and its
12417 argument list. Trivial rewordings.
12418 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
12419 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
12420 (main): Return 0 explicitly.
12422 2009-02-21 Bruno Haible <bruno@clisp.org>
12424 Tests for module 'uninorm/filter'.
12425 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
12426 * modules/uninorm/filter-tests: New file.
12428 New module 'uninorm/filter'.
12429 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
12430 uninorm_filter_flush, uninorm_filter_free): New declarations.
12431 * lib/uninorm/uninorm-filter.c: New file.
12432 * modules/uninorm/filter: New file.
12434 2009-02-21 Bruno Haible <bruno@clisp.org>
12436 Tests for module 'uninorm/nfkc'.
12437 * tests/uninorm/test-nfkc.c: New file.
12438 * tests/uninorm/test-u8-nfkc.c: New file.
12439 * tests/uninorm/test-u16-nfkc.c: New file.
12440 * tests/uninorm/test-u32-nfkc.c: New file.
12441 * tests/uninorm/test-u32-nfkc-big.sh: New file.
12442 * tests/uninorm/test-u32-nfkc-big.c: New file.
12443 * modules/uninorm/nfkc-tests: New file.
12445 New module 'uninorm/nfkc'.
12446 * lib/uninorm/nfkc.c: New file.
12447 * modules/uninorm/nfkc: New file.
12449 Tests for module 'uninorm/nfkd'.
12450 * tests/uninorm/test-nfkd.c: New file.
12451 * tests/uninorm/test-u8-nfkd.c: New file.
12452 * tests/uninorm/test-u16-nfkd.c: New file.
12453 * tests/uninorm/test-u32-nfkd.c: New file.
12454 * tests/uninorm/test-u32-nfkd-big.sh: New file.
12455 * tests/uninorm/test-u32-nfkd-big.c: New file.
12456 * modules/uninorm/nfkd-tests: New file.
12458 New module 'uninorm/nfkd'.
12459 * lib/uninorm/nfkd.c: New file.
12460 * modules/uninorm/nfkd: New file.
12462 Tests for module 'uninorm/nfc'.
12463 * tests/uninorm/test-nfc.c: New file.
12464 * tests/uninorm/test-u8-nfc.c: New file.
12465 * tests/uninorm/test-u16-nfc.c: New file.
12466 * tests/uninorm/test-u32-nfc.c: New file.
12467 * tests/uninorm/test-u32-nfc-big.sh: New file.
12468 * tests/uninorm/test-u32-nfc-big.c: New file.
12469 * modules/uninorm/nfc-tests: New file.
12471 New module 'uninorm/nfc'.
12472 * lib/uninorm/nfc.c: New file.
12473 * modules/uninorm/nfc: New file.
12475 Tests for module 'uninorm/nfd'.
12476 * tests/uninorm/test-nfd.c: New file.
12477 * tests/uninorm/test-u8-nfd.c: New file.
12478 * tests/uninorm/test-u16-nfd.c: New file.
12479 * tests/uninorm/test-u32-nfd.c: New file.
12480 * tests/uninorm/test-u32-nfd-big.sh: New file.
12481 * tests/uninorm/test-u32-nfd-big.c: New file.
12482 * tests/uninorm/test-u32-normalize-big.h: New file.
12483 * tests/uninorm/test-u32-normalize-big.c: New file.
12484 * tests/uninorm/NormalizationTest.txt: New file, created from
12485 Unicode 5.1.0 NormalizationTest.txt.
12486 * modules/uninorm/nfd-tests: New file.
12488 New module 'uninorm/nfd'.
12489 * lib/uninorm/nfd.c: New file.
12490 * modules/uninorm/nfd: New file.
12492 New module 'uninorm/u32-normalize'.
12493 * lib/uninorm/u32-normalize.c: New file.
12494 * modules/uninorm/u32-normalize: New file.
12496 New module 'uninorm/u16-normalize'.
12497 * lib/uninorm/u16-normalize.c: New file.
12498 * modules/uninorm/u16-normalize: New file.
12500 New module 'uninorm/u8-normalize'.
12501 * lib/uninorm/u8-normalize.c: New file.
12502 * lib/uninorm/normalize-internal.h: New file.
12503 * lib/uninorm/u-normalize-internal.h: New file.
12504 * modules/uninorm/u8-normalize: New file.
12506 New module 'uninorm/decompose-internal'.
12507 * lib/uninorm/decompose-internal.c: New file.
12508 * modules/uninorm/decompose-internal: New file.
12510 Tests for module 'uninorm/composition'.
12511 * tests/uninorm/test-composition.c: New file.
12512 * modules/uninorm/composition-tests: New file.
12514 New module 'uninorm/composition'.
12515 * lib/uninorm/composition.c: New file.
12516 * lib/uninorm/composition-table.gperf: New file, generated by
12518 * modules/uninorm/composition: New file.
12520 Tests for module 'uninorm/compat-decomposition'.
12521 * tests/uninorm/test-compat-decomposition.c: New file.
12522 * modules/uninorm/compat-decomposition-tests: New file.
12524 New module 'uninorm/compat-decomposition'.
12525 * lib/uninorm/decompose-internal.h: New file.
12526 * lib/uninorm/compat-decomposition.c: New file.
12527 * modules/uninorm/compat-decomposition: New file.
12529 Tests for module 'uninorm/canonical-decomposition'.
12530 * tests/uninorm/test-canonical-decomposition.c: New file.
12531 * modules/uninorm/canonical-decomposition-tests: New file.
12533 New module 'uninorm/canonical-decomposition'.
12534 * lib/uninorm/canonical-decomposition.c: New file.
12535 * modules/uninorm/canonical-decomposition: New file.
12537 Tests for module 'uninorm/decomposition'.
12538 * tests/uninorm/test-decomposition.c: New file.
12539 * modules/uninorm/decomposition-tests: New file.
12541 New module 'uninorm/decomposition'.
12542 * lib/uninorm/decomposition.c: New file.
12543 * modules/uninorm/decomposition: New file.
12545 New module 'uninorm/decomposition-table'.
12546 * lib/uninorm/decomposition-table.h: New file.
12547 * lib/uninorm/decomposition-table.c: New file.
12548 * lib/uninorm/decomposition-table1.h: New file, generated by
12550 * lib/uninorm/decomposition-table2.h: New file, generated by
12552 * modules/uninorm/decomposition-table: New file.
12554 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
12555 (UC_DECOMP_*): New enumeration items.
12556 (get_decomposition): New function.
12557 (struct decomp_table): New type.
12558 (output_decomposition, output_decomposition_tables): New functions.
12559 (unicode_composition_exclusions): New variable.
12560 (fill_composition_exclusions, debug_output_composition_tables): New
12562 (main): Accept one more argument. Invoke fill_composition_exclusions.
12563 Output decomposition and composition tables.
12565 New module 'uninorm/base'.
12566 * lib/uninorm.h: New file.
12567 * lib/unictype.h: Update comment.
12568 * modules/uninorm/base: New file.
12570 2009-02-21 David Lutterkort <lutter@redhat.com>
12572 Tests for module 'safe-alloc'.
12573 * tests/test-safe-alloc.c: New file.
12574 * modules/safe-alloc-tests: New file.
12576 New module 'safe-alloc'.
12577 * lib/safe-alloc.h: New file.
12578 * lib/safe-alloc.c: New file.
12579 * m4/safe-alloc.m4: New file.
12580 * modules/safe-alloc: New file.
12581 * doc/safe-alloc.texi: New file.
12582 * doc/gnulib.texi: Include it.
12583 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12586 2009-02-18 Bruno Haible <bruno@clisp.org>
12588 Fix link error on non-glibc systems.
12589 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
12591 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12593 2009-02-18 Jim Meyering <meyering@redhat.com>
12595 fts: avoid used-uninitialized error due to recent change
12596 * lib/fts.c (fts_read): Guard uses of the new member,
12597 parent->fts_n_dirs_remaining, since it's not relevant for
12598 the parent of a directory specified on the command-line.
12600 2009-02-17 James Youngman <jay@gnu.org>
12601 Bruno Haible <bruno@clisp.org>
12603 * m4/include_next.m4: Reformulate comment.
12605 2009-02-16 Jim Meyering <meyering@redhat.com>
12607 fts: add #if guards so that the fts_lgpl module still builds
12608 * lib/fts.c: Guard just-added hash-table-using parts with
12609 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
12610 Reported by Simon Josefsson.
12612 2009-02-15 Bruno Haible <bruno@clisp.org>
12614 * modules/array-mergesort-tests: New file.
12615 * tests/test-array-mergesort.c: New file.
12617 New module 'array-mergesort'.
12618 * modules/array-mergesort: New file.
12619 * lib/array-mergesort.h: New file.
12621 2009-02-15 Bruno Haible <bruno@clisp.org>
12623 Fix 2009-02-07 commit.
12624 * lib/gen-uni-tables.c (output_predicate, output_category,
12625 output_combclass, output_bidi_category, output_decimal_digit,
12626 output_digit, output_numeric, output_mirror, output_scripts,
12627 output_ident_category, output_simple_mapping): Fix format directives.
12628 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
12630 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
12632 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
12633 fixes are available from IBM.
12635 2009-02-13 Jim Meyering <meyering@redhat.com>
12637 fts: arrange not to stat non-directories in more cases
12638 This makes GNU find (when it doesn't need to stat each file)
12639 *much* more efficient at traversing reiserfs file systems.
12640 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
12641 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
12642 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
12643 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
12644 (leaf_optimization_applies): New function.
12645 (LCO_hash, LCO_compare): New helper functions.
12646 (link_count_optimize_ok): New function.
12647 (fts_stat): Initialize new member (if dir).
12648 (fts_read): Decrement parent's fts_n_dirs_remaining count if
12649 we've just stat'ed a directory. Skip the stat call when possible.
12651 Note this AFS-related exchange:
12652 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
12653 and note find's pioctl call in find/fstype.c.
12654 But that is necessary only if you want to enable the
12655 optimization for AFS, and for now, I don't.
12657 fts: move a function definition "up" (no semantic change)
12658 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
12659 "up" to precede upcoming use of a related function.
12661 2009-02-11 Jim Meyering <meyering@redhat.com>
12663 fts: correct internal computation of nlinks (optimization-related)
12664 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
12665 whether the current entry is a directory, so don't test it.
12667 2009-02-10 Bruno Haible <bruno@clisp.org>
12669 Tests for module 'uniwbrk/ulc-wordbreaks'.
12670 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
12671 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
12672 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
12674 Tests for module 'uniwbrk/u32-wordbreaks'.
12675 * modules/uniwbrk/u32-wordbreaks-tests: New file.
12676 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
12678 Tests for module 'uniwbrk/u16-wordbreaks'.
12679 * modules/uniwbrk/u16-wordbreaks-tests: New file.
12680 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
12682 Tests for module 'uniwbrk/u8-wordbreaks'.
12683 * modules/uniwbrk/u8-wordbreaks-tests: New file.
12684 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
12686 2009-02-10 Bruno Haible <bruno@clisp.org>
12688 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
12690 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
12691 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
12692 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
12694 2009-02-10 Simon Josefsson <simon@josefsson.org>
12696 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
12697 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
12699 2009-02-10 Bruno Haible <bruno@clisp.org>
12701 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
12702 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
12703 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
12704 * lib/unilbrk/u8-possible-linebreaks.c: Update.
12705 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
12706 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
12708 2009-02-09 Simon Josefsson <simon@josefsson.org>
12710 * lib/sockets.h (gl_fd_to_handle): New function.
12712 * tests/test-sockets.c: Call gl_fd_to_handle.
12714 2009-02-09 Bruno Haible <bruno@clisp.org>
12716 * doc/havelib.texi: Document the conventions on bi-arch systems.
12718 2009-02-08 Bruno Haible <bruno@clisp.org>
12720 Document the AC_LIB_LINKFLAGS macro.
12721 * doc/havelib.texi: New file, mostly written on 2005-05-24.
12722 * doc/gnulib.texi: Include it.
12724 2009-02-08 Bruno Haible <bruno@clisp.org>
12726 Fix wrong order of sections, compared to TOC.
12727 * doc/gnulib.texi: Include relocatable-maint.texi after the
12728 "Regular expressions" node, not before.
12730 2009-02-08 Bruno Haible <bruno@clisp.org>
12732 Tests for module 'unicase/totitle'.
12733 * modules/unicase/totitle-tests: New file.
12735 Tests for module 'unicase/tolower'.
12736 * modules/unicase/tolower-tests: New file.
12738 Tests for module 'unicase/toupper'.
12739 * modules/unicase/toupper-tests: New file.
12740 * tests/unicase/test-mapping-part1.h: New file.
12741 * tests/unicase/test-mapping-part2.h: New file.
12743 New module 'unicase/totitle'.
12744 * modules/unicase/totitle: New file.
12745 * lib/unicase/totitle.c: New file.
12747 New module 'unicase/tolower'.
12748 * modules/unicase/tolower: New file.
12749 * lib/unicase/tolower.c: New file.
12751 New module 'unicase/toupper'.
12752 * modules/unicase/toupper: New file.
12753 * lib/unicase/toupper.c: New file.
12754 * lib/unicase/simple-mapping.h: New file.
12756 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
12757 (mapping_table): New structure.
12758 (output_simple_mapping): New function.
12759 (main): Invoke output_simple_mapping_test and output_simple_mapping.
12760 * modules/gen-uni-tables (Description): Update.
12761 * lib/unicase/toupper.h: New file, automatically generated by
12763 * lib/unicase/tolower.h: New file, automatically generated by
12765 * lib/unicase/totitle.h: New file, automatically generated by
12767 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
12769 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
12771 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
12774 New module 'unicase/base'.
12775 * modules/unicase/base: New file.
12776 * lib/unicase.h: New file.
12778 2009-02-08 Bruno Haible <bruno@clisp.org>
12780 New module 'uniwbrk/ulc-wordbreaks'.
12781 * modules/uniwbrk/ulc-wordbreaks: New file.
12782 * lib/uniwbrk/ulc-wordbreaks.c: New file.
12784 New module 'uniwbrk/u32-wordbreaks'.
12785 * modules/uniwbrk/u32-wordbreaks: New file.
12786 * lib/uniwbrk/u32-wordbreaks.c: New file.
12788 New module 'uniwbrk/u16-wordbreaks'.
12789 * modules/uniwbrk/u16-wordbreaks: New file.
12790 * lib/uniwbrk/u16-wordbreaks.c: New file.
12792 New module 'uniwbrk/u8-wordbreaks'.
12793 * modules/uniwbrk/u8-wordbreaks: New file.
12794 * lib/uniwbrk/u8-wordbreaks.c: New file.
12795 * lib/uniwbrk/u-wordbreaks.h: New file.
12797 New module 'uniwbrk/table'.
12798 * modules/uniwbrk/table: New file.
12799 * lib/uniwbrk/wbrktable.h: New file.
12800 * lib/uniwbrk/wbrktable.c: New file.
12802 New module 'uniwbrk/wordbreak-property'.
12803 * modules/uniwbrk/wordbreak-property: New file.
12804 * lib/uniwbrk/wordbreak-property.c: New file.
12806 * lib/gen-uni-tables.c (WBP_*): New enum items.
12807 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
12808 (unicode_org_wbp): New variable.
12809 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
12811 (wbp_table): New structure.
12812 (output_wbp, output_wbrk_tables): New functions.
12813 (main): Accept additional argument. Invoke fill_org_wbp,
12814 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
12815 output_wbrk_tables.
12816 * modules/gen-uni-tables (Description): Update.
12817 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
12820 New module 'uniwbrk/base'.
12821 * modules/uniwbrk/base: New file.
12822 * lib/uniwbrk.h: New file.
12824 2009-02-08 Bruno Haible <bruno@clisp.org>
12826 Update to Unicode 5.1.0.
12827 * lib/gen-uni-tables.c (is_property_alphabetic): Include
12829 (is_property_default_ignorable_code_point): Don't include characters
12830 of category Cc or Cs and not-a-characters.
12831 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
12832 U+0D79, U+109E, U+109F, U+A60C.
12833 * lib/unictype/bidi_of.h: Regenerated.
12834 * lib/unictype/blocks.h: Regenerated.
12835 * lib/unictype/categ_C.h: Regenerated.
12836 * lib/unictype/categ_Cf.h: Regenerated.
12837 * lib/unictype/categ_Cn.h: Regenerated.
12838 * lib/unictype/categ_L.h: Regenerated.
12839 * lib/unictype/categ_Ll.h: Regenerated.
12840 * lib/unictype/categ_Lm.h: Regenerated.
12841 * lib/unictype/categ_Lo.h: Regenerated.
12842 * lib/unictype/categ_Lu.h: Regenerated.
12843 * lib/unictype/categ_M.h: Regenerated.
12844 * lib/unictype/categ_Mc.h: Regenerated.
12845 * lib/unictype/categ_Me.h: Regenerated.
12846 * lib/unictype/categ_Mn.h: Regenerated.
12847 * lib/unictype/categ_N.h: Regenerated.
12848 * lib/unictype/categ_Nd.h: Regenerated.
12849 * lib/unictype/categ_Nl.h: Regenerated.
12850 * lib/unictype/categ_No.h: Regenerated.
12851 * lib/unictype/categ_P.h: Regenerated.
12852 * lib/unictype/categ_Pd.h: Regenerated.
12853 * lib/unictype/categ_Pe.h: Regenerated.
12854 * lib/unictype/categ_Pf.h: Regenerated.
12855 * lib/unictype/categ_Pi.h: Regenerated.
12856 * lib/unictype/categ_Po.h: Regenerated.
12857 * lib/unictype/categ_Ps.h: Regenerated.
12858 * lib/unictype/categ_S.h: Regenerated.
12859 * lib/unictype/categ_Sk.h: Regenerated.
12860 * lib/unictype/categ_Sm.h: Regenerated.
12861 * lib/unictype/categ_So.h: Regenerated.
12862 * lib/unictype/categ_of.h: Regenerated.
12863 * lib/unictype/combining.h: Regenerated.
12864 * lib/unictype/ctype_alnum.h: Regenerated.
12865 * lib/unictype/ctype_alpha.h: Regenerated.
12866 * lib/unictype/ctype_graph.h: Regenerated.
12867 * lib/unictype/ctype_lower.h: Regenerated.
12868 * lib/unictype/ctype_print.h: Regenerated.
12869 * lib/unictype/ctype_punct.h: Regenerated.
12870 * lib/unictype/ctype_upper.h: Regenerated.
12871 * lib/unictype/decdigit.h: Regenerated.
12872 * lib/unictype/digit.h: Regenerated.
12873 * lib/unictype/mirror.h: Regenerated.
12874 * lib/unictype/numeric.h: Regenerated.
12875 * lib/unictype/pr_alphabetic.h: Regenerated.
12876 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
12877 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
12878 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
12879 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
12880 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
12881 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
12882 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
12883 * lib/unictype/pr_combining.h: Regenerated.
12884 * lib/unictype/pr_dash.h: Regenerated.
12885 * lib/unictype/pr_decimal_digit.h: Regenerated.
12886 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
12887 * lib/unictype/pr_deprecated.h: Regenerated.
12888 * lib/unictype/pr_diacritic.h: Regenerated.
12889 * lib/unictype/pr_extender.h: Regenerated.
12890 * lib/unictype/pr_format_control.h: Regenerated.
12891 * lib/unictype/pr_grapheme_base.h: Regenerated.
12892 * lib/unictype/pr_grapheme_extend.h: Regenerated.
12893 * lib/unictype/pr_grapheme_link.h: Regenerated.
12894 * lib/unictype/pr_id_continue.h: Regenerated.
12895 * lib/unictype/pr_id_start.h: Regenerated.
12896 * lib/unictype/pr_ideographic.h: Regenerated.
12897 * lib/unictype/pr_ignorable_control.h: Regenerated.
12898 * lib/unictype/pr_lowercase.h: Regenerated.
12899 * lib/unictype/pr_math.h: Regenerated.
12900 * lib/unictype/pr_numeric.h: Regenerated.
12901 * lib/unictype/pr_other_alphabetic.h: Regenerated.
12902 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
12903 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
12904 * lib/unictype/pr_other_id_continue.h: Regenerated.
12905 * lib/unictype/pr_other_lowercase.h: Regenerated.
12906 * lib/unictype/pr_other_math.h: Regenerated.
12907 * lib/unictype/pr_punctuation.h: Regenerated.
12908 * lib/unictype/pr_sentence_terminal.h: Regenerated.
12909 * lib/unictype/pr_soft_dotted.h: Regenerated.
12910 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
12911 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
12912 * lib/unictype/pr_unified_ideograph.h: Regenerated.
12913 * lib/unictype/pr_uppercase.h: Regenerated.
12914 * lib/unictype/pr_xid_continue.h: Regenerated.
12915 * lib/unictype/pr_xid_start.h: Regenerated.
12916 * lib/unictype/pr_zero_width.h: Regenerated.
12917 * lib/unictype/scripts.h: Regenerated.
12918 * lib/unictype/scripts_byname.gperf: Regenerated.
12919 * lib/unictype/sy_java_ident.h: Regenerated.
12920 * lib/unilbrk/lbrkprop1.h: Regenerated.
12921 * lib/unilbrk/lbrkprop2.h: Regenerated.
12922 * tests/unictype/test-categ_C.c: Regenerated.
12923 * tests/unictype/test-categ_Cf.c: Regenerated.
12924 * tests/unictype/test-categ_Cn.c: Regenerated.
12925 * tests/unictype/test-categ_L.c: Regenerated.
12926 * tests/unictype/test-categ_Ll.c: Regenerated.
12927 * tests/unictype/test-categ_Lm.c: Regenerated.
12928 * tests/unictype/test-categ_Lo.c: Regenerated.
12929 * tests/unictype/test-categ_Lu.c: Regenerated.
12930 * tests/unictype/test-categ_M.c: Regenerated.
12931 * tests/unictype/test-categ_Mc.c: Regenerated.
12932 * tests/unictype/test-categ_Me.c: Regenerated.
12933 * tests/unictype/test-categ_Mn.c: Regenerated.
12934 * tests/unictype/test-categ_N.c: Regenerated.
12935 * tests/unictype/test-categ_Nd.c: Regenerated.
12936 * tests/unictype/test-categ_Nl.c: Regenerated.
12937 * tests/unictype/test-categ_No.c: Regenerated.
12938 * tests/unictype/test-categ_P.c: Regenerated.
12939 * tests/unictype/test-categ_Pd.c: Regenerated.
12940 * tests/unictype/test-categ_Pe.c: Regenerated.
12941 * tests/unictype/test-categ_Pf.c: Regenerated.
12942 * tests/unictype/test-categ_Pi.c: Regenerated.
12943 * tests/unictype/test-categ_Po.c: Regenerated.
12944 * tests/unictype/test-categ_Ps.c: Regenerated.
12945 * tests/unictype/test-categ_S.c: Regenerated.
12946 * tests/unictype/test-categ_Sk.c: Regenerated.
12947 * tests/unictype/test-categ_Sm.c: Regenerated.
12948 * tests/unictype/test-categ_So.c: Regenerated.
12949 * tests/unictype/test-ctype_alnum.c: Regenerated.
12950 * tests/unictype/test-ctype_alpha.c: Regenerated.
12951 * tests/unictype/test-ctype_graph.c: Regenerated.
12952 * tests/unictype/test-ctype_lower.c: Regenerated.
12953 * tests/unictype/test-ctype_print.c: Regenerated.
12954 * tests/unictype/test-ctype_punct.c: Regenerated.
12955 * tests/unictype/test-ctype_upper.c: Regenerated.
12956 * tests/unictype/test-decdigit.h: Regenerated.
12957 * tests/unictype/test-digit.h: Regenerated.
12958 * tests/unictype/test-numeric.h: Regenerated.
12959 * tests/unictype/test-pr_alphabetic.c: Regenerated.
12960 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
12961 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
12962 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
12963 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
12964 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
12965 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
12966 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
12967 * tests/unictype/test-pr_combining.c: Regenerated.
12968 * tests/unictype/test-pr_dash.c: Regenerated.
12969 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
12970 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
12971 * tests/unictype/test-pr_deprecated.c: Regenerated.
12972 * tests/unictype/test-pr_diacritic.c: Regenerated.
12973 * tests/unictype/test-pr_extender.c: Regenerated.
12974 * tests/unictype/test-pr_format_control.c: Regenerated.
12975 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
12976 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
12977 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
12978 * tests/unictype/test-pr_id_continue.c: Regenerated.
12979 * tests/unictype/test-pr_id_start.c: Regenerated.
12980 * tests/unictype/test-pr_ideographic.c: Regenerated.
12981 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
12982 * tests/unictype/test-pr_lowercase.c: Regenerated.
12983 * tests/unictype/test-pr_math.c: Regenerated.
12984 * tests/unictype/test-pr_numeric.c: Regenerated.
12985 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
12986 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
12988 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
12989 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
12990 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
12991 * tests/unictype/test-pr_other_math.c: Regenerated.
12992 * tests/unictype/test-pr_punctuation.c: Regenerated.
12993 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
12994 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
12995 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
12996 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
12997 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
12998 * tests/unictype/test-pr_uppercase.c: Regenerated.
12999 * tests/unictype/test-pr_xid_continue.c: Regenerated.
13000 * tests/unictype/test-pr_xid_start.c: Regenerated.
13001 * tests/unictype/test-pr_zero_width.c: Regenerated.
13003 Update to Unicode 5.1.0.
13004 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
13005 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
13006 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
13007 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
13008 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
13009 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
13010 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
13011 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
13012 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
13013 (nonspacing_table_ind): Update.
13014 * tests/uniwidth/test-uc_width2.sh: Update expected result.
13016 Update to Unicode 5.1.0.
13017 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
13019 * lib/uniname/uniname.c (unicode_character_name,
13020 unicode_name_character): Add the range 0x1Fxxx to the code transform.
13021 * lib/uniname/uninames.h: Regenerated.
13022 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
13024 2009-02-07 Bruno Haible <bruno@clisp.org>
13026 Merge gen-ctype and gen-lbrk into a single program.
13027 * lib/gen-uni-tables.c: New file, incorporating
13028 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
13029 Add directory prefixes to the names of the generated files.
13030 * lib/unictype/gen-ctype.c: Remove file.
13031 * lib/unilbrk/gen-lbrk.c: Remove file.
13032 * modules/gen-uni-tables: New file.
13033 * modules/unictype/gen-ctype: Remove file.
13034 * modules/unilbrk/gen-lbrk: Remove file.
13036 2009-02-07 Bruno Haible <bruno@clisp.org>
13038 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
13040 New module 'unistr/u32-strcoll'.
13041 * modules/unistr/u32-strcoll: New file.
13042 * lib/unistr/u32-strcoll.c: New file.
13044 New module 'unistr/u16-strcoll'.
13045 * modules/unistr/u16-strcoll: New file.
13046 * lib/unistr/u16-strcoll.c: New file.
13048 New module 'unistr/u8-strcoll'.
13049 * modules/unistr/u8-strcoll: New file.
13050 * lib/unistr/u8-strcoll.c: New file.
13051 * lib/unistr/u-strcoll.h: New file.
13053 2009-02-07 Bruno Haible <bruno@clisp.org>
13055 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
13056 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13057 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
13058 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
13059 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
13060 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
13062 2009-02-07 Bruno Haible <bruno@clisp.org>
13065 * lib/unictype/gen-ctype.c (output_predicate, output_category,
13066 output_combclass, output_bidi_category, output_decimal_digit,
13067 output_digit, output_numeric, output_mirror, output_scripts,
13068 output_ident_category): Use proper width specifier in format strings.
13070 2009-02-07 Bruno Haible <bruno@clisp.org>
13072 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
13075 2009-02-07 Jim Meyering <meyering@redhat.com>
13077 regex: avoid compilation failure with upcoming gcc-4.4
13078 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
13079 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
13080 "... error: integer overflow in preprocessor expression".
13082 2009-02-05 Ben Pfaff <blp@gnu.org>
13084 Fix link errors on Windows when close module is used.
13085 * modules/close: Add $(LIB_CLOSE) to Link section.
13086 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
13087 $(LIB_CLOSE) on Windows.
13089 2009-02-05 Jim Meyering <meyering@redhat.com>
13091 still avoid unused-parameter warnings, but do it cleanly
13092 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
13093 (get_fs_usage): Cast to void instead.
13094 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
13095 (dev_from_mount_options, read_file_system_list): Cast to void.
13096 Prompted by Bruno Haible.
13098 2009-02-04 Jim Meyering <meyering@redhat.com>
13100 fsusage.c: correct copyright year
13101 * lib/fsusage.c: Reflect year in which the change is pushed into
13103 avoid misc. warnings
13104 * lib/fsusage.c (UNUSED_PARAM): Define.
13105 (get_fs_usage): Mark parameter "disk" as unused.
13106 * lib/getugroups.c (getgrent): Use "void" in prototype.
13107 * lib/mountlist.c: Mark unused parameters.
13108 (read_file_system_list): Declare a local with "const".
13109 * lib/nanosleep.c (getnow): Declare static.
13110 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
13112 dirfd: set errno upon failure
13113 * lib/dirfd.c: Include <errno.h>.
13114 Set errno to ENOTSUP when returning -1.
13115 * modules/dirfd (Depends-on): Add errno.
13116 Suggested by John Kodis <kodis@comcast.net>.
13118 2009-02-01 Bruno Haible <bruno@clisp.org>
13120 Don't assume sizeof (long) >= sizeof (void *).
13121 * lib/memcmp.c: Include stdint.h.
13122 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
13123 srcp2 to 'const byte *'.
13124 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
13125 types to uintptr_t.
13126 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
13127 * modules/memcmp (Depends-on): Add stdint.
13128 Reported by Ozkan Sezer <sezeroz@gmail.com>.
13130 2009-01-30 Eric Blake <ebb9@byu.net>
13132 fix more require-before-expand issues
13133 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
13134 expand, AC_PROG_AWK.
13135 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
13137 2009-01-28 Eric Blake <ebb9@byu.net>
13139 version-etc: use consistent URL formatting
13140 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
13141 Improve formatting. Use fputs for string without %.
13143 2009-01-28 Jim Meyering <meyering@redhat.com>
13145 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
13146 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
13147 "underquoted definition of NAME" from autoconf-2.59.
13149 2009-01-28 Bruno Haible <bruno@clisp.org>
13151 * doc/gnulib.texi: Add "Obsolete modules" to index.
13153 2009-01-28 Jim Meyering <meyering@redhat.com>
13155 useless-if-before-free: recognize more variants
13156 * build-aux/useless-if-before-free: Also recognize e.g.,
13157 if (NULL != p) free (p);
13159 2009-01-27 Mark McLoughlin <markmc@redhat.com>
13161 test-getaddrinfo: skip (don't fail) this test when there's no network
13162 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
13163 on the presumption that it means you lack network access.
13165 2009-01-26 Jim Meyering <meyering@redhat.com>
13167 fflush: avoid warnings on modern systems
13168 * lib/fflush.c (rpl_fflush): Move declarations of locals,
13169 pos and result, into scopes where they're used.
13171 2009-01-26 Eric Blake <ebb9@byu.net>
13173 Silence warning reintroduced by recent extensions patch.
13174 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
13175 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
13178 Backport improved autoconf semantics of AC_DEFUN_ONCE.
13179 * m4/00gnulib.m4: New file.
13180 * gnulib-tool (func_get_filelist): Always use it.
13181 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
13182 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
13184 2009-01-25 Bruno Haible <bruno@clisp.org>
13186 Make test-quotearg work on MacOS X and AIX.
13187 * tests/test-quotearg.sh: New file.
13188 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
13189 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
13190 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
13191 include <libintl.h>.
13192 (fake_locale): Remove variable.
13193 (gettext, dgettext, dcgettext): Remove functions.
13194 (main): Instead of setting a fake locale, set a real locale. Call
13195 textdomain and bindtextdomain.
13196 * modules/quotearg-tests (Files): Add the new files.
13197 (Depends-on): Add gettext, setenv, unsetenv.
13198 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
13199 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
13200 Augment TESTS_ENVIRONMENT.
13202 2009-01-25 Bruno Haible <bruno@clisp.org>
13204 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
13205 fr_FR.ISO8859-1 locale on MacOS X.
13206 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
13207 ja_JP.eucJP locale on MacOS X.
13208 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
13209 zh_CN.GB18030 locale on MacOS X.
13211 2009-01-25 Bruno Haible <bruno@clisp.org>
13213 Avoid link errors on MacOS X 10.3.
13214 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
13215 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13217 2009-01-25 Bruno Haible <bruno@clisp.org>
13219 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13220 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
13221 * modules/pipe (Files): Remove m4/posix_spawn.m4.
13222 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13223 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
13224 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13225 posix_spawnattr_init, posix_spawnattr_setsigmask,
13226 posix_spawnattr_setflags, posix_spawnattr_destroy.
13228 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13229 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
13230 * modules/execute (Files): Remove m4/posix_spawn.m4.
13231 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13232 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13233 posix_spawnattr_init, posix_spawnattr_setsigmask,
13234 posix_spawnattr_setflags, posix_spawnattr_destroy.
13236 2009-01-25 Bruno Haible <bruno@clisp.org>
13238 * lib/glthread/threadlib.c: Include <stdlib.h>.
13240 2009-01-25 Bruno Haible <bruno@clisp.org>
13242 * lib/glthread/threadlib.c (dummy): New declaration.
13244 2009-01-25 Bruno Haible <bruno@clisp.org>
13246 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
13247 multibyte characters also for the GB18030 encoding. Don't crash when
13248 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
13250 2009-01-25 Bruno Haible <bruno@clisp.org>
13252 Avoid redefining 'struct random_data' on OSF/1 5.1.
13253 * lib/stdlib.in.h: Include <random.h> if it exists.
13254 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
13255 HAVE_RANDOM_H. Include <random.h> when testing whether
13256 'struct random_data' exists.
13257 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
13259 2009-01-25 Bruno Haible <bruno@clisp.org>
13261 Don't install charset.alias on MacOS X >= 10.3.
13262 * lib/localcharset.c (DARWIN7): New macro.
13263 (get_charset_aliases): Hardcode the result for Darwin7.
13264 * modules/localcharset (install-exec-local): Don't install
13265 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
13267 2009-01-25 Bruno Haible <bruno@clisp.org>
13269 Don't install charset.alias on mingw and Cygwin.
13270 * modules/localcharset (install-exec-local): Don't install
13271 charset.alias on mingw and Cygwin, if the file does not yet exist.
13272 The result for these platforms is hardcoded in localcharset.c.
13274 2009-01-25 Bruno Haible <bruno@clisp.org>
13276 Make it possible again to use AC_GNU_SOURCE together with gnulib.
13277 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
13278 before requiring AC_USE_SYSTEM_EXTENSIONS.
13280 2009-01-25 Jim Meyering <meyering@redhat.com>
13282 c-strtod: avoid warnings
13283 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
13284 "assignment discards qualifiers from pointer target type" warnings.
13286 2009-01-24 Bruno Haible <bruno@clisp.org>
13288 Add support for non-UTF-8 locales on MacOS X.
13289 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
13290 canonical encodings. For Darwin 7 and newer, don't map traditional
13291 encodings to UTF-8.
13292 Reported by Vincent Lefevre <vincent@vinc17.org>
13293 at <http://savannah.gnu.org/bugs/?25235>.
13295 2009-01-24 Bruno Haible <bruno@clisp.org>
13297 * doc/gnulib.texi (Obsolete modules): New section.
13298 Reported by Mike Frysinger <vapier@gentoo.org>.
13300 2009-01-24 Bruno Haible <bruno@clisp.org>
13302 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
13305 2009-01-24 Bruno Haible <bruno@clisp.org>
13307 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
13308 Reported by Eric Blake.
13310 2009-01-24 Bruno Haible <bruno@clisp.org>
13312 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
13313 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
13314 Reported by Gary V. Vaughan <gary@gnu.org>.
13316 2009-01-24 Bruno Haible <bruno@clisp.org>
13318 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
13320 2009-01-23 Bruno Haible <bruno@clisp.org>
13322 Make c-strtod, c-strtold usable in libraries.
13323 * lib/c-strtod.c: Include string.h instead of xalloc.h.
13324 (C_STRTOD): Call strdup instead of xstrdup.
13325 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
13326 * modules/c-strtold (Depends-on): Likewise.
13327 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
13328 * NEWS: Mention the change.
13329 Reported by Michael Gold <mgold@ncf.ca>.
13331 2009-01-23 Jim Meyering <meyering@redhat.com>
13333 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
13334 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
13335 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
13337 2009-01-23 Simon Josefsson <simon@josefsson.org>
13339 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
13341 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
13342 * modules/version-etc (Description): Update.
13344 2009-01-22 Bruno Haible <bruno@clisp.org>
13346 Cache the C locale object.
13347 * lib/c-strtod.c (c_locale_cache): New variable.
13348 (c_locale): New function.
13349 (C_STRTOD): Use it, and don't call freelocale.
13350 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
13351 Suggested by Paolo Bonzini.
13353 2009-01-21 Bruno Haible <bruno@clisp.org>
13355 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
13356 conditions other than overflow.
13358 2009-01-21 Bruno Haible <bruno@clisp.org>
13360 * lib/c-strtod.c: Include errno.h.
13361 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
13362 value from STRTOD_L and STRTOD.
13364 2009-01-21 Bruno Haible <bruno@clisp.org>
13365 and Jim Meyering <meyering@redhat.com>
13367 nanosleep: skip configure test (fail it) for apple universal builds
13368 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
13369 universal builds, assume that nanosleep does not work.
13370 * modules/nanosleep (Depends-on): Add multiarch.
13372 mktime: skip configure test (fail it) for apple universal builds
13373 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
13374 universal builds, assume that mktime does not work.
13375 * modules/mktime (Depends-on): Add multiarch.
13377 2009-01-21 Eric Blake <ebb9@byu.net>
13379 multiarch: avoid expand-before-require warning
13380 * modules/multiarch (configure.ac): Require, rather than expand,
13382 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
13383 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
13384 enforce that all clients require it. Partial reversion of
13387 error: avoid expand-before-require warning
13388 * modules/errno (configure.ac): Require, rather than expand,
13390 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
13391 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
13392 enforce that all clients require it.
13394 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
13395 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
13396 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
13397 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
13399 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
13402 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
13404 regex: do not depend on obsolete modules.
13405 * modules/regex: Remove memcmp and memmove.
13407 2009-01-20 Bruno Haible <bruno@clisp.org>
13409 Make the 'link' module link on Windows NT 4.
13410 * lib/link.c (_WIN32_WINNT): Don't define.
13411 (CreateHardLinkFuncType): New type.
13412 (CreateHardLinkFunc, initialized): New variables.
13413 (initialize): New function.
13414 (link): Invoke CreateHardLink indirectly through the function pointer.
13416 2009-01-20 Bruno Haible <bruno@clisp.org>
13418 Fix compilation failure on mingw.
13419 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
13421 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
13423 * doc/c-strtod.texi: Mention a couple of restrictions.
13425 2009-01-20 Jim Meyering <meyering@redhat.com>
13427 gettimeofday: move more declarations out of functions
13428 * lib/gettimeofday.c: Move extern declarations of tzset and
13429 gmtime out of containing functions. Prompted by Bruno Haible.
13431 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
13433 regex: do not depend on obsolete modules.
13434 * modules/regex: Remove memcmp and memmove.
13436 2009-01-19 Bruno Haible <bruno@clisp.org>
13438 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13439 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
13440 gl_BIGENDIAN, not AC_C_BIGENDIAN.
13441 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
13442 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
13444 2009-01-19 Bruno Haible <bruno@clisp.org>
13446 * tests/test-link.c: Include <errno.h>.
13447 (main): Exit with code 77 when a hard link cannot be created due to
13449 * tests/test-link.sh: Skip test when a hard link cannot be created due
13450 to the file system.
13451 Suggested by Eric Blake.
13453 2009-01-19 Martin Lambers <marlam@marlam.de>
13455 * modules/link-tests: New file.
13456 * tests/test-link.sh: New file.
13457 * tests/test-link.c: New file.
13459 2009-01-19 Eric Blake <ebb9@byu.net>
13461 doc: mention another function added in cygwin 1.7.0
13462 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
13463 Another new function in cygwin 1.7.
13465 2009-01-19 Bruno Haible <bruno@clisp.org>
13467 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13468 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
13469 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
13470 gl_BIGENDIAN, not AC_C_BIGENDIAN.
13471 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13472 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13473 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13474 * m4/md4.m4 (gl_MD4): Likewise.
13475 * m4/md5.m4 (gl_MD5): Likewise.
13476 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
13477 * m4/sha1.m4 (gl_SHA1): Likewise.
13478 * m4/sha256.m4 (gl_SHA256): Likewise.
13479 * m4/sha512.m4 (gl_SHA512): Likewise.
13481 2009-01-19 Bruno Haible <bruno@clisp.org>
13483 * modules/uniname/uniname-tests (Depends-on): Add progname.
13484 * tests/uniname/test-uninames.c: Include progname.h.
13485 (main): Call set_program_name.
13487 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
13488 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
13489 (main): Call set_program_name.
13491 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
13492 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
13493 (main): Call set_program_name.
13495 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
13496 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
13497 (main): Call set_program_name.
13499 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
13500 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
13501 (main): Call set_program_name.
13503 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
13504 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
13505 (main): Call set_program_name.
13507 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
13508 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
13509 (main): Call set_program_name.
13511 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
13512 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
13513 (main): Call set_program_name.
13515 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
13516 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
13517 (main): Call set_program_name.
13519 2009-01-19 Eric Blake <ebb9@byu.net>
13521 test-unistd: test previous patch
13522 * tests/test-unistd.c: Test *_FILENO macros.
13524 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
13525 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13526 Guarantee a definition.
13527 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
13528 * modules/unistd-safer (Depends-on): Add dependency on unistd.
13529 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
13530 * lib/dup-safer.c (STDERR_FILENO): Likewise.
13531 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13533 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
13534 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
13535 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13537 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
13538 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
13539 (STDERR_FILENO): Likewise.
13540 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
13541 (STDERR_FILENO): Likewise.
13542 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
13543 (STDERR_FILENO): Likewise.
13544 Reported by Elbert Pol.
13546 2009-01-19 Eric Blake <ebb9@byu.net>
13548 doc: mention more functions added in cygwin 1.7.0
13549 * doc/posix-functions/abort.texi (abort): Update wording related
13551 * doc/posix-functions/daylight.texi (daylight): Likewise.
13552 * doc/posix-functions/optarg.texi (optarg): Likewise.
13553 * doc/posix-functions/optarg.texi (opterr): Likewise.
13554 * doc/posix-functions/optarg.texi (optind): Likewise.
13555 * doc/posix-functions/optarg.texi (optopt): Likewise.
13556 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
13557 worked in 1.5.x, and was withdrawn in 1.7.
13558 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13559 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
13561 * doc/posix-functions/perror.texi (perror): Likewise.
13562 * doc/posix-functions/printf.texi (printf): Likewise.
13563 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13564 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13565 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13566 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13567 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13568 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13569 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
13571 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
13573 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
13575 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
13576 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
13578 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
13579 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
13580 * doc/posix-functions/confstr.texi (confstr): Likewise.
13581 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13582 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
13583 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
13584 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
13585 * doc/posix-functions/fputws.texi (fputws): Likewise.
13586 * doc/posix-functions/fwide.texi (fwide): Likewise.
13587 * doc/posix-functions/getwc.texi (getwc): Likewise.
13588 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
13589 * doc/posix-functions/putwc.texi (putwc): Likewise.
13590 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13591 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
13592 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
13593 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13594 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
13595 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
13596 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
13597 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
13598 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
13599 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
13600 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
13602 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
13604 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
13605 * lib/ioctl.c: Include <sys/ioctl.h>.
13607 2009-01-19 Simon Josefsson <simon@josefsson.org>
13609 * modules/getdate-tests (Depends-on): Add progname.
13610 * tests/test-getdate.c: Use progname module, to avoid link errors
13611 on non-glibc systems.
13613 2009-01-18 Simon Josefsson <simon@josefsson.org>
13615 * modules/filenamecat-tests (Depends-on): Add progname.
13616 * modules/fstrcmp-tests (Depends-on): Likewise.
13618 * tests/test-filenamecat.c: Use progname module, to avoid link
13619 errors on non-glibc systems.
13620 * tests/test-fstrcmp.c: Likewise.
13622 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
13624 gettimeofday: avoid warning: nested extern declaration of 'localtime'
13625 * lib/gettimeofday.c: Move extern declaration out of function.
13627 2009-01-18 Bruno Haible <bruno@clisp.org>
13629 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
13630 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
13631 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
13633 2009-01-18 Bruno Haible <bruno@clisp.org>
13635 * lib/strftime.c (MEMPCPY): Remove unused macro.
13636 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
13638 2009-01-18 Martin Lambers <marlam@marlam.de>
13641 * lib/unistd.in.h (link): New declaration.
13642 * lib/link.c: New file.
13643 * m4/link.m4: New file.
13644 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
13646 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
13647 * modules/link: New file.
13648 * doc/posix-functions/link.texi: Mention the new module.
13650 2009-01-18 Bruno Haible <bruno@clisp.org>
13652 * tests/test-avltree_list.c (main): Call set_program_name.
13653 * tests/test-avltree_oset.c (main): Likewise.
13654 * tests/test-obstack-printf.c: Include progname.h.
13655 (main): Call set_program_name.
13656 * tests/test-quotearg.c: Include progname.h.
13657 (main): Call set_program_name.
13658 * tests/test-xmemdup0.c: Include progname.h.
13659 (main): Call set_program_name.
13661 2009-01-18 Bruno Haible <bruno@clisp.org>
13663 New module 'alphasort'.
13664 * lib/dirent.in.h (alphasort): New declaration.
13665 * lib/alphasort.c: New file, from glibc with modifications.
13666 * m4/alphasort.m4: New file.
13667 * modules/alphasort: New file.
13668 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
13670 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
13672 * doc/posix-functions/alphasort.texi: Mention the new module and the
13673 portability problems.
13675 2009-01-18 Bruno Haible <bruno@clisp.org>
13677 New module 'scandir'.
13678 * lib/dirent.in.h (scandir): New declaration.
13679 * lib/scandir.c: New file, from glibc with modifications.
13680 * m4/scandir.m4: New file.
13681 * modules/scandir: New file.
13682 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
13684 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
13686 * doc/posix-functions/scandir.texi: Mention the new module and the
13687 portability problems.
13689 2009-01-17 Bruno Haible <bruno@clisp.org>
13691 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
13692 Update documentation.
13693 (func_remove_suffix): Escape all dots in the suffix. Update
13695 (func_filter_filelist): Update documentation.
13696 Reported by Ralf Wildenhues.
13698 2009-01-17 Bruno Haible <bruno@clisp.org>
13700 * modules/dprintf-posix-tests: New file.
13701 * tests/test-dprintf-posix.sh: New file.
13702 * tests/test-dprintf-posix.c: New file.
13704 New modules 'dprintf', 'dprintf-posix'.
13705 * lib/stdio.in.h (dprintf): New declaration.
13706 * lib/dprintf.c: New file.
13707 * m4/dprintf.m4: New file.
13708 * m4/dprintf-posix.m4: New file.
13709 * modules/dprintf: New file.
13710 * modules/dprintf-posix: New file.
13711 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
13712 HAVE_DPRINTF, REPLACE_DPRINTF.
13713 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
13714 HAVE_DPRINTF, REPLACE_DPRINTF.
13715 * doc/posix-functions/dprintf.texi: Mention the new modules.
13717 2009-01-17 Bruno Haible <bruno@clisp.org>
13719 * modules/vdprintf-posix-tests: New file.
13720 * tests/test-vdprintf-posix.sh: New file.
13721 * tests/test-vdprintf-posix.c: New file.
13723 New modules 'vdprintf', 'vdprintf-posix'.
13724 * lib/stdio.in.h (vdprintf): New declaration.
13725 * lib/vdprintf.c: New file.
13726 * m4/vdprintf.m4: New file.
13727 * m4/vdprintf-posix.m4: New file.
13728 * modules/vdprintf: New file.
13729 * modules/vdprintf-posix: New file.
13730 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
13731 HAVE_VDPRINTF, REPLACE_VDPRINTF.
13732 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
13733 HAVE_VDPRINTF, REPLACE_VDPRINTF.
13734 * doc/posix-functions/vdprintf.texi: Mention the new modules.
13736 2009-01-17 Bruno Haible <bruno@clisp.org>
13738 Fix replacement of fopen on mingw.
13739 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
13742 2009-01-17 Bruno Haible <bruno@clisp.org>
13744 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
13745 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
13747 2009-01-17 Bruno Haible <bruno@clisp.org>
13749 Avoid test-fflush2.sh failure on mingw.
13750 * tests/test-fflush2.c: Include binary-io.h.
13751 (main): Put standard input into binary mode.
13752 * modules/fflush-tests (Depends-on): Add binary-io.
13754 2009-01-17 Bruno Haible <bruno@clisp.org>
13756 * lib/wchar.in.h: In another particular situation, include only the
13757 system's <wchar.h> file.
13758 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
13759 Reported by Albert Chin-A-Young <china@thewrittenword.com>
13760 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
13762 2009-01-17 Bruno Haible <bruno@clisp.org>
13764 Support for stripping executables in --enable-relocatable.
13765 * build-aux/install-reloc: Expect one more argument, or an environment
13766 variable RELOC_STRIP_PROG. If set, strip the destination program and
13768 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
13770 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
13771 to set RELOCATABLE_STRIP.
13772 * NEWS: Mention the new Makefile requirement.
13774 2009-01-17 Bruno Haible <bruno@clisp.org>
13776 * build-aux/install-reloc: Remove debugging information left over by
13777 C compiler on MacOS X.
13779 2009-01-17 Bruno Haible <bruno@clisp.org>
13781 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
13782 * lib/progreloc.c (find_executable): Fix type of pointer passed to
13783 _NSGetExecutablePath.
13785 2009-01-16 Jim Meyering <meyering@redhat.com>
13787 strerror: avoid warnings about discarding "const"
13788 * lib/strerror.c (rpl_strerror): Instead of returning a const
13789 string from each and every "case", use a variable, and add a single
13790 cast after the switch.
13792 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
13794 * lib/arpa_inet.in.h: Add extern "C" block for C++.
13796 2009-01-16 Bruno Haible <bruno@clisp.org>
13798 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
13799 array initializer syntax that also works in C++ mode.
13800 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13802 2009-01-16 Jim Meyering <meyering@redhat.com>
13804 poll: suppress a warning
13805 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
13806 to ignore "...unsigned expression < 0 is always false" warnings.
13808 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
13810 poll: remove declarations of unused variables
13811 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
13812 sockbuf and optlen.
13814 2009-01-15 Bruno Haible <bruno@clisp.org>
13816 Make fflush-after-ungetc POSIX compliant on BSD systems.
13817 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
13818 (clear_ungetc_buffer): Implement also for other systems.
13819 (rpl_fflush): On glibc systems, invoke
13820 clear_ungetc_buffer_preserving_position. Otherwise, invoke
13821 clear_ungetc_buffer after fetching the stream's position, not before.
13823 2009-01-15 Bruno Haible <bruno@clisp.org>
13825 Make fflush-after-ungetc POSIX compliant on glibc systems.
13826 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
13828 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
13829 (rpl_fflush): On glibc systems, simply call the system's fflush
13830 function after clearing the ungetc buffer.
13831 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
13832 Instead, lseek only to the end of file, then use the system's fseeko
13833 for the rest. On glibc systems, reset the EOF indicator bit.
13835 2009-01-15 Jim Meyering <meyering@redhat.com>
13837 openmp.m4: revert quote-adding change, for portability to older autoconf
13838 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
13839 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
13840 Simon Josefsson noticed the problem when using autoconf-2.61.
13842 2009-01-15 Bruno Haible <bruno@clisp.org>
13844 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
13845 * tests/test-fflush2.c (ASSERT): Always fail.
13846 (main): Add two tests for fflush() after ungetc(), taking into account
13847 the Austin Group's clarification.
13848 Suggested by Eric Blake.
13850 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
13852 mktime.m4: remove K&R-style function prototypes
13853 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
13854 for the Sun C++ compiler.
13856 2009-01-14 Bruno Haible <bruno@clisp.org>
13858 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
13859 while including <wchar.h>.
13860 * lib/wchar.in.h: In two particular situations on HP-UX, include only
13861 the system's <wchar.h> file.
13862 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13864 2009-01-14 Bruno Haible <bruno@clisp.org>
13866 * m4/csharp.m4: Don't mention gettext on the serial number line.
13867 * m4/csharpexec.m4: Likewise.
13868 * m4/eaccess.m4: Likewise.
13869 * m4/javaexec.m4: Likewise.
13870 * m4/sig_atomic_t.m4: Likewise.
13871 * m4/tmpdir.m4: Likewise.
13872 * m4/intldir.m4: Bump gettext version.
13873 * m4/lib-ld.m4: Likewise.
13875 2009-01-14 Bruno Haible <bruno@clisp.org>
13877 * lib/progname.c (set_program_name): Add more comments.
13878 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13880 2009-01-14 Simon Josefsson <simon@josefsson.org>
13882 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
13883 were sys/stat.h does not define it.
13885 2009-01-14 Jim Meyering <meyering@redhat.com>
13887 many *.m4 files: improve m4 quoting
13888 99% of this change was performed by running the following commands:
13889 git ls-files | grep '\.m4$' | xargs perl -pi \
13890 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
13891 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13892 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13893 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
13894 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
13895 The remainder were to add Copyright dates, increment serial numbers,
13896 undo some changes in comments, exclude m4/intl.m4, and add quotes
13897 around the "1" in ",1" where the unusual spacing prohibited the
13898 above regexps from doing the job. For more details, see
13899 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
13900 * m4/acl.m4: Modified.
13901 * m4/afs.m4: Likewise.
13902 * m4/alloca.m4: Likewise.
13903 * m4/argp.m4: Likewise.
13904 * m4/argz.m4: Likewise.
13905 * m4/atexit.m4: Likewise.
13906 * m4/bison-i18n.m4: Likewise.
13907 * m4/bison.m4: Likewise.
13908 * m4/byteswap.m4: Likewise.
13909 * m4/c-stack.m4: Likewise.
13910 * m4/c-strtod.m4: Likewise.
13911 * m4/calloc.m4: Likewise.
13912 * m4/canonicalize-lgpl.m4: Likewise.
13913 * m4/chown.m4: Likewise.
13914 * m4/clock_time.m4: Likewise.
13915 * m4/codeset.m4: Likewise.
13916 * m4/copy-file.m4: Likewise.
13917 * m4/csharp.m4: Likewise.
13918 * m4/csharpcomp.m4: Likewise.
13919 * m4/csharpexec.m4: Likewise.
13920 * m4/d-ino.m4: Likewise.
13921 * m4/d-type.m4: Likewise.
13922 * m4/dirfd.m4: Likewise.
13923 * m4/double-slash-root.m4: Likewise.
13924 * m4/eaccess.m4: Likewise.
13925 * m4/eealloc.m4: Likewise.
13926 * m4/environ.m4: Likewise.
13927 * m4/errno_h.m4: Likewise.
13928 * m4/euidaccess.m4: Likewise.
13929 * m4/execute.m4: Likewise.
13930 * m4/fatal-signal.m4: Likewise.
13931 * m4/fchdir.m4: Likewise.
13932 * m4/fcntl_h.m4: Likewise.
13933 * m4/fileblocks.m4: Likewise.
13934 * m4/filenamecat.m4: Likewise.
13935 * m4/findprog.m4: Likewise.
13936 * m4/flexmember.m4: Likewise.
13937 * m4/fnmatch.m4: Likewise.
13938 * m4/fopen.m4: Likewise.
13939 * m4/fpending.m4: Likewise.
13940 * m4/fprintf-posix.m4: Likewise.
13941 * m4/free.m4: Likewise.
13942 * m4/frexp.m4: Likewise.
13943 * m4/frexpl.m4: Likewise.
13944 * m4/fsusage.m4: Likewise.
13945 * m4/ftruncate.m4: Likewise.
13946 * m4/gc-camellia.m4: Likewise.
13947 * m4/gc-random.m4: Likewise.
13948 * m4/gc.m4: Likewise.
13949 * m4/getaddrinfo.m4: Likewise.
13950 * m4/getcwd-abort-bug.m4: Likewise.
13951 * m4/getcwd-path-max.m4: Likewise.
13952 * m4/getdate.m4: Likewise.
13953 * m4/getdomainname.m4: Likewise.
13954 * m4/getgroups.m4: Likewise.
13955 * m4/gethostname.m4: Likewise.
13956 * m4/gethrxtime.m4: Likewise.
13957 * m4/getline.m4: Likewise.
13958 * m4/getloadavg.m4: Likewise.
13959 * m4/getndelim2.m4: Likewise.
13960 * m4/getpass.m4: Likewise.
13961 * m4/gettext.m4: Likewise.
13962 * m4/gettime.m4: Likewise.
13963 * m4/gettimeofday.m4: Likewise.
13964 * m4/gnulib-common.m4: Likewise.
13965 * m4/group-member.m4: Likewise.
13966 * m4/host-os.m4: Likewise.
13967 * m4/iconv.m4: Likewise.
13968 * m4/iconv_open.m4: Likewise.
13969 * m4/inet_ntop.m4: Likewise.
13970 * m4/inet_pton.m4: Likewise.
13971 * m4/inline.m4: Likewise.
13972 * m4/intldir.m4: Likewise.
13973 * m4/intlmacosx.m4: Likewise.
13974 * m4/intmax.m4: Likewise.
13975 * m4/intmax_t.m4: Likewise.
13976 * m4/inttypes.m4: Likewise.
13977 * m4/inttypes_h.m4: Likewise.
13978 * m4/inttypes-pri.m4: Likewise.
13979 * m4/isapipe.m4: Likewise.
13980 * m4/isnand.m4: Likewise.
13981 * m4/isnanf.m4: Likewise.
13982 * m4/isnanl.m4: Likewise.
13983 * m4/javacomp.m4: Likewise.
13984 * m4/javaexec.m4: Likewise.
13985 * m4/jm-winsz1.m4: Likewise.
13986 * m4/jm-winsz2.m4: Likewise.
13987 * m4/lchown.m4: Likewise.
13988 * m4/lcmessage.m4: Likewise.
13989 * m4/ldexpl.m4: Likewise.
13990 * m4/lib-ld.m4: Likewise.
13991 * m4/lib-link.m4: Likewise.
13992 * m4/libsigsegv.m4: Likewise.
13993 * m4/link-follow.m4: Likewise.
13994 * m4/localcharset.m4: Likewise.
13995 * m4/locale-fr.m4: Likewise.
13996 * m4/locale-ja.m4: Likewise.
13997 * m4/locale-tr.m4: Likewise.
13998 * m4/locale-zh.m4: Likewise.
13999 * m4/lock.m4: Likewise.
14000 * m4/longlong.m4: Likewise.
14001 * m4/ls-mntd-fs.m4: Likewise.
14002 * m4/lstat.m4: Likewise.
14003 * m4/malloc.m4: Likewise.
14004 * m4/mathl.m4: Likewise.
14005 * m4/mbrtowc.m4: Likewise.
14006 * m4/mbstate_t.m4: Likewise.
14007 * m4/mbswidth.m4: Likewise.
14008 * m4/memchr.m4: Likewise.
14009 * m4/memcmp.m4: Likewise.
14010 * m4/memcpy.m4: Likewise.
14011 * m4/memmem.m4: Likewise.
14012 * m4/memmove.m4: Likewise.
14013 * m4/mempcpy.m4: Likewise.
14014 * m4/memrchr.m4: Likewise.
14015 * m4/memset.m4: Likewise.
14016 * m4/minmax.m4: Likewise.
14017 * m4/mkdir-slash.m4: Likewise.
14018 * m4/mkdtemp.m4: Likewise.
14019 * m4/mktime.m4: Likewise.
14020 * m4/mmap-anon.m4: Likewise.
14021 * m4/mountlist.m4: Likewise.
14022 * m4/nanosleep.m4: Likewise.
14023 * m4/nls.m4: Likewise.
14024 * m4/nocrash.m4: Likewise.
14025 * m4/open.m4: Likewise.
14026 * m4/openat.m4: Likewise.
14027 * m4/openmp.m4: Likewise.
14028 * m4/pathmax.m4: Likewise.
14029 * m4/perl.m4: Likewise.
14030 * m4/physmem.m4: Likewise.
14031 * m4/pipe.m4: Likewise.
14032 * m4/po.m4: Likewise.
14033 * m4/poll.m4: Likewise.
14034 * m4/posixtm.m4: Likewise.
14035 * m4/posixver.m4: Likewise.
14036 * m4/printf-frexp.m4: Likewise.
14037 * m4/printf-frexpl.m4: Likewise.
14038 * m4/printf-posix.m4: Likewise.
14039 * m4/printf-posix-rpl.m4: Likewise.
14040 * m4/printf.m4: Likewise.
14041 * m4/progtest.m4: Likewise.
14042 * m4/putenv.m4: Likewise.
14043 * m4/readline.m4: Likewise.
14044 * m4/readlink.m4: Likewise.
14045 * m4/readutmp.m4: Likewise.
14046 * m4/realloc.m4: Likewise.
14047 * m4/regex.m4: Likewise.
14048 * m4/relocatable.m4: Likewise.
14049 * m4/relocatable-lib.m4: Likewise.
14050 * m4/rename-dest-slash.m4: Likewise.
14051 * m4/rename.m4: Likewise.
14052 * m4/rmdir-errno.m4: Likewise.
14053 * m4/rmdir.m4: Likewise.
14054 * m4/roundf.m4: Likewise.
14055 * m4/roundl.m4: Likewise.
14056 * m4/rpmatch.m4: Likewise.
14057 * m4/save-cwd.m4: Likewise.
14058 * m4/selinux-selinux-h.m4: Likewise.
14059 * m4/setenv.m4: Likewise.
14060 * m4/settime.m4: Likewise.
14061 * m4/sig2str.m4: Likewise.
14062 * m4/sig_atomic_t.m4: Likewise.
14063 * m4/signalblocking.m4: Likewise.
14064 * m4/signbit.m4: Likewise.
14065 * m4/sigpipe.m4: Likewise.
14066 * m4/sockets.m4: Likewise.
14067 * m4/sockpfaf.m4: Likewise.
14068 * m4/st_dm_mode.m4: Likewise.
14069 * m4/stat-time.m4: Likewise.
14070 * m4/stdbool.m4: Likewise.
14071 * m4/stdint.m4: Likewise.
14072 * m4/stdint_h.m4: Likewise.
14073 * m4/stpcpy.m4: Likewise.
14074 * m4/stpncpy.m4: Likewise.
14075 * m4/strcase.m4: Likewise.
14076 * m4/strchrnul.m4: Likewise.
14077 * m4/strcspn.m4: Likewise.
14078 * m4/strdup.m4: Likewise.
14079 * m4/strftime.m4: Likewise.
14080 * m4/strndup.m4: Likewise.
14081 * m4/strnlen.m4: Likewise.
14082 * m4/strpbrk.m4: Likewise.
14083 * m4/strptime.m4: Likewise.
14084 * m4/strsep.m4: Likewise.
14085 * m4/strtod.m4: Likewise.
14086 * m4/strtoimax.m4: Likewise.
14087 * m4/strtok_r.m4: Likewise.
14088 * m4/strtol.m4: Likewise.
14089 * m4/strtoll.m4: Likewise.
14090 * m4/strtoul.m4: Likewise.
14091 * m4/strtoull.m4: Likewise.
14092 * m4/strtoumax.m4: Likewise.
14093 * m4/strverscmp.m4: Likewise.
14094 * m4/threadlib.m4: Likewise.
14095 * m4/timegm.m4: Likewise.
14096 * m4/tm_gmtoff.m4: Likewise.
14097 * m4/tmpdir.m4: Likewise.
14098 * m4/tmpfile.m4: Likewise.
14099 * m4/tzset.m4: Likewise.
14100 * m4/uintmax_t.m4: Likewise.
14101 * m4/unlinkdir.m4: Likewise.
14102 * m4/unlocked-io.m4: Likewise.
14103 * m4/uptime.m4: Likewise.
14104 * m4/userspec.m4: Likewise.
14105 * m4/utimbuf.m4: Likewise.
14106 * m4/utime.m4: Likewise.
14107 * m4/utimes-null.m4: Likewise.
14108 * m4/utimes.m4: Likewise.
14109 * m4/vararrays.m4: Likewise.
14110 * m4/vasnprintf.m4: Likewise.
14111 * m4/vfprintf-posix.m4: Likewise.
14112 * m4/vprintf-posix.m4: Likewise.
14113 * m4/wait-process.m4: Likewise.
14114 * m4/wchar_t.m4: Likewise.
14115 * m4/wint_t.m4: Likewise.
14116 * m4/write-any-file.m4: Likewise.
14117 * m4/yield.m4: Likewise.
14119 2009-01-13 Bruno Haible <bruno@clisp.org>
14121 Avoid test-copy-file.sh failures when ACL support insufficient.
14122 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
14124 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
14125 Reported by Jim Meyering.
14127 2009-01-13 Bruno Haible <bruno@clisp.org>
14129 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
14130 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
14131 * modules/unistdio/u8-printf-parse (Files): Likewise.
14132 * modules/unistdio/u32-printf-parse (Files): Likewise.
14133 * modules/unistdio/ulc-printf-parse (Files): Likewise.
14135 2009-01-13 Simon Josefsson <simon@josefsson.org>
14137 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
14138 and m4/inttypes_h.m4 too.
14140 2009-01-12 Eric Blake <ebb9@byu.net>
14142 tests: IRIX 6.2 cc can't compile -0.0 into .data
14143 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
14144 rather than at compile-time.
14145 * tests/test-floorl.c (minus_zero): Likewise.
14146 * tests/test-frexpl.c (minus_zero): Likewise.
14147 * tests/test-isnan.c (minus_zerol): Likewise.
14148 * tests/test-isnanl.h (minus_zero): Likewise.
14149 * tests/test-ldexpl.c (minus_zero): Likewise.
14150 * tests/test-roundl.c (minus_zero): Likewise.
14151 * tests/test-signbit.c (minus_zerol): Likewise.
14152 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
14153 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
14154 * tests/test-truncl.c (minus_zero): Likewise.
14155 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
14156 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
14157 Reported by Tom G. Christensen and Nelson H. F. Beebe.
14159 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
14161 regex: fix glibc bug 9697
14162 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
14165 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
14167 regex: fix glibc bug 697
14168 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
14169 being NULL also if there are no backreferences.
14171 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
14173 regex: merge glibc changes
14174 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
14175 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
14176 re_string_skip_chars, re_string_reconstruct): Likewise.
14177 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
14179 2009-01-07 Jim Meyering <meyering@redhat.com>
14181 poll: filter through cppi
14182 * lib/poll.c: Indent cpp directives to reflect nesting.
14184 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
14186 poll: don't return uninitialized
14187 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
14189 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
14191 avoid compile failure on AIX 6.1
14192 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
14193 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
14195 2009-01-04 Jim Meyering <meyering@redhat.com>
14197 remove duplicate inclusion of <stdio.h>
14198 * tests/test-fprintf-posix.c: Likewise.
14199 * tests/test-printf-posix.c: Likewise.
14200 * tests/test-snprintf-posix.c: Likewise.
14201 * tests/test-sprintf-posix.c: Likewise.
14202 * tests/test-vasprintf-posix.c: Likewise.
14203 * tests/test-vfprintf-posix.c: Likewise.
14204 * tests/test-vprintf-posix.c: Likewise.
14205 * tests/test-vsnprintf-posix.c: Likewise.
14206 * tests/test-vsprintf-posix.c: Likewise.
14208 2009-01-03 Jim Meyering <meyering@redhat.com>
14210 gnulib-tool: fix sed-based filtering
14211 * gnulib-tool (func_filter_filelist): Remove extra backslash
14212 in sed_fff_filter definition.
14214 2009-01-02 Jim Meyering <meyering@redhat.com>
14216 strftime: avoid compilation failure on Solaris 2.6
14217 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
14218 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
14219 Don't #define mbrlen or mbsinit, since now they're guaranteed to
14220 be available. Reported by Tom G. Christensen. Details in
14221 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
14223 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14224 Bruno Haible <bruno@clisp.org>
14226 Speed up gnulib-tool by doing more string processing through shell
14228 * gnulib-tool (fast_func_append): New variable.
14229 (func_remove_prefix, func_remove_suffix): New functions.
14230 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
14231 (func_filter_filelist): New function.
14232 (func_get_dependencies): Use func_remove_suffix instead of sed.
14233 (func_get_automake_snippet): Use func_filter_filelist instead of a
14234 subshell and sed invocation.
14236 2009-01-01 Bruno Haible <bruno@clisp.org>
14238 Fix a security bug.
14239 * gnulib-tool (func_import, import, update): Don't allow the characters
14240 '"', '$', '`', '\' in macro arguments that become part of commands that
14243 2009-01-01 Bruno Haible <bruno@clisp.org>
14245 * gnulib-tool (func_reset_sigpipe): Add more comments.
14247 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14249 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
14250 func_emit_tests_Makefile_am, func_import): Abort loops early if we
14251 already know the answer.
14253 2009-01-01 Jim Meyering <meyering@redhat.com>
14255 * lib/version-etc.c (version_etc_va): Update copyright year.
14257 2008-12-30 Bruno Haible <bruno@clisp.org>
14259 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
14260 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
14261 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
14263 2008-12-29 Eric Blake <ebb9@byu.net>
14265 multiarch: avoid autoconf AC_REQUIRE bug
14266 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
14267 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
14269 Reported by Bruno Haible, and analyzed in
14270 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
14272 2008-12-29 Bruno Haible <bruno@clisp.org>
14274 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
14275 files in subdirectories correctly.
14276 Reported by Ralf Wildenhues.
14278 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14280 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
14281 rather than 'join FILE -', for Solaris join.
14283 2008-12-29 Bruno Haible <bruno@clisp.org>
14285 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
14287 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14288 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14289 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14290 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
14291 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14292 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14293 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14294 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14295 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14296 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14297 * m4/nls.m4 (AM_NLS): Likewise.
14298 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
14299 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14300 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14301 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14302 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14303 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14304 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
14305 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14306 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14307 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14308 * m4/xsize.m4 (gl_XSIZE): Likewise.
14309 Suggested by Jim Meyering.
14311 2008-11-17 Bruce Korb <bkorb@gnu.org>
14313 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
14314 * lib/parse-duration.c: use a switch instead of cascading if's.
14316 2008-12-29 Eric Blake <ebb9@byu.net>
14318 wchar.h: supply WEOF on Irix 5.3
14319 * lib/wchar.in.h (wint_t): Also supply WEOF.
14320 * lib/wctype.in.h (wint_t): Likewise.
14321 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
14322 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
14323 Reported by Tom G. Christensen.
14325 2008-12-26 Bruno Haible <bruno@clisp.org>
14327 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
14330 2008-12-26 Bruno Haible <bruno@clisp.org>
14332 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
14334 2008-12-26 Bruno Haible <bruno@clisp.org>
14336 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
14337 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
14338 not __STDC_CONSTANT_MACROS.
14339 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
14341 2008-12-25 Bruno Haible <bruno@clisp.org>
14343 Add support for universal builds to vasnprintf.
14344 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
14345 universal builds, guess no.
14346 * modules/vasnprintf-posix (Depends-on): Add multiarch.
14347 * modules/vasprintf-posix (Depends-on): Likewise.
14348 * modules/fprintf-posix (Depends-on): Likewise.
14349 * modules/vfprintf-posix (Depends-on): Likewise.
14350 * modules/snprintf-posix (Depends-on): Likewise.
14351 * modules/vsnprintf-posix (Depends-on): Likewise.
14352 * modules/sprintf-posix (Depends-on): Likewise.
14353 * modules/vsprintf-posix (Depends-on): Likewise.
14354 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14355 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14356 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14357 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14358 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14359 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14360 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14362 Add support for universal builds to <inttypes.h>.
14363 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
14364 _SCNu64_PREFIX): In Apple
14365 universal builds, define directly, using _LP64.
14366 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
14367 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
14368 * modules/inttypes (Depends-on): Add multiarch.
14369 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14371 Add support for universal builds to <stdint.h>.
14372 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
14373 universal builds, define directly, using _LP64.
14374 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
14375 Apple universal builds, don't test for the size and suffix of ptrdiff_t
14377 * modules/stdint (Depends-on): Add multiarch.
14378 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14380 New module 'multiarch'.
14381 * modules/multiarch: New file.
14382 * m4/multiarch.m4: New file.
14384 2008-12-25 Bruno Haible <bruno@clisp.org>
14386 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
14388 2008-12-25 Bruno Haible <bruno@clisp.org>
14390 * modules/btowc (License): Relicense under LGPLv2+.
14391 * modules/mbsinit (License): Likewise.
14392 * modules/mbrtowc (License): Likewise.
14393 * modules/wcrtomb (License): Likewise.
14394 * modules/streq (License): Likewise.
14395 Reported by David Lutterkort <lutter@redhat.com>.
14397 2008-12-23 Bruno Haible <bruno@clisp.org>
14399 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
14401 2008-12-23 Bruno Haible <bruno@clisp.org>
14403 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
14404 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
14405 GETADDRINFO_LIB, not in LIBS.
14406 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
14407 * modules/canon-host (Link): Likewise.
14408 * NEWS: Mention the change.
14409 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
14412 2008-12-22 Bruno Haible <bruno@clisp.org>
14414 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
14415 * doc/posix-functions/iswalpha_l.texi: Likewise.
14416 * doc/posix-functions/iswblank_l.texi: Likewise.
14417 * doc/posix-functions/iswcntrl_l.texi: Likewise.
14418 * doc/posix-functions/iswctype_l.texi: Likewise.
14419 * doc/posix-functions/iswdigit_l.texi: Likewise.
14420 * doc/posix-functions/iswgraph_l.texi: Likewise.
14421 * doc/posix-functions/iswlower_l.texi: Likewise.
14422 * doc/posix-functions/iswprint_l.texi: Likewise.
14423 * doc/posix-functions/iswpunct_l.texi: Likewise.
14424 * doc/posix-functions/iswspace_l.texi: Likewise.
14425 * doc/posix-functions/iswupper_l.texi: Likewise.
14426 * doc/posix-functions/iswxdigit_l.texi: Likewise.
14427 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
14428 * doc/posix-functions/open_wmemstream.texi: Likewise.
14429 * doc/posix-functions/swscanf.texi: Likewise.
14430 * doc/posix-functions/towctrans_l.texi: Likewise.
14431 * doc/posix-functions/towlower.texi: Likewise.
14432 * doc/posix-functions/towlower_l.texi: Likewise.
14433 * doc/posix-functions/towupper.texi: Likewise.
14434 * doc/posix-functions/towupper_l.texi: Likewise.
14435 * doc/posix-functions/vfwprintf.texi: Likewise.
14436 * doc/posix-functions/vfwscanf.texi: Likewise.
14437 * doc/posix-functions/vswscanf.texi: Likewise.
14438 * doc/posix-functions/vwprintf.texi: Likewise.
14439 * doc/posix-functions/vwscanf.texi: Likewise.
14440 * doc/posix-functions/wcpcpy.texi: Likewise.
14441 * doc/posix-functions/wcpncpy.texi: Likewise.
14442 * doc/posix-functions/wcscasecmp.texi: Likewise.
14443 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
14444 * doc/posix-functions/wcscoll_l.texi: Likewise.
14445 * doc/posix-functions/wcsdup.texi: Likewise.
14446 * doc/posix-functions/wcsncasecmp.texi: Likewise.
14447 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
14448 * doc/posix-functions/wcsnlen.texi: Likewise.
14449 * doc/posix-functions/wcsnrtombs.texi: Likewise.
14450 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14451 * doc/posix-functions/wctrans_l.texi: Likewise.
14452 * doc/posix-functions/wctype_l.texi: Likewise.
14453 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
14454 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
14455 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
14456 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
14457 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
14458 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
14459 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
14460 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
14461 * doc/glibc-functions/wcschrnul.texi: Likewise.
14462 * doc/glibc-functions/wcsftime_l.texi: Likewise.
14463 * doc/glibc-functions/wcstod_l.texi: Likewise.
14464 * doc/glibc-functions/wcstof_l.texi: Likewise.
14465 * doc/glibc-functions/wcstol_l.texi: Likewise.
14466 * doc/glibc-functions/wcstold_l.texi: Likewise.
14467 * doc/glibc-functions/wcstoll_l.texi: Likewise.
14468 * doc/glibc-functions/wcstoq.texi: Likewise.
14469 * doc/glibc-functions/wcstoul_l.texi: Likewise.
14470 * doc/glibc-functions/wcstoull_l.texi: Likewise.
14471 * doc/glibc-functions/wcstouq.texi: Likewise.
14472 * doc/glibc-functions/wmempcpy.texi: Likewise.
14474 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
14475 Eric Blake <ebb9@byu.net>
14476 Paolo Bonzini <bonzini@gnu.org>
14477 Bruno Haible <bruno@clisp.org>
14479 Make c-stack work on Haiku.
14480 * lib/c-stack.c (SA_ONSTACK): Define fallback.
14481 (c_stack_action): Use SA_ONSTACK flag.
14483 2008-12-22 Bruno Haible <bruno@clisp.org>
14485 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
14487 2008-12-22 Bruno Haible <bruno@clisp.org>
14489 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
14490 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
14492 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
14494 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
14495 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
14496 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
14497 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
14499 2008-12-22 Bruno Haible <bruno@clisp.org>
14501 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
14504 2008-12-22 Eric Blake <ebb9@byu.net>
14506 Avoid gcc warnings on cygwin.
14507 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
14508 Avoid unused variable.
14509 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
14512 2008-12-22 Bruno Haible <bruno@clisp.org>
14514 Remove HAVE_MBRTOWC conditionals.
14515 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
14516 (mbscasecmp): Assume mbrtowc function.
14517 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
14518 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
14519 * lib/mbschr.c: Include mbuiter.h unconditionally.
14520 (mbschr): Assume mbrtowc function.
14521 * lib/mbscspn.c: Include mbuiter.h unconditionally.
14522 (mbscspn): Assume mbrtowc function.
14523 * lib/mbslen.c: Include mbuiter.h unconditionally.
14524 (mbslen): Assume mbrtowc function.
14525 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
14526 (mbsncasecmp): Assume mbrtowc function.
14527 * lib/mbsnlen.c: Include mbiter.h unconditionally.
14528 (mbsnlen): Assume mbrtowc function.
14529 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
14530 (mbspbrk): Assume mbrtowc function.
14531 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
14532 (mbspcasecmp): Assume mbrtowc function.
14533 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
14534 (mbsrchr): Assume mbrtowc function.
14535 * lib/mbssep.c: Include mbuiter.h unconditionally.
14536 (mbssep): Assume mbrtowc function.
14537 * lib/mbsspn.c: Include mbuiter.h unconditionally.
14538 (mbsspn): Assume mbrtowc function.
14539 * lib/mbsstr.c: Include mbuiter.h unconditionally.
14540 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
14541 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
14542 (mbstok_r): Assume mbrtowc function.
14543 * lib/propername.c: Include mbuiter.h unconditionally.
14544 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
14545 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
14546 (trim2): Assume mbrtowc function.
14547 * lib/mbswidth.c (mbsinit): Remove fallback definition.
14548 (mbsnwidth): Assume mbrtowc function.
14549 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
14550 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
14551 fallback definitions.
14552 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
14554 2008-12-22 Bruno Haible <bruno@clisp.org>
14556 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
14558 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
14560 * modules/regex: Request emulations for the mb*/wc* functions we need.
14561 * m4/regex.m4: Don't look for those functions here.
14562 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
14564 2008-12-22 Bruno Haible <bruno@clisp.org>
14566 * modules/fnmatch (Depends-on): Remove duplicated dependency.
14568 2008-12-21 Bruno Haible <bruno@clisp.org>
14570 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
14571 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
14572 (Include): Remove conditionalization.
14573 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
14574 (Include): Remove conditionalization.
14575 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
14576 (Include): Remove conditionalization.
14577 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
14578 * m4/mbfile.m4 (gl_MBFILE): Likewise.
14579 * NEWS: Mention the change.
14580 Reported by Alan Hourihane <alanh@fairlite.co.uk>
14581 via Sergey Poznyakoff <gray@gnu.org.ua>.
14583 2008-12-21 Bruno Haible <bruno@clisp.org>
14585 * MODULES.html.sh (Extended multibyte and wide character utilities
14586 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
14587 wcrtomb, wcsrtombs.
14588 (Support for systems lacking POSIX:2008): Add accept, bind, close,
14589 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
14590 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
14591 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
14593 2008-12-21 Bruno Haible <bruno@clisp.org>
14595 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
14597 2008-12-21 Bruno Haible <bruno@clisp.org>
14599 * modules/wcsnrtombs-tests: New file.
14600 * tests/test-wcsnrtombs1.sh: New file.
14601 * tests/test-wcsnrtombs2.sh: New file.
14602 * tests/test-wcsnrtombs3.sh: New file.
14603 * tests/test-wcsnrtombs4.sh: New file.
14604 * tests/test-wcsnrtombs.c: New file.
14606 New module 'wcsnrtombs'.
14607 * lib/wchar.in.h (wcsnrtombs): New declaration.
14608 * lib/wcsnrtombs.c: New file.
14609 * lib/wcsrtombs-state.c: New file.
14610 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
14611 (internal_state): Remove variable.
14612 * m4/wcsnrtombs.m4: New file.
14613 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
14615 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
14617 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
14619 * modules/wcsnrtombs: New file.
14620 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
14621 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
14623 2008-12-21 Bruno Haible <bruno@clisp.org>
14625 * modules/wcsrtombs-tests: New file.
14626 * tests/test-wcsrtombs1.sh: New file.
14627 * tests/test-wcsrtombs2.sh: New file.
14628 * tests/test-wcsrtombs3.sh: New file.
14629 * tests/test-wcsrtombs4.sh: New file.
14630 * tests/test-wcsrtombs.c: New file.
14632 New module 'wcsrtombs'.
14633 * lib/wchar.in.h (wcsrtombs): New declaration.
14634 * lib/wcsrtombs.c: New file.
14635 * m4/wcsrtombs.m4: New file.
14636 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
14637 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14638 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
14639 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14640 * modules/wcsrtombs: New file.
14641 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
14644 2008-12-21 Bruno Haible <bruno@clisp.org>
14646 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
14647 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
14648 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
14649 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
14651 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
14652 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
14653 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14654 m4/locale-zh.m4, m4/codeset.m4.
14655 * doc/posix-functions/wcrtomb.texi: Document the bug.
14657 2008-12-21 Bruno Haible <bruno@clisp.org>
14659 Work around a btowc() bug on IRIX 6.5.
14660 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
14661 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
14662 REPLACE_WTOBC if not.
14663 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
14664 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
14665 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
14667 2008-12-21 Bruno Haible <bruno@clisp.org>
14669 * modules/wcrtomb-tests: New file.
14670 * tests/test-wcrtomb.sh: New file.
14671 * tests/test-wcrtomb.c: New file.
14673 New module 'wcrtomb'.
14674 * lib/wchar.in.h (wcrtomb): New declaration.
14675 * lib/wcrtomb.c: New file.
14676 * m4/wcrtomb.m4: New file.
14677 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
14679 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
14681 * modules/wcrtomb: New file.
14682 * doc/posix-functions/wcrtomb.texi: Mention the new module.
14684 2008-12-21 Bruno Haible <bruno@clisp.org>
14686 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
14687 * modules/mbsrtowcs (Files): Likewise.
14688 * modules/wctob (Files): Likewise.
14689 * modules/c-strcase-tests (Files): Likewise.
14690 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
14691 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
14692 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
14693 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
14694 * modules/vasnprintf-posix-tests (Files): Likewise.
14696 2008-12-21 William Pursell <bill.pursell@gmail.com>
14698 gitlog-to-changelog: pass all command-line arguments to git-log
14699 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
14700 it is sometimes convenient to filter the commits in various ways.
14701 gitlog-to-changelog only allows --since to specify a start date,
14702 but git-log itself supports many other filtering mechanisms.
14703 At the moment, I want to filter by branch name. Rather than
14704 adding a --branch option to gitlog-to-changelog, it seems more
14705 flexible to simply pass all options directly to git-log and let
14706 git do the work. Notice that this effectively makes --since a
14707 redundant option for gitlog-to-changelog, but removing it would
14708 require current usage to change since calls would then require
14709 an additional '--'.
14711 2008-12-21 Bruno Haible <bruno@clisp.org>
14713 * modules/mbsnrtowcs-tests: New file.
14714 * tests/test-mbsnrtowcs1.sh: New file.
14715 * tests/test-mbsnrtowcs2.sh: New file.
14716 * tests/test-mbsnrtowcs3.sh: New file.
14717 * tests/test-mbsnrtowcs4.sh: New file.
14718 * tests/test-mbsnrtowcs.c: New file.
14720 New module 'mbsnrtowcs'.
14721 * lib/wchar.in.h (mbsnrtowcs): New declaration.
14722 * lib/mbsnrtowcs.c: New file.
14723 * lib/mbsrtowcs-state.c: New file.
14724 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
14725 (internal_state): Remove variable.
14726 * m4/mbsnrtowcs.m4: New file.
14727 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
14729 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
14730 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14731 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
14732 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14733 * modules/mbsnrtowcs: New file.
14734 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
14735 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
14736 portability problem.
14738 2008-12-21 Bruno Haible <bruno@clisp.org>
14740 Work around mbsrtowcs bug.
14741 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
14742 (gl_FUNC_MBSRTOWCS): Invoke it.
14743 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14745 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
14747 2008-12-21 Bruno Haible <bruno@clisp.org>
14749 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
14751 2008-12-21 Bruno Haible <bruno@clisp.org>
14753 Update doc for AIX.
14754 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
14755 16-bit wchar_t type.
14756 * doc/posix-functions/btowc.texi: Likewise.
14757 * doc/posix-functions/fgetwc.texi: Likewise.
14758 * doc/posix-functions/fgetws.texi: Likewise.
14759 * doc/posix-functions/fputwc.texi: Likewise.
14760 * doc/posix-functions/fputws.texi: Likewise.
14761 * doc/posix-functions/fwide.texi: Likewise.
14762 * doc/posix-functions/fwprintf.texi: Likewise.
14763 * doc/posix-functions/fwscanf.texi: Likewise.
14764 * doc/posix-functions/getwchar.texi: Likewise.
14765 * doc/posix-functions/getwc.texi: Likewise.
14766 * doc/posix-functions/iswalnum.texi: Likewise.
14767 * doc/posix-functions/iswalpha.texi: Likewise.
14768 * doc/posix-functions/iswblank.texi: Likewise.
14769 * doc/posix-functions/iswcntrl.texi: Likewise.
14770 * doc/posix-functions/iswctype.texi: Likewise.
14771 * doc/posix-functions/iswdigit.texi: Likewise.
14772 * doc/posix-functions/iswgraph.texi: Likewise.
14773 * doc/posix-functions/iswlower.texi: Likewise.
14774 * doc/posix-functions/iswprint.texi: Likewise.
14775 * doc/posix-functions/iswpunct.texi: Likewise.
14776 * doc/posix-functions/iswspace.texi: Likewise.
14777 * doc/posix-functions/iswupper.texi: Likewise.
14778 * doc/posix-functions/iswxdigit.texi: Likewise.
14779 * doc/posix-functions/mbrtowc.texi: Likewise.
14780 * doc/posix-functions/mbsrtowcs.texi: Likewise.
14781 * doc/posix-functions/mbstowcs.texi: Likewise.
14782 * doc/posix-functions/mbtowc.texi: Likewise.
14783 * doc/posix-functions/putwchar.texi: Likewise.
14784 * doc/posix-functions/putwc.texi: Likewise.
14785 * doc/posix-functions/swprintf.texi: Likewise.
14786 * doc/posix-functions/tolower.texi: Likewise.
14787 * doc/posix-functions/toupper.texi: Likewise.
14788 * doc/posix-functions/towctrans.texi: Likewise.
14789 * doc/posix-functions/ungetwc.texi: Likewise.
14790 * doc/posix-functions/vswprintf.texi: Likewise.
14791 * doc/posix-functions/wcrtomb.texi: Likewise.
14792 * doc/posix-functions/wcscat.texi: Likewise.
14793 * doc/posix-functions/wcschr.texi: Likewise.
14794 * doc/posix-functions/wcscmp.texi: Likewise.
14795 * doc/posix-functions/wcscoll.texi: Likewise.
14796 * doc/posix-functions/wcscpy.texi: Likewise.
14797 * doc/posix-functions/wcscspn.texi: Likewise.
14798 * doc/posix-functions/wcsftime.texi: Likewise.
14799 * doc/posix-functions/wcslen.texi: Likewise.
14800 * doc/posix-functions/wcsncat.texi: Likewise.
14801 * doc/posix-functions/wcsncmp.texi: Likewise.
14802 * doc/posix-functions/wcsncpy.texi: Likewise.
14803 * doc/posix-functions/wcspbrk.texi: Likewise.
14804 * doc/posix-functions/wcsrchr.texi: Likewise.
14805 * doc/posix-functions/wcsrtombs.texi: Likewise.
14806 * doc/posix-functions/wcsspn.texi: Likewise.
14807 * doc/posix-functions/wcsstr.texi: Likewise.
14808 * doc/posix-functions/wcstod.texi: Likewise.
14809 * doc/posix-functions/wcstof.texi: Likewise.
14810 * doc/posix-functions/wcstoimax.texi: Likewise.
14811 * doc/posix-functions/wcstok.texi: Likewise.
14812 * doc/posix-functions/wcstold.texi: Likewise.
14813 * doc/posix-functions/wcstoll.texi: Likewise.
14814 * doc/posix-functions/wcstol.texi: Likewise.
14815 * doc/posix-functions/wcstombs.texi: Likewise.
14816 * doc/posix-functions/wcstoull.texi: Likewise.
14817 * doc/posix-functions/wcstoul.texi: Likewise.
14818 * doc/posix-functions/wcstoumax.texi: Likewise.
14819 * doc/posix-functions/wcswidth.texi: Likewise.
14820 * doc/posix-functions/wcsxfrm.texi: Likewise.
14821 * doc/posix-functions/wctob.texi: Likewise.
14822 * doc/posix-functions/wctomb.texi: Likewise.
14823 * doc/posix-functions/wctrans.texi: Likewise.
14824 * doc/posix-functions/wctype.texi: Likewise.
14825 * doc/posix-functions/wcwidth.texi: Likewise.
14826 * doc/posix-functions/wmemchr.texi: Likewise.
14827 * doc/posix-functions/wmemcmp.texi: Likewise.
14828 * doc/posix-functions/wmemcpy.texi: Likewise.
14829 * doc/posix-functions/wmemmove.texi: Likewise.
14830 * doc/posix-functions/wmemset.texi: Likewise.
14831 * doc/posix-functions/wprintf.texi: Likewise.
14832 * doc/posix-functions/wscanf.texi: Likewise.
14834 2008-12-21 Bruno Haible <bruno@clisp.org>
14836 Update doc for HP-UX 11.11.
14837 * doc/posix-functions/btowc.texi: Clarify that the function is missing
14838 in HP-UX version 11.00, not in all versions of HP-UX 11.
14839 * doc/posix-functions/fwide.texi: Likewise.
14840 * doc/posix-functions/fwprintf.texi: Likewise.
14841 * doc/posix-functions/fwscanf.texi: Likewise.
14842 * doc/posix-functions/inet_ntop.texi: Likewise.
14843 * doc/posix-functions/inet_pton.texi: Likewise.
14844 * doc/posix-functions/mbrlen.texi: Likewise.
14845 * doc/posix-functions/mbrtowc.texi: Likewise.
14846 * doc/posix-functions/mbsinit.texi: Likewise.
14847 * doc/posix-functions/mbsrtowcs.texi: Likewise.
14848 * doc/posix-functions/swprintf.texi: Likewise.
14849 * doc/posix-functions/swscanf.texi: Likewise.
14850 * doc/posix-functions/towctrans.texi: Likewise.
14851 * doc/posix-functions/vfwprintf.texi: Likewise.
14852 * doc/posix-functions/vswprintf.texi: Likewise.
14853 * doc/posix-functions/vwprintf.texi: Likewise.
14854 * doc/posix-functions/wcrtomb.texi: Likewise.
14855 * doc/posix-functions/wcsrtombs.texi: Likewise.
14856 * doc/posix-functions/wcsstr.texi: Likewise.
14857 * doc/posix-functions/wctob.texi: Likewise.
14858 * doc/posix-functions/wctrans.texi: Likewise.
14859 * doc/posix-functions/wmemchr.texi: Likewise.
14860 * doc/posix-functions/wmemcmp.texi: Likewise.
14861 * doc/posix-functions/wmemcpy.texi: Likewise.
14862 * doc/posix-functions/wmemmove.texi: Likewise.
14863 * doc/posix-functions/wmemset.texi: Likewise.
14864 * doc/posix-functions/wprintf.texi: Likewise.
14865 * doc/posix-functions/wscanf.texi: Likewise.
14867 2008-12-21 Bruno Haible <bruno@clisp.org>
14869 Work around a portability problem.
14870 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
14871 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
14873 2008-12-20 Bruno Haible <bruno@clisp.org>
14875 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
14876 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
14877 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
14878 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
14879 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
14881 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
14882 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
14884 (GNULIB_defined_mbstate_t): New macro.
14885 (mbsinit): Redefine if REPLACE_MBSINIT is set.
14886 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
14887 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
14888 reuses the system's mbrtowc function but works around the bugs.
14889 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
14890 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
14892 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
14893 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
14894 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
14895 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
14896 REPLACE_MBSINIT if mbsinit needs to be overridden.
14897 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
14898 REPLACE_MBSINIT, REPLACE_MBRTOWC.
14899 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
14900 REPLACE_MBSINIT, REPLACE_MBRTOWC.
14901 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14903 (Depends): Add mbsinit.
14904 * modules/mbsinit (Depends): Add mbrtowc.
14905 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
14907 2008-12-20 Bruno Haible <bruno@clisp.org>
14909 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
14910 so that there are no conversion errors on AIX.
14911 * tests/test-mbsrtowcs.c (main): LIkewise.
14913 2008-12-20 Bruno Haible <bruno@clisp.org>
14915 Work around wctob bug on Solaris <= 9.
14916 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
14917 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
14918 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
14919 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
14920 * modules/wctob (Files): Add m4/locale-fr.m4.
14921 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
14923 2008-12-20 Bruno Haible <bruno@clisp.org>
14925 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
14927 * tests/test-select-in.sh: Likewise.
14928 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14930 2008-12-20 Bruno Haible <bruno@clisp.org>
14932 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
14933 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
14936 2008-12-20 Bruno Haible <bruno@clisp.org>
14938 Ensure mbstate_t is defined on HP-UX 11.11.
14939 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
14940 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
14941 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
14942 AC_USE_SYSTEM_EXTENSIONS.
14943 * modules/fnmatch (Depends-on): Add extensions.
14944 * modules/mbrlen (Depends-on): Likewise.
14945 * modules/mbrtowc (Depends-on): Likewise.
14946 * modules/mbsinit (Depends-on): Likewise.
14947 * modules/mbsrtowcs (Depends-on): Likewise.
14948 * modules/mbswidth (Depends-on): Likewise.
14949 * modules/quotearg (Depends-on): Likewise.
14950 * modules/strftime (Depends-on): Likewise.
14952 2008-12-20 Bruno Haible <bruno@clisp.org>
14954 Ensure wctob is declared on IRIX 6.5.
14955 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
14956 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
14957 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
14958 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
14960 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
14962 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
14964 2008-12-19 Bruno Haible <bruno@clisp.org>
14966 * modules/mbsrtowcs-tests: New file.
14967 * tests/test-mbsrtowcs1.sh: New file.
14968 * tests/test-mbsrtowcs2.sh: New file.
14969 * tests/test-mbsrtowcs3.sh: New file.
14970 * tests/test-mbsrtowcs4.sh: New file.
14971 * tests/test-mbsrtowcs.c: New file.
14973 New module 'mbsrtowcs'.
14974 * lib/wchar.in.h (mbsrtowcs): New declaration.
14975 * lib/mbsrtowcs.c: New file.
14976 * m4/mbsrtowcs.m4: New file.
14977 * modules/mbsrtowcs: New file.
14978 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
14980 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
14982 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
14984 2008-12-19 Bruno Haible <bruno@clisp.org>
14986 New module 'mbrlen'.
14987 * lib/wchar.in.h (mbrlen): New declaration.
14988 * lib/mbrlen.c: New file.
14989 * m4/mbrlen.m4: New file.
14990 * modules/mbrlen: New file.
14991 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
14993 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
14995 * doc/posix-functions/mbrlen.texi: Document the new module.
14997 2008-12-19 Bruno Haible <bruno@clisp.org>
14999 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
15000 * modules/mbrtowc (Depends-on): Add verify.
15001 Suggested by Paul Eggert.
15003 2008-12-18 Bruno Haible <bruno@clisp.org>
15005 * modules/mbsinit-tests: New file.
15006 * tests/test-mbsinit.sh: New file.
15007 * tests/test-mbsinit.c: New file.
15009 2008-12-18 Bruno Haible <bruno@clisp.org>
15011 * modules/mbrtowc-tests: New file.
15012 * tests/test-mbrtowc1.sh: New file.
15013 * tests/test-mbrtowc2.sh: New file.
15014 * tests/test-mbrtowc3.sh: New file.
15015 * tests/test-mbrtowc4.sh: New file.
15016 * tests/test-mbrtowc.c: New file.
15018 New module 'mbrtowc'.
15019 * lib/wchar.in.h (mbstate_t): Override when the system does not have
15020 mbsinit and mbrtowc.
15021 (mbrtowc): New declaration.
15022 * lib/mbrtowc.c: New file.
15023 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
15024 * modules/mbrtowc: New file.
15025 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
15027 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
15029 * doc/posix-functions/mbrtowc.texi: Document the new module.
15031 2008-12-18 Bruno Haible <bruno@clisp.org>
15033 New module 'wctob'.
15034 * lib/wchar.in.h (wctob): New declaration.
15035 * lib/wctob.c: New file.
15036 * m4/wctob.m4: New file.
15037 * modules/wctob: New file.
15038 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
15040 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
15041 * doc/posix-functions/wctob.texi: Document the new module.
15043 2008-12-18 Bruno Haible <bruno@clisp.org>
15045 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
15046 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
15048 2008-12-18 Simon Josefsson <simon@josefsson.org>
15050 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
15051 G. Christensen" <tgc@jupiterrise.com>.
15053 * lib/flock.c: Need to include errno.h. Reported by "Tom
15054 G. Christensen" <tgc@jupiterrise.com>.
15056 * lib/flock.c: Need to include string.h. Reported by "Tom
15057 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
15060 2008-12-18 Bruno Haible <bruno@clisp.org>
15062 * m4/locale-ja.m4: New file, from GNU gettext.
15064 2008-12-17 Bruno Haible <bruno@clisp.org>
15066 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
15067 Suggested by Eric Blake.
15069 2008-12-17 Bruno Haible <bruno@clisp.org>
15071 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
15073 2008-12-17 Bruno Haible <bruno@clisp.org>
15075 * lib/mbsinit.c: Include verify.h. Verify an assumption.
15076 * modules/mbsinit (Depends-on): Add verify.
15077 Suggested by Paul Eggert.
15079 2008-12-17 Bruno Haible <bruno@clisp.org>
15081 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
15082 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
15084 * m4/mbiter.m4 (gl_MBITER): LIkewise.
15085 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
15086 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
15087 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
15088 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
15089 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
15090 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
15091 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
15092 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
15093 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
15094 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
15095 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
15096 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
15097 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
15098 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
15099 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15100 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
15101 * modules/trim (configure.ac): Likewise.
15103 2008-12-17 Bruno Haible <bruno@clisp.org>
15105 * modules/btowc-tests: New file.
15106 * tests/test-btowc1.sh: New file.
15107 * tests/test-btowc2.sh: New file.
15108 * tests/test-btowc.c: New file.
15110 New module 'btowc'.
15111 * lib/wchar.in.h (btowc): New declaration.
15112 * lib/btowc.c: New file.
15113 * m4/btowc.m4: New file.
15114 * modules/btowc: New file.
15115 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
15117 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
15118 * doc/posix-functions/btowc.texi: Document the new module.
15120 2008-12-17 Bruno Haible <bruno@clisp.org>
15122 New module 'mbsinit'.
15123 * lib/wchar.in.h (mbsinit): New declaration.
15124 * lib/mbsinit.c: New file.
15125 * m4/mbsinit.m4: New file.
15126 * modules/mbsinit: New file.
15127 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
15129 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
15131 * doc/posix-functions/mbsinit.texi: Document the new module.
15133 2008-12-16 Bruno Haible <bruno@clisp.org>
15135 * lib/unistd.in.h: Add comment.
15136 * tests/test-environ.c: Don't include <stdlib.h>.
15138 2008-12-16 Bruno Haible <bruno@clisp.org>
15140 * lib/parse-duration.h (parse_duration): Document return value
15142 * lib/parse-duration.c: Include specification header first. Add
15145 (parse_year_month_day, parse_hour_minute_second): Move side effects
15146 outside of strchr call.
15147 (parse_non_iso8601): Move side effects outside of isspace call.
15148 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
15151 2008-12-16 Bruno Haible <bruno@clisp.org>
15153 * tests/test-parse-duration.sh: Produce no output when the test
15156 2008-12-16 Bruno Haible <bruno@clisp.org>
15158 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
15161 2008-12-15 Bruno Haible <bruno@clisp.org>
15163 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
15164 * doc/glibc-functions/flistxattr.texi: Likewise.
15165 * doc/glibc-functions/fopencookie.texi: Likewise.
15166 * doc/glibc-functions/fremovexattr.texi: Likewise.
15167 * doc/glibc-functions/fsetxattr.texi: Likewise.
15168 * doc/glibc-functions/getxattr.texi: Likewise.
15169 * doc/glibc-functions/lgetxattr.texi: Likewise.
15170 * doc/glibc-functions/listxattr.texi: Likewise.
15171 * doc/glibc-functions/llistxattr.texi: Likewise.
15172 * doc/glibc-functions/lremovexattr.texi: Likewise.
15173 * doc/glibc-functions/lsetxattr.texi: Likewise.
15174 * doc/glibc-functions/removexattr.texi: Likewise.
15175 * doc/glibc-functions/setxattr.texi: Likewise.
15176 * doc/posix-functions/open_memstream.texi: Likewise.
15178 2008-12-15 Eric Blake <ebb9@byu.net>
15180 Update doc for cygwin 1.7.
15181 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
15183 * doc/posix-functions/fchmodat.texi: Likewise.
15184 * doc/posix-functions/fchownat.texi: Likewise.
15185 * doc/posix-functions/fdopendir.texi: Likewise.
15186 * doc/posix-functions/fmemopen.texi: Likewise.
15187 * doc/posix-functions/freeaddrinfo.texi: Likewise.
15188 * doc/posix-functions/fstatat.texi: Likewise.
15189 * doc/posix-functions/futimens.texi: Likewise.
15190 * doc/posix-functions/gai_strerror.texi: Likewise.
15191 * doc/posix-functions/getaddrinfo.texi: Likewise.
15192 * doc/posix-functions/getnameinfo.texi: Likewise.
15193 * doc/posix-functions/if_freenameindex.texi: Likewise.
15194 * doc/posix-functions/if_indextoname.texi: Likewise.
15195 * doc/posix-functions/if_nameindex.texi: Likewise.
15196 * doc/posix-functions/if_nametoindex.texi: Likewise.
15197 * doc/posix-functions/insque.texi: Likewise.
15198 * doc/posix-functions/linkat.texi: Likewise.
15199 * doc/posix-functions/llrint.texi: Likewise.
15200 * doc/posix-functions/llrintf.texi: Likewise.
15201 * doc/posix-functions/llrintl.texi: Likewise.
15202 * doc/posix-functions/lockf.texi: Likewise.
15203 * doc/posix-functions/lrintl.texi: Likewise.
15204 * doc/posix-functions/mkdirat.texi: Likewise.
15205 * doc/posix-functions/mkfifoat.texi: Likewise.
15206 * doc/posix-functions/mknodat.texi: Likewise.
15207 * doc/posix-functions/mq_close.texi: Likewise.
15208 * doc/posix-functions/mq_getattr.texi: Likewise.
15209 * doc/posix-functions/mq_notify.texi: Likewise.
15210 * doc/posix-functions/mq_open.texi: Likewise.
15211 * doc/posix-functions/mq_receive.texi: Likewise.
15212 * doc/posix-functions/mq_send.texi: Likewise.
15213 * doc/posix-functions/mq_setattr.texi: Likewise.
15214 * doc/posix-functions/mq_timedreceive.texi: Likewise.
15215 * doc/posix-functions/mq_timedsend.texi: Likewise.
15216 * doc/posix-functions/mq_unlink.texi: Likewise.
15217 * doc/posix-functions/open_memstream.texi: Likewise.
15218 * doc/posix-functions/openat.texi: Likewise.
15219 * doc/posix-functions/posix_fadvise.texi: Likewise.
15220 * doc/posix-functions/posix_fallocate.texi: Likewise.
15221 * doc/posix-functions/posix_madvise.texi: Likewise.
15222 * doc/posix-functions/posix_memalign.texi: Likewise.
15223 * doc/posix-functions/posix_openpt.texi: Likewise.
15224 * doc/posix-functions/readlinkat.texi: Likewise.
15225 * doc/posix-functions/remque.texi: Likewise.
15226 * doc/posix-functions/renameat.texi: Likewise.
15227 * doc/posix-functions/rintl.texi: Likewise.
15228 * doc/posix-functions/sem_unlink.texi: Likewise.
15229 * doc/posix-functions/shm_open.texi: Likewise.
15230 * doc/posix-functions/shm_unlink.texi: Likewise.
15231 * doc/posix-functions/signgam.texi: Likewise.
15232 * doc/posix-functions/sigset.texi: Likewise.
15233 * doc/posix-functions/stpcpy.texi: Likewise.
15234 * doc/posix-functions/stpncpy.texi: Likewise.
15235 * doc/posix-functions/strerror.texi: Likewise.
15236 * doc/posix-functions/strtod.texi: Likewise.
15237 * doc/posix-functions/symlinkat.texi: Likewise.
15238 * doc/posix-functions/unlinkat.texi: Likewise.
15239 * doc/posix-functions/utimensat.texi: Likewise.
15240 * doc/glibc-functions/bindresvport.texi: Likewise.
15241 * doc/glibc-functions/dn_expand.texi: Likewise.
15242 * doc/glibc-functions/exp10.texi: Likewise.
15243 * doc/glibc-functions/exp10f.texi: Likewise.
15244 * doc/glibc-functions/fgetxattr.texi: Likewise.
15245 * doc/glibc-functions/flistxattr.texi: Likewise.
15246 * doc/glibc-functions/fopencookie.texi: Likewise.
15247 * doc/glibc-functions/freeifaddrs.texi: Likewise.
15248 * doc/glibc-functions/fremovexattr.texi: Likewise.
15249 * doc/glibc-functions/fsetxattr.texi: Likewise.
15250 * doc/glibc-functions/getifaddrs.texi: Likewise.
15251 * doc/glibc-functions/getxattr.texi: Likewise.
15252 * doc/glibc-functions/lgetxattr.texi: Likewise.
15253 * doc/glibc-functions/listxattr.texi: Likewise.
15254 * doc/glibc-functions/llistxattr.texi: Likewise.
15255 * doc/glibc-functions/lremovexattr.texi: Likewise.
15256 * doc/glibc-functions/lsetxattr.texi: Likewise.
15257 * doc/glibc-functions/pow10.texi: Likewise.
15258 * doc/glibc-functions/pow10f.texi: Likewise.
15259 * doc/glibc-functions/rcmd_af.texi: Likewise.
15260 * doc/glibc-functions/removexattr.texi: Likewise.
15261 * doc/glibc-functions/res_init.texi: Likewise.
15262 * doc/glibc-functions/res_mkquery.texi: Likewise.
15263 * doc/glibc-functions/res_query.texi: Likewise.
15264 * doc/glibc-functions/res_querydomain.texi: Likewise.
15265 * doc/glibc-functions/res_send.texi: Likewise.
15266 * doc/glibc-functions/rresvport_af.texi: Likewise.
15267 * doc/glibc-functions/setxattr.texi: Likewise.
15268 * doc/glibc-functions/strcasestr.texi: Likewise.
15270 2008-12-15 Bruno Haible <bruno@clisp.org>
15272 Fix compilation error on OSF/1 4.0.
15273 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
15274 <sys/time.h>, simply delegate to the system header.
15275 Reported by Daniel Richard G. <oss@teragram.com>.
15277 2008-12-15 Bruno Haible <bruno@clisp.org>
15279 * doc/posix-functions/openat.texi: Mention the 'openat' module.
15280 * doc/posix-functions/fchmodat.texi: Likewise.
15281 * doc/posix-functions/fchownat.texi: Likewise.
15282 * doc/posix-functions/fdopendir.texi: Likewise.
15283 * doc/posix-functions/fstatat.texi: Likewise.
15284 * doc/posix-functions/mkdirat.texi: Likewise.
15285 * doc/posix-functions/unlinkat.texi: Likewise.
15287 2008-12-14 Bruno Haible <bruno@clisp.org>
15289 Update doc for POSIX:2008.
15290 * doc/posix-functions/faccessat.texi: New file.
15291 * doc/posix-functions/fchmodat.texi: New file.
15292 * doc/posix-functions/fchownat.texi: New file.
15293 * doc/posix-functions/fdopendir.texi: New file.
15294 * doc/posix-functions/fstatat.texi: New file.
15295 * doc/posix-functions/futimens.texi: New file.
15296 * doc/posix-functions/linkat.texi: New file.
15297 * doc/posix-functions/mkdirat.texi: New file.
15298 * doc/posix-functions/mkfifoat.texi: New file.
15299 * doc/posix-functions/mknodat.texi: New file.
15300 * doc/posix-functions/open_wmemstream.texi: New file.
15301 * doc/posix-functions/openat.texi: New file.
15302 * doc/posix-functions/psiginfo.texi: New file.
15303 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
15304 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
15305 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
15306 * doc/posix-functions/readlinkat.texi: New file.
15307 * doc/posix-functions/renameat.texi: New file.
15308 * doc/posix-functions/strerror_l.texi: New file.
15309 * doc/posix-functions/symlinkat.texi: New file.
15310 * doc/posix-functions/unlinkat.texi: New file.
15311 * doc/posix-functions/utimensat.texi: New file.
15312 * doc/gnulib.texi (Function Substitutes): Add these subsections.
15314 2008-12-14 Bruno Haible <bruno@clisp.org>
15316 Update doc for POSIX:2008.
15317 * doc/posix-functions/alphasort.texi: Renamed from
15318 doc/glibc-functions/alphasort.texi.
15319 * doc/posix-functions/dirfd.texi: Renamed from
15320 doc/glibc-functions/dirfd.texi.
15321 * doc/posix-functions/dprintf.texi: Renamed from
15322 doc/glibc-functions/dprintf.texi.
15323 * doc/posix-functions/duplocale.texi: Renamed from
15324 doc/glibc-functions/duplocale.texi.
15325 * doc/posix-functions/fexecve.texi: Renamed from
15326 doc/glibc-functions/fexecve.texi.
15327 * doc/posix-functions/fmemopen.texi: Renamed from
15328 doc/glibc-functions/fmemopen.texi.
15329 * doc/posix-functions/freelocale.texi: Renamed from
15330 doc/glibc-functions/freelocale.texi.
15331 * doc/posix-functions/getdate_err.texi: Renamed from
15332 doc/glibc-functions/getdate_err.texi.
15333 * doc/posix-functions/isalnum_l.texi: Renamed from
15334 doc/glibc-functions/isalnum_l.texi.
15335 * doc/posix-functions/isalpha_l.texi: Renamed from
15336 doc/glibc-functions/isalpha_l.texi.
15337 * doc/posix-functions/isblank_l.texi: Renamed from
15338 doc/glibc-functions/isblank_l.texi.
15339 * doc/posix-functions/iscntrl_l.texi: Renamed from
15340 doc/glibc-functions/iscntrl_l.texi.
15341 * doc/posix-functions/isdigit_l.texi: Renamed from
15342 doc/glibc-functions/isdigit_l.texi.
15343 * doc/posix-functions/isgraph_l.texi: Renamed from
15344 doc/glibc-functions/isgraph_l.texi.
15345 * doc/posix-functions/islower_l.texi: Renamed from
15346 doc/glibc-functions/islower_l.texi.
15347 * doc/posix-functions/isprint_l.texi: Renamed from
15348 doc/glibc-functions/isprint_l.texi.
15349 * doc/posix-functions/ispunct_l.texi: Renamed from
15350 doc/glibc-functions/ispunct_l.texi.
15351 * doc/posix-functions/isspace_l.texi: Renamed from
15352 doc/glibc-functions/isspace_l.texi.
15353 * doc/posix-functions/isupper_l.texi: Renamed from
15354 doc/glibc-functions/isupper_l.texi.
15355 * doc/posix-functions/iswalnum_l.texi: Renamed from
15356 doc/glibc-functions/iswalnum_l.texi.
15357 * doc/posix-functions/iswalpha_l.texi: Renamed from
15358 doc/glibc-functions/iswalpha_l.texi.
15359 * doc/posix-functions/iswblank_l.texi: Renamed from
15360 doc/glibc-functions/iswblank_l.texi.
15361 * doc/posix-functions/iswcntrl_l.texi: Renamed from
15362 doc/glibc-functions/iswcntrl_l.texi.
15363 * doc/posix-functions/iswctype_l.texi: Renamed from
15364 doc/glibc-functions/iswctype_l.texi.
15365 * doc/posix-functions/iswdigit_l.texi: Renamed from
15366 doc/glibc-functions/iswdigit_l.texi.
15367 * doc/posix-functions/iswgraph_l.texi: Renamed from
15368 doc/glibc-functions/iswgraph_l.texi.
15369 * doc/posix-functions/iswlower_l.texi: Renamed from
15370 doc/glibc-functions/iswlower_l.texi.
15371 * doc/posix-functions/iswprint_l.texi: Renamed from
15372 doc/glibc-functions/iswprint_l.texi.
15373 * doc/posix-functions/iswpunct_l.texi: Renamed from
15374 doc/glibc-functions/iswpunct_l.texi.
15375 * doc/posix-functions/iswspace_l.texi: Renamed from
15376 doc/glibc-functions/iswspace_l.texi.
15377 * doc/posix-functions/iswupper_l.texi: Renamed from
15378 doc/glibc-functions/iswupper_l.texi.
15379 * doc/posix-functions/iswxdigit_l.texi: Renamed from
15380 doc/glibc-functions/iswxdigit_l.texi.
15381 * doc/posix-functions/isxdigit_l.texi: Renamed from
15382 doc/glibc-functions/isxdigit_l.texi.
15383 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
15384 doc/glibc-functions/mbsnrtowcs.texi.
15385 * doc/posix-functions/mkdtemp.texi: Renamed from
15386 doc/glibc-functions/mkdtemp.texi.
15387 * doc/posix-functions/newlocale.texi: Renamed from
15388 doc/glibc-functions/newlocale.texi.
15389 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
15390 doc/glibc-functions/nl_langinfo_l.texi.
15391 * doc/posix-functions/open_memstream.texi: Renamed from
15392 doc/glibc-functions/open_memstream.texi.
15393 * doc/posix-functions/opterr.texi: Renamed from
15394 doc/glibc-functions/opterr.texi.
15395 * doc/posix-functions/optind.texi: Renamed from
15396 doc/glibc-functions/optind.texi.
15397 * doc/posix-functions/optopt.texi: Renamed from
15398 doc/glibc-functions/optopt.texi.
15399 * doc/posix-functions/psignal.texi: Renamed from
15400 doc/glibc-functions/psignal.texi.
15401 * doc/posix-functions/scandir.texi: Renamed from
15402 doc/glibc-functions/scandir.texi.
15403 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
15404 doc/glibc-functions/sched_get_priority_min.texi.
15405 * doc/posix-functions/signgam.texi: Renamed from
15406 doc/glibc-functions/signgam.texi.
15407 * doc/posix-functions/stpcpy.texi: Renamed from
15408 doc/glibc-functions/stpcpy.texi.
15409 * doc/posix-functions/stpncpy.texi: Renamed from
15410 doc/glibc-functions/stpncpy.texi.
15411 * doc/posix-functions/strcasecmp_l.texi: Renamed from
15412 doc/glibc-functions/strcasecmp_l.texi.
15413 * doc/posix-functions/strcoll_l.texi: Renamed from
15414 doc/glibc-functions/strcoll_l.texi.
15415 * doc/posix-functions/strfmon_l.texi: Renamed from
15416 doc/glibc-functions/strfmon_l.texi.
15417 * doc/posix-functions/strftime_l.texi: Renamed from
15418 doc/glibc-functions/strftime_l.texi.
15419 * doc/posix-functions/strncasecmp_l.texi: Renamed from
15420 doc/glibc-functions/strncasecmp_l.texi.
15421 * doc/posix-functions/strndup.texi: Renamed from
15422 doc/glibc-functions/strndup.texi.
15423 * doc/posix-functions/strnlen.texi: Renamed from
15424 doc/glibc-functions/strnlen.texi.
15425 * doc/posix-functions/strsignal.texi: Renamed from
15426 doc/glibc-functions/strsignal.texi.
15427 * doc/posix-functions/strxfrm_l.texi: Renamed from
15428 doc/glibc-functions/strxfrm_l.texi.
15429 * doc/posix-functions/timer_gettime.texi: Renamed from
15430 doc/glibc-functions/timer_gettime.texi.
15431 * doc/posix-functions/tolower_l.texi: Renamed from
15432 doc/glibc-functions/tolower_l.texi.
15433 * doc/posix-functions/toupper_l.texi: Renamed from
15434 doc/glibc-functions/toupper_l.texi.
15435 * doc/posix-functions/towctrans_l.texi: Renamed from
15436 doc/glibc-functions/towctrans_l.texi.
15437 * doc/posix-functions/towlower_l.texi: Renamed from
15438 doc/glibc-functions/towlower_l.texi.
15439 * doc/posix-functions/towupper_l.texi: Renamed from
15440 doc/glibc-functions/towupper_l.texi.
15441 * doc/posix-functions/uselocale.texi: Renamed from
15442 doc/glibc-functions/uselocale.texi.
15443 * doc/posix-functions/vdprintf.texi: Renamed from
15444 doc/glibc-functions/vdprintf.texi.
15445 * doc/posix-functions/wcpcpy.texi:
15446 Renamed from doc/glibc-functions/wcpcpy.texi.
15447 * doc/posix-functions/wcpncpy.texi: Renamed from
15448 doc/glibc-functions/wcpncpy.texi.
15449 * doc/posix-functions/wcscasecmp.texi: Renamed from
15450 doc/glibc-functions/wcscasecmp.texi.
15451 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
15452 doc/glibc-functions/wcscasecmp_l.texi.
15453 * doc/posix-functions/wcscoll_l.texi: Renamed from
15454 doc/glibc-functions/wcscoll_l.texi.
15455 * doc/posix-functions/wcsdup.texi: Renamed from
15456 doc/glibc-functions/wcsdup.texi.
15457 * doc/posix-functions/wcsncasecmp.texi: Renamed from
15458 doc/glibc-functions/wcsncasecmp.texi.
15459 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
15460 doc/glibc-functions/wcsncasecmp_l.texi.
15461 * doc/posix-functions/wcsnlen.texi: Renamed from
15462 doc/glibc-functions/wcsnlen.texi.
15463 * doc/posix-functions/wcsnrtombs.texi: Renamed from
15464 doc/glibc-functions/wcsnrtombs.texi.
15465 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
15466 doc/glibc-functions/wcsxfrm_l.texi.
15467 * doc/posix-functions/wctrans_l.texi: Renamed from
15468 doc/glibc-functions/wctrans_l.texi.
15469 * doc/posix-functions/wctype_l.texi: Renamed from
15470 doc/glibc-functions/wctype_l.texi.
15471 * doc/gnulib.texi (Function Substitutes): Add these subsections.
15472 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
15473 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
15474 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
15476 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
15479 2008-12-14 Bruno Haible <bruno@clisp.org>
15481 Update doc for POSIX:2008.
15482 * doc/posix-functions/*.texi: Update URL of POSIX specification.
15484 2008-12-14 Bruno Haible <bruno@clisp.org>
15486 Update doc for POSIX:2008.
15487 * doc/pastposix-functions/bcmp.texi: Renamed from
15488 doc/posix-functions/bcmp.texi.
15489 * doc/pastposix-functions/bcopy.texi: Renamed from
15490 doc/posix-functions/bcopy.texi.
15491 * doc/pastposix-functions/bsd_signal.texi: Renamed from
15492 doc/posix-functions/bsd_signal.texi.
15493 * doc/pastposix-functions/bzero.texi: Renamed from
15494 doc/posix-functions/bzero.texi.
15495 * doc/pastposix-functions/ecvt.texi: Renamed from
15496 doc/posix-functions/ecvt.texi.
15497 * doc/pastposix-functions/fcvt.texi: Renamed from
15498 doc/posix-functions/fcvt.texi.
15499 * doc/pastposix-functions/ftime.texi: Renamed from
15500 doc/posix-functions/ftime.texi.
15501 * doc/pastposix-functions/gcvt.texi: Renamed from
15502 doc/posix-functions/gcvt.texi.
15503 * doc/pastposix-functions/getcontext.texi: Renamed from
15504 doc/posix-functions/getcontext.texi.
15505 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
15506 doc/posix-functions/gethostbyaddr.texi.
15507 * doc/pastposix-functions/gethostbyname.texi: Renamed from
15508 doc/posix-functions/gethostbyname.texi.
15509 * doc/pastposix-functions/getwd.texi: Renamed from
15510 doc/posix-functions/getwd.texi.
15511 * doc/pastposix-functions/h_errno.texi: Renamed from
15512 doc/posix-functions/h_errno.texi.
15513 * doc/pastposix-functions/index.texi: Renamed from
15514 doc/posix-functions/index.texi.
15515 * doc/pastposix-functions/makecontext.texi: Renamed from
15516 doc/posix-functions/makecontext.texi.
15517 * doc/pastposix-functions/mktemp.texi: Renamed from
15518 doc/posix-functions/mktemp.texi.
15519 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
15520 doc/posix-functions/pthread_attr_getstackaddr.texi.
15521 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
15522 doc/posix-functions/pthread_attr_setstackaddr.texi.
15523 * doc/pastposix-functions/rindex.texi: Renamed from
15524 doc/posix-functions/rindex.texi.
15525 * doc/pastposix-functions/scalb.texi: Renamed from
15526 doc/posix-functions/scalb.texi.
15527 * doc/pastposix-functions/setcontext.texi: Renamed from
15528 doc/posix-functions/setcontext.texi.
15529 * doc/pastposix-functions/swapcontext.texi: Renamed from
15530 doc/posix-functions/swapcontext.texi.
15531 * doc/pastposix-functions/ualarm.texi: Renamed from
15532 doc/posix-functions/ualarm.texi.
15533 * doc/pastposix-functions/usleep.texi: Renamed from
15534 doc/posix-functions/usleep.texi.
15535 * doc/pastposix-functions/vfork.texi: Renamed from
15536 doc/posix-functions/vfork.texi.
15537 * doc/pastposix-functions/wcswcs.texi: Renamed from
15538 doc/posix-functions/wcswcs.texi.
15539 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
15540 (Function Substitutes): Update.
15542 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15544 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
15547 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15548 Bruno Haible <bruno@clisp.org>
15550 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
15552 2008-12-13 Bruno Haible <bruno@clisp.org>
15554 * modules/strtoull (Depends-on): Remove unistd.
15556 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15558 * modules/strtoull (Depends-on): Add stdlib.
15560 2008-12-11 Simon Josefsson <simon@josefsson.org>
15562 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
15564 2008-12-10 Jim Meyering <meyering@redhat.com>
15566 gl_ASSERT: don't say assertions are disabled when they're not
15567 * m4/assert.m4 (gl_ASSERT): Do not make configure report
15568 "checking whether to enable assertions... no", when they are in
15569 fact enabled. This is solely a bug in the output of configure.
15570 In spite of saying "no", NDEBUG was not defined in that case.
15571 Also, as noted by Eric Blake, leave assertions enabled upon
15572 --enable-assert=INVALID.
15574 2008-12-10 Bruno Haible <bruno@clisp.org>
15576 Change MODULES.html to refer to POSIX:2008 where possible.
15577 * MODULES.html.sh (POSIX2008_URL): New variable.
15578 (posix_headers): Remove sys/timeb, ucontext.
15579 (posix2001_headers): New variable.
15580 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
15581 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
15582 index, makecontext, mktemp, pthread_attr_getstackaddr,
15583 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
15584 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
15585 (posix2001_functions): New variable.
15586 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
15589 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15591 add missing include to parse-duration.c
15592 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
15593 * modules/parse-duration (Depends-on): Add xalloc.
15595 fix sed script reading maint.mk
15596 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
15597 (syntax-check-rules): Use it.
15599 2008-12-09 Bruno Haible <bruno@clisp.org>
15601 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
15602 MacOS X 10.4/PowerPC.
15603 Reported by Simon Josefsson.
15605 2008-12-08 Jim Meyering <meyering@redhat.com>
15607 work around mingw's lack of some S_IF definitions
15608 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
15609 Reported by Simon Josefsson.
15611 2008-12-08 Bruno Haible <bruno@clisp.org>
15613 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
15614 applied to variables. Needed on MacOS X 10.4/PowerPC.
15615 Reported by Simon Josefsson.
15617 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
15618 and Eric Blake <ebb9@byu.net>
15620 assert: honor --enable-assert
15621 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
15622 order to honor --enable-assert, rather than treating it as a
15623 synonym for --disable-assert.
15625 2008-12-08 Jim Meyering <meyering@redhat.com>
15627 * lib/posixtm.c: Remove now-useless declaration of mktime.
15629 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
15631 2008-12-07 Bruno Haible <bruno@clisp.org>
15633 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
15634 test_once): Mark functions as static.
15635 * tests/test-tls.c (test_tls): Likewise.
15637 2008-12-07 Bruno Haible <bruno@clisp.org>
15639 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
15640 iconv_register_autodetect.
15642 2008-12-07 Jim Meyering <meyering@redhat.com>
15644 posixtm.c: avoid a warning
15645 * lib/posixtm.c (posixtime): Don't initialize tm0.
15646 It's no longer needed to placate gcc4's -Wuninitialized,
15647 and the attempt to placate would elicit a new warning.
15649 unicodeio.c: mark unused parameters
15650 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15651 (fallback_failure_callback): Likewise.
15653 2008-12-07 Bruno Haible <bruno@clisp.org>
15655 * gnulib-tool (func_create_testdir): When building the tests
15656 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
15657 Reported by Simon Josefsson.
15659 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15661 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
15663 2008-12-06 Bruno Haible <bruno@clisp.org>
15665 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
15666 Suggested by Eric Blake.
15668 2008-12-06 Bruno Haible <bruno@clisp.org>
15670 Fix a c-stack test failure on MacOS X.
15671 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
15672 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
15673 handler for SIGBUS as well.
15674 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
15675 install a signal handler for SIGBUS as well.
15676 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
15678 2008-12-06 Bruno Haible <bruno@clisp.org>
15680 Advocacy documentation.
15681 * doc/gnulib-intro.texi (Benefits): New section.
15682 * doc/gnulib.texi: Update.
15684 2008-12-06 Bruno Haible <bruno@clisp.org>
15686 Document the 'manywarnings' module.
15687 * doc/manywarnings.texi: New file.
15688 * doc/gnulib.texi: Include it.
15690 2008-12-05 Eric Blake <ebb9@byu.net>
15692 tests: silence some gcc warnings
15693 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
15694 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
15697 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15698 Bruno Haible <bruno@clisp.org>
15700 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
15702 2008-11-29 Jim Meyering <meyering@redhat.com>
15704 unicodeio.c: mark unused parameters
15705 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15706 (fallback_failure_callback): Likewise.
15709 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
15710 (set_stat_type): Return S_IF*-valued "type" directly.
15711 Prompted by James Youngman's spotting a related bug.
15712 Confirmed by further testing through find.
15714 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
15715 * lib/fts.c (D_TYPE): Define.
15716 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
15717 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
15718 (s_ifmt_shift_bits): New function.
15719 (set_stat_type): New function.
15720 (fts_build): When not calling fts_stat, call set_stat_type
15721 to propagate dirent.d_type info to fts_read caller.
15722 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
15723 fts_statp->st_mode type information may be valid.
15725 2008-11-28 Simon Josefsson <simon@josefsson.org>
15727 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
15728 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
15731 2008-11-20 Bruno Haible <bruno@clisp.org>
15733 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
15734 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
15736 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
15737 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
15738 * modules/math (Makefile.am): Substitute
15739 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
15740 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15742 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
15743 Bruno Haible <bruno@clisp.org>
15745 * lib/stdint.in.h: Define all type macros so that their expansion is
15746 a single typedef'ed token. Fixes a compilation failure in Boost which
15747 does "using ::int8_t;".
15749 2008-11-18 Simon Josefsson <simon@josefsson.org>
15751 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
15752 gl_MANYWARN_ALL_GCC.
15753 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
15754 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
15755 * modules/manywarnings: New file.
15756 * MODULES.html.sh: Mention manywarnings module.
15758 2008-11-18 Bruno Haible <bruno@clisp.org>
15760 * doc/gnulib-tool.texi (Unit tests): New section.
15762 2008-11-18 Simon Josefsson <simon@josefsson.org>
15764 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
15765 paths like 'lib/po/foo.po'.
15767 2008-11-17 Simon Josefsson <simon@josefsson.org>
15769 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
15770 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
15772 2008-11-17 Simon Josefsson <simon@josefsson.org>
15774 * m4/warnings.m4: Use CPPFLAGS to really check whether the
15777 2008-11-17 Simon Josefsson <simon@josefsson.org>
15779 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
15781 2008-11-17 Bruce Korb <bkorb@gnu.org>
15783 * modules/parse-duration-tests: New file.
15784 * tests/test-parse-duration.sh: New file.
15785 * tests/test-parse-duration.c: New file.
15787 New module 'parse-duration'.
15788 * lib/parse-duration.h: New file.
15789 * lib/parse-duration.c: New file.
15790 * modules/parse-duration: New file.
15792 2008-11-17 Bruno Haible <bruno@clisp.org>
15794 * tests/test-select-out.sh: Comment out the first pipe test.
15795 Reported by Simon Josefsson.
15797 2008-11-17 Bruno Haible <bruno@clisp.org>
15799 * modules/getaddrinfo (Depends-on): Add servent, hostent.
15800 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
15803 2008-11-17 Bruno Haible <bruno@clisp.org>
15805 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
15806 -lnetwork and -lnet. Needed for Haiku and BeOS.
15808 2008-11-16 Bruno Haible <bruno@clisp.org>
15810 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
15812 2008-11-16 Bruno Haible <bruno@clisp.org>
15814 Avoid test failure on Haiku.
15815 * tests/test-fsync.c: Include <errno.h>.
15816 (main): Don't require that fsync (0) fails.
15818 2008-11-15 Bruno Haible <bruno@clisp.org>
15820 New module 'hostent'.
15821 * modules/hostent: New file.
15822 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
15824 2008-11-15 Bruno Haible <bruno@clisp.org>
15826 New module 'servent'.
15827 * modules/servent: New file.
15828 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
15830 2008-11-15 Bruno Haible <bruno@clisp.org>
15832 Avoid generating same test program with two different rules.
15833 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
15834 test-frexp to test-frexp-nolibm.
15835 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
15836 test-frexpl to test-frexpl-nolibm.
15838 2008-11-15 Bruno Haible <bruno@clisp.org>
15840 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
15843 2008-11-15 Bruno Haible <bruno@clisp.org>
15845 * lib/netdb.in.h: Activate the definitions also when the system's
15846 <netdb.h> has 'struct addrinfo'.
15847 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
15848 EAI_OVERFLOW or AI_NUMERICSERV.
15849 * doc/posix-headers/netdb.texi: Document the problem.
15851 2008-11-15 Bruno Haible <bruno@clisp.org>
15853 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
15855 Make the 'sched' module work on platforms where <sched.h> exists but
15856 is incomplete (such as Haiku).
15857 * lib/sched.in.h; Include the system's <sched.h> if it exists.
15858 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
15859 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
15860 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
15861 HAVE_STRUCT_SCHED_PARAM.
15862 * modules/sched (Depends-on): Add include_next.
15863 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
15864 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
15865 * doc/posix-headers/sched.texi: Document the issue.
15867 2008-11-13 Jim Meyering <meyering@redhat.com>
15869 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
15870 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
15871 test would fail due to the difference in the Report bugs to ...
15872 line. The expected address is empty, "<>", while the actual
15873 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
15875 2008-11-12 Bruno Haible <bruno@clisp.org>
15877 lstat: don't compile lstat.c on systems lacking lstat
15878 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
15879 which don't have lstat; this is handled by lib/sys_stat.in.h already.
15880 Reported by Daniel P. Berrange via Jim Meyering.
15882 2008-11-12 Jim Meyering <meyering@redhat.com>
15884 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
15886 2008-11-12 Simon Josefsson <simon@josefsson.org>
15888 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
15891 2008-11-12 Bruno Haible <bruno@clisp.org>
15893 * lib/unicodeio.c: Include unistr.h.
15894 (utf8_wctomb): Remove function.
15895 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
15897 2008-11-12 Simon Josefsson <simon@josefsson.org>
15899 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
15900 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
15902 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
15904 2008-11-12 Simon Josefsson <simon@josefsson.org>
15906 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
15907 * doc/gnulib.texi: Add section for warnings.
15909 2008-11-11 Bruno Haible <bruno@clisp.org>
15911 * lib/sockets.h: Add a comment.
15913 2008-11-11 Karl Berry <karl@gnu.org>
15915 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
15917 2008-11-11 Eric Blake <ebb9@byu.net>
15919 fdl.texi: avoid git symlinks
15920 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
15922 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
15924 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
15926 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
15928 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
15929 (gl_WARN_ADD): Substitute $2 if literal.
15931 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
15933 * m4/warning.m4: Remove.
15935 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
15937 * m4/warnings.m4: Almost complete rewrite. :-)
15939 2008-11-10 Simon Josefsson <simon@josefsson.org>
15941 * modules/warnings: New module.
15942 * m4/warnings.m4: New file.
15943 * MODULES.html.sh: Mention warnings module.
15944 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
15945 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15947 2008-11-10 Eric Blake <ebb9@byu.net>
15949 fdl.texi: make a symlink to the latest version
15950 * doc/standards.texi: Revert today's earlier change.
15951 * doc/fdl-1.2.texi: Rename from old fdl.texi...
15952 * doc/fdl.texi: ...and replace this with a symlink to the newer
15955 2008-11-10 Bruno Haible <bruno@clisp.org>
15957 * tests/test-select-fd.c (main): Accept the result file name as fourth
15959 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
15960 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
15962 2008-11-10 Bruno Haible <bruno@clisp.org>
15964 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
15965 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
15966 as autoconf-substituted macros.
15967 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
15968 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
15969 gl_NETDB_H_DEFAULTS. Set these variables.
15970 * modules/netdb (Makefile.am): Substitute these variables.
15972 2008-11-10 Eric Blake <ebb9@byu.net>
15974 standards.texi: include correct file for FDL 1.3
15975 * doc/standards.texi (GNU Free Documentation License): Change
15976 include file to pull in FDL 1.3, not 1.2.
15978 fdl.texi: revert accidental change to license
15979 * doc/fdl.texi: This is FDL 1.2, not 1.3.
15981 2008-11-10 Bruno Haible <bruno@clisp.org>
15983 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
15984 cross-compiling guesses also when the native compile gives no result.
15986 2008-11-10 Bruno Haible <bruno@clisp.org>
15988 * lib/spawni.c (__spawni): Force variable into the stack.
15990 2008-11-10 Bruno Haible <bruno@clisp.org>
15992 Add support for Haiku.
15993 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
15994 glibc and BeOS, but also on Haiku.
15995 * lib/fpurge.c (fpurge): Likewise.
15996 * lib/freadable.c (freadable): Likewise.
15997 * lib/freadahead.c (freadahead): Likewise.
15998 * lib/freading.c (freading): Likewise.
15999 * lib/freadptr.c (freadptr): Likewise.
16000 * lib/freadseek.c (freadptrinc): Likewise.
16001 * lib/fseeko.c (rpl_fseeko): Likewise.
16002 * lib/fseterr.c (fseterr): Likewise.
16003 * lib/fwritable.c (fwritable): Likewise.
16004 * lib/fwriting.c (fwriting): Likewise.
16005 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
16007 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
16009 * lib/config.charset: Treat Haiku like BeOS.
16011 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
16013 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
16014 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
16016 2008-11-08 Bruno Haible <bruno@clisp.org>
16018 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
16021 2008-11-08 Bruno Haible <bruno@clisp.org>
16023 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
16025 2008-11-08 Bruno Haible <bruno@clisp.org>
16027 * tests/test-select-fd.c: New file.
16028 * tests/test-select-in.sh: New file.
16029 * tests/test-select-out.sh: New file.
16030 * tests/test-select-stdin.c: New file.
16031 * modules/select-tests (Files): Add the new files.
16032 (Depends-on): Add gettimeofday.
16033 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
16034 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
16035 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
16037 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
16038 Bruno Haible <bruno@clisp.org>
16040 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
16042 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
16044 * build-aux/pmccabe2html: Added support for C++ source files.
16046 2008-11-05 Ben Pfaff <blp@gnu.org>
16048 Fix lib/close.c build on Windows.
16049 * modules/close (Files): Add lib/w32sock.h.
16051 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
16053 Accept Bison's NEWS format.
16054 * build-aux/announce-gen (print_news_deltas): Tweak
16057 2008-11-04 Bruno Haible <bruno@clisp.org>
16059 * modules/random_r (Maintainer): Add glibc.
16061 2008-11-04 Simon Josefsson <simon@josefsson.org>
16063 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
16064 by karl@freefriends.org (Karl Berry).
16065 * doc/alloca.texi: Likewise.
16066 * doc/c-ctype.texi: Likewise.
16067 * doc/c-strcase.texi: Likewise.
16068 * doc/c-strcaseeq.texi: Likewise.
16069 * doc/c-strcasestr.texi: Likewise.
16070 * doc/c-strstr.texi: Likewise.
16071 * doc/c-strtod.texi: Likewise.
16072 * doc/c-strtold.texi: Likewise.
16073 * doc/ctime.texi: Likewise.
16074 * doc/error.texi: Likewise.
16075 * doc/fdl.texi: Likewise.
16076 * doc/gcd.texi: Likewise.
16077 * doc/getdate.texi: Likewise.
16078 * doc/gnulib-intro.texi: Likewise.
16079 * doc/gnulib-tool.texi: Likewise.
16080 * doc/gnulib.texi: Likewise.
16081 * doc/inet_ntoa.texi: Likewise.
16082 * doc/maintain.texi: Likewise.
16083 * doc/make-stds.texi: Likewise.
16084 * doc/quote.texi: Likewise.
16085 * doc/regexprops-generic.texi: Likewise.
16086 * doc/standards.texi: Likewise.
16087 * doc/verify.texi: Likewise.
16088 * doc/visibility.texi: Likewise.
16089 * doc/gnulib.texi (GNU Free Documentation License): Include
16090 fdl-1.3.texi instead of fdl.texi.
16092 2008-11-04 Simon Josefsson <simon@josefsson.org>
16094 * doc/fdl-1.3.texi: New file, from
16095 <http://www.gnu.org/licenses/fdl-1.3.texi>.
16096 * modules/fdl-1.3: Add.
16097 * MODULES.html.sh: Add fdl-1.3.
16099 2008-11-03 Bruno Haible <bruno@clisp.org>
16101 Make determination of absolute name of header file work with AIX xlc.
16102 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
16103 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
16105 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16106 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
16108 2008-11-03 Simon Josefsson <simon@josefsson.org>
16110 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
16111 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
16114 2008-11-02 Bruno Haible <bruno@clisp.org>
16116 Mark 'strpbrk' obsolete.
16117 * modules/strpbrk (Status, Notice): New sections.
16118 * modules/strtok_r (Depends-on): Add strpbrk.
16120 2008-11-02 Bruno Haible <bruno@clisp.org>
16122 Mark 'strdup' obsolete.
16123 * modules/strdup (Status, Notice): New sections.
16124 * modules/findprog (Depends-on): Add strdup.
16125 * modules/getaddrinfo (Depends-on): Likewise.
16126 * modules/localename (Depends-on): Likewise.
16127 * modules/relocatable-lib (Depends-on): Likewise.
16128 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
16129 * modules/relocatable-prog (Depends-on): Likewise.
16130 * modules/trim (Depends-on): Likewise.
16131 * modules/unictype/gen-ctype (Depends-on): Likewise.
16132 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16134 2008-11-02 Bruno Haible <bruno@clisp.org>
16136 Mark 'strcspn' obsolete.
16137 * modules/strcspn (Status, Notice): New sections.
16139 2008-11-02 Bruno Haible <bruno@clisp.org>
16141 Mark 'rmdir' obsolete.
16142 * modules/rmdir (Status, Notice): New sections.
16143 * modules/clean-temp (Depends-on): Add rmdir.
16144 * modules/openat (Depends-on): Likewise.
16146 2008-11-02 Bruno Haible <bruno@clisp.org>
16148 Mark 'raise' obsolete.
16149 * modules/raise (Status, Notice): New sections.
16150 (Include): Specify <signal.h>.
16151 * modules/stdio (Depends-on): Add raise.
16152 * modules/write (Depends-on): Likewise.
16154 2008-11-02 Bruno Haible <bruno@clisp.org>
16156 Mark 'memset' obsolete.
16157 * modules/memset (Status, Notice): New sections.
16159 2008-11-02 Bruno Haible <bruno@clisp.org>
16161 Mark 'memmove' obsolete.
16162 * modules/memmove (Status, Notice): New sections.
16163 * modules/argp (Depends-on): Add memmove.
16164 * modules/argz (Depends-on): Likewise.
16165 * modules/canonicalize (Depends-on): Likewise.
16166 * modules/canonicalize-lgpl (Depends-on): Likewise.
16167 * modules/fts (Depends-on): Likewise.
16168 * modules/getcwd (Depends-on): Likewise.
16169 * modules/human (Depends-on): Likewise.
16170 * modules/regex (Depends-on): Likewise.
16171 * modules/striconveh (Depends-on): Likewise.
16172 * modules/trim (Depends-on): Likewise.
16173 * modules/unistr/u8-move (Depends-on): Likewise.
16174 * modules/unistr/u16-move (Depends-on): Likewise.
16175 * modules/unistr/u32-move (Depends-on): Likewise.
16177 2008-11-02 Bruno Haible <bruno@clisp.org>
16179 Mark 'memcpy' obsolete.
16180 * modules/memcpy (Status, Notice): New sections.
16182 2008-11-02 Bruno Haible <bruno@clisp.org>
16184 Mark 'memcmp' obsolete.
16185 * modules/memcmp (Status, Notice): New sections.
16186 * modules/argmatch (Depends-on): Add memchr.
16187 * modules/backupfile (Depends-on): Likewise.
16188 * modules/c-strcasestr (Depends-on): Likewise.
16189 * modules/crypto/des (Depends-on): Likewise.
16190 * modules/csharpcomp (Depends-on): Likewise.
16191 * modules/fnmatch (Depends-on): Likewise.
16192 * modules/git-merge-changelog (Depends-on): Likewise.
16193 * modules/isnand (Depends-on): Likewise.
16194 * modules/isnand-nolibm (Depends-on): Likewise.
16195 * modules/isnanf (Depends-on): Likewise.
16196 * modules/isnanf-nolibm (Depends-on): Likewise.
16197 * modules/isnanl (Depends-on): Likewise.
16198 * modules/isnanl-nolibm (Depends-on): Likewise.
16199 * modules/mbchar (Depends-on): Likewise.
16200 * modules/memcoll (Depends-on): Likewise.
16201 * modules/quotearg (Depends-on): Likewise.
16202 * modules/regex (Depends-on): Likewise.
16203 * modules/relocatable-prog (Depends-on): Likewise.
16204 * modules/same (Depends-on): Likewise.
16205 * modules/signbit (Depends-on): Likewise.
16206 * modules/strcasestr-simple (Depends-on): Likewise.
16207 * modules/unictype/gen-ctype (Depends-on): Likewise.
16208 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16209 * modules/uniname/uniname (Depends-on): Likewise.
16210 * modules/unistr/u8-cmp (Depends-on): Likewise.
16212 2008-11-02 Bruno Haible <bruno@clisp.org>
16214 Mark 'memchr' obsolete.
16215 * modules/memchr (Status, Notice): New sections.
16216 * modules/argp (Depends-on): Add memchr.
16217 * modules/base64 (Depends-on): Likewise.
16218 * modules/c-strcasestr (Depends-on): Likewise.
16219 * modules/chdir-long (Depends-on): Likewise.
16220 * modules/fnmatch (Depends-on): Likewise.
16221 * modules/getsubopt (Depends-on): Likewise.
16222 * modules/git-merge-changelog (Depends-on): Likewise.
16223 * modules/glob (Depends-on): Likewise.
16224 * modules/strcasestr-simple (Depends-on): Likewise.
16225 * modules/strnlen (Depends-on): Likewise.
16227 2008-11-02 Bruno Haible <bruno@clisp.org>
16229 Mark 'atexit' obsolete.
16230 * modules/atexit (Status, Notice): New sections.
16231 * modules/chdir-long (Depends-on): Add atexit.
16232 * modules/wait-process (Depends-on): Likewise.
16234 2008-11-02 Bruno Haible <bruno@clisp.org>
16236 * gnulib-tool: New option --with-obsolete.
16237 (func_usage): Document it.
16238 (func_modules_transitive_closure): Drop obsolete dependencies if
16239 incobsolete is not true.
16240 (func_import): Read and save the incobsolete variable to the cache.
16242 2008-11-02 Bruno Haible <bruno@clisp.org>
16244 * modules/TEMPLATE-EXTENDED: New field 'Status'.
16245 * gnulib-tool: New option --extract-status.
16246 (func_usage): Document it.
16247 (sed_extract_prog): Recognize it.
16248 (func_get_status): New function.
16250 2008-10-30 Simon Josefsson <simon@josefsson.org>
16252 * modules/sockets (License): Change from LGPL to LGPLv2+.
16254 2008-10-28 Simon Josefsson <simon@josefsson.org>
16256 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
16258 2008-10-28 Simon Josefsson <simon@josefsson.org>
16260 * MODULES.html.sh (Support for systems lacking POSIX:2001):
16261 Mention times and sys_times.
16262 * modules/sys_times, modules/sys_times-tests: New modules.
16263 * modules/times, modules/times-tests: Likewise
16264 * m4/sys_times_h.m4: New file.
16265 * lib/sys_times.in.h: Likewise
16266 * lib/times.c: Likewise.
16267 * tests/test-sys_times.c: Likewise.
16268 * tests/test-times.c: Likewise.
16269 * doc/posix-headers/sys_times.texi: Update.
16270 * doc/posix-functions/times.texi: Update.
16272 2008-10-28 Jim Meyering <meyering@redhat.com>
16274 * modules/tempname (Depends-on): Add lstat.
16276 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
16278 2008-10-28 Simon Josefsson <simon@josefsson.org>
16280 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
16281 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
16282 using idiom used elsewhere in gnulib.
16284 2008-10-27 Jim Meyering <meyering@redhat.com>
16286 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
16288 2008-10-27 Simon Josefsson <simon@josefsson.org>
16290 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
16291 TESTS_ENVIRONMENT, for shell scripts that needs to call built
16293 * tests/test-argp-2.sh: Use $EXEEXT when needed.
16295 2008-10-27 Simon Josefsson <simon@josefsson.org>
16297 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
16299 2008-10-27 Bruno Haible <bruno@clisp.org>
16301 * tests/test-lstat.c: Include <stdio.h>.
16303 2008-10-27 Simon Josefsson <simon@josefsson.org>
16305 * modules/lstat-tests: New module.
16306 * tests/test-lstat.c: New file.
16308 2008-10-26 Jim Meyering <meyering@redhat.com>
16310 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
16312 2008-10-26 Simon Josefsson <simon@josefsson.org>
16313 Bruno Haible <bruno@clisp.org>
16315 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
16316 * modules/configmake (Include): Add a note that the include must come
16317 after all system headers.
16318 * lib/javaversion.c: Include configmake.h after all other includes.
16320 2008-10-26 Bruno Haible <bruno@clisp.org>
16322 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
16323 HAVE_STRUCT_RANDOM_DATA to 1.
16324 (gl_STDLIB_H): Simplify.
16326 2008-10-26 Simon Josefsson <simon@josefsson.org>
16328 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
16329 substitute HAVE_STRUCT_RANDOM_DATA.
16330 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
16332 * modules/stdlib (Makefile.am): Substitute
16333 HAVE_STRUCT_RANDOM_DATA.
16335 2008-10-26 Simon Josefsson <simon@josefsson.org>
16337 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
16338 * doc/gnulib-intro.texi (Copyright): Likewise.
16340 2008-10-26 Simon Josefsson <simon@josefsson.org>
16342 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
16345 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
16346 Bruno Haible <bruno@clisp.org>
16348 * lib/unistd.in.h: Include <winsock2.h>.
16349 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
16350 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
16351 Provide dummy declarations.
16352 (gethostname): Override.
16353 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
16354 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
16355 gl_PREREQ_SYS_H_WINSOCK2.
16356 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
16357 * doc/posix-functions/gethostname.texi: More details.
16359 2008-10-25 Bruno Haible <bruno@clisp.org>
16361 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
16362 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
16363 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
16365 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
16367 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
16368 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
16369 gl_UNISTD_H_DEFAULTS.
16371 2008-10-25 Eric Blake <ebb9@byu.net>
16373 signbit: avoid spurious compiler failure
16374 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
16375 declarations inside function.
16377 2008-10-24 Simon Josefsson <simon@josefsson.org>
16378 Bruno Haible <bruno@clisp.org>
16380 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
16381 * modules/random_r (Depends-on): Add stdint.
16383 2008-10-24 Bruno Haible <bruno@clisp.org>
16385 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
16387 * modules/strerror (License): Likewise.
16389 2008-10-24 Jim Meyering <meyering@redhat.com>
16391 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
16392 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
16394 2008-10-24 Eric Blake <ebb9@byu.net>
16396 getgroups: fix compilation when getgroups is available
16397 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
16398 but with <config.h> override of getgroups disabled.
16400 2008-10-24 Simon Josefsson <simon@josefsson.org>
16402 * doc/gnulib.texi (Header files): Add note about C++ problems.
16403 Explained by Bruno Haible <bruno@clisp.org>.
16405 2008-10-23 Bruno Haible <bruno@clisp.org>
16407 Define a dummy SA_NODEFER macro on Interix.
16408 * lib/signal.in.h (SA_NODEFER): Define fallback.
16409 Reported by Aleksey Cheusov <cheusov@tut.by> via
16410 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
16412 2008-10-23 Bruno Haible <bruno@clisp.org>
16414 * modules/freadahead (License): Change to LGPLv2+.
16415 Suggested by Simon Josefsson.
16417 2008-10-23 Jim Meyering <meyering@redhat.com>
16419 random_r: new module
16420 * modules/random_r: New file.
16421 * m4/random_r.m4: New file.
16422 * lib/random_r.c: New file, from glibc.
16423 * modules/random_r-tests: New file.
16424 * tests/test-random_r.c: New file.
16425 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
16427 (RAND_MAX): Define.
16428 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
16429 * modules/stdlib: Substitute them, too.
16430 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
16431 * doc/glibc-functions/initstate_r.texi: Mention the new module.
16432 * doc/glibc-functions/random_r.texi: Likewise.
16433 * doc/glibc-functions/setstate_r.texi: Likewise.
16434 * doc/glibc-functions/srandom_r.texi: Likewise.
16435 * config/srclist.txt: Mention it.
16437 2008-10-23 David Lutterkort <lutter@redhat.com>
16439 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
16442 2008-10-23 Jim Meyering <meyering@redhat.com>
16444 selinux-h: mark parameters of stub functions as intentionally unused
16445 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
16446 * lib/se-context.in.h: Likewise.
16448 2008-10-22 Simon Josefsson <simon@josefsson.org>
16450 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
16452 2008-10-22 Simon Josefsson <simon@josefsson.org>
16454 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
16456 2008-10-22 Eric Blake <ebb9@byu.net>
16458 glthread/thread: avoid compiler warning
16459 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
16460 Add unreachable abort to silence compiler.
16462 2008-10-22 Eric Blake <ebb9@byu.net>
16464 netdb: also supply struct addrinfo for cygwin 1.5.x
16465 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
16467 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
16469 * doc/posix-headers/netdb.texi (netdb.h): Document this.
16471 2008-10-22 Bruno Haible <bruno@clisp.org>
16473 * users.txt: Update entry about pspp.
16475 2008-10-21 Bruno Haible <bruno@clisp.org>
16478 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
16479 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
16482 * lib/ioctl.c (ioctl): Don't undefine.
16483 * lib/socket.c (socket): Don't undefine.
16485 Remove unused module indicator macros.
16486 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
16487 GNULIB_$1 as a C macro.
16489 * doc/posix-functions/close.texi: Undo last change.
16490 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
16493 2008-10-21 Bruno Haible <bruno@clisp.org>
16495 Add gethostname() declaration to <unistd.h>.
16496 * lib/unistd.in.h (gethostname): New declaration.
16497 * lib/gethostname.c: Include <unistd.h>.
16498 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
16499 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
16500 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
16501 and HAVE_GETHOSTNAME.
16502 * modules/gethostname (Depends-on): Add unistd.
16503 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16504 (Include): Specify <unistd.h>.
16505 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
16507 * tests/test-gethostname.c: Include <unistd.h> first.
16509 2008-10-21 Bruno Haible <bruno@clisp.org>
16511 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
16512 * modules/select-tests (Depends-on): Likewise.
16513 Reported by Simon Josefsson.
16515 2008-10-21 Simon Josefsson <simon@josefsson.org>
16517 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
16518 * lib/accept.c: New file, based on winsock.c.
16519 * lib/bind.c: New file, based on winsock.c.
16520 * lib/connect.c: New file, based on winsock.c.
16521 * lib/getpeername.c: New file, based on winsock.c.
16522 * lib/getsockname.c: New file, based on winsock.c.
16523 * lib/getsockopt.c: New file, based on winsock.c.
16524 * lib/ioctl.c: New file, based on winsock.c.
16525 * lib/listen.c: New file, based on winsock.c.
16526 * lib/recv.c: New file, based on winsock.c.
16527 * lib/recvfrom.c: New file, based on winsock.c.
16528 * lib/send.c: New file, based on winsock.c.
16529 * lib/sendto.c: New file, based on winsock.c.
16530 * lib/setsockopt.c: New file, based on winsock.c.
16531 * lib/shutdown.c: New file, based on winsock.c.
16532 * lib/socket.c: New file, based on winsock.c.
16533 * lib/w32sock.h: New file, based on winsock.c.
16534 * lib/winsock.c: Remove file.
16535 * modules/accept: Likewise.
16536 * modules/bind: Likewise.
16537 * modules/connect: Likewise.
16538 * modules/getpeername: Likewise.
16539 * modules/getsockname: Likewise.
16540 * modules/getsockopt: Likewise.
16541 * modules/ioctl: Likewise.
16542 * modules/listen: Likewise.
16543 * modules/recv: Likewise.
16544 * modules/recvfrom: Likewise.
16545 * modules/send: Likewise.
16546 * modules/sendto: Likewise.
16547 * modules/setsockopt: Likewise.
16548 * modules/shutdown: Likewise.
16549 * modules/socket: Use socket.c instead of winsock.c.
16550 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
16551 * doc/posix-functions/accept.texi: Doc fix.
16552 * doc/posix-functions/bind.texi: Doc fix.
16553 * doc/posix-functions/close.texi: Doc fix.
16554 * doc/posix-functions/connect.texi: Doc fix.
16555 * doc/posix-functions/getpeername.texi: Doc fix.
16556 * doc/posix-functions/getsockname.texi: Doc fix.
16557 * doc/posix-functions/getsockopt.texi: Doc fix.
16558 * doc/posix-functions/ioctl.texi: Doc fix.
16559 * doc/posix-functions/listen.texi: Doc fix.
16560 * doc/posix-functions/recv.texi: Doc fix.
16561 * doc/posix-functions/recvfrom.texi: Doc fix.
16562 * doc/posix-functions/send.texi: Doc fix.
16563 * doc/posix-functions/sendto.texi: Doc fix.
16564 * doc/posix-functions/setsockopt.texi: Doc fix.
16565 * doc/posix-functions/shutdown.texi: Doc fix.
16566 * doc/posix-functions/socket.texi: Doc fix.
16568 2008-10-20 Bruno Haible <bruno@clisp.org>
16570 Take into account the role of SIGABRT_COMPAT on Windows 2008.
16571 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
16572 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
16573 as an alias for SIGABRT.
16574 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
16575 (sigaction): Map it to SIGABRT.
16576 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
16578 2008-10-20 Bruno Haible <bruno@clisp.org>
16580 * lib/fts.c: Don't include lstat.h.
16581 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
16583 Move the lstat() declaration to <sys/stat.h>.
16584 * lib/lstat.h: Remove file.
16585 * lib/sys_stat.in.h: Add special invocation convention.
16586 (lstat): New declaration.
16587 * lib/lstat.c (orig_lstat): New function.
16588 (rpl_lstat): Use orig_lstat instead of lstat.
16589 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
16590 AC_C_INLINE. Set REPLACE_LSTAT.
16591 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
16593 * modules/lstat (Files): Remove lib/lstat.h.
16594 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16595 (Include): Specify <sys/stat.h> instead of lstat.h.
16596 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
16598 * NEWS: Mention the change.
16600 2008-10-20 Bruno Haible <bruno@clisp.org>
16602 * modules/posix_spawn-tests: New file.
16603 * tests/test-posix_spawn3.c: New file.
16605 2008-10-20 Bruno Haible <bruno@clisp.org>
16607 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
16608 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16609 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
16610 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16611 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
16613 2008-10-20 Bruno Haible <bruno@clisp.org>
16615 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
16616 of posix_spawn on AIX 5.3.
16618 2008-10-20 Bruno Haible <bruno@clisp.org>
16620 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
16622 2008-10-20 Bruno Haible <bruno@clisp.org>
16624 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
16625 of AC_LANG_PROGRAM.
16627 2008-10-20 Simon Josefsson <simon@josefsson.org>
16629 * lib/netdb.in.h: Don't define GNU specific constants until they
16630 are supported or needed. Reported by Bruno Haible
16633 2008-10-20 Simon Josefsson <simon@josefsson.org>
16635 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
16637 2008-10-20 Simon Josefsson <simon@josefsson.org>
16639 * lib/getaddrinfo.h: Remove file.
16640 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
16641 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
16642 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
16643 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
16644 * modules/netdb: Substitute GNULIB_GETADDRINFO.
16645 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
16646 * tests/test-getaddrinfo.c: Likewise.
16647 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
16648 * NEWS: Mention change.
16650 2008-10-19 Bruno Haible <bruno@clisp.org>
16652 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
16654 2008-10-19 Bruno Haible <bruno@clisp.org>
16656 * lib/wait-process.c: Include simply <sys/wait.h>.
16657 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
16658 WIFSTOPPED): Remove fallback definitions.
16659 * modules/wait-process (Depends-on): Add sys_wait.
16661 New module 'sys_wait'.
16662 * modules/sys_wait: New file.
16663 * lib/sys_wait.in.h: New file, partially copied from
16664 lib/wait-process.c.
16665 * m4/sys_wait_h.m4: New file.
16666 * doc/posix-headers/sys_wait.texi: Mention the new module.
16668 2008-10-19 Bruno Haible <bruno@clisp.org>
16670 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
16672 2008-10-19 Bruno Haible <bruno@clisp.org>
16674 Assume that waitpid() fills an 'int' status, not a 'union wait'.
16675 * lib/wait-process.c (WAIT_T): Remove type.
16676 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
16677 (wait_subprocess): Update.
16679 2008-10-19 Bruno Haible <bruno@clisp.org>
16681 New module 'atoll'.
16682 * modules/atoll: New file.
16683 * lib/stdlib.in.h (atoll): New declaration.
16684 * lib/atoll.c: New file, from glibc with modifications.
16685 * m4/atoll.m4: New file.
16686 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
16688 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
16689 * doc/posix-functions/atoll.texi: Mention the new module.
16691 2008-10-19 Bruno Haible <bruno@clisp.org>
16693 Add strtoull() declaration to <stdlib.h>.
16694 * lib/stdlib.in.h (strtoull): New declaration.
16695 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16697 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
16699 * modules/strtoull (Depends-on): Add stdlib.
16700 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16701 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
16704 2008-10-19 Bruno Haible <bruno@clisp.org>
16706 Add strtoll() declaration to <stdlib.h>.
16707 * lib/stdlib.in.h (strtoll): New declaration.
16708 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16710 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
16712 * modules/strtoll (Depends-on): Add stdlib.
16713 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16714 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
16716 2008-10-19 Bruno Haible <bruno@clisp.org>
16718 * modules/bcopy (Depends-on): Add strings.
16719 (Include): Specify <strings.h>.
16721 2008-10-19 Bruno Haible <bruno@clisp.org>
16723 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
16725 2008-10-19 Bruno Haible <bruno@clisp.org>
16727 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
16728 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
16731 2008-10-19 Bruno Haible <bruno@clisp.org>
16733 * lib/atanl.c: Don't include isnanl.h.
16734 * lib/cosl.c: Likewise.
16735 * lib/ldexpl.c: Likewise.
16736 * lib/logl.c: Likewise.
16737 * lib/sinl.c: Likewise.
16738 * lib/sqrtl.c: Likewise.
16739 * lib/tanl.c: Likewise.
16741 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
16742 * lib/isnanf.h: Remove file.
16743 * lib/isnand.h: Remove file.
16744 * lib/isnanl.h: Remove file.
16745 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
16746 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
16748 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
16749 HAVE_ISNANF, don't define it as a C macro.
16750 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
16751 HAVE_ISNAND, don't define it as a C macro.
16752 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
16753 HAVE_ISNANL, don't define it as a C macro.
16754 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
16756 * modules/isnanf (Files): Remove lib/isnanf.h.
16757 (Depends-on): Add math.
16758 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16759 (Include): Specify <math.h> instead of isnanf.h.
16760 * modules/isnand (Files): Remove lib/isnand.h.
16761 (Depends-on): Add math.
16762 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16763 (Include): Specify <math.h> instead of isnand.h.
16764 * modules/isnanl (Files): Remove lib/isnanl.h.
16765 (Depends-on): Add math.
16766 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16767 (Include): Specify <math.h> instead of isnanl.h.
16768 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
16770 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
16771 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
16772 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
16773 * NEWS: Mention the change.
16775 2008-10-18 Bruno Haible <bruno@clisp.org>
16777 Add getusershell(), setusershell(), endusershell() declarations to
16779 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
16781 * lib/getusershell.c: Include unistd.h.
16782 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
16783 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16785 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
16786 and HAVE_GETUSERSHELL.
16787 * modules/getusershell (Depends-on): Add unistd, extensions.
16788 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16789 (Include): Specify <unistd.h>.
16790 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
16793 2008-10-18 Bruno Haible <bruno@clisp.org>
16795 Add a getloadavg() declaration to <stdlib.h>.
16796 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
16797 getloadavg declaration.
16798 (getloadavg): New declaration.
16799 * lib/getloadavg.c: Include <stdlib.h> first.
16800 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
16801 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
16802 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
16803 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
16804 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16805 * modules/getloadavg (Depends-on): Add stdlib, extensions.
16806 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16807 (Include): Specify <stdlib.h>.
16808 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
16809 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16811 2008-10-18 Bruno Haible <bruno@clisp.org>
16813 * lib/dirchownmod.c: Don't include lchmod.h.
16815 Move the lchmod() declaration to <sys/stat.h>.
16816 * lib/lchmod.h: Remove file.
16817 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
16818 (lchmod): New declaration, moved here from lib/lchown.h.
16819 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
16820 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
16821 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
16823 * modules/lchmod (Files): Remove lib/lchmod.h.
16824 (Depends-on): Add sys_stat, extensions.
16825 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16826 (Include): Specify <sys/stat.h> instead of lchmod.h.
16827 * modules/sys_stat (Depends-on): Add link-warning.
16828 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
16829 definition of GL_LINK_WARNING.
16830 * NEWS: Mention the change.
16832 2008-10-18 Bruno Haible <bruno@clisp.org>
16834 * lib/fchdir.c: Don't include dirfd.h.
16835 * lib/fts.c: Likewise.
16836 * lib/getcwd.c: Likewise.
16837 * lib/glob.c: Likewise.
16839 Move the dirfd() declaration to <dirent.h>.
16840 * lib/dirfd.h: Remove file.
16841 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
16842 (dirfd): New declaration.
16843 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
16844 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
16845 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
16847 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
16849 * modules/dirfd (Files): Remove lib/dirfd.h.
16850 (Depends-on): Add dirent, extensions.
16851 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
16852 (Include): Specify <dirent.h> instead of dirfd.h.
16853 * modules/dirent (Depends-on): Add link-warning.
16854 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
16855 definition of GL_LINK_WARNING.
16856 * NEWS: Mention the change.
16858 2008-10-18 Bruno Haible <bruno@clisp.org>
16860 Move the euidaccess() declaration to <unistd.h>.
16861 * lib/euidaccess.h: Remove file.
16862 * lib/unistd.in.h (euidaccess): New declaration.
16863 * lib/euidaccess.c: Don't include euidaccess.h.
16864 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
16865 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
16866 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
16867 and HAVE_EUIDACCESS.
16868 * modules/euidaccess (Files): Remove lib/euidaccess.h.
16869 (Depends-on): Add unistd.
16870 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16871 (Include): Specify <unistd.h> instead of euidaccess.h.
16872 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
16874 * NEWS: Mention the change.
16876 2008-10-18 Bruno Haible <bruno@clisp.org>
16878 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
16880 Move the getdomainname() declaration to <unistd.h>.
16881 * lib/getdomainname.h: Remove file.
16882 * lib/unistd.in.h (getdomainname): New declaration.
16883 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
16884 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16885 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16886 HAVE_GETDOMAINNAME.
16887 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16888 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
16889 * modules/getdomainname (Files): Remove lib/getdomainname.h.
16890 (Depends-on): Add unistd, extensions.
16891 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16892 (Includes): Specify <unistd.h> instead of getdomainname.h.
16893 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
16894 HAVE_GETDOMAINNAME.
16895 * NEWS: Mention the change.
16897 2008-10-18 Bruno Haible <bruno@clisp.org>
16899 * modules/dirent: New file.
16900 * m4/dirent_h.m4: New file.
16901 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
16902 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
16903 * modules/fchdir (Files): Remove lib/dirent.in.h.
16904 (Depends-on): Add dirent.
16905 (Makefile.am): Move rules to modules/dirent.
16906 * doc/posix-headers/dirent.texi: Mention the new module.
16908 2008-10-18 Bruno Haible <bruno@clisp.org>
16910 Avoid -Wunused-parameter warnings in public gnulib header files.
16911 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
16913 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
16915 2008-10-18 Bruno Haible <bruno@clisp.org>
16917 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
16918 * doc/glibc-functions/error.texi: Mention the module 'error'.
16919 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
16920 * doc/glibc-functions/getdomainname.texi: Mention the module
16922 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
16923 * doc/glibc-functions/getpagesize.texi: Mention the module
16925 * doc/glibc-functions/getusershell.texi: Mention the module
16927 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
16928 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
16929 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
16930 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
16931 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
16932 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
16933 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
16934 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
16935 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
16936 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
16937 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
16938 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
16939 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
16940 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
16942 2008-10-17 Bruno Haible <bruno@clisp.org>
16944 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
16945 HP-UX and IRIX, use -0.0L.
16946 * tests/test-ceill.c (minus_zero): Likewise.
16947 * tests/test-floorl.c (minus_zero): Likewise.
16948 * tests/test-frexpl.c (minus_zero): Likewise.
16949 * tests/test-isnan.c (minus_zerol): Likewise.
16950 * tests/test-isnanl.h (minus_zero): Likewise.
16951 * tests/test-ldexpl.c (minus_zero): Likewise.
16952 * tests/test-roundl.c (minus_zero): Likewise.
16953 * tests/test-signbit.c (minus_zerol): Likewise.
16954 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16955 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16956 * tests/test-truncl.c (minus_zero): Likewise.
16957 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16958 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16959 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
16960 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16962 2008-10-17 Bruno Haible <bruno@clisp.org>
16964 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
16965 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
16966 that it gets activated only for gcc >= 3.0.
16967 * lib/dirent.in.h: Likewise.
16968 * lib/errno.in.h: Likewise.
16969 * lib/fcntl.in.h: Likewise.
16970 * lib/float.in.h: Likewise.
16971 * lib/iconv.in.h: Likewise.
16972 * lib/inttypes.in.h: Likewise.
16973 * lib/locale.in.h: Likewise.
16974 * lib/math.in.h: Likewise.
16975 * lib/netdb.in.h: Likewise.
16976 * lib/netinet_in.in.h: Likewise.
16977 * lib/search.in.h: Likewise.
16978 * lib/signal.in.h: Likewise.
16979 * lib/spawn.in.h: Likewise.
16980 * lib/stdarg.in.h: Likewise.
16981 * lib/stdint.in.h: Likewise.
16982 * lib/stdio.in.h: Likewise.
16983 * lib/stdlib.in.h: Likewise.
16984 * lib/string.in.h: Likewise.
16985 * lib/strings.in.h: Likewise.
16986 * lib/sys_file.in.h: Likewise.
16987 * lib/sys_ioctl.in.h: Likewise.
16988 * lib/sys_select.in.h: Likewise.
16989 * lib/sys_socket.in.h: Likewise.
16990 * lib/sys_stat.in.h: Likewise.
16991 * lib/sys_time.in.h: Likewise.
16992 * lib/sysexits.in.h: Likewise.
16993 * lib/time.in.h: Likewise.
16994 * lib/unistd.in.h: Likewise.
16995 * lib/wchar.in.h: Likewise.
16996 * lib/wctype.in.h: Likewise.
16997 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16999 2008-10-17 Jim Meyering <meyering@redhat.com>
17001 ignore-value: don't depend on inline module
17002 * modules/ignore-value (Depends-on): Remove 'inline'.
17003 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
17004 Suggestion from Bruno Haible.
17006 2008-10-17 Bruno Haible <bruno@clisp.org>
17008 New implementation of condition variables for Win32.
17009 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
17010 (gl_linked_waitqueue_t): New type.
17011 (gl_cond_t): Use it.
17012 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
17013 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
17014 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
17015 (glthread_cond_init_func, glthread_cond_wait_func,
17016 glthread_cond_timedwait_func, glthread_cond_signal_func,
17017 glthread_cond_broadcast_func, glthread_cond_destroy_func):
17018 Reimplemented on the basis of gl_linked_waitqueue_t.
17019 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
17021 (gl_rwlock_t): Update.
17022 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
17024 2008-10-17 Simon Josefsson <simon@josefsson.org>
17026 * modules/recvfrom (Depends-on): Add dependency on getpeername.
17027 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17029 2008-10-17 Jim Meyering <meyering@redhat.com>
17031 ignore-value: new module
17032 * modules/ignore-value: New file.
17033 * lib/ignore-value.h: New file.
17034 * MODULES.html.sh (Compiler warning management): New section,
17035 just for this module. More to come.
17037 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
17039 open-safer.c: avoid 'signed and unsigned in conditional...' warning
17040 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
17041 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
17043 2008-10-16 Jim Meyering <meyering@redhat.com>
17045 openat-die.c: avoid 'no previous prototype' warning
17046 * lib/openat-die.c: Include "openat.h".
17047 Reported by Reuben Thomas <rrt@sc3d.org>.
17049 2008-10-16 Simon Josefsson <simon@josefsson.org>
17051 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
17052 * lib/netdb.in.h: Fix typo.
17053 Reported by Bruno Haible <bruno@clisp.org>
17055 * lib/netdb.in.h: Include sys/socket.h for platforms without
17056 netdb.h, to get structures like hostent on MinGW.
17057 * modules/netdb (Depends-on): Add sys_socket.
17059 2008-10-15 Simon Josefsson <simon@josefsson.org>
17061 * modules/netdb, modules/netdb-tests: New file.
17062 * m4/netdb_h.m4: New file.
17063 * lib/netdb.in.h: Add, currently just an empty file pending
17065 * tests/test-netdb.c: New file.
17066 * doc/posix-headers/netdb.texi: Mention that we replace it if
17068 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17071 2008-10-15 Simon Josefsson <simon@josefsson.org>
17073 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
17076 2008-10-13 Bruno Haible <bruno@clisp.org>
17078 * lib/glthread/cond.c (glthread_cond_wait_func,
17079 glthread_cond_timedwait_func): Add a comment.
17081 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
17083 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
17084 * tests/test-select.c: Likewise,
17086 2008-10-13 Bruno Haible <bruno@clisp.org>
17088 * lib/glthread/cond.c (glthread_cond_wait_func,
17089 glthread_cond_timedwait_func): Fix variable name.
17090 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17092 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
17094 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
17095 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
17096 struct sockaddr.sa_len.
17097 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
17099 2008-10-13 Simon Josefsson <simon@josefsson.org>
17101 * build-aux/pmccabe2html: Add css and css_url parameters.
17103 2008-10-12 Bruno Haible <bruno@clisp.org>
17105 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
17107 Reported by Rainer Tammer <tammer@tammer.net>.
17109 2008-10-12 Bruno Haible <bruno@clisp.org>
17111 Use msvcrt aware primitives for creation/termination of Win32 threads.
17112 * lib/glthread/thread.c: Include <process.h>.
17113 (glthread_create_func): Use _beginthreadex instead of CreateThread.
17114 (wrapper_func): Update signature.
17115 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
17117 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
17118 Bruno Haible <bruno@clisp.org>
17120 Provide a Win32 implementation of the 'cond' module.
17121 * lib/glthread/cond.h [USE_WIN32]: New implementation.
17122 * lib/glthread/cond.c (glthread_cond_init_func,
17123 glthread_cond_wait_func, glthread_cond_timedwait_func,
17124 glthread_cond_signal_func, glthread_cond_broadcast_func,
17125 glthread_cond_destroy_func) [USE_WIN32]: New functions.
17126 * modules/cond (Dependencies): Add gettimeofday.
17128 2008-10-11 Bruno Haible <bruno@clisp.org>
17130 Make sleep work on older versions of mingw.
17131 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
17132 only whether it exists.
17133 * doc/posix-functions/sleep.texi: Mention the problem with older
17136 2008-10-11 Bruno Haible <bruno@clisp.org>
17138 New module 'shutdown'.
17139 * modules/shutdown: New file.
17140 * lib/sys_socket.in.h (shutdown): New declaration.
17141 * lib/winsock.c (shutdown): New function.
17142 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17144 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
17145 * doc/posix-functions/shutdown.texi: Document the new module.
17147 2008-10-11 Jim Meyering <meyering@redhat.com>
17149 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
17151 2008-10-11 Bruno Haible <bruno@clisp.org>
17153 New module 'fclose'.
17154 * modules/fclose: New file.
17155 * lib/stdio.in.h (fclose): New declaration.
17156 * lib/fclose.c: New file.
17157 * m4/fclose.m4: New file.
17158 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
17160 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
17161 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
17163 * modules/close (Depends-on): fclose.
17164 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
17166 2008-10-11 Bruno Haible <bruno@clisp.org>
17168 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
17169 set errno and don't call _close.
17171 2008-10-10 Bruno Haible <bruno@clisp.org>
17173 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
17174 ACL, not afterwards. Fixes test failure on Cygwin.
17176 2008-10-09 Ben Pfaff <blp@gnu.org>
17178 * build-aux/announce-gen: Fix gnulib version related part of usage
17179 message. Die with a useful error message if no tarballs are
17182 2008-10-10 Jim Meyering <meyering@redhat.com>
17184 bootstrap: use git's --depth=N option only if it's supported
17185 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
17186 recognize the --depth option. Reported by Pádraig Brady.
17188 2008-10-09 Bruno Haible <bruno@clisp.org>
17190 New module 'ioctl'.
17191 * modules/ioctl: New file.
17192 * lib/sys_socket.in.h (ioctl): Remove declaration.
17193 * lib/winsock.c: Include <sys/ioctl.h>.
17194 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
17195 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17196 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
17197 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
17198 * doc/posix-functions/ioctl.texi: Mention the new module.
17200 2008-10-09 Bruno Haible <bruno@clisp.org>
17202 New module 'sys_ioctl'.
17203 * lib/sys_ioctl.in.h: New file.
17204 * m4/sys_ioctl_h.m4: New file.
17205 * modules/sys_ioctl: New file.
17206 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
17208 2008-10-09 Bruno Haible <bruno@clisp.org>
17210 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
17211 * lib/winsock.c: Include <stdarg.h>.
17212 (rpl_ioctl): Change to second argument 'int' and then varargs.
17214 2008-10-09 Bruno Haible <bruno@clisp.org>
17216 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
17217 when the sys_socket module is present and the system has <winsock2.h>.
17219 2008-10-09 Bruno Haible <bruno@clisp.org>
17221 * doc/posix-functions/close.texi: Mention module 'close' instead of
17222 module 'sys_socket'.
17224 2008-10-09 Bruno Haible <bruno@clisp.org>
17226 * doc/glibc-headers/sys_ioctl.texi: New file.
17227 * doc/gnulib.texi: Include it.
17229 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17230 Bruno Haible <bruno@clisp.org>
17232 Combine the two replacements of 'close'.
17233 * lib/sys_socket.in.h (close): Define to a reminder to include
17235 (_gl_close_fd_maybe_socket): New declaration.
17236 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
17237 * lib/winsock.c (close): Remove undefinition.
17238 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
17239 needed for the gnulib module 'close'.
17240 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
17241 define to an error symbol or to a warning, if suitable.
17242 * lib/close.c: Include <sys/socket.h>.
17243 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
17244 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
17245 UNISTD_H_HAVE_WINSOCK2_H.
17246 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
17247 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17248 UNISTD_H_HAVE_WINSOCK2_H.
17249 * modules/sys_socket (Files): Add m4/unistd_h.m4.
17250 (configure.ac): Set a module indicator.
17251 (Makefile.am): Substitute GNULIB_CLOSE.
17252 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
17253 * modules/poll-tests (Depends-on): Add close.
17254 * modules/select-tests (Depends-on): Likewise.
17256 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17257 Bruno Haible <bruno@clisp.org>
17259 New module 'close'.
17260 * modules/close: New file.
17261 * lib/unistd.in.h (close): Move declaration out of the
17262 FCHDIR_REPLACEMENT scope.
17263 (_gl_unregister_fd): New declaration.
17264 * lib/close.c: New file.
17265 * lib/fchdir.c (rpl_close): Remove function.
17266 * m4/close.m4: New file.
17267 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17269 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
17271 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
17273 * modules/fchdir (Depends-on): Add close.
17275 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17276 Bruno Haible <bruno@clisp.org>
17278 * lib/fcntl.in.h (open): Simplify conditionals.
17279 (_gl_register_fd): New declaration.
17280 * lib/fchdir.c (rpl_open): Remove function.
17281 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
17283 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
17284 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17287 2008-10-09 Jim Meyering <meyering@redhat.com>
17289 GNUmakefile: use the more name-space-friendly "_version"
17290 * top/GNUmakefile (_dummy): Update.
17291 (_version): Rename from "version".
17293 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17294 Bruno Haible <bruno@clisp.org>
17296 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
17298 (_gl_register_fd): New function, extracted from rpl_open.
17299 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
17300 (rpl_open, rpl_opendir): Use _gl_register_fd.
17302 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17304 Fix organization of 'open' replacement.
17305 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
17306 (gl_FUNC_OPEN): Use it.
17307 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
17309 2008-10-08 Bruno Haible <bruno@clisp.org>
17311 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
17313 2008-10-08 Simon Josefsson <simon@josefsson.org>
17315 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
17316 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
17319 2008-10-08 Eric Blake <ebb9@byu.net>
17321 GNUmakefile: add 'make version' target
17322 * top/GNUmakefile (_curr-ver): Split version update rules...
17323 (version): ...into a target.
17325 2008-10-07 Bruno Haible <bruno@clisp.org>
17327 Use a more portable replacement expression for -0.0L.
17328 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
17329 instead of -0.0L. Fix m4 quotation.
17331 * tests/test-signbit.c: Include <float.h>.
17332 (minus_zero): New variable.
17333 (test_signbitl): Use minus_zero instead of -zero.
17334 * modules/signbit-tests (Depends-on): Add float.
17336 * tests/test-ceill.c: Include <float.h>.
17337 (zero): Remove variable.
17338 (minus_zero): New variable.
17339 (main): Use minus_zero instead of -zero.
17340 * modules/ceill-tests (Depends-on): Add float.
17342 * tests/test-floorl.c: Include <float.h>.
17343 (zero): Remove variable.
17344 (minus_zero): New variable.
17345 (main): Use minus_zero instead of -zero.
17346 * modules/floorl-tests (Depends-on): Add float.
17348 * tests/test-roundl.c: Include <float.h>.
17349 (zero): Remove variable.
17350 (minus_zero): New variable.
17351 (main): Use minus_zero instead of -zero.
17352 * modules/roundl-tests (Depends-on): Add float.
17354 * tests/test-truncl.c: Include <float.h>.
17355 (zero): Remove variable.
17356 (minus_zero): New variable.
17357 (main): Use minus_zero instead of -zero.
17358 * modules/truncl-tests (Depends-on): Add float.
17360 * tests/test-frexpl.c (zero): Remove variable.
17361 (minus_zero): New variable.
17362 (main): Use minus_zero instead of -zero.
17363 * modules/frexpl-tests (Depends-on): Add float.
17365 * tests/test-isnan.c (zerol): Remove variable.
17366 (minus_zerol): New variable.
17367 (test_long_double): Use minus_zerol instead of -zerol.
17368 * modules/isnan-tests (Depends-on): Add float.
17370 * tests/test-isnanl.h (zero): Remove variable.
17371 (minus_zero): New variable.
17372 (main): Use minus_zero instead of -zero.
17373 * modules/isnanl-nolibm-tests (Depends-on): Add float.
17374 * modules/isnanl-tests (Depends-on): Add float.
17376 * tests/test-ldexpl.c (zero): Remove variable.
17377 (minus_zero): New variable.
17378 (main): Use minus_zero instead of -zero.
17379 * modules/ldexpl-tests (Depends-on): Add float.
17381 * tests/test-snprintf-posix.h (zerol): Remove variable.
17382 (minus_zerol): New variable.
17383 (test_function): Use minus_zerol instead of -zerol.
17384 * modules/snprintf-posix-tests (Depends-on): Add float.
17385 * modules/vsnprintf-posix-tests (Depends-on): Add float.
17387 * tests/test-sprintf-posix.h (zerol): Remove variable.
17388 (minus_zerol): New variable.
17389 (test_function): Use minus_zerol instead of -zerol.
17390 * modules/sprintf-posix-tests (Depends-on): Add float.
17391 * modules/vsprintf-posix-tests (Depends-on): Add float.
17393 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
17394 (minus_zerol): New variable.
17395 (test_function): Use minus_zerol instead of -zerol.
17396 * modules/vasnprintf-posix-tests (Depends-on): Add float.
17398 * tests/test-vasprintf-posix.c (zerol): Remove variable.
17399 (minus_zerol): New variable.
17400 (test_function): Use minus_zerol instead of -zerol.
17401 * modules/vasprintf-posix-tests (Depends-on): Add float.
17403 2008-10-07 Simon Josefsson <simon@josefsson.org>
17405 * MODULES.html.sh (Support for building documentation): Mention
17406 pmccabe2html. Sort entries.
17408 Add pmccabe2html module, from gnupdf.
17409 * build-aux/pmccabe.css: New file.
17410 * build-aux/pmccabe2html: New file.
17411 * m4/pmccabe2html.m4: New file.
17412 * modules/pmccabe2html: New file.
17414 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
17417 * MODULES.html.sh: Add to list of modules.
17418 * lib/flock.c: flock implementation for Windows and Unix systems
17420 * doc/glibc-functions/flock.texi: Update documentation.
17421 * lib/sys_file.in.h: <sys/file.h> header file.
17422 * m4/flock.m4: M4 macros.
17423 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
17424 * modules/flock: flock module.
17425 * modules/flock-tests: flock tests module.
17426 * modules/sys_file: sys/file.h module.
17427 * tests/test-flock.c: test suite for flock.
17429 2008-10-06 Jim Meyering <meyering@redhat.com>
17431 bootstrap: check for LT_INIT more portably still ;-)
17432 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
17433 Spotted by Bruno Haible.
17435 2008-10-06 Eric Blake <ebb9@byu.net>
17437 test-signbit: avoid tripping Irix cc bug on -0.0L
17438 * tests/test-signbit.c (minus_zerol): Delete, and replace with
17439 '-zerol'. This may break on HP-UX/hppa, but at least makes the
17440 entire testsuite consistent and avoids an Irix 6.2 bug.
17442 2008-10-05 Bruno Haible <bruno@clisp.org>
17443 Jim Meyering <jim@meyering.net>
17445 Add an option for ignoring EPIPE during close_stdout.
17446 * lib/closeout.h: Include <stdbool.h>.
17447 (close_stdout_set_ignore_EPIPE): New declaration.
17448 * lib/closeout.c: Include <stdbool.h>.
17449 (ignore_EPIPE): New variable.
17450 (close_stdout_set_ignore_EPIPE): New function.
17451 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
17452 * lib/close-stream.c (close_stream): Mention the possible EPIPE
17454 * modules/closeout (Depends-on): Add stdbool.
17456 2008-10-05 Bruno Haible <bruno@clisp.org>
17458 * modules/accept: New file.
17459 * modules/bind: New file.
17460 * modules/connect: New file.
17461 * modules/getpeername: New file.
17462 * modules/getsockname: New file.
17463 * modules/getsockopt: New file.
17464 * modules/listen: New file.
17465 * modules/recv: New file.
17466 * modules/recvfrom: New file.
17467 * modules/send: New file.
17468 * modules/sendto: New file.
17469 * modules/setsockopt: New file.
17470 * modules/socket: New file.
17471 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
17472 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17473 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
17474 the particular module is requested. Add a link warning when the
17475 particular module is not requested.
17476 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
17477 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
17478 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
17479 the particular module is requested.
17480 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
17481 gl_SYS_SOCKET_H_DEFAULTS): New macros.
17482 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
17483 * modules/sys_socket (Depends-on): Add link-warning.
17484 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
17485 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
17486 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
17487 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
17489 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
17490 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
17491 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
17492 * doc/posix-functions/getpeername.texi: Mention the new module
17494 * doc/posix-functions/getsockname.texi: Mention the new module
17496 * doc/posix-functions/getsockopt.texi: Mention the new module
17498 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
17499 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
17500 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
17501 * doc/posix-functions/send.texi: Mention the new module 'send'.
17502 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
17503 * doc/posix-functions/setsockopt.texi: Mention the new module
17505 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
17506 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
17507 listen, connect, accept.
17508 * modules/select-tests (Depends-on): Likewise.
17510 2008-10-05 Bruno Haible <bruno@clisp.org>
17512 * lib/winsock.c (strerror): Remove unused #undef.
17513 (rpl_close): Remove unused local variable.
17515 * modules/sys_socket (Depends-on); Add errno.
17517 2008-10-05 Bruno Haible <bruno@clisp.org>
17519 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
17520 (select): Add a link warning when the 'select' module is not used.
17521 * modules/sys_select (Depends-on): Add link-warning.
17522 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
17523 Suggested by Paolo Bonzini.
17525 2008-10-05 Jim Meyering <meyering@redhat.com>
17527 bootstrap: check for LT_INIT more portably
17528 * build-aux/bootstrap: Avoid using grep -E, since it's not
17529 portable enough. Suggestion from Bruno Haible.
17531 2008-10-05 Bruno Haible <bruno@clisp.org>
17533 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
17534 as being fixed by gnulib.
17536 2008-10-05 Bruno Haible <bruno@clisp.org>
17538 * modules/select-tests: New file, mostly copied from
17539 modules/sys_select-tests.
17540 * tests/test-select.c: New file, mostly copied from
17541 tests/test-sys_select.c.
17542 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
17543 * modules/sys_select-tests (Depends-on): Remove all dependencies.
17544 (Makefile.am): Remove test_sys_select_LDADD.
17546 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
17547 to an undefined symbol, for an error message.
17548 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
17549 (gl_SYS_SELECT_H_DEFAULTS): New macro.
17550 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
17551 winsock-select.c here.
17552 * modules/sys_select (Files): Remove lib/winsock-select.c.
17553 (Depends-on): Remove alloca.
17554 (Makefile.am): Substitute GNULIB_SELECT.
17555 * modules/select: New file.
17556 * doc/posix-functions/select.texi: Update.
17558 2008-10-05 Bruno Haible <bruno@clisp.org>
17560 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
17561 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
17562 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
17563 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
17565 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17566 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17568 2008-10-05 Bruno Haible <bruno@clisp.org>
17570 * modules/getdtablesize-tests: New file.
17571 * tests/test-getdtablesize.c: New file.
17573 New module 'getdtablesize'.
17574 * lib/unistd.in.h (getdtablesize): New declaration.
17575 * lib/getdtablesize.c: New file.
17576 * m4/getdtablesize.m4: New file.
17577 * modules/getdtablesize: New file.
17578 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17579 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
17580 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
17581 HAVE_GETDTABLESIZE.
17582 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
17584 2008-10-05 Bruno Haible <bruno@clisp.org>
17586 * modules/sched (Makefile.am): Fix typo.
17587 Reported by Simon Josefsson.
17589 2008-10-05 Jim Meyering <meyering@redhat.com>
17591 bootstrap: check for LT_INIT, too
17592 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
17593 are deprecated. Suggestion from Ralf Wildenhues.
17595 2008-10-05 Bruno Haible <bruno@clisp.org>
17597 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
17598 overriding them by ours.
17599 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
17601 2008-10-05 Jim Meyering <meyering@redhat.com>
17603 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
17604 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
17605 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
17607 2008-10-04 Bruno Haible <bruno@clisp.org>
17609 * modules/dup2 (License): Change to LGPLv2+.
17610 * modules/sleep (License): Likewise.
17611 * modules/perror (License): Likewise.
17612 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
17614 * modules/signal (License): Likewise.
17615 * modules/sigprocmask (License): Likewise.
17616 * modules/raise (License): Change to LGPLv2+, with approval by Jim
17619 2008-10-04 Bruno Haible <bruno@clisp.org>
17621 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
17622 Reported by Rainer Tammer <tammer@tammer.net>.
17624 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
17625 Bruno Haible <bruno@clisp.org>
17627 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
17628 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
17629 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
17631 2008-10-03 Kamil Dudka <kdudka@redhat.com>
17633 filevercmp: new module
17634 * lib/filevercmp.h: New function filevercmp comparing version strings.
17635 * lib/filevercmp.c: Implementation of filevercmp function.
17636 * modules/filevercmp: Module metadata.
17637 * tests/test-filevercmp.c: Unit test for new module.
17638 * modules/filevercmp-tests: Unit test metadata.
17639 * MODULES.html.sh: Add filevercmp module.
17641 2008-10-03 Bruno Haible <bruno@clisp.org>
17643 * lib/c-ctype.h: Add comment.
17644 Reported by Jim Meyering.
17646 2008-10-02 Bruno Haible <bruno@clisp.org>
17648 * modules/posix_spawn-internal (Depends-on): Add 'open'.
17650 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
17652 * build-aux/bootstrap: Allow renaming bootstrap, and change the
17653 name of bootstrap.conf accordingly.
17655 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
17657 * build-aux/bootstrap: Install git-merge-changelog configuration
17658 items into .gitconfig if needed.
17660 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
17662 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
17663 git repository, and initialize/update it accordingly.
17665 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
17667 * modules/fsync-tests: New file.
17668 * tests/test-fsync.c: New file.
17670 New module 'fsync'.
17671 * lib/fsync.c: New file.
17672 * m4/fsync.m4: New file.
17673 * modules/fsync: New file.
17674 * lib/unistd.in.h (fsync): New declaration.
17675 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
17676 GNULIB_FSYNC and HAVE_FSYNC.
17677 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
17678 * MODULES.html.sh (posix_functions): Add fsync.
17679 * doc/posix-functions/fsync.texi: Mention the new module.
17681 2008-10-02 Jim Meyering <meyering@redhat.com>
17683 fts.c: sync with similar code from coreutils' remove.c
17684 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
17685 Guard also with "#if defined __linux__", since for now at least,
17686 this code is Linux-kernel-specific.
17688 2008-10-02 Jim Meyering <meyering@redhat.com>
17691 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
17692 Include <sys/vfs.h>, not <sys/statfs.h>.
17694 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
17695 Include <sys/vfs.h>, not <sys/statfs.h>.
17697 2008-10-01 Bruno Haible <bruno@clisp.org>
17699 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
17700 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
17701 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
17702 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
17703 * doc/posix-functions/posix_spawnp.texi: Likewise.
17704 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
17705 whether posix_spawn actually works.
17706 * m4/pipe.m4 (gl_PIPE): Likewise.
17707 * modules/execute (Files): Add m4/posix_spawn.m4.
17708 * modules/pipe (Files): Add m4/posix_spawn.m4.
17709 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
17711 2008-10-01 Jim Meyering <meyering@redhat.com>
17713 remove trailing spaces
17715 * lib/poll.c (poll): Likewise.
17716 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
17717 * lib/winsock.c (rpl_close): Likewise.
17718 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
17719 * modules/yield: Likewise.
17720 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
17721 * tests/test-sys_select.c (connect_to_socket): Likewise.
17723 fts.c: adjust a new interface to be more generally useful
17724 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
17725 (fts_build): Adjust caller.
17727 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17729 * modules/cond-tests: New file.
17730 * tests/test-cond.c: New file.
17732 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17733 Bruno Haible <bruno@clisp.org>
17735 * modules/cond (Dependencies): Add errno, time.
17736 * lib/glthread/cond.h: Include <time.h>.
17737 (gl_cond_define, gl_cond_define_initialized): Use the same definition
17740 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17741 Bruno Haible <bruno@clisp.org>
17743 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
17745 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17746 Bruno Haible <bruno@clisp.org>
17748 * modules/tls-tests (Depends-on): Add thread, yield.
17749 (configure.ac): Remove all checks.
17750 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
17751 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17752 gl_thread_self): Remove definitions. Include glthread/thread.h and
17753 glthread/yield.h instead.
17754 (test_tls): Pass an additional NULL argument to gl_thread_join.
17756 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17757 Bruno Haible <bruno@clisp.org>
17759 * modules/lock-tests (Depends-on): Add thread, yield.
17760 (configure.ac): Remove all checks.
17761 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
17762 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17763 gl_thread_self): Remove definitions. Include glthread/thread.h and
17764 glthread/yield.h instead.
17765 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
17766 additional NULL argument to gl_thread_join.
17768 2008-09-30 Bruno Haible <bruno@clisp.org>
17770 Fix the Win32 implementation of the 'thread' module.
17771 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
17773 (gl_thread_self): Invoke gl_thread_self_func.
17774 (gl_thread_self_func): New declaration.
17775 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
17776 (do_init_self_key, init_self_key): New functions.
17777 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
17778 Remove some fields.
17779 (running_threads, running_lock): Remove variables.
17780 (get_current_thread_handle): New function.
17781 (gl_thread_self_func, wrapper_func, glthread_create_func,
17782 glthread_join_func, gl_thread_exit_func): Largely rewritten and
17785 2008-09-30 Bruno Haible <bruno@clisp.org>
17787 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
17790 2008-09-30 Jim Meyering <meyering@redhat.com>
17792 fts.m4: correct the test for statfs.f_type
17793 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
17794 when checking for statfs.f_type.
17796 2008-09-15 Simon Josefsson <simon@josefsson.org>
17798 tests: avoid some compiler warnings
17799 * tests/test-memchr.c (main): Pass NULL indirectly.
17800 * tests/test-getdate.c (main): Remove unused variable 'ret'.
17802 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
17804 getdate.y: disallow countable dayshifts like "4 yesterday ago"
17805 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
17806 exactly specified dayshifts.
17807 (dayshift): New rule.
17808 (rel): Add dayshift.
17809 (relative_time_table) [tomorrow, yesterday, today, now]:
17810 Use tDAY_SHIFT in place of tDAY_UNIT.
17811 * tests/test-getdate.c: Add tests for now-disallowed countable
17812 dayshifts, e.g., "4 yesterday ago".
17814 2008-09-29 Bruno Haible <bruno@clisp.org>
17816 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
17817 * tests/test-posix_spawn1.in.sh: Renamed from
17818 tests/test-posix_spawn.in.sh.
17819 * tests/test-posix_spawn2.c: New file.
17820 * tests/test-posix_spawn2.in.sh: New file.
17821 * modules/posix_spawnp-tests (Files): Update.
17822 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
17824 2008-09-29 Bruno Haible <bruno@clisp.org>
17826 Propagate effects of putenv/setenv/unsetenv to child processes.
17827 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
17828 * lib/pipe.c (create_pipe): Likewise.
17830 2008-09-29 Bruno Haible <bruno@clisp.org>
17832 Enable use of shell scripts as executables in mingw.
17833 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
17834 run the program as a shell script.
17835 * lib/pipe.c (create_pipe): Likewise.
17836 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
17839 2008-09-29 Eric Blake <ebb9@byu.net>
17841 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
17843 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
17845 * doc/posix-functions/accept.texi: Update mingw problems.
17846 * doc/posix-functions/bind.texi: Update mingw problems.
17847 * doc/posix-functions/close.texi: Update mingw problems.
17848 * doc/posix-functions/connect.texi: Update mingw problems.
17849 * doc/posix-functions/getpeername.texi: Update mingw problems.
17850 * doc/posix-functions/getsockname.texi: Update mingw problems.
17851 * doc/posix-functions/getsockopt.texi: Update mingw problems.
17852 * doc/posix-functions/ioctl.texi: Update mingw problems.
17853 * doc/posix-functions/listen.texi: Update mingw problems.
17854 * doc/posix-functions/recv.texi: Update mingw problems.
17855 * doc/posix-functions/recvfrom.texi: Update mingw problems.
17856 * doc/posix-functions/select.texi: Update mingw problems.
17857 * doc/posix-functions/send.texi: Update mingw problems.
17858 * doc/posix-functions/sendto.texi: Update mingw problems.
17859 * doc/posix-functions/setsockopt.texi: Update mingw problems.
17860 * doc/posix-functions/socket.texi: Update mingw problems.
17862 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
17863 Bruno Haible <bruno@clisp.org>
17865 * lib/sys_select.in.h: Include sys/time.h.
17866 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
17867 * modules/sys_select: Depend on sys_time.
17868 * tests/test-sys_select.c: Test that sys/select.h defines struct
17871 2008-09-29 Bruno Haible <bruno@clisp.org>
17873 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
17874 * lib/sys_select.in.h: Likewise.
17876 2008-09-29 Bruno Haible <bruno@clisp.org>
17878 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
17880 2008-09-29 Bruno Haible <bruno@clisp.org>
17882 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
17883 Set LIBSOCKET instead of augmenting LIBS.
17884 * modules/sockets (Link): New section.
17885 * modules/sockets-tests (test_sockets_LDADD): New variable.
17886 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
17887 * modules/poll-tests (test_poll_LDADD): New variable.
17888 * NEWS: Document the change.
17890 2008-09-29 Bruno Haible <bruno@clisp.org>
17892 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
17893 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
17894 ARPA_INET_H directly.
17895 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17897 2008-09-28 Bruno Haible <bruno@clisp.org>
17899 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
17900 from gl_HEADER_SYS_SOCKET.
17901 (gl_HEADER_SYS_SOCKET): Invoke it.
17902 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17904 2008-09-28 Bruno Haible <bruno@clisp.org>
17906 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
17907 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
17908 Needed on OSF/1 4.0.
17910 2008-09-28 Bruno Haible <bruno@clisp.org>
17912 Override open more carefully.
17913 * lib/open.c (orig_open): New function.
17914 (rpl_open): Use orig_open instead of open.
17915 * lib/fcntl.in.h: Add special invocation convention.
17916 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
17917 (gl_FUNC_OPEN): Invoke it.
17919 Override freopen more carefully.
17920 * lib/freopen.c (orig_freopen): New function.
17921 (rpl_freopen): Use orig_freopen instead of freopen.
17922 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
17923 (gl_FUNC_FREOPEN): Invoke it.
17925 Override fopen more carefully.
17926 * lib/fopen.c (orig_fopen): New function.
17927 (rpl_fopen): Use orig_fopen instead of fopen.
17928 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
17929 (gl_FUNC_FOPEN): Invoke it.
17930 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
17932 2008-09-28 Bruno Haible <bruno@clisp.org>
17934 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
17937 2008-09-28 Bruno Haible <bruno@clisp.org>
17939 * tests/test-sigaction.c (handler, main): Disable the check whether
17940 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
17941 glibc systems with LinuxThreads.
17943 2008-09-28 Bruno Haible <bruno@clisp.org>
17945 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
17947 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
17949 * lib/fcntl.in.h (open): Likewise.
17950 Reported by Rainer Tammer <tammer@tammer.net>.
17952 2008-09-28 Bruno Haible <bruno@clisp.org>
17954 * modules/posix_spawnp-tests: New file.
17955 * tests/test-posix_spawn.c: New file.
17956 * tests/test-posix_spawn.in.sh: New file.
17958 New module 'posix_spawnp'.
17959 * modules/posix_spawnp: New file.
17960 * lib/spawnp.c: New file, from GNU libc with modifications.
17961 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
17963 New module 'posix_spawn'.
17964 * modules/posix_spawn: New file.
17965 * lib/spawn.c: New file, from GNU libc with modifications.
17966 * doc/posix-functions/posix_spawn.texi: Mention the new module.
17968 New module 'posix_spawnattr_destroy'.
17969 * modules/posix_spawnattr_destroy: New file.
17970 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
17971 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
17974 New module 'posix_spawnattr_setsigmask'.
17975 * modules/posix_spawnattr_setsigmask: New file.
17976 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
17978 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
17981 New module 'posix_spawnattr_getsigmask'.
17982 * modules/posix_spawnattr_getsigmask: New file.
17983 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
17985 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
17988 New module 'posix_spawnattr_setsigdefault'.
17989 * modules/posix_spawnattr_setsigdefault: New file.
17990 * lib/spawnattr_setdefault.c: New file, from GNU libc with
17992 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
17995 New module 'posix_spawnattr_getsigdefault'.
17996 * modules/posix_spawnattr_getsigdefault: New file.
17997 * lib/spawnattr_getdefault.c: New file, from GNU libc with
17999 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
18002 New module 'posix_spawnattr_setschedpolicy'.
18003 * modules/posix_spawnattr_setschedpolicy: New file.
18004 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
18006 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
18009 New module 'posix_spawnattr_getschedpolicy'.
18010 * modules/posix_spawnattr_getschedpolicy: New file.
18011 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
18013 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
18016 New module 'posix_spawnattr_setschedparam'.
18017 * modules/posix_spawnattr_setschedparam: New file.
18018 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
18020 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
18023 New module 'posix_spawnattr_getschedparam'.
18024 * modules/posix_spawnattr_getschedparam: New file.
18025 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
18027 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
18030 New module 'posix_spawnattr_setpgroup'.
18031 * modules/posix_spawnattr_setpgroup: New file.
18032 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
18034 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
18037 New module 'posix_spawnattr_getpgroup'.
18038 * modules/posix_spawnattr_getpgroup: New file.
18039 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
18041 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
18044 New module 'posix_spawnattr_setflags'.
18045 * modules/posix_spawnattr_setflags: New file.
18046 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
18047 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
18050 New module 'posix_spawnattr_getflags'.
18051 * modules/posix_spawnattr_getflags: New file.
18052 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
18053 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
18056 New module 'posix_spawnattr_init'.
18057 * modules/posix_spawnattr_init: New file.
18058 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
18059 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
18062 New module 'posix_spawn_file_actions_destroy'.
18063 * modules/posix_spawn_file_actions_destroy: New file.
18064 * lib/spawn_faction_destroy.c: New file, from GNU libc with
18066 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
18069 New module 'posix_spawn_file_actions_addopen'.
18070 * modules/posix_spawn_file_actions_addopen: New file.
18071 * lib/spawn_faction_addopen.c: New file, from GNU libc with
18073 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
18076 New module 'posix_spawn_file_actions_adddup2'.
18077 * modules/posix_spawn_file_actions_adddup2: New file.
18078 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
18080 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
18083 New module 'posix_spawn_file_actions_addclose'.
18084 * modules/posix_spawn_file_actions_addclose: New file.
18085 * lib/spawn_faction_addclose.c: New file, from GNU libc with
18087 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
18090 New module 'posix_spawn_file_actions_init'.
18091 * modules/posix_spawn_file_actions_init: New file.
18092 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
18093 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
18096 New module 'posix_spawn-internal'.
18097 * modules/posix_spawn-internal: New file.
18098 * lib/spawn_int.h: New file, from GNU libc with modifications.
18099 * lib/spawni.c: New file, from GNU libc with modifications.
18100 * m4/posix_spawn.m4: New file.
18102 New module 'spawn'.
18103 * modules/spawn: New file.
18104 * lib/spawn.in.h: New file, from GNU libc with modifications.
18105 * m4/spawn_h.m4: New file.
18106 * doc/posix-headers/spawn.texi: Mention the new module.
18108 2008-09-28 Bruno Haible <bruno@clisp.org>
18110 * modules/sched-tests: New file.
18111 * tests/test-sched.c: New file.
18113 New module 'sched'.
18114 * modules/sched: New file.
18115 * lib/sched.in.h: New file.
18116 * m4/sched_h.m4: New file.
18117 * doc/posix-headers/sched.texi: Mention the new module.
18119 2008-09-27 Eric Blake <ebb9@byu.net>
18121 Fix previous patch, and tweak references to $0.
18122 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
18123 (func_version, func_gnulib_dir): Don't call this program
18125 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
18126 with using $0 in function.
18127 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
18128 (func_fatal_error): Reuse the name the user invoked us with.
18130 2008-09-27 Bruno Haible <bruno@clisp.org>
18132 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
18133 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
18134 (gl_ICONV_H): Not here.
18135 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18136 instead of assigning ICONV_H directly.
18138 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
18139 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
18142 2008-09-27 Bruno Haible <bruno@clisp.org>
18144 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
18145 * modules/arpa_inet (Depends-on): Add link-warning.
18146 (Makefile.am): Insert the definition of GL_LINK-WARNING.
18147 * modules/unistd (Makefile.am): Likewise.
18149 2008-09-26 Bruno Haible <bruno@clisp.org>
18151 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
18153 (func_version): Essentially copied from gnulib-tool.
18154 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
18155 func_readlink): Copied from gnulib-tool.
18157 2008-09-26 Bruno Haible <bruno@clisp.org>
18159 * gnulib-tool (func_version): Change directory to $gnulib_dir before
18160 invoking git-version-gen.
18162 2008-09-26 Bruno Haible <bruno@clisp.org>
18164 * posix-modules: Update to directory names changed on 2008-01-19.
18165 Remove commas in output before splitting into words. No more need to
18166 avoid 'ftruncate' since 2007-02-19.
18168 2008-09-26 Bruno Haible <bruno@clisp.org>
18170 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
18172 2008-09-26 Bruno Haible <bruno@clisp.org>
18174 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
18175 * modules/fwriteerror (Depends-on): Add errno.
18177 2008-09-26 Bruno Haible <bruno@clisp.org>
18179 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
18180 * tests/test-vc-list-files-cvs.sh: Likewise.
18182 2008-09-26 Bruno Haible <bruno@clisp.org>
18184 * doc/posix-headers/sys_resource.texi: Reorder items.
18186 2008-09-26 Jim Meyering <meyering@redhat.com>
18188 fts: tweak inode comparison function
18189 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
18190 inode numbers, as documented.
18192 fts: sort dirent entries on inode number before traversing
18193 This avoids a quadratic, seek-related performance penalty when
18194 operating on a directory containing many entries (measurable at 10k;
18195 3.5 hours at 2 million entries with a cold cache) on certain types
18196 of file systems, including ext3 and ext4, but not tmpfs.
18197 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
18198 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
18199 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
18200 (fs_handles_readdir_ordered_dirents_efficiently): New function.
18201 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
18202 (fts_build): Set the stat.st_ino member from D_INO.
18203 If it is likely to be useful, sort dirent entries on inode number.
18205 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
18206 and the struct statfs.f_type member.
18207 * modules/fts (Depends-on): Add d-ino.
18209 2008-09-26 Bruno Haible <bruno@clisp.org>
18211 * modules/sigpipe-die (Depends-on): Add sigpipe.
18213 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
18214 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
18215 and GNULIB_STDIO_H_SIGPIPE are set.
18216 * lib/stdio-write.c: New file.
18217 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
18218 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18219 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18220 REPLACE_STDIO_WRITE_FUNCS.
18221 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
18222 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18223 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18224 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18225 * modules/stdio (Files): Add lib/stdio-write.c.
18226 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
18227 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18228 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18229 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18230 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
18231 REPLACE_FPRINTF_POSIX.
18232 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
18233 REPLACE_PRINTF_POSIX.
18234 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
18235 REPLACE_VFPRINTF_POSIX.
18236 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
18237 REPLACE_VPRINTF_POSIX.
18238 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
18240 * doc/posix-functions/fputc.texi: Likewise.
18241 * doc/posix-functions/fputs.texi: Likewise.
18242 * doc/posix-functions/fwrite.texi: Likewise.
18243 * doc/posix-functions/printf.texi: Likewise.
18244 * doc/posix-functions/putc.texi: Likewise.
18245 * doc/posix-functions/putchar.texi: Likewise.
18246 * doc/posix-functions/puts.texi: Likewise.
18247 * doc/posix-functions/vfprintf.texi: Likewise.
18248 * doc/posix-functions/vprintf.texi: Likewise.
18250 * modules/safe-write (Depends-on): Add write.
18252 * modules/sigpipe-tests: New file.
18253 * tests/test-sigpipe.c: New file.
18254 * tests/test-sigpipe.sh: New file.
18256 * modules/write: New file.
18257 * lib/unistd.in.h: Include <sys/types.h>.
18258 (write): New declaration.
18259 * lib/write.c: New file.
18260 * m4/write.m4: New file.
18261 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18262 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
18263 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
18264 GNULIB_WRITE, REPLACE_WRITE.
18265 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
18266 and the SIGPIPE issue.
18268 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
18269 (raise): New declaration.
18270 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
18271 (ext_signal): New function.
18272 (rpl_raise): New function.
18273 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
18274 GNULIB_SIGNAL_H_SIGPIPE.
18275 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
18276 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
18278 * modules/sigpipe: New file.
18279 * m4/sigpipe.m4: New file.
18281 2008-09-25 Derek Price <derek@ximbiot.com>
18282 Bruno Haible <bruno@clisp.org>
18284 * gnulib-tool (func_import): Report all license incompatibilities, not
18285 just the first one.
18287 2008-09-25 Bruno Haible <bruno@clisp.org>
18289 * gnulib-tool (func_import): When computing the edits, consider not
18290 only the Makefile.ams that exist but also those that will be generated.
18292 2008-09-25 Simon Josefsson <simon@josefsson.org>
18294 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
18295 fixes gnulib-tool --test warning about duplicate dependency.
18297 2008-09-25 Bruno Haible <bruno@clisp.org>
18299 * gnulib-tool: Don't ask the user to perform edits in the generated
18301 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
18302 apply to the Makefile.am being generated.
18303 (func_emit_tests_Makefile_am): Execute edits that apply to the
18304 Makefile.am being generated.
18305 (func_import): Setup list of Makefile.am edits before emitting the
18306 Makefile.ams, not at the end.
18307 (func_create_testdir): Update.
18308 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18310 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18312 * gnulib-tool (func_import): Store the --tests-base option in the
18313 comment in gnulib-cache.m4.
18315 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
18317 * NEWS: Document increased portability that sys_select now provides.
18319 * lib/sys_select.in.h: Install select wrapper.
18320 * lib/sys_socket.in.h: Use more descriptive name when there is no
18322 * lib/winsock-select.c: New.
18323 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
18324 Require gl_HEADER_SYS_SOCKET.
18325 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
18326 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
18327 * tests/test-sys_select.c: Add functional tests.
18329 2008-09-24 Eric Blake <ebb9@byu.net>
18331 open, fopen: close fd leak in last patch
18332 * lib/open.c (rpl_open): Close fd before returning error.
18333 * lib/fopen.c (rpl_fopen): Close fd before returning error.
18334 * doc/posix-functions/open.texi (open): Document that Irix also
18336 * doc/posix-functions/fopen.texi (fopen): Likewise.
18337 Reported by Paolo Bonzini.
18339 2008-09-24 Bruno Haible <bruno@clisp.org>
18341 Ensure that a filename ending in a slash cannot be used to access a
18343 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
18344 to check whether it's really a directory.
18345 * lib/fopen.c: Include fcntl.h, unistd.h.
18346 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
18348 * modules/fopen (Depends-on): Add unistd.
18349 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
18350 * tests/test-fopen.c (main): Likewise.
18351 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
18352 * doc/posix-functions/fopen.texi: Likewise.
18353 Reported by Eric Blake.
18355 2008-09-23 Eric Blake <ebb9@byu.net>
18357 c-stack: avoid compiler optimizations when provoking overflow
18358 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
18359 recursion harder to optimize, to ensure a stack overflow occurs.
18360 * tests/test-c-stack.c (recurse): Likewise.
18361 Borrowed from libsigsegv.
18363 c-stack: work around Irix sigaltstack bug
18364 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
18365 whether sigaltstack uses wrong end of stack_t (copied in part from
18367 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
18368 Irix bug, without requiring an over-allocation.
18369 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
18372 fopen: document mingw bug on directories
18373 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
18374 not allowing a stream visiting a directory, even though reading
18375 from such a stream is not portable.
18377 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
18379 * lib/poll.c: Rewrite.
18380 * modules/poll: Depend on alloca.
18382 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
18384 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
18385 instead define prototypes for a full set of wrappers. Ensure
18386 that Cygwin does not use the compatibility code, which is only
18388 * lib/winsock.c: New.
18389 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
18390 * modules/sys_socket: Add lib/winsock.c.
18392 * modules/poll-tests: Add errno and perror.
18393 * tests/test-poll.c: Use ioctl, not ioctlsocket.
18395 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
18397 * tests/test-poll.c: Downgrade minimum needed Winsock version.
18399 2008-09-23 Bruno Haible <bruno@clisp.org>
18401 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
18402 * doc/glibc-functions/*: Likewise.
18404 2008-09-23 Simon Josefsson <simon@josefsson.org>
18406 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
18409 2008-09-22 Eric Blake <ebb9@byu.net>
18410 Bruno Haible <bruno@clisp.org>
18412 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
18413 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
18414 supply %A but mishandle pseudo-NaN.
18415 Reported by Simon Josefsson.
18417 2008-09-21 Bruno Haible <bruno@clisp.org>
18419 * tests/test-lock.c (main): Tweak skip message.
18420 * tests/test-tls.c (main): Likewise.
18422 2008-09-21 Bruno Haible <bruno@clisp.org>
18424 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
18425 whether 'struct sigaction' has sa_sigaction here...
18426 (gl_PREREQ_SIG_HANDLER_H): ... not here.
18427 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
18429 2008-09-21 Bruno Haible <bruno@clisp.org>
18431 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
18433 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
18434 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
18436 (Support for obsolete systems lacking POSIX:2001): New section.
18437 (String handling <string.h>): Move strdup to the new section.
18438 Suggested by Simon Josefsson and Paolo Bonzini.
18440 2008-09-21 Bruno Haible <bruno@clisp.org>
18442 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
18443 exponents in %e and %g results on 'long double'. Needed for mingw's
18444 improved *printf functions.
18445 * tests/test-vasprintf-posix.c (test_function): Likewise.
18446 * tests/test-snprintf-posix.h (test_function): Likewise.
18447 * tests/test-sprintf-posix.h (test_function): Likewise.
18448 Reported by Eric Blake.
18450 2008-09-21 Bruno Haible <bruno@clisp.org>
18452 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
18453 * tests/test-sprintf-posix.h (test_function): Likewise.
18455 2008-09-21 Bruno Haible <bruno@clisp.org>
18457 * modules/getpass (Depends-on): Add strdup-posix.
18459 New module 'strdup-posix'.
18460 * modules/strdup-posix: New file.
18461 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
18462 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
18463 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18465 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
18466 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
18467 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18470 * modules/strdup (Depends-on): Remove malloc-posix.
18472 2008-09-20 Bruno Haible <bruno@clisp.org>
18474 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
18477 2008-09-20 Bruno Haible <bruno@clisp.org>
18479 Ensure that wint_t gets defined on IRIX 5.3.
18480 * lib/wchar.in.h (wint_t): Define if not defined by the system.
18481 * lib/wctype.in.h (wint_t): Likewise.
18482 (__wctype_wint_t): Remove type.
18483 (isw*): Use wint_t instead of __wctype_wint_t.
18484 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
18485 * modules/wchar (Files): Add m4/wint_t.m4.
18486 (Makefile.am): Substitute HAVE_WINT_T.
18487 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
18488 * tests/test-wctype.c: Check that wint_t is defined.
18489 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
18490 * doc/posix-headers/wctype.texi: Likewise.
18491 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18493 2008-09-18 Bruno Haible <bruno@clisp.org>
18495 * gnulib-tool (func_exit): Update comment.
18497 2008-09-18 Simon Josefsson <simon@josefsson.org>
18499 * modules/getaddrinfo (Depends-on): Remove strdup, this module
18500 assumes strdup exists and does not depend on strdup to return
18501 ENOMEM on out of memory conditions.
18503 2008-09-18 Bruno Haible <bruno@clisp.org>
18505 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
18506 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
18507 digits for the exponent.
18509 2008-09-18 Jim Meyering <meyering@redhat.com>
18510 Bruno Haible <bruno@clisp.org>
18512 * lib/vasnprintf.c (decimal_point_char): Define also if
18513 NEED_PRINTF_INFINITE_LONG_DOUBLE.
18515 2008-09-16 Bruno Haible <bruno@clisp.org>
18516 and Eric Blake <ebb9@byu.net>
18518 vasnprintf: support Irix 5.3
18519 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
18520 that mishandle long double infinity.
18521 Reported by Tom G. Christensen.
18523 2008-09-16 Bruno Haible <bruno@clisp.org>
18525 * doc/glibc-functions/scandir.texi: Mention the function is missing on
18527 * doc/glibc-functions/alphasort.texi: Likewise.
18528 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
18530 2008-09-16 Jim Meyering <meyering@redhat.com>
18532 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
18533 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
18534 a umask modification leak out of a subshell. Otherwise, the
18535 opensolaris /bin/sh would be accepted and thus cause unwarranted
18536 failures in the coreutils test suite.
18538 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
18540 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
18543 2008-09-16 Jim Meyering <meyering@redhat.com>
18545 avoid spurious test failure when library is built without ACL support
18546 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
18547 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
18548 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
18549 * tests/test-copy-acl.sh: Likewise.
18551 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18553 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
18554 based on character occurrence counts.
18556 2008-09-15 Eric Blake <ebb9@byu.net>
18558 tests: avoid some compiler warnings
18559 * tests/test-memchr.c (main): Pass NULL indirectly.
18560 * tests/test-closein.c (main): Avoid unused variable.
18562 2008-09-15 Bruno Haible <bruno@clisp.org>
18564 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
18565 are missing on OpenBSD 4.0 individually.
18566 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18568 2008-09-15 Bruno Haible <bruno@clisp.org>
18570 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
18571 * doc/posix-functions/strerror.texi: Mention also Cygwin.
18572 * doc/posix-functions/perror.texi: Likewise.
18573 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
18575 Reported by Eric Blake.
18577 * lib/errno.in.h: Use replacement values >= 2000.
18578 Reported by Eric Blake.
18580 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18582 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
18583 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
18585 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
18586 compareseq was aborted.
18588 2008-09-14 Bruno Haible <bruno@clisp.org>
18590 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
18592 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
18593 (fstrcmp_bounded): Simplify result computation accordingly.
18595 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18597 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
18598 (fstrcmp): Define in terms of fstrcmp_bounded.
18599 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
18600 lower_bound argument.
18601 Return quickly if the result is certainly < lower_bound.
18602 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
18604 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18606 * lib/diffseq.h (EARLY_ABORT): New macro.
18607 (compareseq): Change return type to bool. Return true when EARLY_ABORT
18610 2008-09-14 Bruno Haible <bruno@clisp.org>
18612 * modules/perror-tests: New file.
18613 * tests/test-perror.sh: New file.
18614 * tests/test-perror.c: New file.
18616 New module 'perror'.
18617 * lib/stdio.in.h (perror): New declaration.
18618 * lib/perror.c: New file.
18619 * m4/perror.m4: New file.
18620 * modules/perror: New file.
18621 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
18622 * doc/posix-functions/perror.texi: Mention the perror module.
18623 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
18625 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
18628 2008-09-14 Bruno Haible <bruno@clisp.org>
18630 * modules/stdio (Makefile.am): Reorder to match the order in
18632 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18634 2008-09-13 Bruno Haible <bruno@clisp.org>
18636 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
18638 2008-09-13 Bruno Haible <bruno@clisp.org>
18640 Extend strerror to cover the added errno values.
18641 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
18642 (rpl_strerror): Provide error messages for the added errno values and
18643 for the WSA* values.
18644 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
18645 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
18647 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
18648 * modules/strerror (Depends-on): Add errno.
18649 * doc/posix-functions/strerror.texi: Document the change.
18650 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
18653 2008-09-13 Bruno Haible <bruno@clisp.org>
18655 * modules/EOVERFLOW: Remove file.
18656 * m4/eoverflow.m4: Remove file.
18657 * modules/EOVERFLOW-tests: Remove file.
18658 * tests/test-EOVERFLOW.c: Remove file.
18659 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
18660 * modules/ftell (Depends-on): Likewise.
18661 * modules/getdelim (Depends-on): Likewise.
18662 * modules/getugroups (Depends-on): Likewise.
18663 * modules/poll (Depends-on): Likewise.
18664 * modules/snprintf (Depends-on): Likewise.
18665 * modules/sprintf-posix (Depends-on): Likewise.
18666 * modules/vasnprintf (Depends-on): Likewise.
18667 * modules/vasprintf (Depends-on): Likewise.
18668 * modules/vfprintf-posix (Depends-on): Likewise.
18669 * modules/vsnprintf (Depends-on): Likewise.
18670 * modules/vsprintf-posix (Depends-on): Likewise.
18671 * modules/xvasprintf (Depends-on): Likewise.
18672 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18673 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
18674 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
18675 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
18676 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18677 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
18678 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
18679 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
18680 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18681 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
18682 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
18683 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
18684 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18685 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
18686 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
18687 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
18688 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18689 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
18690 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
18691 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
18692 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18693 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
18694 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
18695 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
18696 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
18697 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18698 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
18699 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
18700 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
18701 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
18702 * MODULES.html.sh: Remove EOVERFLOW.
18703 * NEWS: Mention the change.
18705 2008-09-13 Bruno Haible <bruno@clisp.org>
18707 * modules/errno-tests: New file.
18708 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
18710 * lib/errno.in.h: New file.
18711 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
18712 * modules/errno: New file.
18713 * doc/posix-headers/errno.texi: Update documentation.
18714 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
18716 2008-09-13 Bruno Haible <bruno@clisp.org>
18718 * tests/test-poll.c: Use #if for native Windows, rather than testing
18721 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18722 Bruno Haible <bruno@clisp.org>
18724 * lib/glob.c: Don't include <pwd.h> on native Windows.
18725 (WINDOWS32): New macro.
18726 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
18728 2008-09-13 Bruno Haible <bruno@clisp.org>
18730 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
18731 (ETIMEDOUT): Remove macro.
18732 (glthread_cond_timedwait_multithreaded): New declaration.
18733 (glthread_cond_timedwait): Use it.
18734 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
18735 (glthread_cond_timedwait_multithreaded): New function.
18737 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
18739 * modules/poll-tests: Do not check for io.h.
18740 * tests/test-poll.c: Check for __MSVCRT__ instead.
18742 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
18744 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
18745 * modules/poll-tests: Add inet_pton, stdbool, sockets.
18746 * tests/test-poll.c: Use them. Use _pipe on Windows.
18748 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
18750 * modules/poll-tests: New.
18751 * tests/test-poll.c: New.
18753 2008-09-12 Eric Blake <ebb9@byu.net>
18755 frexp: test for NetBSD failure on -0.0
18756 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
18757 not all, bugs from NetBSD 3.0 have been fixed.
18758 * doc/posix-functions/frexp.texi (frexp): Document bug.
18759 Reported by Thomas Klausner.
18761 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
18762 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
18764 Reported by Jonathan C. Patschke <jp@centtech.com>.
18766 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18768 * lib/glthread/cond.h: Use dummy implementation also if
18771 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18773 * modules/fnmatch-posix (License): Change to LGPLv2+.
18774 * modules/fnmatch-gnu (License): Likewise.
18776 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18778 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
18780 2008-09-11 Jim Meyering <meyering@redhat.com>
18782 * users.txt: Add gtk-vnc.
18784 2008-09-08 Simon Josefsson <simon@josefsson.org>
18786 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
18789 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
18790 required for 16-bit and 8-bit rotates.
18791 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
18792 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
18793 UINT8_MAX instead of hard-coded constants.
18794 Suggested by Paul Eggert.
18796 2008-09-07 Bruno Haible <bruno@clisp.org>
18798 * tests/test-striconveh.c (main): Check behaviour when converting from
18801 Make striconveh work better with stateful encodings.
18802 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
18803 that iconv does not increment the inptr when returning -1/EINVAL.
18805 2008-09-07 Bruno Haible <bruno@clisp.org>
18807 * build-aux/config.rpath: Update according to libtool-2.2.6.
18808 * build-aux/config.libpath: Likewise.
18810 2008-09-06 Bruno Haible <bruno@clisp.org>
18812 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
18813 * lib/freadptr.c (freadptr): Likewise.
18814 * lib/freadseek.c (freadptrinc): Likewise.
18815 Reported by Simon Josefsson.
18817 2008-09-06 Bruno Haible <bruno@clisp.org>
18819 * modules/freadptr (License): Change to LGPLv2+.
18820 * modules/freadseek (License): Likewise.
18821 Suggested by Eric Blake.
18823 * modules/memchr2 (License): Change to LGPLv2+.
18824 Approved by Eric Blake.
18826 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18827 Bruno Haible <bruno@clisp.org>
18829 Make gnulib-tool work with native 'sed' on AIX.
18830 * gnulib-tool (sed_noop): New variable.
18831 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
18832 func_add_or_update, func_create_testdir): Use it to initialize sed
18834 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18836 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
18837 Bruno Haible <bruno@clisp.org>
18839 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
18840 also works after #include directives.
18842 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
18844 getdate.y: reject an out-of-range timezone value
18845 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
18846 the range [-24...+24]. When specified with only one or two digits,
18847 * tests/test-getdate.c: Tests for the fix.
18848 * doc/getdate.texi: Document this change.
18850 2008-09-03 Bruno Haible <bruno@clisp.org>
18852 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
18854 2008-09-02 Simon Josefsson <simon@josefsson.org>
18856 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
18857 <bruce.korb@gmail.com> with ideas from Ben Pfaff
18858 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
18859 Blake <ebb9@byu.net>.
18861 * tests/test-bitrotate.c: Add more test vectors.
18863 2008-09-02 Eric Blake <ebb9@byu.net>
18865 vasnprintf-posix: handle large precision via %.*d
18866 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
18867 when handling it ourselves.
18868 * tests/test-vasnprintf-posix.c (test_function): Add test.
18869 * tests/test-snprintf-posix.h (test_function): Likewise.
18870 * tests/test-sprintf-posix.h (test_function): Likewise.
18871 * tests/test-vasprintf-posix.c (test_function): Likewise.
18872 Reported by Alain Guibert.
18874 2008-09-01 Eric Blake <ebb9@byu.net>
18876 c-stack: make configure-time check more robust
18877 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
18878 successful sigaction call.
18879 Reported by Tom G. Christensen.
18881 2008-09-01 Bruno Haible <bruno@clisp.org>
18883 New module 'findprog-lgpl'.
18884 * modules/findprog-lgpl: New file.
18885 * lib/findprog-lgpl.c: New file.
18886 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
18887 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
18888 to decide whether to use strdup or xstrdup, concatenated_filename or
18889 xconcatenated_filename.
18891 2008-09-01 Bruno Haible <bruno@clisp.org>
18893 Split module 'concat-filename' into 'concat-filename' (LGPL) and
18894 'xconcat-filename' (GPL).
18895 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
18896 (License): Change to LGPLv2+.
18897 * modules/xconcat-filename: New file.
18898 * lib/concat-filename.h (concatenated_filename): Change specification.
18899 (xconcatenated_filename): New declaration.
18900 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
18901 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
18903 * lib/xconcat-filename.c: New file.
18904 * NEWS: Mention the change.
18905 * lib/findprog.c: Include concat-filename.h, not filename.h.
18906 (find_in_path): Use xconcatenated_filename instead of
18907 concatenated_filename.
18908 * lib/javacomp.c: Include concat-filename.h, not filename.h.
18909 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18910 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18911 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18912 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
18913 instead of concatenated_filename.
18914 * lib/javaexec.c: Include concat-filename.h, not filename.h.
18915 (execute_java_class): Use xconcatenated_filename instead of
18916 concatenated_filename.
18917 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
18918 * modules/javacomp (Depends-on): Likewise.
18919 * modules/javaexec (Depends-on): Likewise.
18921 2008-09-01 Bruno Haible <bruno@clisp.org>
18923 Split module 'filename' into 'filename' and 'concat-filename'.
18924 * modules/filename: Keep only lib/filename.h.
18925 (License): Change to LGPLv2+.
18926 * modules/concat-filename: New file, extracted from modules/filename.
18927 * lib/filename.h (concatenated_filename): Remove declaration.
18928 * lib/concat-filename.h: New file, extracted from lib/filename.h.
18929 * lib/concat-filename.c: Include concat-filename.h.
18930 * NEWS: Mention the change.
18932 2008-09-01 Simon Josefsson <simon@josefsson.org>
18934 * lib/bitrotate.h (rotl8, rotr8): Add.
18936 * modules/bitrotate (configure.ac): Need
18937 AC_REQUIRE([AC_C_INLINE]).
18938 (Description): Mention stdint.h. Reported by Bruno Haible
18941 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
18942 Paolo Bonzini <bonzini@gnu.org>.
18944 2008-08-31 Bruno Haible <bruno@clisp.org>
18946 Assume Solaris specific bi-arch conventions on Solaris systems.
18947 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
18948 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
18949 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
18950 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
18951 like acl_libdirstem.
18952 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
18954 * NEWS: Mention the change.
18955 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
18957 2008-08-31 Jim Meyering <meyering@redhat.com>
18959 * lib/strftime.h: Add comments describing the two added arguments.
18961 remove duplicate #include directives
18962 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
18963 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
18965 2008-08-31 Bruno Haible <bruno@clisp.org>
18967 New module 'sigpipe-die'.
18968 * modules/sigpipe-die: New file.
18969 * lib/sigpipe-die.h: New file.
18970 * lib/sigpipe-die.c: New file.
18971 * MODULES.html.sh (Signal handling): Add sigpipe-die.
18973 2008-08-31 Bruno Haible <bruno@clisp.org>
18975 Don't override previously installed signal handlers.
18976 * lib/fatal-signal.c (saved_sigactions): New variable.
18977 (uninstall_handlers): Reset the signal to the saved handler, not
18978 to SIG_DFL (except when ignored).
18979 (install_handlers): Save the previous handlers.
18981 2008-08-30 Bruno Haible <bruno@clisp.org>
18983 * gnulib-tool (func_reset_sigpipe): New function.
18984 (func_get_automake_snippet, func_modules_transitive_closure,
18985 func_import): Invoke it before a join command that reads from stdin,
18986 to avoid "echo: write error: Broken pipe" error messages on stderr.
18987 Reported by Sam Steingold <sds@gnu.org>.
18989 2008-08-30 Bruno Haible <bruno@clisp.org>
18991 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
18992 Code copied from m4/open.m4.
18993 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
18994 access and the filename ends in a slash. Code copied from lib/open.c.
18995 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
18996 * tests/test-fopen.c (main): Check against bug with trailing slash.
18998 2008-08-29 Bruno Haible <bruno@clisp.org>
19000 Avoid some "gcc -pedantic" warnings.
19001 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
19002 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
19003 * lib/dirent.in.h: Likewise.
19004 * lib/fcntl.in.h: Likewise.
19005 * lib/float.in.h: Likewise.
19006 * lib/iconv.in.h: Likewise.
19007 * lib/inttypes.in.h: Likewise.
19008 * lib/locale.in.h: Likewise.
19009 * lib/math.in.h: Likewise.
19010 * lib/netinet_in.in.h: Likewise.
19011 * lib/search.in.h: Likewise.
19012 * lib/signal.in.h: Likewise.
19013 * lib/stdarg.in.h: Likewise.
19014 * lib/stdint.in.h: Likewise.
19015 * lib/stdio.in.h: Likewise.
19016 * lib/stdlib.in.h: Likewise.
19017 * lib/string.in.h: Likewise.
19018 * lib/strings.in.h: Likewise.
19019 * lib/sys_select.in.h: Likewise.
19020 * lib/sys_socket.in.h: Likewise.
19021 * lib/sys_stat.in.h: Likewise.
19022 * lib/sys_time.in.h: Likewise.
19023 * lib/sysexits.in.h: Likewise.
19024 * lib/time.in.h: Likewise.
19025 * lib/unistd.in.h: Likewise.
19026 * lib/wchar.in.h: Likewise.
19027 * lib/wctype.in.h: Likewise.
19028 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
19029 * modules/fchdir (Makefile.am): Likewise.
19030 * modules/fcntl (Makefile.am): Likewise.
19031 * modules/float (Makefile.am): Likewise.
19032 * modules/iconv_open (Makefile.am): Likewise.
19033 * modules/inttypes (Makefile.am): Likewise.
19034 * modules/locale (Makefile.am): Likewise.
19035 * modules/math (Makefile.am): Likewise.
19036 * modules/netinet_in (Makefile.am): Likewise.
19037 * modules/search (Makefile.am): Likewise.
19038 * modules/signal (Makefile.am): Likewise.
19039 * modules/stdarg (Makefile.am): Likewise.
19040 * modules/stdint (Makefile.am): Likewise.
19041 * modules/stdio (Makefile.am): Likewise.
19042 * modules/stdlib (Makefile.am): Likewise.
19043 * modules/string (Makefile.am): Likewise.
19044 * modules/strings (Makefile.am): Likewise.
19045 * modules/sys_select (Makefile.am): Likewise.
19046 * modules/sys_socket (Makefile.am): Likewise.
19047 * modules/sys_stat (Makefile.am): Likewise.
19048 * modules/sys_time (Makefile.am): Likewise.
19049 * modules/sysexits (Makefile.am): Likewise.
19050 * modules/time (Makefile.am): Likewise.
19051 * modules/unistd (Makefile.am): Likewise.
19052 * modules/wchar (Makefile.am): Likewise.
19053 * modules/wctype (Makefile.am): Likewise.
19054 Reported by Reuben Thomas <rrt@sc3d.org>.
19056 2008-08-29 Bruno Haible <bruno@clisp.org>
19058 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
19061 2008-08-29 Simon Josefsson <simon@josefsson.org>
19063 * MODULES.html.sh (Misc): Add bitrotate.
19065 * modules/bitrotate: New file.
19067 * lib/bitrotate.h: New file.
19069 * modules/bitrotate-tests: New file.
19071 * tests/test-bitrotate.c: New file.
19073 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
19074 on the bitrotate module.
19076 * lib/arctwo.c: Use new bitrotate module.
19078 2008-08-29 Jim Meyering <meyering@redhat.com>
19080 bootstrap: merge changes from coreutils
19081 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
19082 of copied files. Remove a kludge, now that this is fixed.
19083 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
19084 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
19085 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
19087 2008-08-29 Bruno Haible <bruno@clisp.org>
19089 * MODULES.html.sh: Remove --cvs-urls option.
19091 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
19093 maint.mk: adjust to file name change
19094 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
19096 2008-08-28 Jim Meyering <meyering@redhat.com>
19098 * modules/getndelim2 (License): Relicense to LGPLv2+.
19099 Approved by Richard Stallman for the version of 1995, and by
19100 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
19102 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
19104 * lib/getdelim.c (flockfile, funlockfile): Make all of them
19105 dummy if one is not available. Do not touch them if
19106 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
19107 (getc_maybe_unlocked): New.
19108 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
19110 2008-08-26 Eric Blake <ebb9@byu.net>
19112 doc/INSTALL: resync from autoconf
19113 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
19114 (INSTALL_PRELUDE): Delete; this is done more efficiently by
19116 * install.texi [!autoconf]: ...here. Resync from autoconf.
19117 * INSTALL: Regenerate.
19118 * INSTALL.ISO: New file.
19119 * INSTALL.UTF-8: Likewise.
19121 2008-08-26 Jim Meyering <meyering@redhat.com>
19123 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
19124 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
19125 these definitions conditional, so that they may be overridden, too.
19127 2008-08-26 Bruno Haible <bruno@clisp.org>
19129 Generate INSTALL file variants with prettier quotes.
19130 * doc/Makefile (INSTALL_PRELUDE): New macro.
19132 (INSTALL.ISO, INSTALL.UTF-8): New rules.
19134 2008-08-26 Bruno Haible <bruno@clisp.org>
19136 Run makeinfo in an English locale.
19137 * doc/Makefile (MAKEINFO): New variable.
19139 2008-08-26 Bruno Haible <bruno@clisp.org>
19141 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
19142 Suggested by Eric Blake.
19144 2008-08-25 Bruno Haible <bruno@clisp.org>
19146 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
19148 2008-08-25 Eric Blake <ebb9@byu.net>
19150 c-stack: test that stack overflow can be caught
19151 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
19152 that platform allows handling stack overflow; at least OS/2 EMX
19153 has sigaltstack, but crashes before transferring control to
19154 handler on stack overflow.
19155 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
19156 check for HAVE_STACK_OVERFLOW_HANDLING.
19157 Reported by Elbert Pol.
19159 2008-08-25 Bruno Haible <bruno@clisp.org>
19161 * doc/posix-functions/strftime.texi: Fix description of strftime
19164 2008-08-24 Bruno Haible <bruno@clisp.org>
19166 * tests/uniwidth/test-uc_width2.c: New file.
19167 * tests/uniwidth/test-uc_width2.sh: New file.
19168 * modules/uniwidth/width-tests (Files): Add the new files.
19169 (TESTS): Add uniwidth/test-uc_width2.sh.
19170 (TESTS_ENVIRONMENT): New variable.
19171 (check_PROGRAMS): Add test-uc_width2.
19172 (test_uc_width2_SOURCES): New variable.
19174 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
19175 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
19177 Reported by Alexander V. Lukyanov <lav@netis.ru>.
19179 2008-08-22 Eric Blake <ebb9@byu.net>
19181 test-lock, test-tls: mention why a test is skipped
19182 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
19184 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
19186 count-one-bits: relax license
19187 * modules/count-one-bits (License): Relicense to LGPLv2+.
19188 Suggested by Ludovic Courtès, approved by Ben Pfaff.
19190 2008-08-22 Andreas Schwab <schwab@suse.de>
19192 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19193 Remove spurious space in assignment.
19195 2008-08-21 Simon Josefsson <simon@josefsson.org>
19197 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
19198 Paul Eggert <eggert@CS.UCLA.EDU>.
19200 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
19202 * modules/gettext: Add m4/threadlib.m4.
19204 2008-08-19 Eric Blake <ebb9@byu.net>
19206 test-c-stack: fix compilation failure on FreeBSD 5.0
19207 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
19208 headers before <sys/resource.h>.
19209 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
19211 Reported by Nelson H. F. Beebe.
19213 strverscmp: migrate from "strverscmp.h" to <string.h>
19214 * modules/string (Makefile.am): Add new hooks.
19215 * modules/strverscmp (Files): Remove strverscmp.h.
19216 (Depends-on): Add string.
19217 (configure.ac): Add indicator.
19218 (Include): Mention new header.
19219 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
19221 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
19223 * lib/strverscmp.h: Delete.
19224 * lib/string.in.h (strverscmp): Provide declaration, when needed.
19225 * tests/test-strverscmp.c (includes): Adjust client.
19226 * lib/check-version.c (includes): Likewise.
19227 * NEWS: Document the change.
19229 strverscmp: add unit test
19230 * modules/strverscmp-tests: New file.
19231 * tests/test-strverscmp.c: Likewise.
19233 2008-08-19 Simon Josefsson <simon@josefsson.org>
19235 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
19236 regarding Windows crypto stuff, from Mono.
19238 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
19240 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
19241 if present, for intel RND. Return error on failures.
19243 2008-08-18 Ben Pfaff <blp@gnu.org>
19245 gitlog-to-changelog: give better diagnostic for failed pipe-open
19246 * build-aux/gitlog-to-changelog: Improve error message: suggest
19247 that the version of Git may be too old.
19249 2008-08-18 Simon Josefsson <simon@josefsson.org>
19251 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
19252 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
19254 2008-08-18 Bruno Haible <bruno@clisp.org>
19256 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
19259 2008-08-18 Bruno Haible <bruno@clisp.org>
19261 * lib/glthread/threadlib.c: Include <pthread.h>.
19263 2008-08-18 Bruno Haible <bruno@clisp.org>
19265 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
19266 glthread_recursive_lock_* macros.
19267 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
19270 2008-08-18 Bruno Haible <bruno@clisp.org>
19272 * lib/glthread/thread.c: Avoid forcing a context switch right after
19275 2008-08-17 Bruno Haible <bruno@clisp.org>
19277 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
19278 * lib/glthread/thread.h: Provide Win32 specific implementation.
19279 * modules/thread (Files): Add lib/glthread/thread.c.
19280 (Depends-on): Add lock.
19281 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
19283 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19285 New module 'yield'.
19286 * modules/yield: New file.
19287 * lib/glthread/yield.h: New file.
19288 * m4/yield.m4: New file.
19289 * MODULES.html.sh (Multithreading): Add yield.
19291 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19293 New module 'thread'.
19294 * modules/thread: New file.
19295 * lib/glthread/thread.h: New file.
19296 * m4/thread.m4: New file.
19297 * MODULES.html.sh (Multithreading): Add thread.
19299 2008-08-17 Bruno Haible <bruno@clisp.org>
19301 * lib/glthread/lock.h: Include <stdlib.h> always.
19302 * lib/glthread/tls.h: Likewise.
19303 * lib/glthread/cond.h: Likewise.
19305 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19308 * modules/cond: New file.
19309 * lib/glthread/cond.h: New file.
19310 * lib/glthread/cond.c: New file.
19311 * m4/cond.m4: New file.
19312 * MODULES.html.sh (Multithreading): Add cond.
19314 2008-08-16 Eric Blake <ebb9@byu.net>
19316 c-stack: fix regression on Irix 5.3 from 2008-06-21
19317 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
19319 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
19320 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
19321 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
19322 * modules/signal (Makefile.am): Use the value.
19323 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
19324 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
19325 * doc/posix-headers/signal.texi (signal.h): Document this
19327 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
19328 Reported by Tom G. Christensen.
19330 2008-08-17 Bruno Haible <bruno@clisp.org>
19332 New module 'threadlib'.
19333 * modules/threadlib: New file.
19334 * lib/glthread/threadlib.c: New file, extracted from
19335 lib/glthread/lock.c.
19336 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
19338 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
19339 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
19340 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
19342 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
19343 (gl_DISABLE_THREADS): Remove macro.
19344 * modules/lock (Files): Remove build-aux/config.rpath.
19345 (Depends-on): Remove havelib. Add threadlib.
19346 (configure.ac-early): Remove section.
19347 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
19348 * modules/tls (Depends-on): Remove lock. Add threadlib.
19349 (Link): New section, copied from threadlib.
19350 * MODULES.html.sh (Multithreading): Add threadlib.
19352 2008-08-14 Bruno Haible <bruno@clisp.org>
19354 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
19355 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
19356 glthread_rwlock_unlock, glthread_rwlock_destroy,
19357 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
19358 glthread_recursive_lock_destroy): Define as macros always.
19359 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
19360 glthread_lock_lock.
19361 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
19362 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
19363 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
19364 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
19365 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
19366 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
19367 (glthread_recursive_lock_lock_func): Renamed from
19368 glthread_recursive_lock_lock.
19369 (glthread_recursive_lock_unlock_func): Renamed from
19370 glthread_recursive_lock_unlock.
19371 (glthread_recursive_lock_destroy_func): Renamed from
19372 glthread_recursive_lock_destroy.
19374 2008-08-14 Bruno Haible <bruno@clisp.org>
19376 * lib/glthread/lock.h: Renamed from lib/lock.h.
19377 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
19378 * lib/glthread/tls.h: Renamed from lib/tls.h.
19379 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
19380 * lib/fstrcmp.c: Update includes.
19381 * lib/strsignal.c: Update includes.
19382 * modules/lock (Files, Makefile.am): Update.
19383 (Include): Change to "glthread/lock.h".
19384 * modules/tls (Files, Makefile.am): Update.
19385 (Include): Change to "glthread/tls.h".
19386 * tests/test-lock.c: Update includes.
19387 * tests/test-tls.c: Update includes.
19388 * NEWS: Mention the renamed header files.
19390 2008-08-11 Jim Meyering <meyering@redhat.com>
19392 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
19394 2008-08-11 Eric Blake <ebb9@byu.net>
19396 test-c-stack: avoid C99-ism
19397 * tests/test-c-stack.c (main): Fix whitespace, move declaration
19399 Reported by Alain Guibert.
19401 2008-08-10 Jim Meyering <meyering@redhat.com>
19403 ensure that return value of uinttostr et al are not ignored
19404 * lib/inttostr.h (__GNUC_PREREQ): Define.
19405 (__attribute_warn_unused_result__): Define.
19406 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
19408 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
19410 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
19411 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
19413 2008-08-07 Jim Meyering <meyering@redhat.com>
19415 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
19417 * modules/mkstemp (License): Relicense under LGPLv2+.
19418 * modules/tempname (License): Likewise.
19420 2008-08-06 Bruno Haible <bruno@clisp.org>
19422 * lib/poll.c (poll): Further micro-optimization.
19424 2008-08-06 Jim Meyering <meyering@redhat.com>
19426 inet_pton.c: use locale-independent tolower
19427 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
19428 (inet_pton6): Use c_tolower rather than tolower.
19429 * modules/inet_pton (Depends-on): Add c-ctype.
19431 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
19433 * lib/poll.c (poll): Avoid division when timeout is 0, cache
19434 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
19436 2008-08-06 Jim Meyering <meyering@redhat.com>
19438 * modules/inet_pton (License): Relicense under LGPLv2+.
19440 2008-08-03 Bruno Haible <bruno@clisp.org>
19442 Additional non-aborting API for lock and tls.
19443 * lib/lock.h: Include <errno.h>.
19444 (glthread_lock_init): New macro/function.
19445 (gl_lock_init): Define as wrapper around glthread_lock_init.
19446 (glthread_lock_lock): New macro/function.
19447 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
19448 (glthread_lock_unlock): New macro/function.
19449 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
19450 (glthread_lock_destroy): New macro/function.
19451 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
19452 (glthread_rwlock_init): New macro/function.
19453 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
19454 (glthread_rwlock_rdlock): New macro/function.
19455 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
19456 (glthread_rwlock_wrlock): New macro/function.
19457 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
19458 (glthread_rwlock_unlock): New macro/function.
19459 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
19460 (glthread_rwlock_destroy): New macro/function.
19461 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
19462 (glthread_recursive_lock_init): New macro/function.
19463 (gl_recursive_lock_init): Define as wrapper around
19464 glthread_recursive_lock_init.
19465 (glthread_recursive_lock_lock): New macro/function.
19466 (gl_recursive_lock_lock): Define as wrapper around
19467 glthread_recursive_lock_lock.
19468 (glthread_recursive_lock_unlock): New macro/function.
19469 (gl_recursive_lock_unlock): Define as wrapper around
19470 glthread_recursive_lock_unlock.
19471 (glthread_recursive_lock_destroy): New macro/function.
19472 (gl_recursive_lock_destroy): Define as wrapper around
19473 glthread_recursive_lock_destroy.
19474 (glthread_once): New macro/function.
19475 (gl_once): Define as wrapper around glthread_once.
19476 Update function declarations.
19477 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
19478 glthread_rwlock_init. Return error code.
19479 (glthread_rwlock_rdlock_multithreaded): Renamed from
19480 glthread_rwlock_rdlock. Return error code.
19481 (glthread_rwlock_wrlock_multithreaded): Renamed from
19482 glthread_rwlock_wrlock. Return error code.
19483 (glthread_rwlock_unlock_multithreaded): Renamed from
19484 glthread_rwlock_unlock. Return error code.
19485 (glthread_rwlock_destroy_multithreaded): Renamed from
19486 glthread_rwlock_destroy. Return error code.
19487 (glthread_recursive_lock_init_multithreaded): Renamed from
19488 glthread_recursive_lock_init. Return error code.
19489 (glthread_recursive_lock_lock_multithreaded): Renamed from
19490 glthread_recursive_lock_lock. Return error code.
19491 (glthread_recursive_lock_unlock_multithreaded): Renamed from
19492 glthread_recursive_lock_unlock. Return error code.
19493 (glthread_recursive_lock_destroy_multithreaded): Renamed from
19494 glthread_recursive_lock_destroy. Return error code.
19495 (glthread_once_call): Make static.
19496 (glthread_once_multithreaded): Renamed from glthread_once.
19497 * lib/tls.h: Include <errno.h>.
19498 (glthread_tls_key_init): New macro/function.
19499 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
19500 (glthread_tls_set): New macro/function.
19501 (gl_tls_set): Define as wrapper around glthread_tls_set.
19502 (glthread_tls_key_destroy): New macro/function.
19503 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
19504 Update function declarations.
19505 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
19507 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19509 2008-08-04 Eric Blake <ebb9@byu.net>
19511 gnumakefile: use space, not TAB, outside of targets
19512 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
19514 2008-08-02 Jim Meyering <meyering@redhat.com>
19516 getdate.y: avoid locale-dependent date parsing failure
19517 In Turkish locales, getdate would fail to recognize keywords
19518 containing a lowercase "i". The solution is not to rely on
19519 locale-sensitive case-conversion.
19520 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
19521 (lookup_word): Use c_toupper in place of toupper.
19522 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
19523 Reported by Vefa Bicakci <bicave@superonline.com> in
19524 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
19525 * modules/getdate (Depends-on): Add c-ctype.
19527 2008-08-02 Bruno Haible <bruno@clisp.org>
19529 * gnulib-tool (func_import): When updating or creating a .gitignore
19530 file, prepend each added line with a slash, and ignore leading slashes
19531 from the existing lines.
19532 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19534 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19536 Portability fix for GNU make 3.79.1.
19537 * top/GNUmakefile: Avoid 'else COND', which older GNU make
19538 versions do not understand.
19540 2008-08-01 Bruno Haible <bruno@clisp.org>
19542 Work around bug of HP-UX 10.20 cc with -0.0 literal.
19543 * tests/test-isnanf.h (zero): New variable.
19544 (main): Avoid literal -0.0f.
19545 * tests/test-isnand.h (zero): New variable.
19546 (main): Avoid literal -0.0.
19547 * tests/test-isnanl.h (zero): New variable.
19548 (main): Avoid literal -0.0L.
19549 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
19550 (test_float, test_double, test_long_double): Avoid literals -0.0f,
19552 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
19553 (test_signbitd): Avoid literal -0.0.
19554 (test_signbitl): Avoid literal -0.0L.
19555 * tests/test-ceilf1.c (zero): New variable.
19556 (main): Avoid literal -0.0f.
19557 * tests/test-ceill.c (zero): New variable.
19558 (main): Avoid literal -0.0L.
19559 * tests/test-floorf1.c (zero): New variable.
19560 (main): Avoid literal -0.0f.
19561 * tests/test-floorl.c (zero): New variable.
19562 (main): Avoid literal -0.0L.
19563 * tests/test-roundf1.c (zero): New variable.
19564 (main): Avoid literal -0.0f.
19565 * tests/test-round1.c (zero): New variable.
19566 (main): Avoid literal -0.0.
19567 * tests/test-roundl.c (zero): New variable.
19568 (main): Avoid literal -0.0L.
19569 * tests/test-truncf1.c (zero): New variable.
19570 (main): Avoid literal -0.0f.
19571 * tests/test-trunc1.c (zero): New variable.
19572 (main): Avoid literal -0.0.
19573 * tests/test-truncl.c (zero): New variable.
19574 (main): Avoid literal -0.0L.
19575 * tests/test-frexp.c (zero): New variable.
19576 (main): Avoid literal -0.0.
19577 * tests/test-frexpl.c (zero): New variable.
19578 (main): Avoid literal -0.0L.
19579 * tests/test-ldexpl.c (zero): New variable.
19580 (main): Avoid literal -0.0L.
19581 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19582 (zerod, zerol): New variables.
19583 (test_function): Avoid literals -0.0, -0.0L.
19584 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19585 (zerod, zerol): New variables.
19586 (test_function): Avoid literals -0.0, -0.0L.
19587 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19588 (zerod, zerol): New variables.
19589 (test_function): Avoid literals -0.0, -0.0L.
19590 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19591 (zerod, zerol): New variables.
19592 (test_function): Avoid literals -0.0, -0.0L.
19593 * tests/test-strtod.c (zero): New variable.
19594 (main): Avoid literal -0.0.
19595 Reported by Jonathan C. Patschke <jp@centtech.com>.
19597 2008-07-31 Jim Meyering <meyering@redhat.com>
19599 sha256.h: correct definition of SHA224_DIGEST_SIZE
19600 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
19601 Reported by Paulie Pena IV <paulie4@gmail.com>.
19602 Define as 224 / 8, rather than as a literal.
19603 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
19604 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
19605 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
19607 2008-07-31 Bruno Haible <bruno@clisp.org>
19609 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
19610 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
19611 Reported by Jonathan Patschke <jp@centtech.com>.
19613 2008-07-31 Bruno Haible <bruno@clisp.org>
19615 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
19616 Reported by Paolo Bonzini <bonzini@gnu.org>.
19618 2008-07-30 Eric Blake <ebb9@byu.net>
19620 test-strtod: allow compilation without -lm
19621 * tests/test-strtod.c (main): Avoid link dependence on fabs.
19622 Reported by Dennis Clarke <blastwave@gmail.com>.
19624 2008-07-28 Jim Meyering <meyering@redhat.com>
19626 bootstrap: work also when there are no .po files in po/
19627 * build-aux/bootstrap (update_po_files): Complete the change
19628 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
19630 2008-07-27 Jim Meyering <meyering@redhat.com>
19632 * users.txt: Add zile.
19634 2008-07-26 Ben Pfaff <blp@gnu.org>
19636 Add missing dependencies on new m4/exponent[fdl].m4 files.
19637 * modules/isnanf-nolibm: Add m4/exponentf.m4.
19638 * modules/isnand-nolibm: Add m4/exponentd.m4.
19639 * modules/isnanl-nolibm: Add m4/exponentl.m4.
19640 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
19641 m4/isnan[fdl].m4, because the macros actually used moved.
19642 Reported by Jim Meyering.
19644 2008-07-14 Ben Pfaff <blp@gnu.org>
19647 * lib/isinf.c: New file.
19648 * lib/math.in.h: Define isinf macro if we have decided to replace
19650 * m4/isinf.m4: New file.
19651 * m4/math_h.m4: Initialize and substitute variables for isinf
19653 * modules/isinf: New file.
19654 * modules/isinf-tests: New file.
19655 * modules/math: Add substitutions for new module.
19656 * tests/test-isinf.c: New file.
19657 * doc/posix-functions/isinf.texi: Mention new module.
19658 * MODULES.html.sh: Mention new module.
19660 2008-07-14 Ben Pfaff <blp@gnu.org>
19662 Factor out some macros for use by additional modules.
19663 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
19665 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
19667 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
19669 * m4/exponentf.m4: New file.
19670 * m4/exponentd.m4: New file.
19671 * m4/exponentl.m4: New file.
19672 * modules/isnanf: Use new file m4/exponentf.m4.
19673 * modules/isnand: Use new file m4/exponentd.m4.
19674 * modules/isnanl: Use new file m4/exponentl.m4.
19676 2008-07-23 Ulrich Drepper <drepper@redhat.com>
19678 mktime.c: normalize tp->tm_isdst value to -1/0/1.
19679 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
19680 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
19681 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
19683 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
19684 readlink on platforms without PATH_MAX.
19686 2008-07-21 Eric Blake <ebb9@byu.net>
19688 Warn, not fail, on stale version.
19689 * top/GNUmakefile (_curr-ver): Tone down previous patch.
19691 Don't allow installation with stale devel version number.
19692 * top/GNUmakefile (_is-install-target): New macro.
19693 (_curr-ver): Forbid installation with stale version number.
19695 2008-07-20 Bruno Haible <bruno@clisp.org>
19697 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
19699 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
19701 2008-07-20 Bruno Haible <bruno@clisp.org>
19703 * lib/c-stack.h (c_stack_action): Add documentation.
19704 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
19706 2008-07-20 Bruno Haible <bruno@clisp.org>
19708 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
19709 * modules/readlink (License): Likewise.
19711 2008-07-17 Eric Blake <ebb9@byu.net>
19713 * modules/c-stack (Link): Fix typo.
19715 Make c-stack use libsigsegv, when available.
19716 * modules/c-stack (Depends-on): Add libsigsegv.
19717 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
19719 * lib/c-stack.c (SIGSTKSZ): Define fallback.
19720 (segv_handler, overflow_handler, c_stack_action)
19721 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
19722 implementation when libsigsegv is available, but only when using
19723 the library is necessary.
19724 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
19725 comment, explaining why XSI check fails on Linux.
19726 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
19727 * tests/test-c-stack2.sh: Tweak skip message.
19728 * NEWS: Document new link-time requirements.
19730 2008-07-16 Eric Blake <ebb9@byu.net>
19732 c-stack: Expose false positives when not using libsigsegv.
19733 * modules/c-stack-tests (Files): Expand test.
19734 * tests/test-c-stack.c (main): Add means to conditionally trigger
19735 non-overflow SIGSEGV.
19736 * tests/test-c-stack2.sh: New file.
19738 2008-07-14 Bruno Haible <bruno@clisp.org>
19740 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
19741 Reported by Eric Blake.
19743 2008-07-14 Sam Steingold <sds@gnu.org>
19744 Bruno Haible <bruno@clisp.org>
19746 New module libsigsegv.
19747 * modules/libsigsegv: New file.
19748 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
19750 * MODULES.html.sh (Signal handling): New section.
19752 2008-07-14 Bruno Haible <bruno@clisp.org>
19754 * modules/unictype/ctype-* (Description): Add the word "function".
19755 Improves the resulting doc in MODULES.html.
19757 2008-07-12 Ben Pfaff <blp@gnu.org>
19759 Add longlong module.
19760 * modules/longlong: New file.
19762 2008-07-12 Bruno Haible <bruno@clisp.org>
19764 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
19767 2008-07-10 Ben Pfaff <blp@gnu.org>
19770 * doc/posix-functions/isnan.texi: Mention new module.
19771 * lib/math.in.h: Define isnan macro if we have decided to replace
19773 * m4/isnan.m4: New file.
19774 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
19775 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
19777 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
19779 * m4/math_h.m4: Initialize and substitute variables for isnan
19781 * modules/isnan: New file.
19782 * modules/isnan-tests: New file.
19783 * modules/math: Add substitutions for new module.
19784 * tests/test-isnan.c: New file.
19785 * MODULES.html.sh: Mention new module.
19787 2008-07-10 Ben Pfaff <blp@gnu.org>
19790 * lib/isnanf.m4: New file.
19791 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
19792 (gl_HAVE_ISNANF_IN_LIBM): New macro.
19793 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
19794 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
19795 * modules/isnanf: New file.
19796 * modules/isnanf-tests: New file.
19797 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
19799 * tests/test-isnanf-nolibm.c: factored most of its contents into
19800 new file tests/test-isnanf.h.
19801 * tests/test-isnanf.h: New file.
19802 * tests/test-isnanf.c: New file.
19803 * MODULES.html.sh: Mention new module.
19804 * doc/glibc-functions/isnanf.texi: Mention new module.
19806 2008-07-10 Ben Pfaff <blp@gnu.org>
19809 * lib/isnand.h: New file.
19810 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
19811 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
19812 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
19813 functionality also.
19814 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
19815 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
19816 (gl_HAVE_ISNAND_IN_LIBM): New macro.
19817 * modules/isnand: New file.
19818 * modules/isnand-tests: New file.
19819 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
19821 * tests/test-isnand-nolibm.c: factored most of its contents into
19822 new file tests/test-isnand.h.
19823 * tests/test-isnand.h: New file.
19824 * tests/test-isnand.c: New file.
19825 * MODULES.html.sh: Mention new module.
19827 2008-07-10 Ben Pfaff <blp@gnu.org>
19829 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
19830 * lib/isnand.h: Rename lib/isnand-nolibm.h.
19831 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
19832 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
19833 * modules/isnanf-nolibm: Update references to renamed files.
19834 * modules/isnand-nolibm: Likewise.
19835 * modules/isnanf-nolibm-tests: Likewise.
19836 * modules/isnand-nolibm-tests: Likewise.
19837 * lib/frexp.c: Likewise.
19838 * lib/isfinite.c: Likewise.
19839 * lib/signbitd.c: Likewise.
19840 * lib/signbitf.c: Likewise.
19841 * lib/vasnprintf.c: Likewise.
19842 * tests/test-ceilf1.c: Likewise.
19843 * tests/test-ceilf2.c: Likewise.
19844 * tests/test-floorf1.c: Likewise.
19845 * tests/test-floorf2.c: Likewise.
19846 * tests/test-frexp.c: Likewise.
19847 * tests/test-round1.c: Likewise.
19848 * tests/test-round2.c: Likewise.
19849 * tests/test-roundf1.c: Likewise.
19850 * tests/test-strtod.c: Likewise.
19851 * tests/test-trunc1.c: Likewise.
19852 * tests/test-trunc2.c: Likewise.
19853 * tests/test-truncf1.c: Likewise.
19854 * tests/test-truncf2.c: Likewise.
19855 * NEWS: Mention the renamed header files.
19857 2008-07-11 Jim Meyering <meyering@redhat.com>
19859 vc-list-files: make the last-resort awk code more portable
19860 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
19861 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
19862 does not support it.
19864 2008-07-10 Eric Blake <ebb9@byu.net>
19866 Work with tar's bootstrap.
19867 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
19868 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
19871 2008-07-09 Jim Meyering <meyering@redhat.com>
19873 posix-shell.m4: fix typo that made this test malfunction
19874 * m4/posix-shell.m4: Remove capitalization in variable name.
19876 2008-07-08 Bruno Haible <bruno@clisp.org>
19878 * m4/onceonly.m4: Update comments.
19879 Reported by Ben Pfaff <blp@cs.stanford.edu>.
19881 2008-07-04 Jim Meyering <meyering@redhat.com>
19883 * users.txt: Add vc-dwim.
19884 (bison, coreutils): Use the gitweb URL.
19886 2008-07-03 Jim Meyering <meyering@redhat.com>
19888 * users.txt: Add libffcall. From Sam Steingold.
19890 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
19892 getdate.y: do not ignore TZ with relative day, month or year offset
19893 * lib/getdate.y (get_date): Move the tz-handling block to follow the
19894 relative-date-handling, since otherwise, the latter would clobber the
19895 sole output (an updated Start value) of the tz-handling block.
19896 * tests/test-getdate.c: Tests for the fix
19898 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19900 Recognize 'foo_LIBRARIES += libgnu.a'.
19901 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
19902 makefile snippet has already specified an installation location,
19905 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
19907 getdate.y: factor out common actions
19908 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
19909 Use them in place of open-coded actions.
19911 2008-07-01 Simon Josefsson <simon@josefsson.org>
19913 Add self-test for getdate module.
19914 * modules/getdate-tests: New file.
19915 * tests/test-getdate.c: New file.
19917 2008-06-29 Bruno Haible <bruno@clisp.org>
19919 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
19921 Reported by Sylvain Beucler <beuc@beuc.net>.
19923 2008-06-29 Bruno Haible <bruno@clisp.org>
19925 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
19926 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
19928 2008-06-29 Bruno Haible <bruno@clisp.org>
19930 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
19932 Reported by Sylvain Beucler <beuc@beuc.net>.
19934 2008-06-26 Jim Meyering <meyering@redhat.com>
19936 make several modules depend on the "open" module
19937 This provides slightly increased consistency when opening-for-write
19938 the name of a non-directory spelled with a trailing slash.
19939 * modules/chdir-safer: Likewise.
19940 * modules/chown: Likewise.
19941 * modules/clean-temp: Likewise.
19942 * modules/copy-file: Likewise.
19943 * modules/fchdir: Likewise.
19944 * modules/fcntl-safer: Likewise.
19945 * modules/pipe: Likewise.
19946 * modules/utime: Likewise.
19947 Prompted by Eric Blake and Bruno Haible.
19949 2008-06-24 Andreas Schwab <schwab@suse.de>
19951 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
19952 literals can be used as initializers for global variables.
19954 2008-06-23 Eric Blake <ebb9@byu.net>
19956 Make gnulib-cache.m4 easier to diff.
19957 * gnulib-tool (func_import): Allow newlines when reading cached
19958 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
19960 2008-06-23 Bruno Haible <bruno@clisp.org>
19962 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
19963 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
19964 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
19965 m4/signalblocking.m4.
19966 (gl_PREREQ_SIGACTION): Don't invoke it.
19967 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
19968 gl_PREREQ_SIG_HANDLER_H.
19969 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19970 Don't check for sigaction here.
19972 2008-06-23 Bruno Haible <bruno@clisp.org>
19974 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
19975 (install_handlers): Don't set the SA_RESETHAND flag.
19977 2008-06-23 Bruno Haible <bruno@clisp.org>
19979 * m4/sigaction.m4: Comment fixes.
19980 * lib/signal.in.h: Likewise.
19982 2008-06-23 Eric Blake <ebb9@byu.net>
19985 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
19987 Avoid SA_ namespace.
19988 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
19989 Reported by Ralf Wildenhues.
19991 Avoid test failure due to SA_RESTORER.
19992 * tests/test-sigaction.c (SA_MASK): New macro.
19993 (main): Avoid failing due to extension flags being set.
19994 Reported by Jim Meyering.
19996 Revert use of sig-handler.h in sigprocmask.c.
19997 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
19998 it requires the existence of struct sigaction.
19999 * lib/sigprocmask.c (handler_t): Restore typedef.
20000 (rpl_signal, old_handlers): Use local type.
20002 2008-06-22 Bruno Haible <bruno@clisp.org>
20004 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
20006 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20008 2008-06-22 Bruno Haible <bruno@clisp.org>
20010 * doc/posix-functions/siginterrupt.texi: Move note.
20012 * lib/signal.in.h (SA_RESTART): New macro.
20013 * lib/sigaction.c: Update comment.
20015 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
20017 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
20018 (gl_PREREQ_SIGPROCMASK): Invoke it.
20019 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
20021 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
20023 * lib/sigprocmask.c: Update a comment.
20025 2008-06-21 Eric Blake <ebb9@byu.net>
20027 Use sigaction module rather than signal().
20028 * modules/c-stack (Depends-on): Add sigaction.
20029 * modules/fatal-signal (Depends-on): Likewise.
20030 * modules/nanosleep (Depends-on): Likewise.
20031 * modules/sigprocmask (Files): Add sig-handler.h.
20032 * modules/sigaction (Files): Likewise.
20033 * lib/sig-handler.h (get_handler): New file, suggested by Paul
20035 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
20036 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
20037 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
20038 (init_fatal_signals): Likewise.
20039 * lib/nanosleep.c (rpl_nanosleep): Likewise.
20040 (siginterrupt): Delete fallback.
20041 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
20043 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
20046 New module sigaction, for mingw.
20047 * modules/sigaction: New module...
20048 * modules/sigaction-tests: ...and its test.
20049 * m4/sigaction.m4: New file.
20050 * lib/sigaction.c: Likewise.
20051 * tests/test-sigaction.c: Likewise.
20052 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
20053 * modules/signal (Makefile.am): Likewise.
20054 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
20056 * doc/posix-headers/signal.texi (signal.h): Mention provided
20058 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
20059 that sigaction is preferable.
20060 * doc/posix-functions/sigaction.texi (sigaction): Mention new
20062 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20065 Improve robustness of sigprocmask by overriding signal.
20066 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
20068 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
20069 (SIGKILL, SIGSTOP): Provide fallbacks.
20070 (rpl_signal): Implement.
20071 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
20072 signal can be called inside handlers.
20074 Fix nanosleep module on mingw.
20075 * modules/nanosleep (Depends-on): Add sys_select.
20076 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
20078 Fix licensing of sigprocmask.
20079 * modules/raise (License): Relicense as LGPL.
20081 2008-06-21 Bruno Haible <bruno@clisp.org>
20083 * lib/propername.c (proper_name_utf8): Don't use the transliterated
20084 result if it contains question marks.
20085 Reported by Michael Geng <linux@michaelgeng.de>.
20087 2008-06-19 Bruno Haible <bruno@clisp.org>
20090 * doc/gnulib.texi: Include updated-stamp.texi.
20091 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
20092 (updated-stamp.texi): New rule.
20093 (gnulib.info): Depend on it.
20094 * doc/.gitignore: Add updated-stamp.texi.
20095 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
20097 2008-06-19 Bruno Haible <bruno@clisp.org>
20099 * doc/Makefile (gnulib.info): Update and simplify dependencies.
20100 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20102 2008-06-19 Eric Blake <ebb9@byu.net>
20104 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
20105 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
20106 Reported by Stepan Kasal.
20108 2008-06-18 Bruno Haible <bruno@clisp.org>
20110 * lib/fatal-signal.c (init_fatal_signals): Add comment.
20111 Reported by Eric Blake.
20113 2008-06-18 Eric Blake <ebb9@byu.net>
20115 Work around cygwin 1.5.25 strsignal bug.
20116 * tests/test-strsignal.c: Allow for const char *.
20117 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
20119 2008-06-18 Simon Josefsson <simon@josefsson.org>
20121 * users.txt: Update URL to article and add author/date
20124 2008-06-17 Bruno Haible <bruno@clisp.org>
20126 New macro gl_DISABLE_THREADS.
20127 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
20128 if the user did not pass --enable-threads or --disable-threads option.
20129 (gl_DISABLE_THREADS): New macro.
20130 Reported by Eric Blake <ebb9@byu.net>.
20132 2008-06-17 Bruno Haible <bruno@clisp.org>
20134 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
20135 when the macro ignores it.
20136 Based on a patch by Eric Blake <ebb9@byu.net>.
20138 2008-06-17 Bruno Haible <bruno@clisp.org>
20140 * modules/tls (License): Change to LGPLv2+.
20141 Reported by Eric Blake.
20143 2008-06-17 Eric Blake <ebb9@byu.net>
20145 Simplify c-stack prerequisites.
20146 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
20147 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
20148 no longer requires <ucontext.h> to exist. Optimize setrlimit
20150 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
20153 Move c-stack test into testsuite.
20154 * modules/c-stack-tests: New file.
20155 * lib/c-stack.c [DEBUG]: Move test program...
20156 * tests/test-c-stack.c: ...into this new file. Skip rather than
20157 fail test if sigaltstack is lacking.
20158 * tests/test-c-stack.sh: New driver file.
20160 2008-06-16 Eric Blake <ebb9@byu.net>
20162 Use raise module consistently.
20163 * modules/fatal-signal (Depends-on): Add raise.
20164 * modules/sigprocmask (Depends-on): Likewise.
20165 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
20166 * lib/sigprocmask.c (sigprocmask): Likewise.
20167 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20168 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
20170 Fix compliance bug in sigpending.
20171 * lib/sigprocmask.c (sigpending): Return pending array via
20172 parameter, not return value.
20174 2008-06-14 Eric Blake <ebb9@byu.net>
20176 Improve obstack-printf test code.
20177 * tests/test-obstack-printf.c (test_function): Fix comment, and
20178 simplify usage of obstack_* in macros. Add a test for coverage.
20179 Reported by Bruno Haible.
20181 2008-06-14 Bruno Haible <bruno@clisp.org>
20183 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
20184 array size as a constant, not as a const variable.
20185 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
20186 AC_USE_SYSTEM_EXTENSIONS.
20187 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20188 Test whether the obstack_printf function actually exists.
20189 * modules/obstack-printf (Depends-on): Add extensions.
20190 (Include): Remove obstack.h.
20191 * modules/obstack-printf-posix (Depends-on): Add extensions.
20192 (Include): Remove obstack.h.
20194 2008-06-13 Eric Blake <ebb9@byu.net>
20196 Add obstack-printf and obstack-printf-posix modules.
20197 * modules/obstack-printf: New file.
20198 * modules/obstack-printf-posix: Likewise.
20199 * MODULES.html.sh (Misc): Mention them.
20200 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20202 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20204 * modules/stdio (Makefile.am): Accomodate new modules.
20205 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20206 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
20208 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
20210 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
20211 (gl_REPLACE_OBSTACK_PRINTF): New macros
20212 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
20213 * tests/test-obstack-printf.c: New file.
20214 * modules/obstack-printf-tests: Likewise.
20215 * modules/obstack-printf-posix-tests: Likewise.
20217 2008-06-11 Bruno Haible <bruno@clisp.org>
20219 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
20220 * lib/open.c: Include errno.h.
20221 (open): Fail when attempting to write to a file that has a trailing
20223 * tests/test-open.c (main): Test against trailing slash bug.
20224 * doc/posix-functions/open.texi: Mention the trailing slash bug.
20226 2008-06-10 Bruno Haible <bruno@clisp.org>
20228 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
20229 for $? to work inside the trap command, with various /bin/sh-s.
20230 * tests/test-vc-list-files-cvs.sh: Likewise.
20232 2008-06-10 Bruno Haible <bruno@clisp.org>
20234 * lib/acl-internal.h: Don't include gettext.h here.
20235 * lib/set-mode-acl.c: Include gettext.h here.
20236 * lib/copy-acl.c: Likewise.
20238 2008-06-10 Bruno Haible <bruno@clisp.org>
20240 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
20241 * lib/wait-process.c (wait_subprocess): Likewise.
20242 * lib/execute.h (execute): Add termsigp argument.
20243 * lib/execute.c (execute): Likewise.
20244 * lib/csharpcomp.c (compile_csharp_using_pnet,
20245 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
20246 * lib/csharpexec.c (execute_csharp_using_pnet,
20247 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
20248 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
20249 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
20250 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
20251 is_jikes_present): Update.
20252 * lib/javaexec.c (execute_java_class): Update.
20253 * lib/javaversion.c (execute_and_read_line): Update.
20254 * NEWS: Document the changes.
20255 Reported by Eric Blake.
20257 2008-06-10 Eric Blake <ebb9@byu.net>
20259 Add missing include.
20260 * tests/test-strstr.c (includes): Add <signal.h>.
20261 * tests/test-strcasestr.c (includes): Likewise.
20262 * tests/test-memmem.c (includes): Likewise.
20264 2008-06-10 Bruno Haible <bruno@clisp.org>
20266 * lib/wait-process.c (wait_subprocess): Add an assertion.
20268 2008-06-10 Bruno Haible <bruno@clisp.org>
20270 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
20272 2008-06-10 Bruno Haible <bruno@clisp.org>
20274 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
20276 * tests/test-strcasestr.c (main): Likewise.
20277 * tests/test-strstr.c (main): Likewise.
20279 2008-06-09 Bruno Haible <bruno@clisp.org>
20281 Work around the Solaris 10 ACE ACLs ABI change.
20282 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
20283 declare if ACL_NO_TRIVIAL is present.
20284 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
20285 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
20286 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
20287 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
20288 define if ACL_NO_TRIVIAL is present.
20289 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
20290 and use the current ABI.
20291 (file_has_acl): Use same #if condition as elsewhere.
20292 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
20293 in use, and use the current ABI.
20294 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
20295 Reported by Jim Meyering.
20297 2008-06-09 Eric Blake <ebb9@byu.net>
20299 Work around environments that (stupidly) ignore SIGALRM.
20300 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
20301 before using alarm().
20302 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20303 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20304 Reported by Ian Beckwith <ianb@erislabs.net>.
20306 Produce autobuild blurb earlier in log.
20307 * modules/autobuild (configure.ac-early): Move AB_INIT here.
20309 2008-06-09 Jim Meyering <meyering@redhat.com>
20310 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
20312 utimens.c: correct kernel bug work-around
20313 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
20314 failure, not success, and the kernel bug we're trying to work
20315 around affects not just the utimensat call, but also the fallback
20317 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
20319 [HAVE_FUTIMENS]: Use the same work-around, here.
20321 2008-06-09 Jim Meyering <meyering@redhat.com>
20323 add more guards around definition of ACE_-related code
20324 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
20325 ALLOW and ACE_OWNER are also defined.
20327 2008-06-08 Bruno Haible <bruno@clisp.org>
20329 * lib/acl-internal.h: Add me as co-author.
20330 * lib/file-has-acl.c: Likewise.
20331 * lib/set-mode-acl.c: Likewise.
20332 * lib/copy-acl.c: Likewise.
20334 2008-06-08 Bruno Haible <bruno@clisp.org>
20336 Add support for AIX ACLs.
20337 * lib/acl-internal.h (acl_nontrivial): New declaration.
20338 * lib/file-has-acl.c (acl_nontrivial): New function.
20339 (file_has_acl): Add implementation using AIX 4 ACL API.
20340 * lib/set-mode-acl.c (qset_acl): Likewise.
20341 * lib/copy-acl.c (qcopy_acl): Likewise.
20343 2008-06-08 Bruno Haible <bruno@clisp.org>
20345 Add support for HP-UX ACLs.
20346 * lib/acl-internal.h (acl_nontrivial): New declaration.
20347 * lib/file-has-acl.c (acl_nontrivial): New function.
20348 (file_has_acl): Add implementation using HP-UX 11 ACL API.
20349 * lib/set-mode-acl.c (qset_acl): Likewise.
20350 * lib/copy-acl.c (qcopy_acl): Likewise.
20352 2008-06-08 Bruno Haible <bruno@clisp.org>
20354 Add support for Cygwin ACLs.
20355 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
20356 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
20357 the chmod_or_fchmod call.
20358 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
20360 2008-06-08 Bruno Haible <bruno@clisp.org>
20362 Fix bug with setuid modes in Solaris 10+ code.
20363 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
20364 succeeded, when the mode contains some special bits.
20366 2008-06-08 Bruno Haible <bruno@clisp.org>
20368 Add support for Solaris 7..10 ACLs.
20369 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
20371 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
20373 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
20374 * lib/set-mode-acl.c (qset_acl): Likewise.
20375 * lib/copy-acl.c (qcopy_acl): Likewise.
20377 2008-06-08 Bruno Haible <bruno@clisp.org>
20379 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
20381 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
20382 (acl_access_nontrivial): Remove MacOS X case.
20383 (file_has_acl): Use acl_extended_nontrivial.
20384 * lib/copy-acl.c (qcopy_acl): Likewise.
20386 2008-06-08 Bruno Haible <bruno@clisp.org>
20388 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
20390 2008-06-08 Jim Meyering <meyering@redhat.com>
20392 * modules/acl (Maintainer): Add Bruno Haible.
20394 2008-06-07 Bruno Haible <bruno@clisp.org>
20396 Improve support for Tru64 ACLs.
20397 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
20400 2008-06-07 Bruno Haible <bruno@clisp.org>
20402 Add support for MacOS X ACLs.
20403 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
20404 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
20405 * lib/set-mode-acl.c (qset_acl): Likewise.
20406 * lib/copy-acl.c (qcopy_acl): Likewise.
20408 2008-06-07 Bruno Haible <bruno@clisp.org>
20410 Fix memory leak introduced on 2008-05-22.
20411 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
20414 2008-06-07 Bruno Haible <bruno@clisp.org>
20416 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
20417 to construct an empty ACL.
20419 2008-06-07 Bruno Haible <bruno@clisp.org>
20421 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
20423 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
20425 2008-06-07 Bruno Haible <bruno@clisp.org>
20427 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
20428 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
20430 2008-06-07 Bruno Haible <bruno@clisp.org>
20432 * doc/posix-functions/_setjmp.texi: Explain the use of this function
20433 regardless of POSIX.
20434 * doc/posix-functions/_longjmp.texi: Likewise.
20435 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
20436 SystemV platform in this case.
20438 2008-06-06 Eric Blake <ebb9@byu.net>
20440 Document abort() bugs.
20441 * doc/posix-functions/abort.texi (abort): Mention anomalies.
20443 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
20444 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
20446 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
20447 siglongjmp, but only as a macro.
20448 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
20450 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
20452 Tweak documentation to cover cygwin argz bugs.
20453 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
20454 argz bug fix; no code change needed since no cygwin releases
20455 occurred between the last fix and the bug being tested.
20456 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
20457 module and recently fixed cygwin bugs.
20458 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
20459 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
20460 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
20461 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
20462 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
20464 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
20465 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
20466 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
20467 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
20468 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
20469 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
20472 Avoid gcc warning on cygwin.
20473 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
20474 !ACL_NO_TRIVIAL]: Avoid unused variable.
20476 2008-06-05 Eric Blake <ebb9@byu.net>
20478 Be tolerant of UNKNOWN version in gnulib-tool test dir.
20479 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
20480 git-version-gen fails to come up with a version.
20481 Reported by Simon Josefsson.
20483 2008-06-05 Jim Meyering <meyering@redhat.com>
20484 Paul Eggert <eggert@cs.ucla.edu>
20486 utimens.c: work around a probable Linux kernel bug
20487 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
20488 appears to be a kernel bug that causes utimensat to return 280
20489 instead of 0, indicating success.
20491 2008-06-04 Bruno Haible <bruno@clisp.org>
20493 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
20496 2008-06-04 Bruno Haible <bruno@clisp.org>
20498 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
20499 * lib/file-has-acl.c (acl_access_nontrivial): New function.
20500 (file_has_acl): Use it. Save errno afterwards.
20501 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
20503 2008-06-03 Bruno Haible <bruno@clisp.org>
20505 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
20506 draft code. Simplify #ifs.
20507 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
20508 Put Solaris code after POSIX-draft code. Fix comments regarding
20509 Solaris 10, HP-UX. Mention Cygwin.
20510 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
20512 2008-06-03 Eric Blake <ebb9@byu.net>
20514 Provide fallback for older kernels.
20515 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
20516 Provide runtime fallback if kernel lacks support.
20517 Reported by Mike Frysinger.
20519 2008-06-02 Bruno Haible <bruno@clisp.org>
20521 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
20524 2008-06-02 Bruno Haible <bruno@clisp.org>
20526 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
20527 * lib/copy-acl.c (qcopy_acl): Update comment.
20529 2008-06-02 Bruno Haible <bruno@clisp.org>
20531 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
20534 2008-06-02 Bruno Haible <bruno@clisp.org>
20536 * tests/test-file-has-acl.sh: Use different code for Cygwin.
20537 * tests/test-set-mode-acl.sh: Likewise.
20538 * tests/test-copy-acl.sh: Likewise.
20539 * tests/test-copy-file.sh: Likewise.
20541 2008-06-02 Bruno Haible <bruno@clisp.org>
20543 * tests/test-file-has-acl.sh: Remove unused code.
20545 2008-06-01 Bruno Haible <bruno@clisp.org>
20547 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
20548 (copy_acl): Just a wrapper around qcopy_acl that emits the error
20550 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
20552 2008-06-01 Bruno Haible <bruno@clisp.org>
20554 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
20555 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
20556 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
20558 * modules/acl-tests (configure.ac): Remove tests now contained in
20561 2008-06-02 Jim Meyering <meyering@redhat.com>
20563 announce-gen: use a better key-server host name
20564 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
20565 it may be more consistently reliable. Suggested by Werner Koch
20566 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
20568 2008-06-01 Bruno Haible <bruno@clisp.org>
20570 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
20571 Reported by Voroskoi Andras <voroskoi@gmail.com>.
20573 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
20575 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
20577 2008-06-01 Bruno Haible <bruno@clisp.org>
20580 * tests/test-file-has-acl.sh: New file.
20581 * tests/test-file-has-acl.c: New file.
20582 * tests/test-set-mode-acl.sh: New file.
20583 * tests/test-set-mode-acl.c: New file.
20584 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
20585 * tests/test-copy-acl.c: New file.
20586 * modules/acl-tests: New file, based on modules/copy-file-tests.
20587 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
20588 (Depends-on): Add acl-tests.
20589 (configure.ac): Remove checks.
20590 (Makefile.am): Don't create test-sameacls program here any more.
20592 2008-06-01 Bruno Haible <bruno@clisp.org>
20594 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
20595 * tests/test-sameacls.c: Include progname.h.
20596 (main): Invoke set_program_name. Portability fixes for MacOS X,
20599 2008-06-01 Bruno Haible <bruno@clisp.org>
20601 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
20603 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
20605 2008-06-01 Bruno Haible <bruno@clisp.org>
20607 * modules/rpmatch (Depends-on): Add strdup.
20609 2008-06-01 Bruno Haible <bruno@clisp.org>
20611 * lib/pipe.c: Include unistd-safer.h.
20612 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
20613 * modules/pipe (Depends-on): Add unistd-safer.
20615 2008-05-30 Simon Josefsson <simon@josefsson.org>
20617 * modules/autobuild (configure.ac): Call AB_INIT.
20619 2008-05-30 Simon Josefsson <simon@josefsson.org>
20621 * tests/test-getaddrinfo.c: Don't print debug messages by default.
20622 Suggested by Bruno Haible <bruno@clisp.org>.
20624 2008-05-30 Simon Josefsson <simon@josefsson.org>
20626 * tests/test-base64.c: Cast size_t to unsigned long when invoking
20627 printf. Use %lu instead of %d. Reported by Bruno Haible
20630 2008-05-29 Eric Blake <ebb9@byu.net>
20632 Prefer new POSIX 200x interfaces over futimesat.
20633 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
20634 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
20636 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
20638 2008-05-28 Bruno Haible <bruno@clisp.org>
20640 * modules/stpcpy (License): Change to LGPLv2+.
20641 Requested by David Lutterkort <dlutter@redhat.com>.
20643 2008-05-27 Bruno Haible <bruno@clisp.org>
20645 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
20647 Reported by Jose E. Marchesi <jemarch@gnu.org>.
20649 2008-05-27 Bruno Haible <bruno@clisp.org>
20651 * modules/iconv_open (Link): New section, from module 'iconv'.
20652 * modules/striconv (Link): Likewise.
20653 * modules/striconveh (Link): Likewise.
20654 * modules/xstriconv (Link): Likewise.
20655 * modules/unicodeio (Link): Likewise.
20656 * modules/propername (Link): Likewise.
20657 Reported by Jim Meyering.
20659 2008-05-26 Jim Meyering <meyering@redhat.com>
20661 sha256: do not artificially restrict buffer length to be < 2^32
20662 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
20663 uint32_t to size_t.
20664 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
20667 avoid unaligned access errors, e.g., on sparc
20668 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
20669 direct access through a possibly-unaligned uint64* pointer.
20670 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
20671 direct access through a possibly-unaligned uint32* pointer.
20672 Prompted by this patch from Tom "spot" Callaway:
20673 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
20675 sha512.c: fix typo in comment
20676 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
20678 2008-05-25 Bruno Haible <bruno@clisp.org>
20680 * lib/set-mode-acl.c: Renamed from lib/acl.c.
20681 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
20682 (Makefile.am): Update lib_SOURCES.
20684 2008-05-25 Bruno Haible <bruno@clisp.org>
20686 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
20688 2008-05-25 Jim Meyering <meyering@redhat.com>
20690 useless-if-before-free: freed expr may have white-space differences
20691 * build-aux/useless-if-before-free: Recognize cases in which the
20692 freed expression differs from the tested one in embedded white
20693 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
20694 $1 was used, so we can't make any regexp shy. Improved tests now
20697 useless-if-before-free: accept white space in the expression.
20698 * build-aux/useless-if-before-free: For now, any white space
20699 in the expression must be identical in the free argument.
20701 useless-if-before-free: efficiency tweak
20702 * build-aux/useless-if-before-free: Make the expression-matching
20704 Make the *outer* regexp shy, not the expr-matching one.
20706 update code-in-comment to accept cast of free arg
20707 * build-aux/useless-if-before-free: Update regexp.
20709 2008-05-25 Bruno Haible <bruno@clisp.org>
20711 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
20712 * modules/copy-file-tests (Files, Makefile.am): Update.
20713 * tests/test-copy-file.c (func_test_copy): Update.
20715 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
20717 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
20719 2008-05-23 Bruno Haible <bruno@clisp.org>
20721 Improve support for ACLs on OSF/1.
20722 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
20723 Remove fallback for unknown flavors of ACLs.
20725 2008-05-22 Bruno Haible <bruno@clisp.org>
20727 Add support for ACLs on OSF/1.
20728 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
20730 (acl_free_text): New macro fallback.
20731 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
20733 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
20734 acl_free_text function. Require AC_C_INLINE.
20736 2008-05-22 Bruno Haible <bruno@clisp.org>
20738 Make copy_acl work on MacOS X 10.5.
20739 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
20740 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
20741 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
20742 If MODE_INSIDE_ACL, don't assume that every system has the same text
20743 representation for ACLs as FreeBSD.
20744 * lib/copy-acl.c (copy_acl): Add support for platforms with
20746 * lib/file-has-acl.c (file_has_acl): Likewise.
20747 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
20748 FreeBSD, MacOS X, or IRIX, respectively.
20750 2008-05-22 Bruno Haible <bruno@clisp.org>
20752 * lib/acl.h: Don't include <sys/acl.h>.
20753 (GETACLCNT): Move fallback to lib/acl-internal.h.
20754 * lib/acl-internal.h: Include <sys/acl.h> here.
20755 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
20757 2008-05-22 Bruno Haible <bruno@clisp.org>
20759 Split off copy_acl function to separate file.
20760 * lib/copy-acl.c: New file, extracted from lib/acl.c.
20761 * lib/acl.c (copy_acl): Moved function to separate file.
20762 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
20763 * modules/acl (Files): Add lib/copy-acl.c.
20764 (Makefiles.am): Augment lib_SOURCES.
20766 2008-05-22 Bruno Haible <bruno@clisp.org>
20768 * modules/copy-file-tests: New file.
20769 * tests/test-copy-file.sh: New file.
20770 * tests/test-copy-file.c: New file.
20771 * tests/test-copy-file-sameacls.c: New file.
20773 2008-05-22 Eric Blake <ebb9@byu.net>
20776 * tests/test-memcmp.c (main): Pass NULL indirectly.
20778 2008-05-21 Bruno Haible <bruno@clisp.org>
20780 Add reference doc about ACLs.
20781 * doc/acl-resources.txt: New file.
20782 * doc/acl-cygwin.txt: New file.
20784 2008-05-21 Bruno Haible <bruno@clisp.org>
20786 Avoid one more warning from gcc.
20787 * lib/vasnprintf.c (IF_LINT): Update comments.
20788 (VASNPRINTF): Use it also for the 'prefix' array initializer.
20790 2008-05-21 Jim Meyering <meyering@redhat.com>
20792 avoid a warning from gcc
20793 * lib/vasnprintf.c (IF_LINT): Define.
20794 (scale10_round_decimal_long_double):
20795 Use it to avoid a "may be used uninitialized" warning.
20796 (scale10_round_decimal_double): Likewise.
20798 2008-05-21 Simon Josefsson <simon@josefsson.org>
20800 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
20803 2008-05-20 Bruno Haible <bruno@clisp.org>
20805 * tests/test-memcmp.c (main): Test also the sign of the result. Test
20806 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
20808 2008-05-20 Simon Josefsson <simon@josefsson.org>
20810 * modules/memcmp-tests: New file.
20811 * tests/test-memcmp.c: New file.
20813 2008-05-19 Bruno Haible <bruno@clisp.org>
20815 * modules/propername (Notice, configure.ac): Put quoted "..." into
20817 * lib/propername.h: Update comments accordingly.
20818 Reported by Eric Blake.
20820 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
20822 * modules/getpass-gnu (Depends-on): Add fseeko.
20824 2008-05-19 Simon Josefsson <simon@josefsson.org>
20826 * modules/base64-tests: New file.
20828 2008-05-19 Bo Borgerson <gigabo@gmail.com>
20830 * lib/base64.c (base64_decode_ctx): If a decode context structure
20831 was passed in use it to ignore newlines. If a context structure
20832 was _not_ passed in, continue to treat newlines as garbage (this
20833 is the historical behavior). Formerly base64_decode.
20834 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
20835 takes a decode context structure.
20836 * lib/base64.h (base64_decode): Macro for four-argument calls.
20837 (base64_decode_alloc): Likewise.
20838 * lib/base64.c (base64_decode_ctx): If a decode context structure
20839 was passed in use it to ignore newlines. If a context structure
20840 was _not_ passed in, continue to treat newlines as garbage (this
20841 is the historical behavior). Formerly base64_decode.
20842 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
20843 takes a decode context structure.
20844 * lib/base64.h (base64_decode): Macro for four-argument calls.
20845 (base64_decode_alloc): Likewise.
20847 2008-05-19 Jim Meyering <meyering@redhat.com>
20849 avoid a warning from gcc
20850 * lib/trim.c (IF_LINT): Define.
20851 (trim2): Use it to avoid a "may be used uninitialized" warning.
20854 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
20856 2008-05-19 Bruno Haible <bruno@clisp.org>
20858 * doc/glibc-functions/getpass.texi: Document limits of other
20861 2008-05-19 Simon Josefsson <simon@josefsson.org>
20862 Bruno Haible <bruno@clisp.org>
20864 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
20866 2008-05-18 Bruno Haible <bruno@clisp.org>
20868 * modules/propername: New file, from GNU gettext.
20869 * lib/propername.h: New file, from GNU gettext.
20870 * lib/propername.c: New file, from GNU gettext.
20871 * MODULES.html.sh (Internationalization functions): Add propername.
20873 2008-05-16 Jim Meyering <meyering@redhat.com>
20874 Bruno Haible <bruno@clisp.org>
20876 Avoid some warnings from "gcc -Wshadow".
20877 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
20879 2008-05-15 Eric Blake <ebb9@byu.net>
20881 Extend previous patch to cygwin 1.7.0.
20882 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
20883 fast implementation in cygwin >= 1.7.0.
20884 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20885 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20887 2008-05-15 Bruno Haible <bruno@clisp.org>
20889 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
20890 implementation in glibc >= 2.9.
20891 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20892 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20894 2008-05-15 Bruno Haible <bruno@clisp.org>
20896 * MODULES.html.sh (Internationalization functions): Remove linebreak.
20897 (Unicode string functions): Add unilbrk/*.
20898 Reported by Karl Berry.
20900 2008-05-15 Eric Blake <ebb9@byu.net>
20902 Fix violation of <stdbool.h> replacement in regex.
20903 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
20904 * lib/regexec.c (re_search_internal): Likewise.
20905 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
20907 2008-05-15 Jim Meyering <meyering@redhat.com>
20909 avoid distracting test output when git or cvs is not found
20910 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
20911 * tests/test-vc-list-files-git.sh: Likewise.
20913 2008-05-15 Eric Blake <ebb9@byu.net>
20915 Glibc finally accepted the memmem speedup code, bugzilla #5514.
20916 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
20918 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20919 * doc/posix-functions/strstr.texi (strstr): Likewise.
20920 * lib/str-two-way.h (MAX): Sychronize with glibc.
20922 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
20924 * lib/regcomp.c (optimize_utf8): Add a note on why we test
20926 (calc_first): Initialize constraint field.
20927 (duplicate_node_closure): Use it instead of special casing ANCHORS.
20929 (duplicate_node): Merge constraint field for all node types.
20930 (calc_eclosure_iter): Look at constraint field for all node types.
20931 * lib/regex_internal.c (create_cd_newstate): Don't look at
20934 2008-05-14 Bruno Haible <bruno@clisp.org>
20936 Help GCC to do better code generation.
20937 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
20938 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20939 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
20940 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
20941 Declare with attribute 'malloc' if supported.
20943 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
20945 use "echo STR|wc -c" rather than unportable "expr length STR"
20946 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
20947 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
20949 2008-05-14 Jim Meyering <meyering@redhat.com>
20951 use dd ibs=$n count=1 ... rather than less-portable head -c$n
20952 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
20953 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
20954 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
20957 2008-05-14 Eric Blake <ebb9@byu.net>
20959 Avoid quadratic growth in gl_LIBSOURCES.
20960 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
20961 Suggested by Bruno Haible.
20964 * modules/xmemdup0-tests: New file.
20965 * tests/test-xmemdup0.c: Likewise.
20967 2008-05-13 Eric Blake <ebb9@byu.net>
20969 Split xmemdup0 into its own module.
20970 * modules/xmemdup0: New file.
20971 * lib/xmemdup0.h: Likewise.
20972 * lib/xmemdup0.c: Likewise.
20973 * MODULES.html.sh (Memory management functions): Add xmemdup0.
20974 * lib/xalloc.h (xmemdup0): Remove.
20975 * lib/xmalloc.c (xmemdup0): Likewise.
20977 2008-05-13 Eric Blake <ebb9@byu.net>
20978 Bruno Haible <bruno@clisp.org>
20980 Reduce number of forks required during autoconf.
20981 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
20982 and gl_LIBSOURCES_DIR.
20983 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
20984 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
20985 m4_syscmd per file.
20986 <m4_foreach_w>: Move...
20987 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
20989 2008-05-13 Eric Blake <ebb9@byu.net>
20991 * gnulib-tool: Fix various comment typos.
20993 2008-05-12 Bruno Haible <bruno@clisp.org>
20995 Tailor the linebreaking algorithm.
20996 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
20998 2008-05-12 Bruno Haible <bruno@clisp.org>
21000 Update to Unicode 5.0.0.
21001 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21002 LBP_JV, LBP_JT. Redistribute values.
21003 (unilbrk_table): Change size.
21004 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
21005 Unicode TR#14 rev. 22.
21006 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
21007 LBP_JV, LBP_JT. Redistribute values.
21008 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
21009 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
21011 * lib/unilbrk/lbrkprop1.h: Regenerated.
21012 * lib/unilbrk/lbrkprop2.h: Regenerated.
21013 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
21014 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
21015 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
21017 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
21019 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
21021 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21022 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21023 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21024 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
21025 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
21026 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
21028 2008-05-11 Bruno Haible <bruno@clisp.org>
21030 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
21032 2008-05-11 Bruno Haible <bruno@clisp.org>
21034 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
21035 * modules/unilbrk/gen-lbrk: New file.
21037 2008-05-11 Bruno Haible <bruno@clisp.org>
21039 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
21040 * m4/sha512.m4 (gl_SHA512): Likewise.
21042 2008-05-11 Jim Meyering <meyering@redhat.com>
21044 New modules: crypto/sha256, crypto/sha512 (from coreutils)
21045 * modules/crypto/sha256: New file.
21046 * modules/crypto/sha512: Likewise.
21047 * lib/sha256.c: Likewise.
21048 * lib/sha256.h: Likewise.
21049 * lib/sha512.c: Likewise.
21050 * lib/sha512.h: Likewise.
21051 * lib/u64.h: Likewise.
21052 * m4/sha256.m4: Likewise.
21053 * m4/sha512.m4: Likewise.
21054 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
21056 2008-05-10 Bruno Haible <bruno@clisp.org>
21058 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
21059 (Input/Output <stdio.h>): Add xprintf.
21060 (Signal handling <signal.h>): Add strsignal.
21061 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
21062 (Core language properties): Add func.
21063 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
21064 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
21066 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
21067 (Input/output): New section.
21068 (File system functions): Add openat-die, stat-macros.
21069 (Networking functions): Add sockets.
21070 (Unicode string functions): Add unictype/*.
21071 (Support for building libraries and executables): Add gperf.
21072 (Support for building documentation): Add agpl-3.0.
21073 (Misc): Add nocrash.
21075 2008-05-10 Bruno Haible <bruno@clisp.org>
21077 * modules/unictype/gen-ctype: New file.
21079 2008-05-10 Jim Meyering <meyering@redhat.com>
21081 Make chdir-safer.c more efficient on a system with no symlinks.
21082 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
21083 also if ELOOP is zero. Suggested by Bruno Haible.
21085 Make chdir-safer.c slightly safer.
21086 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
21087 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
21089 Avoid compile failure on systems without ELOOP (like mingw).
21090 * lib/chdir-safer.c (ELOOP): Define if not already defined.
21091 Reported by Bruno Haible.
21093 2008-05-10 Bruno Haible <bruno@clisp.org>
21095 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
21096 (is_utf8_encoding): Use a case-insensitive comparison.
21097 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
21100 2008-05-10 Bruno Haible <bruno@clisp.org>
21102 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
21103 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
21104 * lib/unilbrk/ulc-common.h (iconv_string_length,
21105 iconv_string_keeping_offsets): Remove declarations.
21106 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
21107 Don't include <iconv.h>, streq.h, xsize.h.
21108 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
21110 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
21111 <iconv.h>, streq.h, xsize.h.
21112 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
21114 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
21115 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
21116 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
21117 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
21119 2008-05-10 Bruno Haible <bruno@clisp.org>
21121 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
21122 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
21124 * modules/unilbrk/u32-width-linebreaks-tests: New file.
21125 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
21127 * modules/unilbrk/u16-width-linebreaks-tests: New file.
21128 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
21130 * modules/unilbrk/u8-width-linebreaks-tests: New file.
21131 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
21133 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
21134 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
21136 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
21137 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
21139 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
21140 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
21142 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
21143 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
21145 2008-05-10 Bruno Haible <bruno@clisp.org>
21147 Split up 'linebreak' module.
21148 * lib/unilbrk.h: New file, based on lib/linebreak.h.
21149 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
21150 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
21152 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
21153 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
21154 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
21156 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
21158 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
21160 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
21161 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
21162 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
21164 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
21166 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
21168 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
21170 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
21172 * modules/unilbrk/base: New file.
21173 * modules/unilbrk/tables: New file.
21174 * modules/unilbrk/u8-possible-linebreaks: New file.
21175 * modules/unilbrk/u16-possible-linebreaks: New file.
21176 * modules/unilbrk/u32-possible-linebreaks: New file.
21177 * modules/unilbrk/ulc-common: New file.
21178 * modules/unilbrk/ulc-possible-linebreaks: New file.
21179 * modules/unilbrk/u8-width-linebreaks: New file.
21180 * modules/unilbrk/u16-width-linebreaks: New file.
21181 * modules/unilbrk/u32-width-linebreaks: New file.
21182 * modules/unilbrk/ulc-width-linebreaks: New file.
21183 * lib/linebreak.h: Remove file.
21184 * lib/linebreak.c: Remove file.
21185 * m4/linebreak.m4: Remove file.
21186 * modules/linebreak: Remove file.
21187 * NEWS: Mention the changes.
21189 2008-05-09 Eric Blake <ebb9@byu.net>
21192 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
21194 * lib/xmalloc.c (xmemdup0): New C implementation.
21196 2008-05-08 Bruno Haible <bruno@clisp.org>
21198 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
21200 2008-05-07 Eric Blake <ebb9@byu.net>
21202 Support cross-compilation of <wctype.h>.
21203 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
21206 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
21208 * build-aux/vc-list-files: Add support for bzr.
21210 2008-05-03 Jim Meyering <meyering@redhat.com>
21212 avoid failed assertion with tight malloc
21213 * tests/test-getndelim2.c: Correct an off-by-one assertion.
21215 2008-05-03 Simon Josefsson <simon@josefsson.org>
21217 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
21218 are needed from arpa/inet.h.
21219 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
21220 Reported by Bruno Haible.
21222 2008-05-02 Jim Meyering <meyering@redhat.com>
21224 avoid compilation error on FreeBSD 6
21225 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
21227 2008-05-01 Jim Meyering <meyering@redhat.com>
21229 useless-if-before-free: correct --help's exit status description
21230 * build-aux/useless-if-before-free (usage): Like grep, exit 0
21231 for one or more matches, etc. Reported by Bruno Haible.
21233 vc-list-files: make the stand-alone gnulib test work
21234 * modules/vc-list-files-tests (configure.ac):
21235 Define and AC_SUBST abs_aux_dir.
21236 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
21237 $(abs_top_srcdir) to each script and having each of them
21238 duplicate the work of setting PATH, set PATH here, using
21239 the new variable, abs_aux_dir instead.
21240 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
21241 * tests/test-vc-list-files-git.sh: Likewise.
21242 Reported by Bruno Haible.
21244 2008-05-01 Bruno Haible <bruno@clisp.org>
21246 * lib/getndelim2.c (getndelim2): Fix newsize computation during
21247 reallocation. Rename 'done' to 'found_delimiter'.
21249 2008-05-01 Jim Meyering <meyering@redhat.com>
21251 vc-list-files: accommodate /bin/sh like the one from Solaris 10
21252 * build-aux/vc-list-files: Use `...`, not $(...).
21254 2008-04-30 Jim Meyering <meyering@redhat.com>
21256 add tests for vc-list-files
21257 * modules/vc-list-files-tests: New module.
21258 * tests/test-vc-list-files-cvs.sh: New file.
21259 * tests/test-vc-list-files-git.sh: New file.
21261 avoid a warning from gcc
21262 * lib/getndelim2.c (IF_LINT): Define.
21263 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
21265 vc-list-files: work properly with build-aux/cvsu, too
21266 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
21267 to all cvs-based clauses.
21269 vc-list-files: work properly in the CVS+awk case, too
21270 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
21272 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
21273 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
21274 take more than one file argument, so . Add quotes, just in case $dir
21275 ever contains a shell meta-character. Prompted by Soren Hansen in
21276 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
21278 2008-04-29 Eric Blake <ebb9@byu.net>
21280 Optimize getndelim2 to use block operations when possible.
21281 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
21282 freadseek, and memchr2.
21283 * lib/getndelim2.c (getndelim2): Use them for block reads.
21285 2008-04-29 Bruno Haible <bruno@clisp.org>
21287 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
21288 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21289 * modules/inet_ntop (Depends-on): Add extensions.
21290 * modules/inet_pton (Depends-on): Likewise.
21291 Reported by Simon Josefsson.
21293 2008-04-29 Jim Meyering <meyering@redhat.com>
21295 When the is more than one match in a block, match all of them.
21296 * build-aux/useless-if-before-free: Iterate through each block
21297 until there are no more matches.
21299 Fix broken useless-if-before-free script.
21300 * build-aux/useless-if-before-free: Fix typo: missing "?" after
21301 the expression to match cast of argument to free-like function.
21303 2008-04-29 Eric Blake <ebb9@byu.net>
21306 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
21308 2008-04-29 Jim Meyering <meyering@redhat.com>
21310 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
21311 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
21312 by gnulib to exist and to declare e.g., inet_ntop.
21313 Don't include "inet_ntop.h", now removed.
21315 * m4/arpa_inet_h.m4: Remove trailing blanks.
21317 2008-04-29 Eric Blake <ebb9@byu.net>
21319 Silence valgrind on safe reads beyond potential array bounds.
21320 * lib/rawmemchr.valgrind: New file.
21321 * lib/strchrnul.valgrind: Likewise.
21322 * modules/rawmemchr (Files): Distribute new file.
21323 * modules/strchrnul (Files): Likewise.
21324 Suggested by Bruno Haible.
21326 2008-04-29 Bruno Haible <bruno@clisp.org>
21328 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
21329 (inet_ntop, inet_pton): Change portability warning's wording.
21330 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
21331 Invoke gl_CHECK_NEXT_HEADERS.
21332 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
21333 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
21335 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21336 * modules/arpa_inet (Description): No longer only for systems that
21338 (Depends-on): Add include_next.
21339 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
21342 2008-04-29 Jim Meyering <meyering@redhat.com>
21344 * modules/mkdir (License): Re-license as LGPLv2+.
21346 2008-04-29 Bruno Haible <bruno@clisp.org>
21348 * modules/rawmemchr (Maintainer): Set to Eric.
21349 * modules/strchrnul (Maintainer): Likewise.
21351 2008-04-29 Simon Josefsson <simon@josefsson.org>
21353 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
21354 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
21356 * modules/arpa_inet (arpa/inet.h): Use them.
21358 2008-04-28 Eric Blake <ebb9@byu.net>
21361 * modules/getndelim2-tests: New file.
21362 * tests/test-getndelim2.c: Likewise.
21363 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
21365 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
21367 * MODULES.html.sh: Document new module.
21369 2008-04-20 Bruno Haible <bruno@clisp.org>
21371 * lib/c-stack.c (die): Use raise.
21372 * modules/c-stack (Depends-on): Add raise.
21374 2008-04-28 Bruno Haible <bruno@clisp.org>
21376 Expect rpmatch to be declared.
21377 * lib/yesno.c (rpmatch): Remove declaration.
21380 * lib/stdlib.in.h (rpmatch): New declaration.
21381 * lib/rpmatch.c: Include <stdlib.h> first.
21382 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
21383 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
21384 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
21386 * modules/rpmatch (Depends-on): Add stdlib, extensions.
21387 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21388 (Include): Set to <stdlib.h>.
21389 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
21391 * NEWS: Document the change.
21393 2008-04-28 Bruno Haible <bruno@clisp.org>
21395 Change rpmatch to use nl_langinfo when appropriate.
21396 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
21398 (localized_pattern): New function/macro.
21399 (try): Remove match, nomatch arguments. Copy the pattern into safe
21400 memory before caching it.
21401 (rpmatch): Use localized_pattern. Add translator comments.
21402 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
21403 Suggested by Eric Blake.
21404 * modules/rpmatch (Depends-on): Add stdbool.
21406 2008-04-28 Eric Blake <ebb9@byu.net>
21408 Add rawmemchr module, matching glibc.
21409 * modules/string (Makefile.am): New indicator.
21410 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
21411 * lib/string.in.h (rawmemchr): Declare when appropriate.
21412 * modules/rawmemchr: New file.
21413 * m4/rawmemchr.m4: Likewise.
21414 * lib/rawmemchr.c: Likewise.
21415 * modules/rawmemchr-tests: Likewise.
21416 * tests/test-rawmemchr.c: Likewise.
21417 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
21419 * modules/strchrnul (Depends-on): Add rawmemchr.
21420 * lib/strchrnul.c (strchrnul): Optimize a corner case.
21422 Whitespace cleanup.
21423 * tests/test-strchrnul.c: Reindent.
21424 * lib/strchrnul.c: Likewise.
21426 Optimize and test strchrnul.
21427 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
21428 * modules/strchrnul-tests: New file.
21429 * tests/test-strchrnul.c: Likewise.
21431 Remove intprops dependency.
21432 * modules/memchr (Depends-on): Remove intprops.
21433 * modules/memrchr (Depends-on): Likewise.
21434 * modules/memchr2 (Depends-on): Likewise.
21435 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
21436 * lib/memrchr.c (__memrchr): Likewise.
21437 * lib/memrchr2.c (memchr2): Likewise.
21438 Reported by Simon Josefsson.
21440 2008-04-28 Simon Josefsson <simon@josefsson.org>
21442 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
21443 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21445 2008-04-28 Simon Josefsson <simon@josefsson.org>
21447 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
21449 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
21451 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
21453 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
21455 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
21457 * m4/inet_pton.m4: Don't check for header files.
21459 * m4/inet_ntop.m4: Don't check for header files.
21461 2008-04-28 Simon Josefsson <simon@josefsson.org>
21463 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
21464 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
21465 trigger for cygwin).
21466 Reported by Bruno Haible <bruno@clisp.org>.
21468 2008-04-28 Bruno Haible <bruno@clisp.org>
21470 * doc/posix-functions/strdup.texi: Mention mingw problem.
21472 2008-04-27 Bruno Haible <bruno@clisp.org>
21474 * modules/stat-time-tests (Depends-on): Add sleep.
21475 * tests/test-stat-time.c (force_unlink): New function.
21477 (test_mtime): Remove the ctime related tests.
21478 (test_ctime): New function, containing the ctime related tests.
21479 (main): Call test_ctime, except on native Windows platforms.
21481 2008-04-27 Bruno Haible <bruno@clisp.org>
21483 * lib/rpmatch.c (rpmatch): Add some comments.
21484 Reported by James Youngman <jay@gnu.org>.
21486 2008-04-27 Bruno Haible <bruno@clisp.org>
21488 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
21491 2008-04-27 Bruno Haible <bruno@clisp.org>
21493 Make test-yesno.sh work on mingw.
21494 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
21495 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
21496 (main): Set stdin to binary mode.
21497 * modules/yesno-tests (Depends-on): Add binary-io.
21499 2008-04-27 Bruno Haible <bruno@clisp.org>
21501 Fix 'isfinite' on x86, x86_64, ia64 platforms.
21502 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
21503 argument that lie outside the IEEE 854 domain.
21504 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
21505 (gl_ISFINITE): Use it.
21506 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
21508 2008-04-27 Bruno Haible <bruno@clisp.org>
21510 Allow local renaming in config.h.
21511 * lib/memrchr.c (memrchr): Don't undefine outside libc.
21513 2008-04-27 Bruno Haible <bruno@clisp.org>
21515 * lib/memchr.c (__memchr): Change type of 'i'.
21516 * lib/memchr2.c (memchr2): Likewise.
21518 2008-04-26 Eric Blake <ebb9@byu.net>
21519 and Bruno Haible <bruno@clisp.org>
21521 Optimize and test memrchr.
21522 * modules/memrchr (Depends-on): Add intprops.
21523 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
21524 * modules/memrchr-tests: New file.
21525 * tests/test-memrchr.c: New file.
21527 2008-04-26 Bruno Haible <bruno@clisp.org>
21529 Add tentative support for DragonFly BSD.
21530 * lib/stdio-impl.h: Add macros for DragonFly BSD.
21531 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
21533 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21534 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
21535 * lib/fpurge.c (fpurge): Likewise.
21536 * lib/freadable.c (freaadable): Likewise.
21537 * lib/freadahead.c (freadahead): Likewise.
21538 * lib/freading.c (freading): Likewise.
21539 * lib/freadptr.c (freadptr): Likewise.
21540 * lib/freadseek.c (freadptrinc): Likewise.
21541 * lib/fseeko.c (fseeko): Likewise.
21542 * lib/fseterr.c (fseterr): Likewise.
21543 * lib/fwritable.c (fwritable): Likewise.
21544 * lib/fwriting.c (fwriting): Likewise.
21546 2008-04-26 Bruno Haible <bruno@clisp.org>
21548 * lib/stdio-impl.h: New file.
21549 * lib/fbufmode.c: Include stdio-impl.h.
21550 (fbufmode): Use fp_, remove redundant #defines.
21551 * lib/fflush.c: Include stdio-impl.h.
21552 (clear_ungetc_buffer): Remove redundant #defines.
21553 * lib/fpurge.c: Include stdio-impl.h.
21554 (fpurge): Remove redundant #defines.
21555 * lib/freadable.c: Include stdio-impl.h.
21556 (freadable): Remove redundant #defines.
21557 * lib/freadahead.c: Include stdio-impl.h.
21558 (freadahead): Remove redundant #defines.
21559 * lib/freading.c: Include stdio-impl.h.
21560 (freading): Remove redundant #defines.
21561 * lib/freadptr.c: Include stdio-impl.h.
21562 (freadptr): Remove redundant #defines.
21563 * lib/freadseek.c: Include stdio-impl.h.
21564 (freadptrinc): Remove redundant #defines.
21565 * lib/fseeko.c: Include stdio-impl.h.
21566 (rpl_fseeko): Remove redundant #defines.
21567 * lib/fseterr.c: Include stdio-impl.h.
21568 (fseterr): Remove redundant #defines.
21569 * lib/fwritable.c: Include stdio-impl.h.
21570 (fwritable: Remove redundant #defines.
21571 * lib/fwriting.c: Include stdio-impl.h.
21572 (fwriting): Remove redundant #defines.
21573 * modules/fbufmode (Files): Add lib/stdio-impl.h.
21574 * modules/fflush (Files): Likewise.
21575 * modules/fpurge (Files): Likewise.
21576 * modules/freadable (Files): Likewise.
21577 * modules/freadahead (Files): Likewise.
21578 * modules/freading (Files): Likewise.
21579 * modules/freadptr (Files): Likewise.
21580 * modules/freadseek (Files): Likewise.
21581 * modules/fseeko (Files): Likewise.
21582 * modules/fseterr (Files): Likewise.
21583 * modules/fwritable (Files): Likewise.
21584 * modules/fwriting (Files): Likewise.
21586 2008-04-26 Bruno Haible <bruno@clisp.org>
21588 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21589 restore_seek_optimization, update_fpos_cache): New functions, extracted
21591 (rpl_fflush): Use them.
21592 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
21593 (gl_REPLACE_FFLUSH): Use it.
21595 2008-04-26 Bruno Haible <bruno@clisp.org>
21597 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
21599 * tests/test-xstrtoimax.sh: Likewise.
21600 * tests/test-xstrtoumax.sh: Likewise.
21601 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21603 2008-04-26 Bruno Haible <bruno@clisp.org>
21605 * modules/memchr-tests: New file.
21606 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
21608 2008-04-26 Eric Blake <ebb9@byu.net>
21609 Bruno Haible <bruno@clisp.org>
21611 * lib/memchr.c: Include intprops.h.
21612 (__memchr): Optimize parallel detection of matching bytes. Rename local
21613 variables. Add explanatory comments.
21615 2008-04-26 Bruno Haible <bruno@clisp.org>
21617 Fix module 'memchr', broken since 2000-10-28.
21618 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
21620 2008-04-26 Bruno Haible <bruno@clisp.org>
21622 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
21625 2008-04-25 Eric Blake <ebb9@byu.net>
21627 Use native fstatat on cygwin 1.7.0.
21628 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
21631 2008-04-23 Eric Blake <ebb9@byu.net>
21633 Improve memchr2 performance.
21634 * lib/memchr2.c (memchr2): Further optimize parallel detection of
21636 * modules/memchr2 (Depends-on): Use intprops.h.
21638 2008-04-23 Simon Josefsson <simon@josefsson.org>
21640 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
21641 an inline function instead of a CPP macro. Patch by Ben Pfaff
21642 <blp@cs.stanford.edu>.
21644 2008-04-23 Simon Josefsson <simon@josefsson.org>
21646 * lib/arpa_inet.in.h: New file.
21648 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
21649 (Makefile.am): Sed in substitute header file.
21651 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
21652 gl_ARPA_INET_MODULE_INDICATOR. Use them.
21654 * modules/inet_ntop (configure.ac): Use
21655 gl_ARPA_INET_MODULE_INDICATOR.
21657 * modules/inet_pton (configure.ac): Use
21658 gl_ARPA_INET_MODULE_INDICATOR.
21660 2008-04-22 Jim Meyering <meyering@redhat.com>
21662 * modules/verify (License): Re-license as LGPLv2+.
21664 2008-04-22 Simon Josefsson <simon@josefsson.org>
21666 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
21667 parameter to void* as per POSIX standard (MinGW uses char*).
21669 2008-04-21 Bruno Haible <bruno@clisp.org>
21671 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21672 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21673 Define to replacements if REPLACE_ISWCNTRL is 1.
21674 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
21675 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
21676 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
21677 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
21679 * doc/posix-functions/iswalpha.texi: Likewise.
21680 * doc/posix-functions/iswblank.texi: Likewise.
21681 * doc/posix-functions/iswcntrl.texi: Likewise.
21682 * doc/posix-functions/iswdigit.texi: Likewise.
21683 * doc/posix-functions/iswgraph.texi: Likewise.
21684 * doc/posix-functions/iswlower.texi: Likewise.
21685 * doc/posix-functions/iswprint.texi: Likewise.
21686 * doc/posix-functions/iswpunct.texi: Likewise.
21687 * doc/posix-functions/iswspace.texi: Likewise.
21688 * doc/posix-functions/iswupper.texi: Likewise.
21689 * doc/posix-functions/iswxdigit.texi: Likewise.
21690 Reported by Alain Guibert.
21692 2008-04-21 Bruno Haible <bruno@clisp.org>
21694 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
21695 Patch by Alain Guibert.
21697 2008-04-21 Bruno Haible <bruno@clisp.org>
21699 Fix test failures on mingw.
21700 * tests/test-xstrtol.c (print_no_progname): New function.
21701 (main): Install it in error_print_progname hook.
21702 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
21703 * tests/test-xstrtoimax.sh: Likewise.
21704 * tests/test-xstrtoumax.sh: Likewise.
21706 2008-04-21 Bruno Haible <bruno@clisp.org>
21708 Fix test failure on mingw.
21709 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
21711 2008-04-21 Bruno Haible <bruno@clisp.org>
21713 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
21714 Actually assign a value.
21716 2008-04-20 Bruno Haible <bruno@clisp.org>
21718 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
21720 * lib/canonicalize.c (canonicalize_file_name): Elide if the
21721 'canonicalize-lgpl' module is also used.
21722 * lib/canonicalize-lgpl.c: Undo last change.
21723 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
21725 2008-04-20 Bruno Haible <bruno@clisp.org>
21727 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
21728 config.h. Provide _mkdir based fallback for mingw.
21729 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
21730 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
21731 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
21732 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
21733 rather than defining mkdir in config.h.
21734 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
21735 (gl_SYS_STAT_H_DEFAULTS): New macro.
21736 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
21737 HAVE_IO_H any more.
21738 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
21739 HAVE_DECL_MKDIR and HAVE_IO_H.
21741 2008-04-20 Bruno Haible <bruno@clisp.org>
21743 * lib/isapipe.c: Port to native Windows platforms.
21745 2008-04-20 Bruno Haible <bruno@clisp.org>
21747 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
21749 2008-04-21 Eric Blake <ebb9@byu.net>
21751 Work around preprocessors that don't handle UINTMAX_MAX.
21752 * lib/memchr2.c (memchr2): Avoid embedded #if.
21753 Reported by Alain Guibert, fix suggested by Bruno Haible.
21755 2008-04-21 Simon Josefsson <simon@josefsson.org>
21757 * doc/posix-functions/strftime.texi (strftime): Explain better
21758 Windows incompatibility. Suggested by Micah Cowan
21759 <micah@cowan.name>.
21761 2008-04-20 Bruno Haible <bruno@clisp.org>
21763 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
21766 2008-04-20 Bruno Haible <bruno@clisp.org>
21768 Fix test failure on platforms with non-GNU iconv.
21769 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
21770 (U_TO_U8): Use it, rather than u16_to_u8.
21771 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
21772 units at the end of the input string.
21773 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
21775 2008-04-20 Bruno Haible <bruno@clisp.org>
21777 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
21778 when the resulting length is 0.
21779 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
21781 2008-04-20 Bruno Haible <bruno@clisp.org>
21783 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
21785 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
21787 2008-04-20 Bruno Haible <bruno@clisp.org>
21789 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
21790 * modules/tsearch-tests (configure.ac): Test for initstate function.
21792 2008-04-20 Bruno Haible <bruno@clisp.org>
21794 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
21795 for nlink_t if missing.
21796 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
21798 2008-04-19 Bruno Haible <bruno@clisp.org>
21800 Work around snprintf bug on Linux libc5.
21801 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
21802 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21804 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21805 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
21807 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
21808 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
21809 * modules/snprintf (Files): Add m4/printf.m4.
21810 * modules/vsnprintf (Files): Likewise.
21811 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
21812 * doc/posix-functions/vsnprintf.texi: Likewise.
21814 2008-04-19 Bruno Haible <bruno@clisp.org>
21816 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
21817 from 0.0058 to less than 10^-7.
21819 2008-04-19 Bruno Haible <bruno@clisp.org>
21821 Fix rounding when a precision is given.
21822 * lib/vasnprintf.c (is_borderline): New function.
21823 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
21825 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
21827 * tests/test-vasprintf-posix.c (test_function): Likewise.
21828 * tests/test-snprintf-posix.h (test_function): Likewise.
21829 * tests/test-sprintf-posix.h (test_function): Likewise.
21830 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
21831 * tests/test-printf-posix.h (test_function): Likewise.
21832 * tests/test-printf-posix.output: Update.
21833 Reported by John Darrington <john@darrington.wattle.id.au> via
21834 Ben Pfaff <blp@cs.stanford.edu>.
21836 2008-04-18 Simon Josefsson <simon@josefsson.org>
21838 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
21839 Suggested by Bruno Haible <bruno@clisp.org>.
21841 2008-04-17 Bruno Haible <bruno@clisp.org>
21843 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
21844 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
21846 Patch by Bruce Merry <bmerry@gmail.com>.
21848 2008-04-17 Simon Josefsson <simon@josefsson.org>
21850 * doc/posix-functions/strftime.texi (strftime): Mention that %e
21851 doesn't work under Windows.
21853 2008-04-16 Bruno Haible <bruno@clisp.org>
21855 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
21857 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
21858 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
21859 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
21860 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
21861 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
21862 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
21863 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
21865 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
21866 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
21867 Northern Sotho, Uighur.
21869 2008-04-16 Bruno Haible <bruno@clisp.org>
21871 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
21872 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
21873 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
21874 Reported by Daniel Bergström <daniel@octocode.com>.
21876 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
21877 Bruno Haible <bruno@clisp.org>
21879 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
21881 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
21882 New functions, mostly extracted from gl_locale_name_default.
21883 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
21885 2008-04-16 Eric Blake <ebb9@byu.net>
21887 Adjust strtod detection to catch glibc 2.7 bug.
21888 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
21889 Reported by John Gatewood Ham.
21891 2008-04-16 Bruno Haible <bruno@clisp.org>
21893 Add tentative support for Linux libc5.
21894 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
21895 * lib/fpurge.c (fpurge): Likewise.
21896 * lib/freadable.c (freadable): Likewise.
21897 * lib/freadahead.c (freadahead): Likewise.
21898 * lib/freading.c (freading): Likewise.
21899 * lib/freadptr.c (freadptr): Likewise.
21900 * lib/freadseek.c (freadptrinc): Likewise.
21901 * lib/fseeko.c (rpl_fseeko): Likewise.
21902 * lib/fseterr.c (fseterr): Likewise.
21903 * lib/fwritable.c (fwritable): Likewise.
21904 * lib/fwriting.c (fwriting): Likewise.
21905 Reported by Alain Guibert <alguibert+bts@free.fr>.
21907 2008-04-15 Bruno Haible <bruno@clisp.org>
21909 * modules/mathl (configure.ac): Define module indicator.
21911 2008-04-15 Bruno Haible <bruno@clisp.org>
21913 * lib/logl.c (logl): Remove unused variables.
21915 2008-04-15 Bruno Haible <bruno@clisp.org>
21917 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
21920 2008-04-15 Bruno Haible <bruno@clisp.org>
21922 * lib/trim.c (trim2): Fix argument of isspace() macro.
21924 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
21926 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
21928 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
21930 2008-04-14 Bruno Haible <bruno@clisp.org>
21932 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
21933 AC_LANG_PROGRAM argument.
21934 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
21935 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
21936 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21937 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21938 * m4/math_h.m4 (gl_MATH_H): Likewise.
21939 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21940 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21941 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
21942 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
21943 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21944 * m4/regex.m4 (gl_REGEX): Likewise.
21945 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
21946 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
21947 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21948 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
21949 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
21950 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21951 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21952 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21954 2008-04-14 Jim Meyering <meyering@redhat.com>
21956 test-strtod: fix typos: s/abs/fabs/
21957 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
21959 2008-04-13 Bruno Haible <bruno@clisp.org>
21961 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
21962 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
21963 module is also used and while not building the reloc-wrapper.
21965 2008-04-13 Bruno Haible <bruno@clisp.org>
21967 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
21969 2008-04-13 Bruno Haible <bruno@clisp.org>
21971 Fix AIX compilation failure introduced on 2008-04-02.
21972 * tests/test-frexp.c (exp): Undefine before redefining.
21973 * tests/test-frexpl.c (exp): Likewise.
21975 2008-04-13 Bruno Haible <bruno@clisp.org>
21977 Work around a HP-UX stdio bug.
21978 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
21979 * tests/test-ftello.c (main): Likewise.
21980 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
21981 * doc/posix-functions/ftello.texi: Likewise.
21983 2008-04-13 Bruno Haible <bruno@clisp.org>
21985 Make test-signbit pass on HP-UX/hppa.
21986 * tests/test-signbit.c (minus_zerol): New variable.
21987 (test_signbitl): Use it.
21989 2008-04-13 Bruno Haible <bruno@clisp.org>
21991 Make truncl work on OSF/1 4.0.
21992 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
21993 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
21994 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
21995 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
21997 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
21999 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
22001 2008-04-13 Bruno Haible <bruno@clisp.org>
22003 * lib/unictype.h: Remove trailing comma from enumeration definitions.
22005 2008-04-13 Bruno Haible <bruno@clisp.org>
22007 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
22008 expression, so as to avoid HP-UX 11 cc compiler bug.
22010 2008-04-13 Bruno Haible <bruno@clisp.org>
22012 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
22014 2008-04-13 Bruno Haible <bruno@clisp.org>
22016 * lib/git-merge-changelog.c: Remove empty declaration outside of
22019 2008-04-13 Bruno Haible <bruno@clisp.org>
22021 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
22023 2008-04-13 Bruno Haible <bruno@clisp.org>
22025 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
22026 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
22027 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
22028 also if it exists but lacks definitions of the SHUT_* macros.
22029 * modules/sys_socket (Description): Update.
22030 Reported by Elbert Pol <e.pol@chello.nl>.
22032 2008-04-13 Bruno Haible <bruno@clisp.org>
22034 * lib/localcharset.c (OS2): Don't redefine if already defined.
22035 Reported by Elbert Pol <e.pol@chello.nl>.
22037 2008-04-13 Bruno Haible <bruno@clisp.org>
22039 * lib/binary-io.h [__EMX__]: Include <io.h>.
22040 Reported by Elbert Pol <e.pol@chello.nl>.
22042 2008-04-12 Bruno Haible <bruno@clisp.org>
22044 * lib/fpucw.h: Enable the definitions also for x86_64.
22045 Needed for NetBSD/x86_64.
22046 Reported by Thomas Klausner <tk@giga.or.at>.
22048 2008-04-12 Bruno Haible <bruno@clisp.org>
22050 * tests/test-strtod.c: Include isnand.h.
22051 (main): Use isnand instead of isnan.
22052 Reported by Jim Meyering.
22054 2008-04-12 Bruno Haible <bruno@clisp.org>
22056 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
22057 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22059 2008-04-12 Jim Meyering <meyering@redhat.com>
22061 * m4/math_h.m4 (gl_MATH_H): Fix typos.
22063 2008-04-12 Bruno Haible <bruno@clisp.org>
22065 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
22066 Reported by Elbert Pol <e.pol@chello.nl>.
22068 2008-04-12 Eric Blake <ebb9@byu.net>
22070 Work around Solaris 10 math.h bug.
22071 * m4/math_h.m4 (gl_MATH_H): Check for bug.
22072 (gl_MATH_H_DEFAULTS): Set up default.
22073 * modules/math (Makefile.am): Replace new indicators.
22074 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
22075 * tests/test-math.c (main): Test this.
22076 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
22077 * doc/posix-headers/math.texi (math.h): Mention bug.
22078 Reported by Nelson H. F. Beebe and Jim Meyering.
22080 2008-04-11 Bruno Haible <bruno@clisp.org>
22082 Adapt to future versions of Apple GCC.
22083 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
22084 Reported by Peter O'Gorman <peter@pogma.com>.
22086 2008-04-11 Bruno Haible <bruno@clisp.org>
22088 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
22090 2008-04-11 Bruno Haible <bruno@clisp.org>
22092 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
22094 * modules/getaddrinfo-tests (Makefile.am): Define
22095 test_getaddrinfo_LDADD.
22097 2008-04-11 Bruno Haible <bruno@clisp.org>
22099 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
22100 (init): Fix syntax error.
22101 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
22104 2008-04-11 Bruno Haible <bruno@clisp.org>
22106 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
22107 * modules/glob (Depends-on): Add stdbool.
22109 2008-04-11 Bruno Haible <bruno@clisp.org>
22111 * lib/trim.c: Include <string.h>.
22113 2008-04-11 Eric Blake <ebb9@byu.net>
22115 Avoid compile failure on OS/2.
22116 * lib/regex_internal.h (internal_function): Disable optimization
22117 on OS/2 (__EMX__), where it caused compiler error.
22118 Reported by Elbert Pol.
22120 2008-04-11 Bruno Haible <bruno@clisp.org>
22122 Flush the standard error stream before aborting. Needed on mingw.
22123 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
22124 * tests/test-array_list.c (ASSERT): Likewise.
22125 * tests/test-array_oset.c (ASSERT): Likewise.
22126 * tests/test-avltree_list.c (ASSERT): Likewise.
22127 * tests/test-avltree_oset.c (ASSERT): Likewise.
22128 * tests/test-avltreehash_list.c (ASSERT): Likewise.
22129 * tests/test-binary-io.c (ASSERT): Likewise.
22130 * tests/test-byteswap.c (ASSERT): Likewise.
22131 * tests/test-c-ctype.c (ASSERT): Likewise.
22132 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
22133 * tests/test-c-strcasestr.c (ASSERT): Likewise.
22134 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
22135 * tests/test-c-strstr.c (ASSERT): Likewise.
22136 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
22137 * tests/test-canonicalize.c (ASSERT): Likewise.
22138 * tests/test-carray_list.c (ASSERT): Likewise.
22139 * tests/test-ceilf1.c (ASSERT): Likewise.
22140 * tests/test-ceilf2.c (ASSERT): Likewise.
22141 * tests/test-ceill.c (ASSERT): Likewise.
22142 * tests/test-count-one-bits.c (ASSERT): Likewise.
22143 * tests/test-fbufmode.c (ASSERT): Likewise.
22144 * tests/test-fflush2.c (ASSERT): Likewise.
22145 * tests/test-floorf1.c (ASSERT): Likewise.
22146 * tests/test-floorf2.c (ASSERT): Likewise.
22147 * tests/test-floorl.c (ASSERT): Likewise.
22148 * tests/test-fopen.c (ASSERT): Likewise.
22149 * tests/test-fpending.c (ASSERT): Likewise.
22150 * tests/test-fprintf-posix.c (ASSERT): Likewise.
22151 * tests/test-fpurge.c (ASSERT): Likewise.
22152 * tests/test-freadable.c (ASSERT): Likewise.
22153 * tests/test-freadahead.c (ASSERT): Likewise.
22154 * tests/test-freading.c (ASSERT): Likewise.
22155 * tests/test-freadptr.c (ASSERT): Likewise.
22156 * tests/test-freadptr2.c (ASSERT): Likewise.
22157 * tests/test-freadseek.c (ASSERT): Likewise.
22158 * tests/test-freopen.c (ASSERT): Likewise.
22159 * tests/test-frexp.c (ASSERT): Likewise.
22160 * tests/test-frexpl.c (ASSERT): Likewise.
22161 * tests/test-fseek.c (ASSERT): Likewise.
22162 * tests/test-fseeko.c (ASSERT): Likewise.
22163 * tests/test-fstrcmp.c (ASSERT): Likewise.
22164 * tests/test-ftell.c (ASSERT): Likewise.
22165 * tests/test-ftello.c (ASSERT): Likewise.
22166 * tests/test-func.c (ASSERT): Likewise.
22167 * tests/test-fwritable.c (ASSERT): Likewise.
22168 * tests/test-fwriting.c (ASSERT): Likewise.
22169 * tests/test-getdelim.c (ASSERT): Likewise.
22170 * tests/test-getline.c (ASSERT): Likewise.
22171 * tests/test-i-ring.c (ASSERT): Likewise.
22172 * tests/test-iconv-utf.c (ASSERT): Likewise.
22173 * tests/test-iconv.c (ASSERT): Likewise.
22174 * tests/test-isfinite.c (ASSERT): Likewise.
22175 * tests/test-isnand.c (ASSERT): Likewise.
22176 * tests/test-isnanf.c (ASSERT): Likewise.
22177 * tests/test-isnanl.h (ASSERT): Likewise.
22178 * tests/test-ldexpl.c (ASSERT): Likewise.
22179 * tests/test-linked_list.c (ASSERT): Likewise.
22180 * tests/test-linkedhash_list.c (ASSERT): Likewise.
22181 * tests/test-localename.c (ASSERT): Likewise.
22182 * tests/test-lseek.c (ASSERT): Likewise.
22183 * tests/test-mbscasecmp.c (ASSERT): Likewise.
22184 * tests/test-mbscasestr1.c (ASSERT): Likewise.
22185 * tests/test-mbscasestr2.c (ASSERT): Likewise.
22186 * tests/test-mbscasestr3.c (ASSERT): Likewise.
22187 * tests/test-mbscasestr4.c (ASSERT): Likewise.
22188 * tests/test-mbschr.c (ASSERT): Likewise.
22189 * tests/test-mbscspn.c (ASSERT): Likewise.
22190 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
22191 * tests/test-mbspbrk.c (ASSERT): Likewise.
22192 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
22193 * tests/test-mbsrchr.c (ASSERT): Likewise.
22194 * tests/test-mbsspn.c (ASSERT): Likewise.
22195 * tests/test-mbsstr1.c (ASSERT): Likewise.
22196 * tests/test-mbsstr2.c (ASSERT): Likewise.
22197 * tests/test-mbsstr3.c (ASSERT): Likewise.
22198 * tests/test-memchr2.c (ASSERT): Likewise.
22199 * tests/test-memmem.c (ASSERT): Likewise.
22200 * tests/test-open.c (ASSERT): Likewise.
22201 * tests/test-printf-frexp.c (ASSERT): Likewise.
22202 * tests/test-printf-frexpl.c (ASSERT): Likewise.
22203 * tests/test-printf-posix.c (ASSERT): Likewise.
22204 * tests/test-quotearg.c (ASSERT): Likewise.
22205 * tests/test-rbtree_list.c (ASSERT): Likewise.
22206 * tests/test-rbtree_oset.c (ASSERT): Likewise.
22207 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
22208 * tests/test-round1.c (ASSERT): Likewise.
22209 * tests/test-roundf1.c (ASSERT): Likewise.
22210 * tests/test-roundl.c (ASSERT): Likewise.
22211 * tests/test-signbit.c (ASSERT): Likewise.
22212 * tests/test-sleep.c (ASSERT): Likewise.
22213 * tests/test-snprintf-posix.c (ASSERT): Likewise.
22214 * tests/test-snprintf.c (ASSERT): Likewise.
22215 * tests/test-sprintf-posix.c (ASSERT): Likewise.
22216 * tests/test-stat-time.c (ASSERT): Likewise.
22217 * tests/test-strcasestr.c (ASSERT): Likewise.
22218 * tests/test-strerror.c (ASSERT): Likewise.
22219 * tests/test-striconv.c (ASSERT): Likewise.
22220 * tests/test-striconveh.c (ASSERT): Likewise.
22221 * tests/test-striconveha.c (ASSERT): Likewise.
22222 * tests/test-strsignal.c (ASSERT): Likewise.
22223 * tests/test-strstr.c (ASSERT): Likewise.
22224 * tests/test-strtod.c (ASSERT): Likewise.
22225 * tests/test-trunc1.c (ASSERT): Likewise.
22226 * tests/test-trunc2.c (ASSERT): Likewise.
22227 * tests/test-truncf1.c (ASSERT): Likewise.
22228 * tests/test-truncf2.c (ASSERT): Likewise.
22229 * tests/test-truncl.c (ASSERT): Likewise.
22230 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
22231 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
22232 * tests/test-vasnprintf.c (ASSERT): Likewise.
22233 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
22234 * tests/test-vasprintf.c (ASSERT): Likewise.
22235 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
22236 * tests/test-vprintf-posix.c (ASSERT): Likewise.
22237 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
22238 * tests/test-vsnprintf.c (ASSERT): Likewise.
22239 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
22240 * tests/test-wcwidth.c (ASSERT): Likewise.
22241 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
22242 * tests/test-xprintf-posix.c (ASSERT): Likewise.
22243 * tests/test-xvasprintf.c (ASSERT): Likewise.
22244 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
22245 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
22246 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
22247 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
22248 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
22249 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
22250 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
22251 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
22252 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
22253 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
22254 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
22255 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
22256 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
22257 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
22258 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
22259 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
22260 * tests/unictype/test-block_list.c (ASSERT): Likewise.
22261 * tests/unictype/test-block_of.c (ASSERT): Likewise.
22262 * tests/unictype/test-block_test.c (ASSERT): Likewise.
22263 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
22264 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
22265 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
22266 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
22267 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
22268 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
22269 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
22270 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
22271 * tests/unictype/test-combining.c (ASSERT): Likewise.
22272 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
22273 * tests/unictype/test-digit.c (ASSERT): Likewise.
22274 * tests/unictype/test-mirror.c (ASSERT): Likewise.
22275 * tests/unictype/test-numeric.c (ASSERT): Likewise.
22276 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
22277 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
22278 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
22279 * tests/unictype/test-scripts.c (ASSERT): Likewise.
22280 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
22281 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
22282 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
22283 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
22284 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
22285 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
22286 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
22287 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
22288 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
22289 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
22290 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
22291 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
22292 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
22293 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
22294 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
22295 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
22296 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
22297 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
22298 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
22299 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
22300 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
22301 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
22302 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
22303 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
22304 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
22305 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
22306 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
22307 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
22308 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
22309 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
22310 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
22311 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
22312 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
22313 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
22314 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
22315 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
22316 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
22317 Reported by Eric Blake.
22319 2008-04-11 Bruno Haible <bruno@clisp.org>
22321 * lib/wchar.in.h: Tweak comment.
22323 2008-04-11 Bruno Haible <bruno@clisp.org>
22325 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
22326 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
22328 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
22330 2008-04-11 Bruno Haible <bruno@clisp.org>
22332 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
22334 2008-04-11 Simon Josefsson <simon@josefsson.org>
22336 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
22337 of attempting to use non-existing /dev/*random. Based on patch
22338 from Adam Strzelecki <ono@java.pl> in
22339 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
22341 2008-04-08 Bruno Haible <bruno@clisp.org>
22343 Add tentative support for emx+gcc.
22344 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
22345 * lib/fpurge.c (fpurge): Likewise.
22346 * lib/freadable.c (freadable): Likewise.
22347 * lib/freadahead.c (freadahead): Likewise.
22348 * lib/freading.c (freading): Likewise.
22349 * lib/freadptr.c (freadptr): Likewise.
22350 * lib/freadseek.c (freadptrinc): Likewise.
22351 * lib/fseeko.c (rpl_fseeko): Likewise.
22352 * lib/fseterr.c (fseterr): Likewise.
22353 * lib/fwritable.c (fwritable): Likewise.
22354 * lib/fwriting.c (fwriting): Likewise.
22355 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
22357 2008-04-09 Eric Blake <ebb9@byu.net>
22359 Avoid some autoconf warnings.
22360 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
22361 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
22362 * m4/afs.m4 (gl_AFS): Likewise.
22363 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
22364 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
22365 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22366 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
22367 (gl_INTEGER_TYPE_SUFFIX): Likewise.
22368 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
22369 (AC_CHECK_DECLS_ONCE): Likewise.
22371 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
22372 gnulib-tool requires autoconf 2.59 or better.
22373 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
22375 2008-04-08 Eric Blake <ebb9@byu.net>
22377 Use 'git describe --match' if present (added in git 1.5.5).
22378 * build-aux/git-version-gen: Limit result to tags that match 'v*'
22381 2008-04-08 Bruno Haible <bruno@clisp.org>
22383 Add tentative support for OpenServer.
22384 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
22386 * lib/fpurge.c (fpurge): Likewise.
22387 * lib/freadable.c (freadable): Likewise.
22388 * lib/freadahead.c (freadahead): Likewise.
22389 * lib/freading.c (freading): Likewise.
22390 * lib/freadptr.c (freadptr): Likewise.
22391 * lib/freadseek.c (freadptrinc): Likewise.
22392 * lib/fseeko.c (rpl_fseeko): Likewise.
22393 * lib/fseterr.c (fseterr): Likewise.
22394 * lib/fwritable.c (fwritable): Likewise.
22395 * lib/fwriting.c (fwriting): Likewise.
22396 Reported by Roger Cornelius <rac@tenzing.org> and
22397 Brian K. White <brian@aljex.com>.
22399 2008-04-06 Jim Meyering <meyering@redhat.com>
22401 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
22403 2008-04-06 Bruno Haible <bruno@clisp.org>
22405 Avoid possible error with non-ASCII bytes in UTF-8 locales.
22406 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
22407 * tests/test-printf-posix.sh: Likewise.
22408 * tests/test-vfprintf-posix.sh: Likewise.
22409 * tests/test-vprintf-posix.sh: Likewise.
22410 * tests/test-xprintf-posix.sh: Likewise.
22412 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22414 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
22415 hide error from 'ls', needed on OS/2.
22416 Report by Elbert Pol <elbert.pol@gmail.com>.
22418 2008-04-04 Eric Blake <ebb9@byu.net>
22420 Make test-fseeko.c failures meaningful.
22421 * tests/test-fseeko.c: Print line number on failure.
22422 * tests/test-fseek.c: Likewise.
22423 Reported by Nelson H. F. Beebe.
22425 Improve strtod bug detection check.
22426 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
22427 required for Solaris 10.
22428 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
22430 2008-04-04 Bruno Haible <bruno@clisp.org>
22432 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
22435 2008-04-03 Eric Blake <ebb9@byu.net>
22437 Ensure sane .version contents.
22438 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
22440 * build-aux/git-version-gen: Improve documentation.
22442 Make GNU make output nicer.
22443 * top/GNUmakefile [!_have-Makefile]: Add dependency on
22444 MAKECMDGOALS to enforce message for all command line targets. Set
22445 srcdir for use in maint.mk.
22447 Another maintainer tweak.
22448 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
22449 a target that regenerates version.
22451 2008-04-03 Jim Meyering <meyering@redhat.com>
22453 vc-list-files: don't cause coreutils "make po-check" failure
22454 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
22456 2008-04-03 Eric Blake <ebb9@byu.net>
22458 Allow VPATH usage of vc-list-files.
22459 * build-aux/vc-list-files (scriptversion): Add timestamp.
22460 (options): Add --help, --version, -C.
22461 (CVS): Support installed cvsu.
22463 2008-04-02 Bruno Haible <bruno@clisp.org>
22465 Avoid some "statement with no effect" warnings from gcc.
22466 * tests/test-wctype.c (main): Explicitly ignore unused values.
22467 Reported by Jim Meyering.
22469 2008-04-02 Jim Meyering <meyering@redhat.com>
22471 Avoid some warnings from "gcc -Wshadow".
22472 * tests/test-frexp.c (exp): Define to a different identifier.
22473 * tests/test-frexpl.c (exp): Likewise.
22475 2008-04-03 Jim Meyering <meyering@redhat.com>
22477 bootstrap: remove dangling *.[ch] symlinks from lib
22478 * build-aux/bootstrap [dangling symlink removal]: Move find's
22479 -depth option to precede all others, to avoid a warning.
22480 Remove *.[ch] files too, and from "$source_base" (usually lib/).
22482 2008-04-02 Bruno Haible <bruno@clisp.org>
22484 Avoid some warnings from "gcc -Wshadow".
22485 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
22486 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
22487 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
22488 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
22489 Reported by Jim Meyering.
22491 2008-04-01 Bruno Haible <bruno@clisp.org>
22493 Fix test to work on IRIX 6.5 with cc.
22494 * tests/test-math.c (numeric_equal): New function.
22497 2008-04-01 Bruno Haible <bruno@clisp.org>
22499 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
22501 2008-04-01 Bruno Haible <bruno@clisp.org>
22503 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
22504 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22505 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
22506 (Depends-on): Remove math.
22508 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
22509 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22510 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
22511 (Depends-on): Remove math.
22513 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
22514 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22515 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
22516 (Depends-on): Remove math.
22517 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
22518 (Depends-on): Remove math.
22520 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
22521 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22522 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
22523 (Depends-on): Remove math.
22524 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
22525 (Depends-on): Remove math.
22527 * tests/test-round1.c: Include nan.h.
22528 (main): Use NaNd instead of NAN.
22529 * modules/round-tests (Files): Add tests/nan.h.
22531 * tests/test-trunc1.c: Include nan.h.
22532 (main): Use NaNd instead of NAN.
22533 * modules/trunc-tests (Files): Add tests/nan.h.
22535 * tests/test-roundf1.c: Include nan.h.
22536 (main): Use NaNf instead of NAN.
22537 * modules/roundf-tests (Files): Add tests/nan.h.
22539 * tests/test-truncf1.c: Include nan.h.
22540 (main): Use NaNf instead of NAN.
22541 * modules/truncf-tests (Files): Add tests/nan.h.
22543 * tests/test-ceilf1.c: Include nan.h.
22544 (main): Use NaNf instead of NAN.
22545 * modules/ceilf-tests (Files): Add tests/nan.h.
22547 * tests/test-floorf1.c: Include nan.h.
22548 (main): Use NaNf instead of NAN.
22549 * modules/floorf-tests (Files): Add tests/nan.h.
22551 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
22552 (main): Use NaNf instead of NAN.
22553 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
22555 * tests/test-isnand.c: Include nan.h instead of <math.h>.
22556 (main): Use NaNd instead of NAN.
22557 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
22559 * tests/test-frexp.c: Include nan.h.
22560 (main): Use NaNd instead of NAN.
22561 * modules/frexp-tests (Files): Add tests/nan.h.
22563 * lib/isnan.c: Don't include <math.h>.
22564 (FUNC): Don't use NAN macro.
22565 * modules/isnand-nolibm (Depends-on): Remove math.
22566 * modules/isnanf-nolibm (Depends-on): Remove math.
22567 * modules/isnanl (Depends-on): Remove math.
22568 * modules/isnanl-nolibm (Depends-on): Remove math.
22570 * tests/nan.h: New file.
22572 2008-04-01 Eric Blake <ebb9@byu.net>
22575 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
22576 values to be the right type.
22578 For now, cater to gnulib strtod inaccuracies.
22579 * tests/test-strtod.c (main): Allow 1-ulp error on expected
22580 fractional results. While not as nice from a QoI perspective, it
22581 is a quicker patch than correctly implementing decimal to binary
22584 2008-03-31 Eric Blake <ebb9@byu.net>
22586 Guarantee a definition of NAN.
22587 * lib/math.in.h (NAN): Define if missing.
22588 * tests/test-math.c (main): Test it.
22589 * doc/posix-headers/math.texi (math.h): Document this.
22590 * lib/isnan.c (rpl_isnand): Use it.
22591 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
22592 * tests/test-floorf1.c (NaN): Likewise.
22593 * tests/test-frexp.c (NaN): Likewise.
22594 * tests/test-isnand.c (NaN): Likewise.
22595 * tests/test-isnanf.c (NaN): Likewise.
22596 * tests/test-round1.c (NaN): Likewise.
22597 * tests/test-roundf1.c (NaN): Likewise.
22598 * tests/test-snprintf-posix.h (NaN): Likewise.
22599 * tests/test-sprintf-posix.h (NaN): Likewise.
22600 * tests/test-trunc1.c (NaN): Likewise.
22601 * tests/test-truncf1.c (NaN): Likewise.
22602 * tests/test-vasnprintf-posix.c (NaN): Likewise.
22603 * tests/test-vasprintf-posix.c (NaN): Likewise.
22604 * modules/isnand-nolibm (Depends-on): Add math.
22605 * modules/isnanf-nolibm (Depends-on): Likewise.
22606 * modules/isnanl (Depends-on): Likewise.
22607 * modules/isnanl-nolibm (Depends-on): Likewise.
22608 * modules/snprintf-posix-tests (Depends-on): Likewise.
22609 * modules/sprintf-posix-tests (Depends-on): Likewise.
22610 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
22611 * modules/vsprintf-posix-tests (Depends-on): Likewise.
22612 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
22613 * modules/vasprintf-posix-tests (Depends-on): Likewise.
22615 2008-03-31 Bruno Haible <bruno@clisp.org>
22617 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
22618 * doc/posix-functions/strtod.texi: Likewise.
22620 2008-03-31 Bruno Haible <bruno@clisp.org>
22622 * tests/test-strtod.c (main): Don't use C99 syntax.
22624 2008-03-31 Bruno Haible <bruno@clisp.org>
22626 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
22627 Reported by Eric Blake.
22629 2008-03-31 Jim Meyering <meyering@redhat.com>
22631 Don't compare actual signbit return values.
22632 * tests/test-strtod.c (main): Rather, compare only their
22633 zero/non-zero nature.
22635 2008-03-31 Eric Blake <ebb9@byu.net>
22637 More strtod documentation.
22638 * doc/posix-functions/strtod.texi (strtod): Interpret more test
22639 failures as distinct bugs.
22641 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
22643 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
22644 Problem reported by Erik Benada in
22645 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
22647 2008-03-30 Bruno Haible <bruno@clisp.org>
22649 * tests/test-strtod.c: Add comments about which assertion fails on which
22651 * doc/posix-functions/strtod.texi: Add info about many more platforms.
22653 2008-03-30 Eric Blake <ebb9@byu.net>
22655 Test signbit behavior on zeros.
22656 * tests/test-signbit.c (test_signbitf): Add tests for zero.
22657 (test_signbitd, test_signbitl): Likewise.
22659 More strtod touchups.
22660 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
22661 sign of negative underflow, for now. Use .5, not .1.
22662 * doc/posix-functions/strtod.texi (strtod): Mention these
22664 Reported by Jim Meyering.
22666 2008-03-30 Bruno Haible <bruno@clisp.org>
22668 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
22669 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
22671 2008-03-30 Bruno Haible <bruno@clisp.org>
22673 Avoid failure when attempting to return empty iconv results on some
22675 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
22676 allocation, don't report ENOMEM when the resulting string is empty.
22678 2008-03-30 Bruno Haible <bruno@clisp.org>
22680 Fix buffer overrun.
22681 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
22682 Don't consider the width for tmp_length. Check count against tmp_length
22683 before doing the padding. Ensure enough allocation during padding.
22685 2008-03-30 Eric Blake <ebb9@byu.net>
22688 * lib/strtod.c (strtod): Avoid compiler warnings.
22689 Reported by Jim Meyering.
22691 2008-03-30 Bruno Haible <bruno@clisp.org>
22693 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
22694 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
22695 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
22696 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
22697 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
22698 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
22699 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
22700 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
22702 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
22703 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
22704 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
22705 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
22706 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
22707 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
22708 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
22709 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
22711 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
22712 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
22713 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
22714 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
22715 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
22716 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
22717 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
22718 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
22720 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
22721 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
22723 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
22724 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
22726 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
22727 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
22729 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
22730 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
22731 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
22733 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
22734 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
22735 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
22737 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
22738 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
22739 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
22741 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
22742 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
22743 * modules/vasprintf (Depends-on): Add EOVERFLOW.
22745 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
22746 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
22747 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
22748 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
22749 (Depends-on): Add EOVERFLOW.
22750 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
22751 (Depends-on): Add EOVERFLOW.
22752 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22753 (Depends-on): Add EOVERFLOW.
22754 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22755 (Depends-on): Add EOVERFLOW.
22756 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22757 (Depends-on): Add EOVERFLOW.
22758 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22759 (Depends-on): Add EOVERFLOW.
22760 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22761 (Depends-on): Add EOVERFLOW.
22762 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22763 (Depends-on): Add EOVERFLOW.
22765 * lib/sprintf.c (EOVERFLOW): Remove fallback.
22766 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
22767 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
22769 * lib/snprintf.c (EOVERFLOW): Remove fallback.
22770 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
22771 * modules/snprintf (Depends-on): Add EOVERFLOW.
22773 * lib/poll.c (EOVERFLOW): Remove fallback.
22774 * modules/poll (Depends-on): Add EOVERFLOW.
22776 * lib/getugroups.c (EOVERFLOW): Remove fallback.
22777 * modules/getugroups (Depends-on): Add EOVERFLOW.
22779 * lib/getdelim.c (EOVERFLOW): Remove fallback.
22780 * modules/getdelim (Depends-on): Add EOVERFLOW.
22782 * lib/ftell.c (EOVERFLOW): Remove fallback.
22783 * modules/ftell (Depends-on): Add EOVERFLOW.
22785 * lib/fprintf.c (EOVERFLOW): Remove fallback.
22786 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
22787 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
22789 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
22791 * modules/EOVERFLOW-tests: New file.
22792 * tests/test-EOVERFLOW.c: New file.
22794 * modules/EOVERFLOW: New file.
22795 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
22797 2008-03-30 Bruno Haible <bruno@clisp.org>
22799 Fix bug introduced on 2007-06-10.
22800 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
22801 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
22803 2008-03-30 Bruno Haible <bruno@clisp.org>
22805 Improve freadseek's efficiency after ungetc.
22806 * lib/freadseek.c: Include freadahead.h.
22807 (freadptrinc): New function, extracted from freadseek.
22808 (freadseek): Use it in a loop. Use freadahead to determine the number
22809 of loop iterations.
22810 * modules/freadseek (Depends-on): Add freadahead.
22811 (configure.ac): Require AC_C_INLINE.
22813 2008-03-30 Bruno Haible <bruno@clisp.org>
22815 * lib/freadseek.c (freadseek): Don't ignore the return value of
22818 2008-03-29 Eric Blake <ebb9@byu.net>
22820 Add hex float support.
22821 * modules/strtod (Depends-on): Add c-ctype.
22822 (Link): Mention POW_LIB.
22823 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
22824 whitespace between 'e' and exponent.
22825 * tests/test-strtod.c (main): Enable hex float tests.
22826 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
22829 Document various strtod bugs, with some fixes.
22830 * doc/posix-functions/strtod.texi (strtod): Document bugs with
22831 "-0x", "inf", "nan", and hex constants.
22832 * doc/posix-functions/atof.texi (atof): Likewise.
22833 * modules/stdlib (Makefile.am): Support strtod.
22834 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22835 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
22836 detect additional strtod bugs.
22837 * lib/stdlib.in.h (rpl_strtod): Add declarations.
22838 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
22839 bool where appropriate. Parse 'inf' and 'nan'.
22840 * tests/test-strtod.c: New file.
22841 * modules/strtod (Depends-on): Add stdbool, stdlib.
22842 (configure.ac): Turn on module indicator.
22843 * modules/strtod-tests: New module.
22845 2008-03-29 Eric Blake <ebb9@byu.net>
22847 Fix ftell on mingw.
22848 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
22849 * modules/ftell-tests (Depends-on): Add binary-io.
22850 * modules/ftello-tests (Depends-on): Likewise.
22851 * tests/test-ftell.c (main): Enhance test to cover behavior after
22852 ungetc. Enforce binary mode.
22853 * tests/test-ftello.c (main): Likewise.
22855 Pass test-freadseek on cygwin.
22856 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
22857 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
22860 * tests/test-fflush2.c (main): Fix typo.
22862 2008-03-29 Bruno Haible <bruno@clisp.org>
22864 * tests/test-fflush2.c (main): Temporarily disable the contents of
22866 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
22867 Reported by Eric Blake.
22869 2008-03-28 Simon Josefsson <simon@josefsson.org>
22871 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
22872 (GC_SHA224_DIGEST_SIZE): Add.
22874 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
22875 (gc_hash_digest_length): Likewise.
22876 (gc_hash_buffer): Likewise.
22878 2008-03-25 Bruno Haible <bruno@clisp.org>
22880 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
22881 detail which gettext release to use.
22882 Reported by Simon Josefsson.
22884 2008-03-26 Jim Meyering <meyering@redhat.com>
22886 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
22887 * modules/gnumakefile (clean-GNUmakefile): Also, use
22888 test ... && ... || : syntax rather than if-then ... fi.
22890 gnumakefile: Don't double-quote-expand $(VPATH) value.
22891 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
22893 2008-03-24 Eric Blake <ebb9@byu.net>
22895 Alter GNUmakefile to install into top directory.
22896 * modules/maintainer-makefile: Split, and add dependency...
22897 * modules/gnumakefile: to this new module.
22898 * build-aux/GNUmakefile: Move...
22899 * top/GNUmakefile: ...here.
22900 * build-aux/maint.mk: Move...
22901 * top/maint.mk: ...here.
22902 * MODULES.html.sh (Support for maintaining...): Document new
22905 2008-03-23 Bruno Haible <bruno@clisp.org>
22907 * gnulib-tool: New options --vc-files, --no-vc-files.
22908 (func_usage): Document them.
22909 (vc_files): New variable.
22910 (func_import): Consider vc_files.
22911 (func_create_testdir): Set vc_files to empty.
22912 Suggested by Jim Meyering and Karl Berry.
22914 2008-03-23 Bruno Haible <bruno@clisp.org>
22916 Fix regex compilation error on HP-UX 11.
22917 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
22918 * modules/regex (Files): Add m4/mbstate_t.m4.
22919 Reported by Ton Voon <ton.voon@altinity.com>.
22921 2008-03-23 Bruno Haible <bruno@clisp.org>
22923 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
22925 2008-03-23 Eric Blake <ebb9@byu.net>
22926 Bruno Haible <bruno@clisp.org>
22928 Install files from top/ in the destination directory.
22929 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
22930 augmentation also for the files from top/.
22931 (func_import, func_create_testdir): Rewrite file names:
22932 top/filename -> filename.
22934 2008-03-23 Bruno Haible <bruno@clisp.org>
22936 Tweak "gnulib --version" output.
22937 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
22939 2008-03-23 Bruno Haible <bruno@clisp.org>
22941 Tweak "gnulib --version" output.
22942 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
22943 rather than contents of ChangeLog, when possible.
22945 2008-03-21 Eric Blake <ebb9@byu.net>
22947 More --version tweaks.
22948 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
22949 date of last ChangeLog entry.
22951 2008-03-21 Jim Meyering <meyering@redhat.com>
22953 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
22955 2008-03-20 Eric Blake <ebb9@byu.net>
22958 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
22960 2008-03-20 Simon Josefsson <simon@josefsson.org>
22962 * build-aux/GNUmakefile: Make git-version-gen optional. Add
22963 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
22965 2008-03-20 Eric Blake <ebb9@byu.net>
22967 Sync GNUmakefile with coreutils.
22968 * build-aux/GNUmakefile (have-Makefile): Rename...
22969 (_have-Makefile): ...to this, for namespace consideration.
22970 (GNUmakefile.cfg): Include, if present.
22971 (_autoreconf): Define a default.
22972 (_is-dist-target): New rule for rebuilds to pick up intra-release
22974 (maint-cfg.mk): Rename...
22975 (cfg.mk): ...to this.
22977 2008-03-18 Jim Meyering <meyering@redhat.com>
22979 New script and module: mktempd
22980 * MODULES.html.sh (maint+release support): Add mktempd.
22981 * build-aux/mktempd: New file.
22982 * modules/mktempd: New file.
22984 2008-03-15 Jim Meyering <meyering@redhat.com>
22987 * lib/sha1.c, lib/md5.c: 63 != ~63.
22988 Reported by Andreas Schwab.
22990 sha1.c, md5.c: Hoist a redundant expression.
22991 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
22992 "ctx->buflen" only once, before calling *_process_block.
22993 * lib/md5.c (md5_process_bytes): Likewise.
22995 2008-03-14 Eric Blake <ebb9@byu.net>
22997 Bump copyright year in files generated by gnulib-tool.
22998 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
22999 gnulib-tool, rather than hard-coding it.
23001 Fix 'gnulib-tool --version' output to work with git.
23002 * gnulib-tool (func_gnulib_dir): New function, extracted from...
23003 (startup): ...here.
23004 (func_version): Use it to invoke git-version-gen, rather than
23005 relying on CVS keyword expansion. Modernize wording.
23006 (cvsdatestamp, last_checkin_date, version): Kill unused
23009 2008-03-12 Jim Meyering <meyering@redhat.com>
23011 Recognize optional cast of the argument to free.
23012 * build-aux/useless-if-before-free: Update regexps.
23014 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
23016 2008-03-11 Bruno Haible <bruno@clisp.org>
23018 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
23019 by a single package.
23020 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
23021 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
23022 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
23023 Reported by Sam Steingold <sds@gnu.org>.
23025 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
23027 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
23030 2008-03-11 Bruno Haible <bruno@clisp.org>
23032 Avoid conflicts between local macro definitions.
23033 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23034 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
23036 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
23037 Bruno Haible <bruno@clisp.org>
23039 Make va_copy work with some version of xlc on AIX 5.1.
23040 * lib/stdarg.in.h: New file.
23041 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
23042 On AIX, use a <stdarg.h> file substitute.
23043 * modules/stdarg (Files): Add lib/stdarg.in.h.
23044 (Depends-on): Add include_next.
23045 (Makefile.am): Build a stdarg.h substitute if requested.
23046 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
23048 2008-03-10 Bruno Haible <bruno@clisp.org>
23050 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
23051 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23052 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23054 2008-03-10 Bruno Haible <bruno@clisp.org>
23056 * modules/stdlib (Depends-on): Add include_next, remove
23059 2008-03-09 Bruno Haible <bruno@clisp.org>
23061 * lib/freadahead.h (freadahead): Document more precisely.
23062 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
23063 the sum of both buffer sizes.
23064 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
23065 * NEWS: Document the change.
23067 2008-03-09 Bruno Haible <bruno@clisp.org>
23069 Extend freadptr to return also the buffer size.
23070 * lib/freadptr.h (freadptr): Add sizep argument.
23071 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
23072 (freadptr): Add sizep argument. Determine buffer size like freadahead
23074 * tests/test-freadptr.c: Don't include freadahead.h.
23075 (main): Adapt for new calling convention of freadptr.
23076 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
23077 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
23078 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
23079 tests/test-freadptr2.sh.
23080 (Depends): Remove freadahead.
23081 (TESTS): Add test-freadptr2.sh.
23082 (check_PROGRAMS): Add test-freadptr2.
23084 2008-03-09 Bruno Haible <bruno@clisp.org>
23086 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
23087 Report and solution by Simon Josefsson.
23089 2008-03-06 Bruno Haible <bruno@clisp.org>
23091 Make fflush after ungetc work on BSD platforms.
23092 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
23093 * tests/test-fflush2.c: New file.
23094 * tests/test-fflush2.sh: New file.
23095 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
23096 tests/test-fflush2.c.
23097 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
23098 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
23100 2008-03-06 Eric Blake <ebb9@byu.net>
23102 Likewise for ftello.
23103 * modules/ftello (Dependencies): Add extensions.
23104 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
23106 2008-03-06 Bruno Haible <bruno@clisp.org>
23108 * modules/fseeko (Dependencies): Add extensions.
23109 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
23110 Needed on glibc systems.
23112 2008-03-06 Bruno Haible <bruno@clisp.org>
23114 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
23116 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23118 2008-03-06 Bruno Haible <bruno@clisp.org>
23120 * users.txt: Add libgnupdf.
23122 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
23124 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
23125 (Header File Substitutes, Function Substitutes,
23126 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
23127 (Build robot for gnulib): Fix typo.
23129 2008-03-06 Bruno Haible <bruno@clisp.org>
23131 * doc/gnulib-tool.texi (VCS Issues): Small updates.
23132 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23134 2008-03-06 Bruno Haible <bruno@clisp.org>
23136 * doc/func.texi: New file, extracted from doc/gnulib.texi.
23137 * doc/gnulib.texi: Include it.
23139 2008-03-06 Simon Josefsson <simon@josefsson.org>
23141 * modules/func (License): Change license to unlimited; there was
23142 no LGPL parts in the module anyway.
23144 2008-03-06 Simon Josefsson <simon@josefsson.org>
23146 * modules/__func__: Renamed to modules/func.
23147 * modules/__func__-tests: Renamed to modules/func-tests.
23148 * tests/test-__func__.c: Renamed to tests/test-func.c.
23149 * m4/__func__.m4: Renamed to m4/func.m4.
23150 * doc/gnulib.texi (__func__): Section renamed to func.
23151 Suggested by Eric Blake <ebb9@byu.net>.
23153 2008-03-06 Simon Josefsson <simon@josefsson.org>
23155 * doc/gnulib.texi (__func__): Use C99 terminology when talking
23156 about __func__. Make example self-contained. Suggested by Eric
23157 Blake <ebb9@byu.net>.
23159 * tests/test-__func__.c (main): Avoid extraneous () around __func.
23160 Suggested by Eric Blake <ebb9@byu.net>.
23162 2008-03-06 Simon Josefsson <simon@josefsson.org>
23164 * modules/__func__: New file.
23165 * modules/__func__-tests: New file.
23166 * tests/test-__func__.c: New file.
23167 * m4/__func__.m4: New file.
23168 * doc/gnulib.texi (__func__): Document __func__ module.
23170 2008-03-05 Simon Josefsson <simon@josefsson.org>
23172 * modules/byteswap (License): Re-license as LGPLv2+.
23174 2008-03-05 Simon Josefsson <simon@josefsson.org>
23176 * doc/Makefile: Add pdf target.
23178 2008-03-05 Simon Josefsson <simon@josefsson.org>
23180 * modules/inline (License): Use 'unlimited', since there are only
23181 *.m4 files in this module.
23183 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
23184 Bruno Haible <bruno@clisp.org>
23186 Add support for HP C 7.1 on OpenVMS 8.3.
23187 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
23189 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
23191 Update VMS specifics.
23192 * lib/getopt.c [VMS]: Remove include of unixlib.h.
23194 2008-03-02 Jim Meyering <meyering@redhat.com>
23196 Remove the last dependency on the "free" module.
23197 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
23198 Reported by Bob Proulx.
23200 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
23202 Remove useless "if" tests before free. Deprecate "free" module.
23203 * doc/posix-functions/free.texi: Mention that this
23204 module is no longer useful.
23205 * modules/free (Notice): Say this module is obsolete.
23206 * modules/readutmp (Depends-on): Remove free.
23207 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
23208 * lib/putenv.c (putenv): Likewise.
23209 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
23210 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
23211 * tests/test-c-strcasestr.c (main): Likewise.
23212 * tests/test-c-strstr.c (main): Likewise.
23213 * tests/test-mbscasestr1.c (main): Likewise.
23214 * tests/test-mbscasestr2.c (main): Likewise.
23215 * tests/test-mbsstr1.c (main): Likewise.
23216 * tests/test-mbsstr2.c (main): Likewise.
23217 * tests/test-memmem.c (main): Likewise.
23218 * tests/test-strcasestr.c (main): Likewise.
23219 * tests/test-striconv.c (main): Likewise.
23220 * tests/test-striconveh.c (main): Likewise.
23221 * tests/test-striconveha.c (main): Likewise.
23222 * tests/test-strstr.c (main): Likewise.
23224 * build-aux/git-version-gen: Adjust a comment and the Usage string.
23226 bootstrap: sync from coreutils again
23227 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
23229 2008-03-01 Jim Meyering <meyering@redhat.com>
23231 bootstrap: sync from coreutils
23232 * build-aux/bootstrap (update_po_files): Copy a .po file into place
23233 also when the target doesn't exist.
23235 2008-03-01 Eric Blake <ebb9@byu.net>
23237 Fix bugs in last patch.
23238 * lib/memchr2.c (memchr2): Fix typo.
23239 * tests/test-memchr2.c: Test previous bug, and don't use GNU
23241 Reported by Bruce Korb.
23243 New module 'memchr2'.
23244 * modules/memchr2: New file.
23245 * modules/memchr2-tests: Likewise.
23246 * lib/memchr2.h: Likewise.
23247 * lib/memchr2.c: Likewise, based on memchr.c.
23248 * tests/test-memchr2.c: New test.
23249 * MODULES.html.sh (String handling): Add memchr2.
23251 2008-02-29 Bruno Haible <bruno@clisp.org>
23253 * modules/freadseek-tests: New file.
23254 * tests/test-freadseek.sh: New file.
23255 * tests/test-freadseek.c: New file.
23257 New module 'freadseek'.
23258 * modules/freadseek: New file.
23259 * lib/freadseek.h: New file.
23260 * lib/freadseek.c: New file.
23261 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
23263 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
23265 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
23268 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
23269 program_invocation_name and program_invocation_short_name are
23272 2008-02-28 Bruno Haible <bruno@clisp.org>
23274 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
23275 * tests/test-freadptr.sh: Also test non-seekable stdin.
23277 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
23279 * build-aux/bootstrap (source_base, m4_base)
23280 (doc_base, tests_base): New variables.
23281 (gnulib_tool_options): Do not hardcode base directories, use
23282 the above variables instead.
23284 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
23286 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
23288 2008-02-28 Bruno Haible <bruno@clisp.org>
23290 * modules/freadptr-tests: New file.
23291 * tests/test-freadptr.sh: New file.
23292 * tests/test-freadptr.c: New file.
23294 New module 'freadptr'.
23295 * modules/freadptr: New file.
23296 * lib/freadptr.h: New file.
23297 * lib/freadptr.c: New file.
23298 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
23300 2008-02-26 Karl Berry <karl@freefriends.org>
23303 * libltdl/argz.c (argz_add, argz_count): New functions.
23304 * libltdl/argz.in.h: Declare them.
23305 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
23307 2008-02-22 Bruno Haible <bruno@clisp.org>
23309 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
23310 is a pointer type. Needed for HP-UX 10.
23311 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
23312 * doc/posix-functions/gmtime_r.texi: Likewise.
23313 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23315 2008-02-24 Bruno Haible <bruno@clisp.org>
23317 * modules/environ-tests: New file.
23318 * tests/test-environ.c: New file.
23320 New module 'environ'.
23321 * modules/environ: New file.
23322 * lib/unistd.in.h (environ): New declaration.
23323 * m4/environ.m4: New file.
23324 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
23326 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
23328 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
23330 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
23331 wrong claim that 'environ' is missing on some systems.
23332 * modules/execute (Depends-on): Add environ.
23333 * lib/execute.c (environ): Remove fallback declaration.
23334 * modules/pipe (Depends-on): Add environ.
23335 * lib/pipe.c (environ): Remove fallback declaration.
23336 * modules/setenv (Depends-on): Add environ.
23337 * lib/setenv.c (environ): Remove fallback declaration.
23338 * modules/unsetenv (Depends-on): Add environ.
23339 * lib/unsetenv.c (environ): Remove fallback declaration.
23340 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
23342 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
23343 (gl_PREREQ_UNSETENV): Likewise.
23345 2008-02-24 Bruno Haible <bruno@clisp.org>
23347 * doc/posix-functions/environ.texi: Document the MacOS X problem.
23349 2008-02-20 Bob Proulx <bob@proulx.com>
23351 Enable use of older two part flavor 'git describe'.
23352 * build-aux/git-version-gen: If using the older two part flavor of
23353 git version then recreate the third part now present in the
23354 newer three part flavor of git describe.
23356 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
23358 * lib/fts.c (fts_build): Typo correction to comment.
23360 2008-02-17 Bruno Haible <bruno@clisp.org>
23362 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
23363 generating no-op conflicts.
23365 2008-02-17 Bruno Haible <bruno@clisp.org>
23368 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
23369 result_entries, rather than an index-based loop.
23371 2008-02-17 Bruno Haible <bruno@clisp.org>
23374 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
23376 (entry_create): New function.
23377 (entry_hashcode): Use the cached hashcode if possible.
23378 (read_changelog_file, try_split_merged_entry): Use entry_create.
23380 2008-02-17 Bruno Haible <bruno@clisp.org>
23382 Speed up from O(n^2) to O(n) for long ChangeLog files.
23383 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
23384 (read_changelog_file): Change implementation of entries_reversed list
23386 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
23388 2008-02-17 Bruno Haible <bruno@clisp.org>
23390 New option --split-merged-entry.
23391 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
23392 (find_paragraph_end, try_split_merged_entry): New functions.
23393 (long_options): Add option --split-merged-entry.
23394 (usage): Document option --split-merged-entry.
23395 (main): Implement option --split-merged-entry.
23396 Reported by Eric Blake.
23398 2008-02-17 Bruno Haible <bruno@clisp.org>
23400 * lib/git-merge-changelog.c: Include c-strstr.h.
23401 (main): Support the "git pull --rebase" situation.
23402 * modules/git-merge-changelog (Depends-on): Add c-strstr.
23403 Reported by Eric Blake.
23405 2008-02-16 Eric Blake <ebb9@byu.net>
23407 Avoid doubling \ in common case of "c-maybe" quoting style.
23408 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
23409 eliding outer quotes.
23410 * lib/quotearg.h: Document this.
23411 * tests/test-quotearg.c (result_strings, inputs, results_g)
23412 (flag_results, locale_results): Test it by adding a new string to
23414 (compare_strings): Test new string.
23416 2008-02-13 Eric Blake <ebb9@byu.net>
23418 Avoid trigraph quoting in default output.
23419 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
23420 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
23421 unless explicitly requested.
23422 * tests/test-quotearg.c (flag_results, main): Add additional tests.
23424 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
23426 Don't rely on signed integer overflowing to negative value.
23427 * lib/getugroups.c (getugroups): Include <limits.h>.
23428 Instead, compare against INT_MAX, and increment only if the test passes.
23430 2008-02-13 Jim Meyering <meyering@redhat.com>
23431 and Eric Blake <ebb9@byu.net>
23433 Avoid shadowing warning and compile errors on Linux.
23434 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
23435 forwarding macros on Linux.
23436 (dcgettext): Define a stub, for Linux.
23437 (results_g, main): Avoid warnings.
23439 2008-02-12 Eric Blake <ebb9@byu.net>
23441 Silence warning in last patch.
23442 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
23444 Quotearg part 4: add tests, fix c-maybe colon quoting.
23445 * lib/quotearg.h: Improve documentation.
23446 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
23447 escapes when adding outer quotes. When quoting trigraphs, use
23448 valid C notation. When quoting NUL, omit extra characters if next
23449 character is not digit. Alter prototype.
23450 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
23452 * modules/quotearg-tests: New module.
23453 * tests/test-quotearg.c: New test.
23455 2008-02-07 Eric Blake <ebb9@byu.net>
23457 Quotearg part 3: add flag to control outer quote elision.
23458 * lib/quotearg.h (c_maybe_quoting_style): New style.
23459 (enum quoting_flags): Better documentation of flags.
23460 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
23462 (quotearg_buffer_restyled): Handle new flag to elide outer
23465 Quotearg part 2: add flag that can control NUL elision.
23466 * lib/quotearg.h (set_quoting_flags): New prototype.
23467 * lib/quotearg.c (struct quoting_options): Add flag field.
23468 (set_quoting_flags): New function.
23469 (quotearg_buffer_restyled): Add flags parameter.
23470 (quotearg_alloc_mem): Set the flag if length cannot be returned.
23471 (quotearg_n_options): Set the flag, since length cannot be
23473 (quoting_options_from_style): Default flags correctly.
23475 Quotearg part 1: more wrappers, restore quotearg_char state.
23476 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
23477 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
23478 (quotearg_colon_mem): New wrappers.
23479 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
23480 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
23482 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
23483 (quotearg_colon_mem): New functions.
23485 2008-02-11 Bruno Haible <bruno@clisp.org>
23487 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
23488 library in the current directory: it does not work with parallel make.
23489 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23491 2008-02-11 Bruno Haible <bruno@clisp.org>
23493 * .gitattributes: New file.
23495 2008-02-11 Jim Meyering <meyering@redhat.com>
23497 useless-if-before-free: Fix reversed exit values.
23498 * build-aux/useless-if-before-free: Use correct values
23499 for EXIT_MATCH and EXIT_NO_MATCH.
23501 * build-aux/useless-if-before-free: Close stdout carefully.
23503 2008-02-10 Bruno Haible <bruno@clisp.org>
23505 New module 'git-merge-changelog'.
23506 * modules/git-merge-changelog: New file.
23507 * lib/git-merge-changelog.c: New file.
23509 2008-02-10 Jim Meyering <meyering@redhat.com>
23511 useless-if-before-free: New option: --list (-l).
23513 useless-if-before-free: Don't exit immediately upon open failure.
23514 * build-aux/useless-if-before-free: Exit 2 for errors.
23515 Upon failure to open a file, don't exit immediately.
23516 Rather, just warn and continue with any remaining files.
23518 2008-02-10 Bruno Haible <bruno@clisp.org>
23520 New abstract list operation 'node_set_value'.
23521 * lib/gl_list.h (gl_list_node_set_value): New function.
23522 (struct gl_list_implementation): New field node_set_value.
23523 * lib/gl_list.c (gl_list_node_set_value): New function.
23524 * lib/gl_array_list.c (gl_array_node_set_value): New function.
23525 (gl_array_list_implementation): Update.
23526 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
23527 (gl_carray_list_implementation): Update.
23528 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
23529 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23530 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23531 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
23532 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23533 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23534 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23536 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23537 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
23538 (gl_sublist_list_implementation): Update.
23540 2008-02-10 Bruno Haible <bruno@clisp.org>
23542 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
23543 Needed when ELEMENT is #defined to 'some_type *'.
23545 2008-02-10 Jim Meyering <meyering@redhat.com>
23547 New script and module: useless-if-before-free
23548 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
23549 * build-aux/useless-if-before-free: New file.
23550 * modules/useless-if-before-free: New file.
23552 * build-aux/gitlog-to-changelog: Use committer date, not author date.
23554 xstrtol_error: Fix typo.
23555 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
23556 s/exit_failure/exit_status/.
23558 2008-02-09 Jim Meyering <meyering@redhat.com>
23560 New script and module: gitlog-to-changelog
23561 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
23562 * modules/gitlog-to-changelog: New file.
23563 * build-aux/gitlog-to-changelog: New file.
23565 2008-02-08 Jim Meyering <meyering@redhat.com>
23567 Avoid two "parameter unused" warnings.
23568 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
23571 Use "git COMMAND", not "git-COMMAND".
23572 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
23573 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
23574 * build-aux/git-version-gen: Use "git status", not "git-status".
23576 2008-02-07 Bruno Haible <bruno@clisp.org>
23578 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
23579 Avoids a crash on Windows Vista.
23580 Reported by Adam Strzelecki <ono@java.pl> via
23581 Simon Josefsson <simon@josefsson.org>.
23583 2008-02-06 Bruno Haible <bruno@clisp.org>
23585 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
23586 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
23587 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
23588 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
23589 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23590 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23591 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
23592 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
23593 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23594 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23595 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23596 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23597 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23598 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23599 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23600 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
23602 * tests/test-snprintf-posix.h (test_function): Likewise.
23603 * tests/test-sprintf-posix.h (test_function): Likewise.
23604 * tests/test-vasprintf-posix.c (test_function): Likewise.
23605 * doc/posix-functions/fprintf.texi: Update.
23606 * doc/posix-functions/printf.texi: Update.
23607 * doc/posix-functions/snprintf.texi: Update.
23608 * doc/posix-functions/sprintf.texi: Update.
23609 * doc/posix-functions/vfprintf.texi: Update.
23610 * doc/posix-functions/vprintf.texi: Update.
23611 * doc/posix-functions/vsnprintf.texi: Update.
23612 * doc/posix-functions/vsprintf.texi: Update.
23613 Reported by Peter Fales <psfales@alcatel-lucent.com>.
23615 2008-02-06 Bruno Haible <bruno@clisp.org>
23617 Fix bug introduced on 2008-01-26.
23618 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
23620 2008-02-06 Bruno Haible <bruno@clisp.org>
23622 Fix bug introduced on 2007-06-10.
23623 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
23624 !NEED_PRINTF_FLAG_ZERO.
23626 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
23628 getloadavg: use libperfstat on AIX5
23629 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
23631 2008-02-03 Bruno Haible <bruno@clisp.org>
23633 * lib/diffseq.h: Add comments about required #includes.
23634 Reported by Michael Biggs <gnulib@doubleplum.net>.
23636 2008-02-01 Bruno Haible <bruno@clisp.org>
23638 * users.txt: Add gnuit.
23640 2008-01-31 Bruno Haible <bruno@clisp.org>
23642 * lib/md4.c (set_uint32): Mark as inline.
23643 * lib/md5.c (set_uint32): Likewise.
23644 * lib/sha1.c (set_uint32): Likewise.
23645 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
23646 * m4/md5.m4 (gl_MD5): Likewise.
23647 * m4/sha1.m4 (gl_SHA1): Likewise.
23649 2008-01-31 Jim Meyering <meyering@redhat.com>
23651 Use "sizeof VAR", rather than a literal "4".
23652 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
23653 * lib/md4.c (md4_read_ctx): Likewise.
23654 * lib/sha1.c (sha1_read_ctx): Likewise.
23656 2008-01-31 Simon Josefsson <simon@josefsson.org>
23658 * tests/test-sha1.c: New file, based on test-md5.c.
23660 * modules/crypto/sha1-tests: New file.
23662 2008-01-31 Simon Josefsson <simon@josefsson.org>
23664 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
23666 2008-01-31 Jim Meyering <meyering@redhat.com>
23668 Prefer "sizeof v" over the equivalent "4".
23669 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
23670 * lib/md5.c (set_uint32): Likewise.
23671 * lib/sha1.c (set_uint32): Likewise.
23673 2008-01-31 Simon Josefsson <simon@josefsson.org>
23675 * lib/sha1.c (set_uint32): Mark function as static.
23677 2008-01-31 Simon Josefsson <simon@josefsson.org>
23679 md2: clarify comments to say that alignment is not required.
23680 * lib/md2.h: Remove warning about alignment in comment.
23681 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
23682 never been required.
23684 2008-01-31 Simon Josefsson <simon@josefsson.org>
23686 md4: adapt alignment constraint fix from sha1.
23687 * lib/md4.c (set_uint32): New function, from sha1.c
23688 (md4_read_ctx): Use it.
23689 (md4_finish_ctx): Doc fix.
23690 * lib/md4.h: Doc fix.
23692 2008-01-31 Simon Josefsson <simon@josefsson.org>
23694 md5: adapt alignment constraint fix from sha1.
23695 * lib/md5.c (set_uint32): New function, from sha1.c
23696 (md5_read_ctx): Use it.
23697 (md5_finish_ctx): Doc fix.
23698 * lib/md5.h: Doc fix.
23700 2008-01-30 Peter Palfrader <weasel@debian.org>
23702 sha1: remove the result buffer alignment constraint
23703 * lib/sha1.c (set_uint32): New function.
23704 (sha1_read_ctx): Rewrite to remove the result buffer alignment
23706 (sha1_finish_ctx): Remove comment warning about alignment constraint.
23707 * lib/sha1.h: Likewise.
23709 2008-01-30 Andreas Schwab <schwab@suse.de>
23710 Bruno Haible <bruno@clisp.org>
23712 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
23713 correct definition of LDBL_MIN_EXP.
23715 2008-01-30 Karl Berry <karl@gnu.org>
23717 * config/srclist-update: try to preserve x bit on updates.
23718 * config/srclistvars.sh: update for karl.
23720 2008-01-29 Jim Meyering <meyering@redhat.com>
23722 vasnprintf.c: Avoid warning about unused label
23723 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
23724 "overflow" label definition and associated code with the
23725 same cpp condition that guards the sole use of that label.
23727 2008-01-26 Bruno Haible <bruno@clisp.org>
23729 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
23730 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
23731 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
23732 * lib/isnanl-nolibm.h (isnanl): Likewise.
23733 Reported by Paul Eggert <eggert@cs.ucla.edu>.
23735 2008-01-26 Bruno Haible <bruno@clisp.org>
23737 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
23738 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
23740 2008-01-26 Bruno Haible <bruno@clisp.org>
23742 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
23743 GCC >= 4.0 built-in.
23744 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
23746 2008-01-26 Bruno Haible <bruno@clisp.org>
23748 Rename isnan, applicable to 'double' only, to isnand.
23749 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
23750 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
23751 (configure.ac): Update.
23752 (Include): Replace "isnan.h" with "isnand.h".
23753 * m4/isnand.m4: Renamed from m4/isnan.m4.
23754 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
23755 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
23756 instead of isnan.c.
23757 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
23758 instead of HAVE_ISNAN_IN_LIBC.
23759 (isnand): Renamed from isnan.
23760 * lib/isnand.c: New file.
23761 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
23762 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
23763 (Makefile.am): Update.
23764 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
23765 Include isnand.h instead of isnan.h.
23766 (main): Test isnand instead of isnan.
23767 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
23769 * modules/frexp (Depends-on): Likewise.
23770 * modules/frexp-tests (Depends-on): Likewise.
23771 * modules/frexp-nolibm (Depends-on): Likewise.
23772 * modules/frexp-nolibm-tests (Depends-on): Likewise.
23773 * modules/isfinite (Depends-on): Likewise.
23774 * modules/round-tests (Depends-on): Likewise.
23775 * modules/signbit (Depends-on): Likewise.
23776 * modules/signbit-tests (Depends-on): Likewise.
23777 * modules/snprintf-posix (Depends-on): Likewise.
23778 * modules/sprintf-posix (Depends-on): Likewise.
23779 * modules/trunc-tests (Depends-on): Likewise.
23780 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23781 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23782 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23783 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23784 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23785 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23786 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23787 * modules/vasnprintf-posix (Depends-on): Likewise.
23788 * modules/vasprintf-posix (Depends-on): Likewise.
23789 * modules/vfprintf-posix (Depends-on): Likewise.
23790 * modules/vsnprintf-posix (Depends-on): Likewise.
23791 * modules/vsprintf-posix (Depends-on): Likewise.
23792 * lib/frexp.c: Include isnand.h instead of isnan.h.
23793 (ISNAN): Set to isnand instead of isnan.
23794 * lib/isfinite.c: Include isnand.h instead of isnan.h.
23795 (gl_isfinited): Use isnand instead of isnan.
23796 * lib/signbitd.c: Include isnand.h instead of isnan.h.
23797 (gl_signbitd): Use isnand instead of isnan.
23798 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
23799 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
23800 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
23801 (main): Use isnand instead of isnan.
23802 * tests/test-round1.c: Include isnand.h.
23803 (main): Use isnand instead of isnan.
23804 * tests/test-round2.c: Include isnand.h instead of isnan.h.
23805 (ISNAN): Set to isnand instead of isnan.
23806 * tests/test-trunc1.c: Include isnand.h.
23807 (main): Use isnand instead of isnan.
23808 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
23809 (equal): Use isnand instead of isnan.
23810 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
23812 * NEWS: Mention the change.
23814 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
23815 Bruno Haible <bruno@clisp.org>
23817 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
23818 the GCC builtins for signbits are present and set
23819 REPLACE_SIGNBIT_USING_GCC if so.
23820 * lib/math.in.h (signbit): Define using GCC builtins if
23821 REPLACE_SIGNBIT_USING_GCC is set.
23822 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
23823 REPLACE_SIGNBIT_USING_GCC.
23824 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
23826 2008-01-25 Jim Meyering <meyering@redhat.com>
23828 Prefer <config.h> over "config.h". See autoconf doc for explanation.
23829 * lib/poll.c: Include <config.h>, not "config.h".
23830 * tests/test-getaddrinfo.c: Likewise.
23832 2008-01-25 Simon Josefsson <simon@josefsson.org>
23834 * modules/sockets-tests: New file.
23836 2008-01-24 Simon Josefsson <simon@josefsson.org>
23838 * modules/sockets: New module, can be used to call WSA_Startup and
23839 WSA_Cleanup when needed.
23841 * lib/sockets.h, lib/sockets.c: New files.
23843 * m4/sockets.m4: New file.
23845 * tests/test-sockets.c: New file.
23847 2008-01-19 Bruno Haible <bruno@clisp.org>
23849 * doc/posix-headers: Renamed from doc/headers.
23850 * doc/posix-functions: Renamed from doc/functions.
23851 * doc/gnulib.texi: Update.
23853 2008-01-19 Bruno Haible <bruno@clisp.org>
23855 * doc/glibc-functions/strcasestr.texi: Include contents of
23856 doc/functions/strcasestr.texi, fixing the list of platforms.
23857 * doc/functions/strcasestr.texi: Remove file.
23859 2008-01-19 Bruno Haible <bruno@clisp.org>
23861 * doc/glibc-functions/memmem.texi: Include contents of
23862 doc/functions/memmem.texi.
23863 * doc/functions/memmem.texi: Remove file.
23865 2008-01-18 Bruno Haible <bruno@clisp.org>
23867 * doc/glibc-functions/*.texi: New files.
23868 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
23869 to use the new files.
23871 2008-01-17 Bruno Haible <bruno@clisp.org>
23873 * tests/test-gethostname.c (main): Fix printf statement.
23875 2008-01-17 Simon Josefsson <simon@josefsson.org>
23877 * modules/gethostname-tests: New file.
23879 * tests/test-gethostname.c: New file.
23881 2008-01-17 Simon Josefsson <simon@josefsson.org>
23883 * lib/gethostname.c: Include string.h unconditionally, strncpy is
23884 used by the UNAME case. Reported by Bruno Haible
23887 2008-01-17 Eric Blake <ebb9@byu.net>
23889 Convert c-strcasestr to be more efficient.
23890 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
23891 (Depends-on): Add c-strcase, remove malloca, strnlen.
23892 * tests/test-c-strcasestr.c (main): Enhance test.
23893 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
23895 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
23897 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
23898 Use it in creating po/Makevars.
23900 2008-01-15 Simon Josefsson <simon@josefsson.org>
23902 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
23903 Applications that requires it should initialize libgcrypt
23906 2008-01-16 Simon Josefsson <simon@josefsson.org>
23908 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
23910 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
23912 Fix problem with getdate on mingw32 reported by Simon Josefsson
23913 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
23914 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
23915 tzname", when deciding whether to declare tzname.
23916 * lib/strftime.c (tzname): Likewise.
23918 2008-01-15 Bruno Haible <bruno@clisp.org>
23920 Work around a MacOS X 10.5 bug in frexpl().
23921 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
23922 * doc/functions/frexpl.texi: Document the bug.
23923 Reported by Elias Pipping <pipping@gentoo.org>.
23925 2008-01-14 Eric Blake <ebb9@byu.net>
23927 Touch up previous patch.
23928 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
23929 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
23931 Convert strcasestr module to use Two-Way algorithm.
23932 * modules/strcasestr-simple: New module, based on the old
23933 strcasestr, but with Two-Way rather than KMP.
23934 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
23935 * lib/string.in.h (rpl_strcasestr): Declare.
23936 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
23938 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
23939 * modules/string (Makefile.am): Support strcasestr.
23940 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23941 * modules/strcasestr-tests (Depends-on): Check for alarm.
23942 * tests/test-strcasestr.c: Augment test.
23943 * lib/str-two-way.h: Clean up stray macro.
23944 * NEWS: Document new module.
23945 * MODULES.html.sh (string handling): Likewise.
23946 * doc/functions/strcasestr.texi: New file.
23947 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
23948 here, since it is not a POSIX function.
23950 2008-01-14 Colin Watson <cjwatson@debian.org>
23951 Bruno Haible <bruno@clisp.org>
23953 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
23954 works fine; if not, set REPLACE_STRSIGNAL.
23955 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
23956 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23958 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
23959 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
23960 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
23962 2008-01-14 Bruno Haible <bruno@clisp.org>
23964 * modules/strsignal (Include): Change to <string.h>.
23966 2008-01-14 Colin Watson <cjwatson@debian.org>
23968 * modules/argp (Notice): Add a notice recommending to change
23970 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
23972 2008-01-13 Colin Watson <cjwatson@debian.org>
23974 * modules/strsignal-tests: New file.
23975 * tests/test-strsignal.c: New file.
23977 * lib/strsignal.c: New file, from glibc with modifications.
23978 * lib/siglist.h: New file, from glibc with modifications.
23979 * lib/string.in.h (strsignal): New declaration.
23980 * m4/strsignal.m4: New file.
23981 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23982 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
23983 * modules/strsignal: New file.
23984 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
23985 HAVE_DECL_STRSIGNAL.
23987 2008-01-13 Bruno Haible <bruno@clisp.org>
23989 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
23990 locale encoding is not ASCII. Needed for OpenBSD 4.0.
23991 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23992 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23994 2008-01-13 Bruno Haible <bruno@clisp.org>
23996 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
23997 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
23998 * lib/argp.h (__attribute__): Likewise.
23999 * lib/c-stack.c (__attribute__): Likewise.
24000 * lib/error.h (__attribute__): Likewise.
24001 * lib/fts.c (__attribute__): Likewise.
24002 * lib/openat.h (__attribute__): Likewise.
24003 * lib/stdio.in.h (__attribute__): Likewise.
24004 * lib/string.in.h (__attribute__): Likewise.
24005 * lib/utimens.c (__attribute__): Likewise.
24006 * lib/vasnprintf.h (__attribute__): Likewise.
24007 * lib/xalloc.h (__attribute__): Likewise.
24008 * lib/xprintf.h (__attribute__): Likewise.
24009 * lib/xstrtol.h (__attribute__): Likewise.
24010 * lib/xvasprintf.h (__attribute__): Likewise.
24012 2008-01-12 Bruno Haible <bruno@clisp.org>
24014 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
24015 * doc/glibc-headers/a.out.texi: New file.
24016 * doc/glibc-headers/aliases.texi: New file.
24017 * doc/glibc-headers/alloca.texi: New file.
24018 * doc/glibc-headers/ar.texi: New file.
24019 * doc/glibc-headers/argp.texi: New file.
24020 * doc/glibc-headers/argz.texi: New file.
24021 * doc/glibc-headers/byteswap.texi: New file.
24022 * doc/glibc-headers/crypt.texi: New file.
24023 * doc/glibc-headers/endian.texi: New file.
24024 * doc/glibc-headers/envz.texi: New file.
24025 * doc/glibc-headers/err.texi: New file.
24026 * doc/glibc-headers/error.texi: New file.
24027 * doc/glibc-headers/execinfo.texi: New file.
24028 * doc/glibc-headers/fpu_control.texi: New file.
24029 * doc/glibc-headers/fstab.texi: New file.
24030 * doc/glibc-headers/fts.texi: New file.
24031 * doc/glibc-headers/getopt.texi: New file.
24032 * doc/glibc-headers/ieee754.texi: New file.
24033 * doc/glibc-headers/ifaddrs.texi: New file.
24034 * doc/glibc-headers/libintl.texi: New file.
24035 * doc/glibc-headers/mcheck.texi: New file.
24036 * doc/glibc-headers/mntent.texi: New file.
24037 * doc/glibc-headers/obstack.texi: New file.
24038 * doc/glibc-headers/paths.texi: New file.
24039 * doc/glibc-headers/printf.texi: New file.
24040 * doc/glibc-headers/pty.texi: New file.
24041 * doc/glibc-headers/resolv.texi: New file.
24042 * doc/glibc-headers/shadow.texi: New file.
24043 * doc/glibc-headers/sysexits.texi: New file.
24044 * doc/glibc-headers/ttyent.texi: New file.
24046 2008-01-12 Jim Meyering <meyering@redhat.com>
24048 announce-gen: emit Gnulib's git-based version string.
24049 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
24050 New option --gnulib-version=V, where V is expected to be
24051 the output of running git describe in the gnulib directory.
24052 (get_tool_versions): Request feedback on xdelta. I suspect it's
24053 not useful, and plan to stop publishing an xdelta file with each
24056 * build-aux/announce-gen: Also check for lzma-compressed files.
24058 2008-01-11 Bruno Haible <bruno@clisp.org>
24060 * tests/test-memmem.c (main): Increase maximum allowed time.
24061 * tests/test-strstr.c (main): Likewise.
24063 2008-01-11 Bruno Haible <bruno@clisp.org>
24065 * doc/functions/memmem.texi: Add more precisions about platforms.
24066 * doc/functions/strstr.texi: Likewise.
24068 2008-01-10 Eric Blake <ebb9@byu.net>
24070 * m4/strstr.m4: Delete cruft from copy-n-paste.
24071 Reported by Bruno Haible.
24073 2008-01-10 Bruno Haible <bruno@clisp.org>
24075 Make c-strstr rely on strstr.
24076 * lib/c-strstr.c: Don't include str-kmp.h.
24077 (c_strstr): Define in terms of strstr.
24078 * modules/c-strstr (Files): Remove lib/str-kmp.h.
24079 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
24081 2008-01-10 Bruno Haible <bruno@clisp.org>
24083 * doc/gnulib.texi (String Functions in C Locale): New section.
24084 * doc/c-ctype.texi: New file.
24085 * doc/c-strcase.texi: New file.
24086 * doc/c-strcaseeq.texi: New file.
24087 * doc/c-strcasestr.texi: New file.
24088 * doc/c-strstr.texi: New file.
24089 * doc/c-strtod.texi: New file.
24090 * doc/c-strtold.texi: New file.
24092 2008-01-10 Eric Blake <ebb9@byu.net>
24094 * lib/relocatable.h: Fix a comment.
24096 2008-01-10 Eric Blake <ebb9@byu.net>
24098 Share two-way algorithm.
24099 * lib/str-two-way.h: New file, merged from...
24100 * lib/memmem.c: ...here...
24101 * lib/strstr.c: ...and here.
24102 * modules/memmem (Files): Use it.
24103 * modules/strstr (Files): Likewise.
24105 Avoid quadratic strstr implementations.
24106 * lib/strstr.c: New file.
24107 * m4/strstr.m4: Likewise.
24108 * modules/strstr: Likewise.
24109 * modules/strstr-tests: Likewise.
24110 * tests/test-strstr.c: Likewise.
24111 * lib/string.in.h (rpl_strstr): Declare.
24112 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
24113 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
24114 * modules/string (Makefile.am): Likewise.
24115 * MODULES.html.sh (string handling): Mention new module.
24116 * doc/functions/strstr.texi (strstr): Document the bug.
24118 2008-01-10 Bruno Haible <bruno@clisp.org>
24120 * lib/relocatable.h (relocate): State whether result is freshly
24122 * lib/relocatable.c (relocate): Return a freshly allocated string
24123 instead of a pointer to a privately held string.
24124 Reported by Sylvain Beucler <beuc@gnu.org>.
24126 2008-01-10 Colin Watson <cjwatson@debian.org>
24128 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
24129 s/S_ISNLK/S_ISLNK/.
24131 2008-01-09 Bruno Haible <bruno@clisp.org>
24133 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
24135 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
24136 if it's only a guess.
24137 * modules/memmem: Simplify by depending on memmem-simple.
24139 2008-01-09 Bruno Haible <bruno@clisp.org>
24141 Work around OpenBSD 4.0 tdelete() bug.
24142 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
24143 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
24144 macros and don't redefine the enum values.
24145 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
24146 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
24147 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
24149 2008-01-09 Bruno Haible <bruno@clisp.org>
24151 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
24152 (main): Don't perform the tests if setlocale did not install a UTF-8
24153 locale. Needed on OpenBSD 4.0.
24154 * modules/wcwidth-tests (Depends-on): Add localcharset.
24156 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
24158 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
24159 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
24160 * NEWS: announce this.
24161 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
24163 2008-01-09 Simon Josefsson <simon@josefsson.org>
24164 and Eric Blake <ebb9@byu.net>
24166 Add memmem-simple module.
24167 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
24168 (gl_FUNC_MEMMEM): Separate performance from presence checks.
24169 * modules/memmem-simple: New file.
24170 * modules/memmem (Description): Tweak.
24171 * MODULES.html.sh (string handling): Mention new module.
24172 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
24173 addressed by memmem-simple.
24174 * NEWS: Document the difference.
24176 2008-01-09 Eric Blake <ebb9@byu.net>
24178 Give gcc some memmem optimization hints.
24179 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
24180 (strcasestr): Declare as pure.
24181 * modules/memmem (Maintainer): Claim my implementation.
24183 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24185 Support AIX 6.1 and higher.
24186 * build-aux/config.libpath: Likewise.
24187 * build-aux/config.rpath: Likewise.
24189 2008-01-08 Jim Meyering <meyering@redhat.com>
24190 Bruno Haible <bruno@clisp.org>
24192 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
24193 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
24194 Reported by Peter Fales in
24195 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
24197 2008-01-08 Bruno Haible <bruno@clisp.org>
24199 * modules/unictype/category-of (Depends-on): Add
24200 unictype/category-none.
24201 * modules/unictype/category-and-tests (Depends-on): Add
24202 unictype/category-{L,N,Lu,Nd}.
24203 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
24204 * modules/unictype/category-or-tests (Depends-on): Add
24205 unictype/category-{L,N}.
24206 * modules/unictype/category-name-tests (Depends-on): Add
24207 unictype/category-{Z,Nl}.
24208 Reported by Simon Josefsson.
24210 2008-01-08 Bruno Haible <bruno@clisp.org>
24212 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
24214 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
24215 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
24216 Reported by Peter Miller <millerp@canb.auug.org.au>.
24218 2008-01-08 Eric Blake <ebb9@byu.net>
24220 Rewrite memmem to guarantee linear complexity without malloc.
24221 * lib/memmem.c (memmem): Use Two-Way rather than
24222 Knuth-Morris-Pratt, to allow O(1) space usage.
24223 (critical_factorization, two_way_short_needle)
24224 (two_way_long_needle): New functions.
24225 (knuth_morris_pratt): Delete.
24226 * modules/memmem (Depends-on): No longer need malloca or stdbool.
24228 * tests/test-memmem.c (main): Add tests for periodic needle and
24229 sublinear performance.
24230 * doc/functions/memmem.texi (memmem): Document other deficiencies
24231 in cygwin and older glibc.
24233 2008-01-08 Bruno Haible <bruno@clisp.org>
24235 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
24238 2008-01-08 Mike Frysinger <vapier@gentoo.org>
24240 Add a configure time option: --disable-acl.
24241 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
24242 AC_ARG_ENABLE(acl).
24244 2008-01-06 Simon Josefsson <simon@josefsson.org>
24246 * tests/test-localename.c: Don't include obsolete "setenv.h".
24248 * modules/localename-tests (Depends-on): Need unsetenv.
24250 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24252 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
24254 2008-01-06 Colin Watson <cjwatson@debian.org>
24256 * users.txt: Add man-db.
24258 2008-01-07 Bruno Haible <bruno@clisp.org>
24260 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
24261 previous section name.
24263 2008-01-07 Bruno Haible <bruno@clisp.org>
24265 * lib/progname.c (set_program_name): Don't strip off a leading
24266 "lt-" prefix outside a .libs directory.
24267 Suggested by Paul Eggert.
24269 2008-01-01 Sylvain Beucler <beuc@gnu.org>
24270 Bruno Haible <bruno@clisp.org>
24272 Improve memory cleanup in 'relocatable' module.
24273 * lib/relocatable.h (compute_curr_prefix): Change return type to
24275 * lib/relocatable.c (compute_curr_prefix): Change return type to
24276 'char *'. Free curr_installdir after use.
24277 (relocate): Free curr_prefix_better after use.
24278 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
24280 2008-01-01 Bruno Haible <bruno@clisp.org>
24282 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
24283 failure on older glibc systems.
24284 Reported by Peter Fales <psfales@alcatel-lucent.com>.
24286 2008-01-05 Eric Blake <ebb9@byu.net>
24288 Avoid quadratic system memmem.
24289 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
24290 Reported by Ralf Wildenhues.
24292 Fix memmem test for mingw.
24293 * modules/memmem-tests (configure.ac): Check for alarm.
24294 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
24296 * doc/functions/memmem.texi: New file.
24297 * doc/gnulib.texi (Function Substitutes): Add memmem.
24298 Reported by Bruno Haible.
24300 2008-01-04 Bruno Haible <bruno@clisp.org>
24302 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
24303 Require gl_HEADER_STRINGS_H_DEFAULTS, not
24304 gl_HEADER_STRING_H_DEFAULTS.
24306 2008-01-04 Eric Blake <ebb9@byu.net>
24308 Shorten duration of memmem test.
24309 * tests/test-memmem.c (main): Use alarm to declare failure if test
24310 is taking too long.
24311 Reported by Ralf Wildenhues.
24313 2007-12-21 Simon Josefsson <simon@josefsson.org>
24315 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
24316 string, needed by strerror.
24318 2008-01-03 Colin Watson <cjwatson@debian.org>
24319 Bruno Haible <bruno@clisp.org>
24321 * doc/gnulib-tool.texi (Localization): New section.
24323 2008-01-02 Bruno Haible <bruno@clisp.org>
24325 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
24326 variables to 'unsigned char *' type.
24327 Reported by Paul Eggert.
24329 2008-01-02 Jim Meyering <jim@meyering.net>
24331 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
24333 2007-12-31 Jim Meyering <jim@meyering.net>
24335 Avoid use of private FTS type name.
24336 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
24338 2007-12-30 Karl Berry <karl@gnu.org>
24340 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
24341 work around defect in Texinfo and/or the standalone Info browser.
24343 2007-12-30 Bruno Haible <bruno@clisp.org>
24345 Unify 5 copies of the KMP code.
24346 * lib/str-kmp.h: New file.
24347 * lib/c-strcasestr.c: Include str-kmp.h.
24348 (knuth_morris_pratt): Remove function.
24349 (c_strcasestr): Update.
24350 * lib/c-strstr.c: Include str-kmp.h.
24351 (knuth_morris_pratt): Remove function.
24352 (c_strcasestr): Update.
24353 * lib/mbscasestr.c: Include str-kmp.h.
24354 (knuth_morris_pratt_unibyte): Remove function.
24355 * lib/mbsstr.c: Include str-kmp.h.
24356 (knuth_morris_pratt_unibyte): Remove function.
24357 * lib/strcasestr.c: Include str-kmp.h.
24358 (knuth_morris_pratt): Remove function.
24359 (strcasestr): Update.
24360 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
24361 * modules/c-strstr (Files): Likewise.
24362 * modules/mbscasestr (Files): Likewise.
24363 * modules/mbsstr (Files): Likewise.
24364 * modules/strcasestr (Files): Likewise.
24365 Suggested by Paul Eggert.
24367 2007-12-30 Bruno Haible <bruno@clisp.org>
24369 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
24372 2007-12-30 Bruno Haible <bruno@clisp.org>
24374 * lib/xmalloca.h: Include xalloc.h.
24375 (xnmalloca): New macro.
24377 2007-12-30 Bruno Haible <bruno@clisp.org>
24379 * lib/malloca.h (nmalloca): New macro.
24380 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
24381 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
24382 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
24383 knuth_morris_pratt_multibyte): Likewise.
24384 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
24385 knuth_morris_pratt_multibyte): Likewise.
24386 * lib/memmem.c (knuth_morris_pratt): Likewise.
24387 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
24389 2007-12-25 Bruno Haible <bruno@clisp.org>
24391 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
24392 * lib/glob.c: Don't include openat.h.
24393 (link_exists2_p): Add back the code that deals with the
24394 !GLOB_ALTDIRFUNC case.
24395 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
24396 let it do the filename concatenation.
24397 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
24398 * modules/glob (Depends-on): Remove openat.
24400 2007-12-31 Bruno Haible <bruno@clisp.org>
24402 * modules/dirfd (License): Change to LGPLv2+.
24403 Approved by Jim Meyering.
24405 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
24407 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
24408 when multiplying M by sizeof (size_t).
24410 2007-12-10 Martin Lambers <marlam@marlam.de>
24412 Override getpagesize on mingw.
24413 * lib/getpagesize.c: New file.
24414 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
24415 * modules/getpagesize (Files): Add lib/getpagesize.c.
24416 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
24417 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24418 REPLACE_GETPAGESIZE.
24419 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
24421 2007-12-25 Bruno Haible <bruno@clisp.org>
24423 * modules/localcharset (Notice): New field.
24424 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
24425 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
24427 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
24428 Bruno Haible <bruno@clisp.org>
24430 Avoid using the syntax symbol() in formatted documentation.
24431 * MODULES.html.sh (func_module): When replacing symbol() with a
24432 hyperlink, remove the parentheses. Show an error if some remain.
24433 Recognize and render the '...' syntax.
24434 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
24435 Rework. Add paragraph about GCC's inlining.
24436 * doc/alloca.texi: Likewise.
24437 * doc/error.texi: Remove parentheses from symbol reference.
24438 * doc/gnulib-intro.texi: Likewise.
24439 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
24440 * modules/fnmatch (Description): Reword to say "the ... function".
24441 * modules/full-read (Description): Likewise.
24442 * modules/full-write (Description): Likewise.
24443 * modules/safe-read (Description): Likewise.
24444 * modules/safe-write (Description): Likewise.
24445 * modules/strchrnul (Description): Likewise.
24446 * modules/trim (Description): Likewise.
24447 * modules/error (Description): Remove parentheses from symbol
24449 * modules/verror (Description): Likewise.
24450 Reported by Karl Berry.
24452 2007-12-25 Bruno Haible <bruno@clisp.org>
24454 Fixup after 2007-10-16 commit.
24455 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
24457 2007-12-24 Bruno Haible <bruno@clisp.org>
24459 Make --enable-relocatable work with DESTDIR.
24460 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
24461 to compute installdir from destprog.
24462 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
24463 also set the RELOC_DESTDIR variable.
24464 Reported by Левашев Иван <octagram@bluebottle.com>.
24466 2007-12-24 Bruno Haible <bruno@clisp.org>
24468 Fix link error due to xalloc_die().
24469 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
24471 * lib/relocwrapper.c: Update comments.
24472 * build-aux/install-reloc: Remove xreadlink.c from file list.
24473 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
24475 Reported by Левашев Иван <octagram@bluebottle.com>.
24477 2007-12-24 Bruno Haible <bruno@clisp.org>
24479 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
24480 * lib/setenv.h: Remove file.
24481 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
24483 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
24484 (Depends-on): Add stdlib.
24485 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
24487 (Include): Replace setenv.h with <stdlib.h>.
24488 * modules/unsetenv: New file.
24489 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
24490 * lib/unsetenv.c: Include <stdlib.h> first.
24491 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
24492 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
24493 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
24494 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
24495 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
24496 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24497 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
24498 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24499 * doc/functions/unsetenv.texi: Update.
24500 * modules/xsetenv (Depends-on): Add unsetenv.
24501 * modules/getdate (Depends-on): Likewise.
24502 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
24503 * lib/xsetenv.c: Don't include setenv.h.
24504 * lib/getdate.y: Likewise.
24505 * lib/relocwrapper.c: Likewise.
24506 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
24507 (Depends-on): Add stdlib.
24508 * NEWS: Mention the changes.
24509 Reported by Левашев Иван <octagram@bluebottle.com>.
24511 2007-12-23 Bruno Haible <bruno@clisp.org>
24513 * lib/memmem.c (memmem): Use lowercase variable names. Tab
24516 2007-12-23 Bruno Haible <bruno@clisp.org>
24518 * lib/c-strcasestr.c: Add more comments.
24519 * lib/c-strstr.c: Likewise.
24520 * lib/mbscasestr.c: Likewise.
24521 * lib/mbsstr.c: Likewise.
24522 * lib/strcasestr.c: Likewise.
24523 * lib/memmem.c: Likewise.
24525 2007-12-23 Bruno Haible <bruno@clisp.org>
24527 * tests/test-memmem.c: Include <string.h> first.
24529 2007-12-22 Bruno Haible <bruno@clisp.org>
24531 * gnulib-tool (func_create_testdir): Change $auxdir while generating
24532 the contents of $testsbase.
24533 Reported by Ralf Wildenhues.
24535 2007-12-22 Bruno Haible <bruno@clisp.org>
24537 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
24538 two variables local_ldadd_before, local_ldadd_last.
24540 2007-12-20 Eric Blake <ebb9@byu.net>
24542 Work around circular library issue when cross-compiling.
24543 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
24544 that progname.o does not need to pull in rpl_memcmp.
24546 2007-12-19 Eric Blake <ebb9@byu.net>
24548 Fix memmem to avoid O(n^2) worst-case complexity.
24549 * lib/memmem.c (knuth_morris_pratt): New function.
24550 (memmem): Use it if first few naive iterations fail.
24551 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
24552 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
24553 * modules/memchr (License): Likewise.
24554 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
24556 * tests/test-memmem.c: Rewrite, borrowing ideas from
24557 test-mbsstr1.c; the old version wouldn't even compile!
24558 * modules/memmem-tests: New file.
24559 * lib/string.in.h (rpl_memmem): Add declaration.
24560 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
24561 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
24564 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
24566 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
24567 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
24568 before any system include files, and undef after them all. This
24569 should fix a problem on VMS reported by John E. Malmberg in
24570 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
24572 2007-12-17 Eric Blake <ebb9@byu.net>
24574 Revert addition of verify, for BSD/OS.
24575 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
24576 can't handle large files, for the sake of obsolete platforms.
24577 * modules/fseeko (Depends-on): Remove verify.
24578 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
24579 * doc/functions/ftello.texi (ftello): Likewise.
24580 * doc/functions/fgetpos.texi (fgetpos): Likewise.
24581 Reported by Larry Jones.
24583 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
24585 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
24586 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
24588 2007-12-17 Jim Meyering <meyering@redhat.com>
24590 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
24591 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
24592 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
24593 * modules/getcwd (Depends-on): Add openat.
24594 Reported by Petr Salinger.
24596 2007-12-17 Bruno Haible <bruno@clisp.org>
24598 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
24599 avoid a segmentation fault of the configure test on x86_64 systems.
24601 2007-12-15 Jim Meyering <meyering@redhat.com>
24603 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
24605 2007-12-13 Eric Blake <ebb9@byu.net>
24607 Another fseek test.
24608 * tests/test-fseek.c (main): Also test ungetc handling.
24609 * tests/test-fseeko.c (main): Likewise.
24610 * modules/fseeko (Depends-on): Add verify.
24611 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
24613 Reported by Larry Jones.
24615 Fix fseeko on mingw.
24616 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
24619 Beef up fseek tests.
24620 * tests/test-fseek.c (main): Also test eof handling.
24621 * tests/test-fseeko.c (main): Likewise.
24622 Reported by Larry Jones.
24624 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
24626 Fix fseeko on BSD-based platforms.
24627 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
24630 2007-12-12 Eric Blake <ebb9@byu.net>
24632 Allow circular dependency of separate libtests.a
24633 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
24636 2007-12-11 Eric Blake <ebb9@byu.net>
24638 Fix bug with -0.0L in previous patch.
24639 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
24640 * tests/test-isnan.c (main): Also test on zeroes.
24641 * tests/test-isnanf.c (main): Likewise.
24642 * tests/test-isnanl.h (main): Likewise.
24644 Detect pseudo-denormals on x86 even when cross-compiling.
24645 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
24646 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
24647 invalid bit patterns that happen to satisfy ==.
24649 Avoid link failures with separate libtests.a.
24650 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
24651 last, to satisfy circular dependencies.
24653 2007-12-11 Eric Blake <ebb9@byu.net>
24654 and Bruno Haible <bruno@clisp.org>
24656 Fix OpenBSD 4.0 <float.h> handling of long double.
24657 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
24658 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
24659 * doc/headers/float.texi (float.h): Document OpenBSD bug.
24661 2007-12-11 Jim Meyering <meyering@redhat.com>
24663 * users.txt: Add libvirt.
24665 Support versions of autoconf prior to 2.59c.
24666 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
24667 if it is not already defined.
24669 2007-12-09 Bruno Haible <bruno@clisp.org>
24671 Let 'gnulib-tool --import' collect sources needed for the tests in
24672 tests/ rather than in lib/.
24673 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
24674 argument. If true, add rules to generate libtests.a, and put libtests.a
24675 into $(LDADD). Consider source files in subdirectories and set
24677 (func_emit_initmacro_start, func_emit_initmacro_end,
24678 func_emit_initmacro_done): Pass all arguments explicitly.
24679 (func_import): Determine two module lists main_modules,
24680 testsrelated_modules. Determine use_libtests. Determine two variables
24681 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
24682 instead of just sed_transform_lib_file. Determine two variables
24683 main_files and testsrelated_files. Compute 'files' as the union of
24684 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
24685 func_add_or_update. In the generated gnulib-comp.m4, collect the
24686 object files for tests/ in different variables than those for lib/.
24687 Substitute LIBTESTS_LIBDEPS.
24688 (func_create_testdir): Combine the uses_subdirs results from
24689 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
24691 2007-12-09 Bruno Haible <bruno@clisp.org>
24693 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
24694 the build-aux directory.
24696 2007-12-09 Bruno Haible <bruno@clisp.org>
24698 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
24699 introduced on 2006-09-09.
24701 2007-12-07 Jim Meyering <meyering@redhat.com>
24703 Let these macros work also with autoconf-2.59.
24704 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
24705 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
24706 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24708 2007-12-06 Jim Meyering <meyering@redhat.com>
24710 Avoid a configure-time syntax error in gl_FUNC_ACL.
24711 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
24712 function in each branch, before testing the cache variable.
24714 2007-12-04 Eric Blake <ebb9@byu.net>
24716 Make scripts executable.
24717 * build-aux/config.guess: Add execute permissions.
24718 * build-aux/config.sub: Likewise.
24719 * build-aux/gendocs.sh: Likewise.
24721 Fix frexp on mingw.
24722 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
24724 * doc/functions/frexp.texi (frexp): Document the bug.
24726 Make cygwin fseeko check more reliable.
24727 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
24728 version numbers, rather than unrelated feature check.
24729 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
24730 * doc/functions/ftello.texi (ftello): Likewise.
24731 Reported by Bruno Haible.
24733 * m4/strerror.m4: Bump version number.
24735 2007-12-03 Bruno Haible <bruno@clisp.org>
24737 * doc/functions/mprotect.texi: Mention the mingw problem.
24739 2007-12-03 Eric Blake <ebb9@byu.net>
24741 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
24742 REPLACE_STRERROR is initialized before this macro.
24744 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
24746 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
24747 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
24748 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
24749 put -lsec in even for programs other than 'ls'. This fixes a problem
24750 for gettext reported by Bruno Haible in
24751 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
24752 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
24753 Add support for Solaris 10. This isn't efficient, but should get the
24756 2007-12-03 James Youngman <jay@gnu.org>
24758 * doc/regexprops-generic.texi: change "an close-group" to "a
24759 close-group" and "illegal" to "not allowed".
24761 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24763 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
24764 pr_byname.h. Needed for the rare case when the maintainer has done
24765 "make maintainer-clean" in the source directory and then attempts a
24766 build outside the source directory.
24767 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
24770 2007-12-02 Martin Lambers <marlam@marlam.de>
24771 Bruno Haible <bruno@clisp.org>
24773 * lib/getpagesize.h: Remove file.
24774 * lib/unistd.in.h: Include declaration of getpagesize here.
24775 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
24776 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
24778 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
24779 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24780 * modules/getpagesize (Files): Remove lib/getpagesize.h.
24781 (Depends-on): Add unistd.
24782 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24783 (Include): Use <unistd.h> instead of getpagesize.h.
24784 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
24785 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24786 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
24787 gl_GETPAGESIZE invocation, already handled by module dependency.
24788 * lib/pagealign_alloc.c: Don't include getpagesize.h.
24790 2007-12-02 Bruno Haible <bruno@clisp.org>
24792 * modules/strings-tests: New file.
24793 * tests/test-strings.c: New file.
24795 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
24796 * lib/strings.in.h: New file.
24797 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
24798 * m4/strings_h.m4: New file.
24799 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
24800 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
24801 * modules/strings: New file.
24802 * modules/string (Makefile.am): Update.
24803 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
24804 Reported by Karl Berry.
24806 2007-12-01 Eric Blake <ebb9@byu.net>
24808 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
24809 accomodate fix in cygwin 1.5.25.
24811 2007-12-01 Jim Meyering <meyering@redhat.com>
24813 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
24814 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
24815 that would inhibit utf8-optimization of a regexp containing line-
24816 or buffer-anchors, e.g., `^', `$'.
24818 2007-11-30 Bruno Haible <bruno@clisp.org>
24820 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
24821 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
24822 glthread_recursive_lock_init.
24823 * lib/lock.c (glthread_recursive_lock_init)
24824 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
24825 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24827 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
24829 New function qset_acl, like set_acl but with syscall semantics.
24830 * lib/acl.h (qset_acl): New decl.
24831 * lib/acl.c (qset_acl): New function.
24832 (set_acl): Use new function. Use more-consistent diagnostics.
24834 2007-11-28 Jim Meyering <meyering@redhat.com>
24836 * modules/physmem (License): Change from GPL to LGPLv2+.
24838 2007-11-26 Bruno Haible <bruno@clisp.org>
24840 * lib/vasnprintf.c (decode_long_double): Don't abort if the
24841 'long double' type has excess precision.
24842 Reported by Jim Meyering in
24843 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
24845 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24847 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
24848 Sync from <http://gnu.org/licenses>.
24849 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
24850 with license text from same location.
24851 * doc/maintain.texi, doc/standards.texi: Sync from
24852 <http://savannah.gnu.org/projects/gnustandards>.
24854 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
24855 and Jim Meyering <meyering@redhat.com>
24857 Adjust getdate' grammar to accept a slightly more regular language.
24858 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
24859 Before, the former was rejected.
24860 * lib/getdate.y (digits_to_date_time): New function, factored
24862 (number): ...here. Just call digits_to_date_time.
24863 (hybrid): New non-terminal to handle an <unsigned number,
24864 signed relative offset> sequence consistently.
24866 2007-11-18 Jim Meyering <meyering@redhat.com>
24868 Pull my changes from coreutils:
24869 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
24870 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
24871 use of $gnulib_tool_option_extras, so that it's separated from the
24872 preceding argument.
24874 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
24875 * build-aux/bootstrap (cp_mark_as_generated): Create any required
24876 parent destination directories before copying a file into place.
24878 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
24880 bootstrap: work also with 4-argument variant of AC_INIT
24881 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
24883 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
24885 Port test-getaddrinfo to Solaris.
24886 Problem reported by Bruno Haible in
24887 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
24888 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
24889 explanation of setting 'hints'.
24890 Don't reject an implementation merely because it returns EAI_SERVICE.
24891 (EAI_SERVICE): Define to 0 if not defined.
24893 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
24895 The license of gnu-make and posix-shell is now "GPLed build tool".
24896 * modules/gnu-make (License): Likewise.
24897 * modules/posix-shell (License): Likewise.
24899 New module posix-shell, for determining a POSIX shell
24900 or perhaps something that is close enough to a POSIX shell.
24901 * m4/posix-shell.m4: New file.
24902 * modules/posix-shell: New file.
24904 * MODULES.html.sh: Mention new module.
24906 New module gnu-make, for determining whether we're using GNU Make.
24907 * m4/gnu-make.m4: New file.
24908 * modules/gnu-make: New file.
24909 * MODULES.html.sh: Mention new module.
24911 2007-11-14 Jim Meyering <meyering@redhat.com>
24913 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
24914 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
24915 use this macro to create a function _definition_.
24916 Remove useless "#undef ARGMATCH_DIE".
24918 2007-11-14 Bruno Haible <bruno@clisp.org>
24920 * lib/config.charset: Update for OpenBSD 4.1.
24921 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
24923 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
24925 Document 64-bit #if problems in stdint.texi.
24926 * doc/headers/stdint.texi (stdint.h): Mention problems with
24927 64-bit-#if, and how to work around them.
24929 Don't insist on 'long long int' support in the preprocessor. It
24930 breaks too many things. For example, PRIdMAX still uses a 'long
24931 long int' format with the latest Sun compiler, even though
24932 HAVE_LONG_LONG_INT isn't defined due to that compiler's
24933 preprocessor problem. This causes the latest coreutils to dump
24934 core on Solaris 10 sparc with the Sun C compiler.
24935 Instead, fix the 2007-10-16 problem in a different way, by evaluating
24936 the troublesome expressions at configure-time, not at #if-time.
24937 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
24939 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
24940 compile-time C checks, done at 'configure'-time.
24941 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
24942 * modules/inttypes (Makefile): Substitute the new symbols that
24943 gl_INTTYPES_H now generates.
24944 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
24946 2007-11-12 Bruno Haible <bruno@clisp.org>
24948 Tests for Unicode character classification functions.
24950 * modules/unictype/bidicategory-byname-tests: New file.
24951 * modules/unictype/bidicategory-name-tests: New file.
24952 * modules/unictype/bidicategory-of-tests: New file.
24953 * modules/unictype/bidicategory-test-tests: New file.
24954 * modules/unictype/block-list-tests: New file.
24955 * modules/unictype/block-of-tests: New file.
24956 * modules/unictype/block-test-tests: New file.
24957 * modules/unictype/category-C-tests: New file.
24958 * modules/unictype/category-Cc-tests: New file.
24959 * modules/unictype/category-Cf-tests: New file.
24960 * modules/unictype/category-Cn-tests: New file.
24961 * modules/unictype/category-Co-tests: New file.
24962 * modules/unictype/category-Cs-tests: New file.
24963 * modules/unictype/category-L-tests: New file.
24964 * modules/unictype/category-Ll-tests: New file.
24965 * modules/unictype/category-Lm-tests: New file.
24966 * modules/unictype/category-Lo-tests: New file.
24967 * modules/unictype/category-Lt-tests: New file.
24968 * modules/unictype/category-Lu-tests: New file.
24969 * modules/unictype/category-M-tests: New file.
24970 * modules/unictype/category-Mc-tests: New file.
24971 * modules/unictype/category-Me-tests: New file.
24972 * modules/unictype/category-Mn-tests: New file.
24973 * modules/unictype/category-N-tests: New file.
24974 * modules/unictype/category-Nd-tests: New file.
24975 * modules/unictype/category-Nl-tests: New file.
24976 * modules/unictype/category-No-tests: New file.
24977 * modules/unictype/category-P-tests: New file.
24978 * modules/unictype/category-Pc-tests: New file.
24979 * modules/unictype/category-Pd-tests: New file.
24980 * modules/unictype/category-Pe-tests: New file.
24981 * modules/unictype/category-Pf-tests: New file.
24982 * modules/unictype/category-Pi-tests: New file.
24983 * modules/unictype/category-Po-tests: New file.
24984 * modules/unictype/category-Ps-tests: New file.
24985 * modules/unictype/category-S-tests: New file.
24986 * modules/unictype/category-Sc-tests: New file.
24987 * modules/unictype/category-Sk-tests: New file.
24988 * modules/unictype/category-Sm-tests: New file.
24989 * modules/unictype/category-So-tests: New file.
24990 * modules/unictype/category-Z-tests: New file.
24991 * modules/unictype/category-Zl-tests: New file.
24992 * modules/unictype/category-Zp-tests: New file.
24993 * modules/unictype/category-Zs-tests: New file.
24994 * modules/unictype/category-and-not-tests: New file.
24995 * modules/unictype/category-and-tests: New file.
24996 * modules/unictype/category-byname-tests: New file.
24997 * modules/unictype/category-name-tests: New file.
24998 * modules/unictype/category-none-tests: New file.
24999 * modules/unictype/category-of-tests: New file.
25000 * modules/unictype/category-or-tests: New file.
25001 * modules/unictype/category-test-withtable-tests: New file.
25002 * modules/unictype/combining-class-tests: New file.
25003 * modules/unictype/ctype-alnum-tests: New file.
25004 * modules/unictype/ctype-alpha-tests: New file.
25005 * modules/unictype/ctype-blank-tests: New file.
25006 * modules/unictype/ctype-cntrl-tests: New file.
25007 * modules/unictype/ctype-digit-tests: New file.
25008 * modules/unictype/ctype-graph-tests: New file.
25009 * modules/unictype/ctype-lower-tests: New file.
25010 * modules/unictype/ctype-print-tests: New file.
25011 * modules/unictype/ctype-punct-tests: New file.
25012 * modules/unictype/ctype-space-tests: New file.
25013 * modules/unictype/ctype-upper-tests: New file.
25014 * modules/unictype/ctype-xdigit-tests: New file.
25015 * modules/unictype/decimal-digit-tests: New file.
25016 * modules/unictype/digit-tests: New file.
25017 * modules/unictype/mirror-tests: New file.
25018 * modules/unictype/numeric-tests: New file.
25019 * modules/unictype/property-alphabetic-tests: New file.
25020 * modules/unictype/property-ascii-hex-digit-tests: New file.
25021 * modules/unictype/property-bidi-arabic-digit-tests: New file.
25022 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
25023 * modules/unictype/property-bidi-block-separator-tests: New file.
25024 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
25025 * modules/unictype/property-bidi-common-separator-tests: New file.
25026 * modules/unictype/property-bidi-control-tests: New file.
25027 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
25028 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
25029 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
25030 * modules/unictype/property-bidi-european-digit-tests: New file.
25031 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
25032 * modules/unictype/property-bidi-left-to-right-tests: New file.
25033 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
25034 * modules/unictype/property-bidi-other-neutral-tests: New file.
25035 * modules/unictype/property-bidi-pdf-tests: New file.
25036 * modules/unictype/property-bidi-segment-separator-tests: New file.
25037 * modules/unictype/property-bidi-whitespace-tests: New file.
25038 * modules/unictype/property-byname-tests: New file.
25039 * modules/unictype/property-combining-tests: New file.
25040 * modules/unictype/property-composite-tests: New file.
25041 * modules/unictype/property-currency-symbol-tests: New file.
25042 * modules/unictype/property-dash-tests: New file.
25043 * modules/unictype/property-decimal-digit-tests: New file.
25044 * modules/unictype/property-default-ignorable-code-point-tests: New file.
25045 * modules/unictype/property-deprecated-tests: New file.
25046 * modules/unictype/property-diacritic-tests: New file.
25047 * modules/unictype/property-extender-tests: New file.
25048 * modules/unictype/property-format-control-tests: New file.
25049 * modules/unictype/property-grapheme-base-tests: New file.
25050 * modules/unictype/property-grapheme-extend-tests: New file.
25051 * modules/unictype/property-grapheme-link-tests: New file.
25052 * modules/unictype/property-hex-digit-tests: New file.
25053 * modules/unictype/property-hyphen-tests: New file.
25054 * modules/unictype/property-id-continue-tests: New file.
25055 * modules/unictype/property-id-start-tests: New file.
25056 * modules/unictype/property-ideographic-tests: New file.
25057 * modules/unictype/property-ids-binary-operator-tests: New file.
25058 * modules/unictype/property-ids-trinary-operator-tests: New file.
25059 * modules/unictype/property-ignorable-control-tests: New file.
25060 * modules/unictype/property-iso-control-tests: New file.
25061 * modules/unictype/property-join-control-tests: New file.
25062 * modules/unictype/property-left-of-pair-tests: New file.
25063 * modules/unictype/property-line-separator-tests: New file.
25064 * modules/unictype/property-logical-order-exception-tests: New file.
25065 * modules/unictype/property-lowercase-tests: New file.
25066 * modules/unictype/property-math-tests: New file.
25067 * modules/unictype/property-non-break-tests: New file.
25068 * modules/unictype/property-not-a-character-tests: New file.
25069 * modules/unictype/property-numeric-tests: New file.
25070 * modules/unictype/property-other-alphabetic-tests: New file.
25071 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
25072 * modules/unictype/property-other-grapheme-extend-tests: New file.
25073 * modules/unictype/property-other-id-continue-tests: New file.
25074 * modules/unictype/property-other-id-start-tests: New file.
25075 * modules/unictype/property-other-lowercase-tests: New file.
25076 * modules/unictype/property-other-math-tests: New file.
25077 * modules/unictype/property-other-uppercase-tests: New file.
25078 * modules/unictype/property-paired-punctuation-tests: New file.
25079 * modules/unictype/property-paragraph-separator-tests: New file.
25080 * modules/unictype/property-pattern-syntax-tests: New file.
25081 * modules/unictype/property-pattern-white-space-tests: New file.
25082 * modules/unictype/property-private-use-tests: New file.
25083 * modules/unictype/property-punctuation-tests: New file.
25084 * modules/unictype/property-quotation-mark-tests: New file.
25085 * modules/unictype/property-radical-tests: New file.
25086 * modules/unictype/property-sentence-terminal-tests: New file.
25087 * modules/unictype/property-soft-dotted-tests: New file.
25088 * modules/unictype/property-space-tests: New file.
25089 * modules/unictype/property-terminal-punctuation-tests: New file.
25090 * modules/unictype/property-test-tests: New file.
25091 * modules/unictype/property-titlecase-tests: New file.
25092 * modules/unictype/property-unassigned-code-value-tests: New file.
25093 * modules/unictype/property-unified-ideograph-tests: New file.
25094 * modules/unictype/property-uppercase-tests: New file.
25095 * modules/unictype/property-variation-selector-tests: New file.
25096 * modules/unictype/property-white-space-tests: New file.
25097 * modules/unictype/property-xid-continue-tests: New file.
25098 * modules/unictype/property-xid-start-tests: New file.
25099 * modules/unictype/property-zero-width-tests: New file.
25100 * modules/unictype/scripts-tests: New file.
25101 * modules/unictype/syntax-c-ident-tests: New file.
25102 * modules/unictype/syntax-c-whitespace-tests: New file.
25103 * modules/unictype/syntax-java-ident-tests: New file.
25104 * modules/unictype/syntax-java-whitespace-tests: New file.
25105 * tests/unictype/test-bidi_byname.c: New file.
25106 * tests/unictype/test-bidi_name.c: New file.
25107 * tests/unictype/test-bidi_of.c: New file.
25108 * tests/unictype/test-bidi_test.c: New file.
25109 * tests/unictype/test-block_list.c: New file.
25110 * tests/unictype/test-block_of.c: New file.
25111 * tests/unictype/test-block_test.c: New file.
25112 * tests/unictype/test-categ_and.c: New file.
25113 * tests/unictype/test-categ_and_not.c: New file.
25114 * tests/unictype/test-categ_byname.c: New file.
25115 * tests/unictype/test-categ_name.c: New file.
25116 * tests/unictype/test-categ_none.c: New file.
25117 * tests/unictype/test-categ_of.c: New file.
25118 * tests/unictype/test-categ_or.c: New file.
25119 * tests/unictype/test-categ_test_withtable.c: New file.
25120 * tests/unictype/test-combining.c: New file.
25121 * tests/unictype/test-decdigit.c: New file.
25122 * tests/unictype/test-digit.c: New file.
25123 * tests/unictype/test-mirror.c: New file.
25124 * tests/unictype/test-numeric.c: New file.
25125 * tests/unictype/test-pr_byname.c: New file.
25126 * tests/unictype/test-pr_test.c: New file.
25127 * tests/unictype/test-predicate-part1.h: New file.
25128 * tests/unictype/test-predicate-part2.h: New file.
25129 * tests/unictype/test-scripts.c: New file.
25130 * tests/unictype/test-sy_c_ident.c: New file.
25131 * tests/unictype/test-sy_java_ident.c: New file.
25133 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
25135 * tests/unictype/test-categ_Cc.c: Likewise.
25136 * tests/unictype/test-categ_Cf.c: Likewise.
25137 * tests/unictype/test-categ_Cn.c: Likewise.
25138 * tests/unictype/test-categ_Co.c: Likewise.
25139 * tests/unictype/test-categ_Cs.c: Likewise.
25140 * tests/unictype/test-categ_L.c: Likewise.
25141 * tests/unictype/test-categ_Ll.c: Likewise.
25142 * tests/unictype/test-categ_Lm.c: Likewise.
25143 * tests/unictype/test-categ_Lo.c: Likewise.
25144 * tests/unictype/test-categ_Lt.c: Likewise.
25145 * tests/unictype/test-categ_Lu.c: Likewise.
25146 * tests/unictype/test-categ_M.c: Likewise.
25147 * tests/unictype/test-categ_Mc.c: Likewise.
25148 * tests/unictype/test-categ_Me.c: Likewise.
25149 * tests/unictype/test-categ_Mn.c: Likewise.
25150 * tests/unictype/test-categ_N.c: Likewise.
25151 * tests/unictype/test-categ_Nd.c: Likewise.
25152 * tests/unictype/test-categ_Nl.c: Likewise.
25153 * tests/unictype/test-categ_No.c: Likewise.
25154 * tests/unictype/test-categ_P.c: Likewise.
25155 * tests/unictype/test-categ_Pc.c: Likewise.
25156 * tests/unictype/test-categ_Pd.c: Likewise.
25157 * tests/unictype/test-categ_Pe.c: Likewise.
25158 * tests/unictype/test-categ_Pf.c: Likewise.
25159 * tests/unictype/test-categ_Pi.c: Likewise.
25160 * tests/unictype/test-categ_Po.c: Likewise.
25161 * tests/unictype/test-categ_Ps.c: Likewise.
25162 * tests/unictype/test-categ_S.c: Likewise.
25163 * tests/unictype/test-categ_Sc.c: Likewise.
25164 * tests/unictype/test-categ_Sk.c: Likewise.
25165 * tests/unictype/test-categ_Sm.c: Likewise.
25166 * tests/unictype/test-categ_So.c: Likewise.
25167 * tests/unictype/test-categ_Z.c: Likewise.
25168 * tests/unictype/test-categ_Zl.c: Likewise.
25169 * tests/unictype/test-categ_Zp.c: Likewise.
25170 * tests/unictype/test-categ_Zs.c: Likewise.
25171 * tests/unictype/test-ctype_alnum.c: Likewise.
25172 * tests/unictype/test-ctype_alpha.c: Likewise.
25173 * tests/unictype/test-ctype_blank.c: Likewise.
25174 * tests/unictype/test-ctype_cntrl.c: Likewise.
25175 * tests/unictype/test-ctype_digit.c: Likewise.
25176 * tests/unictype/test-ctype_graph.c: Likewise.
25177 * tests/unictype/test-ctype_lower.c: Likewise.
25178 * tests/unictype/test-ctype_print.c: Likewise.
25179 * tests/unictype/test-ctype_punct.c: Likewise.
25180 * tests/unictype/test-ctype_space.c: Likewise.
25181 * tests/unictype/test-ctype_upper.c: Likewise.
25182 * tests/unictype/test-ctype_xdigit.c: Likewise.
25183 * tests/unictype/test-decdigit.h: Likewise.
25184 * tests/unictype/test-digit.h: Likewise.
25185 * tests/unictype/test-numeric.h: Likewise.
25186 * tests/unictype/test-pr_alphabetic.c: Likewise.
25187 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
25188 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25189 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25190 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
25191 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25192 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
25193 * tests/unictype/test-pr_bidi_control.c: Likewise.
25194 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
25195 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
25196 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25197 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25198 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25199 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25200 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25201 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25202 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
25203 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
25204 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
25205 * tests/unictype/test-pr_combining.c: Likewise.
25206 * tests/unictype/test-pr_composite.c: Likewise.
25207 * tests/unictype/test-pr_currency_symbol.c: Likewise.
25208 * tests/unictype/test-pr_dash.c: Likewise.
25209 * tests/unictype/test-pr_decimal_digit.c: Likewise.
25210 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
25211 * tests/unictype/test-pr_deprecated.c: Likewise.
25212 * tests/unictype/test-pr_diacritic.c: Likewise.
25213 * tests/unictype/test-pr_extender.c: Likewise.
25214 * tests/unictype/test-pr_format_control.c: Likewise.
25215 * tests/unictype/test-pr_grapheme_base.c: Likewise.
25216 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25217 * tests/unictype/test-pr_grapheme_link.c: Likewise.
25218 * tests/unictype/test-pr_hex_digit.c: Likewise.
25219 * tests/unictype/test-pr_hyphen.c: Likewise.
25220 * tests/unictype/test-pr_id_continue.c: Likewise.
25221 * tests/unictype/test-pr_id_start.c: Likewise.
25222 * tests/unictype/test-pr_ideographic.c: Likewise.
25223 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
25224 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
25225 * tests/unictype/test-pr_ignorable_control.c: Likewise.
25226 * tests/unictype/test-pr_iso_control.c: Likewise.
25227 * tests/unictype/test-pr_join_control.c: Likewise.
25228 * tests/unictype/test-pr_left_of_pair.c: Likewise.
25229 * tests/unictype/test-pr_line_separator.c: Likewise.
25230 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25231 * tests/unictype/test-pr_lowercase.c: Likewise.
25232 * tests/unictype/test-pr_math.c: Likewise.
25233 * tests/unictype/test-pr_non_break.c: Likewise.
25234 * tests/unictype/test-pr_not_a_character.c: Likewise.
25235 * tests/unictype/test-pr_numeric.c: Likewise.
25236 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25237 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
25238 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
25239 * tests/unictype/test-pr_other_id_continue.c: Likewise.
25240 * tests/unictype/test-pr_other_id_start.c: Likewise.
25241 * tests/unictype/test-pr_other_lowercase.c: Likewise.
25242 * tests/unictype/test-pr_other_math.c: Likewise.
25243 * tests/unictype/test-pr_other_uppercase.c: Likewise.
25244 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
25245 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
25246 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
25247 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
25248 * tests/unictype/test-pr_private_use.c: Likewise.
25249 * tests/unictype/test-pr_punctuation.c: Likewise.
25250 * tests/unictype/test-pr_quotation_mark.c: Likewise.
25251 * tests/unictype/test-pr_radical.c: Likewise.
25252 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25253 * tests/unictype/test-pr_soft_dotted.c: Likewise.
25254 * tests/unictype/test-pr_space.c: Likewise.
25255 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25256 * tests/unictype/test-pr_titlecase.c: Likewise.
25257 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25258 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25259 * tests/unictype/test-pr_uppercase.c: Likewise.
25260 * tests/unictype/test-pr_variation_selector.c: Likewise.
25261 * tests/unictype/test-pr_white_space.c: Likewise.
25262 * tests/unictype/test-pr_xid_continue.c: Likewise.
25263 * tests/unictype/test-pr_xid_start.c: Likewise.
25264 * tests/unictype/test-pr_zero_width.c: Likewise.
25265 * tests/unictype/test-sy_c_whitespace.c: Likewise.
25266 * tests/unictype/test-sy_java_whitespace.c: Likewise.
25268 2007-11-12 Bruno Haible <bruno@clisp.org>
25270 Unicode character classification functions.
25271 * lib/unictype.h: New file.
25272 * modules/unictype/base: New file.
25273 * modules/unictype/category-L: New file.
25274 * modules/unictype/category-Lu: New file.
25275 * modules/unictype/category-Ll: New file.
25276 * modules/unictype/category-Lt: New file.
25277 * modules/unictype/category-Lm: New file.
25278 * modules/unictype/category-Lo: New file.
25279 * modules/unictype/category-M: New file.
25280 * modules/unictype/category-Mn: New file.
25281 * modules/unictype/category-Mc: New file.
25282 * modules/unictype/category-Me: New file.
25283 * modules/unictype/category-N: New file.
25284 * modules/unictype/category-Nd: New file.
25285 * modules/unictype/category-Nl: New file.
25286 * modules/unictype/category-No: New file.
25287 * modules/unictype/category-P: New file.
25288 * modules/unictype/category-Pc: New file.
25289 * modules/unictype/category-Pd: New file.
25290 * modules/unictype/category-Ps: New file.
25291 * modules/unictype/category-Pe: New file.
25292 * modules/unictype/category-Pi: New file.
25293 * modules/unictype/category-Pf: New file.
25294 * modules/unictype/category-Po: New file.
25295 * modules/unictype/category-S: New file.
25296 * modules/unictype/category-Sm: New file.
25297 * modules/unictype/category-Sc: New file.
25298 * modules/unictype/category-Sk: New file.
25299 * modules/unictype/category-So: New file.
25300 * modules/unictype/category-Z: New file.
25301 * modules/unictype/category-Zs: New file.
25302 * modules/unictype/category-Zl: New file.
25303 * modules/unictype/category-Zp: New file.
25304 * modules/unictype/category-C: New file.
25305 * modules/unictype/category-Cc: New file.
25306 * modules/unictype/category-Cf: New file.
25307 * modules/unictype/category-Cs: New file.
25308 * modules/unictype/category-Co: New file.
25309 * modules/unictype/category-Cn: New file.
25310 * modules/unictype/category-or: New file.
25311 * modules/unictype/category-of: New file.
25312 * modules/unictype/category-test: New file.
25313 * modules/unictype/category-test-withtable: New file.
25314 * modules/unictype/category-byname: New file.
25315 * modules/unictype/category-none: New file.
25316 * modules/unictype/category-and: New file.
25317 * modules/unictype/category-and-not: New file.
25318 * modules/unictype/category-name: New file.
25319 * modules/unictype/combining-class: New file.
25320 * modules/unictype/category-all: New file.
25321 * modules/unictype/bidicategory-all: New file.
25322 * modules/unictype/bidicategory-byname: New file.
25323 * modules/unictype/bidicategory-name: New file.
25324 * modules/unictype/bidicategory-of: New file.
25325 * modules/unictype/bidicategory-test: New file.
25326 * modules/unictype/decimal-digit: New file.
25327 * modules/unictype/digit: New file.
25328 * modules/unictype/numeric: New file.
25329 * modules/unictype/mirror: New file.
25330 * modules/unictype/property-white-space: New file.
25331 * modules/unictype/property-alphabetic: New file.
25332 * modules/unictype/property-other-alphabetic: New file.
25333 * modules/unictype/property-not-a-character: New file.
25334 * modules/unictype/property-default-ignorable-code-point: New file.
25335 * modules/unictype/property-other-default-ignorable-code-point: New
25337 * modules/unictype/property-deprecated: New file.
25338 * modules/unictype/property-logical-order-exception: New file.
25339 * modules/unictype/property-variation-selector: New file.
25340 * modules/unictype/property-private-use: New file.
25341 * modules/unictype/property-unassigned-code-value: New file.
25342 * modules/unictype/property-uppercase: New file.
25343 * modules/unictype/property-other-uppercase: New file.
25344 * modules/unictype/property-lowercase: New file.
25345 * modules/unictype/property-other-lowercase: New file.
25346 * modules/unictype/property-titlecase: New file.
25347 * modules/unictype/property-soft-dotted: New file.
25348 * modules/unictype/property-id-start: New file.
25349 * modules/unictype/property-other-id-start: New file.
25350 * modules/unictype/property-id-continue: New file.
25351 * modules/unictype/property-other-id-continue: New file.
25352 * modules/unictype/property-xid-start: New file.
25353 * modules/unictype/property-xid-continue: New file.
25354 * modules/unictype/property-pattern-white-space: New file.
25355 * modules/unictype/property-pattern-syntax: New file.
25356 * modules/unictype/property-join-control: New file.
25357 * modules/unictype/property-grapheme-base: New file.
25358 * modules/unictype/property-grapheme-extend: New file.
25359 * modules/unictype/property-other-grapheme-extend: New file.
25360 * modules/unictype/property-grapheme-link: New file.
25361 * modules/unictype/property-bidi-control: New file.
25362 * modules/unictype/property-bidi-left-to-right: New file.
25363 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
25364 * modules/unictype/property-bidi-arabic-right-to-left: New file.
25365 * modules/unictype/property-bidi-european-digit: New file.
25366 * modules/unictype/property-bidi-eur-num-separator: New file.
25367 * modules/unictype/property-bidi-eur-num-terminator: New file.
25368 * modules/unictype/property-bidi-arabic-digit: New file.
25369 * modules/unictype/property-bidi-common-separator: New file.
25370 * modules/unictype/property-bidi-block-separator: New file.
25371 * modules/unictype/property-bidi-segment-separator: New file.
25372 * modules/unictype/property-bidi-whitespace: New file.
25373 * modules/unictype/property-bidi-non-spacing-mark: New file.
25374 * modules/unictype/property-bidi-boundary-neutral: New file.
25375 * modules/unictype/property-bidi-pdf: New file.
25376 * modules/unictype/property-bidi-embedding-or-override: New file.
25377 * modules/unictype/property-bidi-other-neutral: New file.
25378 * modules/unictype/property-hex-digit: New file.
25379 * modules/unictype/property-ascii-hex-digit: New file.
25380 * modules/unictype/property-ideographic: New file.
25381 * modules/unictype/property-unified-ideograph: New file.
25382 * modules/unictype/property-radical: New file.
25383 * modules/unictype/property-ids-binary-operator: New file.
25384 * modules/unictype/property-ids-trinary-operator: New file.
25385 * modules/unictype/property-zero-width: New file.
25386 * modules/unictype/property-space: New file.
25387 * modules/unictype/property-non-break: New file.
25388 * modules/unictype/property-iso-control: New file.
25389 * modules/unictype/property-format-control: New file.
25390 * modules/unictype/property-dash: New file.
25391 * modules/unictype/property-hyphen: New file.
25392 * modules/unictype/property-punctuation: New file.
25393 * modules/unictype/property-line-separator: New file.
25394 * modules/unictype/property-paragraph-separator: New file.
25395 * modules/unictype/property-quotation-mark: New file.
25396 * modules/unictype/property-sentence-terminal: New file.
25397 * modules/unictype/property-terminal-punctuation: New file.
25398 * modules/unictype/property-currency-symbol: New file.
25399 * modules/unictype/property-math: New file.
25400 * modules/unictype/property-other-math: New file.
25401 * modules/unictype/property-paired-punctuation: New file.
25402 * modules/unictype/property-left-of-pair: New file.
25403 * modules/unictype/property-combining: New file.
25404 * modules/unictype/property-composite: New file.
25405 * modules/unictype/property-decimal-digit: New file.
25406 * modules/unictype/property-numeric: New file.
25407 * modules/unictype/property-diacritic: New file.
25408 * modules/unictype/property-extender: New file.
25409 * modules/unictype/property-ignorable-control: New file.
25410 * modules/unictype/property-test: New file.
25411 * modules/unictype/property-byname: New file.
25412 * modules/unictype/property-all: New file.
25413 * modules/unictype/scripts: New file.
25414 * modules/unictype/scripts-all: New file.
25415 * modules/unictype/block-of: New file.
25416 * modules/unictype/block-test: New file.
25417 * modules/unictype/block-list: New file.
25418 * modules/unictype/block-all: New file.
25419 * modules/unictype/syntax-c-whitespace: New file.
25420 * modules/unictype/syntax-java-whitespace: New file.
25421 * modules/unictype/syntax-c-ident: New file.
25422 * modules/unictype/syntax-java-ident: New file.
25423 * modules/unictype/ctype-alnum: New file.
25424 * modules/unictype/ctype-alpha: New file.
25425 * modules/unictype/ctype-cntrl: New file.
25426 * modules/unictype/ctype-digit: New file.
25427 * modules/unictype/ctype-graph: New file.
25428 * modules/unictype/ctype-lower: New file.
25429 * modules/unictype/ctype-print: New file.
25430 * modules/unictype/ctype-punct: New file.
25431 * modules/unictype/ctype-space: New file.
25432 * modules/unictype/ctype-upper: New file.
25433 * modules/unictype/ctype-xdigit: New file.
25434 * modules/unictype/ctype-blank: New file.
25435 * lib/unictype/bidi_byname.c: New file.
25436 * lib/unictype/bidi_name.c: New file.
25437 * lib/unictype/bidi_of.c: New file.
25438 * lib/unictype/bidi_test.c: New file.
25439 * lib/unictype/bitmap.h: New file.
25440 * lib/unictype/block_test.c: New file.
25441 * lib/unictype/blocks.c: New file.
25442 * lib/unictype/categ_C.c: New file.
25443 * lib/unictype/categ_Cc.c: New file.
25444 * lib/unictype/categ_Cf.c: New file.
25445 * lib/unictype/categ_Cn.c: New file.
25446 * lib/unictype/categ_Co.c: New file.
25447 * lib/unictype/categ_Cs.c: New file.
25448 * lib/unictype/categ_L.c: New file.
25449 * lib/unictype/categ_Ll.c: New file.
25450 * lib/unictype/categ_Lm.c: New file.
25451 * lib/unictype/categ_Lo.c: New file.
25452 * lib/unictype/categ_Lt.c: New file.
25453 * lib/unictype/categ_Lu.c: New file.
25454 * lib/unictype/categ_M.c: New file.
25455 * lib/unictype/categ_Mc.c: New file.
25456 * lib/unictype/categ_Me.c: New file.
25457 * lib/unictype/categ_Mn.c: New file.
25458 * lib/unictype/categ_N.c: New file.
25459 * lib/unictype/categ_Nd.c: New file.
25460 * lib/unictype/categ_Nl.c: New file.
25461 * lib/unictype/categ_No.c: New file.
25462 * lib/unictype/categ_P.c: New file.
25463 * lib/unictype/categ_Pc.c: New file.
25464 * lib/unictype/categ_Pd.c: New file.
25465 * lib/unictype/categ_Pe.c: New file.
25466 * lib/unictype/categ_Pf.c: New file.
25467 * lib/unictype/categ_Pi.c: New file.
25468 * lib/unictype/categ_Po.c: New file.
25469 * lib/unictype/categ_Ps.c: New file.
25470 * lib/unictype/categ_S.c: New file.
25471 * lib/unictype/categ_Sc.c: New file.
25472 * lib/unictype/categ_Sk.c: New file.
25473 * lib/unictype/categ_Sm.c: New file.
25474 * lib/unictype/categ_So.c: New file.
25475 * lib/unictype/categ_Z.c: New file.
25476 * lib/unictype/categ_Zl.c: New file.
25477 * lib/unictype/categ_Zp.c: New file.
25478 * lib/unictype/categ_Zs.c: New file.
25479 * lib/unictype/categ_and.c: New file.
25480 * lib/unictype/categ_and_not.c: New file.
25481 * lib/unictype/categ_byname.c: New file.
25482 * lib/unictype/categ_name.c: New file.
25483 * lib/unictype/categ_none.c: New file.
25484 * lib/unictype/categ_of.c: New file.
25485 * lib/unictype/categ_or.c: New file.
25486 * lib/unictype/categ_test.c: New file.
25487 * lib/unictype/combining.c: New file.
25488 * lib/unictype/ctype_alnum.c: New file.
25489 * lib/unictype/ctype_alpha.c: New file.
25490 * lib/unictype/ctype_blank.c: New file.
25491 * lib/unictype/ctype_cntrl.c: New file.
25492 * lib/unictype/ctype_digit.c: New file.
25493 * lib/unictype/ctype_graph.c: New file.
25494 * lib/unictype/ctype_lower.c: New file.
25495 * lib/unictype/ctype_print.c: New file.
25496 * lib/unictype/ctype_punct.c: New file.
25497 * lib/unictype/ctype_space.c: New file.
25498 * lib/unictype/ctype_upper.c: New file.
25499 * lib/unictype/ctype_xdigit.c: New file.
25500 * lib/unictype/decdigit.c: New file.
25501 * lib/unictype/digit.c: New file.
25502 * lib/unictype/identsyntaxmap.h: New file.
25503 * lib/unictype/mirror.c: New file.
25504 * lib/unictype/numeric.c: New file.
25505 * lib/unictype/pr_alphabetic.c: New file.
25506 * lib/unictype/pr_ascii_hex_digit.c: New file.
25507 * lib/unictype/pr_bidi_arabic_digit.c: New file.
25508 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
25509 * lib/unictype/pr_bidi_block_separator.c: New file.
25510 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
25511 * lib/unictype/pr_bidi_common_separator.c: New file.
25512 * lib/unictype/pr_bidi_control.c: New file.
25513 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
25514 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
25515 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
25516 * lib/unictype/pr_bidi_european_digit.c: New file.
25517 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
25518 * lib/unictype/pr_bidi_left_to_right.c: New file.
25519 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
25520 * lib/unictype/pr_bidi_other_neutral.c: New file.
25521 * lib/unictype/pr_bidi_pdf.c: New file.
25522 * lib/unictype/pr_bidi_segment_separator.c: New file.
25523 * lib/unictype/pr_bidi_whitespace.c: New file.
25524 * lib/unictype/pr_byname.c: New file.
25525 * lib/unictype/pr_byname.gperf: New file.
25526 * lib/unictype/pr_combining.c: New file.
25527 * lib/unictype/pr_composite.c: New file.
25528 * lib/unictype/pr_currency_symbol.c: New file.
25529 * lib/unictype/pr_dash.c: New file.
25530 * lib/unictype/pr_decimal_digit.c: New file.
25531 * lib/unictype/pr_default_ignorable_code_point.c: New file.
25532 * lib/unictype/pr_deprecated.c: New file.
25533 * lib/unictype/pr_diacritic.c: New file.
25534 * lib/unictype/pr_extender.c: New file.
25535 * lib/unictype/pr_format_control.c: New file.
25536 * lib/unictype/pr_grapheme_base.c: New file.
25537 * lib/unictype/pr_grapheme_extend.c: New file.
25538 * lib/unictype/pr_grapheme_link.c: New file.
25539 * lib/unictype/pr_hex_digit.c: New file.
25540 * lib/unictype/pr_hyphen.c: New file.
25541 * lib/unictype/pr_id_continue.c: New file.
25542 * lib/unictype/pr_id_start.c: New file.
25543 * lib/unictype/pr_ideographic.c: New file.
25544 * lib/unictype/pr_ids_binary_operator.c: New file.
25545 * lib/unictype/pr_ids_trinary_operator.c: New file.
25546 * lib/unictype/pr_ignorable_control.c: New file.
25547 * lib/unictype/pr_iso_control.c: New file.
25548 * lib/unictype/pr_join_control.c: New file.
25549 * lib/unictype/pr_left_of_pair.c: New file.
25550 * lib/unictype/pr_line_separator.c: New file.
25551 * lib/unictype/pr_logical_order_exception.c: New file.
25552 * lib/unictype/pr_lowercase.c: New file.
25553 * lib/unictype/pr_math.c: New file.
25554 * lib/unictype/pr_non_break.c: New file.
25555 * lib/unictype/pr_not_a_character.c: New file.
25556 * lib/unictype/pr_numeric.c: New file.
25557 * lib/unictype/pr_other_alphabetic.c: New file.
25558 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
25559 * lib/unictype/pr_other_grapheme_extend.c: New file.
25560 * lib/unictype/pr_other_id_continue.c: New file.
25561 * lib/unictype/pr_other_id_start.c: New file.
25562 * lib/unictype/pr_other_lowercase.c: New file.
25563 * lib/unictype/pr_other_math.c: New file.
25564 * lib/unictype/pr_other_uppercase.c: New file.
25565 * lib/unictype/pr_paired_punctuation.c: New file.
25566 * lib/unictype/pr_paragraph_separator.c: New file.
25567 * lib/unictype/pr_pattern_syntax.c: New file.
25568 * lib/unictype/pr_pattern_white_space.c: New file.
25569 * lib/unictype/pr_private_use.c: New file.
25570 * lib/unictype/pr_punctuation.c: New file.
25571 * lib/unictype/pr_quotation_mark.c: New file.
25572 * lib/unictype/pr_radical.c: New file.
25573 * lib/unictype/pr_sentence_terminal.c: New file.
25574 * lib/unictype/pr_soft_dotted.c: New file.
25575 * lib/unictype/pr_space.c: New file.
25576 * lib/unictype/pr_terminal_punctuation.c: New file.
25577 * lib/unictype/pr_test.c: New file.
25578 * lib/unictype/pr_titlecase.c: New file.
25579 * lib/unictype/pr_unassigned_code_value.c: New file.
25580 * lib/unictype/pr_unified_ideograph.c: New file.
25581 * lib/unictype/pr_uppercase.c: New file.
25582 * lib/unictype/pr_variation_selector.c: New file.
25583 * lib/unictype/pr_white_space.c: New file.
25584 * lib/unictype/pr_xid_continue.c: New file.
25585 * lib/unictype/pr_xid_start.c: New file.
25586 * lib/unictype/pr_zero_width.c: New file.
25587 * lib/unictype/scripts.c: New file.
25588 * lib/unictype/sy_c_ident.c: New file.
25589 * lib/unictype/sy_c_whitespace.c: New file.
25590 * lib/unictype/sy_java_ident.c: New file.
25591 * lib/unictype/sy_java_whitespace.c: New file.
25593 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
25595 * lib/unictype/blocks.h: Likewise.
25596 * lib/unictype/categ_C.h: Likewise.
25597 * lib/unictype/categ_Cc.h: Likewise.
25598 * lib/unictype/categ_Cf.h: Likewise.
25599 * lib/unictype/categ_Cn.h: Likewise.
25600 * lib/unictype/categ_Co.h: Likewise.
25601 * lib/unictype/categ_Cs.h: Likewise.
25602 * lib/unictype/categ_L.h: Likewise.
25603 * lib/unictype/categ_Ll.h: Likewise.
25604 * lib/unictype/categ_Lm.h: Likewise.
25605 * lib/unictype/categ_Lo.h: Likewise.
25606 * lib/unictype/categ_Lt.h: Likewise.
25607 * lib/unictype/categ_Lu.h: Likewise.
25608 * lib/unictype/categ_M.h: Likewise.
25609 * lib/unictype/categ_Mc.h: Likewise.
25610 * lib/unictype/categ_Me.h: Likewise.
25611 * lib/unictype/categ_Mn.h: Likewise.
25612 * lib/unictype/categ_N.h: Likewise.
25613 * lib/unictype/categ_Nd.h: Likewise.
25614 * lib/unictype/categ_Nl.h: Likewise.
25615 * lib/unictype/categ_No.h: Likewise.
25616 * lib/unictype/categ_P.h: Likewise.
25617 * lib/unictype/categ_Pc.h: Likewise.
25618 * lib/unictype/categ_Pd.h: Likewise.
25619 * lib/unictype/categ_Pe.h: Likewise.
25620 * lib/unictype/categ_Pf.h: Likewise.
25621 * lib/unictype/categ_Pi.h: Likewise.
25622 * lib/unictype/categ_Po.h: Likewise.
25623 * lib/unictype/categ_Ps.h: Likewise.
25624 * lib/unictype/categ_S.h: Likewise.
25625 * lib/unictype/categ_Sc.h: Likewise.
25626 * lib/unictype/categ_Sk.h: Likewise.
25627 * lib/unictype/categ_Sm.h: Likewise.
25628 * lib/unictype/categ_So.h: Likewise.
25629 * lib/unictype/categ_Z.h: Likewise.
25630 * lib/unictype/categ_Zl.h: Likewise.
25631 * lib/unictype/categ_Zp.h: Likewise.
25632 * lib/unictype/categ_Zs.h: Likewise.
25633 * lib/unictype/categ_of.h: Likewise.
25634 * lib/unictype/combining.h: Likewise.
25635 * lib/unictype/ctype_alnum.h: Likewise.
25636 * lib/unictype/ctype_alpha.h: Likewise.
25637 * lib/unictype/ctype_blank.h: Likewise.
25638 * lib/unictype/ctype_cntrl.h: Likewise.
25639 * lib/unictype/ctype_digit.h: Likewise.
25640 * lib/unictype/ctype_graph.h: Likewise.
25641 * lib/unictype/ctype_lower.h: Likewise.
25642 * lib/unictype/ctype_print.h: Likewise.
25643 * lib/unictype/ctype_punct.h: Likewise.
25644 * lib/unictype/ctype_space.h: Likewise.
25645 * lib/unictype/ctype_upper.h: Likewise.
25646 * lib/unictype/ctype_xdigit.h: Likewise.
25647 * lib/unictype/decdigit.h: Likewise.
25648 * lib/unictype/digit.h: Likewise.
25649 * lib/unictype/mirror.h: Likewise.
25650 * lib/unictype/numeric.h: Likewise.
25651 * lib/unictype/pr_alphabetic.h: Likewise.
25652 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25653 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25654 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25655 * lib/unictype/pr_bidi_block_separator.h: Likewise.
25656 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25657 * lib/unictype/pr_bidi_common_separator.h: Likewise.
25658 * lib/unictype/pr_bidi_control.h: Likewise.
25659 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25660 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25661 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25662 * lib/unictype/pr_bidi_european_digit.h: Likewise.
25663 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25664 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25665 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25666 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25667 * lib/unictype/pr_bidi_pdf.h: Likewise.
25668 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25669 * lib/unictype/pr_bidi_whitespace.h: Likewise.
25670 * lib/unictype/pr_combining.h: Likewise.
25671 * lib/unictype/pr_composite.h: Likewise.
25672 * lib/unictype/pr_currency_symbol.h: Likewise.
25673 * lib/unictype/pr_dash.h: Likewise.
25674 * lib/unictype/pr_decimal_digit.h: Likewise.
25675 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25676 * lib/unictype/pr_deprecated.h: Likewise.
25677 * lib/unictype/pr_diacritic.h: Likewise.
25678 * lib/unictype/pr_extender.h: Likewise.
25679 * lib/unictype/pr_format_control.h: Likewise.
25680 * lib/unictype/pr_grapheme_base.h: Likewise.
25681 * lib/unictype/pr_grapheme_extend.h: Likewise.
25682 * lib/unictype/pr_grapheme_link.h: Likewise.
25683 * lib/unictype/pr_hex_digit.h: Likewise.
25684 * lib/unictype/pr_hyphen.h: Likewise.
25685 * lib/unictype/pr_id_continue.h: Likewise.
25686 * lib/unictype/pr_id_start.h: Likewise.
25687 * lib/unictype/pr_ideographic.h: Likewise.
25688 * lib/unictype/pr_ids_binary_operator.h: Likewise.
25689 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25690 * lib/unictype/pr_ignorable_control.h: Likewise.
25691 * lib/unictype/pr_iso_control.h: Likewise.
25692 * lib/unictype/pr_join_control.h: Likewise.
25693 * lib/unictype/pr_left_of_pair.h: Likewise.
25694 * lib/unictype/pr_line_separator.h: Likewise.
25695 * lib/unictype/pr_logical_order_exception.h: Likewise.
25696 * lib/unictype/pr_lowercase.h: Likewise.
25697 * lib/unictype/pr_math.h: Likewise.
25698 * lib/unictype/pr_non_break.h: Likewise.
25699 * lib/unictype/pr_not_a_character.h: Likewise.
25700 * lib/unictype/pr_numeric.h: Likewise.
25701 * lib/unictype/pr_other_alphabetic.h: Likewise.
25702 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25703 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25704 * lib/unictype/pr_other_id_continue.h: Likewise.
25705 * lib/unictype/pr_other_id_start.h: Likewise.
25706 * lib/unictype/pr_other_lowercase.h: Likewise.
25707 * lib/unictype/pr_other_math.h: Likewise.
25708 * lib/unictype/pr_other_uppercase.h: Likewise.
25709 * lib/unictype/pr_paired_punctuation.h: Likewise.
25710 * lib/unictype/pr_paragraph_separator.h: Likewise.
25711 * lib/unictype/pr_pattern_syntax.h: Likewise.
25712 * lib/unictype/pr_pattern_white_space.h: Likewise.
25713 * lib/unictype/pr_private_use.h: Likewise.
25714 * lib/unictype/pr_punctuation.h: Likewise.
25715 * lib/unictype/pr_quotation_mark.h: Likewise.
25716 * lib/unictype/pr_radical.h: Likewise.
25717 * lib/unictype/pr_sentence_terminal.h: Likewise.
25718 * lib/unictype/pr_soft_dotted.h: Likewise.
25719 * lib/unictype/pr_space.h: Likewise.
25720 * lib/unictype/pr_terminal_punctuation.h: Likewise.
25721 * lib/unictype/pr_titlecase.h: Likewise.
25722 * lib/unictype/pr_unassigned_code_value.h: Likewise.
25723 * lib/unictype/pr_unified_ideograph.h: Likewise.
25724 * lib/unictype/pr_uppercase.h: Likewise.
25725 * lib/unictype/pr_variation_selector.h: Likewise.
25726 * lib/unictype/pr_white_space.h: Likewise.
25727 * lib/unictype/pr_xid_continue.h: Likewise.
25728 * lib/unictype/pr_xid_start.h: Likewise.
25729 * lib/unictype/pr_zero_width.h: Likewise.
25730 * lib/unictype/scripts.h: Likewise.
25731 * lib/unictype/scripts_byname.gperf: Likewise.
25732 * lib/unictype/sy_c_ident.h: Likewise.
25733 * lib/unictype/sy_c_whitespace.h: Likewise.
25734 * lib/unictype/sy_java_ident.h: Likewise.
25735 * lib/unictype/sy_java_whitespace.h: Likewise.
25737 * lib/unictype/Makefile: New file.
25738 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
25740 * lib/unictype/3level.h: New file, copied from glibc.
25741 * lib/unictype/3levelbit.h: New file.
25743 2007-11-11 Bruno Haible <bruno@clisp.org>
25745 * modules/gperf: New file.
25746 * modules/iconv_open (Depends-on): Add it.
25747 (Makefile.am): Remove the GPERF definition.
25749 2007-11-11 Bruno Haible <bruno@clisp.org>
25751 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
25752 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
25754 2007-11-11 Bruno Haible <bruno@clisp.org>
25756 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
25757 (usage): Remove function.
25759 2007-11-11 Bruno Haible <bruno@clisp.org>
25761 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
25762 gl_FUNC_CEILF_LIBS.
25763 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
25765 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
25766 gl_FUNC_CEILL_LIBS.
25767 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
25768 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
25769 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
25771 2007-11-11 Bruno Haible <bruno@clisp.org>
25773 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
25774 roundf were declared but do not exist on functions.
25775 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
25776 roundl were declared but do not exist on functions.
25777 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
25778 HAVE_FLOORL_AND_CEILL, respectively.
25779 Needed for Sun C on Solaris 10.
25781 2007-11-11 Bruno Haible <bruno@clisp.org>
25783 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
25784 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
25785 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
25786 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
25787 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
25788 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
25789 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
25791 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
25792 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
25793 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
25794 of HAVE_DECL_ROUND*.
25795 * modules/math (Makefile.am): Update.
25797 2007-11-10 Bruno Haible <bruno@clisp.org>
25799 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
25800 ptrdiff_t as m4/intl.m4.
25802 2007-11-10 Jim Meyering <meyering@redhat.com>
25804 Avoid link failure for the argmatch test.
25805 * tests/test-argmatch.c (usage): Define function to avoid a link
25806 failure: argmatch_die requires a usage function.
25808 2007-11-09 Bruno Haible <bruno@clisp.org>
25810 * doc/functions/snprintf.texi: Mention BeOS deficiency.
25811 * doc/functions/vsnprintf.texi: Likewise.
25812 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
25813 with a size argument < 2.
25815 2007-11-09 Bruno Haible <bruno@clisp.org>
25817 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
25818 buffer. Fixes an inefficiency introduced on 2007-11-03.
25820 2007-11-09 Bruno Haible <bruno@clisp.org>
25822 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
25823 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
25825 2007-11-08 Jim Meyering <meyering@redhat.com>
25827 Change cache variable name prefix "jm_" to "gl_" everywhere.
25828 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
25829 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
25830 * m4/uptime.m4: s/gl_/jm_/
25832 2007-11-07 Bruno Haible <bruno@clisp.org>
25834 Update to GNU gettext 0.17.
25835 * m4/intl.m4: Update to GNU gettext 0.17.
25836 * m4/po.m4: Likewise.
25837 * modules/gettext (Files): Remove m4/ulonglong.m4.
25838 (configure.ac): Require gettext infrastructure from version 0.17.
25840 2007-11-06 Bruno Haible <bruno@clisp.org>
25842 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
25843 symbolic values are not defined in a public header.
25844 * lib/freadable.c (freadable) [QNX]: Likewise.
25845 * lib/freadahead.c (freadahead) [QNX]: Likewise.
25846 * lib/freading.c (freading) [QNX]: Likewise.
25847 * lib/fseterr.c (fseterr) [QNX]: Likewise.
25848 * lib/fwritable.c (fwritable) [QNX]: Likewise.
25849 * lib/fwriting.c (fwriting) [QNX]: Likewise.
25850 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
25851 Reported by Alain Magloire.
25853 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
25855 2007-11-05 Bruno Haible <bruno@clisp.org>
25857 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
25858 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
25859 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
25860 Reported by Eric Blake.
25862 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25863 Bruno Haible <bruno@clisp.org>
25865 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
25866 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
25867 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
25868 (malloc): Undefine also before including <stdlib.h>.
25869 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
25870 Needed on OSF/1 4.0.
25872 2007-11-05 Jim Meyering <meyering@redhat.com>
25874 git-version-gen: sync from coreutils.
25875 * build-aux/git-version-gen: Add comments.
25876 Change the first '-' to '.' in the snapshot version string,
25877 e.g., 6.9-377-08144 -> 6.9.377-08144
25878 Remove first parameter.
25879 Don't declare a version "-dirty" merely because a time
25882 2007-11-04 Bruno Haible <bruno@clisp.org>
25884 * lib/lock.h: Protect all macro definitions containing an 'if'
25885 statement through a "do { ... } while (0)".
25886 * lib/tls.h: Likewise.
25888 2007-11-04 Bruno Haible <bruno@clisp.org>
25890 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
25892 2007-11-04 Bruno Haible <bruno@clisp.org>
25894 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
25895 * modules/fprintf-posix (Depends-on): Add nocrash.
25896 * modules/snprintf-posix (Depends-on): Likewise.
25897 * modules/sprintf-posix (Depends-on): Likewise.
25898 * modules/vasnprintf-posix (Depends-on): Likewise.
25899 * modules/vasprintf-posix (Depends-on): Likewise.
25900 * modules/vfprintf-posix (Depends-on): Likewise.
25901 * modules/vsnprintf-posix (Depends-on): Likewise.
25902 * modules/vsprintf-posix (Depends-on): Likewise.
25903 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25904 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25905 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25906 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25907 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25908 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25909 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25911 2007-11-04 Bruno Haible <bruno@clisp.org>
25913 * modules/nocrash: New file.
25914 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
25915 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
25917 2007-11-04 Bruno Haible <bruno@clisp.org>
25919 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
25920 precision handling.
25921 * tests/test-vasprintf-posix.c (test_function): Likewise.
25922 * tests/test-snprintf-posix.h (test_function): Likewise.
25923 * tests/test-sprintf-posix.h (test_function): Likewise.
25925 Fix *printf behaviour for large precisions on mingw and BeOS.
25926 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
25927 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
25928 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
25929 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25930 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25931 gl_PRINTF_PRECISION and test its result. Invoke
25932 gl_PREREQ_VASNPRINTF_PRECISION.
25933 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25934 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25935 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25936 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25937 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25938 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25939 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25940 * doc/functions/fprintf.texi: Update.
25941 * doc/functions/printf.texi: Update.
25942 * doc/functions/snprintf.texi: Update.
25943 * doc/functions/sprintf.texi: Update.
25944 * doc/functions/vfprintf.texi: Update.
25945 * doc/functions/vprintf.texi: Update.
25946 * doc/functions/vsnprintf.texi: Update.
25947 * doc/functions/vsprintf.texi: Update.
25949 2007-11-04 Bruno Haible <bruno@clisp.org>
25951 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
25953 2007-11-04 Bruno Haible <bruno@clisp.org>
25955 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
25956 Reported by Sylvain Beucler <beuc@gnu.org>.
25958 2007-11-03 Bruno Haible <bruno@clisp.org>
25960 * tests/test-fprintf-posix2.sh: New file.
25961 * tests/test-fprintf-posix2.c: New file.
25962 * modules/fprintf-posix-tests (Files): Add them.
25963 (TESTS): Add test-fprintf-posix2.sh.
25964 (configure.ac): Check for getrlimit and setrlimit.
25965 (check_PROGRAMS): Add test-fprintf-posix2.
25967 * tests/test-printf-posix2.sh: New file.
25968 * tests/test-printf-posix2.c: New file.
25969 * modules/printf-posix-tests (Files): Add them.
25970 (TESTS): Add test-printf-posix2.sh.
25971 (configure.ac): Check for getrlimit and setrlimit.
25972 (check_PROGRAMS): Add test-printf-posix2.
25974 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
25975 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
25976 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
25977 (decode_double): New function, copied from decode_long_double.
25978 (scale10_round_decimal_decoded): New function, extracted from
25979 scale10_round_decimal_long_double.
25980 (scale10_round_decimal_long_double): Use it.
25981 (scale10_round_decimal_double): New function.
25982 (floorlog10): New function.
25983 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
25984 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
25985 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25986 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25987 gl_PRINTF_ENOMEM and test its result. Invoke
25988 gl_PREREQ_VASNPRINTF_ENOMEM.
25989 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25990 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25991 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25992 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25993 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25994 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25995 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25996 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
25997 * modules/snprintf-posix (Depends-on): Likewise.
25998 * modules/sprintf-posix (Depends-on): Likewise.
25999 * modules/vasnprintf-posix (Depends-on): Likewise.
26000 * modules/vasprintf-posix (Depends-on): Likewise.
26001 * modules/vfprintf-posix (Depends-on): Likewise.
26002 * modules/vsnprintf-posix (Depends-on): Likewise.
26003 * modules/vsprintf-posix (Depends-on): Likewise.
26004 * doc/functions/fprintf.texi: Update.
26005 * doc/functions/printf.texi: Update.
26006 * doc/functions/snprintf.texi: Update.
26007 * doc/functions/sprintf.texi: Update.
26008 * doc/functions/vfprintf.texi: Update.
26009 * doc/functions/vprintf.texi: Update.
26010 * doc/functions/vsnprintf.texi: Update.
26011 * doc/functions/vsprintf.texi: Update.
26013 2007-11-03 Bruno Haible <bruno@clisp.org>
26015 * modules/frexp-nolibm-tests: New file.
26017 * modules/frexp-nolibm: New file.
26018 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
26020 2007-11-03 Bruno Haible <bruno@clisp.org>
26022 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
26023 value is C99 compliant.
26024 Needed for OSF/1 5.1.
26026 2007-11-03 Bruno Haible <bruno@clisp.org>
26028 Fix out-of-memory handling of vasnprintf.
26029 * lib/printf-parse.c: Include <errno.h>.
26030 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
26031 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
26034 2007-11-02 Eric Blake <ebb9@byu.net>
26036 Fix tests on cygwin.
26037 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
26039 2007-11-01 Bruno Haible <bruno@clisp.org>
26041 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
26043 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
26044 needed for POSIX compatibility.
26046 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
26048 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
26049 for compatibility with GNU.
26051 2007-11-01 Bruno Haible <bruno@clisp.org>
26053 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
26054 (putenv): Renamed from rpl_putenv. Change argument type from
26055 'const char *' to 'char *'.
26056 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
26057 of defining putenv in config.h, just set REPLACE_PUTENV.
26058 * modules/putenv (Depends-on): Add stdlib.
26059 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26060 (Include): Use <stdlib.h>.
26061 * lib/stdlib.in.h (putenv): New declaration.
26062 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
26064 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
26066 Needed for MacOS X 10.5.0.
26067 Reported by Peter O'Gorman <peter@pogma.com>.
26069 2007-11-01 Jim Meyering <meyering@redhat.com>
26071 Treat an empty date string exactly like "0".
26072 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
26073 if the remaining date string (to be parsed) is empty, use "0".
26074 Reported by Mischa Molhoek and discussed in this thread:
26075 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
26077 2007-10-31 Bruno Haible <bruno@clisp.org>
26079 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
26080 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
26081 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
26082 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
26083 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
26084 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
26086 2007-10-31 Bruno Haible <bruno@clisp.org>
26088 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
26089 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
26090 (AC_TYPE_LONG_LONG_INT): Use it.
26091 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
26093 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
26095 * modules/stdint (Files): Remove m4/ulonglong.m4.
26096 * modules/strtoull (Files): Use m4/longlong.m4 instead of
26098 * modules/strtoumax (Files): Likewise.
26100 2007-10-30 Bruno Haible <bruno@clisp.org>
26102 * modules/xvasprintf-posix: New file.
26103 Suggested by Eric Blake.
26105 2007-10-30 Bruno Haible <bruno@clisp.org>
26107 * modules/xprintf-posix-tests: New file.
26108 * tests/test-xprintf-posix.sh: New file.
26109 * tests/test-xprintf-posix.c: New file.
26110 * tests/test-xfprintf-posix.c: New file.
26112 * modules/xprintf-posix: New file.
26114 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26116 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
26117 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
26118 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
26120 2007-10-29 Bruno Haible <bruno@clisp.org>
26122 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
26123 contain the special marker '_cv_'.
26124 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26125 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26126 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26127 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26128 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26129 Reported by Ralf Wildenhues.
26131 2007-10-29 Bruno Haible <bruno@clisp.org>
26133 * gnulib-tool (func_import): When --lgpl is not specified, set
26134 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
26136 Reported by Simon Josefsson.
26138 2007-10-28 Bruno Haible <bruno@clisp.org>
26140 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
26141 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
26142 HAVE_DECL_ISFINITE.
26143 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26144 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
26145 HAVE_DECL_ISFINITE.
26147 2007-10-28 Bruno Haible <bruno@clisp.org>
26149 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
26150 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
26152 2007-10-28 Bruno Haible <bruno@clisp.org>
26154 Fix link errors with Sun C 5.0 on Solaris 10.
26155 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
26156 function is declared but not present in the compiler's libm.
26157 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26158 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
26159 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
26160 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
26161 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
26162 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
26163 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
26164 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26165 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
26166 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
26167 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
26170 2007-10-28 Bruno Haible <bruno@clisp.org>
26172 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
26173 gl_FUNC_FLOORL. Cache the result.
26174 (gl_FUNC_FLOORL): Use it.
26175 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
26176 gl_FUNC_CEILL. Cache the result.
26177 (gl_FUNC_CEILL): Use it.
26179 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
26180 gl_FUNC_FLOOR. Cache the result.
26181 (gl_FUNC_FLOOR): Use it.
26182 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
26183 gl_FUNC_CEIL. Cache the result.
26184 (gl_FUNC_CEIL): Use it.
26186 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
26187 gl_FUNC_FLOORF. Cache the result.
26188 (gl_FUNC_FLOORF): Use it.
26189 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
26190 gl_FUNC_CEILF. Cache the result.
26191 (gl_FUNC_CEILF): Use it.
26193 2007-10-28 Bruno Haible <bruno@clisp.org>
26195 * gnulib-tool: Allow specifying the LGPL version number through
26196 --lgpl=2 or --lgpl=3.
26197 (func_usage): Document --lgpl with argument.
26198 Handle --lgpl=... arguments.
26199 (func_import): Recognize also gl_LGPL calls with an argument. When
26200 --lgpl=2 is used and the module's license is just LGPL, report an
26201 error. Set sed_transform_lib_file according to the lgpl variable. In
26202 the generated files, use --lgpl or gl_LGPL invocations with argument,
26204 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
26206 * doc/gnulib-tool.texi (Modified imports): Update explanation of
26209 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26210 Bruno Haible <bruno@clisp.org>
26212 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
26213 (u16_uctomb_aux): Likewise.
26214 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
26216 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
26218 2007-10-28 Bruno Haible <bruno@clisp.org>
26220 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
26221 Invoke AM_GETTEXT_OPTION if it exists.
26222 * modules/vasprintf: Likewise.
26223 * modules/verror: Likewise.
26224 * modules/xprintf: Likewise.
26225 * modules/xvasprintf: Likewise.
26227 2007-10-27 Ben Pfaff <blp@gnu.org>
26229 * lib/math.in.h: Define isfinite macro and prototypes for
26230 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
26232 * m4/math_h.m4: New substitutions for isfinite module.
26233 * lib/isfinite.c: New file.
26234 * m4/isfinite.m4: New file.
26235 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
26236 * modules/isfinite: New file.
26237 * modules/isfinite-tests: New file.
26238 * tests/tests-isfinite.c: New file.
26239 * doc/functions/isfinite.texi: Mention isfinite module.
26240 * MODULES.html.sh: Mention new module.
26242 2007-10-27 Ben Pfaff <blp@gnu.org>
26244 Ralf Wildenhues reported that Tru64 4.0D declares the round
26245 functions but does not have definitions.
26246 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
26247 cannot be found in any library, set the output variable to
26248 "missing" instead of "".
26249 * m4/round.m4: Also use our substitute if we cannot find round in
26250 any library, even if it is declared.
26251 * m4/roundf.m4: Likewise for roundf.
26252 * m4/roundl.m4: Likewise for roundl.
26253 * lib/math.in.h: Undefine roundf, round, roundl before defining
26254 their replacements, to allow for hypothetical systems where these
26255 may be defined as macros but not available in libraries.
26257 2007-10-27 Bruno Haible <bruno@clisp.org>
26259 * doc/gnulib.texi: Invoke @firstparagraphindent.
26260 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
26262 (Source changes): New section.
26264 2007-10-26 Bruno Haible <bruno@clisp.org>
26266 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
26267 borrowed from autoconf.
26269 2007-10-26 Bruno Haible <bruno@clisp.org>
26271 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
26272 strerror returned the empty string. Needed on HP-UX 11.00.
26274 2007-10-24 Micah Cowan <micah@cowan.name>
26276 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
26277 * build-aux/bootstrap: Remove support for now-unnecessary option,
26278 --cvs-user, and envvars CVS_USER, CVS_RSH.
26280 2007-10-24 Jim Meyering <meyering@redhat.com>
26282 Avoid diagnostics from sha1sum when there is no cached checksum.
26283 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
26284 if the po.s1 file hasn't been created yet.
26286 * build-aux/bootstrap: Sync from coreutils:
26287 2007-10-24 Jim Meyering <meyering@redhat.com>
26288 Get gnulib from the git repository, not from an obsolete cvs one.
26289 * build-aux/bootstrap: Suggestion from Micah Cowan.
26290 2007-10-04 Jim Meyering <jim@meyering.net>
26291 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
26292 (update_po_files): Work also when there are no .po files in po/.
26294 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
26296 * README: Append ".git" to git and cg examples.
26297 Problem reported by Benoit Sigoure.
26299 2007-10-23 Micah Cowan <micah@cowan.name>
26301 * users.txt: Add wget.
26303 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26305 Fix linking of some unistdio tests on FreeBSD.
26306 * modules/unistdio/u16-vsnprintf-tests
26307 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
26308 * modules/unistdio/u16-vsprintf-tests
26309 (test_u16_vsnprintf1_LDADD): Likewise.
26310 * modules/unistdio/u32-vsnprintf-tests
26311 (test_u32_vsnprintf1_LDADD): Likewise.
26312 * modules/unistdio/u32-vsprintf-tests
26313 (test_u32_vsprintf1_LDADD): Likewise.
26314 * modules/unistdio/u8-vsnprintf-tests
26315 (test_u8_vsnprintf1_LDADD): Likewise.
26316 * modules/unistdio/u8-vsprintf-tests
26317 (test_u8_vsprintf1_LDADD): Likewise.
26318 * modules/unistdio/ulc-vsnprintf-tests
26319 (test_ulc_vsnprintf1_LDADD): Likewise.
26320 * modules/unistdio/ulc-vsprintf-tests
26321 (test_ulc_vsprintf1_LDADD): Likewise.
26323 Fix linking of some uniconv tests on FreeBSD.
26324 * modules/uniconv/u16-conv-from-enc-tests
26325 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
26326 * modules/uniconv/u16-conv-to-enc-tests
26327 (test_u16_conv_to_enc_LDADD): Likewise.
26328 * modules/uniconv/u16-strconv-from-enc-tests
26329 (test_u16_strconv_from_enc_LDADD): Likewise.
26330 * modules/uniconv/u16-strconv-to-enc-tests
26331 (test_u16_strconv_to_enc_LDADD): Likewise.
26332 * modules/uniconv/u32-conv-from-enc-tests
26333 (test_u32_conv_from_enc_LDADD): Likewise.
26334 * modules/uniconv/u32-conv-to-enc-tests
26335 (test_u32_conv_to_enc_LDADD): Likewise.
26336 * modules/uniconv/u32-strconv-from-enc-tests
26337 (test_u32_strconv_from_enc_LDADD): Likewise.
26338 * modules/uniconv/u32-strconv-to-enc-tests
26339 (test_u32_strconv_to_enc_LDADD): Likewise.
26340 * modules/uniconv/u8-conv-from-enc-tests
26341 (test_u8_conv_from_enc_LDADD): Likewise.
26342 * modules/uniconv/u8-conv-to-enc-tests
26343 (test_u8_conv_to_enc_LDADD): Likewise.
26344 * modules/uniconv/u8-strconv-from-enc-tests
26345 (test_u8_strconv_from_enc_LDADD): Likewise.
26346 * modules/uniconv/u8-strconv-to-enc-tests
26347 (test_u8_strconv_to_enc_LDADD): Likewise.
26349 2007-10-22 Bruno Haible <bruno@clisp.org>
26351 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
26354 2007-10-22 Eric Blake <ebb9@byu.net>
26356 Tweak x*printf documentation.
26357 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
26358 variable name and comments.
26359 Suggested by Bruno Haible.
26361 2007-10-22 Bruno Haible <bruno@clisp.org>
26363 * lib/acl.c (copy_acl): Fix file name in comment.
26365 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
26367 Fix Tru64 problem with stdbool.h.
26368 * lib/stdbool.in.h (false, true):
26369 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
26370 Don't declare as an enum in this situation; it runs afoul of Tru64.
26371 Problem reported by Steven M. Schweda in
26372 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
26374 2007-10-22 Eric Blake <ebb9@byu.net>
26376 Also wrap vf?printf.
26377 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
26378 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
26379 (xvprintf, xvfprintf): New functions.
26381 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26383 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
26384 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
26386 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
26387 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
26389 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
26391 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
26394 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26397 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
26398 Undef `sys' after including sys/table.h, for Tru64 4.0D.
26400 * tests/test-i-ring.c: Work for C89.
26402 2007-10-22 Bruno Haible <bruno@clisp.org>
26404 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
26405 -1u, in preprocessor expression, so that we don't test for the bug
26406 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
26407 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
26409 2007-10-22 Eric Blake <ebb9@byu.net>
26411 * tests/test-yesno.sh: Silence stderr during test.
26413 2007-10-22 Simon Josefsson <simon@josefsson.org>
26415 * modules/crypto/gc-camellia: New file.
26417 * m4/gc-camellia.m4: New file.
26419 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
26421 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
26423 2007-10-22 Simon Josefsson <simon@josefsson.org>
26425 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
26426 --help to stdout. Reported by sms@antinode.org (Steven
26429 2007-10-22 Simon Josefsson <simon@josefsson.org>
26431 * users.txt: Fix link to libksba.
26433 2007-10-21 Ben Pfaff <blp@gnu.org>
26435 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
26436 round.c roundf implementation that depends on floorf and ceilf to
26437 be tested unconditionally.
26439 2007-10-21 Ben Pfaff <blp@gnu.org>
26441 * m4/check-libm-func.m4: Removed.
26442 * m4/check-math-lib.m4: New file.
26443 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
26444 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
26445 definition and lack of AC_LIBOBJ([roundf]).
26446 * m4/roundl.m4: Ditto, and similarly for roundl.
26447 * modules/round: Reference new m4 file.
26448 * modules/roundf: Ditto.
26449 * modules/roundl: Ditto.
26450 * tests/test-round2.c (main): Use ROUND instead of round.
26451 Bug report from Bruno Haible.
26453 2007-10-21 Bruno Haible <bruno@clisp.org>
26455 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
26458 2007-10-21 Bruno Haible <bruno@clisp.org>
26460 * tests/test-wcwidth.c (main): Allow negative result for some control
26463 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
26464 Needed on OSF/1 5.1.
26466 2007-10-21 Bruno Haible <bruno@clisp.org>
26468 * tests/test-floorf1.c: Include isnanf.h.
26469 (main): Use isnanf() instead of isnan().
26470 * tests/test-ceilf1.c: Include isnanf.h.
26471 (main): Use isnanf() instead of isnan().
26472 * tests/test-truncf1.c: Include isnanf.h.
26473 (main): Use isnanf() instead of isnan().
26474 * tests/test-roundf1.c: Include isnanf.h.
26475 (main): Use isnanf() instead of isnan().
26477 2007-10-21 Eric Blake <ebb9@byu.net>
26479 * users.txt: Update URL for m4.
26481 2007-10-21 Bruno Haible <bruno@clisp.org>
26483 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
26485 2007-10-21 Bruno Haible <bruno@clisp.org>
26487 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
26488 Git's management files if the CVS files are not present.
26490 2007-10-20 Bruno Haible <bruno@clisp.org>
26492 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
26495 2007-10-20 Ben Pfaff <blp@gnu.org>
26497 * lib/math.in.h: Declare round, roundf, roundl if we are providing
26499 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
26500 * lib/round.c: New file.
26501 * lib/roundf.c: New file.
26502 * lib/roundl.c: New file.
26503 * m4/round.m4: New file.
26504 * m4/roundf.m4: New file.
26505 * m4/roundl.m4: New file.
26506 * m4/check-libm-func-m4: New file.
26507 * modules/math: Replace round, roundf, roundl related @VARS@ in
26509 * modules/round: New file.
26510 * modules/round-tests: New file.
26511 * modules/roundf: New file.
26512 * modules/roundf-tests: New file.
26513 * modules/roundl: New file.
26514 * modules/roundl-tests: New file.
26515 * tests/test-round1.c: New file.
26516 * tests/test-round2.c: New file.
26517 * tests/test-roundf1.c: New file.
26518 * tests/test-roundf2.c: New file.
26519 * tests/test-roundl.c: New file.
26520 * doc/functions/round.texi: Mention round module.
26521 * doc/functions/roundf.texi: Mention roundf module.
26522 * doc/functions/roundl.texi: Mention roundl module.
26523 * MODULES.html.sh: Mention new modules.
26524 Thanks to Bruno Haible for suggestions.
26526 2007-10-20 Jim Meyering <meyering@redhat.com>
26528 * lib/xprintf.c: Include <config.h> unconditionally.
26530 Change xprintf's license to GPL.
26531 * modules/xprintf (License): s/LGPL/GPL/, since this module
26532 depends on modules (exit and exitfail) which are GPL.
26533 Suggestion from Bruno Haible.
26536 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
26537 Use a clearer diagnostic.
26538 Patch from Bruno Haible.
26540 2007-10-20 Bruno Haible <bruno@clisp.org>
26542 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
26543 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
26544 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26546 2007-10-20 Bruno Haible <bruno@clisp.org>
26548 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
26549 precision in the comparison result > x - 1 or similar.
26550 * tests/test-ceilf2.c (correct_result_p): Likewise.
26551 * tests/test-truncf2.c (correct_result_p): Likewise.
26552 * tests/test-trunc2.c (correct_result_p): Likewise.
26553 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26555 2007-10-20 Bruno Haible <bruno@clisp.org>
26557 * modules/ceil: New file.
26558 * m4/ceil.m4: New file.
26559 * doc/functions/ceil.texi: Mention the 'ceil' module.
26561 2007-10-20 Bruno Haible <bruno@clisp.org>
26563 * modules/floor: New file.
26564 * m4/floor.m4: New file.
26565 * doc/functions/floor.texi: Mention the 'floor' module.
26567 2007-10-20 Bruno Haible <bruno@clisp.org>
26569 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
26571 * modules/floorf-tests (Depends-on): Likewise.
26572 * modules/truncf-tests (Depends-on): Likewise.
26573 * modules/trunc-tests (Depends-on): Likewise.
26574 Reported by Ben Pfaff.
26576 2007-10-19 Jim Meyering <meyering@redhat.com>
26578 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
26579 Don't bother testing specific errno values. Just test ferror.
26581 New module: xprintf
26582 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
26584 2007-10-19 Bruno Haible <bruno@clisp.org>
26586 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
26588 * modules/javaexec (Makefile.am): Likewise.
26589 * modules/relocatable-prog (Makefile.am): Likewise.
26590 Suggested by Jim Meyering.
26592 2007-10-18 Bruno Haible <bruno@clisp.org>
26594 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
26595 Reported by Jim Meyering.
26597 2007-10-18 Eric Blake <ebb9@byu.net>
26599 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
26601 2007-10-18 Bruno Haible <bruno@clisp.org>
26603 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
26604 the format string into writable memory. Needed in Fortify conditions.
26606 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
26607 Bruno Haible <bruno@clisp.org>
26609 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
26610 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
26611 * modules/trim (Depends-on): Add mbchar.
26612 (configure.ac): Add gl_FUNC_MBRTOWC.
26613 (Makefile.am): Augment lib_SOURCES.
26615 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
26617 Modify glob.c to use fstatat and dirfd, to simplify it.
26618 Suggested by Eric Blake.
26619 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
26620 Don't include <stdbool.h>; not used.
26621 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
26622 (link_exists_p): Simplify implementation, since we can now assume
26624 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
26626 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26628 * gnulib-tool (func_get_dependencies): Fix sed script to
26631 2007-10-17 Bruno Haible <bruno@clisp.org>
26633 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
26634 allow locale names without encoding suffix.
26635 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26636 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26638 2007-10-16 Bruno Haible <bruno@clisp.org>
26640 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
26641 * lib/getgroups.c (getgroups): Likewise.
26642 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
26644 2007-10-16 Bruno Haible <bruno@clisp.org>
26646 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
26647 * modules/malloc-posix (License): Likewise.
26648 * modules/realloc-posix (License): Likewise.
26649 * modules/calloc-posix (License): Likewise.
26650 * modules/intprops (License): Change from GPL to LGPL, with
26651 Paul Eggert's approval.
26653 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
26655 Merge glibc changes into lib/glob.c.
26657 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
26658 2007-10-15 04:59:03 UTC. Here are the changes:
26660 2007-10-14 Ulrich Drepper <drepper@redhat.com>
26662 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
26664 * lib/glob.c: Add some branch prediction throughout.
26666 2007-10-07 Ulrich Drepper <drepper@redhat.com>
26669 * lib/glob.c (glob): Recognize patterns starting \/.
26671 2007-02-14 Jakub Jelinek <jakub@redhat.com>
26674 * lib/glob.c (attribute_hidden): Define if not defined.
26675 (glob): Unescape dirname, filename or username when needed and not
26676 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
26677 is NULL. Handle unescaped [ in pattern without closing ].
26678 Don't pass GLOB_CHECK down to recursive glob for directories.
26679 (__glob_pattern_type): New function.
26680 (__glob_pattern_p): Implement using __glob_pattern_type.
26681 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
26682 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
26683 Remove unreachable code.
26685 2006-09-30 Ulrich Drepper <drepper@redhat.com>
26687 * lib/glob.c (glob_in_dir): Add some comments and asserts to
26688 explain why there are no leaks.
26690 2006-09-25 Jakub Jelinek <jakub@redhat.com>
26693 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
26694 time, rather allocate increasingly bigger arrays of pointers, if
26695 possible with alloca, if too large with malloc.
26697 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
26699 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
26700 Problem reported by H.Merijn Brand in
26701 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
26702 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
26703 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26705 2007-10-15 Bruno Haible <bruno@clisp.org>
26707 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
26708 with explicit rpl_ prefix.
26709 * lib/fopen.c (fopen): Likewise.
26710 * lib/freopen.c (freopen): Likewise.
26711 * lib/iconv.c (iconv): Likewise.
26712 * lib/iconv_close.c (iconv_close): Likewise.
26714 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26716 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
26718 2007-10-15 Bruno Haible <bruno@clisp.org>
26720 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
26721 <stddef.h> instead of <stdlib.h> since we only need NULL.
26722 Reported by Ben Pfaff <blp@cs.stanford.edu>.
26724 2007-10-15 Bruno Haible <bruno@clisp.org>
26726 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
26727 Replace paragraph talking about LIBOBJS.
26728 Reported by Colin Watson <cjwatson@debian.org>.
26730 2007-10-15 Bruno Haible <bruno@clisp.org>
26732 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
26733 <stdlib.h> before using NULL.
26735 2007-10-15 Simon Josefsson <simon@josefsson.org>
26737 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
26738 Reported by Albert Chin <china@thewrittenword.com>.
26740 2007-10-14 Bruno Haible <bruno@clisp.org>
26742 * modules/iconv_open-utf-tests: New file.
26743 * tests/test-iconv-utf.c: New file.
26745 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
26746 * modules/iconv_open-utf: New file.
26747 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
26748 (iconv, iconv_close): New declarations.
26749 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
26751 (iconv_open): Add special handling of conversion between UTF-8 and
26752 UTF-{16,32}{BE,LE}.
26753 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
26754 * lib/iconv_close.c: New file.
26755 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
26756 gl_FUNC_ICONV_OPEN.
26757 (gl_FUNC_ICONV_OPEN): Use it.
26758 (gl_FUNC_ICONV_OPEN_UTF): New macro.
26759 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
26760 and REPLACE_ICONV_UTF.
26761 * modules/iconv_open (Depends-on): Add c-strcase.
26762 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
26764 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
26766 2007-10-13 Albert Chin <china@thewrittenword.com>
26767 Bruno Haible <bruno@clisp.org>
26769 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
26770 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
26772 2007-10-13 Bruno Haible <bruno@clisp.org>
26774 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
26775 defined, use the ISO C99 inline semantics.
26776 * lib/argp.h (ARGP_EI): Likewise.
26778 2007-10-13 Bruno Haible <bruno@clisp.org>
26780 Handle 'inline' change in gcc 4.3.0.
26781 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
26782 argp_fmtstream_write, argp_fmtstream_set_lmargin,
26783 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
26784 argp_fmtstream_point): Disable 'extern' declaration if the function
26785 definition is going to be provided inline.
26786 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
26787 semantics, not the ISO C99 inline semantics.
26788 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
26789 'extern' declaration if the function definition is going to be provided
26791 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
26792 the GNU C inline semantics, not the ISO C99 inline semantics. With
26793 GCC 4.2, avoid a warning.
26795 2007-10-13 Bruno Haible <bruno@clisp.org>
26797 * lib/freading.h (freading): Enable the use of __freading for
26799 * lib/freading.c (freading): Likewise.
26801 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
26803 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
26804 "warning: C99 inline functions are not supported; using GNU89".
26806 2007-10-12 Bruno Haible <bruno@clisp.org>
26808 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
26810 * tests/test-ceilf2.c: New file.
26811 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
26813 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
26814 * modules/ceilf-tests: Update.
26816 2007-10-12 Bruno Haible <bruno@clisp.org>
26818 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
26820 * tests/test-floorf2.c: New file.
26821 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
26823 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
26824 * modules/floorf-tests: Update.
26826 2007-10-12 Bruno Haible <bruno@clisp.org>
26828 * tests/test-trunc2.c: New file.
26829 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
26831 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
26832 * modules/trunc-tests: Update.
26834 2007-10-12 Bruno Haible <bruno@clisp.org>
26836 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
26838 * tests/test-truncf2.c: New file.
26839 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
26841 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
26842 * modules/truncf-tests: Update.
26844 2007-10-11 Eric Blake <ebb9@byu.net>
26846 Don't claim strerror is broken on Interix.
26847 * doc/functions/strerror.texi (strerror): Known broken systems are
26848 now Solaris 8, and not Interix.
26849 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
26850 Interix on cross-compile.
26851 Reported by Martin Koeppe in
26852 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
26854 2007-10-11 Bruno Haible <bruno@clisp.org>
26856 * modules/i-ring-tests: New file.
26857 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
26860 2007-10-11 Bruno Haible <bruno@clisp.org>
26862 * modules/filenamecat-tests: New file.
26863 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
26864 * lib/filenamecat.c: Remove test code.
26866 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
26868 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
26870 * lib/strerror.c: Include <string.h> always, to test interface,
26871 and to remove the need for the dummy.
26872 Include intprops.h to compute width instead of doing it ourselves
26873 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
26874 (strerror): Define it to return NULL if there's no system strerror.
26875 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
26876 Omit !HAVE_STRERROR code. We don't need to worry about supporting
26877 ancient pre-strerror Unix systems well any more. Saying "unknown
26878 system error" is enough.
26879 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
26880 simpler strerror.c implementation.
26881 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
26882 Simplify the tests to reflect the simpler strerror implementation.
26883 * modules/strerror (Depends-on): Add intprops.
26885 2007-10-09 Eric Blake <ebb9@byu.net>
26887 Silence test-fpending.
26888 * modules/fpending-tests (Files): Add wrapper script.
26889 * tests/test-fpending.sh: New file.
26891 2007-10-09 Bruno Haible <bruno@clisp.org>
26893 * MODULES.html.sh (func_module): Don't create a hyperlink for
26894 function names like 'printf_frexp'.
26895 (Misc): Add crc, memxor.
26896 (Characteristics of floating types): New section.
26897 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
26898 isnanf-nolibm, signbit, trunc, truncf, truncl.
26899 (Enhancements for ISO C 99 functions): New subsection Input/output.
26900 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
26901 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
26902 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
26903 (Compatibility checks for POSIX:2001 functions): Add clock-time.
26904 (Enhancements for POSIX:2001 functions): Add chdir-long.
26905 (File system functions): Add areadlink, chdir-safer, read-file.
26906 Remove cycle-check.
26907 (File system as inode set): New section.
26908 (Date and time): Add gethrxtime.
26909 (Multithreading): Add openmp.
26910 (Internationalization functions): Add localename.
26911 (Unicode string functions): Add unistr/u*-mbsnlen.
26912 (Support for maintaining and releasing projects): Add git-version-gen.
26913 (Lone files): Remove directories.
26915 2007-10-08 Ben Pfaff <blp@gnu.org>
26917 * lib/xmalloca.h: Fix typo in comment.
26919 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
26921 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
26922 when avoiding problems with integer overflow. Use a portable test
26925 2007-10-08 Simon Josefsson <simon@josefsson.org>
26927 * modules/dummy (License): Change to LGPLv2+.
26928 * modules/float (License): Likewise
26929 * modules/realloc (License): Likewise
26930 * modules/stdlib (License): Likewise
26932 2007-10-07 Bruno Haible <bruno@clisp.org>
26934 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
26935 * floor.c (TWO_MANT_DIG): Likewise.
26936 * ceil.c (TWO_MANT_DIG): Likewise.
26937 Reported by Ben Pfaff.
26939 2007-10-07 Bruno Haible <bruno@clisp.org>
26941 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
26942 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
26943 * lib/frexp.c (FUNC): Likewise.
26944 * lib/printf-frexp.h (printf_frexp): Likewise.
26945 * lib/printf-frexpl.h (printf_frexpl): Likewise.
26946 * lib/printf-frexp.c (FUNC): Likewise.
26947 Suggested by Jim Meyering.
26949 2007-10-07 Jim Meyering <meyering@redhat.com>
26951 Make xnanosleep's integer overflow test more robust.
26952 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
26953 so that gcc-4.3.0 doesn't optimize away this test for overflow.
26955 2007-10-07 Bruno Haible <bruno@clisp.org>
26957 * NEWS: Mention the license change.
26959 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
26960 abbreviations in the modules files.
26962 Change copyright notice from GPLv2+ to GPLv3+.
26963 * README: Change copyright notice.
26964 * MODULES.html.sh: Likewise.
26965 * build-aux/bootstrap.conf: Likewise.
26966 * build-aux/config.libpath: Likewise.
26967 * build-aux/csharpcomp.sh.in: Likewise.
26968 * build-aux/csharpexec.sh.in: Likewise.
26969 * build-aux/install-reloc: Likewise.
26970 * build-aux/javacomp.sh.in: Likewise.
26971 * build-aux/javaexec.sh.in: Likewise.
26972 * build-aux/ldd.sh.in: Likewise.
26973 * build-aux/reloc-ldflags: Likewise.
26974 * build-aux/relocatable.sh.in: Likewise.
26975 * build-aux/x-to-1.in: Likewise.
26976 * check-module: Likewise.
26977 * config/srclistvars.sh: Likewise.
26978 * gnulib-tool: Likewise.
26979 * lib/acl-internal.h: Likewise.
26980 * lib/acl.c: Likewise.
26981 * lib/acl.h: Likewise.
26982 * lib/acl_entries.c: Likewise.
26983 * lib/areadlink-with-size.c: Likewise.
26984 * lib/areadlink.c: Likewise.
26985 * lib/areadlink.h: Likewise.
26986 * lib/argmatch.c: Likewise.
26987 * lib/argmatch.h: Likewise.
26988 * lib/argp-ba.c: Likewise.
26989 * lib/argp-eexst.c: Likewise.
26990 * lib/argp-fmtstream.c: Likewise.
26991 * lib/argp-fmtstream.h: Likewise.
26992 * lib/argp-fs-xinl.c: Likewise.
26993 * lib/argp-help.c: Likewise.
26994 * lib/argp-namefrob.h: Likewise.
26995 * lib/argp-parse.c: Likewise.
26996 * lib/argp-pin.c: Likewise.
26997 * lib/argp-pv.c: Likewise.
26998 * lib/argp-pvh.c: Likewise.
26999 * lib/argp-xinl.c: Likewise.
27000 * lib/argp.h: Likewise.
27001 * lib/at-func.c: Likewise.
27002 * lib/atanl.c: Likewise.
27003 * lib/backupfile.c: Likewise.
27004 * lib/backupfile.h: Likewise.
27005 * lib/basename.c: Likewise.
27006 * lib/binary-io.h: Likewise.
27007 * lib/byteswap.in.h: Likewise.
27008 * lib/c-stack.c: Likewise.
27009 * lib/c-stack.h: Likewise.
27010 * lib/c-strcasestr.c: Likewise.
27011 * lib/c-strcasestr.h: Likewise.
27012 * lib/c-strstr.c: Likewise.
27013 * lib/c-strstr.h: Likewise.
27014 * lib/c-strtod.c: Likewise.
27015 * lib/calloc.c: Likewise.
27016 * lib/canon-host.c: Likewise.
27017 * lib/canon-host.h: Likewise.
27018 * lib/canonicalize-lgpl.c: Likewise.
27019 * lib/canonicalize.c: Likewise.
27020 * lib/canonicalize.h: Likewise.
27021 * lib/ceil.c: Likewise.
27022 * lib/ceilf.c: Likewise.
27023 * lib/ceill.c: Likewise.
27024 * lib/chdir-long.c: Likewise.
27025 * lib/chdir-long.h: Likewise.
27026 * lib/chdir-safer.c: Likewise.
27027 * lib/chdir-safer.h: Likewise.
27028 * lib/chown.c: Likewise.
27029 * lib/classpath.c: Likewise.
27030 * lib/classpath.h: Likewise.
27031 * lib/clean-temp.c: Likewise.
27032 * lib/clean-temp.h: Likewise.
27033 * lib/cloexec.c: Likewise.
27034 * lib/close-stream.c: Likewise.
27035 * lib/closein.c: Likewise.
27036 * lib/closein.h: Likewise.
27037 * lib/closeout.c: Likewise.
27038 * lib/closeout.h: Likewise.
27039 * lib/concat-filename.c: Likewise.
27040 * lib/copy-file.c: Likewise.
27041 * lib/copy-file.h: Likewise.
27042 * lib/count-one-bits.h: Likewise.
27043 * lib/crc.c: Likewise.
27044 * lib/crc.h: Likewise.
27045 * lib/creat-safer.c: Likewise.
27046 * lib/csharpcomp.c: Likewise.
27047 * lib/csharpcomp.h: Likewise.
27048 * lib/csharpexec.c: Likewise.
27049 * lib/csharpexec.h: Likewise.
27050 * lib/cycle-check.c: Likewise.
27051 * lib/cycle-check.h: Likewise.
27052 * lib/diacrit.c: Likewise.
27053 * lib/diacrit.h: Likewise.
27054 * lib/diffseq.h: Likewise.
27055 * lib/dirchownmod.c: Likewise.
27056 * lib/dirent.in.h: Likewise.
27057 * lib/dirfd.c: Likewise.
27058 * lib/dirfd.h: Likewise.
27059 * lib/dirname.c: Likewise.
27060 * lib/dirname.h: Likewise.
27061 * lib/dummy.c: Likewise.
27062 * lib/dup-safer.c: Likewise.
27063 * lib/dup2.c: Likewise.
27064 * lib/eealloc.h: Likewise.
27065 * lib/error.c: Likewise.
27066 * lib/error.h: Likewise.
27067 * lib/euidaccess.c: Likewise.
27068 * lib/exclude.c: Likewise.
27069 * lib/exclude.h: Likewise.
27070 * lib/execute.c: Likewise.
27071 * lib/execute.h: Likewise.
27072 * lib/exitfail.c: Likewise.
27073 * lib/exitfail.h: Likewise.
27074 * lib/expl.c: Likewise.
27075 * lib/fatal-signal.c: Likewise.
27076 * lib/fatal-signal.h: Likewise.
27077 * lib/fbufmode.c: Likewise.
27078 * lib/fbufmode.h: Likewise.
27079 * lib/fchdir.c: Likewise.
27080 * lib/fchmodat.c: Likewise.
27081 * lib/fchownat.c: Likewise.
27082 * lib/fcntl--.h: Likewise.
27083 * lib/fcntl-safer.h: Likewise.
27084 * lib/fcntl.in.h: Likewise.
27085 * lib/fd-safer.c: Likewise.
27086 * lib/fflush.c: Likewise.
27087 * lib/file-has-acl.c: Likewise.
27088 * lib/file-set.c: Likewise.
27089 * lib/file-type.c: Likewise.
27090 * lib/file-type.h: Likewise.
27091 * lib/fileblocks.c: Likewise.
27092 * lib/filemode.c: Likewise.
27093 * lib/filemode.h: Likewise.
27094 * lib/filename.h: Likewise.
27095 * lib/filenamecat.c: Likewise.
27096 * lib/filenamecat.h: Likewise.
27097 * lib/findprog.c: Likewise.
27098 * lib/findprog.h: Likewise.
27099 * lib/float.in.h: Likewise.
27100 * lib/floor.c: Likewise.
27101 * lib/floorf.c: Likewise.
27102 * lib/floorl.c: Likewise.
27103 * lib/fopen-safer.c: Likewise.
27104 * lib/fopen.c: Likewise.
27105 * lib/fpending.c: Likewise.
27106 * lib/fpending.h: Likewise.
27107 * lib/fprintf.c: Likewise.
27108 * lib/fprintftime.h: Likewise.
27109 * lib/fpucw.h: Likewise.
27110 * lib/fpurge.c: Likewise.
27111 * lib/fpurge.h: Likewise.
27112 * lib/freadable.c: Likewise.
27113 * lib/freadable.h: Likewise.
27114 * lib/freadahead.c: Likewise.
27115 * lib/freadahead.h: Likewise.
27116 * lib/freading.c: Likewise.
27117 * lib/freading.h: Likewise.
27118 * lib/free.c: Likewise.
27119 * lib/freopen.c: Likewise.
27120 * lib/frexp.c: Likewise.
27121 * lib/frexpl.c: Likewise.
27122 * lib/fseek.c: Likewise.
27123 * lib/fseterr.c: Likewise.
27124 * lib/fseterr.h: Likewise.
27125 * lib/fstatat.c: Likewise.
27126 * lib/fstrcmp.c: Likewise.
27127 * lib/fstrcmp.h: Likewise.
27128 * lib/fsusage.c: Likewise.
27129 * lib/fsusage.h: Likewise.
27130 * lib/ftell.c: Likewise.
27131 * lib/ftello.c: Likewise.
27132 * lib/fts-cycle.c: Likewise.
27133 * lib/fts.c: Likewise.
27134 * lib/fts_.h: Likewise.
27135 * lib/full-read.c: Likewise.
27136 * lib/full-read.h: Likewise.
27137 * lib/full-write.c: Likewise.
27138 * lib/full-write.h: Likewise.
27139 * lib/fwritable.c: Likewise.
27140 * lib/fwritable.h: Likewise.
27141 * lib/fwriteerror.c: Likewise.
27142 * lib/fwriteerror.h: Likewise.
27143 * lib/fwriting.c: Likewise.
27144 * lib/fwriting.h: Likewise.
27145 * lib/gcd.c: Likewise.
27146 * lib/gcd.h: Likewise.
27147 * lib/getcwd.c: Likewise.
27148 * lib/getdate.h: Likewise.
27149 * lib/getdate.y: Likewise.
27150 * lib/getdomainname.c: Likewise.
27151 * lib/getdomainname.h: Likewise.
27152 * lib/getgroups.c: Likewise.
27153 * lib/gethostname.c: Likewise.
27154 * lib/gethrxtime.c: Likewise.
27155 * lib/gethrxtime.h: Likewise.
27156 * lib/getloadavg.c: Likewise.
27157 * lib/getndelim2.c: Likewise.
27158 * lib/getndelim2.h: Likewise.
27159 * lib/getnline.c: Likewise.
27160 * lib/getnline.h: Likewise.
27161 * lib/getopt.c: Likewise.
27162 * lib/getopt.in.h: Likewise.
27163 * lib/getopt1.c: Likewise.
27164 * lib/getopt_int.h: Likewise.
27165 * lib/getpagesize.h: Likewise.
27166 * lib/getsubopt.c: Likewise.
27167 * lib/gettime.c: Likewise.
27168 * lib/getugroups.c: Likewise.
27169 * lib/getugroups.h: Likewise.
27170 * lib/getusershell.c: Likewise.
27171 * lib/gl_anyavltree_list1.h: Likewise.
27172 * lib/gl_anyavltree_list2.h: Likewise.
27173 * lib/gl_anyhash_list1.h: Likewise.
27174 * lib/gl_anyhash_list2.h: Likewise.
27175 * lib/gl_anylinked_list1.h: Likewise.
27176 * lib/gl_anylinked_list2.h: Likewise.
27177 * lib/gl_anyrbtree_list1.h: Likewise.
27178 * lib/gl_anyrbtree_list2.h: Likewise.
27179 * lib/gl_anytree_list1.h: Likewise.
27180 * lib/gl_anytree_list2.h: Likewise.
27181 * lib/gl_anytree_oset.h: Likewise.
27182 * lib/gl_anytreehash_list1.h: Likewise.
27183 * lib/gl_anytreehash_list2.h: Likewise.
27184 * lib/gl_array_list.c: Likewise.
27185 * lib/gl_array_list.h: Likewise.
27186 * lib/gl_array_oset.c: Likewise.
27187 * lib/gl_array_oset.h: Likewise.
27188 * lib/gl_avltree_list.c: Likewise.
27189 * lib/gl_avltree_list.h: Likewise.
27190 * lib/gl_avltree_oset.c: Likewise.
27191 * lib/gl_avltree_oset.h: Likewise.
27192 * lib/gl_avltreehash_list.c: Likewise.
27193 * lib/gl_avltreehash_list.h: Likewise.
27194 * lib/gl_carray_list.c: Likewise.
27195 * lib/gl_carray_list.h: Likewise.
27196 * lib/gl_linked_list.c: Likewise.
27197 * lib/gl_linked_list.h: Likewise.
27198 * lib/gl_linkedhash_list.c: Likewise.
27199 * lib/gl_linkedhash_list.h: Likewise.
27200 * lib/gl_list.c: Likewise.
27201 * lib/gl_list.h: Likewise.
27202 * lib/gl_oset.c: Likewise.
27203 * lib/gl_oset.h: Likewise.
27204 * lib/gl_rbtree_list.c: Likewise.
27205 * lib/gl_rbtree_list.h: Likewise.
27206 * lib/gl_rbtree_oset.c: Likewise.
27207 * lib/gl_rbtree_oset.h: Likewise.
27208 * lib/gl_rbtreehash_list.c: Likewise.
27209 * lib/gl_rbtreehash_list.h: Likewise.
27210 * lib/gl_sublist.c: Likewise.
27211 * lib/gl_sublist.h: Likewise.
27212 * lib/group-member.c: Likewise.
27213 * lib/group-member.h: Likewise.
27214 * lib/hard-locale.c: Likewise.
27215 * lib/hard-locale.h: Likewise.
27216 * lib/hash-pjw.c: Likewise.
27217 * lib/hash-pjw.h: Likewise.
27218 * lib/hash-triple.c: Likewise.
27219 * lib/hash.c: Likewise.
27220 * lib/hash.h: Likewise.
27221 * lib/human.c: Likewise.
27222 * lib/human.h: Likewise.
27223 * lib/i-ring.c: Likewise.
27224 * lib/i-ring.h: Likewise.
27225 * lib/idcache.c: Likewise.
27226 * lib/imaxabs.c: Likewise.
27227 * lib/imaxdiv.c: Likewise.
27228 * lib/inet_pton.c: Likewise.
27229 * lib/inet_pton.h: Likewise.
27230 * lib/intprops.h: Likewise.
27231 * lib/inttostr.c: Likewise.
27232 * lib/inttostr.h: Likewise.
27233 * lib/inttypes.in.h: Likewise.
27234 * lib/isapipe.c: Likewise.
27235 * lib/isdir.c: Likewise.
27236 * lib/isnan.c: Likewise.
27237 * lib/isnan.h: Likewise.
27238 * lib/isnanf.c: Likewise.
27239 * lib/isnanf.h: Likewise.
27240 * lib/isnanl-nolibm.h: Likewise.
27241 * lib/isnanl.c: Likewise.
27242 * lib/isnanl.h: Likewise.
27243 * lib/javacomp.c: Likewise.
27244 * lib/javacomp.h: Likewise.
27245 * lib/javaexec.c: Likewise.
27246 * lib/javaexec.h: Likewise.
27247 * lib/javaversion.c: Likewise.
27248 * lib/javaversion.h: Likewise.
27249 * lib/javaversion.java: Likewise.
27250 * lib/lbrkprop.h: Likewise.
27251 * lib/lchmod.h: Likewise.
27252 * lib/lchown.c: Likewise.
27253 * lib/ldexpl.c: Likewise.
27254 * lib/linebreak.c: Likewise.
27255 * lib/linebreak.h: Likewise.
27256 * lib/linebuffer.c: Likewise.
27257 * lib/linebuffer.h: Likewise.
27258 * lib/locale.in.h: Likewise.
27259 * lib/logl.c: Likewise.
27260 * lib/long-options.c: Likewise.
27261 * lib/long-options.h: Likewise.
27262 * lib/lstat.c: Likewise.
27263 * lib/lstat.h: Likewise.
27264 * lib/math.in.h: Likewise.
27265 * lib/mbchar.c: Likewise.
27266 * lib/mbchar.h: Likewise.
27267 * lib/mbfile.h: Likewise.
27268 * lib/mbiter.h: Likewise.
27269 * lib/mbscasecmp.c: Likewise.
27270 * lib/mbscasestr.c: Likewise.
27271 * lib/mbschr.c: Likewise.
27272 * lib/mbscspn.c: Likewise.
27273 * lib/mbslen.c: Likewise.
27274 * lib/mbsncasecmp.c: Likewise.
27275 * lib/mbsnlen.c: Likewise.
27276 * lib/mbspbrk.c: Likewise.
27277 * lib/mbspcasecmp.c: Likewise.
27278 * lib/mbsrchr.c: Likewise.
27279 * lib/mbssep.c: Likewise.
27280 * lib/mbsspn.c: Likewise.
27281 * lib/mbsstr.c: Likewise.
27282 * lib/mbstok_r.c: Likewise.
27283 * lib/mbswidth.c: Likewise.
27284 * lib/mbswidth.h: Likewise.
27285 * lib/mbuiter.h: Likewise.
27286 * lib/memcasecmp.c: Likewise.
27287 * lib/memcasecmp.h: Likewise.
27288 * lib/memchr.c: Likewise.
27289 * lib/memcmp.c: Likewise.
27290 * lib/memcoll.c: Likewise.
27291 * lib/memcoll.h: Likewise.
27292 * lib/memcpy.c: Likewise.
27293 * lib/memrchr.c: Likewise.
27294 * lib/mkancesdirs.c: Likewise.
27295 * lib/mkdir-p.c: Likewise.
27296 * lib/mkdir-p.h: Likewise.
27297 * lib/mkdir.c: Likewise.
27298 * lib/mkdirat.c: Likewise.
27299 * lib/mkdtemp.c: Likewise.
27300 * lib/mkstemp-safer.c: Likewise.
27301 * lib/mkstemp.c: Likewise.
27302 * lib/modechange.c: Likewise.
27303 * lib/modechange.h: Likewise.
27304 * lib/mountlist.c: Likewise.
27305 * lib/mountlist.h: Likewise.
27306 * lib/mpsort.c: Likewise.
27307 * lib/nanosleep.c: Likewise.
27308 * lib/obstack.c: Likewise.
27309 * lib/obstack.h: Likewise.
27310 * lib/open-safer.c: Likewise.
27311 * lib/open.c: Likewise.
27312 * lib/openat-die.c: Likewise.
27313 * lib/openat-priv.h: Likewise.
27314 * lib/openat-proc.c: Likewise.
27315 * lib/openat.c: Likewise.
27316 * lib/openat.h: Likewise.
27317 * lib/pagealign_alloc.c: Likewise.
27318 * lib/pagealign_alloc.h: Likewise.
27319 * lib/physmem.c: Likewise.
27320 * lib/physmem.h: Likewise.
27321 * lib/pipe-safer.c: Likewise.
27322 * lib/pipe.c: Likewise.
27323 * lib/pipe.h: Likewise.
27324 * lib/posixtm.c: Likewise.
27325 * lib/posixtm.h: Likewise.
27326 * lib/posixver.c: Likewise.
27327 * lib/printf-frexp.c: Likewise.
27328 * lib/printf-frexp.h: Likewise.
27329 * lib/printf-frexpl.c: Likewise.
27330 * lib/printf-frexpl.h: Likewise.
27331 * lib/printf.c: Likewise.
27332 * lib/progname.c: Likewise.
27333 * lib/progname.h: Likewise.
27334 * lib/progreloc.c: Likewise.
27335 * lib/putenv.c: Likewise.
27336 * lib/quote.c: Likewise.
27337 * lib/quote.h: Likewise.
27338 * lib/quotearg.c: Likewise.
27339 * lib/quotearg.h: Likewise.
27340 * lib/raise.c: Likewise.
27341 * lib/readline.c: Likewise.
27342 * lib/readline.h: Likewise.
27343 * lib/readlink.c: Likewise.
27344 * lib/readtokens.c: Likewise.
27345 * lib/readtokens.h: Likewise.
27346 * lib/readtokens0.c: Likewise.
27347 * lib/readtokens0.h: Likewise.
27348 * lib/readutmp.c: Likewise.
27349 * lib/readutmp.h: Likewise.
27350 * lib/realloc.c: Likewise.
27351 * lib/relocwrapper.c: Likewise.
27352 * lib/rename-dest-slash.c: Likewise.
27353 * lib/rename.c: Likewise.
27354 * lib/rmdir.c: Likewise.
27355 * lib/rpmatch.c: Likewise.
27356 * lib/safe-read.c: Likewise.
27357 * lib/safe-read.h: Likewise.
27358 * lib/safe-write.c: Likewise.
27359 * lib/safe-write.h: Likewise.
27360 * lib/same-inode.h: Likewise.
27361 * lib/same.c: Likewise.
27362 * lib/same.h: Likewise.
27363 * lib/save-cwd.c: Likewise.
27364 * lib/save-cwd.h: Likewise.
27365 * lib/savedir.c: Likewise.
27366 * lib/savedir.h: Likewise.
27367 * lib/savewd.c: Likewise.
27368 * lib/savewd.h: Likewise.
27369 * lib/search.in.h: Likewise.
27370 * lib/setenv.c: Likewise.
27371 * lib/setenv.h: Likewise.
27372 * lib/settime.c: Likewise.
27373 * lib/sh-quote.c: Likewise.
27374 * lib/sh-quote.h: Likewise.
27375 * lib/sig2str.c: Likewise.
27376 * lib/sig2str.h: Likewise.
27377 * lib/signal.in.h: Likewise.
27378 * lib/signbitd.c: Likewise.
27379 * lib/signbitf.c: Likewise.
27380 * lib/signbitl.c: Likewise.
27381 * lib/sigprocmask.c: Likewise.
27382 * lib/sincosl.c: Likewise.
27383 * lib/sleep.c: Likewise.
27384 * lib/sprintf.c: Likewise.
27385 * lib/sqrtl.c: Likewise.
27386 * lib/stat-time.h: Likewise.
27387 * lib/stdio--.h: Likewise.
27388 * lib/stdio-safer.h: Likewise.
27389 * lib/stdlib--.h: Likewise.
27390 * lib/stdlib-safer.h: Likewise.
27391 * lib/stdlib.in.h: Likewise.
27392 * lib/stpcpy.c: Likewise.
27393 * lib/stpncpy.c: Likewise.
27394 * lib/strchrnul.c: Likewise.
27395 * lib/strcspn.c: Likewise.
27396 * lib/strerror.c: Likewise.
27397 * lib/strftime.c: Likewise.
27398 * lib/strftime.h: Likewise.
27399 * lib/striconveh.c: Likewise.
27400 * lib/striconveh.h: Likewise.
27401 * lib/striconveha.c: Likewise.
27402 * lib/striconveha.h: Likewise.
27403 * lib/stripslash.c: Likewise.
27404 * lib/strnlen1.c: Likewise.
27405 * lib/strnlen1.h: Likewise.
27406 * lib/strtod.c: Likewise.
27407 * lib/strtoimax.c: Likewise.
27408 * lib/strtok_r.c: Likewise.
27409 * lib/strtol.c: Likewise.
27410 * lib/strtoll.c: Likewise.
27411 * lib/strtoul.c: Likewise.
27412 * lib/strtoull.c: Likewise.
27413 * lib/sysexits.in.h: Likewise.
27414 * lib/tempname.c: Likewise.
27415 * lib/tempname.h: Likewise.
27416 * lib/timespec.h: Likewise.
27417 * lib/tls.c: Likewise.
27418 * lib/tls.h: Likewise.
27419 * lib/tmpdir.c: Likewise.
27420 * lib/tmpdir.h: Likewise.
27421 * lib/tmpfile-safer.c: Likewise.
27422 * lib/tmpfile.c: Likewise.
27423 * lib/trigl.c: Likewise.
27424 * lib/trigl.h: Likewise.
27425 * lib/trim.c: Likewise.
27426 * lib/trim.h: Likewise.
27427 * lib/trunc.c: Likewise.
27428 * lib/truncf.c: Likewise.
27429 * lib/truncl.c: Likewise.
27430 * lib/tsearch.c: Likewise.
27431 * lib/unicodeio.c: Likewise.
27432 * lib/unicodeio.h: Likewise.
27433 * lib/unistd--.h: Likewise.
27434 * lib/unistd-safer.h: Likewise.
27435 * lib/unistdio/ulc-fprintf.c: Likewise.
27436 * lib/unistdio/ulc-vfprintf.c: Likewise.
27437 * lib/unlinkdir.c: Likewise.
27438 * lib/unlinkdir.h: Likewise.
27439 * lib/unlocked-io.h: Likewise.
27440 * lib/unsetenv.c: Likewise.
27441 * lib/userspec.c: Likewise.
27442 * lib/utime.c: Likewise.
27443 * lib/utimecmp.c: Likewise.
27444 * lib/utimecmp.h: Likewise.
27445 * lib/utimens.c: Likewise.
27446 * lib/verify.h: Likewise.
27447 * lib/verror.c: Likewise.
27448 * lib/verror.h: Likewise.
27449 * lib/version-etc-fsf.c: Likewise.
27450 * lib/version-etc.c: Likewise.
27451 * lib/version-etc.h: Likewise.
27452 * lib/vfprintf.c: Likewise.
27453 * lib/vprintf.c: Likewise.
27454 * lib/vsprintf.c: Likewise.
27455 * lib/w32spawn.h: Likewise.
27456 * lib/wait-process.c: Likewise.
27457 * lib/wait-process.h: Likewise.
27458 * lib/wcwidth.c: Likewise.
27459 * lib/write-any-file.c: Likewise.
27460 * lib/xalloc-die.c: Likewise.
27461 * lib/xalloc.h: Likewise.
27462 * lib/xasprintf.c: Likewise.
27463 * lib/xgetcwd.c: Likewise.
27464 * lib/xgetcwd.h: Likewise.
27465 * lib/xgetdomainname.c: Likewise.
27466 * lib/xgetdomainname.h: Likewise.
27467 * lib/xgethostname.c: Likewise.
27468 * lib/xmalloc.c: Likewise.
27469 * lib/xmalloca.c: Likewise.
27470 * lib/xmalloca.h: Likewise.
27471 * lib/xmemcoll.c: Likewise.
27472 * lib/xnanosleep.c: Likewise.
27473 * lib/xreadlink.c: Likewise.
27474 * lib/xreadlink.h: Likewise.
27475 * lib/xsetenv.c: Likewise.
27476 * lib/xsetenv.h: Likewise.
27477 * lib/xstriconv.c: Likewise.
27478 * lib/xstriconv.h: Likewise.
27479 * lib/xstrndup.c: Likewise.
27480 * lib/xstrndup.h: Likewise.
27481 * lib/xstrtod.c: Likewise.
27482 * lib/xstrtod.h: Likewise.
27483 * lib/xstrtol-error.c: Likewise.
27484 * lib/xstrtol.c: Likewise.
27485 * lib/xstrtol.h: Likewise.
27486 * lib/xtime.h: Likewise.
27487 * lib/xvasprintf.c: Likewise.
27488 * lib/xvasprintf.h: Likewise.
27489 * lib/yesno.c: Likewise.
27490 * lib/yesno.h: Likewise.
27491 * posix-modules: Likewise.
27492 * tests/test-alloca-opt.c: Likewise.
27493 * tests/test-arcfour.c: Likewise.
27494 * tests/test-arctwo.c: Likewise.
27495 * tests/test-argmatch.c: Likewise.
27496 * tests/test-argp-2.sh: Likewise.
27497 * tests/test-argp.c: Likewise.
27498 * tests/test-arpa_inet.c: Likewise.
27499 * tests/test-array_list.c: Likewise.
27500 * tests/test-array_oset.c: Likewise.
27501 * tests/test-atexit.c: Likewise.
27502 * tests/test-avltree_list.c: Likewise.
27503 * tests/test-avltree_oset.c: Likewise.
27504 * tests/test-avltreehash_list.c: Likewise.
27505 * tests/test-base64.c: Likewise.
27506 * tests/test-binary-io.c: Likewise.
27507 * tests/test-byteswap.c: Likewise.
27508 * tests/test-c-ctype.c: Likewise.
27509 * tests/test-c-strcasecmp.c: Likewise.
27510 * tests/test-c-strcasestr.c: Likewise.
27511 * tests/test-c-strncasecmp.c: Likewise.
27512 * tests/test-c-strstr.c: Likewise.
27513 * tests/test-canonicalize-lgpl.c: Likewise.
27514 * tests/test-canonicalize.c: Likewise.
27515 * tests/test-carray_list.c: Likewise.
27516 * tests/test-ceilf.c: Likewise.
27517 * tests/test-ceill.c: Likewise.
27518 * tests/test-count-one-bits.c: Likewise.
27519 * tests/test-crc.c: Likewise.
27520 * tests/test-dirname.c: Likewise.
27521 * tests/test-fbufmode.c: Likewise.
27522 * tests/test-fcntl.c: Likewise.
27523 * tests/test-fflush.c: Likewise.
27524 * tests/test-floorf.c: Likewise.
27525 * tests/test-floorl.c: Likewise.
27526 * tests/test-fopen.c: Likewise.
27527 * tests/test-fprintf-posix.c: Likewise.
27528 * tests/test-fprintf-posix.h: Likewise.
27529 * tests/test-fpurge.c: Likewise.
27530 * tests/test-freadable.c: Likewise.
27531 * tests/test-freadahead.c: Likewise.
27532 * tests/test-freading.c: Likewise.
27533 * tests/test-freopen.c: Likewise.
27534 * tests/test-frexp.c: Likewise.
27535 * tests/test-frexpl.c: Likewise.
27536 * tests/test-fseek.c: Likewise.
27537 * tests/test-fseeko.c: Likewise.
27538 * tests/test-fseterr.c: Likewise.
27539 * tests/test-fstrcmp.c: Likewise.
27540 * tests/test-ftell.c: Likewise.
27541 * tests/test-ftello.c: Likewise.
27542 * tests/test-fwritable.c: Likewise.
27543 * tests/test-fwriting.c: Likewise.
27544 * tests/test-getaddrinfo.c: Likewise.
27545 * tests/test-getpass.c: Likewise.
27546 * tests/test-gettimeofday.c: Likewise.
27547 * tests/test-hmac-md5.c: Likewise.
27548 * tests/test-hmac-sha1.c: Likewise.
27549 * tests/test-iconv.c: Likewise.
27550 * tests/test-iconvme.c: Likewise.
27551 * tests/test-inttypes.c: Likewise.
27552 * tests/test-isnan.c: Likewise.
27553 * tests/test-isnanf.c: Likewise.
27554 * tests/test-isnanl-nolibm.c: Likewise.
27555 * tests/test-isnanl.c: Likewise.
27556 * tests/test-isnanl.h: Likewise.
27557 * tests/test-ldexpl.c: Likewise.
27558 * tests/test-linked_list.c: Likewise.
27559 * tests/test-linkedhash_list.c: Likewise.
27560 * tests/test-locale.c: Likewise.
27561 * tests/test-localename.c: Likewise.
27562 * tests/test-lock.c: Likewise.
27563 * tests/test-lseek.c: Likewise.
27564 * tests/test-malloca.c: Likewise.
27565 * tests/test-math.c: Likewise.
27566 * tests/test-mbscasecmp.c: Likewise.
27567 * tests/test-mbscasestr1.c: Likewise.
27568 * tests/test-mbscasestr2.c: Likewise.
27569 * tests/test-mbscasestr3.c: Likewise.
27570 * tests/test-mbscasestr4.c: Likewise.
27571 * tests/test-mbschr.c: Likewise.
27572 * tests/test-mbscspn.c: Likewise.
27573 * tests/test-mbsncasecmp.c: Likewise.
27574 * tests/test-mbspbrk.c: Likewise.
27575 * tests/test-mbspcasecmp.c: Likewise.
27576 * tests/test-mbsrchr.c: Likewise.
27577 * tests/test-mbsspn.c: Likewise.
27578 * tests/test-mbsstr1.c: Likewise.
27579 * tests/test-mbsstr2.c: Likewise.
27580 * tests/test-mbsstr3.c: Likewise.
27581 * tests/test-md5.c: Likewise.
27582 * tests/test-memmem.c: Likewise.
27583 * tests/test-netinet_in.c: Likewise.
27584 * tests/test-open.c: Likewise.
27585 * tests/test-printf-frexp.c: Likewise.
27586 * tests/test-printf-frexpl.c: Likewise.
27587 * tests/test-printf-posix.c: Likewise.
27588 * tests/test-printf-posix.h: Likewise.
27589 * tests/test-rbtree_list.c: Likewise.
27590 * tests/test-rbtree_oset.c: Likewise.
27591 * tests/test-rbtreehash_list.c: Likewise.
27592 * tests/test-read-file.c: Likewise.
27593 * tests/test-rijndael.c: Likewise.
27594 * tests/test-search.c: Likewise.
27595 * tests/test-signbit.c: Likewise.
27596 * tests/test-sleep.c: Likewise.
27597 * tests/test-snprintf-posix.c: Likewise.
27598 * tests/test-snprintf-posix.h: Likewise.
27599 * tests/test-snprintf.c: Likewise.
27600 * tests/test-sprintf-posix.c: Likewise.
27601 * tests/test-sprintf-posix.h: Likewise.
27602 * tests/test-stat-time.c: Likewise.
27603 * tests/test-stdbool.c: Likewise.
27604 * tests/test-stdint.c: Likewise.
27605 * tests/test-stdio.c: Likewise.
27606 * tests/test-stdlib.c: Likewise.
27607 * tests/test-stpncpy.c: Likewise.
27608 * tests/test-strcasestr.c: Likewise.
27609 * tests/test-striconv.c: Likewise.
27610 * tests/test-striconveh.c: Likewise.
27611 * tests/test-striconveha.c: Likewise.
27612 * tests/test-string.c: Likewise.
27613 * tests/test-sys_select.c: Likewise.
27614 * tests/test-sys_socket.c: Likewise.
27615 * tests/test-sys_stat.c: Likewise.
27616 * tests/test-sys_time.c: Likewise.
27617 * tests/test-sysexits.c: Likewise.
27618 * tests/test-time.c: Likewise.
27619 * tests/test-tls.c: Likewise.
27620 * tests/test-trunc.c: Likewise.
27621 * tests/test-truncf.c: Likewise.
27622 * tests/test-truncl.c: Likewise.
27623 * tests/test-unistd.c: Likewise.
27624 * tests/test-vasnprintf-posix.c: Likewise.
27625 * tests/test-vasnprintf-posix2.c: Likewise.
27626 * tests/test-vasnprintf.c: Likewise.
27627 * tests/test-vasprintf-posix.c: Likewise.
27628 * tests/test-vasprintf.c: Likewise.
27629 * tests/test-verify.c: Likewise.
27630 * tests/test-vfprintf-posix.c: Likewise.
27631 * tests/test-vprintf-posix.c: Likewise.
27632 * tests/test-vsnprintf-posix.c: Likewise.
27633 * tests/test-vsnprintf.c: Likewise.
27634 * tests/test-vsprintf-posix.c: Likewise.
27635 * tests/test-wchar.c: Likewise.
27636 * tests/test-wctype.c: Likewise.
27637 * tests/test-wcwidth.c: Likewise.
27638 * tests/test-xstrtol.c: Likewise.
27639 * tests/test-xvasprintf.c: Likewise.
27640 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27641 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27642 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27643 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27644 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27645 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27646 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27647 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27648 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27649 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27650 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27651 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27652 * tests/uniname/test-uninames.c: Likewise.
27653 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27654 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
27655 * tests/unistdio/test-u16-printf1.h: Likewise.
27656 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27657 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27658 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27659 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27660 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27661 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27662 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27663 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
27664 * tests/unistdio/test-u32-printf1.h: Likewise.
27665 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27666 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27667 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27668 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27669 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27670 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27671 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27672 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
27673 * tests/unistdio/test-u8-printf1.h: Likewise.
27674 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27675 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27676 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27677 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27678 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27679 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27680 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27681 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
27682 * tests/unistdio/test-ulc-printf1.h: Likewise.
27683 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27684 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27685 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27686 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27687 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27688 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27689 * tests/uniwidth/test-u16-strwidth.c: Likewise.
27690 * tests/uniwidth/test-u16-width.c: Likewise.
27691 * tests/uniwidth/test-u32-strwidth.c: Likewise.
27692 * tests/uniwidth/test-u32-width.c: Likewise.
27693 * tests/uniwidth/test-u8-strwidth.c: Likewise.
27694 * tests/uniwidth/test-u8-width.c: Likewise.
27695 * tests/uniwidth/test-uc_width.c: Likewise.
27696 * config/srclist-update: Likewise.
27697 (fixlicense): Update to GPLv3+.
27699 Change copyright notice from LGPLv2.1+ to LGPLv3+.
27700 * tests/test-tsearch.c: Change copyright notice.
27702 Change copyright notice from LGPLv2.0+ to LGPLv3+.
27703 * lib/c-strcaseeq.h: Change copyright notice.
27704 * lib/streq.h: Likewise.
27705 * lib/uniconv.h: Likewise.
27706 * lib/uniconv/u-conv-from-enc.h: Likewise.
27707 * lib/uniconv/u-conv-to-enc.h: Likewise.
27708 * lib/uniconv/u-strconv-from-enc.h: Likewise.
27709 * lib/uniconv/u-strconv-to-enc.h: Likewise.
27710 * lib/uniconv/u16-conv-from-enc.c: Likewise.
27711 * lib/uniconv/u16-conv-to-enc.c: Likewise.
27712 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
27713 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
27714 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
27715 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
27716 * lib/uniconv/u32-conv-from-enc.c: Likewise.
27717 * lib/uniconv/u32-conv-to-enc.c: Likewise.
27718 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
27719 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
27720 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
27721 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
27722 * lib/uniconv/u8-conv-from-enc.c: Likewise.
27723 * lib/uniconv/u8-conv-to-enc.c: Likewise.
27724 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
27725 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
27726 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
27727 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
27728 * lib/uniname.h: Likewise.
27729 * lib/uniname/uniname.c: Likewise.
27730 * lib/unistdio.h: Likewise.
27731 * lib/unistdio/u-asnprintf.h: Likewise.
27732 * lib/unistdio/u-asprintf.h: Likewise.
27733 * lib/unistdio/u-printf-args.c: Likewise.
27734 * lib/unistdio/u-printf-args.h: Likewise.
27735 * lib/unistdio/u-printf-parse.h: Likewise.
27736 * lib/unistdio/u-snprintf.h: Likewise.
27737 * lib/unistdio/u-sprintf.h: Likewise.
27738 * lib/unistdio/u-vasprintf.h: Likewise.
27739 * lib/unistdio/u-vsnprintf.h: Likewise.
27740 * lib/unistdio/u-vsprintf.h: Likewise.
27741 * lib/unistdio/u16-asnprintf.c: Likewise.
27742 * lib/unistdio/u16-asprintf.c: Likewise.
27743 * lib/unistdio/u16-printf-parse.c: Likewise.
27744 * lib/unistdio/u16-snprintf.c: Likewise.
27745 * lib/unistdio/u16-sprintf.c: Likewise.
27746 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
27747 * lib/unistdio/u16-u16-asprintf.c: Likewise.
27748 * lib/unistdio/u16-u16-snprintf.c: Likewise.
27749 * lib/unistdio/u16-u16-sprintf.c: Likewise.
27750 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
27751 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
27752 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
27753 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
27754 * lib/unistdio/u16-vasnprintf.c: Likewise.
27755 * lib/unistdio/u16-vasprintf.c: Likewise.
27756 * lib/unistdio/u16-vsnprintf.c: Likewise.
27757 * lib/unistdio/u16-vsprintf.c: Likewise.
27758 * lib/unistdio/u32-asnprintf.c: Likewise.
27759 * lib/unistdio/u32-asprintf.c: Likewise.
27760 * lib/unistdio/u32-printf-parse.c: Likewise.
27761 * lib/unistdio/u32-snprintf.c: Likewise.
27762 * lib/unistdio/u32-sprintf.c: Likewise.
27763 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
27764 * lib/unistdio/u32-u32-asprintf.c: Likewise.
27765 * lib/unistdio/u32-u32-snprintf.c: Likewise.
27766 * lib/unistdio/u32-u32-sprintf.c: Likewise.
27767 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
27768 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
27769 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
27770 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
27771 * lib/unistdio/u32-vasnprintf.c: Likewise.
27772 * lib/unistdio/u32-vasprintf.c: Likewise.
27773 * lib/unistdio/u32-vsnprintf.c: Likewise.
27774 * lib/unistdio/u32-vsprintf.c: Likewise.
27775 * lib/unistdio/u8-asnprintf.c: Likewise.
27776 * lib/unistdio/u8-asprintf.c: Likewise.
27777 * lib/unistdio/u8-printf-parse.c: Likewise.
27778 * lib/unistdio/u8-snprintf.c: Likewise.
27779 * lib/unistdio/u8-sprintf.c: Likewise.
27780 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
27781 * lib/unistdio/u8-u8-asprintf.c: Likewise.
27782 * lib/unistdio/u8-u8-snprintf.c: Likewise.
27783 * lib/unistdio/u8-u8-sprintf.c: Likewise.
27784 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
27785 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
27786 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
27787 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
27788 * lib/unistdio/u8-vasnprintf.c: Likewise.
27789 * lib/unistdio/u8-vasprintf.c: Likewise.
27790 * lib/unistdio/u8-vsnprintf.c: Likewise.
27791 * lib/unistdio/u8-vsprintf.c: Likewise.
27792 * lib/unistdio/ulc-asnprintf.c: Likewise.
27793 * lib/unistdio/ulc-asprintf.c: Likewise.
27794 * lib/unistdio/ulc-printf-parse.c: Likewise.
27795 * lib/unistdio/ulc-snprintf.c: Likewise.
27796 * lib/unistdio/ulc-sprintf.c: Likewise.
27797 * lib/unistdio/ulc-vasnprintf.c: Likewise.
27798 * lib/unistdio/ulc-vasprintf.c: Likewise.
27799 * lib/unistdio/ulc-vsnprintf.c: Likewise.
27800 * lib/unistdio/ulc-vsprintf.c: Likewise.
27801 * lib/unistr.h: Likewise.
27802 * lib/unistr/u-cpy-alloc.h: Likewise.
27803 * lib/unistr/u-cpy.h: Likewise.
27804 * lib/unistr/u-endswith.h: Likewise.
27805 * lib/unistr/u-move.h: Likewise.
27806 * lib/unistr/u-set.h: Likewise.
27807 * lib/unistr/u-startswith.h: Likewise.
27808 * lib/unistr/u-stpcpy.h: Likewise.
27809 * lib/unistr/u-stpncpy.h: Likewise.
27810 * lib/unistr/u-strcat.h: Likewise.
27811 * lib/unistr/u-strcpy.h: Likewise.
27812 * lib/unistr/u-strcspn.h: Likewise.
27813 * lib/unistr/u-strdup.h: Likewise.
27814 * lib/unistr/u-strlen.h: Likewise.
27815 * lib/unistr/u-strncat.h: Likewise.
27816 * lib/unistr/u-strncpy.h: Likewise.
27817 * lib/unistr/u-strnlen.h: Likewise.
27818 * lib/unistr/u-strpbrk.h: Likewise.
27819 * lib/unistr/u-strspn.h: Likewise.
27820 * lib/unistr/u-strstr.h: Likewise.
27821 * lib/unistr/u-strtok.h: Likewise.
27822 * lib/unistr/u16-check.c: Likewise.
27823 * lib/unistr/u16-chr.c: Likewise.
27824 * lib/unistr/u16-cmp.c: Likewise.
27825 * lib/unistr/u16-cpy-alloc.c: Likewise.
27826 * lib/unistr/u16-cpy.c: Likewise.
27827 * lib/unistr/u16-endswith.c: Likewise.
27828 * lib/unistr/u16-mblen.c: Likewise.
27829 * lib/unistr/u16-mbsnlen.c: Likewise.
27830 * lib/unistr/u16-mbtouc-aux.c: Likewise.
27831 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27832 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27833 * lib/unistr/u16-mbtouc.c: Likewise.
27834 * lib/unistr/u16-mbtoucr.c: Likewise.
27835 * lib/unistr/u16-move.c: Likewise.
27836 * lib/unistr/u16-next.c: Likewise.
27837 * lib/unistr/u16-prev.c: Likewise.
27838 * lib/unistr/u16-set.c: Likewise.
27839 * lib/unistr/u16-startswith.c: Likewise.
27840 * lib/unistr/u16-stpcpy.c: Likewise.
27841 * lib/unistr/u16-stpncpy.c: Likewise.
27842 * lib/unistr/u16-strcat.c: Likewise.
27843 * lib/unistr/u16-strchr.c: Likewise.
27844 * lib/unistr/u16-strcmp.c: Likewise.
27845 * lib/unistr/u16-strcpy.c: Likewise.
27846 * lib/unistr/u16-strcspn.c: Likewise.
27847 * lib/unistr/u16-strdup.c: Likewise.
27848 * lib/unistr/u16-strlen.c: Likewise.
27849 * lib/unistr/u16-strmblen.c: Likewise.
27850 * lib/unistr/u16-strmbtouc.c: Likewise.
27851 * lib/unistr/u16-strncat.c: Likewise.
27852 * lib/unistr/u16-strncmp.c: Likewise.
27853 * lib/unistr/u16-strncpy.c: Likewise.
27854 * lib/unistr/u16-strnlen.c: Likewise.
27855 * lib/unistr/u16-strpbrk.c: Likewise.
27856 * lib/unistr/u16-strrchr.c: Likewise.
27857 * lib/unistr/u16-strspn.c: Likewise.
27858 * lib/unistr/u16-strstr.c: Likewise.
27859 * lib/unistr/u16-strtok.c: Likewise.
27860 * lib/unistr/u16-to-u32.c: Likewise.
27861 * lib/unistr/u16-to-u8.c: Likewise.
27862 * lib/unistr/u16-uctomb-aux.c: Likewise.
27863 * lib/unistr/u16-uctomb.c: Likewise.
27864 * lib/unistr/u32-check.c: Likewise.
27865 * lib/unistr/u32-chr.c: Likewise.
27866 * lib/unistr/u32-cmp.c: Likewise.
27867 * lib/unistr/u32-cpy-alloc.c: Likewise.
27868 * lib/unistr/u32-cpy.c: Likewise.
27869 * lib/unistr/u32-endswith.c: Likewise.
27870 * lib/unistr/u32-mblen.c: Likewise.
27871 * lib/unistr/u32-mbsnlen.c: Likewise.
27872 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27873 * lib/unistr/u32-mbtouc.c: Likewise.
27874 * lib/unistr/u32-mbtoucr.c: Likewise.
27875 * lib/unistr/u32-move.c: Likewise.
27876 * lib/unistr/u32-next.c: Likewise.
27877 * lib/unistr/u32-prev.c: Likewise.
27878 * lib/unistr/u32-set.c: Likewise.
27879 * lib/unistr/u32-startswith.c: Likewise.
27880 * lib/unistr/u32-stpcpy.c: Likewise.
27881 * lib/unistr/u32-stpncpy.c: Likewise.
27882 * lib/unistr/u32-strcat.c: Likewise.
27883 * lib/unistr/u32-strchr.c: Likewise.
27884 * lib/unistr/u32-strcmp.c: Likewise.
27885 * lib/unistr/u32-strcpy.c: Likewise.
27886 * lib/unistr/u32-strcspn.c: Likewise.
27887 * lib/unistr/u32-strdup.c: Likewise.
27888 * lib/unistr/u32-strlen.c: Likewise.
27889 * lib/unistr/u32-strmblen.c: Likewise.
27890 * lib/unistr/u32-strmbtouc.c: Likewise.
27891 * lib/unistr/u32-strncat.c: Likewise.
27892 * lib/unistr/u32-strncmp.c: Likewise.
27893 * lib/unistr/u32-strncpy.c: Likewise.
27894 * lib/unistr/u32-strnlen.c: Likewise.
27895 * lib/unistr/u32-strpbrk.c: Likewise.
27896 * lib/unistr/u32-strrchr.c: Likewise.
27897 * lib/unistr/u32-strspn.c: Likewise.
27898 * lib/unistr/u32-strstr.c: Likewise.
27899 * lib/unistr/u32-strtok.c: Likewise.
27900 * lib/unistr/u32-to-u16.c: Likewise.
27901 * lib/unistr/u32-to-u8.c: Likewise.
27902 * lib/unistr/u32-uctomb.c: Likewise.
27903 * lib/unistr/u8-check.c: Likewise.
27904 * lib/unistr/u8-chr.c: Likewise.
27905 * lib/unistr/u8-cmp.c: Likewise.
27906 * lib/unistr/u8-cpy-alloc.c: Likewise.
27907 * lib/unistr/u8-cpy.c: Likewise.
27908 * lib/unistr/u8-endswith.c: Likewise.
27909 * lib/unistr/u8-mblen.c: Likewise.
27910 * lib/unistr/u8-mbsnlen.c: Likewise.
27911 * lib/unistr/u8-mbtouc-aux.c: Likewise.
27912 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27913 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27914 * lib/unistr/u8-mbtouc.c: Likewise.
27915 * lib/unistr/u8-mbtoucr.c: Likewise.
27916 * lib/unistr/u8-move.c: Likewise.
27917 * lib/unistr/u8-next.c: Likewise.
27918 * lib/unistr/u8-prev.c: Likewise.
27919 * lib/unistr/u8-set.c: Likewise.
27920 * lib/unistr/u8-startswith.c: Likewise.
27921 * lib/unistr/u8-stpcpy.c: Likewise.
27922 * lib/unistr/u8-stpncpy.c: Likewise.
27923 * lib/unistr/u8-strcat.c: Likewise.
27924 * lib/unistr/u8-strchr.c: Likewise.
27925 * lib/unistr/u8-strcmp.c: Likewise.
27926 * lib/unistr/u8-strcpy.c: Likewise.
27927 * lib/unistr/u8-strcspn.c: Likewise.
27928 * lib/unistr/u8-strdup.c: Likewise.
27929 * lib/unistr/u8-strlen.c: Likewise.
27930 * lib/unistr/u8-strmblen.c: Likewise.
27931 * lib/unistr/u8-strmbtouc.c: Likewise.
27932 * lib/unistr/u8-strncat.c: Likewise.
27933 * lib/unistr/u8-strncmp.c: Likewise.
27934 * lib/unistr/u8-strncpy.c: Likewise.
27935 * lib/unistr/u8-strnlen.c: Likewise.
27936 * lib/unistr/u8-strpbrk.c: Likewise.
27937 * lib/unistr/u8-strrchr.c: Likewise.
27938 * lib/unistr/u8-strspn.c: Likewise.
27939 * lib/unistr/u8-strstr.c: Likewise.
27940 * lib/unistr/u8-strtok.c: Likewise.
27941 * lib/unistr/u8-to-u16.c: Likewise.
27942 * lib/unistr/u8-to-u32.c: Likewise.
27943 * lib/unistr/u8-uctomb-aux.c: Likewise.
27944 * lib/unistr/u8-uctomb.c: Likewise.
27945 * lib/unitypes.h: Likewise.
27946 * lib/uniwidth.h: Likewise.
27947 * lib/uniwidth/cjk.h: Likewise.
27948 * lib/uniwidth/u16-strwidth.c: Likewise.
27949 * lib/uniwidth/u16-width.c: Likewise.
27950 * lib/uniwidth/u32-strwidth.c: Likewise.
27951 * lib/uniwidth/u32-width.c: Likewise.
27952 * lib/uniwidth/u8-strwidth.c: Likewise.
27953 * lib/uniwidth/u8-width.c: Likewise.
27954 * lib/uniwidth/width.c: Likewise.
27956 2007-10-07 Bruno Haible <bruno@clisp.org>
27958 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
27959 The file is still under LGPL (see modules/inttypes).
27961 2007-10-06 Bruno Haible <bruno@clisp.org>
27963 * modules/trunc (Dependencies): Add 'extensions'.
27964 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
27965 Reported by Ben Pfaff <blp@gnu.org>.
27967 2007-10-06 Bruno Haible <bruno@clisp.org>
27969 * modules/freopen-tests: New file.
27970 * tests/test-freopen.c: New file.
27972 * modules/fopen-tests: New file.
27973 * tests/test-fopen.c: New file.
27975 * modules/fopen: New file.
27976 * lib/fopen.c: New file.
27977 * m4/fopen.m4: New file.
27978 * modules/freopen: New file.
27979 * lib/freopen.c: New file.
27980 * m4/freopen.m4: New file.
27981 * lib/stdio.in.h (fopen, freopen): New declarations.
27982 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
27983 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
27984 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
27985 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
27986 * doc/functions/fopen.texi: Mention the 'fopen' module.
27987 * doc/functions/freopen.texi: Mention the 'freopen' module.
27989 2007-10-06 Bruno Haible <bruno@clisp.org>
27991 * modules/open-tests: New file.
27992 * tests/test-open.c: New file.
27994 * modules/open: New file.
27995 * lib/open.c: New file.
27996 * m4/open.m4: New file.
27997 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
27999 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
28000 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
28002 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
28003 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
28005 * doc/functions/open.texi: Mention the 'open' module.
28007 2007-10-04 Bruno Haible <bruno@clisp.org>
28009 * modules/ceill-tests: New file.
28010 * tests/test-ceill.c: New file.
28012 * modules/ceill: New file.
28013 * lib/ceill.c: Replace entire file.
28014 * m4/ceill.m4: New file.
28015 * lib/math.in.h (ceill): Replace declaration.
28016 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
28017 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
28018 * doc/functions/ceill.texi: Mention the 'ceill' module.
28019 * modules/mathl (Files): Remove lib/ceill.c.
28020 (Depends-on): Add ceill.
28022 2007-10-04 Bruno Haible <bruno@clisp.org>
28024 * modules/ceilf-tests: New file.
28025 * tests/test-ceilf.c: New file.
28027 * modules/ceilf: New file.
28028 * lib/ceil.c: New file.
28029 * lib/ceilf.c: New file.
28030 * m4/ceilf.m4: New file.
28031 * lib/math.in.h (ceilf): New declaration.
28032 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
28034 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
28036 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
28038 2007-10-04 Bruno Haible <bruno@clisp.org>
28040 * modules/floorl-tests: New file.
28041 * tests/test-floorl.c: New file.
28043 * modules/floorl: New file.
28044 * lib/floorl.c: Replace entire file.
28045 * m4/floorl.m4: New file.
28046 * lib/math.in.h (floorl): Replace declaration.
28047 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
28048 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
28049 * doc/functions/floorl.texi: Mention the 'floorl' module.
28050 * modules/mathl (Files): Remove lib/floorl.c.
28051 (Depends-on): Add floorl.
28053 2007-10-04 Bruno Haible <bruno@clisp.org>
28055 * modules/floorf-tests: New file.
28056 * tests/test-floorf.c: New file.
28058 * modules/floorf: New file.
28059 * lib/floor.c: New file.
28060 * lib/floorf.c: New file.
28061 * m4/floorf.m4: New file.
28062 * lib/math.in.h (floorf): New declaration.
28063 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
28065 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
28067 * doc/functions/floorf.texi: Mention the 'floorf' module.
28069 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
28070 Bruno Haible <bruno@clisp.org>
28072 Advertise for the Git server instead of the CVS server.
28073 * doc/gnulib-intro.texi (Steady Development): Mention the Git
28074 repository instead of the CVS one.
28075 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
28076 about all VCS systems generically.
28077 * doc/gnulib.texi (Introduction): Capitalize `Git'.
28079 2007-10-04 Bruno Haible <bruno@clisp.org>
28081 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
28083 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
28085 2007-10-04 Bruno Haible <bruno@clisp.org>
28087 * modules/truncl-tests: New file.
28088 * tests/test-truncl.c: New file.
28090 * modules/truncl: New file.
28091 * lib/truncl.c: New file.
28092 * m4/truncl.m4: New file.
28093 * lib/math.in.h (truncl): New declaration.
28094 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
28096 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
28098 * doc/functions/truncl.texi: Mention the 'truncl' module.
28100 2007-10-04 Bruno Haible <bruno@clisp.org>
28102 * modules/truncf-tests: New file.
28103 * tests/test-truncf.c: New file.
28105 * modules/truncf: New file.
28106 * lib/trunc.c: Make paramerizable through USE_* macros.
28107 * lib/truncf.c: New file.
28108 * m4/truncf.m4: New file.
28109 * lib/math.in.h (truncf): New declaration.
28110 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
28112 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
28114 * doc/functions/truncf.texi: Mention the 'truncf' module.
28116 2007-10-03 Bruno Haible <bruno@clisp.org>
28118 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
28119 augmentation also for tests modules.
28120 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
28121 * modules/atexit-tests (Makefile.am): Likewise.
28122 * modules/binary-io-tests (Makefile.am): Likewise.
28123 * modules/c-strcase-tests (Makefile.am): Likewise.
28124 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
28125 * modules/canonicalize-tests (Makefile.am): Likewise.
28126 * modules/closein-tests (Makefile.am): Likewise.
28127 * modules/fprintf-posix-tests (Makefile.am): Likewise.
28128 * modules/freadahead-tests (Makefile.am): Likewise.
28129 * modules/fseek-tests (Makefile.am): Likewise.
28130 * modules/fseeko-tests (Makefile.am): Likewise.
28131 * modules/ftell-tests (Makefile.am): Likewise.
28132 * modules/ftello-tests (Makefile.am): Likewise.
28133 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
28134 * modules/isnanl-tests (Makefile.am): Likewise.
28135 * modules/lseek-tests (Makefile.am): Likewise.
28136 * modules/mbscasecmp-tests (Makefile.am): Likewise.
28137 * modules/mbscasestr-tests (Makefile.am): Likewise.
28138 * modules/mbschr-tests (Makefile.am): Likewise.
28139 * modules/mbscspn-tests (Makefile.am): Likewise.
28140 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28141 * modules/mbspbrk-tests (Makefile.am): Likewise.
28142 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28143 * modules/mbsrchr-tests (Makefile.am): Likewise.
28144 * modules/mbsspn-tests (Makefile.am): Likewise.
28145 * modules/mbsstr-tests (Makefile.am): Likewise.
28146 * modules/printf-posix-tests (Makefile.am): Likewise.
28147 * modules/snprintf-posix-tests (Makefile.am): Likewise.
28148 * modules/sprintf-posix-tests (Makefile.am): Likewise.
28149 * modules/tsearch-tests (Makefile.am): Likewise.
28150 * modules/uniname/uniname-tests (Makefile.am): Likewise.
28151 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28152 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28153 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28154 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28155 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28156 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28157 * modules/vprintf-posix-tests (Makefile.am): Likewise.
28158 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
28159 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
28160 * modules/xstrtoimax-tests (Makefile.am): Likewise.
28161 * modules/xstrtol-tests (Makefile.am): Likewise.
28162 * modules/xstrtoumax-tests (Makefile.am): Likewise.
28163 * modules/yesno-tests (Makefile.am): Likewise.
28165 2007-10-03 Bruno Haible <bruno@clisp.org>
28167 * modules/trunc-tests: New file.
28168 * tests/test-trunc.c: New file.
28170 * modules/trunc: New file.
28171 * lib/trunc.c: New file.
28172 * m4/trunc.m4: New file.
28173 * lib/math.in.h (trunc): New declaration.
28174 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
28176 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
28178 * doc/functions/trunc.texi: Mention the 'trunc' module.
28180 2007-10-03 Bruno Haible <bruno@clisp.org>
28182 * tests/test-fpending.c: New file, mostly copied
28183 from coreutils/lib/t-fpending.c.
28184 * modules/fpending-tests: New file.
28186 2007-10-03 Bruno Haible <bruno@clisp.org>
28188 Port the stdio extensions to QNX (untested).
28189 * lib/fseterr.c (fseterr): Add support for QNX.
28190 * lib/fbufmode.c (fbufmode): Likewise.
28191 * lib/freadable.c (freadable): Likewise.
28192 * lib/fwritable.c (fwritable): Likewise.
28193 * lib/freading.c (freading): Likewise.
28194 * lib/fwriting.c (fwriting): Likewise.
28195 * lib/freadahead.c (freadahed): Likewise.
28196 * lib/fpurge.c (fpurge): Likewise.
28197 * lib/fseeko.c (rpl_fseeko): Likewise.
28199 2007-10-03 Bruno Haible <bruno@clisp.org>
28200 Jim Meyering <jim@meyering.net>
28201 Eric Blake <ebb9@byu.net>
28203 * doc/relocatable.texi: Use @command instead of @program.
28205 2007-10-02 Jim Meyering <jim@meyering.net>
28207 Perform one more "_.h" -> ".in.h" substitution.
28208 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
28209 instead of unistd_.h here, too.
28211 2007-10-01 Bruno Haible <bruno@clisp.org>
28213 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
28214 Needed for the alloca-opt module.
28216 2007-09-30 Bruno Haible <bruno@clisp.org>
28218 * lib/alloca.in.h: Renamed from lib/alloca_.h.
28219 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
28221 * lib/argz.in.h: Renamed from lib/argz_.h.
28222 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
28223 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
28224 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
28226 * lib/dirent.in.h: Renamed from lib/dirent_.h.
28227 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
28229 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
28230 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
28232 * lib/float.in.h: Renamed from lib/float_.h.
28233 * modules/float (Files, Makefile.am): Use float.in.h instead of
28235 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
28236 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
28238 * lib/getopt.in.h: Renamed from lib/getopt_.h.
28239 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
28241 * lib/glob.in.h: Renamed from lib/glob_.h.
28242 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
28243 * lib/iconv.in.h: Renamed from lib/iconv_.h.
28244 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
28246 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
28247 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
28249 * lib/locale.in.h: Renamed from lib/locale_.h.
28250 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
28252 * lib/math.in.h: Renamed from lib/math_.h.
28253 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
28254 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
28255 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
28256 of netinet_in_.h. Add dependency.
28257 * lib/poll.in.h: Renamed from lib/poll_.h.
28258 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
28259 * lib/search.in.h: Renamed from lib/search_.h.
28260 * modules/search (Files, Makefile.am): Use search.in.h instead of
28262 * lib/signal.in.h: Renamed from lib/signal_.h.
28263 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
28265 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
28266 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
28268 * lib/stdint.in.h: Renamed from lib/stdint_.h.
28269 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
28271 * lib/stdio.in.h: Renamed from lib/stdio_.h.
28272 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
28274 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
28275 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
28277 * lib/string.in.h: Renamed from lib/string_.h.
28278 * modules/string (Files, Makefile.am): Use string.in.h instead of
28280 * doc/gnulib-tool.texi (Initial import): Update.
28281 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
28282 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
28283 of sys_select_.h. Add dependency.
28284 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
28285 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
28287 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
28288 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
28290 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
28291 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
28293 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
28294 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
28296 * lib/time.in.h: Renamed from lib/time_.h.
28297 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
28298 * lib/unistd.in.h: Renamed from lib/unistd_.h.
28299 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
28301 * lib/wchar.in.h: Renamed from lib/wchar_.h.
28302 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
28304 * lib/wctype.in.h: Renamed from lib/wctype_.h.
28305 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
28307 * build-aux/bootstrap (slurp): Update.
28308 * lib/.cppi-disable: Update.
28310 2007-09-30 Bruno Haible <bruno@clisp.org>
28312 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
28315 2007-09-30 Bruno Haible <bruno@clisp.org>
28317 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
28319 2007-09-29 Bruno Haible <bruno@clisp.org>
28321 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
28323 2007-09-29 Bruno Haible <bruno@clisp.org>
28325 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
28326 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
28327 * build-aux/install-reloc: Compile also areadlink.c.
28328 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
28330 2007-09-29 Bruno Haible <bruno@clisp.org>
28332 * gnulib-tool (func_emit_initmacro_done): Indentation.
28334 2007-09-29 Bruno Haible <bruno@clisp.org>
28336 * README: Add CVS checkout update instructions.
28337 Info from Bob Proulx <bob@proulx.com>.
28339 2007-09-28 Eric Blake <ebb9@byu.net>
28341 Provide move-if-change.
28342 * build-aux/move-if-change: New file, based on best practice
28343 rather than any canonical upstream location.
28345 2007-09-28 Jim Meyering <jim@meyering.net>
28347 Fix canonicalize loop-detection corner case.
28348 Do not attempt to stat the symlink values stored via seen_triple.
28349 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
28350 on linux-2.6.18, (but not 2.6.22).
28351 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
28352 triple_compare. The former compares dev,ino,filename, while the latter
28353 would actually stat dirname(filename) when dev and ino were equal.
28354 * lib/hash-triple.c: Install <string.h>.
28356 (triple_compare_ino_str): New function.
28357 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
28359 2007-09-28 Eric Blake <ebb9@byu.net>
28361 Enforce that AC_REPLACE_FUNCS files exist.
28362 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
28363 override check for typos.
28365 Fix test-closein on Solaris 10.
28366 * tests/test-closein.c (main): Don't assume stdin can be inherited
28367 closed on all systems.
28368 * tests/test-closein.sh: Likewise.
28369 Reported by Piotr Tarnowski.
28371 2007-09-28 Jim Meyering <jim@meyering.net>
28373 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
28375 2007-09-27 Jim Meyering <jim@meyering.net>
28377 canonicalize: Avoid a false-positive cycle failure.
28378 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
28379 Sort. Remove cycle-check.
28380 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
28382 (seen_triple): New function.
28383 (canonicalize_filename_mode): Use it instead of cycle-check.
28384 * tests/test-canonicalize.c: Add a test for this bug.
28385 * tests/test-canonicalize.sh: Set up and run the test.
28387 New module, file-set, from coreutils.
28388 * modules/file-set: Define it.
28389 * lib/file-set.c, lib/file-set.h: Implement.
28391 New module, hash-triple, from coreutils.
28392 * modules/hash-triple: Define it.
28393 * lib/hash-triple.c, lib/hash-triple.h: Implement.
28395 2007-09-25 Eric Blake <ebb9@byu.net>
28397 Fix strerror on Interix.
28398 * lib/string_.h (strerror): Declare replacement.
28399 * doc/functions/strerror.texi (strerror): Document the Interix
28401 * modules/string (Makefile.am): Support new hooks.
28402 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
28403 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
28404 gl_FUNC_STRERROR_SEPARATE.
28405 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
28406 * lib/strerror.c (rpl_strerror): Provide replacement.
28407 * modules/strerror (Depends-on): Add string.
28408 (configure.ac): Detect use of module.
28409 * tests/test-strerror.c: New file.
28410 * modules/strerror-tests: New test module.
28411 * modules/argp (Depends-on): Add strerror.
28412 * modules/error (Depends-on): Likewise.
28413 Reported by Martin Koeppe.
28415 2007-09-24 Bruno Haible <bruno@clisp.org>
28417 * README: Update git instructions.
28419 2007-09-24 Eric Blake <ebb9@byu.net>
28421 Revert fpending breakage from 2007-09-08.
28422 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
28425 2007-09-24 Jim Meyering <jim@meyering.net>
28427 filenamecat.c: Add a test.
28428 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
28429 showing how the function works when DIR is the empty string.
28431 2007-09-21 Simon Josefsson <simon@josefsson.org>
28433 * tests/test-canonicalize.sh: Turn on executable bit.
28435 2007-09-19 Eric Blake <ebb9@byu.net>
28437 * README: Update CVS instructions.
28439 2007-09-18 Bruno Haible <bruno@clisp.org>
28441 * modules/areadlink: New file.
28442 * lib/areadlink.h (areadlink): New declaration.
28443 * lib/areadlink.c: New file, based on lib/xreadlink.c.
28445 2007-09-17 Jim Meyering <jim@meyering.net>
28447 * lib/savewd.c (ESTALE) [!defined]: Define.
28448 Reported to be required on Interix by Martin Koeppe.
28450 2007-09-17 Bruno Haible <bruno@clisp.org>
28452 * gnulib-tool (func_version): Use $version.
28454 2007-09-16 Bruno Haible <bruno@clisp.org>
28456 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
28457 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
28458 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
28459 Reported by Greg Schafer <gschafer@zip.com.au>.
28461 2007-09-15 Bruno Haible <bruno@clisp.org>
28463 * gnulib-tool (sed): Try a little harder to make bash understand the
28465 Reported by Bruce Korb <bruce.korb@gmail.com>.
28467 2007-09-13 Eric Blake <ebb9@byu.net>
28469 * ChangeLog: Remove conflict markers.
28471 2007-09-13 Simon Josefsson <simon@josefsson.org>
28473 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
28474 Reported by Bruno Haible <bruno@clisp.org>.
28476 2007-09-12 Bruno Haible <bruno@clisp.org>
28478 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
28479 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
28482 2007-09-12 Eric Blake <ebb9@byu.net>
28484 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
28485 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
28486 Autoconf definition.
28487 * modules/euidaccess (Depends-on): Add extensions, for
28488 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
28489 * modules/fnmatch (Depends-on): Likewise.
28490 * modules/getaddrinfo (Depends-on): Likewise.
28491 * modules/getdelim (Depends-on): Likewise.
28492 * modules/getline (Depends-on): Likewise.
28493 * modules/getsubopt (Depends-on): Likewise.
28494 * modules/gettext (Depends-on): Likewise.
28495 * modules/group-member (Depends-on): Likewise.
28496 * modules/mbchar (Depends-on): Likewise.
28497 * modules/memmem (Depends-on): Likewise.
28498 * modules/mempcpy (Depends-on): Likewise.
28499 * modules/memrchr (Depends-on): Likewise.
28500 * modules/pagealign_alloc (Depends-on): Likewise.
28501 * modules/readutmp (Depends-on): Likewise.
28502 * modules/stpcpy (Depends-on): Likewise.
28503 * modules/stpncpy (Depends-on): Likewise.
28504 * modules/strchrnul (Depends-on): Likewise.
28505 * modules/strndup (Depends-on): Likewise.
28506 * modules/strsep (Depends-on): Likewise.
28507 * modules/strverscmp (Depends-on): Likewise.
28508 * modules/vasprintf (Depends-on): Likewise.
28509 * modules/wcwidth (Depends-on): Likewise.
28510 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
28511 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
28512 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
28513 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
28514 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28515 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28516 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
28517 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
28518 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
28519 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28520 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28521 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28522 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28523 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28524 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
28525 * m4/readutmp.m4 (gl_READUTMP): Likewise.
28526 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28527 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28528 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28529 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28530 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28531 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28532 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28533 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
28534 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
28535 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28536 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
28537 so that lock.m4 can be used in gettext without extensions module.
28539 2007-09-11 Bruno Haible <bruno@clisp.org>
28541 * m4/isc-posix.m4: Remove file.
28542 Suggested by Eric Blake.
28544 2007-09-11 Eric Blake <ebb9@byu.net>
28546 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
28548 2007-09-10 Bruno Haible <bruno@clisp.org>
28550 * posix-modules: Fix typo in error message.
28551 Reported by Matt <mkraai@beckman.com>.
28553 2007-09-09 Bruno Haible <bruno@clisp.org>
28555 * doc/functions/getdelim.texi: Update list of platforms lacking the
28557 * doc/functions/getline.texi: Likewise.
28559 2007-09-09 Jim Meyering <jim@meyering.net>
28561 * lib/hash.c (hash_initialize): Detect calloc failure.
28562 Reported by Bruno Haible.
28564 2007-09-09 Bruno Haible <bruno@clisp.org>
28566 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
28567 malloc or realloc fails.
28569 2007-09-09 Bruno Haible <bruno@clisp.org>
28571 * modules/getcwd (Depends-on): Add malloc-posix.
28572 * modules/glob (Depends-on): Likewise.
28573 * modules/putenv (Depends-on): Likewise.
28574 * modules/strdup (Depends-on): Likewise.
28575 * modules/getdelim (Depends-on): Add realloc-posix.
28576 * modules/read-file (Depends-on): Likewise.
28578 2007-09-09 Bruno Haible <bruno@clisp.org>
28580 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
28581 (gl_FUNC_MALLOC_POSIX): Require it.
28582 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
28583 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
28584 * modules/realloc (Files): Add m4/malloc.m4.
28585 * modules/calloc (Files): Likewise.
28587 2007-09-09 Bruno Haible <bruno@clisp.org>
28589 * modules/malloc-posix: New file.
28590 * modules/malloc (Depends-on): Add malloc-posix.
28591 * lib/malloc.c: Include errno.h.
28592 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
28593 and a POSIX-compatible malloc into a single function. Set ENOMEM
28594 when returning NULL.
28595 * m4/malloc.m4: New file.
28596 * doc/functions/malloc.texi: Mention the malloc-posix module.
28597 * lib/stdlib_.h (malloc): New declaration.
28598 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28599 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
28600 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
28601 and HAVE_MALLOC_POSIX.
28603 2007-09-09 Bruno Haible <bruno@clisp.org>
28605 * modules/realloc-posix: New file.
28606 * modules/realloc (Depends-on): Add realloc-posix.
28607 * lib/realloc.c: Include errno.h.
28608 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
28609 and a POSIX-compatible realloc into a single function. Set ENOMEM
28610 when returning NULL.
28611 * m4/realloc.m4: New file.
28612 * doc/functions/realloc.texi: Mention the realloc-posix module.
28613 * lib/stdlib_.h (realloc): New declaration.
28614 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28615 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
28616 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
28617 and HAVE_REALLOC_POSIX.
28619 2007-09-09 Bruno Haible <bruno@clisp.org>
28621 * modules/calloc-posix: New file.
28622 * modules/calloc (Depends-on): Add calloc-posix.
28623 * lib/calloc.c: Include errno.h.
28624 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
28625 and a POSIX-compatible calloc into a single function. Set ENOMEM
28626 when returning NULL.
28627 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
28628 * doc/functions/calloc.texi: Mention the calloc-posix module.
28629 * lib/stdlib_.h (calloc): New declaration.
28630 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28631 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
28632 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
28633 and HAVE_CALLOC_POSIX.
28635 2007-09-09 Bruno Haible <bruno@clisp.org>
28637 Allow for modules to show an arbitrary notice.
28638 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
28639 * gnulib-tool: New option --extract-notice.
28640 (func_usage): Document it.
28641 (sed_extract_prog): Update.
28642 (func_get_notice): New function.
28643 (func_modules_notice): New function.
28644 (func_import, func_create_testdir): Invoke it.
28645 Suggested by Jim Meyering.
28647 2007-09-09 Bruno Haible <bruno@clisp.org>
28649 * gnulib-tool: New options --verbose, --quiet.
28650 (func_usage): Document them.
28651 (verbose): New variable.
28652 (func_execute_command): New function.
28653 (func_import): Don't show the module list and the file list if
28655 (func_create_testdir): Likewise. Use func_execute_command.
28656 (func_create_megatestdir): Use func_execute_command.
28658 2007-09-08 Bruno Haible <bruno@clisp.org>
28660 * gnulib-tool (func_import): Prefer rsync over wget when available,
28661 for fetching the PO files.
28663 2007-09-08 Bruno Haible <bruno@clisp.org>
28665 * posix-modules: New file. Portions copied from gnulib-tool.
28666 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
28668 2007-09-08 Jim Meyering <jim@meyering.net>
28670 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
28671 * lib/fpending.h: Rename from __fpending.h.
28672 * lib/fpending.c: Rename from __fpending.c.
28673 Include "fpending.h", not "__fpending.h".
28674 * lib/__fpending.h, lib/__fpending.c: Remove files.
28675 * modules/fpending (Files): Reflect new file names.
28676 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
28678 2007-09-08 Bruno Haible <bruno@clisp.org>
28680 * m4/inttypes-h.m4: Remove stub file.
28682 2007-09-07 Simon Josefsson <simon@josefsson.org>
28684 * doc/headers/stdint.texi: Discuss #include_next issue.
28686 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
28688 * build-aux/bootstrap: Remove obsolete comment about wget --help.
28690 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28692 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
28695 2007-09-03 Jim Meyering <jim@meyering.net>
28697 New module: git-version-gen.
28698 * modules/git-version-gen: New file.
28700 Import changes from coreutils for bootstrap script.
28702 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
28704 bootstrap: uses rsync to download the .po files
28705 * build-aux/bootstrap (po_download_command_format): New global.
28706 (download_po_files): Use rsync.
28707 (update_po_files): Don't remove .po files after download,
28708 so future rsync runs can take advantage of the copies.
28710 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
28712 Solve the unnecessary-.po-file-regeneration problem once and for all.
28713 * build-aux/bootstrap (download_po_files): New function, renamed from
28714 get_translations. Now, downloads, but doesn't update LINGUAS.
28715 (update_po_files): New function.
28717 bootstrap: Ignore more.
28718 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
28719 uniwidth to e.g., lib/.gitignore.
28720 (slurp): Handle the sys_stat_.h -> sys mapping, too.
28722 * build-aux/bootstrap: New setting: vc_ignore.
28723 (insert_sorted_if_absent): Create $file if absent.
28724 Adapt to new, possibly empty, list: $vc_ignore.
28726 bootstrap: generate more ignorable names
28727 * build-aux/bootstrap (slurp): When generating ignorable names,
28728 also map .sin to .sed, .gperf to .c, and .y to .c.
28730 2007-09-03 Jim Meyering <jim@meyering.net>
28732 * build-aux/git-version-gen: New file, from coreutils. For details, see
28733 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
28735 2007-09-02 Bruno Haible <bruno@clisp.org>
28737 Fix mis-recognition of 'mcs' on QNX 6.
28738 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
28739 output contains the string "Mono".
28740 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
28741 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
28743 2007-09-01 Bruno Haible <bruno@clisp.org>
28745 Fix collision between uniwidth/* and linebreak modules.
28746 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
28747 u32_width): Remove declarations.
28748 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
28749 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
28750 streq3, streq2, streq1, streq0): Remove functions.
28751 (STREQ): Remove macro.
28752 (is_cjk_encoding): Remove function.
28753 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
28754 (uc_width, u8_width, u16_width, u32_width): Remove functions.
28755 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
28756 * NEWS: Document the change.
28758 2007-09-01 Bruno Haible <bruno@clisp.org>
28760 * lib/streq.h: Add double-inclusion guard.
28762 2007-09-01 Karl Berry <karl@gnu.org>
28764 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
28766 2007-08-28 Jim Meyering <jim@meyering.net>
28768 Rename mreadlink_with_size to areadlink_with_size.
28769 * NEWS: Document the change.
28770 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
28771 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
28772 * lib/mreadlink.h: Rename this to...
28773 * lib/areadlink.h: ...this.
28774 * modules/mreadlink-with-size: Rename this to...
28775 * modules/areadlink-with-size: ...this.
28776 * lib/canonicalize.c: Reflect the renaming.
28777 * modules/canonicalize: Likewise.
28779 2007-08-26 Bruno Haible <bruno@clisp.org>
28781 * gnulib-tool (func_import): When deciding which files to remove,
28782 consider also dangling symbolic links.
28783 Reported by Eric Blake.
28785 2007-08-26 Bruno Haible <bruno@clisp.org>
28787 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
28789 2007-08-23 Simon Josefsson <simon@josefsson.org>
28791 * lib/readline.c: Don't include getline.h, the prototype is now
28794 2007-08-23 Jim Meyering <jim@meyering.net>
28797 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
28798 around the funlockfile call, since funlockfile never sets errno.
28799 Don't set errno upon failed realloc.
28801 2007-08-22 Eric Blake <ebb9@byu.net>
28804 * lib/getdelim.c (getdelim): Revert regression that required *n to
28805 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
28806 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
28807 getdelim, rather than whether implementation is missing.
28808 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
28809 * lib/stdio_.h (getline): Also declare if replacement is
28811 * doc/functions/getdelim.texi: New file.
28812 * doc/functions/getline.texi: Likewise.
28813 * doc/gnulib.texi (Function Substitutes): Add new files.
28814 Reported by Bruno Haible.
28816 2007-08-22 Ludovic Courtès <ludo@gnu.org>
28818 * users.txt: Add Guile.
28820 2007-08-22 Eric Blake <ebb9@byu.net>
28822 * tests/test-getdelim.c (main): Use remove, not unlink.
28823 * tests/test-getline.c (main): Likewise.
28825 Move getline and getdelim into stdio.h, per POSIX 200x.
28826 * modules/getline (Files): Remove getline.h.
28827 (Depends-on): Add stdio.
28828 (configure.ac): Add module indicator.
28829 * modules/getdelim (Files): Remove getdelim.h.
28830 (Depends-on): Add stdio.
28831 (configure.ac): Add module indicator.
28832 * modules/stdio (Makefile.am): Work with new indicators.
28833 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28834 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
28835 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28836 * lib/getdelim.h: Delete.
28837 * lib/getline.h: Delete.
28838 * lib/stdio_.h (getdelim, getline): Declare.
28839 * modules/getdelim-tests: New module.
28840 * modules/getline-tests: Likewise.
28841 * tests/test-getdelim.c: New file.
28842 * tests/test-getline.c: Likewise.
28843 * NEWS: Document the change.
28844 * lib/getline.c: Update choice of header.
28845 * lib/csharpcomp.c: Likewise.
28846 * lib/getpass.c: Likewise.
28847 * lib/javacomp.c: Likewise.
28848 * lib/javaversion.c: Likewise.
28849 * lib/yesno.c: Likewise.
28850 * lib/getdelim.c: Likewise.
28851 (getdelim): Set errno on failure, and avoid memory leak.
28853 2007-08-19 Bruno Haible <bruno@clisp.org>
28855 * modules/closein (Depends-on): Add freadahead.
28856 * lib/closein.c: Include freadahead.h.
28857 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
28860 2007-08-19 Bruno Haible <bruno@clisp.org>
28862 * modules/freadahead-tests: New file.
28863 * tests/test-freadahead.sh: New file.
28864 * tests/test-freadahead.c: New file.
28866 * modules/freadahead: New file.
28867 * lib/freadahead.h: New file.
28868 * lib/freadahead.c: New file.
28869 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
28870 fbufmode, fpurge, freadable, fwritable.
28872 2007-08-19 Eric Blake <ebb9@byu.net>
28874 Test yesno in combination with closein.
28875 * lib/yesno.c (yesno): Document use of stdin.
28876 * modules/yesno-tests (Files): New module.
28877 * tests/test-yesno.c (main): New file.
28878 * tests/test-yesno.sh: Likewise.
28880 2007-08-19 Bruno Haible <bruno@clisp.org>
28882 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
28883 * lib/fseeko.c (rpl_fseeko): Likewise.
28884 * lib/fseterr.c (fseterr): Likewise.
28886 2007-08-19 Bruno Haible <bruno@clisp.org>
28888 * tests/test-lseek.c (main): Disable a test for BeOS.
28889 * doc/functions/lseek.texi: Document the BeOS bug.
28891 2007-08-19 Bruno Haible <bruno@clisp.org>
28892 Eric Blake <ebb9@byu.net>
28894 * lib/lseek.c: Include <sys/stat.h>.
28895 (rpl_lseek): Add workaround code also for Unix platforms.
28897 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
28898 * doc/functions/lseek.texi: Document BeOS definiency.
28900 2007-08-18 Bruno Haible <bruno@clisp.org>
28902 * modules/fstrcmp-tests: New file.
28903 * tests/test-fstrcmp.c: New file.
28905 2007-08-18 Bruno Haible <bruno@clisp.org>
28907 * modules/fstrcmp: New file, from GNU gettext with modifications.
28908 * lib/fstrcmp.h: New file, from GNU gettext.
28909 * lib/fstrcmp.c: New file, from GNU gettext.
28910 * MODULES.html.sh (String handling): Add fstrcmp.
28912 2007-08-18 Bruno Haible <bruno@clisp.org>
28914 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
28916 (diag, compareseq): Remove const from the ctxt argument.
28917 (USE_HEURISTIC): Undefine at the end.
28919 2007-08-18 Jim Meyering <jim@meyering.net>
28921 New file: lib/idcache.h
28922 * NEWS: Mention the addition.
28923 * modules/idcache (Files): Add lib/idcache.h
28924 * lib/idcache.c: Include "idcache.h".
28925 Don't include <sys/types.h>.
28926 Add a FIXME comment.
28927 Move file-scoped "static" declarations to the top.
28928 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
28930 2007-08-17 Bruno Haible <bruno@clisp.org>
28931 and Paul Eggert <eggert@cs.ucla.edu>
28933 * MODULES.html.sh: Add diffseq.
28934 * modules/diffseq: New file.
28935 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
28936 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
28938 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
28940 Import changes from coreutils for bootstrap script.
28942 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
28944 * build-aux/bootstrap (slurp): Work even in environments where
28945 "ls" defaults to "ls -A". Put in a FIXME, though, since the
28946 current code does not slurp files whose names start with ".", and
28947 this looks like it might be a troublesome area.
28949 2007-07-11 Jim Meyering <jim@meyering.net>
28951 If there's a GPL vN copyright comment, require that N == 3.
28953 2007-07-08 Jim Meyering <jim@meyering.net>
28955 Run the coreutils-specific code only if tests/Makefile.am.in exists.
28956 * build-aux/bootstrap (mam_template): Move definition out of loop.
28958 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
28960 * build-aux/bootstrap (symlink_to_dir): Rename function from
28961 symlink_to_gnulib. Add a directory parameter. Update all
28963 (cp_mark_as_generated): Also check for -- and link to -- files in
28966 2007-07-08 Jim Meyering <jim@meyering.net>
28968 Adapt to deeper hierarchy in gnulib.
28969 * build-aux/bootstrap (symlink_to_dir): If the destination
28970 directory doesn't exist, create it. This is required at least for
28971 "lib/uniwidth/cjk.h".
28973 2007-05-15 Jim Meyering <jim@meyering.net>
28975 * build-aux/bootstrap: Now that generated Makefile.am files
28976 are no longer under version control, they must be created at
28979 2007-08-14 Ben Pfaff <blp@gnu.org>
28981 * lib/count-one-bits.h: Add comments. From Bruno Haible.
28983 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
28985 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
28986 given the changes below.
28987 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
28988 even on hosts that have padding bits beyond the supported 64.
28990 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
28992 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
28993 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
28994 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
28996 (xstrtol_error): Remove.
28997 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
28998 but with a different signature.
28999 (ATTRIBUTE_NORETURN, __attribute__): New macros.
29000 * lib/xstrtol-error.c: Include exitfail.h.
29001 (xstrtol_fatal): New function, with a different signature from the
29002 old xstrtol_error, so that the caller need not worry about passing
29003 in an exit status, or about storage management of the option argument.
29004 (xstrtol_error): Now a static function. Redo signature to
29005 implement xstrtol_fatal. Output the correct number of hyphens in
29006 front of the option so that the caller need not worry about
29007 storage management.
29009 (_): Remove; not used now.
29010 * modules/xstrtol: Depend on getopt.
29011 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
29012 of old STRTOL_FATAL_ERROR macro.
29013 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
29015 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
29016 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
29018 2007-08-08 Eric Blake <ebb9@byu.net>
29020 * lib/xstrtol-error.c: Add missing include.
29022 Move xstrtol messages into gnulib domain, when --pobase is used.
29023 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
29024 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
29025 * modules/xstrtol (Files): Distribute new file.
29026 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
29027 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
29028 * tests/test-xstrtol.c: ...into new file.
29029 * tests/test-xstrtoul.c: Also test xstrtoul.
29030 * tests/test-xstrtoimax.c: Also test xstrtoimax.
29031 * tests/test-xstrtoumax.c: Also test xstrtoumax.
29032 * tests/test-xstrtol.sh: Drive the tests.
29033 * tests/test-xstrtoimax.sh: Likewise.
29034 * tests/test-xstrtoumax.sh: Likewise.
29035 * modules/xstrtol-tests: New module.
29036 * modules/xstrtoimax-tests: Likewise.
29037 * modules/xstrtoumax-tests: Likewise.
29039 2007-08-08 Jim Meyering <jim@meyering.net>
29041 New function: mfile_name_concat.
29042 * lib/filenamecat.c (mfile_name_concat): New function, just like
29043 file_name_concat, but return NULL upon failure rather than exiting
29045 * lib/filenamecat.h: Declare it.
29047 2007-08-07 Bruno Haible <bruno@clisp.org>
29049 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
29050 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
29052 Reported by Eric Blake.
29054 2007-08-07 Simon Josefsson <simon@josefsson.org>
29056 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
29057 * modules/crypto/arcfour (License): Likewise.
29058 * modules/crypto/des-tests (License): Likewise.
29059 * modules/crypto/gc-arctwo-tests (License): Likewise.
29060 * modules/crypto/gc-des-tests (License): Likewise.
29061 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
29062 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
29063 * modules/crypto/gc-md2-tests (License): Likewise.
29064 * modules/crypto/gc-md4-tests (License): Likewise.
29065 * modules/crypto/gc-md5-tests (License): Likewise.
29066 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
29067 * modules/crypto/gc-rijndael-tests (License): Likewise.
29068 * modules/crypto/gc-sha1-tests (License): Likewise.
29069 * modules/crypto/gc-tests (License): Likewise.
29070 * modules/crypto/hmac-md5 (License): Likewise.
29071 * modules/crypto/hmac-sha1 (License): Likewise.
29072 * modules/crypto/md2-tests (License): Likewise.
29073 * modules/crypto/md4-tests (License): Likewise.
29074 * modules/crypto/md5 (License): Likewise.
29075 * modules/crypto/rijndael (License): Likewise.
29076 * modules/crypto/sha1 (License): Likewise.
29077 * modules/memxor (License): Likewise.
29079 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
29080 and Bruno Haible <bruno@clisp.org>
29082 * NEWS: Describe interface changes to human, xstrtol.
29083 * lib/human.h: Include <xstrtol.h>.
29084 (human_options): Return enum strtol_error, not int. Remove
29085 bool arg; take int * instead.
29086 * lib/human.c: Don't include "gettext.h".
29087 (_): Remove; no longer used.
29088 Don't include <xstrtol.h>, since human.h does it.
29089 (human_options): Adjust to abovementioned interface changes.
29090 Do not report error to stderr; that's now the caller's
29092 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
29094 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
29095 Str, Argument_type_string. All uses changed. Put " argument"
29096 in diagnostics to make them clearer. Change wording of suffix
29097 message for clarity.
29098 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
29099 Argument_type_string.
29100 (STRTOL_FATAL_WARN): Remove; no longer used.
29101 * modules/human (Depends-on): Remove gettext-h.
29103 2007-08-06 Simon Josefsson <simon@josefsson.org>
29105 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
29107 2007-07-31 Bruno Haible <bruno@clisp.org>
29109 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
29110 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
29111 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
29113 2007-07-31 Bruno Haible <bruno@clisp.org>
29115 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
29116 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
29118 2007-07-30 Bruno Haible <bruno@clisp.org>
29120 * modules/base64 (License): Use the synonymous term "LGPLv2+".
29121 * modules/c-ctype (License): Likewise.
29122 * modules/c-strcase (License): Likewise.
29123 * modules/check-version (License): Likewise.
29124 * modules/iconv (License): Likewise.
29125 * modules/iconv_open (License): Likewise.
29126 * modules/read-file (License): Likewise.
29127 * modules/striconv (License): Likewise.
29128 * modules/strverscmp (License): Likewise.
29129 * modules/vasprintf (License): Likewise.
29130 * modules/crypto/des (License): Likewise.
29131 * modules/crypto/gc (License): Likewise.
29132 * modules/crypto/gc-arcfour (License): Likewise.
29133 * modules/crypto/gc-arctwo (License): Likewise.
29134 * modules/crypto/gc-des (License): Likewise.
29135 * modules/crypto/gc-hmac-md5 (License): Likewise.
29136 * modules/crypto/gc-hmac-sha1 (License): Likewise.
29137 * modules/crypto/gc-md2 (License): Likewise.
29138 * modules/crypto/gc-md4 (License): Likewise.
29139 * modules/crypto/gc-md5 (License): Likewise.
29140 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
29141 * modules/crypto/gc-random (License): Likewise.
29142 * modules/crypto/gc-rijndael (License): Likewise.
29143 * modules/crypto/gc-sha1 (License): Likewise.
29144 * modules/crypto/md2 (License): Likewise.
29145 * modules/crypto/md4 (License): Likewise.
29147 2007-07-30 Jim Meyering <jim@meyering.net>
29149 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
29150 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
29151 it has valid stat data. This bug would cause du not to count the
29152 sizes of inaccessible directories.
29153 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
29154 in <http://bugzilla.redhat.com/250077>.
29156 2007-07-25 Peter O'Gorman <peter@pogma.com>
29157 Bruno Haible <bruno@clisp.org>
29159 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
29160 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
29161 #include_next, gives a diagnostic about it, but reports no error in
29163 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29165 2007-07-24 Ben Pfaff <blp@gnu.org>
29167 Improve name: "count-one-bits" is better than "popcount".
29168 * MODULES.html.sh: Update name.
29169 * lib/popcount.h: Renamed lib/count-one-bits.h.
29170 (popcount): Renamed count_one_bits.
29171 (popcountl): Renamed count_one_bits_l.
29172 (popcountll): Renamed count_one_bits_ll.
29173 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
29174 * modules/popcount: Renamed module/count-one-bits.
29175 * modules/popcount-tests: Renamed module/count-one-bits-tests.
29176 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
29178 2007-07-23 Ben Pfaff <blp@gnu.org>
29180 * lib/popcount.h (popcount32): Reduce size of constants, to allow
29181 better code generation, and add U to large constants to avoid
29182 warnings, in non-GCC case.
29183 Suggested by Bruno Haible.
29185 2007-07-23 Ben Pfaff <blp@gnu.org>
29187 * lib/popcount.h: Use verify_true instead of if...abort.
29188 * modules/popcount: Depend on verify module.
29189 Suggested by Jim Meyering.
29191 2007-07-23 Bruno Haible <bruno@clisp.org>
29193 * gnulib-tool (func_import): Create a .cvsignore file also when the
29194 directory is not yet in CVS but the toplevel directory is. When
29195 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
29196 Reported by Karl Berry.
29198 2007-07-22 Ben Pfaff <blp@gnu.org>
29200 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
29202 Suggested by Eric Blake.
29204 2007-07-22 Ben Pfaff <blp@gnu.org>
29206 New module: popcount.
29207 * MODULES.html.sh: Add popcount.
29208 * modules/popcount: New file.
29209 * modules/popcount-tests: New file.
29210 * tests/test-popcount.c: New file.
29211 * lib/popcount.h: New file.
29212 * m4/popcount.m4: New file.
29214 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
29216 * build-aux/announce-gen: Update to GPLv3.
29218 * build-aux/config.guess: Update from config.
29220 2007-07-21 Bruno Haible <bruno@clisp.org>
29222 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
29223 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
29225 2007-07-20 Jim Meyering <jim@meyering.net>
29227 * check-module: Diagnose a self-dependency.
29229 2007-07-19 Bruno Haible <bruno@clisp.org>
29231 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
29233 Reported by Eric Blake.
29235 2007-07-18 Bruno Haible <bruno@clisp.org>
29237 * gnulib-tool: New options --po-base, --po-domain.
29238 (func_usage): Document them.
29239 (pobase, po_domain): New variables.
29240 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
29241 DEFAULT_TEXT_DOMAIN.
29242 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
29243 (func_import): Consider pobase and po_domain. Create a po/ directory.
29244 (func_create_testdir): Set pobase and po_domain to empty.
29245 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
29246 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
29248 2007-07-18 Bruno Haible <bruno@clisp.org>
29250 * gnulib-tool (func_get_automake_snippet): Synthesize also an
29251 EXTRA_DIST augmentation for files in build-aux/.
29253 2007-07-16 Bruno Haible <bruno@clisp.org>
29255 * modules/lseek (License): Use the synonymous term "LGPLv2+".
29256 * modules/getdelim (License): Likewise.
29258 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29260 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
29261 * modules/d-type (License): Likewise.
29262 * modules/extensions (License): Likewise.
29263 * modules/fnmatch (License): Likewise.
29264 * modules/fseeko (License): Likewise.
29265 * modules/getaddrinfo (License): Likewise.
29266 * modules/getline (License): Likewise.
29267 * modules/getlogin_r (License): Likewise.
29268 * modules/getpass (License): Likewise.
29269 * modules/gettimeofday (License): Likewise.
29270 * modules/glob (License): Likewise.
29271 * modules/inet_ntop (License): Likewise.
29272 * modules/malloc (License): Likewise.
29273 * modules/malloca (License): Likewise.
29274 * modules/memmem (License): Likewise.
29275 * modules/mempcpy (License): Likewise.
29276 * modules/memset (License): Likewise.
29277 * modules/minmax (License): Likewise.
29278 * modules/mktime (License): Likewise.
29279 * modules/netinet_in (License): Likewise.
29280 * modules/pathmax (License): Likewise.
29281 * modules/poll (License): Likewise.
29282 * modules/regex (License): Likewise.
29283 * modules/snprintf (License): Likewise.
29284 * modules/stdbool (License): Likewise.
29285 * modules/stdint (License): Likewise.
29286 * modules/stdio (License): Likewise.
29287 * modules/strcase (License): Likewise.
29288 * modules/strcasestr (License): Likewise.
29289 * modules/strdup (License): Likewise.
29290 * modules/string (License): Likewise.
29291 * modules/strndup (License): Likewise.
29292 * modules/strnlen (License): Likewise.
29293 * modules/strpbrk (License): Likewise.
29294 * modules/strptime (License): Likewise.
29295 * modules/strsep (License): Likewise.
29296 * modules/sys_select (License): Likewise.
29297 * modules/sys_socket (License): Likewise.
29298 * modules/sys_stat (License): Likewise.
29299 * modules/sys_time (License): Likewise.
29300 * modules/time (License): Likewise.
29301 * modules/time_r (License): Likewise.
29302 * modules/timegm (License): Likewise.
29303 * modules/unistd (License): Likewise.
29304 * modules/vsnprintf (License): Likewise.
29305 * modules/wctype (License): Likewise.
29307 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29309 * modules/argz (License): LGPLv2+.
29311 2007-07-15 Karl Berry <karl@gnu.org>
29313 * doc/gnulib.texi: revise node structure per new fdl.texi.
29315 2007-07-14 Bruno Haible <bruno@clisp.org>
29317 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
29319 * lib/uniname/uninames.h: Regenerated.
29321 2007-07-14 Karl Berry <karl@gnu.org>
29323 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
29324 omitting sectioning and index commands.
29326 2007-07-13 Bruno Haible <bruno@clisp.org>
29328 New gnulib-tool option --more-symlinks.
29329 * gnulib-tool (func_usage): Document --more-symlinks.
29330 (do_copyrights): New variable.
29331 Recognize option --more-symlinks.
29332 (func_import): Don't add a copyright notice transform to
29333 sed_transform_lib_file if do_copyrights is empty.
29335 2007-07-13 Bruno Haible <bruno@clisp.org>
29337 * lib/vasnprintf.c (decimal_point_char): Define also if
29338 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
29339 && !NEED_PRINTF_DIRECTIVE_A.
29340 Reported by Clemens Koller <clemens.koller@anagramm.de> via
29341 Gary V. Vaughan <gary@gnu.org>.
29343 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
29345 * lib/inttypes_.h: Undo previous change, since it was fixed
29346 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
29348 2007-07-13 Bruno Haible <bruno@clisp.org>
29350 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
29351 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
29353 2007-07-13 Jim Meyering <jim@meyering.net>
29355 df: Don't fail for Tru64's "file-on-file mount".
29356 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
29357 so we fall through and use statfs instead. Details here:
29358 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
29359 Reported by Albert Chin.
29361 2007-07-13 Bruno Haible <bruno@clisp.org>
29363 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
29364 * modules/configmake (License): Likewise.
29365 * modules/gettext (License): Likewise.
29366 * modules/gettext-h (License): Likewise.
29367 * modules/include_next (License): Likewise.
29368 * modules/link-warning (License): Likewise.
29369 * modules/localcharset (License): Likewise.
29370 * modules/localename (License): Likewise.
29371 * modules/lock (License): Likewise.
29372 * modules/relocatable-lib-lgpl (License): Likewise.
29373 * modules/size_max (License): Likewise.
29374 * modules/vasnprintf (License): Likewise.
29375 * modules/wchar (License): Likewise.
29376 * modules/xsize (License): Likewise.
29378 2007-07-13 Bruno Haible <bruno@clisp.org>
29380 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
29381 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
29383 2007-07-12 Bruno Haible <bruno@clisp.org>
29385 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
29386 in the modules files.
29388 2007-07-11 Karl Berry <karl@gnu.org>
29390 * MODULES.html.sh (func_module): use
29391 sed -e '\|^'"${includefile}"'$|d'
29392 instead of /.../d, to avoid errors on $includefile's containing /.
29394 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
29396 * gnulib-tool (func_import): Avoid duplication of --avoid
29398 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
29399 names to `_' in variable names.
29401 2007-07-10 Eric Blake <ebb9@byu.net>
29403 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
29404 * NEWS: Document this change.
29406 2007-07-08 Bruno Haible <bruno@clisp.org>
29408 Update to Unicode 5.0.
29409 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
29410 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
29411 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
29412 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
29413 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
29414 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
29415 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
29416 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
29417 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
29418 U+10A3F, U+1D242..U+1D244.
29419 (nonspacing_table_ind): Update.
29420 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
29421 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
29423 2007-07-08 Bruno Haible <bruno@clisp.org>
29425 Update to Unicode 5.0.
29426 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
29427 code transform. Extend the name index field of unicode_name_to_code and
29428 unicode_code_to_name from 16 to 24 bits.
29429 * lib/uniname/uniname.c (unicode_character_name,
29430 unicode_name_character): Add the range 0x12xxx to the code transform.
29431 * lib/uniname/uninames.h: Regenerated.
29432 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
29434 2007-07-07 Bruno Haible <bruno@clisp.org>
29436 * modules/wcwidth-tests: New file.
29437 * tests/test-wcwidth.c: New file.
29439 Work around MacOS X wcwidth() bug.
29440 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
29441 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
29442 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
29443 original wcwidth in non-UTF-8 locales.
29444 * modules/wcwidth (Depends-on): Add localcharset, streq,
29446 * doc/functions/wcwidth.texi: Update.
29448 2007-07-07 Bruno Haible <bruno@clisp.org>
29450 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
29451 (wcwidth): New declaration.
29452 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
29454 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
29455 here. Prepare for creating <wchar.h> unconditionally.
29456 * modules/wchar (Depends-on): Add link-warning.
29457 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
29458 REPLACE_WCWIDTH, and GL_LINK_WARNING.
29459 * lib/wcwidth.h: Remove file.
29460 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
29461 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
29462 * modules/wcwidth (Files): Remove lib/wcwidth.h.
29463 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
29464 (Include): Replace wcwidth.h with <wchar.h>.
29465 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
29466 * lib/mbchar.h: Don't include wcwidth.h.
29467 * lib/mbswidth.c: Likewise.
29468 * NEWS: Mention the change.
29470 2007-07-07 Bruno Haible <bruno@clisp.org>
29472 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
29473 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
29474 definition with an external declaration.
29475 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
29476 defined as a function. Remove AC_C_INLINE requirement.
29477 * modules/wcwidth (Files): Add lib/wcwidth.c.
29478 (Makefile.am): Remove redundant statement.
29480 2007-07-07 Bruno Haible <bruno@clisp.org>
29482 * MODULES.html.sh (Unicode string functions): Add the new modules.
29484 * tests/uniwidth/test-u32-strwidth.c: New file.
29485 * modules/uniwidth/u32-strwidth-tests: New file.
29487 * lib/uniwidth/u32-strwidth.c: New file.
29488 * modules/uniwidth/u32-strwidth: New file.
29490 * tests/uniwidth/test-u16-strwidth.c: New file.
29491 * modules/uniwidth/u16-strwidth-tests: New file.
29493 * lib/uniwidth/u16-strwidth.c: New file.
29494 * modules/uniwidth/u16-strwidth: New file.
29496 * tests/uniwidth/test-u8-strwidth.c: New file.
29497 * modules/uniwidth/u8-strwidth-tests: New file.
29499 * lib/uniwidth/u8-strwidth.c: New file.
29500 * modules/uniwidth/u8-strwidth: New file.
29502 * tests/uniwidth/test-u32-width.c: New file.
29503 * modules/uniwidth/u32-width-tests: New file.
29505 * lib/uniwidth/u32-width.c: New file.
29506 * modules/uniwidth/u32-width: New file.
29508 * tests/uniwidth/test-u16-width.c: New file.
29509 * modules/uniwidth/u16-width-tests: New file.
29511 * lib/uniwidth/u16-width.c: New file.
29512 * modules/uniwidth/u16-width: New file.
29514 * tests/uniwidth/test-u8-width.c: New file.
29515 * modules/uniwidth/u8-width-tests: New file.
29517 * lib/uniwidth/u8-width.c: New file.
29518 * modules/uniwidth/u8-width: New file.
29520 * tests/uniwidth/test-uc_width.c: New file.
29521 * modules/uniwidth/width-tests: New file.
29523 * lib/uniwidth/width.c: New file, from GNU libiconv.
29524 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
29525 * modules/uniwidth/width: New file.
29527 * lib/uniwidth.h: New file, from GNU libiconv.
29528 * modules/uniwidth/base: New file.
29530 2007-07-07 Bruno Haible <bruno@clisp.org>
29532 * lib/uniname.h: New file, from GNU gettext.
29533 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
29534 * lib/uniname/uninames.h: New file, from GNU gettext.
29535 * lib/uniname/uniname.c: New file, from GNU gettext.
29536 * tests/uniname/test-uninames.sh: New file.
29537 * tests/uniname/test-uninames.c: New file, from GNU gettext.
29538 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
29539 * modules/uniname/base: New file.
29540 * modules/uniname/uniname: New file.
29541 * modules/uniname/uniname-tests: New file.
29542 * MODULES.html.sh (Unicode string functions): Add the new modules.
29544 2007-07-06 Bruno Haible <bruno@clisp.org>
29546 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
29548 2007-07-06 Bruno Haible <bruno@clisp.org>
29550 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
29551 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
29552 includes <cygwin/sys_time.h> which includes <sys/select.h> which
29553 include <sys/time.h>.
29554 Reported by Eric Blake.
29556 2007-07-06 Eric Blake <ebb9@byu.net>
29558 Fix testing canonicalize on cygwin.
29559 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
29560 Revert patch from 2007-06-19.
29561 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
29562 canonicalize module is also in use.
29563 * tests/test-canonicalize.c: New file.
29564 * tests/test-canonicalize.sh: Likewise.
29565 * modules/canonicalize-tests: Likewise.
29567 2007-07-06 Jim Meyering <jim@meyering.net>
29569 * lib/getugroups.c (getugroups): Detect getgrent failure.
29570 Adjust comment to reflect reality: this function may return -1.
29572 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
29574 * build-aux/bootstrap (TP_URL,get_translations): Update to use
29575 the new TP address.
29577 (gnulib_mk): New variable.
29579 2007-07-05 Jim Meyering <jim@meyering.net>
29581 Don't let endgrent clobber errno, no matter how improbable.
29582 * lib/getugroups.c (getugroups): Save and restore errno around
29585 Close the group DB even when failing with 2^31 or more members.
29586 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
29588 2007-07-04 Jim Meyering <jim@meyering.net>
29590 * lib/getugroups.h: New file.
29591 * lib/getugroups.c: Include "getugroups.h".
29592 Remove uses of "register" keyword.
29593 Move local variable, "cp", down into scope where used.
29594 Give "username" parameter the "const" attribute.
29595 * modules/getugroups (Files): Add lib/getugroups.h
29597 2007-07-04 Karl Berry <karl@gnu.org>
29599 * MODULES.html.sh (func_all_modules): Complete rename of
29600 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
29602 2007-07-02 Bruno Haible <bruno@clisp.org>
29604 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
29605 mode, when inttypes.h comes from gnulib.
29606 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29608 2007-07-02 Simon Josefsson <simon@josefsson.org>
29610 * NEWS: Mention lgpl module name change.
29612 * modules/lgpl-2.1: Renamed from lgpl.
29614 * NEWS: Mention gpl module name change.
29616 * modules/gpl-3.0: New file, based on gpl-2.0.
29618 * modules/gpl-2.0: Renamed from gpl.
29620 * modules/gpl: Fix filename, doc/gpl.texi is now found at
29623 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
29625 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
29626 #define __STDC_LIMIT_MACROS temporarily while including
29627 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
29628 Problem reported by Joel E. Denny in
29629 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
29631 2007-07-01 Bruno Haible <bruno@clisp.org>
29633 * lib/unistdio.h: New file.
29634 * lib/unistdio/u-asnprintf.h: New file.
29635 * lib/unistdio/u-asprintf.h: New file.
29636 * lib/unistdio/u-printf-args.c: New file.
29637 * lib/unistdio/u-printf-args.h: New file.
29638 * lib/unistdio/u-printf-parse.h: New file.
29639 * lib/unistdio/u-snprintf.h: New file.
29640 * lib/unistdio/u-sprintf.h: New file.
29641 * lib/unistdio/u-vasprintf.h: New file.
29642 * lib/unistdio/u-vsnprintf.h: New file.
29643 * lib/unistdio/u-vsprintf.h: New file.
29644 * lib/unistdio/ulc-asnprintf.c: New file.
29645 * lib/unistdio/ulc-asprintf.c: New file.
29646 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
29647 * lib/unistdio/ulc-printf-parse.c: New file.
29648 * lib/unistdio/ulc-snprintf.c: New file.
29649 * lib/unistdio/ulc-sprintf.c: New file.
29650 * lib/unistdio/ulc-vasnprintf.c: New file.
29651 * lib/unistdio/ulc-vasprintf.c: New file.
29652 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
29653 * lib/unistdio/ulc-vsnprintf.c: New file.
29654 * lib/unistdio/ulc-vsprintf.c: New file.
29655 * lib/unistdio/u8-asnprintf.c: New file.
29656 * lib/unistdio/u8-asprintf.c: New file.
29657 * lib/unistdio/u8-printf-parse.c: New file.
29658 * lib/unistdio/u8-snprintf.c: New file.
29659 * lib/unistdio/u8-sprintf.c: New file.
29660 * lib/unistdio/u8-vasnprintf.c: New file.
29661 * lib/unistdio/u8-vasprintf.c: New file.
29662 * lib/unistdio/u8-vsnprintf.c: New file.
29663 * lib/unistdio/u8-vsprintf.c: New file.
29664 * lib/unistdio/u8-u8-asnprintf.c: New file.
29665 * lib/unistdio/u8-u8-asprintf.c: New file.
29666 * lib/unistdio/u8-u8-snprintf.c: New file.
29667 * lib/unistdio/u8-u8-sprintf.c: New file.
29668 * lib/unistdio/u8-u8-vasnprintf.c: New file.
29669 * lib/unistdio/u8-u8-vasprintf.c: New file.
29670 * lib/unistdio/u8-u8-vsnprintf.c: New file.
29671 * lib/unistdio/u8-u8-vsprintf.c: New file.
29672 * lib/unistdio/u16-asnprintf.c: New file.
29673 * lib/unistdio/u16-asprintf.c: New file.
29674 * lib/unistdio/u16-printf-parse.c: New file.
29675 * lib/unistdio/u16-snprintf.c: New file.
29676 * lib/unistdio/u16-sprintf.c: New file.
29677 * lib/unistdio/u16-vasnprintf.c: New file.
29678 * lib/unistdio/u16-vasprintf.c: New file.
29679 * lib/unistdio/u16-vsnprintf.c: New file.
29680 * lib/unistdio/u16-vsprintf.c: New file.
29681 * lib/unistdio/u16-u16-asnprintf.c: New file.
29682 * lib/unistdio/u16-u16-asprintf.c: New file.
29683 * lib/unistdio/u16-u16-snprintf.c: New file.
29684 * lib/unistdio/u16-u16-sprintf.c: New file.
29685 * lib/unistdio/u16-u16-vasnprintf.c: New file.
29686 * lib/unistdio/u16-u16-vasprintf.c: New file.
29687 * lib/unistdio/u16-u16-vsnprintf.c: New file.
29688 * lib/unistdio/u16-u16-vsprintf.c: New file.
29689 * lib/unistdio/u32-asnprintf.c: New file.
29690 * lib/unistdio/u32-asprintf.c: New file.
29691 * lib/unistdio/u32-printf-parse.c: New file.
29692 * lib/unistdio/u32-snprintf.c: New file.
29693 * lib/unistdio/u32-sprintf.c: New file.
29694 * lib/unistdio/u32-vasnprintf.c: New file.
29695 * lib/unistdio/u32-vasprintf.c: New file.
29696 * lib/unistdio/u32-vsnprintf.c: New file.
29697 * lib/unistdio/u32-vsprintf.c: New file.
29698 * lib/unistdio/u32-u32-asnprintf.c: New file.
29699 * lib/unistdio/u32-u32-asprintf.c: New file.
29700 * lib/unistdio/u32-u32-snprintf.c: New file.
29701 * lib/unistdio/u32-u32-sprintf.c: New file.
29702 * lib/unistdio/u32-u32-vasnprintf.c: New file.
29703 * lib/unistdio/u32-u32-vasprintf.c: New file.
29704 * lib/unistdio/u32-u32-vsnprintf.c: New file.
29705 * lib/unistdio/u32-u32-vsprintf.c: New file.
29706 * tests/unistdio/test-ulc-asnprintf1.c: New file.
29707 * tests/unistdio/test-ulc-asnprintf1.h: New file.
29708 * tests/unistdio/test-ulc-printf1.h: New file.
29709 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
29710 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
29711 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
29712 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
29713 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
29714 * tests/unistdio/test-ulc-vasprintf1.c: New file.
29715 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
29716 * tests/unistdio/test-ulc-vsprintf1.c: New file.
29717 * tests/unistdio/test-u8-asnprintf1.c: New file.
29718 * tests/unistdio/test-u8-asnprintf1.h: New file.
29719 * tests/unistdio/test-u8-printf1.h: New file.
29720 * tests/unistdio/test-u8-vasnprintf1.c: New file.
29721 * tests/unistdio/test-u8-vasnprintf2.c: New file.
29722 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
29723 * tests/unistdio/test-u8-vasnprintf3.c: New file.
29724 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
29725 * tests/unistdio/test-u8-vasprintf1.c: New file.
29726 * tests/unistdio/test-u8-vsnprintf1.c: New file.
29727 * tests/unistdio/test-u8-vsprintf1.c: New file.
29728 * tests/unistdio/test-u16-asnprintf1.c: New file.
29729 * tests/unistdio/test-u16-asnprintf1.h: New file.
29730 * tests/unistdio/test-u16-printf1.h: New file.
29731 * tests/unistdio/test-u16-vasnprintf1.c: New file.
29732 * tests/unistdio/test-u16-vasnprintf2.c: New file.
29733 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
29734 * tests/unistdio/test-u16-vasnprintf3.c: New file.
29735 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
29736 * tests/unistdio/test-u16-vasprintf1.c: New file.
29737 * tests/unistdio/test-u16-vsnprintf1.c: New file.
29738 * tests/unistdio/test-u16-vsprintf1.c: New file.
29739 * tests/unistdio/test-u32-asnprintf1.c: New file.
29740 * tests/unistdio/test-u32-asnprintf1.h: New file.
29741 * tests/unistdio/test-u32-printf1.h: New file.
29742 * tests/unistdio/test-u32-vasnprintf1.c: New file.
29743 * tests/unistdio/test-u32-vasnprintf2.c: New file.
29744 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
29745 * tests/unistdio/test-u32-vasnprintf3.c: New file.
29746 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
29747 * tests/unistdio/test-u32-vasprintf1.c: New file.
29748 * tests/unistdio/test-u32-vsnprintf1.c: New file.
29749 * tests/unistdio/test-u32-vsprintf1.c: New file.
29750 * modules/unistdio/base: New file.
29751 * modules/unistdio/u-printf-args: New file.
29752 * modules/unistdio/ulc-asnprintf: New file.
29753 * modules/unistdio/ulc-asprintf: New file.
29754 * modules/unistdio/ulc-fprintf: New file.
29755 * modules/unistdio/ulc-printf-parse: New file.
29756 * modules/unistdio/ulc-snprintf: New file.
29757 * modules/unistdio/ulc-sprintf: New file.
29758 * modules/unistdio/ulc-vasnprintf: New file.
29759 * modules/unistdio/ulc-vasprintf: New file.
29760 * modules/unistdio/ulc-vfprintf: New file.
29761 * modules/unistdio/ulc-vsnprintf: New file.
29762 * modules/unistdio/ulc-vsprintf: New file.
29763 * modules/unistdio/u8-asnprintf: New file.
29764 * modules/unistdio/u8-asprintf: New file.
29765 * modules/unistdio/u8-printf-parse: New file.
29766 * modules/unistdio/u8-snprintf: New file.
29767 * modules/unistdio/u8-sprintf: New file.
29768 * modules/unistdio/u8-vasnprintf: New file.
29769 * modules/unistdio/u8-vasprintf: New file.
29770 * modules/unistdio/u8-vsnprintf: New file.
29771 * modules/unistdio/u8-vsprintf: New file.
29772 * modules/unistdio/u8-u8-asnprintf: New file.
29773 * modules/unistdio/u8-u8-asprintf: New file.
29774 * modules/unistdio/u8-u8-snprintf: New file.
29775 * modules/unistdio/u8-u8-sprintf: New file.
29776 * modules/unistdio/u8-u8-vasnprintf: New file.
29777 * modules/unistdio/u8-u8-vasprintf: New file.
29778 * modules/unistdio/u8-u8-vsnprintf: New file.
29779 * modules/unistdio/u8-u8-vsprintf: New file.
29780 * modules/unistdio/u16-asnprintf: New file.
29781 * modules/unistdio/u16-asprintf: New file.
29782 * modules/unistdio/u16-printf-parse: New file.
29783 * modules/unistdio/u16-snprintf: New file.
29784 * modules/unistdio/u16-sprintf: New file.
29785 * modules/unistdio/u16-vasnprintf: New file.
29786 * modules/unistdio/u16-vasprintf: New file.
29787 * modules/unistdio/u16-vsnprintf: New file.
29788 * modules/unistdio/u16-vsprintf: New file.
29789 * modules/unistdio/u16-u16-asnprintf: New file.
29790 * modules/unistdio/u16-u16-asprintf: New file.
29791 * modules/unistdio/u16-u16-snprintf: New file.
29792 * modules/unistdio/u16-u16-sprintf: New file.
29793 * modules/unistdio/u16-u16-vasnprintf: New file.
29794 * modules/unistdio/u16-u16-vasprintf: New file.
29795 * modules/unistdio/u16-u16-vsnprintf: New file.
29796 * modules/unistdio/u16-u16-vsprintf: New file.
29797 * modules/unistdio/u32-asnprintf: New file.
29798 * modules/unistdio/u32-asprintf: New file.
29799 * modules/unistdio/u32-printf-parse: New file.
29800 * modules/unistdio/u32-snprintf: New file.
29801 * modules/unistdio/u32-sprintf: New file.
29802 * modules/unistdio/u32-vasnprintf: New file.
29803 * modules/unistdio/u32-vasprintf: New file.
29804 * modules/unistdio/u32-vsnprintf: New file.
29805 * modules/unistdio/u32-vsprintf: New file.
29806 * modules/unistdio/u32-u32-asnprintf: New file.
29807 * modules/unistdio/u32-u32-asprintf: New file.
29808 * modules/unistdio/u32-u32-snprintf: New file.
29809 * modules/unistdio/u32-u32-sprintf: New file.
29810 * modules/unistdio/u32-u32-vasnprintf: New file.
29811 * modules/unistdio/u32-u32-vasprintf: New file.
29812 * modules/unistdio/u32-u32-vsnprintf: New file.
29813 * modules/unistdio/u32-u32-vsprintf: New file.
29814 * modules/unistdio/ulc-asnprintf-tests: New file.
29815 * modules/unistdio/ulc-vasnprintf-tests: New file.
29816 * modules/unistdio/ulc-vasprintf-tests: New file.
29817 * modules/unistdio/ulc-vsnprintf-tests: New file.
29818 * modules/unistdio/ulc-vsprintf-tests: New file.
29819 * modules/unistdio/u8-asnprintf-tests: New file.
29820 * modules/unistdio/u8-vasnprintf-tests: New file.
29821 * modules/unistdio/u8-vasprintf-tests: New file.
29822 * modules/unistdio/u8-vsnprintf-tests: New file.
29823 * modules/unistdio/u8-vsprintf-tests: New file.
29824 * modules/unistdio/u16-asnprintf-tests: New file.
29825 * modules/unistdio/u16-vasnprintf-tests: New file.
29826 * modules/unistdio/u16-vasprintf-tests: New file.
29827 * modules/unistdio/u16-vsnprintf-tests: New file.
29828 * modules/unistdio/u16-vsprintf-tests: New file.
29829 * modules/unistdio/u32-asnprintf-tests: New file.
29830 * modules/unistdio/u32-vasnprintf-tests: New file.
29831 * modules/unistdio/u32-vasprintf-tests: New file.
29832 * modules/unistdio/u32-vsnprintf-tests: New file.
29833 * modules/unistdio/u32-vsprintf-tests: New file.
29834 * MODULES.html.sh (Unicode string functions): Add the new modules.
29836 2007-07-01 Bruno Haible <bruno@clisp.org>
29838 * lib/sprintf.c (sprintf): Limit the available length estimation,
29839 to avoid address wraparound.
29840 * lib/vsprintf.c (vsprintf): Likewise.
29841 * modules/sprintf-posix (Dependencies): Add stdint.
29842 * modules/vsprintf-posix (Dependencies): Likewise.
29844 2007-07-01 Bruno Haible <bruno@clisp.org>
29846 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
29847 Windows PATH as well. Conservative double-quoting. Comments.
29849 2007-07-01 Bruno Haible <bruno@clisp.org>
29850 Eric Blake <ebb9@byu.net>
29851 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29853 * gnulib-tool (self_abspathname): Fix algorithm to cope with
29854 empty components in $PATH, denoting '.'.
29856 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29858 * gnulib-tool: Fix indentation.
29859 (func_create_megatestdir): Likewise.
29860 Report by Bruno Haible.
29862 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29864 Sync from Automake.
29865 * build-aux/gnupload: Fix shell portability issues with for loops.
29866 Report by Karl Berry.
29868 2007-06-29 Simon Josefsson <simon@josefsson.org>
29870 * build-aux/maint.mk (POURL): Use translationproject.org.
29872 2007-06-27 Simon Josefsson <simon@josefsson.org>
29873 Bruno Haible <bruno@clisp.org>
29875 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
29876 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
29877 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
29878 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
29879 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
29881 2007-06-27 Bruno Haible <bruno@clisp.org>
29883 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
29884 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
29886 2007-06-26 Karl Berry <karl@gnu.org>
29888 * MODULES.html.sh: remove xreadlink-with-size.
29890 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
29892 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
29893 method that I hope also handles the double-include problem noted
29895 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
29897 2007-06-23 Bruno Haible <bruno@clisp.org>
29899 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29900 Don't let the 'mostlyclean' target fail if the last subdirectory could
29902 Reported by Karl Berry.
29904 2007-06-23 Bruno Haible <bruno@clisp.org>
29906 * gnulib-tool (echo): Add a speedier workaround for ksh.
29907 * tests/test-echo.sh: Likewise.
29909 2007-06-23 Bruno Haible <bruno@clisp.org>
29911 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
29912 * tests/test-echo.sh: Likewise.
29914 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29916 * gnulib-tool (IFS): Initialize early, so we don't set it to
29918 (self_abspathname): Rewrite algorithm to set it, reindent.
29919 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
29920 (func_create_megatestdir): Merge some sed scripts.
29922 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
29924 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
29925 exposed by Sun Studio 11 cc on Solaris 8.
29927 2007-06-22 Bruno Haible <bruno@clisp.org>
29929 * gnulib-tool (echo): Ensure the echo primitive does not interpret
29931 * tests/test-echo.sh: New file.
29933 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29935 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
29936 simplify `sed_replace_build_aux' scripts, they are portable but
29937 echoing them with `echo' is not.
29938 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
29940 2007-06-21 Karl Berry <karl@gnu.org>
29942 * config/srclist.txt: guess we can't handle the licenses via
29943 srclist at the moment.
29945 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
29947 * MODULES.html.sh: Add include_next.
29948 * modules/include_next: New file.
29950 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
29952 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
29954 (gl_CHECK_NEXT_HEADERS): New macro.
29955 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
29956 the obsolescent gl_ABSOLUTE_HEADER.
29957 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
29958 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
29959 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29960 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29961 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29962 * m4/math_h.m4 (gl_MATH_H): Likewise.
29963 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
29964 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29965 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29966 * m4/stdint.m4 (gl_STDINT_H): Likewise.
29967 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29968 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29969 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29970 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29971 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29972 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29973 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29974 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29975 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
29976 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29977 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29978 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29979 * m4/inttypes.m4 (gl_INTTYPES_H): Define
29980 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
29981 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
29982 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
29983 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
29984 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
29985 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
29986 * lib/float_.h: Likewise.
29987 * lib/inttypes_.h: Likewise.
29988 * lib/math_.h: Likewise.
29989 * lib/search_.h: Likewise.
29990 * lib/signal_.h: Likewise.
29991 * lib/stdint_.h: Likewise.
29992 * lib/stdio_.h: Likewise.
29993 * lib/stdlib_.h: Likewise.
29994 * lib/string_.h: Likewise.
29995 * lib/sys_stat_.h: Likewise.
29996 * lib/sys_time_.h: Likewise.
29997 * lib/time_.h: Likewise.
29998 * lib/unistd_.h: Likewise.
29999 * lib/wchar_.h: Likewise.
30000 * lib/wctype_.h: Likewise.
30001 * lib/dirent_.h: Likewise.
30002 * lib/iconv_.h: Likewise.
30003 * lib/locale_.h: Likewise.
30004 * lib/netinet_in_.h: Likewise.
30005 * lib/sys_select_.h: Likewise.
30006 * lib/sys_socket_.h: Likewise.
30007 * lib/sysexits_.h: Likewise.
30008 * modules/fcntl (Depends-on): Depend on include_next, not
30010 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
30011 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
30012 * modules/fchdir: Likewise.
30013 * modules/float: Likewise.
30014 * modules/iconv_open: Likewise.
30015 * modules/inttypes: Likewise.
30016 * modules/locale: Likewise.
30017 * modules/math: Likewise.
30018 * modules/netinet_in: Likewise.
30019 * modules/search: Likewise.
30020 * modules/signal: Likewise.
30021 * modules/stdint: Likewise.
30022 * modules/stdio: Likewise.
30023 * modules/stdlib: Likewise.
30024 * modules/string: Likewise.
30025 * modules/sys_select: Likewise.
30026 * modules/sys_socket: Likewise.
30027 * modules/sys_stat: Likewise.
30028 * modules/sys_time: Likewise.
30029 * modules/sysexits: Likewise.
30030 * modules/time: Likewise.
30031 * modules/unistd: Likewise.
30032 * modules/wchar: Likewise.
30033 * modules/wctype: Likewise.
30034 * modules/sys_stat: Change maintainer to "all".
30035 * modules/unistd: Likewise.
30037 2007-06-20 Karl Berry <karl@gnu.org>
30039 * config/srclist.txt: track www changes in license files.
30041 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
30043 * build-aux/bootstrap: Remove stray dot.
30044 Make sure build_aux settings are honored when linking
30045 gnulib_extra_files.
30047 2007-06-19 Eric Blake <ebb9@byu.net>
30049 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
30050 Allow compilation on cygwin.
30052 2007-06-19 Jim Meyering <jim@meyering.net>
30054 xreadlink-with-size: Remove module. No longer used.
30055 Ex-callers now use xreadlink or mreadlink-with-size.
30056 * modules/xreadlink-with-size: Remove module.
30057 * lib/xreadlink-with-size.c: Remove file.
30058 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
30059 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
30060 just before the function definition *is* accurate.
30062 Eliminate one way canonicalize_filename_mode could exit.
30063 * lib/canonicalize.c (canonicalize_filename_mode):
30064 Use mreadlink_with_size, not xreadlink_with_size.
30066 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
30068 Detect porting problems to FreeBSD/arm, which has time_t wider than
30069 long int. Original problem reported for GNU diff by Xin Li in
30070 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
30071 * modules/getdate (Depends-on): Add intprops, verify.
30072 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
30073 is an integer type no wider than long int.
30075 2007-06-18 Jim Meyering <jim@meyering.net>
30077 New module: mreadlink-with-size.
30078 * MODULES.html.sh: Add mreadlink-with-size.
30079 * modules/mreadlink-with-size: New module
30080 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
30081 not xreadlink-with-size.
30082 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
30084 2007-06-16 Bruno Haible <bruno@clisp.org>
30086 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
30087 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
30088 Reported by Gary V. Vaughan <gary@gnu.org>.
30090 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
30092 Revamp lchown so that it lives in unistd.h where it belongs.
30093 * lib/lchown.h: Remove.
30094 * lib/dirchownmod.c: Don't include lib/lchown.h.
30095 * lib/fchownat.c: Likewise.
30096 * lib/openat.c: Likewise.
30097 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
30098 does not follow symlinks.
30099 (EOPNOTSUPP): Define if not defined.
30100 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
30102 (lchown): New decl.
30103 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
30104 Do not check for lchown decl.
30105 Set REPLACE_LCHOWN.
30106 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
30108 * modules/chown: Make it clear it follows symlinks.
30109 * modules/lchown: Make it clear it doesn't follow symlinks.
30110 (Files): Remove lib/lchown.h
30111 (Depends-on): Add unistd.
30112 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
30113 (Include): Include <unistd.h>, not "lchown.h".
30114 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
30117 2007-06-15 Jim Meyering <jim@meyering.net>
30119 Change license (GPL to LGPL) of fsusage and dependents.
30120 * modules/fsusage (License): Change to LGPL.
30121 * modules/full-read (License): Likewise.
30122 * modules/full-write (License): Likewise.
30123 * modules/safe-read (License): Likewise.
30124 * modules/safe-write (License): Likewise.
30126 2007-06-14 Ben Pfaff <blp@gnu.org>
30128 Missing part of allocsa -> malloca transition.
30129 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
30132 2007-06-12 Bruno Haible <bruno@clisp.org>
30134 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
30135 to ia64, x86_64, i386.
30136 Reported by Eric Blake.
30138 2007-06-12 Bruno Haible <bruno@clisp.org>
30140 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
30141 cross-compiling to x86_64.
30143 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
30145 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
30146 glitch reported by Ralf Wildenhues in
30147 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
30149 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
30152 2007-06-11 Bruno Haible <bruno@clisp.org>
30154 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
30155 replacement string.
30156 Reported by Eric Blake.
30158 2007-06-10 Bruno Haible <bruno@clisp.org>
30160 Prepare vasnprintf code for use with Unicode strings.
30161 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
30162 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
30164 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
30165 a_u32_string variants.
30166 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30167 * lib/printf-args.c: Don't include config.h and the specification
30168 header if PRINTF_FETCHARGS is already defined.
30169 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30170 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
30171 TYPE_U16_STRING, TYPE_U32_STRING.
30172 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
30173 u16_directive, u16_directives, u32_directive, u32_directives): New
30175 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
30177 * lib/printf-parse.c: Don't include config.h and the specification
30178 header if PRINTF_PARSE is already defined. Eliminate the set of
30179 parameters for WIDE_CHAR_VERSION; the user of this file must provide
30180 them now. Include c-ctype.h.
30181 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
30182 directive and CHAR_T_ONLY_ASCII.
30183 * lib/vasnprintf.c: Don't include config.h and the specification header
30184 if VASNPRINTF is already defined.
30185 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
30186 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
30187 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
30188 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
30189 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
30190 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
30192 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
30193 pad_ourselves also in this case, with the 'c' and 's' directives, and
30194 with a different notion of "width".
30195 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
30197 2007-06-10 Bruno Haible <bruno@clisp.org>
30199 * modules/unistr/u32-mbsnlen: New file.
30200 * lib/unistr/u32-mbsnlen.c: New file.
30202 * modules/unistr/u16-mbsnlen: New file.
30203 * lib/unistr/u16-mbsnlen.c: New file.
30205 * modules/unistr/u8-mbsnlen: New file.
30206 * lib/unistr/u8-mbsnlen.c: New file.
30208 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
30211 2007-06-10 Bruno Haible <bruno@clisp.org>
30213 * lib/string_.h (mbsnlen): New declaration.
30214 * lib/mbsnlen.c: New file.
30215 * m4/mbsnlen.m4: New file.
30216 * modules/mbsnlen: New file.
30217 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
30218 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
30219 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
30221 2007-06-10 Bruno Haible <bruno@clisp.org>
30223 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
30225 2007-06-10 Bruno Haible <bruno@clisp.org>
30227 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
30228 * lib/mbuiter.h: Likewise.
30230 2007-06-10 Bruno Haible <bruno@clisp.org>
30232 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
30235 2007-06-10 Karl Berry <karl@gnu.org>
30237 * config/srclist.txt: remove gettext entries, Bruno prefers
30238 to update individually.
30240 2007-06-10 Bruno Haible <bruno@clisp.org>
30242 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
30243 'maxlen'. Ensure only length + width bytes are allocated, not
30244 length + 1 + width.
30246 2007-06-09 Bruno Haible <bruno@clisp.org>
30248 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
30249 (CHAR_T): Remove macro.
30250 (VASNPRINTF): Update.
30252 2007-06-09 Bruno Haible <bruno@clisp.org>
30254 * MODULES.html.sh (Unicode string functions): Add the new modules.
30256 * modules/uniconv/u32-conv-to-enc: New file.
30257 * lib/uniconv/u32-conv-to-enc.c: New file.
30258 * modules/uniconv/u32-conv-to-enc-tests: New file.
30259 * tests/uniconv/test-u32-conv-to-enc.c: New file.
30261 * modules/uniconv/u16-conv-to-enc: New file.
30262 * lib/uniconv/u16-conv-to-enc.c: New file.
30263 * lib/uniconv/u-conv-to-enc.h: New file.
30264 * modules/uniconv/u16-conv-to-enc-tests: New file.
30265 * tests/uniconv/test-u16-conv-to-enc.c: New file.
30267 * modules/uniconv/u8-conv-to-enc: New file.
30268 * lib/uniconv/u8-conv-to-enc.c: New file.
30269 * modules/uniconv/u8-conv-to-enc-tests: New file.
30270 * tests/uniconv/test-u8-conv-to-enc.c: New file.
30272 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30273 u32_conv_to_encoding): New declarations.
30275 2007-06-09 Bruno Haible <bruno@clisp.org>
30277 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
30279 2007-06-09 Bruno Haible <bruno@clisp.org>
30281 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
30282 * modules/malloca: Renamed from modules/allocsa, updated.
30283 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
30284 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
30285 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
30286 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
30287 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
30288 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
30289 * modules/xmalloca: Renamed from modules/xallocsa, updated.
30290 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
30291 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
30292 * modules/c-strcasestr (Depends-on): Update.
30293 * lib/c-strcasestr.c: Update.
30294 * modules/c-strstr (Depends-on): Update.
30295 * lib/c-strstr.c: Update.
30296 * modules/canonicalize-lgpl (Depends-on): Update.
30297 * lib/canonicalize-lgpl.c: Update.
30298 * modules/clean-temp (Depends-on): Update.
30299 * lib/clean-temp.c: Update.
30300 * modules/csharpcomp (Depends-on): Update.
30301 * lib/csharpcomp.c: Update.
30302 * modules/csharpexec (Depends-on): Update.
30303 * lib/csharpexec.c: Update.
30304 * modules/javacomp (Depends-on): Update.
30305 * lib/javacomp.c: Update.
30306 * modules/javaexec (Depends-on): Update.
30307 * lib/javaexec.c: Update.
30308 * modules/mbscasestr (Depends-on): Update.
30309 * lib/mbscasestr.c: Update.
30310 * modules/mbsstr (Depends-on): Update.
30311 * lib/mbsstr.c: Update.
30312 * modules/setenv (Depends-on): Update.
30313 * lib/setenv.c: Update.
30314 * modules/strcasestr (Depends-on): Update.
30315 * lib/strcasestr.c: Update.
30316 * modules/striconveha (Depends-on): Update.
30317 * lib/striconveha.c: Update.
30318 * modules/relocatable-prog-wrapper (Files): Update.
30319 * lib/relocwrapper.c: Update.
30320 * build-aux/install-reloc: Update.
30321 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
30323 2007-06-08 Bruno Haible <bruno@clisp.org>
30326 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
30327 * lib/fpurge.c (fpurge): Likewise.
30328 * lib/freading.c (freading): Likewise.
30329 * lib/fseeko.c (rpl_fseeko): Likewise.
30330 * lib/fseterr.c (fseterr): Likewise.
30331 * lib/fwriting.c (fwriting): Likewise.
30332 * tests/test-fflush.c (main): Avoid a failure on uClibc.
30334 2007-06-08 Bruno Haible <bruno@clisp.org>
30336 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
30337 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
30338 * modules/gettext (Files): Add m4/intlmacosx.m4.
30340 2007-06-07 Bruno Haible <bruno@clisp.org>
30342 * modules/localename-tests: New file.
30343 * tests/test-localename.c: New file.
30345 New module 'localename'.
30346 * lib/localename.h: New file.
30347 * lib/localename.c: New file, from GNU gettext.
30348 * m4/localename.m4: New file.
30349 * modules/localename: New file.
30351 2007-06-07 Bruno Haible <bruno@clisp.org>
30353 Work around the lack of <wchar.h> on some builds of uClibc.
30354 * doc/headers/wchar.texi: Update.
30355 * lib/wchar_.h: Include <wchar.h> only if it exists.
30356 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
30357 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
30358 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
30360 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
30361 * modules/mbfile (Depends-on): Add wchar.
30362 * modules/mbiter (Depends-on): Likewise.
30363 * modules/mbuiter (Depends-on): Likewise.
30364 Reported by Simon Josefsson.
30366 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
30368 Work around problem reported by Steven M. Schweda in
30369 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
30370 Tru64 5.1B with the Compaq compiler environment installed declares
30371 an 'isblank' function but does not define it in the C library.
30372 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
30373 * lib/regex_internal.h (isblank): Likewise.
30374 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
30375 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30377 2007-06-05 Bruno Haible <bruno@clisp.org>
30379 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
30381 * modules/printf-safe: New file.
30382 * modules/fprintf-posix (Depends-on): Add printf-safe.
30383 * modules/printf-posix (Depends-on): Likewise.
30384 * modules/snprintf-posix (Depends-on): Likewise.
30385 * modules/sprintf-posix (Depends-on): Likewise.
30386 * modules/vasnprintf-posix (Depends-on): Likewise.
30387 * modules/vasprintf-posix (Depends-on): Likewise.
30388 * modules/vfprintf-posix (Depends-on): Likewise.
30389 * modules/vprintf-posix (Depends-on): Likewise.
30390 * modules/vsnprintf-posix (Depends-on): Likewise.
30391 * modules/vsprintf-posix (Depends-on): Likewise.
30392 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30393 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
30394 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
30395 "no" on i386, x86_64, ia64.
30396 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
30397 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30398 on i386, x86_64, ia64.
30399 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
30400 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30401 on i386, x86_64, ia64.
30402 * tests/test-vasnprintf-posix.c: Include float.h.
30403 (LDBL80_WORDS): New macro.
30404 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30405 on i386, x86_64, ia64.
30406 * tests/test-vasprintf-posix.c: Include float.h.
30407 (LDBL80_WORDS): New macro.
30408 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30409 on i386, x86_64, ia64.
30410 * tests/test-snprintf-posix.c: Include float.h.
30411 * tests/test-sprintf-posix.c: Likewise.
30412 * tests/test-vsnprintf-posix.c: Likewise.
30413 * tests/test-vsprintf-posix.c: Likewise.
30415 2007-06-05 Bruno Haible <bruno@clisp.org>
30417 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
30418 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
30419 non-IEEE numbers on i386, x86_64, ia64.
30420 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
30421 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
30422 * tests/test-isnanl.h: Include float.h.
30423 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
30425 2007-06-05 Bruno Haible <bruno@clisp.org>
30427 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
30428 also the %a / %A. Handle the %a / %A code before this extra handling.
30430 2007-06-05 Bruno Haible <bruno@clisp.org>
30432 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
30433 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
30435 2007-06-05 Bruno Haible <bruno@clisp.org>
30437 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
30438 typo in variable name.
30440 2007-06-05 Eric Blake <ebb9@byu.net>
30442 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
30443 Reported by Simon Josefsson.
30445 2007-06-04 Bruno Haible <bruno@clisp.org>
30447 Avoid test failures on some PowerPC platforms.
30448 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
30449 Define differently for PowerPC.
30450 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
30451 Reported by Gary V. Vaughan <gary@gnu.org>.
30453 2007-06-02 Bruno Haible <bruno@clisp.org>
30455 Fix test-stdint failure on FreeBSD/ia64.
30456 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
30457 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
30458 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
30459 * doc/headers/stdint.texi: Update.
30461 2007-06-01 Bruno Haible <bruno@clisp.org>
30463 * tests/test-binary-io.c (main): Pass a third argument to open().
30464 Reported by Gary V. Vaughan <gary@gnu.org>.
30466 2007-06-01 Bruno Haible <bruno@clisp.org>
30468 * doc/functions/frexpl.texi: Update for mingw.
30470 2007-06-01 Bruno Haible <bruno@clisp.org>
30472 * tests/test-lseek.c (main): Disable test of errno for invalid third
30474 * doc/functions/lseek.texi: Update.
30475 Reported by Gary V. Vaughan <gary@gnu.org>.
30477 2007-05-28 Bruno Haible <bruno@clisp.org>
30479 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
30481 2007-05-31 Eric Blake <ebb9@byu.net>
30483 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
30486 2007-05-30 Eric Blake <ebb9@byu.net>
30487 and Bruno Haible <bruno@clisp.org>
30489 Work around mingw test failures exposed by m4-1.4.9b.
30490 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
30491 * tests/test-unistd.c: Disable uid_t and git_t tests for the
30494 2007-05-30 Bruno Haible <bruno@clisp.org>
30496 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
30497 assuming that they are closed. Needed on HP-UX 11.
30499 2007-05-29 Bruno Haible <bruno@clisp.org>
30501 Fix a problem with #include_next.
30502 * lib/dirent_.h: Split the double-inclusion guard.
30503 * lib/fcntl_.h: Likewise.
30504 * lib/float_.h: Likewise.
30505 * lib/iconv_.h: Likewise.
30506 * lib/inttypes_.h: Likewise.
30507 * lib/locale_.h: Likewise.
30508 * lib/math_.h: Likewise.
30509 * lib/netinet_in_.h: Likewise.
30510 * lib/search_.h: Likewise.
30511 * lib/signal_.h: Likewise.
30512 * lib/stdint_.h: Likewise.
30513 * lib/stdio_.h: Likewise.
30514 * lib/stdlib_.h: Likewise.
30515 * lib/string_.h: Likewise.
30516 * lib/sys_select_.h: Likewise.
30517 * lib/sys_socket_.h: Likewise.
30518 * lib/sys_stat_.h: Likewise.
30519 * lib/sys_time_.h: Likewise.
30520 * lib/sysexits_.h: Likewise.
30521 * lib/time_.h: Likewise.
30522 * lib/unistd_.h: Likewise.
30523 * lib/wchar_.h: Likewise.
30524 * lib/wctype_.h: Likewise.
30526 2007-05-29 Bruno Haible <bruno@clisp.org>
30528 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
30531 2007-05-29 Bruno Haible <bruno@clisp.org>
30533 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
30535 Reported by Eric Blake.
30537 2007-05-29 Bruno Haible <bruno@clisp.org>
30539 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
30542 2007-05-29 Eric Blake <ebb9@byu.net>
30543 Bruno Haible <bruno@clisp.org>
30545 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
30548 2007-05-28 Eric Blake <ebb9@byu.net>
30550 * modules/closein-tests (test_closein_LDADD): Support test on
30551 cygwin with libtool.
30553 2007-05-28 Bruno Haible <bruno@clisp.org>
30555 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
30556 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30557 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30558 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30559 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30560 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30561 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30562 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30563 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30565 2007-05-28 Eric Blake <ebb9@byu.net>
30567 Unconditionally include <config.h> in unit tests.
30568 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
30569 * tests/test-allocsa.c, tests/test-arcfour.c,
30570 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
30571 tests/test-array_list.c, tests/test-array_oset.c,
30572 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
30573 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
30574 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
30575 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
30576 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
30577 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
30578 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
30579 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
30580 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
30581 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
30582 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
30583 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
30584 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
30585 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
30586 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
30587 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
30588 test-md5.c, test-memmem.c, test-printf-posix.c,
30589 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
30590 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
30591 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
30592 test-strcasestr.c, test-striconv.c, test-striconveh.c,
30593 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
30594 test-vasnprintf-posix2.c, test-vasnprintf.c,
30595 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
30596 test-vfprintf-posix.c, test-vprintf-posix.c,
30597 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
30598 test-xvasprintf.c: Likewise.
30600 2007-05-28 Bruno Haible <bruno@clisp.org>
30602 * gnulib-tool (func_import): Remember the --with-tests command-line
30603 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
30604 Reported by Eric Blake.
30606 2007-05-28 Bruno Haible <bruno@clisp.org>
30608 * modules/ftell-tests: New file.
30609 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
30610 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
30612 * lib/ftell.c: New file.
30613 * modules/ftell: New file.
30614 * m4/ftell.m4: New file.
30615 * doc/functions/ftell.texi: Update.
30616 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
30618 * lib/stdio_.h (rpl_ftell): New declaration.
30619 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
30622 2007-05-28 Eric Blake <ebb9@byu.net>
30624 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
30626 2007-05-28 Bruno Haible <bruno@clisp.org>
30628 * modules/fseek-tests: New file.
30629 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
30630 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
30632 * lib/fseek.c: New file.
30633 * modules/fseek: New file.
30634 * m4/fseek.m4: New file.
30635 * doc/functions/fseek.texi: Update.
30636 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
30638 * lib/stdio_.h (rpl_fseek): New declaration.
30639 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
30642 2007-05-28 Bruno Haible <bruno@clisp.org>
30644 * lib/stdio_.h (fflush): More comments.
30646 2007-05-28 Bruno Haible <bruno@clisp.org>
30648 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
30651 2007-05-28 Eric Blake <ebb9@byu.net>
30653 Improve lseek module.
30654 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
30655 * lib/unistd_.h (lseek): Scale back link warning message.
30656 * tests/test-lseek.c: Beef up test.
30657 * tests/test-lseek.sh: Exercise more facets of lseek.
30658 Reported by Bruno Haible.
30660 2007-05-28 Bruno Haible <bruno@clisp.org>
30662 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
30665 2007-05-27 Bruno Haible <bruno@clisp.org>
30667 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
30669 2007-05-27 Bruno Haible <bruno@clisp.org>
30671 * modules/openmp: New file.
30672 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
30675 2007-05-26 Bruno Haible <bruno@clisp.org>
30677 * modules/chdir-long (Depends-on): Add fchdir.
30678 * modules/chdir-safer (Depends-on): Likewise.
30679 * modules/fts (Depends-on): Likewise.
30680 * modules/fts-lgpl (Depends-on): Likewise.
30681 * modules/openat (Depends-on): Likewise.
30682 * modules/savewd (Depends-on): Likewise.
30684 2007-05-24 Eric Blake <ebb9@byu.net>
30686 Fix lseek on mingw.
30687 * modules/lseek: New module.
30688 * m4/lseek.m4: New file.
30689 * lib/lseek.c: New file.
30690 * modules/lseek-tests: New file.
30691 * tests/test-lseek.c: New file.
30692 * tests/test-lseek.sh: New file.
30693 * MODULES.html.sh: Document lseek module.
30694 * modules/fflush (Depends-on): Add lseek, fseeko.
30695 * modules/fseeko (Depends-on): Likewise.
30696 * modules/ftello (Depends-on): Likewise.
30697 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
30699 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
30701 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
30702 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
30703 * lib/ftello.c (rpl_ftello): Likewise.
30704 * tests/test-fseeko.c (main): Test this.
30705 * tests/test-fseeko.sh: Likewise.
30706 * tests/test-ftello.c (main): Likewise.
30707 * tests/test-ftello.sh: Likewise.
30708 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
30709 implies replacing fseek.
30710 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
30712 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
30713 * modules/unistd (Makefile.am): Likewise.
30714 * lib/unistd_.h (lseek): Declare a replacement.
30715 * doc/functions/lseek.texi (lseek): Document this fix.
30716 * doc/functions/fseek.texi (fseek): Likewise.
30717 * doc/functions/ftell.texi (ftell): Likewise.
30719 2007-05-24 Bruno Haible <bruno@clisp.org>
30721 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
30722 in the printed representation of a NaN.
30723 * tests/test-vasprintf-posix.c (test_function): Likewise.
30724 * tests/test-snprintf-posix.h (test_function): Likewise.
30725 * tests/test-sprintf-posix.h (test_function): Likewise.
30726 Reported by Eric Blake.
30728 2007-05-23 Eric Blake <ebb9@byu.net>
30730 Fix fseeko/ftello on cygwin 1.5.24.
30731 * doc/functions/fseeko.texi (fseeko): Document the fix.
30732 * doc/functions/ftello.texi (ftello): Document the fix.
30733 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
30734 * doc/functions/stdout.text (stdout): New file.
30735 * doc/functions/stderr.text (stderr): New file.
30736 * doc/gnulib.texi (Function Substitutes): Use new files.
30737 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
30739 * tests/test-ftello.c (main): Likewise for ftello.
30740 * tests/test-fseeko.sh: New file.
30741 * tests/test-ftello.sh: New file.
30742 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
30743 with seekable stdin.
30744 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
30745 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
30746 (gl_REPLACE_FSEEKO): New macro.
30747 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
30748 * modules/fseeko (Files): Distribute fseeko.c.
30749 * modules/ftello (Files): Distribute ftello.c.
30750 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
30752 * lib/ftello.c (rpl_ftello): New file.
30753 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
30755 (gl_STDIN_LARGE_OFFSET): New macro.
30756 * modules/stdio (Makefile.am): Perform the replacement.
30757 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
30759 2007-05-23 Bruno Haible <bruno@clisp.org>
30761 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
30762 GNULIB_POSIXCHECK is defined.
30764 2007-05-21 Bruno Haible <bruno@clisp.org>
30766 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
30767 Check also the output for NaN arguments. When cross-compiling, guess
30769 * lib/vasnprintf.c: Update comments.
30770 * tests/test-vasnprintf-posix.c (strisnan): New function.
30771 (test_function): Use it.
30772 * tests/test-vasprintf-posix.c (strisnan): New function.
30773 (test_function): Use it.
30774 * tests/test-snprintf-posix.h (strisnan): New function.
30775 (test_function): Use it.
30776 * tests/test-sprintf-posix.h (strisnan): New function.
30777 (test_function): Use it.
30778 Reported by Eric Blake.
30780 2007-05-20 Bruno Haible <bruno@clisp.org>
30782 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
30783 numbers that fails on BeOS.
30784 * doc/functions/frexpl.texi: Update.
30786 2007-05-20 Jim Meyering <jim@meyering.net>
30788 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
30789 forced upon us by glibc-2.6.
30791 2007-05-20 Bruno Haible <bruno@clisp.org>
30793 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
30794 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
30795 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
30796 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
30797 NEED_PRINTF_INFINITE.
30798 (is_infinitel): New function.
30799 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
30800 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
30801 gl_PREREQ_VASNPRINTF_INFINITE.
30802 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
30803 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30804 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
30805 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
30806 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
30807 gl_PREREQ_VASNPRINTF_INFINITE.
30808 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30809 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30810 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30811 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30812 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30813 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30814 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30815 * doc/functions/fprintf.texi: Update.
30816 * doc/functions/printf.texi: Update.
30817 * doc/functions/snprintf.texi: Update.
30818 * doc/functions/sprintf.texi: Update.
30819 * doc/functions/vfprintf.texi: Update.
30820 * doc/functions/vprintf.texi: Update.
30821 * doc/functions/vsnprintf.texi: Update.
30822 * doc/functions/vsprintf.texi: Update.
30824 2007-05-20 Bruno Haible <bruno@clisp.org>
30826 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
30827 was not found in libc.
30828 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30830 2007-05-20 Bruno Haible <bruno@clisp.org>
30832 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30833 printed as "-nan" instead of "nan".
30834 * tests/test-vasprintf-posix.c (test_function): Likewise.
30835 * tests/test-snprintf-posix.h (test_function): Likewise.
30836 * tests/test-sprintf-posix.h (test_function): Likewise.
30837 Needed for HP-UX 11.
30839 2007-05-20 Jim Meyering <jim@meyering.net>
30841 Fix buggy test for the fchownat-deref bug.
30842 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
30843 symlink required for the run-test. Without it, this test would
30844 always declare that fchownat doesn't work, and client code would
30845 unnecessarily use the replacement function with fixed libc.
30846 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
30847 Reported by Greg Schafer.
30849 2007-05-19 Bruno Haible <bruno@clisp.org>
30851 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
30852 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
30853 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
30854 Needed for IRIX 6.5 and Solaris 2.5.1.
30856 2007-05-19 Bruno Haible <bruno@clisp.org>
30858 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
30859 (test_function): Skip tests involving -0.0 on platforms where
30861 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
30862 (test_function): Skip tests involving -0.0 on platforms where
30864 * tests/test-snprintf-posix.h (have_minus_zero): New function.
30865 (test_function): Skip tests involving -0.0 on platforms where
30867 * tests/test-sprintf-posix.h (have_minus_zero): New function.
30868 (test_function): Skip tests involving -0.0 on platforms where
30870 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
30872 * tests/test-printf-posix.h (test_function): Likewise.
30873 * tests/test-printf-posix.output: Remove all -0.0 related results.
30874 Needed for IRIX 6.5.
30876 2007-05-19 Bruno Haible <bruno@clisp.org>
30878 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30879 printed as "nan0x7fffffff" instead of "nan".
30880 * tests/test-vasprintf-posix.c (test_function): Likewise.
30881 * tests/test-snprintf-posix.h (test_function): Likewise.
30882 * tests/test-sprintf-posix.h (test_function): Likewise.
30883 * tests/test-fprintf-posix.h (NaN): Remove macro.
30884 (test_function): Remove all NaN related tests.
30885 * tests/test-printf-posix.h (NaN): Remove macro.
30886 (test_function): Remove all NaN related tests.
30887 * tests/test-printf-posix.output: Remove all NaN related results.
30888 Needed for IRIX 6.5.
30890 2007-05-19 Bruno Haible <bruno@clisp.org>
30892 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
30893 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30895 2007-05-19 Bruno Haible <bruno@clisp.org>
30897 * lib/float_.h: New file.
30898 * m4/float_h.m4: New file.
30899 * modules/float: New file.
30900 * modules/isnanl (Dependencies): Add float.
30901 * modules/isnanl-nolibm (Dependencies): Likewise.
30902 * modules/mathl (Dependencies): Likewise.
30903 * modules/printf-frexpl (Dependencies): Likewise.
30904 * modules/signbit (Dependencies): Likewise.
30905 * modules/vasnprintf (Dependencies): Likewise.
30906 * doc/headers/float.texi: Update.
30908 2007-05-19 Jim Meyering <jim@meyering.net>
30910 * lib/utimens.c (gl_futimens): Rename from futimens,
30911 now that glibc-2.6 declares futimens.
30912 * lib/utimens.h: Likewise.
30914 2007-05-19 Bruno Haible <bruno@clisp.org>
30916 Avoid test failures on mingw.
30917 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
30918 * tests/test-printf-posix.sh: Likewise.
30919 * tests/test-vfprintf-posix.sh: Likewise.
30920 * tests/test-vprintf-posix.sh: Likewise.
30922 2007-05-19 Bruno Haible <bruno@clisp.org>
30924 Fix *printf result for NaN, Inf, -0.0 on mingw.
30925 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
30926 * lib/vasnprintf.c: Include math.h and isnan.h.
30927 (is_infinite_or_zero): New function.
30928 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
30929 values in the %f, %F, %e, %E, %g, %G directives.
30930 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
30931 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30932 gl_PRINTF_INFINITE and test its result. Invoke
30933 gl_PREREQ_VASNPRINTF_INFINITE.
30934 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30935 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30936 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30937 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30938 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30939 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30940 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30941 * doc/functions/fprintf.texi: Update.
30942 * doc/functions/printf.texi: Update.
30943 * doc/functions/snprintf.texi: Update.
30944 * doc/functions/sprintf.texi: Update.
30945 * doc/functions/vfprintf.texi: Update.
30946 * doc/functions/vprintf.texi: Update.
30947 * doc/functions/vsnprintf.texi: Update.
30948 * doc/functions/vsprintf.texi: Update.
30950 2007-05-19 Bruno Haible <bruno@clisp.org>
30952 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
30953 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
30954 Instead of multiplying with 10^k, set extra_zeroes to k.
30955 (scale10_round_long_double): Remove function.
30957 2007-05-18 Bruno Haible <bruno@clisp.org>
30959 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
30960 introduced on 2007-05-06.
30962 2007-05-18 Bruno Haible <bruno@clisp.org>
30964 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
30966 * tests/test-vasprintf-posix.c (test_function): Likewise.
30967 * tests/test-snprintf-posix.h (test_function): Likewise.
30968 * tests/test-sprintf-posix.h (test_function): Likewise.
30970 2007-05-18 Bruno Haible <bruno@clisp.org>
30972 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
30973 (strmatch): New function.
30974 (test_function): Test the %f directive on numbers of various exponents.
30975 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
30976 (strmatch): New function.
30977 (test_function): Test the %f directive on numbers of various exponents.
30978 * tests/test-snprintf-posix.h (strmatch): New function.
30979 (test_function): Test the %f directive on numbers of various exponents.
30980 * tests/test-sprintf-posix.h (strmatch): New function.
30981 (test_function): Test the %f directive on numbers of various exponents.
30982 * tests/test-snprintf-posix.c (SIZEOF): New macro.
30983 * tests/test-sprintf-posix.c (SIZEOF): New macro.
30984 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
30985 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
30987 2007-05-18 Bruno Haible <bruno@clisp.org>
30989 Add support for 'long double' number output.
30990 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
30991 * lib/vasnprintf.c: Include math.h and float+.h.
30992 (mp_limb_t): New type.
30993 (GMP_LIMB_BITS): New macro.
30994 (mp_twolimb_t): New type.
30995 (GMP_TWOLIMB_BITS): New macro.
30997 (multiply, divide, convert_to_decimal, decode_long_double,
30998 scale10_round_long_double, scale10_round_decimal_long_double,
30999 floorlog10l): New functions.
31000 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
31001 for the %f, %F, %e, %E, %g, %G directives.
31002 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
31003 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31004 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
31005 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
31006 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31007 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31008 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31009 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31010 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31011 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31012 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31013 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
31014 * modules/snprintf-posix (Depends-on): Likewise.
31015 * modules/sprintf-posix (Depends-on): Likewise.
31016 * modules/vasnprintf-posix (Depends-on): Likewise.
31017 * modules/vasprintf-posix (Depends-on): Likewise.
31018 * modules/vfprintf-posix (Depends-on): Likewise.
31019 * modules/vsnprintf-posix (Depends-on): Likewise.
31020 * modules/vsprintf-posix (Depends-on): Likewise.
31021 * modules/vasnprintf (Files): Add lib/float+.h.
31022 * doc/functions/fprintf.texi: Update.
31023 * doc/functions/printf.texi: Update.
31024 * doc/functions/snprintf.texi: Update.
31025 * doc/functions/sprintf.texi: Update.
31026 * doc/functions/vfprintf.texi: Update.
31027 * doc/functions/vprintf.texi: Update.
31028 * doc/functions/vsnprintf.texi: Update.
31029 * doc/functions/vsprintf.texi: Update.
31031 2007-05-18 Bruno Haible <bruno@clisp.org>
31033 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
31035 2007-05-18 Bruno Haible <bruno@clisp.org>
31037 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
31038 for printing 64-bit integers. Needed for mingw.
31040 2007-05-18 Bruno Haible <bruno@clisp.org>
31042 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
31043 gl_FUNC_FREXPL_WORKS.
31044 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
31046 2007-05-18 Bruno Haible <bruno@clisp.org>
31048 * modules/frexpl-nolibm-tests: New file.
31050 * modules/frexpl-nolibm: New file.
31051 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
31053 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
31055 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
31056 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
31057 GCC 4.2, which otherwise issues a lot of warnings.
31058 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
31059 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
31061 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
31062 * modules/iconv_open (iconv.h): Likewise.
31063 * modules/locale (locale.h): Likewise.
31064 * modules/netinet_in (netinet/in.h): Likewise.
31065 * modules/sys_select (sys_select.h): Likewise.
31066 * modules/sys_socket (sys/socket.h): Likewise.
31067 * modules/sys_stat (sys/stat.h): Likewise.
31068 * modules/sysexits (sysexits.h): Likewise.
31069 * modules/unistd (unistd.h): Likewise.
31071 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31073 * modules/closein-tests (Makefile.am): Distribute
31076 2007-05-17 Bruno Haible <bruno@clisp.org>
31078 * tests/test-printf-posix.output: Renamed from
31079 tests/test-fprintf-posix.out.
31080 * modules/fprintf-posix-tests: Update.
31081 * modules/printf-posix-tests: Update.
31082 * modules/vfprintf-posix-tests: Update.
31083 * modules/vprintf-posix-tests: Update.
31084 * tests/test-fprintf-posix.sh: Update.
31085 * tests/test-printf-posix.sh: Update.
31086 * tests/test-vfprintf-posix.sh: Update.
31087 * tests/test-vprintf-posix.sh: Update.
31088 Reported by Ralf Wildenhues.
31090 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
31092 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
31093 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
31094 GCC 4.2, which otherwise issues a lot of warnings.
31095 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
31096 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
31097 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
31098 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
31099 it should no longer be needed.
31100 * lib/string_.h: Likewise.
31101 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
31102 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
31103 * modules/inttypes (inttypes.h): Likewise.
31104 * modules/math (math.h): Likewise.
31105 * modules/search (search.h): Likewise.
31106 * modules/signal (signal.h): Likewise.
31107 * modules/stdint (stdint.h): Likewise.
31108 * modules/stdio (stdio.h): Likewise.
31109 * modules/stdlib (stdlib.h): Likewise.
31110 * modules/string (string.h): Likewise.
31111 * modules/sys_time (sys/time.h): Likewise.
31112 * modules/time (time.h): Likewise.
31113 * modules/wchar (wchar.h): Likewise.
31114 * modules/wctype (wtype.h): Likewise.
31116 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
31118 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
31120 2007-05-13 Bruno Haible <bruno@clisp.org>
31122 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
31123 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31124 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
31125 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
31126 (gl_PREREQ_STRTOK_R): Don't require it here.
31128 2007-05-13 Bruno Haible <bruno@clisp.org>
31130 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
31131 when used in C++ mode.
31133 2007-05-12 Bruno Haible <bruno@clisp.org>
31135 * lib/linebuffer.h: Tweak doc.
31136 * lib/linebuffer.c: Likewise.
31138 2007-05-12 James Youngman <jay@gnu.org>
31140 * lib/linebuffer.c (readlinebuffer_delim): New function,
31141 like readlinebuffer, but use a caller-specified delimiter.
31142 (readlinebuffer): Just call readlinebuffer_delim with '\n'
31144 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
31146 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
31148 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
31149 * modules/openat (Files): Remove openat-die.c.
31150 (Depends-on): Add openat-die.
31151 * modules/openat-die: New module.
31153 2007-05-06 Bruno Haible <bruno@clisp.org>
31155 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
31156 Update with info about Cygwin.
31157 * doc/functions/fprintf.texi: Update.
31158 * doc/functions/printf.texi: Update.
31159 * doc/functions/snprintf.texi: Update.
31160 * doc/functions/sprintf.texi: Update.
31161 * doc/functions/vfprintf.texi: Update.
31162 * doc/functions/vprintf.texi: Update.
31163 * doc/functions/vsnprintf.texi: Update.
31164 * doc/functions/vsprintf.texi: Update.
31165 Reported by Eric Blake.
31167 2007-05-06 Bruno Haible <bruno@clisp.org>
31169 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
31170 padding ourselves for the floating-point directives.
31171 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
31172 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
31173 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31174 gl_PRINTF_FLAG_ZERO and test its result. Invoke
31175 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
31176 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31177 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31178 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31179 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31180 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31181 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31182 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31183 * tests/test-snprintf-posix.h (test_function): Also check the width
31184 and some flags in the %f directive.
31185 * tests/test-sprintf-posix.h (test_function): Likewise.
31186 * tests/test-vasnprintf-posix.c (test_function): Likewise.
31187 * tests/test-vasprintf-posix.c (test_function): Likewise.
31188 * doc/functions/fprintf.texi: Update.
31189 * doc/functions/printf.texi: Update.
31190 * doc/functions/snprintf.texi: Update.
31191 * doc/functions/sprintf.texi: Update.
31192 * doc/functions/vfprintf.texi: Update.
31193 * doc/functions/vprintf.texi: Update.
31194 * doc/functions/vsnprintf.texi: Update.
31195 * doc/functions/vsprintf.texi: Update.
31197 2007-05-06 Bruno Haible <bruno@clisp.org>
31199 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
31200 pass the ' flag character to sprintf or snprintf.
31201 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
31202 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
31203 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31204 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
31205 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
31206 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31207 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31208 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31209 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31210 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31211 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31212 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31213 * tests/test-snprintf-posix.h (test_function): Also check the grouping
31215 * tests/test-sprintf-posix.h (test_function): Likewise.
31216 * tests/test-vasnprintf-posix.c (test_function): Likewise.
31217 * tests/test-vasprintf-posix.c (test_function): Likewise.
31218 * doc/functions/fprintf.texi: Update.
31219 * doc/functions/printf.texi: Update.
31220 * doc/functions/snprintf.texi: Update.
31221 * doc/functions/sprintf.texi: Update.
31222 * doc/functions/vfprintf.texi: Update.
31223 * doc/functions/vprintf.texi: Update.
31224 * doc/functions/vsnprintf.texi: Update.
31225 * doc/functions/vsprintf.texi: Update.
31227 2007-05-01 Bruno Haible <bruno@clisp.org>
31229 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
31231 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
31233 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
31234 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
31236 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
31238 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
31239 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
31240 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
31242 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
31244 * lib/argp-help.c (struct hol_entry): New member `ord'.
31245 (HOL_ENTRY_PTRCMP): Use ord for comparison
31246 (hol_sort): Initialize ord.
31248 2007-05-01 Bruno Haible <bruno@clisp.org>
31250 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
31251 Reported by Eric Blake.
31252 * doc/gnulib.texi (Function Substitutes): Update.
31254 2007-05-01 Bruno Haible <bruno@clisp.org>
31256 * doc/functions.texi: Remove file, now redundant through
31257 doc/functions/*.texi.
31259 2007-05-01 Bruno Haible <bruno@clisp.org>
31261 * modules/argp (Depends-on): Add sleep.
31263 2007-05-01 Bruno Haible <bruno@clisp.org>
31265 * modules/sleep-tests: New file.
31266 * tests/test-sleep.c: New file.
31268 * modules/sleep: New file.
31269 * lib/sleep.c: New file.
31270 * m4/sleep.m4: New file.
31271 * lib/unistd_.h (sleep): New declaration.
31272 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
31274 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
31275 * doc/functions/sleep.texi: Document the sleep module.
31277 2007-05-01 Bruno Haible <bruno@clisp.org>
31279 * lib/sigprocmask.h: Remove file.
31280 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
31281 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
31282 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
31283 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
31284 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
31285 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
31286 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
31287 HAVE_SIGSET_T as a shell variable.
31288 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
31289 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
31290 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
31291 (Depends-on): Add signal. Remove verify.
31292 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
31293 (Include): Mention <signal.h> instead of sigprocmask.h.
31294 * NEWS: Mention the change.
31295 * lib/fatal-signal.c: Don't include sigprocmask.h.
31297 2007-05-01 Bruno Haible <bruno@clisp.org>
31299 * modules/signal: New file.
31300 * lib/signal_.h: New file.
31301 * m4/signal_h.m4: New file.
31303 2007-05-01 Bruno Haible <bruno@clisp.org>
31305 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
31306 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
31307 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
31308 HAVE_WCTYPE_CTMP_BUG into wctype.h.
31310 2007-05-01 Bruno Haible <bruno@clisp.org>
31312 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
31314 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
31315 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
31316 * modules/sys_stat (Makefile.am): Substitute their values into
31319 2007-05-01 Bruno Haible <bruno@clisp.org>
31321 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
31322 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
31323 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
31325 2007-05-01 Bruno Haible <bruno@clisp.org>
31327 * doc/header/assert.texi: Undo last change: don't mention the gnulib
31328 'assert' module here.
31330 2007-05-01 Bruno Haible <bruno@clisp.org>
31332 * doc/functions/*.texi: New files.
31333 * doc/functions/google-ranking.txt: New file.
31334 * doc/gnulib.texi (Function Substitutes): New chapter.
31335 (ctime, inet_ntoa): Remove sections.
31336 * doc/ctime.texi: Remove file.
31337 * doc/inet_ntoa.texi: Remove file.
31338 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
31340 (%.info): New rule, specifying a --reference-limit.
31342 2007-05-01 Bruno Haible <bruno@clisp.org>
31344 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
31346 2007-05-01 Bruno Haible <bruno@clisp.org>
31348 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
31349 the portability of 'mkdir' to mingw systems.
31351 2007-05-01 Bruno Haible <bruno@clisp.org>
31353 * doc/headers/google-ranking.txt: New file.
31355 2007-04-30 Eric Blake <ebb9@byu.net>
31357 Prefer fseeko to fseek.
31358 * modules/getpass (Depends-on): Add fseeko.
31359 * lib/getpass.c (getpass): Use fseeko, not fseek.
31361 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
31363 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
31364 assumes the sorting is stable, while most qsort implementations
31365 are not. Use argument addresses to ensure they never compare as
31368 * tests/test-argp-2.sh (usage-indent test): Fix output
31369 (func_compare): Restore diff options
31370 * tests/test-argp.c: Restore #include "progname.h"
31372 2007-04-29 Bruno Haible <bruno@clisp.org>
31374 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
31375 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31376 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
31377 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31378 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
31379 (configure.ac): Define CHECK_SNPRINTF_POSIX.
31380 (TESTS, check_PROGRAMS): Add test-snprintf.
31381 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
31382 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
31383 (TESTS, check_PROGRAMS): Add test-vsnprintf.
31384 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
31385 assertions that fail on HP-UX, OSF/1, or IRIX.
31386 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
31388 2007-04-29 Bruno Haible <bruno@clisp.org>
31390 * MODULES.html.sh (posix_functions): Remove 'contents'.
31392 2007-04-29 Karl Berry <karl@gnu.org>
31394 * config/srclist.txt (gendocs_template_min): new entry.
31396 2007-04-29 Bruno Haible <bruno@clisp.org>
31398 Work around fpurge bug on BSD systems.
31399 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
31400 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
31401 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
31402 fpurge to rpl_fpurge if the system already has this function.
31403 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
31404 the case where the system already has this function. Correct invariants
31406 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
31409 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
31411 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
31412 proposed by Sven Verdoolaege.
31414 * tests/test-argp.c: Fix option ordering. Test deeply clustered
31416 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
31417 (usage and help tests): Update
31419 2007-04-29 Bruno Haible <bruno@clisp.org>
31421 * tests/test-fflush.c (main): Use a file of size 17, not 10.
31422 Print more information in case of failure. Disable a test on BeOS.
31424 2007-04-29 Bruno Haible <bruno@clisp.org>
31426 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
31427 This helps debugging on systems on which no gdb is available.
31429 2007-04-29 Bruno Haible <bruno@clisp.org>
31431 * lib/freading.h: Improve comments.
31432 * lib/fwriting.h: Likewise.
31433 * tests/test-freading.c (main): Don't check freading immediately after
31434 repositioning. Needed for glibc.
31436 2007-04-29 Bruno Haible <bruno@clisp.org>
31438 * lib/freading.c (freading): Trivial simplification.
31440 2007-04-28 Bruno Haible <bruno@clisp.org>
31442 * tests/test-fwriting.c (main): Also test the interaction between
31443 fflush and fwriting.
31444 * modules/fwriting-tests (Depends-on): Add fflush.
31446 * tests/test-freading.c (main): Also test the interaction between
31447 fflush and freading.
31448 * modules/freading-tests (Depends-on): Add fflush.
31450 2007-04-28 Bruno Haible <bruno@clisp.org>
31452 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
31454 Suggested by Eric Blake.
31456 2007-04-28 Jim Meyering <jim@meyering.net>
31458 Avoid false-negative in gl_STDINT_H's C99 conformance test.
31459 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
31460 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
31462 2007-04-27 Eric Blake <ebb9@byu.net>
31464 * doc/headers/assert.texi (assert.h): Document assert module use.
31466 2007-04-27 Bruno Haible <bruno@clisp.org>
31468 * doc/headers/*.texi: New files.
31469 * doc/gnulib.texi (Header File Substitutes): New chapter.
31470 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
31472 (standards.info ,standards.html, standards.dvi): Update dependencies.
31473 (mostlyclean, clean): New targets.
31475 2007-04-27 Bruno Haible <bruno@clisp.org>
31477 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
31478 * modules/sysexits (Files, Makefile.am): Update.
31480 * lib/sys_socket_.h: Renamed from lib/socket_.h.
31481 * modules/sys_socket (Files, Makefile.am): Update.
31483 * lib/sys_stat_.h: Renamed from lib/stat_.h.
31484 * modules/sys_stat (Files, Makefile.am): Update.
31486 2007-04-27 Eric Blake <ebb9@byu.net>
31488 * lib/freading.h: Improve comments.
31489 * lib/fwriting.h: Likewise.
31490 * lib/fflush.c: Likewise.
31492 Fix closein for mingw.
31493 * modules/closein-tests: Add tests for closein.
31494 * tests/test-closein.c: New file.
31495 * tests/test-closein.sh: Likewise.
31496 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
31497 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
31499 2007-04-27 Bruno Haible <bruno@clisp.org>
31501 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
31503 * lib/math_.h [__DECC]: Likewise.
31504 * lib/stdio_.h [__DECC]: Likewise.
31505 * lib/stdlib_.h [__DECC]: Likewise.
31506 * lib/string_.h [__DECC]: Likewise.
31507 * lib/time_.h [__DECC]: Likewise.
31508 * lib/wchar_.h [__DECC]: Likewise.
31509 * lib/wctype_.h [__DECC]: Likewise.
31511 2007-04-27 Bruno Haible <bruno@clisp.org>
31513 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
31515 2007-04-27 Bruno Haible <bruno@clisp.org>
31517 * lib/fflush.c: Add comments.
31518 * modules/fpurge-tests (Depends-on): Add fflush.
31519 * modules/freadable-tests (Depends-on): Likewise.
31520 * modules/fwritable-tests (Depends-on): Likewise.
31522 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
31524 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
31525 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
31526 Report by Bruno Haible <bruno@clisp.org>.
31528 2007-04-26 Eric Blake <ebb9@byu.net>
31530 Fix fflush on mingw.
31531 * modules/fflush (Depends-on): Add freading.
31532 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
31535 2007-04-26 Eric Blake <ebb9@byu.net>
31536 and Bruno Haible <bruno@clisp.org>
31538 Implement freading and fwriting.
31539 * lib/freading.c: New file.
31540 * lib/freading.h: Likewise.
31541 * m4/freading.m4: Likewise.
31542 * modules/freading: Likewise.
31543 * modules/freading-tests: Likewise.
31544 * tests/test-freading.c: Likewise.
31545 * lib/fwriting.c: New file.
31546 * lib/fwriting.h: Likewise.
31547 * m4/fwriting.m4: Likewise.
31548 * modules/fwriting: Likewise.
31549 * modules/fwriting-tests: Likewise.
31550 * tests/test-fwriting.c: Likewise.
31551 * MODULES.html.sh (File stream based Input/Output): Mention them.
31553 2007-04-26 Bruno Haible <bruno@clisp.org>
31555 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
31556 'long' when we assume it.
31557 Suggested by Eric Blake.
31559 2007-04-26 Bruno Haible <bruno@clisp.org>
31561 Ensure fseeko, ftello are declared on glibc systems.
31562 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
31563 * modules/fseeko (configure.ac-early): Likewise.
31564 * modules/ftello (configure.ac-early): Likewise.
31565 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
31566 AC_FUNC_FSEEKO for this.
31567 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
31568 (gl_CHECK_FSEEKO): Remove macro.
31570 2007-04-26 Bruno Haible <bruno@clisp.org>
31572 * tests/test-fflush.c (main): Also check the ftell result after
31573 fflush and fseek/fseeko.
31574 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
31575 file descriptor position cache in the stream.
31576 * lib/fseeko.c (rpl_fseeko): Likewise.
31578 2007-04-26 Bruno Haible <bruno@clisp.org>
31580 * modules/fflush-tests (Depends-on): Add fseeko.
31582 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
31583 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31585 * lib/argz_.h: ensure error_t definition is obtained in same
31586 mechanism system argz.h would have.
31587 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
31588 argz facilities are known bad. Err on the side of caution if
31591 2007-04-25 Eric Blake <ebb9@byu.net>
31593 * lib/fpurge.c (includes): Use stdlib.h for free.
31594 * tests/test-fflush.c (main): Also test fflush-fseeko.
31596 2007-04-25 Bruno Haible <bruno@clisp.org>
31598 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
31599 * lib/fseeko.c: New file.
31600 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
31601 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
31602 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
31604 (gl_FUNC_FSEEKO): Invoke it.
31605 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
31606 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
31607 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
31609 2007-04-25 Bruno Haible <bruno@clisp.org>
31611 * modules/fflush (Depends-on): Add ftello.
31613 2007-04-25 Bruno Haible <bruno@clisp.org>
31615 * modules/ftello-tests: New file.
31616 * tests/test-ftello.c: New file.
31618 * modules/ftello: New file.
31619 * m4/ftello.m4: New file.
31620 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
31622 * lib/stdio_.h (ftello): New declaration.
31623 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
31626 2007-04-25 Bruno Haible <bruno@clisp.org>
31628 * modules/fseeko-tests: New file.
31629 * tests/test-fseeko.c: New file.
31631 * modules/fseeko: New file.
31632 * m4/fseeko.m4: New file.
31633 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
31635 * lib/stdio_.h (fseeko): New declaration.
31636 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
31639 2007-04-25 Bruno Haible <bruno@clisp.org>
31641 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
31643 2007-04-25 Bruno Haible <bruno@clisp.org>
31645 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
31646 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
31647 * tests/test-unistd.c: Likewise.
31648 * tests/test-fcntl.c: Likewise.
31650 2007-04-23 Eric Blake <ebb9@byu.net>
31652 * lib/fflush.c: Fix missing include.
31653 Reported by Bruno Haible.
31655 2007-04-23 Bruno Haible <bruno@clisp.org>
31657 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
31658 Reported by Eric Blake.
31660 2007-04-23 Bruno Haible <bruno@clisp.org>
31662 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
31664 2007-04-23 Bruno Haible <bruno@clisp.org>
31666 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
31668 2007-04-23 Bruno Haible <bruno@clisp.org>
31670 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
31671 Needed on HP-UX 11.
31673 2007-04-16 Eric Blake <ebb9@byu.net>
31675 Make fflush rely on fpurge.
31676 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
31677 open coding all variants.
31678 * modules/fflush (Depends-on): Add fpurge and unistd.
31679 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
31680 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
31682 Fix --with-tests compilation on cygwin.
31683 * modules/argmatch-tests (Makefile.am): List gnulib library first
31685 * modules/argp-tests (Makefile.am): Likewise.
31686 * modules/array-list-tests (Makefile.am): Likewise.
31687 * modules/array-oset-tests (Makefile.am): Likewise.
31688 * modules/avltree-list-tests (Makefile.am): Likewise.
31689 * modules/avltree-oset-tests (Makefile.am): Likewise.
31690 * modules/avltreehash-list-tests (Makefile.am): Likewise.
31691 * modules/carray-list-tests (Makefile.am): Likewise.
31692 * modules/dirname-tests (Makefile.am): Likewise.
31693 * modules/frexp-tests (Makefile.am): Likewise.
31694 * modules/isnanl-tests (Makefile.am): Likewise.
31695 * modules/linked-list-tests (Makefile.am): Likewise.
31696 * modules/linkedhash-list-tests (Makefile.am): Likewise.
31697 * modules/lock-tests (Makefile.am): Likewise.
31698 * modules/rbtree-list-tests (Makefile.am): Likewise.
31699 * modules/rbtree-oset-tests (Makefile.am): Likewise.
31700 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31701 * modules/tls-tests (Makefile.am): Likewise.
31702 * modules/tsearch-tests (Makefile.am): Likewise.
31703 * modules/xvasprintf-tests (Makefile.am): Likewise.
31705 Fix fpurge for cygwin.
31706 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
31708 * modules/fpurge-tests (Depends-on): Clean up trash.
31710 2007-04-16 Simon Josefsson <simon@josefsson.org>
31712 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
31714 * m4/autobuild.m4: Re-indent.
31716 2007-04-13 Bruno Haible <bruno@clisp.org>
31718 * modules/fpurge-tests: New file.
31719 * tests/test-fpurge.c: New file.
31721 * modules/fpurge: New file.
31722 * lib/fpurge.h: New file.
31723 * lib/fpurge.c: New file.
31724 * m4/fpurge.m4: New file.
31726 2007-04-13 Bruno Haible <bruno@clisp.org>
31728 * modules/fbufmode-tests: New file.
31729 * tests/test-fbufmode.c: New file.
31731 * modules/fbufmode: New file.
31732 * lib/fbufmode.h: New file.
31733 * lib/fbufmode.c: New file.
31734 * m4/fbufmode.m4: New file.
31736 2007-04-13 Bruno Haible <bruno@clisp.org>
31738 * modules/fwritable-tests: New file.
31739 * tests/test-fwritable.c: New file.
31741 * modules/fwritable: New file.
31742 * lib/fwritable.h: New file.
31743 * lib/fwritable.c: New file.
31744 * m4/fwritable.m4: New file.
31746 2007-04-13 Bruno Haible <bruno@clisp.org>
31748 * modules/freadable-tests: New file.
31749 * tests/test-freadable.c: New file.
31751 * modules/freadable: New file.
31752 * lib/freadable.h: New file.
31753 * lib/freadable.c: New file.
31754 * m4/freadable.m4: New file.
31756 2007-04-13 Bruno Haible <bruno@clisp.org>
31758 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
31761 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
31763 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
31764 gzip bootstrap.conf to avoid dragging in i18n machinery.
31765 (gnulib_tool_option): Use it.
31767 2007-04-13 Bruno Haible <bruno@clisp.org>
31769 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
31771 * tests/test-vasprintf-posix.c (test_function): Likewise.
31772 * tests/test-snprintf-posix.h (test_function): Likewise.
31773 * tests/test-sprintf-posix.h (test_function): Likewise.
31774 * tests/test-fprintf-posix.h (test_function): Likewise.
31775 * tests/test-printf-posix.h (test_function): Likewise.
31776 * tests/test-fprintf-posix.out: Likewise.
31778 2007-04-13 Bruno Haible <bruno@clisp.org>
31780 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
31781 * modules/tls-tests (configure.ac): Likewise.
31782 Reported by Arto C. Nirkko <anirkko@insel.ch>.
31784 2007-04-13 Bruno Haible <bruno@clisp.org>
31786 * lib/tls.c (glthread_tls_get): Fix return type.
31787 Patch by Arto C. Nirkko <anirkko@insel.ch>.
31789 2007-04-12 Eric Blake <ebb9@byu.net>
31791 * modules/gettime (Depends-on): Remove gettime.
31792 Reported by Dmitry V. Levin.
31794 2007-04-12 Bruno Haible <bruno@clisp.org>
31796 * modules/fflush (Include): Mention <stdio.h>.
31797 * modules/strtoimax (Include): Mention <inttypes.h>.
31798 * modules/strtoumax (Include): Likewise.
31800 2007-04-12 Eric Blake <ebb9@byu.net>
31802 * .cvsignore: New file.
31803 * .gitignore: Likewise.
31805 2007-04-12 Bruno Haible <bruno@clisp.org>
31807 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
31808 not before, since $(LDADD) often contains libgnu.a.
31809 * modules/striconv-tests (test_striconv_LDADD): Likewise.
31810 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
31811 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
31814 2007-04-12 Eric Blake <ebb9@byu.net>
31816 Work around glibc's failure to flush stdin on fclose.
31817 * lib/closein.c (close_stdin): Flush stdin before closing.
31819 Work around glibc's failure to reset seekable stdin on exit.
31820 * modules/closein: New module.
31821 * lib/closein.c: New file.
31822 * lib/closein.h: Likewise.
31823 * m4/closein.m4: Likewise.
31824 * MODULES.html.sh (File stream based Input/Output): Document it.
31826 2007-04-12 Simon Josefsson <simon@josefsson.org>
31828 * gnulib-tool: Rename generated 'autobuild' script to
31829 'do-autobuild' in --create-megatestdir output.
31831 * doc/gnulib.texi (Build robot for gnulib): Fix.
31833 2007-04-12 Simon Josefsson <simon@josefsson.org>
31835 * modules/sysexits (Depends-on): Add absolute-header.
31837 2007-04-12 Eric Blake <ebb9@byu.net>
31839 No need to preserve errno on success.
31840 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
31841 Reported by Bruno Haible.
31843 2007-04-12 Simon Josefsson <simon@josefsson.org>
31845 * MODULES.html.sh (Support for maintaining and releasing
31846 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
31848 2007-04-12 Simon Josefsson <simon@josefsson.org>
31850 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
31852 2007-04-12 Simon Josefsson <simon@josefsson.org>
31854 * modules/autobuild: New module.
31856 * m4/autobuild.m4: New file.
31858 2007-04-11 Bruno Haible <bruno@clisp.org>
31860 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
31861 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
31862 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
31863 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
31864 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31865 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31866 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31867 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31868 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31869 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31870 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
31871 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31872 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31873 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
31874 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31875 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31876 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
31877 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31878 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31879 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
31880 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31881 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31882 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
31883 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31884 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31885 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
31886 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31887 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31888 Reported by Eric Blake.
31890 2007-04-11 Bruno Haible <bruno@clisp.org>
31892 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
31894 2007-04-10 Bruno Haible <bruno@clisp.org>
31896 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
31897 for NaN and Infinity. Needed on FreeBSD 6.1.
31898 * tests/test-vasnprintf-posix.c (test_function): Undo last change
31899 regarding results for "%010a" of Infinity and NaN.
31900 * tests/test-vasprintf-posix.c (test_function): Likewise.
31901 * tests/test-snprintf-posix.h (test_function): Likewise.
31902 * tests/test-sprintf-posix.h (test_function): Likewise.
31903 * tests/test-fprintf-posix.h (test_function): Likewise.
31904 * tests/test-printf-posix.h (test_function): Likewise.
31905 * tests/test-fprintf-posix.out: Likewise.
31907 2007-04-10 Bruno Haible <bruno@clisp.org>
31909 * modules/locale-tests: New file.
31910 * tests/test-locale.c: New file.
31912 * modules/locale: New file.
31913 * lib/locale_.h: New file.
31914 * m4/locale_h.m4: New file.
31916 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
31917 Bruno Haible <bruno@clisp.org>
31919 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
31920 be determined, test for availability of the copysignf, copysign,
31921 copysignl functions.
31922 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
31923 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
31924 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
31926 2007-04-09 Eric Blake <ebb9@byu.net>
31928 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
31929 * modules/stdio (Makefile.am): Support fflush.
31930 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31931 * modules/fflush: New file.
31932 * lib/fflush.c: Likewise.
31933 * m4/fflush.m4: Likewise.
31934 * modules/fflush-tests: New test.
31935 * tests/test-fflush.c: Likewise.
31936 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
31938 2007-04-06 Bruno Haible <bruno@clisp.org>
31940 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
31941 (VASNPRINTF): Use signbit for faster determination whether to print a
31943 * modules/vasnprintf (Files): Remove lib/float+.h.
31944 * modules/fprintf-posix (Depends-on): Add signbit.
31945 * modules/snprintf-posix (Depends-on): Likewise.
31946 * modules/sprintf-posix (Depends-on): Likewise.
31947 * modules/vasnprintf-posix (Depends-on): Likewise.
31948 * modules/vasprintf-posix (Depends-on): Likewise.
31949 * modules/vfprintf-posix (Depends-on): Likewise.
31950 * modules/vsnprintf-posix (Depends-on): Likewise.
31951 * modules/vsprintf-posix (Depends-on): Likewise.
31953 2007-04-06 Bruno Haible <bruno@clisp.org>
31955 * tests/test-frexp.c (main): Test also the sign bit of zero results.
31956 * tests/test-frexpl.c (main): Likewise.
31957 * tests/test-ldexpl.c (main): Likewise.
31958 * modules/frexp-tests (Depends-on): Add signbit.
31959 * modules/frexpl-tests (Depdends-on): Likewise.
31960 * modules/ldexpl-tests (Depdends-on): Likewise.
31962 2007-04-06 Bruno Haible <bruno@clisp.org>
31964 * modules/signbit-tests: New file.
31965 * tests/test-signbit.c: New file.
31967 * modules/signbit: New file.
31968 * lib/signbitf.c: New file.
31969 * lib/signbitd.c: New file.
31970 * lib/signbitl.c: New file.
31971 * m4/signbit.m4: New file.
31972 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
31973 (signbit): New macro.
31974 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
31976 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
31977 REPLACE_FREXPL into math.h.
31979 2007-04-06 Bruno Haible <bruno@clisp.org>
31981 * modules/isnanf-nolibm-tests: New file.
31982 * tests/test-isnanf.c: New file.
31984 * modules/isnanf-nolibm: New file.
31985 * lib/isnanf.h: New file.
31986 * lib/isnanf.c: New file.
31987 * lib/isnan.c: Consider the USE_FLOAT macro.
31988 * m4/isnanf.m4: New file.
31990 2007-04-06 Bruno Haible <bruno@clisp.org>
31992 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
31993 (Link): New section.
31995 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
31997 2007-04-06 Bruno Haible <bruno@clisp.org>
31999 Assume the 'long double' type.
32000 * m4/longdouble.m4: Remove file.
32001 * config/srclist.txt: Don't mention longdouble.m4.
32002 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
32003 * lib/float+.h: Likewise.
32004 * lib/frexp.c: Likewise.
32005 * lib/printf-args.h: Likewise.
32006 * lib/printf-args.c: Likewise.
32007 * lib/printf-frexp.c: Likewise.
32008 * lib/printf-parse.c: Likewise.
32009 * lib/vasnprintf.c: Likewise.
32010 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
32011 * m4/intl.m4: Likewise.
32012 * m4/isnanl.m4: Likewise.
32013 * m4/printf.m4: Likewise.
32014 * m4/printf-frexpl.m4: Likewise.
32015 * m4/vasnprintf.m4: Likewise.
32016 * modules/allocsa (Files): Remove m4/longdouble.m4.
32017 * modules/gettext (Files): Likewise.
32018 * modules/relocatable-prog-wrapper (Files): Likewise.
32019 * modules/vasnprintf (Files): Likewise.
32020 * modules/isnanl (Files): Likewise.
32021 (Include): Simplify.
32022 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
32023 (Include): Simplify.
32024 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
32025 (Include): Simplify.
32026 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
32027 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32028 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
32029 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32030 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32031 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32032 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
32033 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32034 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
32035 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32036 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
32037 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
32038 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
32039 * tests/test-isnanl.c: Likewise.
32040 * tests/test-snprintf-posix.h: Likewise.
32041 * tests/test-sprintf-posix.h: Likewise.
32042 * tests/test-vasnprintf-posix.c: Likewise.
32043 * tests/test-vasnprintf-posix2.c: Likewise.
32044 * tests/test-vasprintf-posix.c: Likewise.
32046 2007-04-06 Bruno Haible <bruno@clisp.org>
32048 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
32049 * lib/math_.h [__DECC]: Include the overridden include file through
32050 #include_next, outside the double-inclusion guard.
32051 * lib/stdio_.h [__DECC]: Likewise.
32052 * lib/stdlib_.h [__DECC]: Likewise.
32053 * lib/string_.h [__DECC]: Likewise.
32054 * lib/time_.h [__DECC]: Likewise.
32055 * lib/wchar_.h [__DECC]: Likewise.
32056 * lib/wctype_.h [__DECC]: Likewise.
32057 * lib/inttypes_.h [__DECC]: Likewise.
32058 Reported by Albert Chin <china@thewrittenword.com> in
32059 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
32061 2007-04-04 Eric Blake <ebb9@byu.net>
32063 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
32066 2007-04-04 Bruno Haible <bruno@clisp.org>
32068 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
32069 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
32071 2007-04-04 Bruno Haible <bruno@clisp.org>
32073 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
32074 results for "%010a" of Infinity and NaN.
32075 * tests/test-vasprintf-posix.c (test_function): Likewise.
32076 * tests/test-snprintf-posix.h (test_function): Likewise.
32077 * tests/test-sprintf-posix.h (test_function): Likewise.
32078 * tests/test-fprintf-posix.h (test_function): Remove these tests.
32079 * tests/test-printf-posix.h (test_function): Likewise.
32080 * tests/test-fprintf-posix.out: Update.
32081 Needed for FreeBSD 6.1.
32083 2007-04-04 Bruno Haible <bruno@clisp.org>
32085 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
32086 directly used by the gnulib modules nor by gnulib-tool.
32088 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
32090 * DEPENDENCIES: Give overall description of version dependency
32091 desirability. Use more-typical names for apps.
32092 Add shell, coreutils, diffutils, grep, tar, gzip.
32094 2007-04-04 Simon Josefsson <simon@josefsson.org>
32096 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
32098 2007-04-04 Karl Berry <karl@gnu.org>
32100 * MODULES.html.sh (func_module): missing '.
32102 2007-04-03 Bruno Haible <bruno@clisp.org>
32104 * modules/argmatch-tests (Makefile.am): New variable
32105 test_argmatch_LDADD.
32106 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
32107 * modules/array-list-tests (Makefile.am): New variable
32108 test_array_list_LDADD.
32109 * modules/array-oset-tests (Makefile.am): New variable
32110 test_array_oset_LDADD.
32111 * modules/avltree-list-tests (Makefile.am): New variable
32112 test_avltree_list_LDADD.
32113 * modules/avltree-oset-tests (Makefile.am): New variable
32114 test_avltree_oset_LDADD.
32115 * modules/avltreehash-list-tests (Makefile.am): New variable
32116 test_avltreehash_list_LDADD.
32117 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
32118 test_canonicalize_lgpl_LDADD.
32119 * modules/carray-list-tests (Makefile.am): New variable
32120 test_carray_list_LDADD.
32121 * modules/dirname-tests (Makefile.am): New variable
32122 test_dirname_LDADD.
32123 * modules/linked-list-tests (Makefile.am): New variable
32124 test_linked_list_LDADD.
32125 * modules/linkedhash-list-tests (Makefile.am): New variable
32126 test_linkedhash_list_LDADD.
32127 * modules/rbtree-list-tests (Makefile.am): New variable
32128 test_rbtree_list_LDADD.
32129 * modules/rbtree-oset-tests (Makefile.am): New variable
32130 test_rbtree_oset_LDADD.
32131 * modules/rbtreehash-list-tests (Makefile.am): New variable
32132 test_rbtreehash_list_LDADD.
32133 * modules/xvasprintf-tests (Makefile.am): New variable
32134 test_xvasprintf_LDADD.
32135 Reported by Eric Blake.
32137 2007-04-03 Eric Blake <ebb9@byu.net>
32139 * DEPENDENCIES: Weaken m4 requirements.
32141 2007-04-03 Bruno Haible <bruno@clisp.org>
32143 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
32144 * modules/isnanl-tests (configure.ac): Likewise.
32146 2007-04-03 Ben Pfaff <blp@gnu.org>
32148 * modules/iconv_open: Add $(srcdir)/ to source directory
32149 references in Makefile fragments that call gperf, to fix VPATH
32152 2007-04-03 Bruno Haible <bruno@clisp.org>
32154 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
32155 * lib/ldexpl.c: Undo last change.
32157 2007-04-03 Bruno Haible <bruno@clisp.org>
32159 * modules/printf-frexpl (Depends-on): Undo last change.
32160 (Files): Add m4/ldexpl.m4.
32162 2007-04-03 Bruno Haible <bruno@clisp.org>
32164 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
32165 * modules/isnanl (Link): New section.
32167 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
32168 * modules/frexp (Link): New section.
32170 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
32171 * modules/frexpl (Link): New section.
32173 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
32174 * modules/ldexpl (Link): New section.
32176 2007-04-03 Bruno Haible <bruno@clisp.org>
32178 * modules/TEMPLATE-EXTENDED: New file.
32179 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
32181 2007-04-03 Bruno Haible <bruno@clisp.org>
32183 * DEPENDENCIES: New file.
32184 Suggested by Simon Josefsson.
32186 2007-04-03 Bruno Haible <bruno@clisp.org>
32188 * doc/gnulib.texi: Escape @.
32190 2007-04-03 James Youngman <jay@gnu.org>
32191 and Paul Eggert <eggert@cs.ucla.edu>
32193 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
32194 birthtime on all systems that have birthtime, not just those which
32195 use st_birthtimensec rather than st_birthtim. Putting zero in
32196 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
32197 that the birth time is not available for files on an NFS mount.
32199 2007-04-03 Simon Josefsson <simon@josefsson.org>
32201 * modules/memxor: Move back from crypto/, suggested by Bruno.
32202 * modules/crypto/hmac-sha1: Fix memxor dependency.
32204 * modules/crypto/gc: Moved from ../.
32206 2007-04-02 Eric Blake <ebb9@byu.net>
32208 * lib/ldexpl.c (includes): Avoid libm.
32210 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
32212 2007-04-02 Bruno Haible <bruno@clisp.org>
32214 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
32217 2007-04-02 Bruno Haible <bruno@clisp.org>
32219 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
32220 x86 or x86_64 platforms running MacOS X.
32221 Reported by Ryan Schmidt <@ryandesign.com>.
32223 2007-04-02 Bruno Haible <bruno@clisp.org>
32225 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
32228 2007-04-01 Simon Josefsson <simon@josefsson.org>
32230 * modules/crypto/arcfour: Moved from ../.
32231 * modules/crypto/arcfour-tests: Moved from ../.
32232 * modules/crypto/arctwo: Moved from ../.
32233 * modules/crypto/arctwo-tests: Moved from ../.
32234 * modules/crypto/des: Moved from ../.
32235 * modules/crypto/des-tests: Moved from ../.
32236 * modules/crypto/gc-arcfour: Moved from ../.
32237 * modules/crypto/gc-arcfour-tests: Moved from ../.
32238 * modules/crypto/gc-arctwo: Moved from ../.
32239 * modules/crypto/gc-arctwo-tests: Moved from ../.
32240 * modules/crypto/gc-des: Moved from ../.
32241 * modules/crypto/gc-des-tests: Moved from ../.
32242 * modules/crypto/gc-hmac-md5: Moved from ../.
32243 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
32244 * modules/crypto/gc-hmac-sha1: Moved from ../.
32245 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
32246 * modules/crypto/gc-md2: Moved from ../.
32247 * modules/crypto/gc-md2-tests: Moved from ../.
32248 * modules/crypto/gc-md4: Moved from ../.
32249 * modules/crypto/gc-md4-tests: Moved from ../.
32250 * modules/crypto/gc-md5: Moved from ../.
32251 * modules/crypto/gc-md5-tests: Moved from ../.
32252 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
32253 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
32254 * modules/crypto/gc-random: Moved from ../.
32255 * modules/crypto/gc-rijndael: Moved from ../.
32256 * modules/crypto/gc-rijndael-tests: Moved from ../.
32257 * modules/crypto/gc-sha1: Moved from ../.
32258 * modules/crypto/gc-sha1-tests: Moved from ../.
32259 * modules/crypto/gc-tests: Moved from ../.
32260 * modules/crypto/hmac-md5: Moved from ../.
32261 * modules/crypto/hmac-md5-tests: Moved from ../.
32262 * modules/crypto/hmac-sha1: Moved from ../.
32263 * modules/crypto/hmac-sha1-tests: Moved from ../.
32264 * modules/crypto/md2: Moved from ../.
32265 * modules/crypto/md2-tests: Moved from ../.
32266 * modules/crypto/md4: Moved from ../.
32267 * modules/crypto/md4-tests: Moved from ../.
32268 * modules/crypto/md5: Moved from ../.
32269 * modules/crypto/md5-tests: Moved from ../.
32270 * modules/crypto/memxor: Moved from ../.
32271 * modules/crypto/rijndael: Moved from ../.
32272 * modules/crypto/rijndael-tests: Moved from ../.
32273 * modules/crypto/sha1: Moved from ../.
32275 2007-03-30 James Youngman <jay@gnu.org>
32277 * tests/test-stat-time.c (prepare_test): use chmod() rather than
32278 rename() to change the ctime of a file (because ctime is unaffected
32279 by rename on jfs2 on AIX 5.1).
32280 (main): Start by doing cleanup, in case a previous run failed leaving
32283 2007-03-31 Bruno Haible <bruno@clisp.org>
32285 Support old proprietary implementations of iconv.
32286 * modules/iconv_open: New file.
32287 * lib/iconv_.h: New file.
32288 * m4/iconv_h.m4: New file.
32289 * lib/iconv_open.c: New file.
32290 * lib/iconv_open-aix.gperf: New file.
32291 * lib/iconv_open-hpux.gperf: New file.
32292 * lib/iconv_open-irix.gperf: New file.
32293 * lib/iconv_open-osf.gperf: New file.
32294 * m4/iconv_open.m4: New file.
32295 * modules/linebreak (Depends-on): Add iconv_open.
32296 * modules/striconv (Depends-on): Likewise.
32297 * modules/striconveh (Depends-on): Likewise.
32298 * modules/unicodeio (Depends-on): Likewise.
32299 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
32301 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
32302 conversion if cd is (iconv_t)(-1).
32303 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
32306 2007-03-31 Bruno Haible <bruno@clisp.org>
32308 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32309 work on Solaris either. Protect also second use of "autodetect_jp".
32311 2007-03-31 Bruno Haible <bruno@clisp.org>
32313 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
32314 the function is not present.
32316 2007-03-31 Bruno Haible <bruno@clisp.org>
32318 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
32319 the function is not present.
32321 2007-03-31 Bruno Haible <bruno@clisp.org>
32323 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
32324 a bug in HP-UX iconv_open().
32326 2007-03-31 Bruno Haible <bruno@clisp.org>
32328 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
32329 (Mathematics <math.h>): New section, add fpieee.
32330 (Input/output <stdio.h>): Add fseterr.
32331 (Mathematics <math.h>): New section, add printf-frexp.
32332 (Container data structures): Add sublist.
32333 (Core language properties): Add fpucw, inline.
32334 (Functions for greatest-width integer types <inttypes.h>): Add
32335 imaxabs, imaxdiv, inttypes.
32336 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
32337 isnanl-nolibm, ldexp.
32338 (Mathematics <math.h>): New section, add printf-frexpl.
32339 (Support for systems lacking POSIX:2001): Add fprintf-posix,
32340 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
32341 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
32342 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
32343 (Unicode string functions): Add unistr/u*-mbtoucr.
32344 (Java): Add javacomp-script, javaexec-script.
32345 (C#): Add csharpcomp-script, csharpexec-script.
32346 (Support for building libraries and executables): Add havelib,
32348 (Support for maintaining and releasing projects): Renamed from
32349 'Support for maintaining and release projects'. Add announce-gen.
32351 2007-03-31 Bruno Haible <bruno@clisp.org>
32353 * README: Talk primarily about git.
32354 (git and CVS): Renamed from CVS.
32355 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
32356 gnulib is available through git.
32357 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
32359 2007-03-30 Bruno Haible <bruno@clisp.org>
32361 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
32362 * lib/poll_.h: Likewise.
32363 * lib/stat_.h: Likewise.
32364 * lib/sys_time_.h: Likewise.
32365 * lib/sysexit_.h: Likewise.
32366 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
32367 * lib/stdbool_.h: Likewise.
32368 * lib/byteswap_.h: Add double-inclusion guard.
32370 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
32372 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
32374 2007-03-30 Karl Berry <karl@gnu.org>
32376 * config/srclist-update: double space after USA in the license
32377 substitution, since that's how it's usually (?) written.
32379 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
32381 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
32382 reported by Bruno Haible.
32384 2007-03-29 Bruno Haible <bruno@clisp.org>
32386 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
32387 a bug in AIX iconv().
32389 2007-03-29 Bruno Haible <bruno@clisp.org>
32391 * modules/ldexpl-tests: New file.
32392 * tests/test-ldexpl.c: New file.
32394 2007-03-29 Bruno Haible <bruno@clisp.org>
32396 * lib/ldexpl.c: Include fpucw.h.
32397 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
32399 * modules/ldexpl (Depends-on): Add fpucw.
32401 2007-03-29 Bruno Haible <bruno@clisp.org>
32403 * modules/ldexpl: New file.
32404 * m4/ldexpl.m4: New file.
32405 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
32407 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
32409 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
32411 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32412 gl_FUNC_LDEXPL_WORKS.
32413 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
32414 * modules/mathl (Files): Remove lib/ldexpl.c.
32415 (Depends-on): Add ldexpl.
32417 2007-03-29 Bruno Haible <bruno@clisp.org>
32419 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
32421 2007-03-29 Bruno Haible <bruno@clisp.org>
32423 * tests/test-striconveh.c (main): Don't assume that a direct conversion
32424 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
32425 and possibly also HP-UX.
32426 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32427 work on AIX, IRIX, HP-UX, OSF/1.
32428 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32429 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32430 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32431 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32432 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
32433 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32435 2007-03-29 Bruno Haible <bruno@clisp.org>
32437 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
32439 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
32441 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
32442 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
32444 2007-03-29 Eric Blake <ebb9@byu.net>
32446 * lib/acl-internal.h: Remove redundant include.
32447 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
32448 Cygwin when a file is locked.
32450 2007-03-29 Bruno Haible <bruno@clisp.org>
32452 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
32454 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
32456 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
32458 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
32459 try to remove a parent directory if the child couldn't be removed
32460 (except for the first rmdir, which could fail because the child
32461 doesn't exist). Problem reported by Jeff Blaine in
32462 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
32464 2007-03-28 Bruno Haible <bruno@clisp.org>
32466 * lib/striconveh.c (utf8conv_carefully): New function.
32467 (mem_cd_iconveh_internal): Invoke it.
32469 2007-03-28 Bruno Haible <bruno@clisp.org>
32471 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
32472 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
32474 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
32475 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
32478 2007-03-28 Bruno Haible <bruno@clisp.org>
32480 * modules/unistr/u8-mbtoucr: New file.
32481 * lib/unistr/u8-mbtoucr.c: New file.
32482 * modules/unistr/u16-mbtoucr: New file.
32483 * lib/unistr/u16-mbtoucr.c: New file.
32484 * modules/unistr/u16-mbtoucr: New file.
32485 * lib/unistr/u16-mbtoucr.c: New file.
32486 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
32488 2007-03-27 Simon Josefsson <simon@josefsson.org>
32489 Bruno Haible <bruno@clisp.org>
32491 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
32492 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
32493 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
32495 * m4/stdio_h.m4: Add stubs for vasprintf too.
32497 * modules/stdio: Support vasprintf in sed command.
32499 * modules/vasprintf: Depend on stdio for prototypes. Remove
32500 vasprintf.h. Add stdio module indicator.
32502 * lib/stdio_.h: Declare asprintf and vasprintf, based on
32505 * lib/vasprintf.h: File removed.
32507 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
32508 * lib/vasprintf.c: Ditto.
32509 * lib/xvasprintf.c: Ditto.
32510 * tests/test-vasprintf-posix.c: Ditto.
32511 * tests/test-vasprintf.c: Ditto.
32513 2007-03-27 Bruno Haible <bruno@clisp.org>
32515 Make vasnprintf multithread-safe.
32516 * lib/vasnprintf.c (decimal_point_char): New function.
32517 (VASNPRINTF): Use it.
32518 Suggested by Simon Josefsson.
32520 2007-03-27 Eric Blake <ebb9@byu.net>
32522 Support sub-second birthtime on cygwin.
32523 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
32524 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
32525 (get_stat_birthtime): Also work with st_birthtim.
32527 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
32529 * lib/stat-time.h (USE_BIRTHTIME): Remove.
32530 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
32531 (get_stat_birthtime_ns): Do not try to use "spare" fields.
32532 (get_stat_birthtime_ns): Simplify compile-time tests.
32533 (get_stat_birthtime): Change the API to look like
32534 get_stat_mtime etc., except return a negative tv_nsec on error.
32535 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
32536 Don't check for "spare" fields.
32537 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
32538 or for struct stat.st_birthtime, as these tests aren't used.
32539 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
32541 2007-03-27 Bruno Haible <bruno@clisp.org>
32543 * lib/stat-time.h: Include <sys/stat.h>.
32545 2007-03-27 James Youngman <jay@gnu.org>
32547 * lib/stat-time.h (get_stat_birthtime): New function for
32548 retrieving st_birthtime as provided by UFS2 (hence *BSD).
32549 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
32551 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
32552 * modules/stat-time-test: New file.
32553 * tests/test-stat-time.c: New test, devised by Bruno Haible.
32555 2007-03-26 Bruno Haible <bruno@clisp.org>
32557 Better support of signalling NaNs.
32558 * lib/atanl.c: Include isnanl.h.
32559 (atanl): Perform test for NaN at the beginning of the function and
32560 through a call to isnanl.
32561 * lib/cosl.c: Include isnanl.h.
32562 (cosl): Perform test for NaN at the beginning of the function and
32563 through a call to isnanl.
32564 * lib/ldexpl.c: Include isnanl.h.
32565 (ldexpl): Perform test for NaN through a call to isnanl.
32566 * lib/logl.c: Include isnanl.h.
32567 (logl): Perform test for NaN at the beginning of the function and
32568 through a call to isnanl.
32569 * lib/sinl.c: Include isnanl.h.
32570 (sinl): Perform test for NaN at the beginning of the function and
32571 through a call to isnanl.
32572 * lib/sqrtl.c: Include isnanl.h.
32573 (sqrtl): Perform test for NaN at the beginning of the function and
32574 through a call to isnanl.
32575 * lib/tanl.c: Include isnanl.h.
32576 (tanl): Perform test for NaN at the beginning of the function and
32577 through a call to isnanl.
32578 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
32579 * modules/mathl (Depends-on): Add isnanl.
32581 2007-03-26 Eric Blake <ebb9@byu.net>
32583 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
32584 regression in logic sense of previous patch.
32586 2007-03-26 Bruno Haible <bruno@clisp.org>
32588 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
32589 unportable shell command "if ! ...".
32590 Reported by Ralf Wildenhues.
32592 2007-03-25 Bruno Haible <bruno@clisp.org>
32594 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
32595 <sysexits.h> file, and only add EX_CONFIG.
32596 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
32597 absolute file name and whether it is sufficient. Substitute also
32598 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
32599 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
32600 ABSOLUTE_SYSEXITS_H into sysexits.h.
32602 2007-03-25 Bruno Haible <bruno@clisp.org>
32604 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
32607 2007-03-25 Bruno Haible <bruno@clisp.org>
32609 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
32610 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
32612 2007-03-25 Bruno Haible <bruno@clisp.org>
32614 * lib/vasnprintf.c: Include langinfo.h.
32615 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
32617 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
32618 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
32619 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32620 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32621 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32622 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32623 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32624 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
32625 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32626 Reported by Simon Josefsson.
32628 2007-03-25 Bruno Haible <bruno@clisp.org>
32630 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
32631 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
32632 * modules/vasnprintf (Depends-on): Add stdint.
32634 2007-03-25 Bruno Haible <bruno@clisp.org>
32636 * modules/fpieee: New file.
32637 * m4/fpieee.m4: New file.
32638 * modules/isnan-nolibm (Depends-on): Add fpieee.
32639 * modules/isnanl-nolibm (Depends-on): Add fpieee.
32640 * modules/isnanl (Depends-on): Add fpieee.
32642 2007-03-25 Bruno Haible <bruno@clisp.org>
32644 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
32646 2007-03-25 Bruno Haible <bruno@clisp.org>
32648 Avoid test failures on IRIX 6.5.
32649 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
32651 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
32655 2007-03-25 Bruno Haible <bruno@clisp.org>
32657 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
32658 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
32659 exists but doesn't work.
32660 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
32661 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
32662 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
32663 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
32665 2007-03-25 Bruno Haible <bruno@clisp.org>
32667 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
32668 returns inf. Needed on IRIX 6.5.
32670 2007-03-25 Bruno Haible <bruno@clisp.org>
32672 * tests/test-frexpl.c: Include isnanl-nolibm.h.
32673 (main): Use isnanl instead of x != x idiom.
32674 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
32676 * tests/test-frexp.c: Include isnan.h.
32677 (main): Use isnan instead of x != x idiom.
32678 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
32680 2007-03-25 Bruno Haible <bruno@clisp.org>
32682 * tests/test-frexp.c (NaN): New function/macro.
32683 (main): Use it instead of 0.0 / 0.0.
32684 * tests/test-isnan.c (NaN): New function/macro.
32685 (main): Use it instead of 0.0 / 0.0.
32686 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
32687 (test_function): Use it instead of 0.0 / 0.0.
32688 * tests/test-vasprintf-posix.c (NaN): New function/macro.
32689 (test_function): Use it instead of 0.0 / 0.0.
32690 * tests/test-snprintf-posix.h (NaN): New function/macro.
32691 (test_function): Use it instead of 0.0 / 0.0.
32692 * tests/test-sprintf-posix.h (NaN): New function/macro.
32693 (test_function): Use it instead of 0.0 / 0.0.
32694 * tests/test-fprintf-posix.h (NaN): New function/macro.
32695 (test_function): Use it instead of 0.0 / 0.0.
32696 * tests/test-printf-posix.h (NaN): New function/macro.
32697 (test_function): Use it instead of 0.0 / 0.0.
32699 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
32701 2007-03-25 Bruno Haible <bruno@clisp.org>
32703 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
32705 2007-03-25 Bruno Haible <bruno@clisp.org>
32707 * lib/regexec.c (merge_state_with_log): Make static.
32709 2007-03-25 Bruno Haible <bruno@clisp.org>
32711 * lib/trigl.c (kernel_rem_pio2): Make static.
32713 2007-03-25 Bruno Haible <bruno@clisp.org>
32715 * lib/sincosl.c (sincosl_table): Make static.
32717 2007-03-25 Bruno Haible <bruno@clisp.org>
32719 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
32720 if the compiler does not support C99.
32722 2007-03-25 Bruno Haible <bruno@clisp.org>
32724 * modules/time (Makefile.am): Ensure all rule action lines start with a
32727 2007-03-24 Bruno Haible <bruno@clisp.org>
32729 * modules/tsearch-tests: New file.
32730 * tests/test-tsearch.sh: New file.
32731 * tests/test-tsearch.c: New file, mostly copied from glibc.
32733 * modules/search-tests: New file.
32734 * tests/test-search.c: New file.
32736 * modules/search: New file.
32737 * lib/search_.h: New file, incorporating lib/tsearch.h.
32738 * m4/search_h.m4: New file.
32739 * lib/tsearch.h: Remove file.
32740 * lib/tsearch.c: Include search.h instead of tsearch.h.
32741 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
32743 * modules/tsearch (Files): Remove lib/tsearch.h.
32744 (Depends-on): Add search.
32745 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
32746 (Include): Change tsearch.h into search.h.
32748 2007-03-24 Bruno Haible <bruno@clisp.org>
32750 * modules/fpucw: New file.
32751 * lib/fpucw.h: New file.
32752 * lib/frexp.c: Include fpucw.h.
32753 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32755 * lib/printf-frexp.c: Include fpucw.h.
32756 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32758 * lib/vasnprintf.c: Include fpucw.h.
32759 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
32760 'long double' calculations.
32761 * tests/test-frexpl.c: Include fpucw.h.
32762 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32763 * tests/test-printf-frexpl.c: Include fpucw.h.
32764 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32765 * modules/frexpl (Depends-on): Add fpucw.
32766 * modules/printf-frexpl (Depends-on): Likewise.
32767 * modules/fprintf-posix (Depends-on): Likewise.
32768 * modules/snprintf-posix (Depends-on): Likewise.
32769 * modules/sprintf-posix (Depends-on): Likewise.
32770 * modules/vasnprintf-posix (Depends-on): Likewise.
32771 * modules/vasprintf-posix (Depends-on): Likewise.
32772 * modules/vfprintf-posix (Depends-on): Likewise.
32773 * modules/vsnprintf-posix (Depends-on): Likewise.
32774 * modules/vsprintf-posix (Depends-on): Likewise.
32775 * modules/frexpl-tests (Depends-on): Likewise.
32776 * modules/printf-frexpl-tests (Depends-on): Likewise.
32778 2007-03-24 Bruno Haible <bruno@clisp.org>
32780 * lib/float+.h: New file.
32781 * lib/isnan.c: Include float+.h.
32783 (FUNC): Compare only SIZE bytes of the value.
32784 * lib/vasnprintf.c: Include float+.h.
32785 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
32786 SIZEOF_LDBL or SIZEOF_DBL bytes.
32787 * modules/isnan-nolibm (Files): Add lib/float+.h.
32788 * modules/isnanl-nolibm (Files): Add lib/float+.h.
32789 * modules/isnanl (Files): Add lib/float+.h.
32790 * modules/vasnprintf (Files): Add lib/float+.h.
32792 2007-03-24 Bruno Haible <bruno@clisp.org>
32794 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
32795 include isnanl-nolibm.h.
32797 2007-03-24 Bruno Haible <bruno@clisp.org>
32799 * tests/test-read-file.c (main): Don't produce spurious output for
32800 expected situations. Make the test fail if it encountered unexpected
32803 2007-03-24 Bruno Haible <bruno@clisp.org>
32805 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
32806 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
32808 2007-03-24 Bruno Haible <bruno@clisp.org>
32810 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
32812 2007-03-24 Bruno Haible <bruno@clisp.org>
32814 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
32815 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
32817 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
32818 * modules/utf8-ucs4: Turn into a symbolic link to module
32821 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
32823 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
32824 unistr/u8-mbtouc-unsafe.
32826 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
32827 * modules/utf16-ucs4: Turn into a symbolic link to module
32830 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
32832 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
32833 unistr/u16-mbtouc-unsafe.
32835 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
32836 * modules/ucs4-utf8: Turn into a symbolic link to module
32839 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
32840 * modules/ucs4-utf16: Turn into a symbolic link to module
32843 2007-03-24 Bruno Haible <bruno@clisp.org>
32845 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
32846 Enable the function only if HAVE_INLINE.
32847 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
32848 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32849 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
32850 Enable the function only if HAVE_INLINE.
32851 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
32852 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32853 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
32854 Enable the function only if HAVE_INLINE.
32855 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
32856 Enable the function only if HAVE_INLINE.
32857 * modules/utf8-ucs4: Update.
32858 * modules/utf8-ucs4-unsafe: Update.
32859 * modules/utf16-ucs4: Update.
32860 * modules/utf16-ucs4-unsafe: Update.
32861 * modules/ucs4-utf8: Update.
32862 * modules/ucs4-utf16: Update.
32864 2007-03-24 Bruno Haible <bruno@clisp.org>
32866 * lib/utf8-ucs4.h: Remove file.
32867 * lib/utf8-ucs4-unsafe.h: Remove file.
32868 * lib/utf16-ucs4.h: Remove file.
32869 * lib/utf16-ucs4-unsafe.h: Remove file.
32870 * lib/ucs4-utf8.h: Remove file.
32871 * lib/ucs4-utf16.h: Remove file.
32872 * lib/unistr.h: Include their previous contents.
32873 * m4/utf-ucs4.m4: Remove file.
32874 * m4/ucs4-utf.m4: Remove file.
32875 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
32876 (Depends-on): Add unistr/base.
32877 (configure.ac): Remove gl_UTF_UCS4.
32878 (Makefile.am): Update.
32879 (Include): Change to unistr.h.
32880 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
32881 (Depends-on): Add unistr/base.
32882 (configure.ac): Remove gl_UTF_UCS4.
32883 (Makefile.am): Update.
32884 (Include): Change to unistr.h.
32885 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
32886 (Depends-on): Add unistr/base.
32887 (configure.ac): Remove gl_UTF_UCS4.
32888 (Makefile.am): Update.
32889 (Include): Change to unistr.h.
32890 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
32891 (Depends-on): Add unistr/base.
32892 (configure.ac): Remove gl_UTF_UCS4.
32893 (Makefile.am): Update.
32894 (Include): Change to unistr.h.
32895 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
32896 (Depends-on): Add unistr/base.
32897 (configure.ac): Remove gl_UCS4_UTF.
32898 (Makefile.am): Update.
32899 (Include): Change to unistr.h.
32900 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
32901 (Depends-on): Add unistr/base.
32902 (configure.ac): Remove gl_UCS4_UTF.
32903 (Makefile.am): Update.
32904 (Include): Change to unistr.h.
32905 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
32906 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
32907 utf8-ucs4-unsafe.h.
32908 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
32909 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
32910 utf16-ucs4-unsafe.h.
32911 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
32912 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
32913 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
32914 * lib/unistr/u8-strchr.c: Likewise.
32915 * lib/unistr/u8-strrchr.c: Likewise.
32916 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
32917 * lib/unistr/u16-strchr.c: Likewise.
32918 * lib/unistr/u16-strrchr.c: Likewise.
32919 * lib/striconveh.c: Update.
32920 * lib/linebreak.c: Update.
32922 2007-03-24 Bruno Haible <bruno@clisp.org>
32924 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
32925 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
32927 2007-03-22 Bruno Haible <bruno@clisp.org>
32929 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
32931 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
32933 * MODULES.html.sh (File system functions): New module write-any-file.
32934 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
32935 * m4/write-any-file.m4: New files.
32937 2007-03-23 Eric Blake <ebb9@byu.net>
32939 * gnulib-tool: Rearrange space-tab sequences, since some editors
32942 2007-03-23 Eric Blake <ebb9@byu.net>
32944 * lib/version-etc.c (version_etc_va): Update license wording to
32945 be more concise. Recommended by Richard Stallman.
32947 2007-03-22 Bruno Haible <bruno@clisp.org>
32949 * lib/poll.c (MSG_PEEK): New fallback definition.
32951 2007-03-22 Bruno Haible <bruno@clisp.org>
32953 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
32954 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
32956 Fixes a compilation error on BeOS.
32958 2007-03-22 Bruno Haible <bruno@clisp.org>
32960 * modules/frexpl-tests: New file.
32961 * tests/test-frexpl.c: New file.
32963 * modules/frexpl: New file.
32964 * m4/frexpl.m4: New file.
32965 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
32966 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
32967 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
32968 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
32969 (Depends-on): Add frexpl. Remove isnanl-nolibm.
32970 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
32972 2007-03-22 Bruno Haible <bruno@clisp.org>
32974 * lib/frexpl.c: Share code with lib/frexp.c.
32975 * modules/mathl (Files): Add lib/frexp.c.
32976 (Depends-on): Add isnanl-nolibm.
32978 2007-03-22 Bruno Haible <bruno@clisp.org>
32980 * modules/printf-frexp (Files): Add m4/frexp.m4.
32981 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
32982 only if the found frexp function actually works.
32984 2007-03-22 Bruno Haible <bruno@clisp.org>
32986 * lib/frexp.c: Remove older implementation that uses divisions.
32988 2007-03-21 Bruno Haible <bruno@clisp.org>
32990 * modules/frexp-tests: New file.
32991 * tests/test-frexp.c: New file.
32993 * modules/frexp: New file.
32994 * lib/frexp.c: New file.
32995 * m4/frexp.m4: New file.
32996 * lib/math_.h (frexp): New declaration.
32997 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
32999 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
33001 2007-03-21 Bruno Haible <bruno@clisp.org>
33003 * modules/isnanl-tests: New file.
33004 * tests/test-isnanl.c: New file.
33006 * modules/isnanl: New file.
33007 * lib/isnanl.h: New file.
33008 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
33009 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
33010 gl_FUNC_ISNANL_WORKS.
33011 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
33014 2007-03-21 Bruno Haible <bruno@clisp.org>
33016 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
33019 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
33020 * lib/vasnprintf.c: Update.
33021 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
33022 tests/test-isnanl.h, remove tests/test-isnanl.c.
33023 (Makefile.am): Update.
33024 * tests/test-isnanl-nolibm.c: New file.
33025 * tests/test-isnanl.h: New file.
33026 * tests/test-isnanl.c: Remove file.
33028 2007-03-21 Jim Meyering <jim@meyering.net>
33030 When trying to open ".", treat ESTALE like EACCES.
33031 * lib/savewd.c (savewd_save): Resort to forking not just upon
33032 failure with EACCES, but also when errno is ESTALE.
33034 2007-03-20 Bruno Haible <bruno@clisp.org>
33036 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
33037 Needed on AIX 5.1. Reported by Matthew Woehlke.
33039 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
33041 Suggestions by Bruno Haible:
33042 * lib/acl-internal.h: Include "gettext.h" rather than rolling
33044 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
33045 * modules/acl (Depends-on): Add gettext.
33047 2007-03-19 Bruno Haible <bruno@clisp.org>
33049 * modules/iconvme: Remove file.
33050 * lib/iconvme.h: Remove file.
33051 * lib/iconvme.c: Remove file.
33052 * m4/iconvme.m4: Remove file.
33054 2007-03-19 Bruno Haible <bruno@clisp.org>
33056 * doc/relocatable-maint.texi: Break long shell script line.
33057 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33059 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
33061 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
33062 handle file_has_acl.
33063 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
33064 * lib/acl.c: Move header inclusions and related macro defns into
33065 lib/acl-internal.h.
33066 (S_ISLNK): Remove defn, since that's now done for us.
33067 (file_has_acl): Move to lib/file-has-acl.c.
33068 Call acl_trivial if available. This is the crucial part of the fix.
33069 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
33070 shared within the library. Rewrite a bit, partly to make it compatible
33071 with the GNU coding style.
33072 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
33073 Remove unnecessary double-quotes.
33074 Don't test for acl_to_text; the build will catch that.
33075 Replace acl_entries if it doesn't exist and it is needed.
33076 Check for -lsec and acl_trivial (as used on Solaris 10).
33077 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
33078 lib/file-has-acl.c.
33079 (Depends-on): Add sys_stat, for S_ISLNK.
33081 2007-03-19 Ben Pfaff <blp@gnu.org>
33083 * doc/gnulib.texi: Fix typos.
33084 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33086 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
33088 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
33089 If size is zero here, buf must be zero.
33091 2007-03-19 Simon Josefsson <simon@josefsson.org>
33093 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
33096 2007-03-18 Bruno Haible <bruno@clisp.org>
33098 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
33099 Suggested by Eric Blake.
33101 2007-03-18 Ben Pfaff <blp@gnu.org>
33103 * doc/relocatable.texi: Recommend using as prefix a directory
33104 that does not exist and will never be created. Based on
33105 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
33108 2007-03-17 Bruno Haible <bruno@clisp.org>
33110 * lib/fchownat.c: Include lchown.h.
33112 2007-03-17 Bruno Haible <bruno@clisp.org>
33114 Fix endless loop when the given allocated size was > INT_MAX.
33115 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
33116 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
33117 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
33118 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
33119 * lib/sprintf.c (sprintf): Likewise.
33121 2007-03-17 Bruno Haible <bruno@clisp.org>
33123 * tests/test-argp-2.sh (func_compare): Output a context diff.
33125 2007-03-17 Bruno Haible <bruno@clisp.org>
33127 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
33128 locale's decimal-point character.
33130 2007-03-17 Bruno Haible <bruno@clisp.org>
33132 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
33133 before comparing it. Needed because on some platforms (e.g. x86) a
33134 'long double' occupies less bytes than sizeof (long double).
33136 2007-03-17 Bruno Haible <bruno@clisp.org>
33138 * tests/test-crc.c (main): Make printf statements 64-bit clean.
33139 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
33140 * tests/test-getaddrinfo.c (simple): Likewise.
33141 * tests/test-read-file.c (main): Likewise.
33143 2007-03-17 Bruno Haible <bruno@clisp.org>
33145 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
33147 2007-03-17 Bruno Haible <bruno@clisp.org>
33149 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
33152 2007-03-17 Bruno Haible <bruno@clisp.org>
33154 * tests/test-c-strcasecmp.c: Include c-strcase.h.
33155 * tests/test-c-strncasecmp.c: Likewise.
33157 2007-03-17 Bruno Haible <bruno@clisp.org>
33159 * modules/stdlib (Depends-on): Add unistd.
33160 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
33161 Needed for MacOS X 10.3.
33163 2007-03-17 Bruno Haible <bruno@clisp.org>
33165 * lib/unistr/u-strdup.h: Include <stdlib.h>.
33167 2007-03-17 Bruno Haible <bruno@clisp.org>
33169 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
33171 2007-03-17 Bruno Haible <bruno@clisp.org>
33173 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
33174 to reflect files copied from gnulib (with or without modifications).
33175 Suggested by Jim Meyering.
33177 2007-03-17 Eric Blake <ebb9@byu.net>
33179 * NEWS: Document stdlib change from 2007-02-18.
33181 2007-03-17 Jim Meyering <jim@meyering.net>
33183 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
33184 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
33185 someone uses a name containing shell meta-characters.
33186 Reported by Alfred M. Szmidt.
33188 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
33190 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
33192 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
33193 and copy gettext configuration files only if configure.ac contains
33194 a use of AM_GNU_GETTEXT_VERSION.
33196 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
33198 * build-aux/bootstrap (gnulib_name): New variable.
33199 (gnulib_tool_options): Use it.
33201 2007-03-13 Simon Josefsson <simon@josefsson.org>
33203 * tests/test-des.c: Use new namespace.
33205 2007-03-15 Bruno Haible <bruno@clisp.org>
33207 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
33208 Reported by James Youngman <jay@gnu.org>.
33210 2007-03-15 Bruno Haible <bruno@clisp.org>
33212 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
33213 declared prototype. Needed with cc on OSF/1 5.1.
33215 2007-03-15 Bruno Haible <bruno@clisp.org>
33217 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
33218 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
33219 (struct gl_list_implementation): Add dispose_fn argument to the
33220 'create_empty', 'create' methods.
33221 (struct gl_list_impl_base): Add field 'dispose_fn'.
33222 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
33224 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
33225 dispose_fn argument.
33226 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
33227 dispose_fn on the dropped values.
33228 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
33229 dispose_fn argument.
33230 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
33232 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
33233 (gl_tree_remove_node): Call dispose_fn on the dropped value.
33234 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
33235 (gl_tree_remove_node): Call dispose_fn on the dropped value.
33236 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
33238 (gl_tree_list_free): Call dispose_fn on the dropped values.
33239 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
33240 the dropped values.
33241 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
33242 Add dispose_fn argument.
33243 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
33244 Call dispose_fn on the dropped values.
33245 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
33246 Add dispose_fn argument.
33247 (gl_sublist_create): Initialize the 'dispose_fn' field.
33248 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
33249 * tests/test-array_list.c (main): Update.
33250 * tests/test-carray_list.c (main): Update.
33251 * tests/test-avltree_list.c (main): Update.
33252 * tests/test-rbtree_list.c (main): Update.
33253 * tests/test-avltreehash_list.c (main): Update.
33254 * tests/test-rbtreehash_list.c (main): Update.
33255 * tests/test-linked_list.c (main): Update.
33256 * tests/test-linkedhash_list.c (main): Update.
33257 * tests/test-array_oset.c (main): Update.
33259 2007-03-15 Bruno Haible <bruno@clisp.org>
33261 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
33262 (gl_oset_create_empty): Add dispose_fn argument.
33263 (struct gl_oset_implementation): Add dispose_fn argument to
33264 'create_empty' method.
33265 (struct gl_oset_impl_base): Add dispose_fn field.
33266 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
33267 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
33268 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
33270 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
33271 (gl_tree_oset_free): Call dispose_fn on the dropped values.
33272 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33274 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33276 * tests/test-array_oset.c (main): Update.
33277 * tests/test-avltree_oset.c (main): Update.
33278 * tests/test-rbtree_oset.c (main): Update.
33279 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
33281 2007-03-13 Bruno Haible <bruno@clisp.org>
33283 * tests/test-stdbool.c (i): Update after last patch.
33285 2007-03-12 Bruno Haible <bruno@clisp.org>
33287 * lib/quotearg.c: Include <wctype.h> early, before the definition of
33288 the iswprint macro. Needed on Solaris 2.5.1.
33290 2007-03-12 Bruno Haible <bruno@clisp.org>
33292 * tests/test-printf-frexp.c (main): Declare x as volatile.
33294 2007-03-12 Simon Josefsson <simon@josefsson.org>
33296 * doc/gnulib.texi (Build robot for gnulib): New section.
33298 2007-03-12 Jim Meyering <jim@meyering.net>
33300 * build-aux/bootstrap: New file.
33301 * build-aux/bootstrap.conf: New file, from coreutils.
33303 2007-03-11 Bruno Haible <bruno@clisp.org>
33305 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
33307 2007-03-12 Simon Josefsson <simon@josefsson.org>
33309 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
33310 avoid collisions with 'des_setkey'. Reported by Bruno Haible
33311 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
33313 2007-03-11 Bruno Haible <bruno@clisp.org>
33315 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
33316 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
33318 2007-03-11 Bruno Haible <bruno@clisp.org>
33320 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
33321 formula. Needed for SunPRO C 5.0.
33323 2007-03-11 Bruno Haible <bruno@clisp.org>
33325 * modules/long-options (Depends-on): Add getopt.
33327 2007-03-11 Bruno Haible <bruno@clisp.org>
33329 * modules/modechange (Depends-on): Add stdbool.
33331 2007-03-11 Bruno Haible <bruno@clisp.org>
33333 * modules/i-ring (Depends-on): Add stdbool.
33335 2007-03-11 Bruno Haible <bruno@clisp.org>
33337 * modules/gc-des (Depends-on): Add stdbool.
33339 2007-03-11 Bruno Haible <bruno@clisp.org>
33341 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
33343 2007-03-11 Bruno Haible <bruno@clisp.org>
33345 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
33347 2007-03-11 Bruno Haible <bruno@clisp.org>
33349 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
33351 2007-03-11 Bruno Haible <bruno@clisp.org>
33353 * lib/vasnprintf.c (sprintf): Undefine.
33355 2007-03-11 Bruno Haible <bruno@clisp.org>
33357 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
33358 initializers in SunPRO C and Compaq C compilers.
33360 2007-03-11 Bruno Haible <bruno@clisp.org>
33362 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
33363 decrementing code ANSI C compliant.
33365 2007-03-11 Bruno Haible <bruno@clisp.org>
33367 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
33368 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
33370 2007-03-11 Bruno Haible <bruno@clisp.org>
33372 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
33373 <stdbool.h> substitute doesn't pass.
33375 2007-03-11 Bruno Haible <bruno@clisp.org>
33377 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
33379 2007-03-11 Bruno Haible <bruno@clisp.org>
33381 * gnulib-tool (func_create_megatestdir): Create also an autobuild
33382 script, for submission to autobuild.josefsson.org.
33384 2007-03-10 Bruno Haible <bruno@clisp.org>
33386 * modules/canonicalize-lgpl-tests: New file.
33387 * tests/test-canonicalize-lgpl.sh: New file.
33388 * tests/test-canonicalize-lgpl.c: New file.
33390 * modules/c-strcase-tests: New file.
33391 * tests/test-c-strcase.sh: New file.
33392 * tests/test-c-strcasecmp.c: New file.
33393 * tests/test-c-strncasecmp.c: New file.
33395 * modules/atexit-tests: New file.
33396 * tests/test-atexit.sh: New file.
33397 * tests/test-atexit.c: New file.
33399 2007-03-10 Bruno Haible <bruno@clisp.org>
33401 * tests/test-binary-io.sh: Use temporary filenames that are not so
33402 likely to clash with those of other tests (in a parallel make).
33403 * tests/test-binary-io.c: Likewise.
33405 2007-03-10 Bruno Haible <bruno@clisp.org>
33407 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
33408 fallback; use #error instead.
33409 Suggested by Simon Josefsson.
33411 2007-03-10 Bruno Haible <bruno@clisp.org>
33413 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
33414 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
33415 first and the last.
33417 2007-03-10 Bruno Haible <bruno@clisp.org>
33419 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
33421 2007-03-10 Bruno Haible <bruno@clisp.org>
33423 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
33425 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
33426 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
33427 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
33429 2007-03-10 Bruno Haible <bruno@clisp.org>
33431 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
33433 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
33436 2007-03-09 Eric Blake <ebb9@byu.net>
33437 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
33439 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
33440 types are not being provided by gnulib.
33441 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
33442 types are supported.
33444 2007-03-10 Bruno Haible <bruno@clisp.org>
33446 * lib/stdio_.h (__attribute__): New macro.
33447 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
33448 vsprintf): Specify __attribute__ __format__ for GCC.
33449 Suggested by Eric Blake.
33451 2007-03-09 Bruno Haible <bruno@clisp.org>
33453 * modules/printf-posix-tests: New file.
33454 * tests/test-printf-posix.sh: New file.
33455 * tests/test-printf-posix.c: New file.
33457 * modules/printf-posix: New file.
33458 * lib/printf.c: New file.
33459 * m4/printf-posix-rpl.m4: New file.
33460 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
33462 * lib/stdio_.h (printf): New declaration.
33463 (format, __format__, ____printf____, ____scanf____, ____strftime____,
33464 ____strfmon____): New macros.
33465 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
33468 2007-03-09 Bruno Haible <bruno@clisp.org>
33470 * tests/test-vasnprintf-posix2.sh: New file.
33471 * tests/test-vasnprintf-posix2.c: New file.
33472 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
33473 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33474 (Makefile.am): Activate test-vasnprintf-posix2.sh.
33476 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
33477 a locale dependent decimal point, rather than always '.'.
33479 2007-03-09 Eric Blake <ebb9@byu.net>
33481 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
33482 spite of platforms like Tandem/NSK that define it to -1.
33484 2007-03-08 Bruno Haible <bruno@clisp.org>
33486 * modules/vprintf-posix-tests: New file.
33487 * tests/test-vprintf-posix.sh: New file.
33488 * tests/test-vprintf-posix.c: New file.
33489 * tests/test-printf-posix.h: New file.
33491 * modules/vprintf-posix: New file.
33492 * lib/vprintf.c: New file.
33493 * m4/vprintf-posix.m4: New file.
33494 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
33496 * lib/stdio_.h (vprintf): New declaration.
33497 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
33500 2007-03-08 Bruno Haible <bruno@clisp.org>
33502 * modules/fprintf-posix-tests: New file.
33503 * tests/test-fprintf-posix.sh: New file.
33504 * tests/test-fprintf-posix.c: New file.
33506 * modules/fprintf-posix: New file.
33507 * lib/fprintf.c: New file.
33508 * m4/fprintf-posix.m4: New file.
33509 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
33511 * lib/stdio_.h (fprintf): New declaration.
33512 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
33515 2007-03-08 Bruno Haible <bruno@clisp.org>
33517 * modules/vfprintf-posix-tests: New file.
33518 * tests/test-vfprintf-posix.sh: New file.
33519 * tests/test-vfprintf-posix.c: New file.
33520 * tests/test-fprintf-posix.h: New file.
33521 * tests/test-fprintf-posix.out: New file.
33523 * modules/vfprintf-posix: New file.
33524 * lib/vfprintf.c: New file.
33525 * m4/vfprintf-posix.m4: New file.
33526 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
33528 * lib/stdio_.h (vfprintf): New declaration.
33529 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
33532 2007-03-08 Bruno Haible <bruno@clisp.org>
33534 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
33536 2007-03-08 Bruno Haible <bruno@clisp.org>
33538 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
33539 instead of 'expr' invocations.
33540 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33541 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33542 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33543 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33544 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33545 Suggested by Paul Eggert.
33547 2007-03-08 Bruno Haible <bruno@clisp.org>
33549 * modules/fseterr-tests: New file.
33550 * tests/test-fseterr.c: New file.
33552 * modules/fseterr: New file.
33553 * lib/fseterr.h: New file.
33554 * lib/fseterr.c: New file.
33556 2007-03-08 Bruno Haible <bruno@clisp.org>
33558 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
33559 * lib/getopt_.h: Likewise.
33560 * lib/mbswidth.h: Likewise.
33561 * lib/setenv.h: Likewise.
33562 * lib/vasnprintf.h: Likewise.
33563 * lib/vasprintf.h: Likewise.
33564 * lib/verror.h: Likewise.
33565 * lib/xsetenv.h: Likewise.
33566 * lib/xvasprintf.h: Likewise.
33568 2007-03-08 Jim Meyering <jim@meyering.net>
33570 * users.txt: Add parted.
33572 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
33574 2007-03-07 Bruno Haible <bruno@clisp.org>
33576 * m4/printf.m4: Make the shell script snippets copy&pastable.
33578 2007-03-02 Bruno Haible <bruno@clisp.org>
33580 * lib/netinet_in_.h: New file.
33581 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
33582 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
33583 * modules/netinet_in (Files): Add lib/netinet_in_.h.
33584 (Depends-on): Add absolute-header.
33585 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
33588 2007-03-03 Bruno Haible <bruno@clisp.org>
33590 * lib/sys_select_.h: New file.
33591 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
33592 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
33593 * modules/sys_select (Files): Add lib/sys_select_.h.
33594 (Depends-on): Add absolute-header.
33595 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
33598 2007-03-02 Bruno Haible <bruno@clisp.org>
33600 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
33601 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
33603 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
33604 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
33605 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
33606 * modules/sys_socket (Depends-on): Add absolute-header.
33607 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
33608 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
33609 (Include): Remove requirement of inclusion of <sys/types.h>.
33611 2007-03-02 Bruno Haible <bruno@clisp.org>
33613 * lib/byteswap_.h (bswap_32): Fix formula.
33615 2007-03-06 Bruno Haible <bruno@clisp.org>
33617 * modules/sprintf-posix-tests: New file.
33618 * tests/test-sprintf-posix.c: New file.
33620 * modules/sprintf-posix: New file.
33621 * lib/sprintf.c: New file.
33622 * m4/sprintf-posix.m4: New file.
33623 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
33625 * lib/stdio_.h (sprintf): New declaration.
33626 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
33629 2007-03-06 Bruno Haible <bruno@clisp.org>
33631 * modules/vsprintf-posix-tests: New file.
33632 * tests/test-vsprintf-posix.c: New file.
33633 * tests/test-sprintf-posix.h: New file.
33635 * modules/vsprintf-posix: New file.
33636 * lib/vsprintf.c: New file.
33637 * m4/vsprintf-posix.m4: New file.
33638 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
33640 * lib/stdio_.h (vsprintf): New declaration.
33641 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
33644 2007-03-06 Bruno Haible <bruno@clisp.org>
33646 * modules/vsnprintf (Depend-on): Remove minmax.
33648 2007-03-06 Bruno Haible <bruno@clisp.org>
33650 * modules/snprintf-posix-tests: New file.
33651 * tests/test-snprintf-posix.c: New file.
33653 * modules/snprintf-posix: New file.
33654 * m4/snprintf-posix.m4: New file.
33655 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
33657 (gl_FUNC_SNPRINTF): Invoke it.
33658 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
33659 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
33661 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
33663 2007-03-06 Bruno Haible <bruno@clisp.org>
33665 * modules/vsnprintf-posix-tests: New file.
33666 * tests/test-vsnprintf-posix.c: New file.
33667 * tests/test-snprintf-posix.h: New file.
33669 * modules/vsnprintf-posix: New file.
33670 * m4/vsnprintf-posix.m4: New file.
33671 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
33673 (gl_FUNC_VSNPRINTF): Invoke it.
33674 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
33675 * lib/stdio_.h (vsnprintf): Define as a replacement if
33676 REPLACE_VSNPRINTF is set.
33677 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
33679 2007-03-06 Bruno Haible <bruno@clisp.org>
33681 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
33682 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
33684 2007-03-06 Bruno Haible <bruno@clisp.org>
33686 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
33687 (asinl): Declare also if HAVE_DECL_ASINL is set.
33688 (atanl): Declare also if HAVE_DECL_ATANL is set.
33689 (ceill): Declare also if HAVE_DECL_CEILL is set.
33690 (cosl): Declare also if HAVE_DECL_COSL is set.
33691 (expl): Declare also if HAVE_DECL_EXPL is set.
33692 (floorl): Declare also if HAVE_DECL_FLOORL is set.
33693 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
33694 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
33695 (logl): Declare also if HAVE_DECL_LOGL is set.
33696 (sinl): Declare also if HAVE_DECL_SINL is set.
33697 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
33698 (tanl): Declare also if HAVE_DECL_TANL is set.
33699 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
33700 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
33701 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
33702 declaration of frexpl, ldexpl.
33703 * modules/printf-frexpl (Depends-on): Add math.
33704 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
33706 2007-03-05 Bruno Haible <bruno@clisp.org>
33708 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
33709 frexpl and ldexpl are declared.
33710 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
33712 2007-03-05 Bruno Haible <bruno@clisp.org>
33714 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
33715 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
33717 2007-03-05 Bruno Haible <bruno@clisp.org>
33719 * lib/stdio_.h: Include <stddef.h>.
33721 2007-03-05 Bruno Haible <bruno@clisp.org>
33723 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
33725 2007-03-05 Bruno Haible <bruno@clisp.org>
33727 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
33728 NetBSD 4, from Ralf Wildenhues.
33730 2007-03-04 Bruno Haible <bruno@clisp.org>
33732 * lib/vasprintf.h: Update #if logic for the case when the functions
33733 exist but are overridden.
33735 2007-03-04 Bruno Haible <bruno@clisp.org>
33737 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
33738 implementations: glibc-2.4 and MacOS X 10.3.
33739 * tests/test-vasnprintf-posix.c (test_function): Test also the case
33740 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
33741 * tests/test-vasprintf-posix.c (test_function): Likewise.
33743 2007-03-04 Bruno Haible <bruno@clisp.org>
33745 * modules/vasprintf-posix-tests: New file.
33746 * tests/test-vasprintf-posix.c: New file.
33748 * modules/vasprintf-posix: New file.
33749 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
33751 * m4/vasprintf-posix.m4: New file.
33752 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
33754 (gl_FUNC_VASPRINTF): Invoke it.
33755 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
33757 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
33759 2007-03-04 Bruno Haible <bruno@clisp.org>
33761 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
33762 REPLACE_GETTIMEOFDAY.
33763 * modules/sys_time (Makefile.am): Likewise.
33764 * m4/sys_time_h.m4: Likewise.
33765 * m4/gettimeofday.m4: Likewise.
33767 2007-03-04 Bruno Haible <bruno@clisp.org>
33769 * modules/vasnprintf-posix-tests: New file.
33770 * tests/test-vasnprintf-posix.c: New file.
33772 * modules/vasnprintf-posix: New file.
33773 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
33775 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
33776 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
33777 REPLACE_VASNPRINTF is defined.
33778 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
33779 gl_FUNC_VASNPRINTF.
33780 (gl_FUNC_VASNPRINTF): Invoke it.
33781 * m4/vasnprintf-posix.m4: New file.
33782 * m4/printf.m4: New file.
33784 2007-03-04 Bruno Haible <bruno@clisp.org>
33786 Compile progreloc.c only if --enable-relocatable is specified.
33787 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
33788 if --enable-relocatable was specified.
33789 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
33792 2007-03-04 Jim Meyering <jim@meyering.net>
33794 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
33795 Use it consistently, rather than enumerating errno constants.
33797 2007-03-04 Bruno Haible <bruno@clisp.org>
33799 * modules/xvasprintf-tests: New file.
33800 * tests/test-xvasprintf.c: New file.
33802 * modules/vasprintf-tests: New file.
33803 * tests/test-vasprintf.c: New file.
33805 * modules/vasnprintf-tests: New file.
33806 * tests/test-vasnprintf.c: New file.
33808 * modules/vsnprintf-tests: New file.
33809 * tests/test-vsnprintf.c: New file.
33811 * modules/snprintf-tests: New file.
33812 * tests/test-snprintf.c: New file.
33814 2007-03-04 Bruno Haible <bruno@clisp.org>
33816 Compile relocatable.c only if --enable-relocatable is specified.
33817 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
33818 gl_RELOCATABLE_LIBRARY.
33819 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
33820 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
33821 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
33822 gl_RELOCATABLE_LIBRARY.
33823 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
33824 (Makefile.am): Remove lib_SOURCES.
33825 * modules/relocatable-lib-lgpl (configure.ac): Invoke
33826 gl_RELOCATABLE_LIBRARY.
33827 (Makefile.am): Remove lib_SOURCES.
33828 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
33830 * modules/relocatable-prog-wrapper (configure.ac): Invoke
33831 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
33833 2007-03-04 Bruno Haible <bruno@clisp.org>
33835 * modules/argmatch-tests: New file.
33836 * tests/test-argmatch.c: New file.
33838 * tests/test-allocsa.c (main): Halve the number of loop runs.
33840 * modules/alloca-opt-tests: New file.
33841 * tests/test-alloca-opt.c: New file.
33843 2007-03-04 Jim Meyering <jim@meyering.net>
33845 Work around difference between Linux ACLs and Solaris 10 ZFS.
33846 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
33849 2007-03-03 Bruno Haible <bruno@clisp.org>
33851 * modules/relocatable-prog (Depends-on): Add back progreloc's
33852 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
33854 2007-03-03 Bruno Haible <bruno@clisp.org>
33856 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
33857 * modules/relocatable-lib: New file.
33859 2007-03-03 Bruno Haible <bruno@clisp.org>
33861 * modules/relocatable-prog: Renamed from modules/relocatable.
33862 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
33864 2007-03-03 Bruno Haible <bruno@clisp.org>
33866 * modules/relocatable-script (Files): Add doc/relocatable.texi,
33867 m4/relocatable-lib.m4.
33868 (Depends-on): Remove 'relocatable'.
33869 (configure.ac): Add gl_RELOCATABLE_NOP.
33871 2007-03-03 Bruno Haible <bruno@clisp.org>
33873 * modules/relocatable-prog-wrapper: New file.
33874 * modules/relocatable (Depends-on): Add it. Remove all other
33875 dependencies except progname.
33876 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
33878 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
33879 (gl_FUNC_STRERROR): Nop.
33880 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
33882 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
33883 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
33885 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
33886 (gl_FUNC_READLINK): Update.
33888 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
33890 2007-03-03 Bruno Haible <bruno@clisp.org>
33892 * lib/xreadlink.c: Include <unistd.h> unconditionally.
33893 * modules/xreadlink (Depends-on): Add unistd.
33894 * modules/xreadlink-with-size (Depends-on): Likewise.
33896 2007-03-03 Bruno Haible <bruno@clisp.org>
33898 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
33899 extracted from gt_FUNC_SETENV.
33900 (gt_FUNC_SETENV): Remove macro.
33901 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
33902 remove gt_FUNC_SETENV.
33904 2007-03-03 Bruno Haible <bruno@clisp.org>
33906 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
33907 ENABLE_RELOCATABLE here.
33908 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
33910 2007-03-03 Bruno Haible <bruno@clisp.org>
33912 * modules/rbtreehash-list-tests (Depends-on): Add progname.
33913 * tests/test-rbtreehash_list.c: Include progname.h.
33914 (main): Call set_program_name.
33916 * modules/rbtree-oset-tests (Depends-on): Add progname.
33917 * tests/test-rbtree_oset.c: Include progname.h.
33918 (main): Call set_program_name.
33920 * modules/rbtree-list-tests (Depends-on): Add progname.
33921 * tests/test-rbtree_list.c: Include progname.h.
33922 (main): Call set_program_name.
33924 * modules/linked-list-tests (Depends-on): Add progname.
33925 * tests/test-linked_list.c: Include progname.h.
33926 (main): Call set_program_name.
33928 2007-03-03 Bruno Haible <bruno@clisp.org>
33930 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
33931 All uses of __restrict changed to _Restrict_.
33932 * lib/glob_.h (__restrict): Remove macro.
33934 2007-03-02 Bruno Haible <bruno@clisp.org>
33936 * modules/gettext (configure.ac): Require gettext infrastructure
33937 from version 0.16.1.
33939 2007-03-02 Bruno Haible <bruno@clisp.org>
33941 * modules/linkedhash-list-tests (Depends-on): Add progname.
33942 * tests/test-linkedhash_list.c: Include progname.h.
33943 (main): Call set_program_name.
33945 * modules/carray-list-tests (Depends-on): Add progname.
33946 * tests/test-carray_list.c: Include progname.h.
33947 (main): Call set_program_name.
33949 * modules/avltreehash-list-tests (Depends-on): Add progname.
33950 * tests/test-avltreehash_list.c: Include progname.h.
33951 (main): Call set_program_name.
33953 * modules/avltree-oset-tests (Depends-on): Add progname.
33954 * tests/test-avltree_oset.c: Include progname.h.
33955 (main): Call set_program_name.
33957 * modules/avltree-list-tests (Depends-on): Add progname.
33958 * tests/test-avltree_list.c: Include progname.h.
33959 (main): Call set_program_name.
33961 * modules/array-oset-tests (Depends-on): Add progname.
33962 * tests/test-array_oset.c: Include progname.h.
33963 (main): Call set_program_name.
33965 * modules/array-list-tests (Depends-on): Add progname.
33966 * tests/test-array_list.c: Include progname.h.
33967 (main): Call set_program_name.
33969 * modules/argp-tests (Depends-on): Add progname.
33970 * tests/test-argp.c: Include argp.h first. Include progname.h.
33971 (main): Call set_program_name.
33973 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
33975 * doc/gnulib-tool.texi (Initial import): Reword description of
33976 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
33977 limited effect even if defined after the first system include.
33979 2007-03-01 Bruno Haible <bruno@clisp.org>
33981 * build-aux/config.libpath: Update to libtool-1.5.22.
33982 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33984 2007-03-01 Bruno Haible <bruno@clisp.org>
33986 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
33988 Reported by Ralf Wildenhues.
33990 2007-03-01 Bruno Haible <bruno@clisp.org>
33992 * build-aux/install-reloc: Remove object files left over by some
33994 Reported by Ralf Wildenhues.
33996 2007-03-01 Bruno Haible <bruno@clisp.org>
33998 * build-aux/install-reloc: Break long lines.
34000 2007-03-01 Bruno Haible <bruno@clisp.org>
34002 * doc/relocatable.texi: Document that it may not work on OpenBSD.
34003 Reported by Ralf Wildenhues.
34005 2007-03-01 Bruno Haible <bruno@clisp.org>
34007 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
34008 include ordering constraints.
34010 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
34012 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
34013 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
34014 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
34015 as another example.
34016 * lib/time_.h: Fix misspelling.
34017 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
34018 Require gl_HEADER_TIME_H_DEFAULTS.
34019 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
34020 * m4/time_r.m4 (gl_TIME_R): Likewise.
34021 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
34023 2007-03-01 Bruno Haible <bruno@clisp.org>
34025 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
34026 * m4/utimens.m4 (gl_UTIMENS): Likewise.
34028 2007-03-01 Jim Meyering <jim@meyering.net>
34030 * modules/xreadlink (Maintainer): Add my name.
34031 * modules/xreadlink-with-size (Depends-on): Alphabetize.
34033 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
34034 Bruno Haible <bruno@clisp.org>
34036 * build-aux/install-reloc: Compile also c-ctype.c.
34037 * build-aux/relocatable.sh.in: New file.
34038 * doc/relocatable.texi: New file.
34039 * doc/relocatable-maint.texi: New file.
34040 * doc/gnulib.texi: Include relocatable-maint.texi.
34041 * lib/progreloc.c: Include unistd.h unconditionally.
34042 * lib/relocwrapper.c: Include unistd.h unconditionally.
34044 (add_dotbin): Use c_tolower.
34045 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
34046 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
34047 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
34048 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
34049 to m4/relocatable-lib.m4.
34050 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
34051 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
34052 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
34053 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
34054 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
34055 * modules/relocatable: New file.
34056 * modules/relocatable-lib: New file.
34057 * modules/relocatable-script: New file.
34059 2007-02-28 Bruno Haible <bruno@clisp.org>
34061 Import --enable-relocatable infrastructure.
34062 * build-aux/config.libpath: New file, from GNU gettext.
34063 * build-aux/install-reloc: New file, from GNU gettext.
34064 * build-aux/reloc-ldflags: New file, from GNU gettext.
34065 * lib/relocatable.h: New file, from GNU gettext.
34066 * lib/relocatable.c: New file, from GNU gettext.
34067 * lib/relocwrapper.c: New file, from GNU gettext.
34068 * m4/relocatable.m4: New file, from GNU gettext.
34070 2007-02-28 Bruno Haible <bruno@clisp.org>
34072 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
34074 * modules/xreadlink: New file, from GNU gettext with modifications.
34075 * lib/xreadlink.c: New file, from GNU gettext.
34076 * lib/xreadlink.h: Add comments.
34077 (xreadlink): New declaration.
34079 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
34080 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
34081 lib/xreadlink-with-size.c.
34082 (configure.ac): Remove gl_XREADLINK invocation.
34083 (Makefile.am): Augment lib_SOURCES.
34084 * m4/xreadlink.m4: Remove file.
34085 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
34086 (xreadlink_with_size): Renamed from xreadink.
34087 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
34088 * modules/canonicalize (Depends-on): Replace xreadlink with
34089 xreadlink-with-size.
34090 * lib/canonicalize.c (canonicalize_filename_mode): Update.
34092 2007-02-25 Jim Meyering <jim@meyering.net>
34094 * build-aux/announce-gen: When complaining about excess arguments,
34097 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
34099 * README: Document signed integer overflow situation more
34102 2007-02-25 Bruno Haible <bruno@clisp.org>
34104 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
34105 'a' or 'A' conversion.
34107 2007-02-25 Bruno Haible <bruno@clisp.org>
34109 * modules/filename: Renamed from modules/pathname.
34110 (Files): Replace lib/pathname.h with lib/filename.h. Replace
34111 lib/concatpath.c with lib/concat-filename.c.
34112 (Makefile.am): Update.
34113 (Include): Replace pathname.h with filename.h.
34114 * lib/filename.h: Renamed from lib/pathname.h.
34115 (concatenated_filename): Renamed from concatenated_pathname.
34116 * lib/concat-filename.c: Renamed from lib/concatpath.c.
34117 (concatenated_filename): Renamed from concatenated_pathname.
34118 * lib/findprog.c: Include filename.h instead of pathname.h.
34119 (find_in_path): Update.
34120 * lib/javacomp.c: Include filename.h instead of pathname.h.
34121 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34122 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34123 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34124 is_oldgcj_14_13_usable, is_javac_usable): Update.
34125 * lib/javaexec.c: Include filename.h instead of pathname.h.
34126 (execute_java_class): Update.
34127 * modules/findprog: Update.
34128 * modules/javacomp: Update.
34129 * modules/javaexec: Update.
34130 * MODULES.html.sh (File system functions): Add 'filename', remove
34133 2007-02-25 Bruno Haible <bruno@clisp.org>
34135 * modules/printf-frexpl-tests: New file.
34136 * tests/test-printf-frexpl.c: New file.
34138 * modules/printf-frexpl: New file.
34139 * lib/printf-frexpl.h: New file.
34140 * lib/printf-frexpl.c: New file.
34141 * m4/printf-frexpl.m4: New file.
34143 2007-02-25 Bruno Haible <bruno@clisp.org>
34145 * modules/printf-frexp-tests: New file.
34146 * tests/test-printf-frexp.c: New file.
34148 * modules/printf-frexp: New file.
34149 * lib/printf-frexp.h: New file.
34150 * lib/printf-frexp.c: New file.
34151 * m4/printf-frexp.m4: New file.
34153 2007-02-25 Bruno Haible <bruno@clisp.org>
34155 Assume automake >= 1.10 for the tests.
34156 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
34157 * modules/arctwo-tests: Likewise.
34158 * modules/argp-tests: Likewise.
34159 * modules/avltree-list-tests: Likewise.
34160 * modules/avltree-oset-tests: Likewise.
34161 * modules/avltreehash-list-tests: Likewise.
34162 * modules/carray-list-tests: Likewise.
34163 * modules/crc-tests: Likewise.
34164 * modules/des-tests: Likewise.
34165 * modules/gc-arcfour-tests: Likewise.
34166 * modules/gc-arctwo-tests: Likewise.
34167 * modules/gc-des-tests: Likewise.
34168 * modules/gc-hmac-md5-tests: Likewise.
34169 * modules/gc-hmac-sha1-tests: Likewise.
34170 * modules/gc-md2-tests: Likewise.
34171 * modules/gc-md4-tests: Likewise.
34172 * modules/gc-md5-tests: Likewise.
34173 * modules/gc-pbkdf2-sha1-tests: Likewise.
34174 * modules/gc-rijndael-tests: Likewise.
34175 * modules/gc-sha1-tests: Likewise.
34176 * modules/gc-tests: Likewise.
34177 * modules/getaddrinfo-tests: Likewise.
34178 * modules/hmac-md5-tests: Likewise.
34179 * modules/hmac-sha1-tests: Likewise.
34180 * modules/linked-list-tests: Likewise.
34181 * modules/linkedhash-list-tests: Likewise.
34182 * modules/lock-tests: Likewise.
34183 * modules/md2-tests: Likewise.
34184 * modules/md4-tests: Likewise.
34185 * modules/md5-tests: Likewise.
34186 * modules/rbtree-list-tests: Likewise.
34187 * modules/rbtree-oset-tests: Likewise.
34188 * modules/rbtreehash-list-tests: Likewise.
34189 * modules/read-file-tests: Likewise.
34190 * modules/rijndael-tests: Likewise.
34191 * modules/stdint-tests: Likewise.
34192 * modules/tls-tests: Likewise.
34194 2007-02-24 Bruno Haible <bruno@clisp.org>
34196 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
34197 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
34198 function; instead check whether isnan with a double argument links.
34199 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
34200 function; instead check whether isnan with a 'long double' argument
34202 Reported by Eric Blake <ebb9@byu.net>.
34204 2007-02-24 Bruno Haible <bruno@clisp.org>
34206 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
34208 * lib/isnanl.c: Remove all code. Just include isnan.c.
34209 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
34211 2007-02-25 Jim Meyering <jim@meyering.net>
34213 Avoid conflicting types for 'unsetenv' on FreeBSD.
34214 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
34215 conflicting with FreeBSD's (5.0 and 6.1) function declaration
34218 2007-02-24 Bruno Haible <bruno@clisp.org>
34220 * modules/isnanl-nolibm-tests: New file.
34221 * tests/test-isnanl.c: New file.
34223 * modules/isnanl-nolibm: New file.
34224 * lib/isnanl.h: New file.
34225 * lib/isnanl.c: New file.
34226 * m4/isnanl.m4: New file.
34228 2007-02-24 Bruno Haible <bruno@clisp.org>
34230 * modules/isnan-nolibm-tests: New file.
34231 * tests/test-isnan.c: New file.
34233 * modules/isnan-nolibm: New file.
34234 * lib/isnan.h: New file.
34235 * lib/isnan.c: New file.
34236 * m4/isnan.m4: New file.
34238 2007-02-24 Bruno Haible <bruno@clisp.org>
34240 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
34241 assume that an exponent fits in 20 bits.
34243 2007-02-24 Jim Meyering <jim@meyering.net>
34245 * m4/regex.m4: Update the description of the configure-time option,
34246 --without-included-regex, to state accurately what the defaults are,
34247 and perhaps to give people an idea why using this option is risky.
34249 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
34251 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
34252 loops on small arguments. This attempts to avoid the problem
34253 Bruno Haible reported for AIX 4.3.2 in
34254 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
34256 2007-02-23 Bruno Haible <bruno@clisp.org>
34258 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
34259 Needed for help2man.
34261 2007-02-23 Karl Berry <karl@gnu.org>
34263 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
34264 exists, foo.h should be cvs-ignored, not committed.
34266 2007-02-23 Eric Blake <ebb9@byu.net>
34268 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
34269 * lib/stat-time.h (includes): Likewise.
34270 * lib/utimecmp.c (includes): Likewise.
34271 * lib/utimens.h (includes): Likewise.
34272 * lib/getdate.y (includes): Also include "timespec.h" for use
34273 internal to the module.
34274 * modules/utimens (Depends-on): Revert yesterday's patch.
34275 * modules/nanosleep (Depends-on): Add missing dependency.
34277 2007-02-22 Bruno Haible <bruno@clisp.org>
34279 * lib/glob.c: Don't include getlogin_r.h.
34281 2007-02-22 Jim Meyering <jim@meyering.net>
34283 * modules/utimens (Depends-on): Add timespec, required for
34284 utimens.h's inclusion of timespec.h.
34286 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
34288 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
34289 long unreadable paths in GNU/Linux. Problem reported by Andreas
34291 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
34292 I'll try to think of a better way to fix the Solaris problem.
34294 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
34295 like glibc; on Solaris 10, it fails with errno == EINVAL.
34296 POSIX says the behavior is unspecified if the first argument is NULL,
34297 so play it safe and never pass NULL to the system getcwd.
34299 2007-02-21 Jim Meyering <jim@meyering.net>
34301 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
34302 of gettimeofday. It would conflict with the one now always
34303 provided via sys_time_.h. Reported by Matthew Woehlke, as
34304 an IRIX 6.5 build failure.
34306 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
34308 Minor fixups to port to Solaris 10 with Sun C 5.8.
34309 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
34310 * modules/getcwd (Depends-on): Add dirfd.
34311 * lib/putenv.c (putenv): #undef it.
34312 (rpl_putenv): New decl.
34313 (malloc, free): Include <stdlib.h> rather than prototyping separately.
34315 2007-02-20 Bruno Haible <bruno@clisp.org>
34317 * modules/stdio-tests: New file.
34318 * tests/test-stdio.c: New file.
34320 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
34321 (Depends-on): Add stdio.
34322 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34323 (Include): Use <stdio.h> instead of vsnprintf.h.
34324 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34325 HAVE_DECL_VSNPRINTF.
34326 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
34328 * modules/snprintf (Files): Remove lib/snprintf.h.
34329 (Depends-on): Add stdio.
34330 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34331 (Include): Use <stdio.h> instead of snprintf.h.
34332 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34333 HAVE_DECL_SNPRINTF.
34334 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
34335 * lib/getaddrinfo.c: Likewise.
34337 * modules/stdio: New file.
34338 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
34339 * lib/snprintf.h: Remove file.
34340 * lib/vsnprintf.h: Remove file.
34341 * lib/.cppi-disable: Remove snprintf.h.
34342 * m4/stdio_h.m4: New file.
34343 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
34345 2007-02-20 Jim Meyering <jim@meyering.net>
34347 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
34348 used by e.g., mingw. From Bruno Haible.
34350 2007-02-19 Bruno Haible <bruno@clisp.org>
34352 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
34354 Reported by Ben Pfaff <blp@cs.stanford.edu>.
34356 2007-02-19 Bruno Haible <bruno@clisp.org>
34358 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
34361 2007-02-19 Bruno Haible <bruno@clisp.org>
34363 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
34365 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
34367 2007-02-19 Jim Meyering <jim@meyering.net>
34369 Don't use FD after a successful "fdopendir (fd)".
34370 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
34371 Reset it by calling dirfd on the just-obtained DIR*.
34373 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
34374 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
34376 2007-02-18 Bruno Haible <bruno@clisp.org>
34378 * lib/readlink.c: Include <unistd.h>.
34379 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
34381 * modules/readlink (Depends-on): Add unistd.
34382 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34383 (Include): Add <unistd.h>.
34385 * lib/getlogin_r.h: Remove file.
34386 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
34387 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
34388 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
34389 HAVE_DECL_GETLOGIN_R.
34390 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
34391 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34392 (Include): Use <unistd.h> instead of getlogin_r.h.
34394 * lib/getcwd.h: Remove file.
34395 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
34396 * lib/xgetcwd.c: Likewise.
34397 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
34398 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
34399 * modules/getcwd (Files): Remove lib/getcwd.h.
34400 (Depends-on): Add unistd.
34401 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34402 (Include): Use <unistd.h> instad of getcwd.h.
34404 * lib/ftruncate.c: Include <unistd.h> first.
34405 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
34406 Set HAVE_FTRUNCATE.
34407 * modules/ftruncate (Depends-on): Add unistd.
34408 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34410 * lib/fchdir.c: Include <unistd.h> first.
34411 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
34412 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
34413 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
34414 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34415 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
34417 * lib/dup2.c: Include <unistd.h> first.
34418 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
34420 * modules/dup2 (Depends-on): Add unistd.
34421 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34423 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
34424 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
34425 REPLACE_CHOWN. Don't define chown as a macro here.
34426 * modules/chown (Depends-on): Add unistd.
34427 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34429 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
34430 Add definition for GL_LINK_WARNING.
34431 (chown, dup2): New declarations.
34432 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
34434 (ftruncate): New declaration.
34435 (getcwd): New declaration, taken from old getcwd.h.
34436 (getlogin_r): New declaration, taken from old getlogin_r.h.
34437 (readlink): New declaration.
34438 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
34439 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
34440 (gl_PREREQ_UNISTD): Remove macro.
34441 (gl_UNISTD_MODULE_INDICATOR): New macro.
34442 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
34443 many new variables. Don't set UNISTD_H.
34444 * modules/unistd (Description): Change.
34445 (Depends-on): Add link-warning.
34446 (configure.ac): Update.
34447 (Makefile.am): Create unistd.h always. Substitute many new variables
34450 2007-02-18 Bruno Haible <bruno@clisp.org>
34452 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
34453 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
34455 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
34456 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
34457 * lib/getsubopt.h: Remove file.
34458 * modules/getsubopt (Files): Remove lib/getsubopt.h.
34459 (Depends-on): Add stdlib.
34460 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34461 (Includes): Use <stdlib.h> instead of getsubopt.h.
34462 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
34463 Set HAVE_GETSUBOPT.
34464 * lib/getsubopt.c: Don't include getsubopt.h.
34466 2007-02-18 Bruno Haible <bruno@clisp.org>
34468 * modules/fchdir (Depends-on): Add dup2.
34470 2007-02-18 Bruno Haible <bruno@clisp.org>
34472 * lib/stdlib_.h: Handle glibc's special invocation convention
34475 2007-02-18 Bruno Haible <bruno@clisp.org>
34477 * modules/stdlib-tests: New file.
34478 * tests/test-stdlib.c: New file.
34480 * modules/mkstemp (Files): Remove lib/mkstemp.h.
34481 (Depends-on): Add stdlib.
34482 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34483 (Includes): Use <stdlib.h> instead of mkstemp.h.
34484 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34485 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
34486 * lib/mkstemp.c: Don't include mkstemp.h.
34487 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
34488 * lib/stdlib--.h: Don't include mkstemp.h.
34490 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
34491 (Depends-on): Add stdlib.
34492 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34493 (Includes): Use <stdlib.h> instead of mkdtemp.h.
34494 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34496 * lib/mkdtemp.c: Don't include mkdtemp.h.
34497 * lib/clean-temp.c: Don't include mkdtemp.h.
34499 * modules/exit (Files): Remove lib/exit.h.
34500 (Depends-on): Add stdlib.
34501 (Makefile.am): Remove lib_SOURCES.
34502 (Include): Use <stdlib.h> instead of exit.h.
34503 * lib/argmatch.c: Don't include exit.h.
34504 * lib/execute.c: Likewise.
34505 * lib/pagealign_alloc.c: Likewise.
34506 * lib/pipe.c: Likewise.
34507 * lib/wait-process.c: Likewise.
34508 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
34509 * lib/exitfail.c: Likewise.
34510 * lib/savewd.c: Likewise.
34511 * lib/xsetenv.c: Likewise.
34513 * modules/stdlib: New file.
34514 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
34515 and extra comments about mkstemp().
34516 * lib/exit.h: Remove file.
34517 * lib/mkdtemp.h: Remove file.
34518 * lib/mkstemp.h: Remove file.
34519 * m4/stdlib_h.m4: New file.
34520 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
34522 2007-02-18 Bruno Haible <bruno@clisp.org>
34524 * modules/math-tests: New file.
34525 * tests/test-math.c: New file.
34527 * modules/math: New file.
34528 * modules/mathl (Files): Remove lib/mathl.h.
34529 (Depends-on): Add math.
34530 (Makefile.am): Don't mention mathl.h.
34531 (Include): Use <math.h> instead of mathl.h.
34532 * lib/math_.h: New file.
34533 * lib/mathl.h: Remove file.
34534 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
34536 * lib/asinl.c: Likewise.
34537 * lib/atanl.c: Likewise.
34538 * lib/ceill.c: Likewise.
34539 * lib/cosl.c: Likewise.
34540 * lib/expl.c: Likewise.
34541 * lib/floorl.c: Likewise.
34542 * lib/frexpl.c: Likewise.
34543 * lib/ldexpl.c: Likewise.
34544 * lib/logl.c: Likewise.
34545 * lib/sincosl.c: Likewise.
34546 * lib/sinl.c: Likewise.
34547 * lib/sqrtl.c: Likewise.
34548 * lib/tanl.c: Likewise.
34549 * lib/trigl.c: Likewise.
34550 * m4/math_h.m4: New file.
34551 * MODULES.html.sh (Mathematics): Add math.
34553 2007-02-17 Bruno Haible <bruno@clisp.org>
34555 * modules/wctype-tests: New file.
34556 * tests/test-wctype.c: New file.
34558 * modules/wchar-tests: New file.
34559 * tests/test-wchar.c: New file.
34561 * modules/unistd-tests: New file.
34562 * tests/test-unistd.c: New file.
34564 * modules/time-tests: New file.
34565 * tests/test-time.c: New file.
34567 * modules/sysexits-tests: New file.
34568 * tests/test-sysexits.c: New file.
34570 * modules/sys_time-tests: New file.
34571 * tests/test-sys_time.c: New file.
34573 * modules/sys_stat-tests: New file.
34574 * tests/test-sys_stat.c: New file.
34576 * modules/sys_socket-tests: New file.
34577 * tests/test-sys_socket.c: New file.
34579 * modules/sys_select-tests: New file.
34580 * tests/test-sys_select.c: New file.
34582 * modules/string-tests: New file.
34583 * tests/test-string.c: New file.
34585 * modules/stdbool-tests: New file.
34586 * tests/test-stdbool.c: New file.
34588 * modules/netinet_in-tests: New file.
34589 * tests/test-netinet_in.c: New file.
34591 * modules/inttypes-tests: New file.
34592 * tests/test-inttypes.c: New file.
34594 * modules/fcntl-tests: New file.
34595 * tests/test-fcntl.c: New file.
34597 * modules/byteswap-tests: New file.
34598 * tests/test-byteswap.c: New file.
34600 * modules/arpa_inet-tests: New file.
34601 * tests/test-arpa_inet.c: New file.
34603 2007-02-17 Bruno Haible <bruno@clisp.org>
34605 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
34606 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
34607 if the corresponding module is not enabled. Emit link warnings if
34608 the function is used nevertheless.
34609 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
34610 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
34611 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
34612 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
34613 * modules/inttypes (Depends-on): Add link-warning.
34614 (Makefile.am): Copy the contents of build-aux/link-warning.h into
34615 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
34616 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
34617 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
34618 * modules/imaxdiv (configure.ac): Likewise.
34619 * modules/strtoimax (configure.ac): Likewise.
34620 * modules/strtoumax (configure.ac): Likewise.
34622 2007-02-17 Bruno Haible <bruno@clisp.org>
34624 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
34625 gl_STRING_MODULE_INDICATOR_DEFAULTS.
34626 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
34627 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
34629 2007-02-17 Bruno Haible <bruno@clisp.org>
34631 * modules/link-warning: New file.
34632 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
34633 * lib/string_.h (GL_LINK_WARNING): Remove definition.
34634 * modules/string (Depends-on): Add link-warning.
34635 (Makefile.am): Copy the contents of build-aux/link-warning.h into
34637 * MODULES.html.sh (Support for building libraries and executables): Add
34640 2007-02-17 Bruno Haible <bruno@clisp.org>
34642 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
34643 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
34644 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
34647 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
34648 Bruno Haible <bruno@clisp.org>
34650 * modules/tmpfile: New file.
34651 * lib/tmpfile.c: New file.
34652 * m4/tmpfile.m4: New file.
34653 * MODULES.html.sh (func_all_modules): New section "Input/output".
34655 2007-02-15 Bruno Haible <bruno@clisp.org>
34657 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
34658 (supports_delete_on_close): New function.
34659 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
34661 2007-02-14 Bruno Haible <bruno@clisp.org>
34663 * modules/mbspcasecmp-tests: New file.
34664 * tests/test-mbspcasecmp.sh: New file.
34665 * tests/test-mbspcasecmp.c: New file.
34667 New module mbspcasecmp.
34668 * modules/mbspcasecmp: New file.
34669 * lib/mbspcasecmp.c: New file.
34670 * lib/string_.h (strncasecmp): Change warning message.
34671 (mbspcasecmp): New declaration.
34672 * m4/mbspcasecmp.m4: New file.
34673 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34674 GNULIB_MBSPCASECMP.
34675 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
34676 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
34678 2007-02-14 Bruno Haible <bruno@clisp.org>
34680 * modules/mbsncasecmp-tests: New file.
34681 * tests/test-mbsncasecmp.sh: New file.
34682 * tests/test-mbsncasecmp.c: New file.
34684 New module mbsncasecmp.
34685 * modules/mbsncasecmp: New file.
34686 * lib/mbsncasecmp.c: New file.
34687 * lib/string_.h (mbsncasecmp): New declaration.
34688 * m4/mbsncasecmp.m4: New file.
34689 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34690 GNULIB_MBSNCASECMP.
34691 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
34692 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
34694 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
34696 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
34697 Verify that it doesn't overlap with our flags.
34698 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
34699 do not have the desired effect in multibyte locales; instead, use
34701 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
34702 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
34703 we don't require GNU fnmatch ourselves (if our users require it, they
34704 should do so explicitly).
34706 Fix regex code so it doesn't rely on strcasecmp.
34707 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
34708 Otherwise, include gnulib's langinfo.h.
34709 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
34710 undesirable behavior in non-C locales. Instead, rely on localecharset.
34711 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
34712 * modules/regex (FILES): Remove m4/codeset.m4.
34713 (Depends-on): Add localcharset. Remove strcase.
34715 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34717 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
34718 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
34720 2007-02-13 Bruno Haible <bruno@clisp.org>
34722 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
34723 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34725 2007-02-12 Bruno Haible <bruno@clisp.org>
34727 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
34728 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
34729 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
34730 time warning rather than a link error.
34732 2007-02-12 Bruno Haible <bruno@clisp.org>
34734 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
34735 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34736 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34738 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
34740 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
34743 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
34745 New module 'time', so that apps can include <time.h> as per
34746 POSIX and GNU instead of separate include files like time_r.h
34747 and timegm.h. This implementation tries out a simpler approach
34748 for replacing decls in standard include files (as compared to
34749 the string module), somewhat as an experiment.
34751 * config/srclist.txt: Comment out mktime.c for now.
34752 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
34753 since it doesn't apply any more. Use generic wording instead.
34754 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
34756 * lib/time_.h, m4/time_h.m4, modules/time: New files.
34757 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
34758 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
34759 Don't include <sys/types.h>; no longer needed since we assume C89.
34760 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
34761 * lib/strftime.c: Likewise.
34762 * lib/time_r.c: Likewise.
34763 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
34764 * lib/nanosleep.c: Include <time.h> first, to check interface.
34765 * lib/strptime.c: Likewise.
34766 * lib/time_r.c: Likewise.
34767 * lib/timegm.c: Likewise.
34768 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
34770 * lib/timegm.c: Don't include timegm.h; no longer needed.
34771 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
34772 time.h now handles any problems in that area.
34773 (struct timespec, nanosleep): Remove; time.h now arranges for these.
34774 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
34775 that time.h defines struct timespec.
34776 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
34777 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
34779 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
34780 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
34781 needed. Set REPLACE_LOCALTIME.
34782 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
34783 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
34784 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
34785 nanosleep; time_h.m4 now does that. Don't require
34786 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
34787 module handles this now.
34788 * modules/getdate (Depends-on): Remove timespec. Add time.
34789 * modules/nanosleep (Depends-on): Likewise.
34790 * modules/stat-time (Depends-on): Likewise.
34791 * modules/nanosleep (Include): Include time.h, not timespec.h.
34792 * modules/strptime (Files): Remove lib/strptime.h.
34793 (Depends-on): Add extensions, time.
34794 (Include): Include time.h, not strptime.h.
34795 * modules/time_r (Files): Remove lib/time_r.h.
34796 (Depends-on): Add time.
34797 (Include): Include time.h, not time_r.h.
34798 * modules/timegm: Likewise.
34799 * modules/timespec (Description): Now does timespec-related decls
34800 of our own, instead of struct timespec itself.
34801 (Depends-on): Add time; remove extensions.
34802 (Maintainer): Add self.
34803 * modules/utimecmp (Depends-on): Add time; remove timespec.
34804 * modules/utimens (Depends-on): Likewise.
34805 * modules/xnanosleep (Depends-on): Likewise.
34807 2007-02-11 Bruno Haible <bruno@clisp.org>
34809 * lib/c-strstr.c: Include allocsa.h.
34810 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34811 * lib/c-strcasestr.c: Include allocsa.h.
34812 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34813 * lib/strcasestr.c: Include allocsa.h.
34814 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34815 * lib/mbsstr.c: Include allocsa.h.
34816 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34817 allocsa/freesa instead of malloc/free.
34818 * lib/mbscasestr.c: Include allocsa.h.
34819 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34820 allocsa/freesa instead of malloc/free.
34821 * modules/c-strstr (Depends-on): Add allocsa.
34822 * modules/c-strcasestr (Depends-on): Likewise.
34823 * modules/strcasestr (Depends-on): Likewise.
34824 * modules/mbsstr (Depends-on): Likewise.
34825 * modules/mbscasestr (Depends-on): Likewise.
34827 2007-02-11 Bruno Haible <bruno@clisp.org>
34829 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
34831 * modules/mbsspn-tests: New file.
34832 * tests/test-mbsspn.sh: New file.
34833 * tests/test-mbsspn.c: New file.
34835 2007-02-11 Bruno Haible <bruno@clisp.org>
34837 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
34839 * modules/mbspbrk-tests: New file.
34840 * tests/test-mbspbrk.sh: New file.
34841 * tests/test-mbspbrk.c: New file.
34843 2007-02-11 Bruno Haible <bruno@clisp.org>
34845 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
34848 * modules/mbscspn-tests: New file.
34849 * tests/test-mbscspn.sh: New file.
34850 * tests/test-mbscspn.c: New file.
34852 2007-02-11 Bruno Haible <bruno@clisp.org>
34854 * modules/mbscasecmp-tests: New file.
34855 * tests/test-mbscasecmp.sh: New file.
34856 * tests/test-mbscasecmp.c: New file.
34858 2007-02-11 Bruno Haible <bruno@clisp.org>
34860 Ensure O(n) worst-case complexity of mbscasestr.
34861 * lib/mbscasestr.c: Include stdbool.h.
34862 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34864 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
34865 the bookkeeping indicates that it's worth it.
34866 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
34868 * modules/mbscasestr-tests: New file.
34869 * tests/test-mbscasestr1.c: New file.
34870 * tests/test-mbscasestr2.sh: New file.
34871 * tests/test-mbscasestr2.c: New file.
34872 * tests/test-mbscasestr3.sh: New file.
34873 * tests/test-mbscasestr3.c: New file.
34874 * tests/test-mbscasestr4.sh: New file.
34875 * tests/test-mbscasestr4.c: New file.
34876 * m4/locale-tr.m4: New file.
34878 2007-02-11 Bruno Haible <bruno@clisp.org>
34880 Ensure O(n) worst-case complexity of mbsstr.
34881 * lib/mbsstr.c: Include stdbool.h.
34882 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34884 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
34885 bookkeeping indicates that it's worth it.
34886 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
34888 * modules/mbsstr-tests: New file.
34889 * tests/test-mbsstr1.c: New file.
34890 * tests/test-mbsstr2.sh: New file.
34891 * tests/test-mbsstr2.c: New file.
34892 * tests/test-mbsstr3.sh: New file.
34893 * tests/test-mbsstr3.c: New file.
34894 * m4/locale-fr.m4: New file.
34896 2007-02-11 Bruno Haible <bruno@clisp.org>
34898 * lib/mbsrchr.c (mbsrchr): Fix bug.
34900 * modules/mbsrchr-tests: New file.
34901 * tests/test-mbsrchr.sh: New file.
34902 * tests/test-mbsrchr.c: New file.
34904 2007-02-11 Bruno Haible <bruno@clisp.org>
34906 * lib/mbschr.c (mbschr): Fix bug.
34908 * modules/mbschr-tests: New file.
34909 * tests/test-mbschr.sh: New file.
34910 * tests/test-mbschr.c: New file.
34911 * m4/locale-zh.m4: New file.
34913 2007-02-11 Bruno Haible <bruno@clisp.org>
34915 Support for copying multibyte string iterators.
34916 * lib/mbiter.h: Include <string.h>.
34917 (mbiter_multi_copy): New function.
34918 (mbi_copy): New macro.
34919 * lib/mbuiter.h: Include <string.h>.
34920 (mbuiter_multi_copy): New function.
34921 (mbui_copy): New macro.
34923 2007-02-11 Bruno Haible <bruno@clisp.org>
34926 * modules/mbslen: New file.
34927 * lib/mbslen.c: New file.
34928 * lib/string_.h (mbslen): New declaration.
34929 * m4/mbslen.m4: New file.
34930 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34932 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
34933 * MODULES.html.sh (Internationalization functions): Add mbslen.
34935 2007-02-11 Bruno Haible <bruno@clisp.org>
34937 Ensure O(n) worst-case complexity of strcasestr substitute.
34938 * lib/strcasestr.c: Include stdbool.h.
34939 (knuth_morris_pratt): New function.
34940 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
34941 bookkeeping indicates that it's worth it.
34942 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
34944 * modules/strcasestr-tests: New file.
34945 * tests/test-strcasestr.c: New file.
34947 2007-02-11 Bruno Haible <bruno@clisp.org>
34949 Ensure O(n) worst-case complexity of c_strcasestr.
34950 * lib/c-strcasestr.c: Include stdbool.h, string.h.
34951 (knuth_morris_pratt): New function.
34952 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
34953 the bookkeeping indicates that it's worth it.
34954 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
34956 * modules/c-strcasestr-tests: New file.
34957 * tests/test-c-strcasestr.c: New file.
34959 2007-02-11 Bruno Haible <bruno@clisp.org>
34961 Ensure O(n) worst-case complexity of c_strstr.
34962 * lib/c-strstr.c: Include stdbool.h, string.h.
34963 (knuth_morris_pratt): New function.
34964 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
34965 bookkeeping indicates that it's worth it.
34966 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
34968 * lib/c-strstr.c: Complete rewrite for maintainability.
34970 * modules/c-strstr-tests: New file.
34971 * tests/test-c-strstr.c: New file.
34973 2007-02-11 Bruno Haible <bruno@clisp.org>
34975 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
34976 5.2.1 and earlier, whereby \055 was treated just like the range
34978 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34980 2007-02-08 Bruno Haible <bruno@clisp.org>
34982 * modules/regex (Depends-on): Add stdbool.
34983 Reported by Dalibor Topic <robilad@kaffe.org>.
34985 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
34987 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
34988 Prefer returning from main to exiting from it.
34989 Remove unnecessary parens after sizeof.
34991 2007-02-05 Bruno Haible <bruno@clisp.org>
34994 * modules/mbssep: New file.
34995 * lib/mbssep.c: New file.
34996 * lib/string_.h (strsep): Add a conditional link warning.
34997 (mbssep): New declaration.
34998 * m4/mbssep.m4: New file.
34999 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35001 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
35002 * MODULES.html.sh (Internationalization functions): Add mbssep.
35004 2007-02-05 Bruno Haible <bruno@clisp.org>
35006 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
35007 Optimize search in case of 1 delimiter.
35009 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
35011 * lib/acl.h: Include sys/types.h before sys/acl.h.
35013 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
35015 Merge upstream fix for glibc bugzilla #3957:
35017 2007-02-05 Jakub Jelinek <jakub@redhat.com>
35019 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
35020 bit for RE_HAT_LISTS_NOT_NEWLINE.
35021 (build_charclass_op): Remove bogus comment.
35023 2007-02-05 Simon Josefsson <simon@josefsson.org>
35025 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
35027 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
35029 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
35030 * lib/memmem.c [!defined _LIBC]: Include config.h.
35032 2007-02-04 Bruno Haible <bruno@clisp.org>
35034 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
35037 2007-02-04 Bruno Haible <bruno@clisp.org>
35039 New module mbstok_r.
35040 * modules/mbstok_r: New file.
35041 * lib/mbstok_r.c: New file.
35042 * lib/string_.h (strtok_r): Change argument names to match the
35043 comments. Add a conditional link warning.
35044 (mbstok_r): New declaration.
35045 * m4/mbstok_r.m4: New file.
35046 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35048 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
35049 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
35051 2007-02-04 Bruno Haible <bruno@clisp.org>
35054 * modules/mbsspn: New file.
35055 * lib/mbsspn.c: New file.
35056 * lib/string_.h (strspn): Add a conditional link warning.
35057 (mbsspn): New declaration.
35058 * m4/mbsspn.m4: New file.
35059 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35061 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
35062 * MODULES.html.sh (Internationalization functions): Add mbsspn.
35064 2007-02-04 Bruno Haible <bruno@clisp.org>
35066 New module mbspbrk.
35067 * modules/mbspbrk: New file.
35068 * lib/mbspbrk.c: New file.
35069 * lib/string_.h (strpbrk): Add a conditional link warning.
35070 (mbspbrk): New declaration.
35071 * m4/mbspbrk.m4: New file.
35072 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35074 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
35075 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
35077 2007-02-04 Bruno Haible <bruno@clisp.org>
35079 New module mbscspn.
35080 * modules/mbscspn: New file.
35081 * lib/mbscspn.c: New file.
35082 * lib/string_.h (strcspn): Add a conditional link warning.
35083 (mbscspn): New declaration.
35084 * m4/mbscspn.m4: New file.
35085 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35087 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
35088 * MODULES.html.sh (Internationalization functions): Add mbscspn.
35090 2007-02-04 Bruno Haible <bruno@clisp.org>
35092 New module mbscasestr, reduced goal of strcasestr.
35093 * modules/mbscasestr: New file.
35094 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
35095 (mbscasestr): Renamed from strcasestr.
35096 * lib/strcasestr.c: Don't include mbuiter.h.
35097 (strcasestr): Remove support for multibyte locales.
35098 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
35099 Change the conditional link warning.
35100 (mbscasestr): New declaration.
35101 * m4/mbscasestr.m4: New file.
35102 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
35103 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
35104 REPLACE_STRCASESTR.
35105 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
35106 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35107 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35108 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
35109 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
35110 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35111 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
35112 (Depends-on): Remove mbuiter.
35113 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
35115 2007-02-04 Bruno Haible <bruno@clisp.org>
35117 Simplify handling of strncasecmp.
35118 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
35119 the conditional link warning.
35120 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35121 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
35122 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
35123 * modules/strcase (configure.ac): Don't invoke
35124 gl_STRING_MODULE_INDICATOR.
35125 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
35127 2007-02-04 Bruno Haible <bruno@clisp.org>
35129 New module mbscasecmp, reduced goal of strcasecmp.
35130 * modules/mbscasecmp: New file.
35131 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
35132 (mbscasecmp): Renamed from strcasecmp.
35133 * lib/strcasecmp.c: Don't include mbuiter.h.
35134 (strcasecmp): Remove support for multibyte locales.
35135 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
35136 Change the conditional link warning.
35137 (mbscasecmp): New declaration.
35138 * m4/mbscasecmp.m4: New file.
35139 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
35140 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
35141 REPLACE_STRCASECMP.
35142 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
35143 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35145 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
35146 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
35147 * modules/strcase (Files): Remove m4/mbrtowc.m4.
35148 (Depends-on): Remove mbuiter.
35149 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
35151 2007-02-04 Bruno Haible <bruno@clisp.org>
35153 New module mbsstr. Remove module strstr.
35154 * modules/mbsstr: New file.
35155 * modules/strstr: Remove file.
35156 * lib/mbsstr.c: Renamed from lib/strstr.c.
35157 (mbsstr): Renamed from strstr.
35158 * lib/string_.h (strstr): Remove declaration. Change the conditional
35160 (mbsstr): New declaration.
35161 * m4/mbsstr.m4: New file.
35162 * m4/strstr.m4: Remove file.
35163 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35165 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
35166 Don't initialize GNULIB_STRSTR.
35167 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
35168 substitute GNULIB_STRSTR and REPLACE_STRSTR.
35169 * MODULES.html.sh (Internationalization functions): Add mbsstr.
35170 (Support for systems lacking ANSI C 89): Remove strstr.
35172 2007-02-04 Bruno Haible <bruno@clisp.org>
35174 New module mbsrchr.
35175 * modules/mbsrchr: New file.
35176 * lib/mbsrchr.c: New file.
35177 * lib/string_.h (strrchr): Add a conditional link warning.
35178 (mbsrchr): New declaration.
35179 * m4/mbsrchr.m4: New file.
35180 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35182 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
35183 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
35185 2007-02-04 Bruno Haible <bruno@clisp.org>
35188 * modules/mbschr: New file.
35189 * lib/mbschr.c: New file.
35190 * lib/string_.h (strchr): Add a conditional link warning.
35191 (mbschr): New declaration.
35192 * m4/mbschr.m4: New file.
35193 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35195 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
35196 * MODULES.html.sh (Internationalization functions): Add mbschr.
35198 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
35200 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
35202 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
35204 2007-02-04 Bruno Haible <bruno@clisp.org>
35206 New module description section 'configure.ac-early'.
35207 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
35208 (func_get_autoconf_early_snippet): New function.
35209 (func_import, func_create_testdir): Use it. Remove special cases for
35210 modules 'extensions' and 'lock'.
35211 * modules/extensions (configure.ac-early): Require
35212 gl_USE_SYSTEM_EXTENSIONS.
35213 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
35215 2007-02-04 Bruno Haible <bruno@clisp.org>
35217 Make use of gcj-4.3's -fsource and -ftarget option.
35218 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
35219 and if so try the options -fsource and -ftarget.
35220 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
35221 source_version, ftarget_option, target_version arguments.
35222 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
35223 (is_envjavac_oldgcj_14_14_usable): Renamed from
35224 is_envjavac_gcj_14_14_usable.
35225 (is_envjavac_oldgcj_14_13_usable): Renamed from
35226 is_envjavac_gcj_14_13_usable.
35227 (is_gcj_present): Update.
35228 (is_gcj_43, is_gcj43_usable): New functions.
35229 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
35230 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
35231 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
35232 try the options -fsource and -ftarget.
35234 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
35236 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
35237 checking code. Set N = ceil (1.5 * N) rather than to a slightly
35240 2007-02-03 Jim Meyering <jim@meyering.net>
35242 Give tools a better chance to allocate space for very large buffers.
35243 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
35245 Make pwd and readlink work also when run with an unreadable parent dir
35246 on systems with openat support.
35247 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
35248 provided getcwd function, even when we have openat support.
35249 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
35251 2007-02-02 Bruno Haible <bruno@clisp.org>
35253 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
35254 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
35255 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
35256 portability problems if one of these functions is only used on specific
35258 Reported by Paul Eggert.
35260 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
35262 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
35263 is causing more trouble than it's curing.
35264 * lib/regex_internal.h (__mempcpy): Remove.
35265 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
35266 (and make the code a tad smaller to boot).
35267 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
35269 2007-02-02 Jim Meyering <jim@meyering.net>
35271 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
35272 section, not in the Makefile.am: one.
35274 2007-02-02 Eric Blake <ebb9@byu.net>
35276 * lib/strchrnul.c: Always include config.h first.
35278 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
35279 gnulib strstr is not necessary here.
35281 2007-02-02 Simon Josefsson <simon@josefsson.org>
35283 * m4/socklen.m4: Fix typo.
35285 2007-02-02 Eric Blake <ebb9@byu.net>
35287 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
35288 * modules/netinet_in (Makefile.am): Likewise.
35290 2007-02-01 Bruno Haible <bruno@clisp.org>
35292 * lib/string_.h (GL_LINK_WARNING): New macro.
35293 (strcasecmp, strstr, strcasestr): If provided by the system,
35294 conditionally define as a macro that leads to a warning instead of to
35296 (strncasecmp): Conditionally define as a macro that leads to a warning.
35298 2007-02-01 Karl Berry <karl@gnu.org>
35300 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
35302 2007-02-01 Bruno Haible <bruno@clisp.org>
35304 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
35307 2007-02-01 Eric Blake <ebb9@byu.net>
35309 * modules/regex (Depends-on): Revert dependence on mempcpy.
35310 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
35311 module's definition of mempcpy.
35312 Reported by Paul Eggert.
35314 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
35316 * lib/string_.h: If the gnulib module XYZ is not present, undefine
35317 the symbol XYZ before redefining it. This fixes a problem with
35318 programs that don't use XYZ, when compiled on systems that define
35319 XYZ to something else.
35321 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
35323 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
35324 occurs when "mkdir -m foo" creates a setgid directory that is (1)
35325 writeable to group or other and (2) is intended to have a special
35326 mode bit that is set or cleared. In such a case, the directory
35327 should be neither group- nor other-writeable until the special
35328 mode bits are right.
35330 2007-01-31 Eric Blake <ebb9@byu.net>
35332 * modules/mountlist (Depends-on): Add strstr.
35334 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
35336 * modules/string (Makefile.am): Remove redundant replacement.
35337 * modules/regex (Depends-on): Add mempcpy.
35339 2007-01-31 Bruno Haible <bruno@clisp.org>
35341 New module description field 'Link'.
35342 * gnulib-tool (func_usage): Document --extract-link-directive.
35343 (sed_extract_prog): Recognize 'Link' directive.
35344 (func_get_link_directive): New function.
35345 (func_import): Show summary of link directives.
35346 Handle --extract-link-directive option.
35347 * modules/acl (Link): New section.
35348 * modules/clock-time (Link): New section.
35349 * modules/euidaccess (Link): New section.
35350 * modules/gettext (Link): New section.
35351 * modules/iconv (Link): New section.
35352 * modules/lock (Link): New section.
35353 * modules/nanosleep (Link): New section.
35354 * modules/readline (Link): New section.
35356 2007-01-27 Bruno Haible <bruno@clisp.org>
35358 Enforce the use of gnulib modules for unportable <string.h> functions.
35359 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
35360 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
35361 (gl_HEADER_STRING_H_BODY): Require it.
35362 * lib/string_.h: If the gnulib module XYZ is not present, redefine
35363 the symbol XYZ to one that gives a link error.
35364 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
35365 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
35366 * modules/mempcpy (configure.ac): Likewise.
35367 * modules/memrchr (configure.ac): Likewise.
35368 * modules/stpcpy (configure.ac): Likewise.
35369 * modules/stpncpy (configure.ac): Likewise.
35370 * modules/strcase (configure.ac): Likewise.
35371 * modules/strcasestr (configure.ac): Likewise.
35372 * modules/strchrnul (configure.ac): Likewise.
35373 * modules/strdup (configure.ac): Likewise.
35374 * modules/strndup (configure.ac): Likewise.
35375 * modules/strnlen (configure.ac): Likewise.
35376 * modules/strpbrk (configure.ac): Likewise.
35377 * modules/strsep (configure.ac): Likewise.
35378 * modules/strstr (configure.ac): Likewise.
35379 * modules/strtok_r (configure.ac): Likewise.
35381 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
35383 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
35385 2007-01-30 Jim Meyering <jim@meyering.net>
35387 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
35389 2007-01-29 Bruno Haible <bruno@clisp.org>
35391 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
35392 * lib/execute.c: Likewise.
35393 * lib/pipe.c: Likewise.
35394 * lib/printf-args.h: Likewise.
35395 * lib/printf-args.c: Likewise.
35396 * lib/printf-parse.c: Likewise.
35397 * lib/vasnprintf.c: Likewise.
35399 2007-01-29 Eric Blake <ebb9@byu.net>
35401 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
35404 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
35406 * lib/strptime.h (strptime): Use 'restrict' for args where
35407 POSIX requires this.
35408 * lib/strptime.c (strptime): Likewise.
35409 Change license notice from LGPL to GPL, since gnulib-tool will
35410 change this as needed.
35411 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
35413 Include "strptime.h" first, to check interface.
35414 Do not #undef _LIBC and _NL_CURRENT.
35415 Do not include <stdlib.h>; no longer needed.
35416 Include "time_r.h" and declare ptime_locale_status
35417 only if _LIBC is not defined.
35418 (__P): Remove unused macro.
35419 (match_string): Bring back glibc version, but use it only if _LIBC
35421 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
35422 Remove unnecessary assertion and abort() call.
35423 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
35424 * m4/strptime.m4: Fix serial number comment.
35425 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
35426 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
35427 (Depends-on): Add time_r.
35429 2007-01-29 Bruno Haible <bruno@clisp.org>
35431 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35433 * modules/strptime (Depends-on): Add stdbool.
35434 * lib/strptime.h: Include <time.h> always. Add comments.
35436 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
35438 * modules/strptime: New file.
35439 * lib/strptime.h: New file.
35440 * lib/strptime.c: New file.
35441 * m4/strptime.m4: New file.
35443 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
35445 * MODULES.html.sh: New module mpsort.
35446 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
35448 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
35449 a circularity problem with HP-UX ia64 reported by Bob Proulx in
35450 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
35452 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
35454 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
35456 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
35457 the parameter matches the prototype.
35459 2007-01-28 Jim Meyering <jim@meyering.net>
35461 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
35462 sys/time.h here, reverting that part of the previous patch:
35463 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
35465 2007-01-28 Bruno Haible <bruno@clisp.org>
35467 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
35468 value of $(SYS_TIME_H).
35469 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
35470 remove it conditionally, too. [added by Jim Meyering]
35471 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
35472 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
35473 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
35474 GETTIMEOFDAY_REPLACEMENT to 1.
35476 2007-01-28 Bruno Haible <bruno@clisp.org>
35478 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
35479 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
35480 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
35481 Set UNISTD_H instead of UNISTD_H2.
35482 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
35484 2007-01-28 Bruno Haible <bruno@clisp.org>
35486 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
35487 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
35489 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35491 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
35492 (func_create_testdir): Ensure C locale for `grep' and `tr'
35494 (func_create_megatestdir): Avoid one `grep'. Fix bug in
35495 ACLOCAL_AMFLAGS parsing state machine.
35497 2007-01-27 Bruno Haible <bruno@clisp.org>
35499 * modules/unistr/base: Update.
35501 2007-01-27 Bruno Haible <bruno@clisp.org>
35503 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
35504 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
35505 * modules/unistr/u32-mbtouc-unsafe: Renamed from
35506 modules/unistr/u32-mbtouc.
35507 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
35508 * lib/unistr.h: Update.
35509 * lib/linebreak.c: Update.
35510 * modules/unistr/u32-mbtouc: Renamed from
35511 modules/unistr/u32-mbtouc-safe.
35512 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
35513 * lib/unistr.h: Update.
35514 * lib/unistr/u32-to-u8.c: Update.
35515 * lib/unistr/u32-to-u16.c: Update.
35517 2007-01-27 Bruno Haible <bruno@clisp.org>
35519 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
35520 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
35521 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
35522 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
35523 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
35524 * modules/unistr/u16-mbtouc-unsafe: Renamed from
35525 modules/unistr/u16-mbtouc.
35526 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
35527 * lib/unistr.h: Update.
35528 * lib/linebreak.c: Update.
35529 * modules/linebreak: Update.
35530 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
35531 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
35532 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
35533 * modules/unistr/u16-mbtouc: Renamed from
35534 modules/unistr/u16-mbtouc-safe.
35535 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
35536 * lib/unistr.h: Update.
35537 * lib/unistr/u16-to-u8.c: Update.
35538 * modules/unistr/u16-to-u8: Update.
35539 * lib/unistr/u16-to-u32.c: Update.
35540 * modules/unistr/u16-to-u32: Update.
35542 2007-01-27 Bruno Haible <bruno@clisp.org>
35544 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
35545 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
35546 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
35547 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
35548 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
35549 * modules/unistr/u8-mbtouc-unsafe: Renamed from
35550 modules/unistr/u8-mbtouc.
35551 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
35552 * lib/unistr.h: Update.
35553 * lib/striconveh.c: Update.
35554 * modules/striconveh: Update.
35555 * lib/linebreak.c: Update.
35556 * modules/linebreak: Update.
35557 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
35558 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
35559 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
35560 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
35561 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
35562 * lib/unistr.h: Update.
35563 * lib/striconveh.c: Update.
35564 * modules/striconveh: Update.
35565 * lib/unistr/u8-to-u16.c: Update.
35566 * modules/unistr/u8-to-u16: Update.
35567 * lib/unistr/u8-to-u32.c: Update.
35568 * modules/unistr/u8-to-u32: Update.
35570 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35573 * lib/argz.c: Do not include strings.h nor memory.h, include
35574 string.h unconditionally. Patch by Simon Josefsson.
35576 2007-01-27 Bruno Haible <bruno@clisp.org>
35578 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
35579 from gl_HEADER_STRING_H_BODY.
35580 (gl_HEADER_STRING_H_BODY): Require it.
35581 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
35582 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35583 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35584 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35585 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35586 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
35587 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35588 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35589 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
35590 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35591 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35592 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
35593 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35594 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35595 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35597 2007-01-27 Bruno Haible <bruno@clisp.org>
35599 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
35600 check_PROGRAMS into noinst_PROGRAMS.
35601 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
35602 check_PROGRAMS in this case.
35603 (func_import): Set for_test to false.
35604 (func_create_testdir): Set for_test to true.
35606 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35607 Bruno Haible <bruno@clisp.org>
35609 * modules/strcasestr (Files): Remove lib/strcasestr.h.
35610 (Depends-on): Add string.
35611 (Includes): Use <string.h> instead of strcasestr.h.
35612 * modules/string (Makefile.am): Also substitute the value of
35613 REPLACE_STRCASESTR.
35614 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
35615 assume strcasestr is declared in <string.h> not <strings.h>. Also
35616 set REPLACE_STRCASESTR.
35617 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
35618 REPLACE_STRCASESTR.
35619 * lib/strcasestr.h: Remove file.
35620 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
35621 * lib/string_.h (strcasestr): New declaration.
35623 2007-01-27 Bruno Haible <bruno@clisp.org>
35625 * lib/string_.h: Use 'extern'.
35627 2007-01-27 Jim Meyering <jim@meyering.net>
35629 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
35630 of set-but-not-used local, "q".
35632 * lib/mempcpy.c: Include <config.h> before <string.h>.
35633 This fixes a compilation error on HP-UX, due to the system's
35634 "restrict"-using mempcpy prototype.
35636 2007-01-26 Bruno Haible <bruno@clisp.org>
35638 Small optimization.
35639 * lib/javacomp.c: Include c-strstr.h.
35640 (is_envjavac_gcj): Use c_strstr instead of strstr.
35641 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
35643 2007-01-26 Bruno Haible <bruno@clisp.org>
35645 * MODULES.html.sh (Unicode string functions): Add the new modules.
35647 * modules/uniconv/u32-strconv-to-locale: New file.
35648 * lib/uniconv/u32-strconv-to-locale.c: New file.
35650 * modules/uniconv/u16-strconv-to-locale: New file.
35651 * lib/uniconv/u16-strconv-to-locale.c: New file.
35653 * modules/uniconv/u8-strconv-to-locale: New file.
35654 * lib/uniconv/u8-strconv-to-locale.c: New file.
35656 * modules/uniconv/u32-strconv-from-locale: New file.
35657 * lib/uniconv/u32-strconv-from-locale.c: New file.
35659 * modules/uniconv/u16-strconv-from-locale: New file.
35660 * lib/uniconv/u16-strconv-from-locale.c: New file.
35662 * modules/uniconv/u8-strconv-from-locale: New file.
35663 * lib/uniconv/u8-strconv-from-locale.c: New file.
35665 * modules/uniconv/u32-strconv-to-enc: New file.
35666 * lib/uniconv/u32-strconv-to-enc.c: New file.
35667 * modules/uniconv/u32-strconv-to-enc-tests: New file.
35668 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
35670 * modules/uniconv/u16-strconv-to-enc: New file.
35671 * lib/uniconv/u16-strconv-to-enc.c: New file.
35672 * lib/uniconv/u-strconv-to-enc.h: New file.
35673 * modules/uniconv/u16-strconv-to-enc-tests: New file.
35674 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
35676 * modules/uniconv/u8-strconv-to-enc: New file.
35677 * lib/uniconv/u8-strconv-to-enc.c: New file.
35678 * modules/uniconv/u8-strconv-to-enc-tests: New file.
35679 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
35681 * modules/uniconv/u32-strconv-from-enc: New file.
35682 * lib/uniconv/u32-strconv-from-enc.c: New file.
35683 * modules/uniconv/u32-strconv-from-enc-tests: New file.
35684 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
35686 * modules/uniconv/u16-strconv-from-enc: New file.
35687 * lib/uniconv/u16-strconv-from-enc.c: New file.
35688 * modules/uniconv/u16-strconv-from-enc-tests: New file.
35689 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
35691 * modules/uniconv/u8-strconv-from-enc: New file.
35692 * lib/uniconv/u8-strconv-from-enc.c: New file.
35693 * lib/uniconv/u-strconv-from-enc.h: New file.
35694 * modules/uniconv/u8-strconv-from-enc-tests: New file.
35695 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
35697 * modules/uniconv/u32-conv-from-enc: New file.
35698 * lib/uniconv/u32-conv-from-enc.c: New file.
35699 * modules/uniconv/u32-conv-from-enc-tests: New file.
35700 * tests/uniconv/test-u32-conv-from-enc.c: New file.
35702 * modules/uniconv/u16-conv-from-enc: New file.
35703 * lib/uniconv/u16-conv-from-enc.c: New file.
35704 * lib/uniconv/u-conv-from-enc.h: New file.
35705 * modules/uniconv/u16-conv-from-enc-tests: New file.
35706 * tests/uniconv/test-u16-conv-from-enc.c: New file.
35708 * modules/uniconv/u8-conv-from-enc: New file.
35709 * lib/uniconv/u8-conv-from-enc.c: New file.
35710 * modules/uniconv/u8-conv-from-enc-tests: New file.
35711 * tests/uniconv/test-u8-conv-from-enc.c: New file.
35713 * modules/uniconv/base: New file.
35714 * lib/uniconv.h: New file.
35716 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
35718 * doc/gnulib-tool.texi (Initial import): Update to match current
35719 behavior with strdup module.
35720 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
35721 * lib/memmem.h: Remove; all uses removed. This is now done
35723 * lib/mempcpy.h: Likewise.
35724 * lib/memrchr.h: Likewise.
35725 * lib/stpcpy.h: Likewise.
35726 * lib/stpncpy.h: Likewise.
35727 * lib/strcase.h: Likewise.
35728 * lib/strchrnul.h: Likewise.
35729 * lib/strdup.h: Likewise.
35730 * lib/strndup.h: Likewise.
35731 * lib/strnlen.h: Likewise.
35732 * lib/strpbrk.h: Likewise.
35733 * lib/strsep.h: Likewise.
35734 * lib/strstr.h: Likewise.
35735 * lib/strtok_r.h: Likewise.
35736 * lib/string_.h: New file.
35737 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
35738 Rely on <string.h> instead.
35739 * lib/canon-host.c: Likewise.
35740 * lib/chdir-long.c: Likewise.
35741 * lib/concatpath.c: Likewise.
35742 * lib/exclude.c: Likewise.
35743 * lib/fchdir.c: Likewise.
35744 * lib/getaddrinfo.c: Likewise.
35745 * lib/getcwd.c: Likewise.
35746 * lib/getsubopt.c: Likewise.
35747 * lib/glob.c: Likewise.
35748 * lib/hard-locale.c: Likewise.
35749 * lib/iconvme.c: Likewise.
35750 * lib/javacomp.c: Likewise.
35751 * lib/mempcpy.c: Likewise.
35752 * lib/memrchr.c: Likewise.
35753 * lib/regex_internal.h: Likewise.
35754 * lib/stpncpy.c: Likewise.
35755 * lib/strcasecmp.c: Likewise.
35756 * lib/strchrnul.c: Likewise.
35757 * lib/strdup.c: Likewise.
35758 * lib/striconv.c: Likewise.
35759 * lib/striconveh.c: Likewise.
35760 * lib/striconveha.c: Likewise.
35761 * lib/strncasecmp.c: Likewise.
35762 * lib/strndup.c: Likewise.
35763 * lib/strnlen.c: Likewise.
35764 * lib/strsep.c: Likewise.
35765 * lib/strstr.c: Likewise.
35766 * lib/strtok_r.c: Likewise.
35767 * lib/userspec.c: Likewise.
35768 * lib/w32spawn.h: Likewise.
35769 * lib/xstrndup.c: Likewise.
35770 * lib/mountlist.c (strstr): Remove decl.
35771 * m4/string_h.m4: New file.
35772 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
35773 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
35774 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
35775 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
35776 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
35777 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
35778 Set REPLACE_STRCASECMP if necessary.
35779 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
35780 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
35781 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
35782 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
35783 HAVE_DECL_STRDUP if necessary.
35784 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
35785 since gl_FUNC_STRNDUP does that now.
35786 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
35787 Check for decl here...
35788 (gl_PREREQ_STRNLEN): ... not here.
35789 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
35790 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
35791 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
35792 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
35794 * modules/string: New file.
35795 * modules/memmem (Files): Remove special-purpose include file.
35796 (Depends-on): Add string.
35797 (Include): Include <string.h>, not the removed file.
35798 * modules/mempcpy: Likewise.
35799 * modules/memrchr: Likewise.
35800 * modules/stpcpy: Likewise.
35801 * modules/stpncpy: Likewise.
35802 * modules/strcase: Likewise.
35803 * modules/strchrnul: Likewise.
35804 * modules/strdup: Likewise.
35805 * modules/strndup: Likewise.
35806 * modules/strnlen: Likewise.
35807 * modules/strpbrk: Likewise.
35808 * modules/strsep: Likewise.
35809 * modules/strstr: Likewise.
35810 * modules/strtok_r: Likewise.
35811 * tests/test-dirname.c: Don't include "strdup.h", since
35812 <string.h> now suffices.
35813 * tests/test-memmem.c: Don't include "memmem.h", since
35814 <string.h> now suffices.
35816 2007-01-25 Bruno Haible <bruno@clisp.org>
35818 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
35821 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
35822 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
35823 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
35824 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
35826 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
35827 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
35828 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
35829 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
35830 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
35831 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
35833 2007-01-24 Bruno Haible <bruno@clisp.org>
35835 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
35836 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
35837 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
35838 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
35840 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
35841 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
35842 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35843 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
35844 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
35845 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
35847 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
35849 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
35850 Reported by Ralf Wildenhues.
35852 2007-01-24 Bruno Haible <bruno@clisp.org>
35854 Drop AC_REQUIRE calls that are redundant with the module dependencies.
35855 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
35857 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
35858 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
35859 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
35861 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
35863 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
35864 Don't use 'exit'; just return from 'main'.
35865 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
35867 * lib/fnmatch_.h: Readjust white space and comments to match
35868 glibc, to avoid spurious diffs.
35870 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
35872 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
35873 2004-12-01 change by Jakub Jelinek, since this code won't compile
35874 if !LIBC. Problem reported by Bob Proulx.
35876 2007-01-23 Bruno Haible <bruno@clisp.org>
35878 * lib/striconveh.c: Include c-strcaseeq.h.
35879 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
35880 * modules/striconveh (Depends-on): Add c-strcaseeq.
35882 2007-01-23 Bruno Haible <bruno@clisp.org>
35884 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
35886 * modules/c-strcaseeq: New file.
35887 * lib/c-strcaseeq.h: New file.
35889 * modules/streq: New file.
35890 * lib/streq.h: New file.
35892 2007-01-23 Bruno Haible <bruno@clisp.org>
35894 * modules/striconveha-tests: New file.
35895 * tests/test-striconveha.c: New file.
35897 * lib/striconveha.h: Include <stdbool.h>.
35898 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
35899 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
35900 (mem_iconveha_notranslit): Renamed from mem_iconveha.
35901 (mem_iconveha): New function.
35902 (str_iconveha_notranslit): Renamed from str_iconveha.
35903 (str_iconveha): New function.
35904 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
35907 2007-01-23 Bruno Haible <bruno@clisp.org>
35909 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
35910 encodings without forgiving before trying any encoding with handler.
35911 (str_iconveha): Try all encodings without forgiving before trying any
35912 encoding with handler.
35914 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
35916 Import the following changes from libc.
35918 2005-10-14 Ulrich Drepper <drepper@redhat.com>
35920 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
35922 2004-12-01 Jakub Jelinek <jakub@redhat.com>
35924 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
35925 normal_bracket label.
35927 2004-09-01 Jakub Jelinek <jakub@redhat.com>
35930 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
35931 to normal_bracket after fetching the next character.
35933 2007-01-22 Bruno Haible <bruno@clisp.org>
35935 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
35937 * lib/striconveh.c (iconv_carefully_1): New function.
35938 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
35940 (str_cd_iconveh): Update.
35941 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
35942 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
35943 * tests/test-striconveh.c (MAGIC): New macro.
35944 (new_offsets): New function.
35945 (main): Test call with and without offsets.
35947 2007-01-22 Bruno Haible <bruno@clisp.org>
35949 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
35950 * modules/sys_select (Makefile.am): Likewise.
35951 * modules/sys_socket (Makefile.am): Likewise.
35952 * modules/sys_time (Makefile.am): Likewise.
35954 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
35956 * modules/gettimeofday (License): Change from GPL to LGPL, since
35957 gettimeofday is a library function.
35959 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35961 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
35963 2007-01-21 Bruno Haible <bruno@clisp.org>
35965 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
35967 2007-01-21 Bruno Haible <bruno@clisp.org>
35969 * modules/striconveha: New file.
35970 * lib/striconveha.h: New file.
35971 * lib/striconveha.c: New file.
35972 * MODULES.html.sh (Internationalization functions): Add striconveha.
35973 * lib/striconv.c (str_iconv): Optimize the case of an empty input
35975 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
35977 2007-01-21 Bruno Haible <bruno@clisp.org>
35979 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
35980 * lib/striconveh.c (str_iconveh): Likewise.
35982 2007-01-21 Bruno Haible <bruno@clisp.org>
35984 * lib/striconveh.h (mem_iconveh): New declaration.
35985 * lib/striconveh.c (mem_iconveh): New function.
35986 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
35988 2007-01-21 Bruno Haible <bruno@clisp.org>
35990 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
35992 * lib/striconveh.h (mem_cd_iconveh): Change specification.
35993 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
35994 original result buffer.
35995 (str_cd_iconveh): Update.
35996 * tests/test-striconveh.c (main): Update.
35998 * lib/striconv.h (mem_cd_iconv): Change specification.
35999 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
36001 (str_cd_iconv): Update.
36002 * tests/test-striconv.c (main): Update.
36004 2007-01-21 Bruno Haible <bruno@clisp.org>
36006 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
36008 2007-01-20 Jim Meyering <jim@meyering.net>
36010 * lib/userspec.c (parse_with_separator): If a user or group string
36011 starts with "+", skip the corresponding name-to-ID look-up, since
36012 such a look-up must fail: user and group names may not include "+".
36014 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
36016 * lib/poll.c: Include sys/time.h and time.h unconditionally,
36017 since we now assume the sys_time module.
36018 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
36019 check for sys/time.h; no longer needed.
36020 * modules/poll (Depends-on): Depend on sys_time.
36022 2007-01-18 Bruno Haible <bruno@clisp.org>
36024 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
36025 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36027 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
36030 * tests/test-gettimeofday.c: Include <time.h>.
36031 (dummy): Remove variable.
36033 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
36034 gl_HEADER_SYS_TIME_H.
36035 (gl_HEADER_SYS_TIME_H): New macro.
36037 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
36038 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36039 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
36040 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
36041 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36042 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
36043 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
36044 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36045 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
36046 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
36047 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36049 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
36050 last change; it caused a compilation error when cross-compiling to
36053 2007-01-18 Jim Meyering <jim@meyering.net>
36055 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
36056 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
36057 than the race-prone "test -d sys || mkdir sys".
36058 (configure.ac): Use AC_PROG_MKDIR_P.
36059 * modules/sys_select: Likewise.
36060 * modules/sys_socket: Likewise.
36061 * modules/sys_time: Likewise.
36063 2007-01-18 Eric Blake <ebb9@byu.net>
36065 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
36066 replace gettimeofday.
36067 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
36068 name, to avoid infinite recursion.
36070 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
36072 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
36074 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
36075 assume timespec.h defines struct timeval.
36076 * lib/settime.c: Likewise.
36077 * lib/utimens.c: Likewise.
36078 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
36079 since we now assume the gettimeofday module.
36080 * lib/tempname.c (__gen_tempname): Likewise.
36081 * lib/gettimeofday.h: Remove.
36082 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
36083 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
36084 Include <time.h>, for 'time()'.
36085 (localtime_buffer_addr): Also use this workaround if
36086 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
36087 to simplify the uses. All uses changed.
36088 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
36089 that #undef is inside {}, and 'const' follows type name consistently.
36090 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
36091 (gettimeofday): Do not use the maximum possible value for
36092 tv->tv_usec, since that might break usages other than ls.c.
36093 Instead, we'll leave ls.c alone. This undoes today's patch
36094 by Bruno. Add a compile-time warning for 1s-clock resolution;
36095 we've never observed the problem but might as well keep the
36097 * lib/nanosleep.c: Include timespec.h first, for interface check.
36098 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
36099 now assume the sys_time module.
36100 * lib/tempname.c: Likewise.
36101 * lib/timespec.h: Likewise.
36102 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
36104 * lib/strftime.c: Likewise.
36105 * lib/timespec.h: Likewise.
36106 * lib/posixtm.c: Include posixtm.h first, for interface check.
36107 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
36108 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
36109 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
36110 * lib/sys_time_.h: New file.
36111 * lib/timespec.h (struct timespec): Use long int, not long.
36112 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
36113 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
36114 Remove obsolescent call to AC_HEADER_TIME.
36115 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
36116 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36117 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36118 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
36120 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
36121 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
36122 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
36123 into the sys_time module. Check for gettimeofday just once.
36124 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
36125 for gettimeofday signature to just check the signature. Merely
36126 compile it, since linking doesn't test signature. Improve test for
36127 whether gettimeofday.o is actually needed.
36128 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
36129 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
36130 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
36131 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36132 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
36133 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
36134 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
36135 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
36136 than worrying about sys/time.h.
36137 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36138 Don't bother worrying about TIME_WITH_SYS_TIME.
36139 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36140 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
36141 * m4/sys_time_h.m4: New file.
36142 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
36143 Don't include sys/time.h. Return from main rather than exiting.
36144 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
36146 * modules/gethrxtime (Depends-on): Add sys_time.
36147 * modules/gettime (Depends-on): Likewise.
36148 * modules/gettimeofday (Depends-on): Likewise.
36149 * modules/nanosleep (Depends-on): Likewise.
36150 * modules/settime (Depends-on): Likewise.
36151 * modules/tempname (Depends-on): Likewise.
36152 * modules/utimens (Depends-on): Likewise.
36153 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
36154 (Include:) Change back to <sys/time.h>.
36155 (Maintainer:) Add self.
36156 * modules/sys_time: New file.
36157 * modules/tempname (Depends-on): Add gettimeofday.
36158 * tests/test-gettimeofday.c: Include <sys/time.h>
36159 rather than gettimeofday.h.
36161 2007-01-17 Bruno Haible <bruno@clisp.org>
36163 * gnulib-tool (func_get_license): Revert last patch. Instead, let
36164 the license default to GPL.
36165 (func_create_testdir): Don't complain if a module is LGPL and its
36166 tests module depends on GPLed modules.
36168 2007-01-17 Bruno Haible <bruno@clisp.org>
36170 * lib/gettimeofday.c (gettimeofday): Add code for the case
36171 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
36172 maximum possible value for tv->tv_usec, rather than the minimum one.
36174 2005-10-08 Martin Lambers <marlam@marlam.de>
36175 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
36176 2007-01-16 Bruno Haible <bruno@clisp.org>
36178 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
36179 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
36180 gl_FUNC_GETTIMEOFDAY.
36181 (Include): Add gettimeofday.h.
36182 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
36183 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
36184 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
36185 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
36186 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
36187 * lib/gettimeofday.h: New file.
36188 * lib/gettimeofday.c: Include <sys/timeb.h>.
36189 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
36190 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36191 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
36192 fall back on time().
36194 * tests/test-gettimeofday.c: New file.
36195 * modules/gettimeofday-tests: New file.
36197 2007-01-16 Eric Blake <ebb9@byu.net>
36199 * modules/fnmatch (Depends-on): Depend on wchar.
36200 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
36201 * m4/fnmatch.m4: Likewise.
36202 * modules/mbchar (Makefile.am): Assume <wchar.h>.
36203 * m4/mbchar.m4: Likewise.
36204 * modules/mbswidth (Depends-on): Depend on wchar.
36205 * lib/mbswidth.c: Assume <wchar.h>.
36206 * m4/mbswidth.m4: Likewise.
36207 * modules/quotearg (Depends-on): Depend on wchar.
36208 * lib/quotearg.c: Assume <wchar.h>.
36209 * m4/quotearg.m4: Likewise.
36210 * modules/regex (Depends-on): Depend on wchar.
36211 * lib/regex_internal.h: Assume <wchar.h>.
36212 * m4/regex.m4: Likewise.
36213 * modules/stdint (Depends-on): Depend on wchar.
36214 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
36215 * m4/stdint.m4: Likewise.
36216 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
36217 * modules/strftime (Depends-on): Depend on wchar.
36218 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
36219 * modules/strtol (Depends-on): Depend on wchar.
36220 * lib/strtol.c: Assume <wchar.h>.
36221 * modules/wcwidth (Depends-on): Depend on wchar.
36222 * lib/wcwidth.h: Assume <wchar.h>.
36223 * m4/wcwidth.m4: Likewise.
36225 2007-01-16 Bruno Haible <bruno@clisp.org>
36227 * modules/csharpexec-script: New, created from...
36228 * modules/csharpexec: ... this.
36230 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
36232 * modules/javaexec-script: New, created from...
36233 * modules/javaexec: ... this.
36235 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36237 * modules/poll (Dependencies): Add sys_select.
36239 2007-01-15 Jim Meyering <jim@meyering.net>
36241 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
36242 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
36243 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
36244 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
36246 2007-01-15 Bruno Haible <bruno@clisp.org>
36248 * modules/striconveh: New file.
36249 * lib/striconveh.h: New file.
36250 * lib/striconveh.c: New file.
36251 * MODULES.html.sh (Internationalization functions): Add striconveh.
36253 * modules/striconveh-tests: New file.
36254 * tests/test-striconveh.c: New file.
36256 2007-01-15 Bruno Haible <bruno@clisp.org>
36258 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
36259 not from GNU libiconv or GNU libc.
36261 2007-01-15 Bruno Haible <bruno@clisp.org>
36263 * doc/gnulib-intro.texi (Copyright): Explain the different license
36264 terms for module descriptions, autoconf macros, tests, documentation.
36266 2007-01-14 Bruno Haible <bruno@clisp.org>
36268 * modules/striconv-tests: New file.
36269 * tests/test-striconv.c: New file.
36271 2007-01-14 Bruno Haible <bruno@clisp.org>
36273 * modules/iconv-tests: New file.
36274 * tests/test-iconv.c: New file.
36276 2007-01-14 Bruno Haible <bruno@clisp.org>
36278 * gnulib-tool (func_get_license): For test modules, use the license of
36281 2007-01-14 Bruno Haible <bruno@clisp.org>
36283 * modules/iconv (Include): Clarify that <iconv.h> can only be included
36284 if iconv is found to exist.
36286 2007-01-14 Bruno Haible <bruno@clisp.org>
36288 * modules/c-ctype-tests: New file.
36289 * tests/test-c-ctype.c: New file.
36291 2007-01-14 Bruno Haible <bruno@clisp.org>
36293 * modules/binary-io-tests: New file.
36294 * tests/test-binary-io.sh: New file.
36295 * tests/test-binary-io.c: New file.
36297 2007-01-14 Bruno Haible <bruno@clisp.org>
36299 * modules/array-oset-tests: New file.
36300 * tests/test-array_oset.c: New file.
36302 2007-01-14 Bruno Haible <bruno@clisp.org>
36304 * modules/array-list-tests: New file.
36305 * tests/test-array_list.c: New file.
36307 2007-01-14 Bruno Haible <bruno@clisp.org>
36309 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
36311 Reported by Simon Josefsson in
36312 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
36314 2007-01-14 Bruno Haible <bruno@clisp.org>
36316 * modules/allocsa-tests: New file.
36317 * tests/test-allocsa.c: New file.
36319 2007-01-14 Bruno Haible <bruno@clisp.org>
36321 * modules/fchdir (Depends-on): Add absolute-header.
36322 * modules/unistd (Depends-on): Likewise.
36324 2006-12-30 Bruno Haible <bruno@clisp.org>
36326 * modules/fchdir: New file.
36327 * modules/unistd (Files): Add lib/unistd_.h.
36328 (Makefile.am): Generate unistd.h from unistd_.h.
36329 * lib/fchdir.c: New file.
36330 * lib/dirent_.h: New file.
36331 * lib/unistd_.h: New file.
36332 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
36333 * m4/fchdir.m4: New file.
36334 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
36335 (gl_HEADER_UNISTD): Invoke it.
36336 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
36338 * lib/backupfile.c (opendir, closedir): Undefine.
36339 * lib/chown.c (open, close): Undefine.
36340 * lib/clean-temp.c (open, close): Undefine.
36341 * lib/copy-file.c (open, close): Undefine.
36342 * lib/execute.c (open, close): Undefine.
36343 * lib/fsusage.c (open, close): Undefine.
36344 * lib/gc-gnulib.c (open, close): Undefine.
36345 * lib/getcwd.c (opendir, closedir): Undefine.
36346 * lib/glob.c (opendir, closedir): Undefine.
36347 * lib/javacomp.c (open, close): Undefine.
36348 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
36349 * lib/openat-proc.c (open, close): Undefine.
36350 * lib/pagealign_alloc.c (open, close): Undefine.
36351 * lib/pipe.c (open, close): Undefine.
36352 * lib/progreloc.c (open, close): Undefine.
36353 * lib/savedir.c (opendir, closedir): Undefine.
36354 * lib/utime.c (open, close): Undefine.
36355 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
36357 2007-01-10 Bruno Haible <bruno@clisp.org>
36359 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
36361 2007-01-12 Eric Blake <ebb9@byu.net>
36363 Provide a robust <wchar.h>. Further simplifications are now
36364 possible in other modules, but not included here.
36365 * modules/wchar: New module.
36366 * m4/wchar.m4: New file.
36367 * lib/wchar_.h: Likewise.
36368 * modules/mbchar (Depends-on): Depend on wchar, as the first use
36370 * MODULES.html.sh (Extended multibyte and wide character utilities):
36373 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
36375 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
36376 to a reasonable default for memory allocation.
36377 (xreadlink): Don't allocate a huge buffer, to work around a buggy
36378 file system that reports garbage st_size values for symlinks.
36379 Problem reported by Liyang Hu.
36381 2007-01-11 Simon Josefsson <simon@josefsson.org>
36383 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
36384 Emacs .#* auto-save files).
36386 2007-01-11 Bruno Haible <bruno@clisp.org>
36388 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
36391 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
36393 Use @...@ consistently in lib/wctype_.h.
36394 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
36395 on it being set to 1 or 0.
36396 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
36397 go back to AC_SUBSTing it.
36398 * modules/wctype (Makefile.am): Undo previous change.
36400 2007-01-10 Eric Blake <ebb9@byu.net>
36402 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
36403 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
36404 * modules/wctype (Makefile.am): Likewise.
36405 Reported by Chris McGuire.
36407 2007-01-10 Jim Meyering <jim@meyering.net>
36409 fts.c: a small readability/maintainability improvement
36410 * lib/fts.c (fts_read): Make this code slightly more readable and
36411 maintainable by hoisting the "sp->fts_cur = p" assignments to
36412 immediately follow the statements that set P. Derived from
36413 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
36415 2007-01-10 Eric Blake <ebb9@byu.net>
36417 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
36418 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
36419 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36420 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36421 Reported by Chris McGuire.
36423 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36425 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
36428 2007-01-09 Bruno Haible <bruno@clisp.org>
36430 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
36431 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
36433 (func_module): Use them.
36435 2007-01-09 Bruno Haible <bruno@clisp.org>
36437 * modules/unistr/base: New file.
36438 * lib/unistr.h: New file.
36440 * modules/unistr/u8-to-u16: New file.
36441 * lib/unistr/u8-to-u16.c: New file.
36443 * modules/unistr/u8-to-u32: New file.
36444 * lib/unistr/u8-to-u32.c: New file.
36446 * modules/unistr/u16-to-u8: New file.
36447 * lib/unistr/u16-to-u8.c: New file.
36449 * modules/unistr/u16-to-u32: New file.
36450 * lib/unistr/u16-to-u32.c: New file.
36452 * modules/unistr/u32-to-u8: New file.
36453 * lib/unistr/u32-to-u8.c: New file.
36455 * modules/unistr/u32-to-u16: New file.
36456 * lib/unistr/u32-to-u16.c: New file.
36458 * modules/unistr/u8-check: New file.
36459 * modules/unistr/u16-check: New file.
36460 * modules/unistr/u32-check: New file.
36461 * lib/unistr/u8-check.c: New file.
36462 * lib/unistr/u16-check.c: New file.
36463 * lib/unistr/u32-check.c: New file.
36465 * modules/unistr/u8-chr: New file.
36466 * modules/unistr/u16-chr: New file.
36467 * modules/unistr/u32-chr: New file.
36468 * lib/unistr/u8-chr.c: New file.
36469 * lib/unistr/u16-chr.c: New file.
36470 * lib/unistr/u32-chr.c: New file.
36472 * modules/unistr/u8-cmp: New file.
36473 * modules/unistr/u16-cmp: New file.
36474 * modules/unistr/u32-cmp: New file.
36475 * lib/unistr/u8-cmp.c: New file.
36476 * lib/unistr/u16-cmp.c: New file.
36477 * lib/unistr/u32-cmp.c: New file.
36479 * modules/unistr/u8-cpy: New file.
36480 * modules/unistr/u16-cpy: New file.
36481 * modules/unistr/u32-cpy: New file.
36482 * lib/unistr/u8-cpy.c: New file.
36483 * lib/unistr/u16-cpy.c: New file.
36484 * lib/unistr/u32-cpy.c: New file.
36485 * lib/unistr/u-cpy.h: New file.
36487 * modules/unistr/u8-cpy-alloc: New file.
36488 * modules/unistr/u16-cpy-alloc: New file.
36489 * modules/unistr/u32-cpy-alloc: New file.
36490 * lib/unistr/u8-cpy-alloc.c: New file.
36491 * lib/unistr/u16-cpy-alloc.c: New file.
36492 * lib/unistr/u32-cpy-alloc.c: New file.
36493 * lib/unistr/u-cpy-alloc.h: New file.
36495 * modules/unistr/u8-endswith: New file.
36496 * modules/unistr/u16-endswith: New file.
36497 * modules/unistr/u32-endswith: New file.
36498 * lib/unistr/u8-endswith.c: New file.
36499 * lib/unistr/u16-endswith.c: New file.
36500 * lib/unistr/u32-endswith.c: New file.
36501 * lib/unistr/u-endswith.h: New file.
36503 * modules/unistr/u8-mblen: New file.
36504 * modules/unistr/u16-mblen: New file.
36505 * modules/unistr/u32-mblen: New file.
36506 * lib/unistr/u8-mblen.c: New file.
36507 * lib/unistr/u16-mblen.c: New file.
36508 * lib/unistr/u32-mblen.c: New file.
36510 * modules/unistr/u8-mbtouc: New file.
36511 * modules/unistr/u16-mbtouc: New file.
36512 * modules/unistr/u32-mbtouc: New file.
36513 * lib/unistr/u8-mbtouc.c: New file.
36514 * lib/unistr/u16-mbtouc.c: New file.
36515 * lib/unistr/u32-mbtouc.c: New file.
36517 * modules/unistr/u8-mbtouc-safe: New file.
36518 * modules/unistr/u16-mbtouc-safe: New file.
36519 * modules/unistr/u32-mbtouc-safe: New file.
36520 * lib/unistr/u8-mbtouc-safe.c: New file.
36521 * lib/unistr/u16-mbtouc-safe.c: New file.
36522 * lib/unistr/u32-mbtouc-safe.c: New file.
36524 * modules/unistr/u8-move: New file.
36525 * modules/unistr/u16-move: New file.
36526 * modules/unistr/u32-move: New file.
36527 * lib/unistr/u8-move.c: New file.
36528 * lib/unistr/u16-move.c: New file.
36529 * lib/unistr/u32-move.c: New file.
36530 * lib/unistr/u-move.h: New file.
36532 * modules/unistr/u8-next: New file.
36533 * modules/unistr/u16-next: New file.
36534 * modules/unistr/u32-next: New file.
36535 * lib/unistr/u8-next.c: New file.
36536 * lib/unistr/u16-next.c: New file.
36537 * lib/unistr/u32-next.c: New file.
36539 * modules/unistr/u8-prev: New file.
36540 * modules/unistr/u16-prev: New file.
36541 * modules/unistr/u32-prev: New file.
36542 * lib/unistr/u8-prev.c: New file.
36543 * lib/unistr/u16-prev.c: New file.
36544 * lib/unistr/u32-prev.c: New file.
36546 * modules/unistr/u8-set: New file.
36547 * modules/unistr/u16-set: New file.
36548 * modules/unistr/u32-set: New file.
36549 * lib/unistr/u8-set.c: New file.
36550 * lib/unistr/u16-set.c: New file.
36551 * lib/unistr/u32-set.c: New file.
36552 * lib/unistr/u-set.h: New file.
36554 * modules/unistr/u8-startswith: New file.
36555 * modules/unistr/u16-startswith: New file.
36556 * modules/unistr/u32-startswith: New file.
36557 * lib/unistr/u8-startswith.c: New file.
36558 * lib/unistr/u16-startswith.c: New file.
36559 * lib/unistr/u32-startswith.c: New file.
36560 * lib/unistr/u-startswith.h: New file.
36562 * modules/unistr/u8-stpcpy: New file.
36563 * modules/unistr/u16-stpcpy: New file.
36564 * modules/unistr/u32-stpcpy: New file.
36565 * lib/unistr/u8-stpcpy.c: New file.
36566 * lib/unistr/u16-stpcpy.c: New file.
36567 * lib/unistr/u32-stpcpy.c: New file.
36568 * lib/unistr/u-stpcpy.h: New file.
36570 * modules/unistr/u8-stpncpy: New file.
36571 * modules/unistr/u16-stpncpy: New file.
36572 * modules/unistr/u32-stpncpy: New file.
36573 * lib/unistr/u8-stpncpy.c: New file.
36574 * lib/unistr/u16-stpncpy.c: New file.
36575 * lib/unistr/u32-stpncpy.c: New file.
36576 * lib/unistr/u-stpncpy.h: New file.
36578 * modules/unistr/u8-strcat: New file.
36579 * modules/unistr/u16-strcat: New file.
36580 * modules/unistr/u32-strcat: New file.
36581 * lib/unistr/u8-strcat.c: New file.
36582 * lib/unistr/u16-strcat.c: New file.
36583 * lib/unistr/u32-strcat.c: New file.
36584 * lib/unistr/u-strcat.h: New file.
36586 * modules/unistr/u8-strchr: New file.
36587 * modules/unistr/u16-strchr: New file.
36588 * modules/unistr/u32-strchr: New file.
36589 * lib/unistr/u8-strchr.c: New file.
36590 * lib/unistr/u16-strchr.c: New file.
36591 * lib/unistr/u32-strchr.c: New file.
36593 * modules/unistr/u8-strcmp: New file.
36594 * modules/unistr/u16-strcmp: New file.
36595 * modules/unistr/u32-strcmp: New file.
36596 * lib/unistr/u8-strcmp.c: New file.
36597 * lib/unistr/u16-strcmp.c: New file.
36598 * lib/unistr/u32-strcmp.c: New file.
36600 * modules/unistr/u8-strcpy: New file.
36601 * modules/unistr/u16-strcpy: New file.
36602 * modules/unistr/u32-strcpy: New file.
36603 * lib/unistr/u8-strcpy.c: New file.
36604 * lib/unistr/u16-strcpy.c: New file.
36605 * lib/unistr/u32-strcpy.c: New file.
36606 * lib/unistr/u-strcpy.h: New file.
36608 * modules/unistr/u8-strcspn: New file.
36609 * modules/unistr/u16-strcspn: New file.
36610 * modules/unistr/u32-strcspn: New file.
36611 * lib/unistr/u8-strcspn.c: New file.
36612 * lib/unistr/u16-strcspn.c: New file.
36613 * lib/unistr/u32-strcspn.c: New file.
36614 * lib/unistr/u-strcspn.h: New file.
36616 * modules/unistr/u8-strdup: New file.
36617 * modules/unistr/u16-strdup: New file.
36618 * modules/unistr/u32-strdup: New file.
36619 * lib/unistr/u8-strdup.c: New file.
36620 * lib/unistr/u16-strdup.c: New file.
36621 * lib/unistr/u32-strdup.c: New file.
36622 * lib/unistr/u-strdup.h: New file.
36624 * modules/unistr/u8-strlen: New file.
36625 * modules/unistr/u16-strlen: New file.
36626 * modules/unistr/u32-strlen: New file.
36627 * lib/unistr/u8-strlen.c: New file.
36628 * lib/unistr/u16-strlen.c: New file.
36629 * lib/unistr/u32-strlen.c: New file.
36630 * lib/unistr/u-strlen.h: New file.
36632 * modules/unistr/u8-strmblen: New file.
36633 * modules/unistr/u16-strmblen: New file.
36634 * modules/unistr/u32-strmblen: New file.
36635 * lib/unistr/u8-strmblen.c: New file.
36636 * lib/unistr/u16-strmblen.c: New file.
36637 * lib/unistr/u32-strmblen.c: New file.
36639 * modules/unistr/u8-strmbtouc: New file.
36640 * modules/unistr/u16-strmbtouc: New file.
36641 * modules/unistr/u32-strmbtouc: New file.
36642 * lib/unistr/u8-strmbtouc.c: New file.
36643 * lib/unistr/u16-strmbtouc.c: New file.
36644 * lib/unistr/u32-strmbtouc.c: New file.
36646 * modules/unistr/u8-strncat: New file.
36647 * modules/unistr/u16-strncat: New file.
36648 * modules/unistr/u32-strncat: New file.
36649 * lib/unistr/u8-strncat.c: New file.
36650 * lib/unistr/u16-strncat.c: New file.
36651 * lib/unistr/u32-strncat.c: New file.
36652 * lib/unistr/u-strncat.h: New file.
36654 * modules/unistr/u8-strncmp: New file.
36655 * modules/unistr/u16-strncmp: New file.
36656 * modules/unistr/u32-strncmp: New file.
36657 * lib/unistr/u8-strncmp.c: New file.
36658 * lib/unistr/u16-strncmp.c: New file.
36659 * lib/unistr/u32-strncmp.c: New file.
36661 * modules/unistr/u8-strncpy: New file.
36662 * modules/unistr/u16-strncpy: New file.
36663 * modules/unistr/u32-strncpy: New file.
36664 * lib/unistr/u8-strncpy.c: New file.
36665 * lib/unistr/u16-strncpy.c: New file.
36666 * lib/unistr/u32-strncpy.c: New file.
36667 * lib/unistr/u-strncpy.h: New file.
36669 * modules/unistr/u8-strnlen: New file.
36670 * modules/unistr/u16-strnlen: New file.
36671 * modules/unistr/u32-strnlen: New file.
36672 * lib/unistr/u8-strnlen.c: New file.
36673 * lib/unistr/u16-strnlen.c: New file.
36674 * lib/unistr/u32-strnlen.c: New file.
36675 * lib/unistr/u-strnlen.h: New file.
36677 * modules/unistr/u8-strpbrk: New file.
36678 * modules/unistr/u16-strpbrk: New file.
36679 * modules/unistr/u32-strpbrk: New file.
36680 * lib/unistr/u8-strpbrk.c: New file.
36681 * lib/unistr/u16-strpbrk.c: New file.
36682 * lib/unistr/u32-strpbrk.c: New file.
36683 * lib/unistr/u-strpbrk.h: New file.
36685 * modules/unistr/u8-strrchr: New file.
36686 * modules/unistr/u16-strrchr: New file.
36687 * modules/unistr/u32-strrchr: New file.
36688 * lib/unistr/u8-strrchr.c: New file.
36689 * lib/unistr/u16-strrchr.c: New file.
36690 * lib/unistr/u32-strrchr.c: New file.
36692 * modules/unistr/u8-strspn: New file.
36693 * modules/unistr/u16-strspn: New file.
36694 * modules/unistr/u32-strspn: New file.
36695 * lib/unistr/u8-strspn.c: New file.
36696 * lib/unistr/u16-strspn.c: New file.
36697 * lib/unistr/u32-strspn.c: New file.
36698 * lib/unistr/u-strspn.h: New file.
36700 * modules/unistr/u8-strstr: New file.
36701 * modules/unistr/u16-strstr: New file.
36702 * modules/unistr/u32-strstr: New file.
36703 * lib/unistr/u8-strstr.c: New file.
36704 * lib/unistr/u16-strstr.c: New file.
36705 * lib/unistr/u32-strstr.c: New file.
36706 * lib/unistr/u-strstr.h: New file.
36708 * modules/unistr/u8-strtok: New file.
36709 * modules/unistr/u16-strtok: New file.
36710 * modules/unistr/u32-strtok: New file.
36711 * lib/unistr/u8-strtok.c: New file.
36712 * lib/unistr/u16-strtok.c: New file.
36713 * lib/unistr/u32-strtok.c: New file.
36714 * lib/unistr/u-strtok.h: New file.
36716 * modules/unistr/u8-uctomb: New file.
36717 * modules/unistr/u16-uctomb: New file.
36718 * modules/unistr/u32-uctomb: New file.
36719 * lib/unistr/u8-uctomb.c: New file.
36720 * lib/unistr/u16-uctomb.c: New file.
36721 * lib/unistr/u32-uctomb.c: New file.
36723 * MODULES.html.sh (Unicode string functions): Add the new modules.
36725 2007-01-08 Bruno Haible <bruno@clisp.org>
36727 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
36728 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
36731 2007-01-08 Karl Berry <karl@gnu.org>
36733 * doc/error.texi: mention that main() fns must set program_name
36734 when progname is used.
36736 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
36738 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
36739 WCTYPE_H is empty, for the benefit of builds from non-distclean
36740 directories. Problem reported by Eric Blake in
36741 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
36743 2007-01-08 Bruno Haible <bruno@clisp.org>
36745 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
36746 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
36747 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
36748 PROVIDE_CANONICALIZE_FILENAME_MODE.
36749 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
36751 2007-01-08 Bruno Haible <bruno@clisp.org>
36753 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
36754 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
36755 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
36756 * lib/fts.c: Likewise.
36757 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
36759 2006-12-25 Bruno Haible <bruno@clisp.org>
36761 * modules/utf8-ucs4-safe: New file.
36762 * lib/utf8-ucs4-safe.h: New file.
36763 * lib/unistr/utf8-ucs4-safe.c: New file.
36765 * modules/utf16-ucs4-safe: New file.
36766 * lib/utf16-ucs4-safe.h: New file.
36767 * lib/unistr/utf16-ucs4-safe.c: New file.
36769 * MODULES.html.sh (Unicode string functions): Add the new modules.
36771 2007-01-08 Bruno Haible <bruno@clisp.org>
36773 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
36774 (Depends-on): Add unitypes.
36775 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36776 (u8_mbtouc_aux): Move out to separate file.
36777 (u8_mbtouc): Use ucs4_t, uint8_t types.
36778 * lib/unistr/utf8-ucs4.c: New file.
36780 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
36781 (Depends-on): Add unitypes.
36782 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36783 (u16_mbtouc_aux): Move out to separate file.
36784 (u16_mbtouc): Use ucs4_t, uint16_t types.
36785 * lib/unistr/utf16-ucs4.c: New file.
36787 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
36788 (Depends-on): Add unitypes.
36789 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
36790 (u8_uctomb_aux): Move out to separate file.
36791 (u8_uctomb): Use ucs4_t, uint8_t types.
36792 * lib/unistr/ucs4-utf8.c: New file.
36794 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
36795 (Depends-on): Add unitypes.
36796 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
36797 (u16_uctomb_aux): Move out to separate file.
36798 (u16_uctomb): Use ucs4_t, uint16_t types.
36799 * lib/unistr/ucs4-utf16.c: New file.
36801 2006-12-25 Bruno Haible <bruno@clisp.org>
36803 * modules/unitypes: New file.
36804 * lib/unitypes.h: New file.
36805 * MODULES.html.sh (func_all_modules): New section "Unicode string
36806 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
36807 this section. Add unitypes.
36809 2007-01-08 Bruno Haible <bruno@clisp.org>
36811 Avoid variable names that conflict with those from libtool.
36812 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
36813 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
36814 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
36815 library_names_spec to acl_library_names_spec, hardcode_* to
36817 Reported by Ralf Wildenhues.
36819 2007-01-08 Bruno Haible <bruno@clisp.org>
36821 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
36823 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
36825 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
36826 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
36828 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
36830 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
36831 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
36832 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
36833 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
36835 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
36837 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
36838 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
36839 GC_USE_<algorithm>.
36840 * lib/gc-libgcrypt.c: Likewise.
36841 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
36842 * modules/gc-arctwo (configure.ac): Likewise.
36843 * modules/gc-des (configure.ac): Likewise.
36844 * modules/gc-hmac-md5 (configure.ac): Likewise.
36845 * modules/gc-hmac-sha1 (configure.ac): Likewise.
36846 * modules/gc-md2 (configure.ac): Likewise.
36847 * modules/gc-md4 (configure.ac): Likewise.
36848 * modules/gc-md5 (configure.ac): Likewise.
36849 * modules/gc-random (configure.ac): Likewise.
36850 * modules/gc-rijndael (configure.ac): Likewise.
36851 * modules/gc-sha1 (configure.ac): Likewise.
36853 2007-01-08 Bruno Haible <bruno@clisp.org>
36855 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
36857 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
36859 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
36861 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
36862 * modules/fcntl-safer (configure.ac): Likewise.
36863 * modules/fopen-safer (configure.ac): Likewise.
36864 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
36865 GNULIB_FWRITEERROR macro definition.
36867 2007-01-08 Bruno Haible <bruno@clisp.org>
36869 * m4/gnulib-common.m4: New file.
36870 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
36871 (func_get_filelist): Add m4/gnulib-common.m4.
36873 2007-01-08 Bruno Haible <bruno@clisp.org>
36875 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
36878 2007-01-08 Jim Meyering <jim@meyering.net>
36880 Use a more robust test for a "can't happen" condition.
36881 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
36882 narrowed the st_size value. Presuming the "can't happen" condition
36883 is true, that narrowing could conceivably convert an invalid st_size
36884 value into a valid one. Instead, use a change based on Matthew
36885 Woehlke's original patch.
36887 Slight readability improvement: use an assert-like macro
36888 in place of literal "abort ()" uses.
36889 * lib/fts.c (fts_assert): Define.
36890 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
36891 Use this macro instead of a bare 'abort'.
36893 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
36895 Don't worry about using IRIX 5.3's wctype.h broken definitions;
36896 simply work around them.
36897 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
36898 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
36899 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
36901 Don't bother to define as macros, since the standard doesn't require it.
36902 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
36903 longer worry about IRIX 5.3.
36904 (HAVE_WCTYPE_CTMP_BUG): Remove.
36906 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
36908 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
36909 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
36910 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36911 Problems reported by Georg Schwarz for IRIX 5.3.
36913 * gnulib-tool (autoconf_minversion): Take the maximum version number
36914 found, not the minimum. Problem reported by James Youngman.
36916 2007-01-03 Karl Berry <karl@gnu.org>
36918 * doc/error.texi: new file, explaining interaction with progname.
36919 * doc/gnulib.texi: include it. Update copyright.
36921 2007-01-03 Simon Josefsson <simon@josefsson.org>
36923 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
36924 AC_CANONICAL_HOST, to improve autobuild outputs.
36926 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
36927 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36929 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
36930 sockets, server sockets, and other file descriptors. Count errors
36931 to compute the return value. Reorder the code a bit to be easier
36932 to follow. Don't set event bits that were not requested (except
36933 POLLERR and POLLHUP).
36935 2007-01-01 Bruno Haible <bruno@clisp.org>
36937 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
36939 2007-01-03 Jim Meyering <jim@meyering.net>
36941 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
36943 2007-01-02 Bruno Haible <bruno@clisp.org>
36945 * modules/settime (Include): Require timespec.h.
36946 * modules/nanosleep (Include): Likewise.
36948 2007-01-01 Bruno Haible <bruno@clisp.org>
36950 * gnulib-tool (func_emit_copyright_notice): Bump year.
36951 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
36953 2007-01-01 Bruno Haible <bruno@clisp.org>
36955 Improve support for OpenBSD.
36956 * build-aux/config.rpath (libname_spec): Export.
36957 (library_names_spec): New variable. Export.
36958 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
36959 library_names_spec from the config.rpath output. Locate shared library
36960 through the name pattern in library_names_spec.
36962 2007-01-01 Eric Blake <ebb9@byu.net>
36964 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
36966 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
36968 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
36969 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
36970 assume the C locale, and avoid an "eval" that could cause trouble.
36971 Problem with SORT reported by Bob Proulx.
36973 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
36974 Define. Trivial patch from Henning Nielsen Lund, originally
36975 sent to bug-grep@gnu.org today.
36977 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
36979 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
36980 struct stat. Problem reported by Henning Nielsen Lund.
36981 * lib/acl.c: Include acl.h first, to check interface. Don't
36982 bother to include sys/types.h and sys/stat.h again.
36984 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
36986 Import the following change from libc; problem reported by
36989 2005-10-13 Ulrich Drepper <drepper@redhat.com>
36992 * lib/argp.h: Remove __NTH for __argp_usage inline function.
36994 2006-12-28 Jim Meyering <jim@meyering.net>
36996 * build-aux/announce-gen: Do not assume that the package
36997 builds any of tar.gz, tar.bz2, and .xdelta files.
36998 Suggestion from Simon Josefsson.
37000 2006-12-28 Simon Josefsson <simon@josefsson.org>
37002 * modules/announce-gen: New file.
37004 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
37006 * lib/mbchar.h: Just include <wctype.h>; the wctype module
37007 handles its gotchas now.
37008 * lib/mbswidth.c: Likewise.
37009 * lib/wcwidth.h: Likewise.
37010 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
37011 and iswcntrl; the wctype module does this stuff now.
37012 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37013 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37014 * modules/mbchar (Depends-on): Add wctype.
37015 * modules/mbswidth (Depends-on): Likewise.
37016 * modules/wcwidth (Depends-on): Likewise.
37018 2006-12-27 Eric Blake <ebb9@byu.net>
37020 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
37021 module uses more than what <wctype.h> is required to provide.
37023 2006-12-26 Eric Blake <ebb9@byu.net>
37025 * gnulib-tool (sed_extract_prog): Avoid space-tab.
37027 2006-12-26 Eric Blake <ebb9@byu.net>
37029 * modules/absolute-header: New module.
37030 * modules/fcntl (Depends-on): Depend on it.
37031 * modules/inttypes (Depends-on): Likewise.
37032 * modules/stdint (Depends-on): Likewise.
37033 * modules/sys_stat (Depends-on): Likewise.
37034 * modules/wctype (Depends-on): Likewise.
37035 * MODULES.html.sh (Support for building libraries and
37036 executables): Document it.
37038 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
37040 * gnulib-tool (SED): Remove, undoing previous change.
37041 The problem was that it broke coreutils on Solaris, because
37042 "sed --posix" leaked into a makefile.
37043 (sed): New alias, if 'alias' and GNU sed.
37045 2006-12-24 Jim Meyering <jim@meyering.net>
37047 Work around an fchownat bug in glibc-2.4:
37048 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
37049 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
37050 in spite of the -P option.
37051 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
37053 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
37054 * modules/openat (Files): Add lib/fchownat.c.
37055 * lib/openat.c (fchownat): Don't define here. Move to...
37056 * lib/fchownat.c: ...this new file.
37058 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
37060 Fix bug reported by Bruno Haible in
37061 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
37062 where quotearg.c didn't compile on Mac OS X 10.2 because it
37063 lacks <wchar.h> and wint_t.
37064 * lib/wctype_.h (__wctype_wint_t): New type.
37065 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
37066 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
37067 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
37068 Arg is now of type __wctype_wint_t, not wint_t.
37069 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
37070 substitute HAVE_WINT_T.
37071 * modules/wctype (Files): Add m4/wint_t.m4.
37072 (wctype.h): Substitute HAVE_WINT_T.
37074 2006-12-23 Bruno Haible <bruno@clisp.org>
37076 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
37078 2006-12-23 Bruno Haible <bruno@clisp.org>
37080 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
37082 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
37085 2006-12-22 Bruno Haible <bruno@clisp.org>
37087 * lib/copy-file.c: Include acl.h.
37088 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
37089 Close the file descriptors only after being done with copy_acl.
37090 * modules/copy-file (Depends-on): Add acl.
37092 2006-12-22 Bruno Haible <bruno@clisp.org>
37094 * gnulib-tool (SED): New variable.
37095 Use $SED instead of sed everywhere.
37097 2006-12-22 Bruno Haible <bruno@clisp.org>
37099 * modules/no-c++: New file.
37100 * m4/no-c++.m4: New file.
37101 * MODULES.html.sh (Support for building libraries and executables):
37104 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
37106 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
37107 Include <limits.h>, and use its INT_MAX to rewrite the
37108 j loop so that it does not overflow 'int'. Problem reported by
37110 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
37111 Play it safe by shifting left by 1 rather than multiplying by 2,
37112 as GCC is less likely to optimize this away when the value
37113 is signed (when it assumes overflow leads to undefined behavior).
37114 Also, don't assume time_t uses two's complement.
37116 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
37118 * MODULES.html.sh: New module wctype.
37119 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
37120 * lib/fnmatch.c: Don't bother to include <wchar.h> before
37121 <wctype.h>, since the new wctype module should fix this.
37122 * lib/quotearg.c: Include <wctype.h> unconditionally, since
37123 the wctype module should arrange for it.
37124 * lib/regex_internal.h: Likewise.
37125 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
37126 since the wctype module should handle this now.
37127 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
37128 * modules/fnmatch (Depends-on): Add wctype.
37129 * modules/quotearg (Depends-on): Likewise.
37130 * modules/regex (Depends-on): Likewise.
37132 2006-12-19 Bruno Haible <bruno@clisp.org>
37134 * lib/strdup.h [C++]: Wrap definitions in extern "C".
37135 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
37137 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37139 * modules/savewd (Depends-on): Fix dependency on fcntl.
37141 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
37143 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
37144 conforms to C99, rather than relying on the user's environment
37145 setting of STDINT_H.
37147 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
37148 and Eric Blake <ebb9@byu.net>
37150 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
37151 This is more consistent with the other defines here.
37152 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
37153 Port to z/OS. Problem reported by Paul Gilmartin.
37154 Change local vars to use gl_ prefix rather than ac_.
37155 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
37156 with other defines.
37157 * modules/double-slash-root: New module.
37158 * modules/dirname (Files): Remove m4/double-slash-root.m4.
37159 (Depends-on): Add double-slash-root.
37160 * MODULES.html.sh (File system functions): Mention new module.
37162 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
37164 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
37165 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
37166 This is for the benefit of gzip, which doesn't do i18n.
37168 2006-12-12 Jim Meyering <jim@meyering.net>
37170 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
37171 Reported by Andreas Schwab <schwab@suse.de>.
37173 2006-12-12 Bruno Haible <bruno@clisp.org>
37175 Merge these changes.
37176 2006-09-05 Bruno Haible <bruno@clisp.org>
37177 * lib/iconvme.c (iconv_string): No need to save and restore errno when
37178 iconv_alloc succeeded.
37179 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
37180 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
37181 test for " && dest " at the end - dest is always != NULL there. Call
37182 iconv with 4xNULL arguments initially, to reset the state. Call iconv
37183 with 2xNULL arguments, also to flush the state storage. Handle the
37184 IRIX iconv behaviour. Realloc the final result, to throw away unused
37187 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
37189 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
37190 and fchmodat unconditionally, since glibc 2.4 has them.
37191 Problem reported by Arkadiusz Miskiewicz.
37193 2006-12-10 Bruno Haible <bruno@clisp.org>
37195 * gnulib-tool (func_import): Show the include files only for those
37196 modules that are copied and specified.
37197 Reported by Karl Berry.
37199 2006-12-08 Jim Meyering <jim@meyering.net>
37201 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
37202 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
37204 * build-aux/announce-gen: Add two new options, both optional:
37205 --bootstrap-tools=TOOL_LIST
37206 a comma-separated list of tools, e.g.,
37207 autoconf,automake,bison,gnulib
37208 --gnulib-snapshot-date=DATE
37209 if gnulib is in the bootstrap tool list,
37210 then report this as the snapshot date.
37211 If not specified, use the current date/time.
37212 If you specify a date here, be sure it's UTC.
37214 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37216 * tests/test-argp-2.sh: Fix test to match actual output.
37217 (func_compare): Fix sed script to be portable.
37219 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
37221 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
37222 workaround for this case. It is not autoconfigured now; offhand
37223 it's hard to see how to autoconfigure it.
37225 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
37227 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
37228 a directory that is about to be chowned. Such a directory's
37229 initial file permissions should permit the owner only and this
37230 should not be changed until after the chown, since the group and
37231 other bits would be incorrect if they granted permission before
37234 Fix porting problem for iswctype reported by Georg Schwarz in:
37235 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
37236 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
37237 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
37238 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
37239 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37241 2006-12-03 Jim Meyering <jim@meyering.net>
37243 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
37244 p->fts_statp may not yet be defined.
37245 (fts_read): Instead, set it in the caller, once p->fts_statp is
37246 sure to be defined, and corresponds to a top-level directory.
37247 This bug made du -x fail. Here's the coreutils test case:
37248 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
37249 Reported by Mike Frysinger.
37251 2006-12-01 Jim Meyering <jim@meyering.net>
37253 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
37254 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
37255 Reported by Simon Josefsson.
37257 2006-11-30 Jim Meyering <jim@meyering.net>
37259 * m4/warning.m4: Use the all-permissive copyright notice
37260 recommended by RMS (rather than LGPL).
37261 * m4/vararrays.m4: Likewise.
37262 * m4/flexmember.m4: Likewise.
37264 2006-11-29 Bruno Haible <bruno@clisp.org>
37266 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37267 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
37269 Reported by Simon Josefsson <simon@josefsson.org>.
37271 2006-11-28 James Youngman <jay@gnu.org>
37273 * README: Advise users that they might find the bug-gnulib@gnu.org
37274 and autotools-announce@gnu.org mailing lists useful.
37276 2006-11-28 Bruno Haible <bruno@clisp.org>
37278 * m4/ptrdiff_max.m4: Remove file.
37280 2006-11-21 Bruno Haible <bruno@clisp.org>
37282 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
37284 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37285 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
37287 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37288 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
37290 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37292 2006-11-28 Jim Meyering <jim@meyering.net>
37294 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
37295 warning from "gcc -Wshadow" about shadowing the builtin.
37297 2006-11-27 Bruno Haible <bruno@clisp.org>
37299 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
37301 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37303 2006-11-27 Bruno Haible <bruno@clisp.org>
37304 Paul Eggert <eggert@cs.ucla.edu>
37306 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
37308 2006-11-26 Bruno Haible <bruno@clisp.org>
37310 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37311 noinst_LTLIBRARIES.
37313 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
37314 Bruno Haible <bruno@clisp.org>
37316 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
37317 if compiling with "gcc -ansi".
37319 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
37321 Fix some incompatibilities with gcc -ansi -pedantic.
37322 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
37323 if compiling pedantically with GCC, unless it's C99 or later.
37324 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
37325 it mishandles gcc -ansi -pedantic as well.
37326 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
37328 * lib/regexec.c (check_node_accept_bytes): Don't use auto
37329 initializers for struct if -pedantic, unless it's C99 or later.
37331 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
37333 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
37334 Don't close an fd more than once. Identical atimes indicate
37335 success, not failure.
37337 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
37339 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
37341 2006-11-23 Jim Meyering <jim@meyering.net>
37343 * build-aux/announce-gen: New file. From coreutils.
37345 2006-11-22 Jim Meyering <jim@meyering.net>
37347 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
37348 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
37349 (fts_read): Use a temporary to narrow the overused st_size member
37350 before using it in a switch statement. Reported by Matthew Woehlke.
37352 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
37353 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37355 2006-11-20 Bruno Haible <bruno@clisp.org>
37357 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
37358 changequote instead of pairs of brackets.
37359 Reported by Andreas Schwab <schwab@suse.de>.
37361 2006-11-21 Jim Meyering <jim@meyering.net>
37363 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
37364 so as to remain compatible with older compilers.
37365 Patch from Michael Deutschmann.
37367 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
37369 * MODULES.html.sh (File system functions): Add openat.
37371 * lib/openat.h (rpl_fstatat): New macro, if
37372 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
37373 (fstatat): Define to rpl_fstatat under the same conditions,
37374 unless COMPILING_FSTATAT.
37375 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
37376 seems to have the bug.
37377 * lib/fstatat.c: New file.
37378 * modules/openat (Files): Add it.
37380 2006-11-20 Bruno Haible <bruno@clisp.org>
37382 * Makefile: New file.
37384 2006-11-20 Jim Meyering <jim@meyering.net>
37386 The beginnings of syntax-related checks for gnulib.
37387 * lib/Makefile: New file.
37388 * lib/t-idcache: New script. Ensure that the two halves of
37389 idcache.c stay in sync.
37391 * lib/idcache.c: Adjust comments in user- and group- portions to
37392 be more accurate, and to be consistent with one another.
37394 2006-11-20 Jim Meyering <jim@meyering.net>
37396 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
37397 continue using the flexible array member (thus, this module performs
37398 half as many malloc calls), with the addition that...
37399 (getgroup, getuser): Consistently record a non-match via an empty
37400 "name" string, and map an empty string match to a NULL return value.
37401 * modules/idcache (Depends-on): Re-add flexmember.
37403 * lib/idcache.c (getuser): Remove all uses of the register keyword.
37404 (getuidbyname, getgroup, getgidbyname): Likewise.
37406 Use cleaner syntax: NULL rather than 0.
37407 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
37409 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
37411 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
37412 It mishandled the case where the group was missing.
37413 Problem reported by Greg Schafer.
37414 * modules/idcache: Likewise.
37416 2006-11-18 Jim Meyering <jim@meyering.net>
37418 * check-module (%exempt_header): Add exception for some
37419 conditionally-included headers.
37421 * modules/i-ring (Depends-on): Add verify.
37422 (License): Change to LGPL.
37424 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
37426 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
37427 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
37428 and inttostr.h. Use snprintf rather than uinttostr, so that
37429 LGPLed code doesn't depend on GPLed.
37431 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
37433 * modules/inline (License): Change from GPL to LGPL.
37435 2006-11-17 Jim Meyering <jim@meyering.net>
37437 * modules/d-type (License): Switch to LGPL.
37439 2006-11-15 Bruno Haible <bruno@clisp.org>
37441 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
37443 2006-11-15 Eric Blake <ebb9@byu.net>
37445 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
37446 the module dependency.
37448 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37449 Bruno Haible <bruno@clisp.org>
37451 * gnulib-tool (func_create_testdir): Add license consistency check.
37453 2006-11-15 Eric Blake <ebb9@byu.net>
37455 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
37456 random "(cached)" in configure output.
37458 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37460 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
37461 test for conforming inttypes.h is both announced and cached.
37463 * MODULES.html.sh (seen_modules, seen_files): New variables.
37464 (func_module): Rewrite to use a few less gnulib-tool and sed
37465 invocations. Avoid a couple of quadratic algorithms for ...
37466 (missed_modules, missed_files): ... these, with ...
37467 (func_append, func_tmpdir): ... these new functions, from
37468 gnulib-tool. Analogously, install traps for cleanup.
37470 * tests/test-gc.c (main): Remove unused variables.
37471 * tests/test-read-file.c: Include stdlib.h, for 'free'.
37473 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
37475 * modules/inttostr (License): Change to LGPL.
37477 2006-11-14 Eric Blake <ebb9@byu.net>
37479 * modules/tempname (License): Change to LGPL.
37481 2006-11-14 Eric Blake <ebb9@byu.net>
37483 * doc/functions.texi (Function Portability): *printf functions on
37484 Cygwin now understand all POSIX size specifiers.
37486 2006-11-14 Bruno Haible <bruno@clisp.org>
37488 * modules/c-ctype (License): Change to LGPL.
37490 2006-11-12 Bruno Haible <bruno@clisp.org>
37492 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37493 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
37494 for GNOME libraries, for which the include files are installed in
37495 subdirectories of $prefix/include.
37497 2006-11-12 Bruno Haible <bruno@clisp.org>
37499 * m4/lib-link.m4: Require at least autoconf-2.54.
37500 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
37501 name to underscores for the --with option.
37503 2006-11-13 Bruno Haible <bruno@clisp.org>
37505 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
37506 the tests directory.
37507 Reported by Ralf Wildenhues.
37509 2006-11-13 Bruno Haible <bruno@clisp.org>
37511 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
37512 (func_emit_initmacro_end): Undo the override here.
37513 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
37514 Works around the famous automake error in coreutils.
37516 2006-11-13 Eric Blake <ebb9@byu.net>
37518 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
37519 element, not its node.
37521 2006-11-12 Bruno Haible <bruno@clisp.org>
37523 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
37524 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
37526 2006-11-12 Bruno Haible <bruno@clisp.org>
37528 * gnulib-tool: New option --local-symlink.
37529 (func_usage): Document it.
37530 (lsymbolic): New variable.
37531 (func_import, func_create_testdir): If --symlink was not specified,
37532 test whether --local-symlink was specified and the file comes from
37533 the local_gnulib_dir.
37535 2006-11-12 Bruno Haible <bruno@clisp.org>
37537 * gnulib-tool (func_ln): New function.
37538 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
37540 2006-11-12 Bruno Haible <bruno@clisp.org>
37542 Finish support for source files in subdirectories.
37543 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
37544 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
37546 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
37548 2006-11-12 Bruno Haible <bruno@clisp.org>
37550 * gnulib-tool (func_get_automake_snippet): Synthesize also an
37551 EXTRA_lib_SOURCES augmentation.
37552 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
37554 2006-11-12 Jim Meyering <jim@meyering.net>
37556 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
37557 file descriptors. This also averts a failure on systems with
37558 native openat support when a traversed directory lacks "x" access.
37559 * lib/fts_.h: Include "i-ring.h"
37560 (struct FTS) [fts_fd_ring]: New member.
37561 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
37562 (FCHDIR): Add parentheses.
37563 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
37564 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
37565 When descending, rather than simply closing the previous
37566 fts_cwd_fd value, push that file descriptor onto the ring.
37567 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
37568 (fts_open): Initialize the new fd_ring member.
37569 (fts_close): Clear the ring.
37570 (fts_safe_changedir): When possible, use our new fd_ring to skip
37571 the diropen and fstat and dev/ino comparison that would normally
37572 accompany a virtual `chdir ("..")'.
37574 * modules/fts (Depends-on): Add i-ring.
37575 * modules/i-ring: New module.
37576 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
37577 * m4/i-ring.m4: New file.
37579 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37581 * gnulib-tool (func_create_testdir): Fix replacement of
37582 `build-aux' in configure.ac. Run autotools in gltests
37584 (func_create_testdir, func_create_megatestdir, test): There is
37585 no need for '--force' in most autotool invocations in a new
37586 tree. Actually fail the whole test if any of the tools, or the
37587 configure or make stages fail.
37589 Sync from Automake.
37590 * build-aux/gnupload: Revert last change. Add pointer to upload
37591 instructions of the GNU Maintenance Instructions.
37592 Suggestion by Karl Berry.
37594 2006-11-10 Jim Meyering <jim@meyering.net>
37596 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
37598 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
37600 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
37601 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
37602 (bind_textdomain_codeset) [! ENABLE_NLS]:
37603 Evaluate all the arguments. That way, callers get compatible behavior
37604 if the arguments have side effects. Also, it avoids some GCC
37605 diagnostics in some cases; Joel E. Denny reported problems when Bison
37606 was configured with --enable-gcc-warnigs.
37608 2006-11-10 Jim Meyering <jim@meyering.net>
37610 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
37611 relevant options in CFLAGS (like -O, -fno-inline) are taken into
37614 2006-11-10 Jim Meyering <jim@meyering.net>
37616 * modules/inline: New file/module.
37617 * modules/xalloc (Files): Remove m4/inline.m4.
37618 (Depends-on): Add inline, instead.
37619 * modules/oset: Likewise.
37620 * modules/list: Likewise.
37622 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
37624 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
37625 Problem reported by Matthew Woehlke.
37627 2006-11-09 Bruno Haible <bruno@clisp.org>
37629 * lib/tempname.c (gen_tempname): Remove variant that invokes
37631 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
37634 2006-11-08 Bruno Haible <bruno@clisp.org>
37636 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
37637 to 'yes' instead of 'cross-compiling'.
37639 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
37641 * lib/quotearg.h (quotearg_free): New decl.
37642 * lib/quotearg.c (quotearg_free): New function.
37643 (slot0, nslots, slotvec0, slotvec):
37644 Now file-scope so that quotearg_free can get at them.
37646 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37648 Sync from Automake.
37649 * build-aux/gnupload: Add missing 'gnu' to example URL.
37650 Report by Karl Berry.
37652 2006-11-08 Bruno Haible <bruno@clisp.org>
37654 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
37655 Suggested by Paul Eggert.
37657 2006-11-08 Jim Meyering <jim@meyering.net>
37659 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
37660 It's already included if !_LIBC.
37661 (fts_safe_changedir): Add a comment.
37663 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
37665 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
37666 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
37669 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
37670 definitions up, to avoid colliding with change below.
37671 (static_inline) [HAVE_INLINE]: New macro.
37672 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37673 Provide extern decls when !HAVE_INLINE. Do not define unless
37674 static_inline is defined, either by us or by xmalloc.c. Use
37675 static_inline rather than static inline.
37676 (XCALLOC): Optimize sizeof(T) = 1 case.
37677 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
37679 2006-11-07 Bruno Haible <bruno@clisp.org>
37681 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
37682 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
37684 * modules/xalloc (Files): Add m4/inline.m4.
37686 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37688 * README: Fix typo.
37689 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
37690 (Miscellanous Notes): ...from this.
37692 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
37694 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
37695 Mention that offsetof should be used instead of sizeof.
37698 2006-11-07 Bruno Haible <bruno@clisp.org>
37700 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
37702 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
37704 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37705 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
37706 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37707 (gl_tree_add_before, gl_tree_add_after):
37708 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
37709 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
37710 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37711 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
37712 (gl_linked_add_after, gl_linked_add_at): Likewise.
37713 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
37714 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37715 (gl_tree_add_before, gl_tree_add_after): Likewise.
37716 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
37717 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
37718 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37720 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37722 * lib/gl_oset.h: Use C comment style, not C++ comment style.
37724 2006-11-06 Bruno Haible <bruno@clisp.org>
37726 * m4/inline.m4: New file.
37727 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
37728 * modules/list (Files): Add m4/inline.m4.
37729 * modules/oset (Files): Likewise.
37731 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
37733 * lib/idcache.c: Include <stddef.h>, for offsetof.
37734 (struct userid.name): Change from char * to a flexible array member.
37736 * modules/idcache (Depends-on): Add flexmember.
37738 * MODULES.html.sh (Core language properties): New module flexmember.
37739 * modules/flexmember, m4/flexmember.m4: New files.
37741 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
37742 inline functions that are identical with the old xnmalloc_inline,
37743 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
37744 that we can avoid some unnecessary integer multiplications and
37745 divisions in the common case where the element size is known at
37747 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
37749 (xnboundedmalloc): Remove.
37750 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
37751 arguments, for consistency with rest of this header.
37752 (xcharalloc): Rewrite using XNMALLOC.
37753 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
37754 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
37755 versions have been moved to lib/xalloc.h and renamed to be the
37756 non-*_inline versions.
37757 (xmalloc, xrealloc): Implement without reference to the xnmalloc
37758 and xnrealloc functions, since those functions are now inline and
37760 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
37761 renaming described above.
37762 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
37763 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
37764 captures the dependency in AC_C_INLINE.
37766 New module canonicalize-lgpl, proposed by Charles Wilson in
37767 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
37768 with a few small changes afterwards.
37769 * MODULES.html.sh (File system functions): New module
37771 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
37772 and canonicalize_file_name.
37773 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
37774 * modules/canonicalize-lgpl: New files.
37776 2006-11-05 Bruno Haible <bruno@clisp.org>
37778 * gnulib-tool (func_import, func_create_testdir): Create directories
37779 also for files in subdirectories of lib/.
37781 2006-11-05 Bruno Haible <bruno@clisp.org>
37783 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
37786 2006-11-03 Bruno Haible <bruno@clisp.org>
37788 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37789 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
37790 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
37791 (xnboundedmalloc): New inline function.
37792 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
37793 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
37795 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
37797 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
37798 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
37799 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
37801 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37802 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
37804 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
37805 gl_tree_add_after): Use XMALLOC instead of xmalloc.
37806 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
37808 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37809 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
37810 gl_tree_add_after): Use XMALLOC instead of xmalloc.
37811 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
37812 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
37813 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
37814 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
37816 2006-11-03 Bruno Haible <bruno@clisp.org>
37818 * lib/c-ctype.h [C++]: Define functions without name mangling.
37819 * lib/fwriteerror.h [C++]: Likewise.
37820 * lib/gcd.h [C++]: Likewise.
37821 * lib/linebreak.h [C++]: Likewise.
37823 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
37825 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
37826 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
37827 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
37828 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
37829 Check for functions and headers just once.
37830 Check for declaration of canonicalize_file_name.
37831 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
37833 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
37835 * gnulib-tool (func_import): Fix typo in actioncmd.
37837 2006-11-02 Bruno Haible <bruno@clisp.org>
37839 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
37840 newline sequence in the Makefile.am snippet as a space, like "make"
37842 Reported by Roger Persson <perrog@gmail.com>.
37844 2006-11-01 Bruno Haible <bruno@clisp.org>
37846 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
37847 already declared in <string.h>.
37848 * lib/strcase.h (strncasecmp): Don't declare it if yes.
37850 2006-11-01 Bruno Haible <bruno@clisp.org>
37852 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
37853 * lib/strcase.h: Include <string.h>.
37854 (strcasecmp): Define to rpl_strcasecmp here.
37856 2006-11-01 Bruno Haible <bruno@clisp.org>
37858 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
37860 2006-11-01 Eric Blake <ebb9@byu.net>
37862 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
37864 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
37866 2006-10-29 Bruno Haible <bruno@clisp.org>
37868 Make it compile in C++ mode.
37869 * lib/full-write.c (full_rw): Add a cast.
37871 2006-11-01 Bruno Haible <bruno@clisp.org>
37873 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
37874 be POSIX compliant.
37875 Reported by Roger Persson <perrog@gmail.com>.
37877 2006-11-01 Eric Blake <ebb9@byu.net>
37879 * lib/getopt_.h: Fix comments.
37881 2006-10-31 Eric Blake <ebb9@byu.net>
37883 * modules/tmpdir (Depends-on): Add sys_stat.
37884 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
37885 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
37886 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
37887 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
37890 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
37892 Avoid some C++ diagnostics reported by Bruno Haible.
37893 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
37895 (quotearg_alloc): Use xcharalloc rather than xmalloc.
37896 (struct slotvec): Move to top level.
37897 (quotearg_n_options): Rewrite to avoid xmalloc.
37898 * lib/xalloc.h (xcharalloc): New function.
37899 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
37900 [defined __cplusplus]: Add function template that provides result
37901 type propagation. This part of the change is from Bruno Haible.
37903 2006-10-29 Bruno Haible <bruno@clisp.org>
37905 Make it compile in C++ mode.
37906 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
37907 * lib/strnlen1.c (strnlen1): Cast memchr result.
37908 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
37909 * lib/clean-temp.c (string_equals, string_hash): Add casts.
37910 (create_temp_dir): Rename local variable 'template'.
37911 (compile_csharp_using_sscli): Add cast.
37912 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
37913 * lib/findprog.c (find_in_path): Likewise.
37914 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
37915 * lib/wait-process.c (register_slave_subprocess): Likewise.
37917 2006-10-22 Bruno Haible <bruno@clisp.org>
37919 * modules/tsearch: New file.
37920 * lib/tsearch.h: New file.
37921 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
37922 * m4/tsearch.m4: New file.
37923 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
37925 2006-10-29 Eric Blake <ebb9@byu.net>
37927 * lib/arcfour.c: Assume config.h.
37928 * lib/arctwo.c: Likewise.
37929 * lib/base64.c: Likewise.
37930 * lib/check-version.c: Likewise.
37931 * lib/crc.c: Likewise.
37932 * lib/des.c: Likewise.
37933 * lib/gc-gnulib.c: Likewise.
37934 * lib/gc-libgcrypt.c: Likewise.
37935 * lib/gc-pbkdf2-sha1.c: Likewise.
37936 * lib/getaddrinfo.c: Likewise.
37937 * lib/getdelim.c: Likewise.
37938 * lib/getline.c: Likewise.
37939 * lib/hmac-md5.c: Likewise.
37940 * lib/hmac-sha1.c: Likewise.
37941 * lib/iconvme.c: Likewise.
37942 * lib/md2.c: Likewise.
37943 * lib/md4.c: Likewise.
37944 * lib/memxor.c: Likewise.
37945 * lib/read-file.c: Likewise.
37946 * lib/readline.c: Likewise.
37947 * lib/rijndael-alg-fst.c: Likewise.
37948 * lib/rijndael-api-fst.c: Likewise.
37949 * lib/xgetdomainname.c: Likewise.
37951 2006-10-28 Eric Blake <ebb9@byu.net>
37953 * lib/xstrndup.c: Assume config.h.
37955 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
37957 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
37958 stat-macros.h is now for our own macros, whereas stat_h is for
37959 macros in the <sys/stat.h> name space.
37960 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
37961 (STAT_MACROS_H): Remove.
37962 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
37963 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
37964 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
37965 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
37966 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
37967 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
37968 Move these macros to ...
37969 * lib/stat_.h: here. Don't include stat-macros.h.
37970 * lib/canonicalize.c: Don't include stat-macros.h.
37971 * lib/chown.c: Likewise.
37972 * lib/euidaccess.c: Likewise.
37973 * lib/file-type.c: Likewise.
37974 * lib/filemode.c: Likewise.
37975 * lib/glob.c: Likewise.
37976 * lib/isapipe.c: Likewise.
37977 * lib/lchown.c: Likewise.
37978 * lib/lstat.c: Likewise.
37979 * lib/mkdir-p.c: Likewise.
37980 * lib/rmdir.c: Likewise.
37981 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
37982 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
37983 unless mkdir isn't declared, to speed up 'configure'.
37984 Always create sys/stat.h, since it's unlikely any real sys/stat.h
37985 would define all the S_* symbols.
37986 * modules/canonicalize (Depends-on):
37987 Depend on sys_stat, not stat-macros.
37988 * modules/chown: Likewise.
37989 * modules/euidaccess: Likewise.
37990 * modules/filemode: Likewise.
37991 * modules/file-type: Likewise.
37992 * modules/glob: Likewise.
37993 * modules/isapipe: Likewise.
37994 * modules/lchown: Likewise.
37995 * modules/lstat: Likewise.
37996 * modules/mkancesdirs: Likewise.
37997 * modules/rmdir: Likewise.
37998 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
37999 * modules/modechange: Likewise.
38000 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
38001 (configure.ac): Remove gl_STAT_MACROS.
38002 * modules/sys_stat (Depends-on): Remove stat-macros.
38004 2006-10-27 Bruno Haible <bruno@clisp.org>
38006 * m4/signed.m4: Remove file.
38007 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
38009 * modules/vasnprintf (Files): Remove m4/signed.m4.
38011 2006-10-27 Bruno Haible <bruno@clisp.org>
38013 Update to GNU gettext 0.16.
38014 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
38015 m4/inttypes-h.m4, m4/signed.m4.
38016 * m4/gettext.m4: Update to GNU gettext 0.16.
38017 * m4/intl.m4: New file, from GNU gettext.
38018 * m4/intldir.m4: New file, from GNU gettext.
38019 * config/srclist.txt: Update
38021 2006-10-27 Eric Blake <ebb9@byu.net>
38023 * MODULES.html.sh: Document tempname.
38024 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
38026 (Files): Move lib/tempname.c...
38027 * modules/tempname: ...to this new module.
38028 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
38029 (gl_PREREQ_TEMPNAME): Move...
38030 * m4/tempname.m4: ...to this new file.
38031 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
38032 * modules/sys_stat (Depends-on): Add stat-macros.
38033 * lib/stat_.h (includes): Pick up stat macros.
38034 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
38035 if stat macros are broken.
38036 * lib/tempname.c (includes): No need to include "stat-macros.h".
38037 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
38038 (direxists, __path_search) [!_LIBC]: Don't compile these in
38039 gnulib; the tmpdir module covers that.
38040 * lib/tempname.h: New file.
38042 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
38044 * COPYING: Explain how gnulib-tool converts licence headers.
38045 Almost all wording by Eric Blake.
38047 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
38049 * lib/mbchar.h (is_basic_table): Make read-only.
38050 * lib/mbchar.c (is_basic_table): Likewise.
38051 Reported by John Darrington.
38053 2006-10-25 Bruno Haible <bruno@clisp.org>
38055 * lib/progname.h (set_program_name): Undefine before defining.
38057 2006-10-25 Bruno Haible <bruno@clisp.org>
38059 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
38060 false for non-gcc C++ compilers.
38061 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38063 2006-10-24 Bruno Haible <bruno@clisp.org>
38065 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
38066 iconv implementations like Irix iconv.
38068 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
38070 * modules/vararrays: New file.
38071 * m4/vararrays.m4: New file, taken from diffutils.
38072 * MODULES.html.sh: New module vararrays.
38074 2006-10-24 Karl Berry <karl@gnu.org>
38076 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
38077 Don't call GNU Unix.
38079 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38081 * users.txt: Add Libtool.
38085 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
38087 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
38088 to gnulib's policy of including config.h unconditionally.
38090 2006-10-24 Bruno Haible <bruno@clisp.org>
38092 * modules/wcwidth (Files): Add m4/wint_t.m4.
38093 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
38094 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
38096 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
38098 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
38099 to pacify GCC with some -W flags enabled. Problem reported by
38102 2006-10-24 Jim Meyering <jim@meyering.net>
38104 * MODULES.html.sh: Remove uinttostr. It's not a module.
38105 Reported by Karl Berry.
38107 2006-10-23 Bruno Haible <bruno@clisp.org>
38109 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
38111 2006-10-24 Bruno Haible <bruno@clisp.org>
38113 * lib/gl_list.h: Use C comment style, not C++ comment style.
38115 2006-10-23 Eric Blake <ebb9@byu.net>
38117 * lib/getaddrinfo.c (includes): Add missing include.
38119 2006-10-23 Bruno Haible <bruno@clisp.org>
38120 Paul Eggert <eggert@cs.ucla.edu>
38122 Ability to rename obstack_free.
38123 * lib/obstack.h (__obstack_free): New macro. Declare instead of
38125 (obstack_free): Invoke the __obstack_free macro.
38126 * lib/obstack.c (obstack_free): Use __obstack_free macro.
38128 2006-10-23 Bruno Haible <bruno@clisp.org>
38129 Paul Eggert <eggert@cs.ucla.edu>
38131 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
38132 __argc, __argv from the declaration. (They are defined as macros on
38135 2006-10-22 Bruno Haible <bruno@clisp.org>
38137 * doc/gnulib-intro.texi: New file.
38138 * doc/gnulib.texi: Include it.
38140 2006-10-21 Bruno Haible <bruno@clisp.org>
38142 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
38143 "Introduction", "Miscellanous Notes", "Particular Modules".
38145 2006-10-21 Bruno Haible <bruno@clisp.org>
38147 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38148 Change mostlyclean-local rule to avoid sh syntax error from bash
38149 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
38151 2006-10-23 Jim Meyering <jim@meyering.net>
38153 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
38154 in place of snprintf.
38156 * modules/inttostr (Files): Add lib/uinttostr.c.
38157 * lib/uinttostr.c (inttostr): New file/function.
38158 * lib/inttostr.h (uinttostr): Declare.
38159 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
38160 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
38162 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
38164 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
38166 * lib/canonicalize.c (ELOOP): Define if not already defined.
38167 Problem reported by Bruno Haible in
38168 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
38170 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
38172 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
38173 Problem reported by Perry Smith and Ville Laurikari.
38175 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
38178 2006-10-19 Bruno Haible <bruno@clisp.org>
38180 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
38183 2006-10-19 Bruno Haible <bruno@clisp.org>
38185 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
38188 2006-10-19 Bruno Haible <bruno@clisp.org>
38190 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
38192 2006-10-19 Bruno Haible <bruno@clisp.org>
38194 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
38197 2006-10-19 Bruno Haible <bruno@clisp.org>
38199 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
38202 2006-10-19 Bruno Haible <bruno@clisp.org>
38204 * gnulib-tool (func_create_testdir): Don't include ftruncate and
38205 mountlist by default.
38207 2006-10-16 Bruno Haible <bruno@clisp.org>
38209 * lib/c-strstr.c: Include c-strstr.h.
38211 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
38213 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
38216 2006-10-18 Bruno Haible <bruno@clisp.org>
38218 * lib/lock.h [C++]: Wrap definitions in extern "C".
38220 2006-10-18 Bruno Haible <bruno@clisp.org>
38222 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
38225 2006-10-18 Bruno Haible <bruno@clisp.org>
38227 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
38229 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
38231 * lib/xstrtol.h: Include gettext.h.
38232 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
38233 Problem reported by Eric Blake.
38234 * modules/xstrtol (Depends-on): Add gettext-h.
38236 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
38238 * lib/strftime.c (advance): New macro.
38239 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
38240 incomplete type, so you can't add 0 to it. Problem and patch
38241 reported by Eelco Dolstra for dietlibc.
38243 2006-10-18 Jim Meyering <jim@meyering.net>
38245 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
38246 type for a local, and rename it: s/up/user_proc/.
38248 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
38250 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
38251 READ_UTMP_USER_PROCESS.
38252 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
38254 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
38256 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
38257 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
38259 2006-10-17 Eric Blake <ebb9@byu.net>
38261 * lib/sigprocmask.c (sigprocmask): Fix typo.
38263 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
38265 * modules/clean-temp (Makefile.am): Don't add to make output...
38266 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
38269 2006-10-17 Bruno Haible <bruno@clisp.org>
38271 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
38272 differently if DEFAULT_TEXT_DOMAIN is set.
38274 2006-10-16 Bruno Haible <bruno@clisp.org>
38276 * lib/clean-temp.c: Include fwriteerror.h.
38278 2006-10-16 Bruno Haible <bruno@clisp.org>
38280 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
38282 2006-10-16 Bruno Haible <bruno@clisp.org>
38284 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
38285 * lib/sigprocmask.h: Include <sys/types.h>.
38286 (sigset_t): Use the system's definition if present.
38288 2006-10-17 Eric Blake <ebb9@byu.net>
38290 * lib/xvasprintf.c (includes): Assume config.h.
38291 * lib/xasprintf.c (includes): Likewise.
38293 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
38295 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
38296 at least as wide as intmax_t.
38298 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
38300 (Imported from Automake.)
38301 * build-aux/gnupload: Update to version 1.1 of directive file.
38303 2006-10-16 Eric Blake <ebb9@byu.net>
38305 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
38306 match Automake 1.10a.
38308 2006-10-14 Bruno Haible <bruno@clisp.org>
38310 * modules/sigprocmask: New file.
38311 * lib/sigprocmask.h: New file.
38312 * lib/sigprocmask.c: New file.
38313 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
38314 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
38315 request sigprocmask.o.
38316 (gl_PREREQ_SIGPROCMASK): New macro.
38317 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
38318 (Depends-on): Add sigprocmask.
38319 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
38320 gt_SIGNALBLOCKING. Test for 'raise' only once.
38321 * lib/fatal-signal.c: Include sigprocmask.h.
38322 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
38323 unblock_fatal_signals): Define always.
38324 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38327 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
38329 Sync from Automake.
38330 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
38331 which incorrectly sets the mode of an existing destination
38332 directory. In some cases the unpatched install-sh could do the
38333 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
38334 system. We hope this is rare in practice, but it's clearly worth
38335 fixing. Problem reported by Alex Unleashed in
38336 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
38337 Also, don't bother to check for -m bugs unless we're using -m;
38338 suggested by Stepan Kasal.
38340 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38342 Sync from Automake.
38343 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
38344 `-c' flag, so they appear at the same position as in %FASTDEP%
38345 mode in depend2.am. Fixes build failure for FreeBSD's c89,
38346 which ignores unknown options only after the first non-option.
38347 Bug report against M4 by Nelson H. F. Beebe.
38349 2006-10-13 Jim Meyering <jim@meyering.net>
38351 Fix a bug in yesterday's change.
38352 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
38353 p->fts_statp->st_dev would be used uninitialized.
38354 Ensures that we always call fts_stat on the very first entry.
38355 Miklos Szeredi reported that find -xdev stopped working.
38357 2006-10-12 Bruno Haible <bruno@clisp.org>
38359 * gnulib-tool (func_get_automake_snippet): Append an automatically
38360 computed EXTRA_DIST augmentation.
38361 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
38362 * modules/alloca-opt (Makefile.am): Likewise.
38363 * modules/allocsa (Makefile.am): Likewise.
38364 * modules/arcfour (Makefile.am): Likewise.
38365 * modules/arctwo (Makefile.am): Likewise.
38366 * modules/argmatch (Makefile.am): Likewise.
38367 * modules/argz (Makefile.am): Likewise.
38368 * modules/atexit (Makefile.am): Likewise.
38369 * modules/backupfile (Makefile.am): Likewise.
38370 * modules/byteswap (Makefile.am): Likewise.
38371 * modules/c-strtod (Makefile.am): Likewise.
38372 * modules/c-strtold (Makefile.am): Likewise.
38373 * modules/calloc (Makefile.am): Likewise.
38374 * modules/canon-host (Makefile.am): Likewise.
38375 * modules/canonicalize (Makefile.am): Likewise.
38376 * modules/chdir-long (Makefile.am): Likewise.
38377 * modules/chdir-safer (Makefile.am): Likewise.
38378 * modules/check-version (Makefile.am): Likewise.
38379 * modules/chown (Makefile.am): Likewise.
38380 * modules/cloexec (Makefile.am): Likewise.
38381 * modules/close-stream (Makefile.am): Likewise.
38382 * modules/closeout (Makefile.am): Likewise.
38383 * modules/crc (Makefile.am): Likewise.
38384 * modules/csharpexec (Makefile.am): Likewise.
38385 * modules/cycle-check (Makefile.am): Likewise.
38386 * modules/des (Makefile.am): Likewise.
38387 * modules/dev-ino (Makefile.am): Likewise.
38388 * modules/dirfd (Makefile.am): Likewise.
38389 * modules/dirname (Makefile.am): Likewise.
38390 * modules/dup2 (Makefile.am): Likewise.
38391 * modules/eealloc (Makefile.am): Likewise.
38392 * modules/error (Makefile.am): Likewise.
38393 * modules/euidaccess (Makefile.am): Likewise.
38394 * modules/exclude (Makefile.am): Likewise.
38395 * modules/exitfail (Makefile.am): Likewise.
38396 * modules/fcntl-safer (Makefile.am): Likewise.
38397 * modules/fcntl (Makefile.am): Likewise.
38398 * modules/file-type (Makefile.am): Likewise.
38399 * modules/fileblocks (Makefile.am): Likewise.
38400 * modules/filemode (Makefile.am): Likewise.
38401 * modules/filenamecat (Makefile.am): Likewise.
38402 * modules/fnmatch (Makefile.am): Likewise.
38403 * modules/fopen-safer (Makefile.am): Likewise.
38404 * modules/fpending (Makefile.am): Likewise.
38405 * modules/fprintftime (Makefile.am): Likewise.
38406 * modules/free (Makefile.am): Likewise.
38407 * modules/fsusage (Makefile.am): Likewise.
38408 * modules/ftruncate (Makefile.am): Likewise.
38409 * modules/fts (Makefile.am): Likewise.
38410 * modules/gc-arcfour (Makefile.am): Likewise.
38411 * modules/gc-des (Makefile.am): Likewise.
38412 * modules/gc-hmac-md5 (Makefile.am): Likewise.
38413 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
38414 * modules/gc-md4 (Makefile.am): Likewise.
38415 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38416 * modules/gc-sha1 (Makefile.am): Likewise.
38417 * modules/gc (Makefile.am): Likewise.
38418 * modules/getaddrinfo (Makefile.am): Likewise.
38419 * modules/getcwd (Makefile.am): Likewise.
38420 * modules/getdelim (Makefile.am): Likewise.
38421 * modules/getdomainname (Makefile.am): Likewise.
38422 * modules/getgroups (Makefile.am): Likewise.
38423 * modules/gethostname (Makefile.am): Likewise.
38424 * modules/gethrxtime (Makefile.am): Likewise.
38425 * modules/getline (Makefile.am): Likewise.
38426 * modules/getloadavg (Makefile.am): Likewise.
38427 * modules/getlogin_r (Makefile.am): Likewise.
38428 * modules/getndelim2 (Makefile.am): Likewise.
38429 * modules/getopt (Makefile.am): Likewise.
38430 * modules/getpagesize (Makefile.am): Likewise.
38431 * modules/getpass-gnu (Makefile.am): Likewise.
38432 * modules/getpass (Makefile.am): Likewise.
38433 * modules/getsubopt (Makefile.am): Likewise.
38434 * modules/gettime (Makefile.am): Likewise.
38435 * modules/gettimeofday (Makefile.am): Likewise.
38436 * modules/getugroups (Makefile.am): Likewise.
38437 * modules/getusershell (Makefile.am): Likewise.
38438 * modules/glob (Makefile.am): Likewise.
38439 * modules/group-member (Makefile.am): Likewise.
38440 * modules/hard-locale (Makefile.am): Likewise.
38441 * modules/hash (Makefile.am): Likewise.
38442 * modules/hmac-md5 (Makefile.am): Likewise.
38443 * modules/hmac-sha1 (Makefile.am): Likewise.
38444 * modules/human (Makefile.am): Likewise.
38445 * modules/idcache (Makefile.am): Likewise.
38446 * modules/imaxabs (Makefile.am): Likewise.
38447 * modules/imaxdiv (Makefile.am): Likewise.
38448 * modules/inet_ntop (Makefile.am): Likewise.
38449 * modules/inet_pton (Makefile.am): Likewise.
38450 * modules/intprops (Makefile.am): Likewise.
38451 * modules/inttostr (Makefile.am): Likewise.
38452 * modules/inttypes (Makefile.am): Likewise.
38453 * modules/isapipe (Makefile.am): Likewise.
38454 * modules/javaversion (Makefile.am): Likewise.
38455 * modules/lchmod (Makefile.am): Likewise.
38456 * modules/lchown (Makefile.am): Likewise.
38457 * modules/localcharset (Makefile.am): Likewise.
38458 * modules/long-options (Makefile.am): Likewise.
38459 * modules/lstat (Makefile.am): Likewise.
38460 * modules/malloc (Makefile.am): Likewise.
38461 * modules/mathl (Makefile.am): Likewise.
38462 * modules/mbchar (Makefile.am): Likewise.
38463 * modules/md2 (Makefile.am): Likewise.
38464 * modules/md4 (Makefile.am): Likewise.
38465 * modules/md5 (Makefile.am): Likewise.
38466 * modules/memcasecmp (Makefile.am): Likewise.
38467 * modules/memchr (Makefile.am): Likewise.
38468 * modules/memcmp (Makefile.am): Likewise.
38469 * modules/memcoll (Makefile.am): Likewise.
38470 * modules/memcpy (Makefile.am): Likewise.
38471 * modules/memmem (Makefile.am): Likewise.
38472 * modules/memmove (Makefile.am): Likewise.
38473 * modules/mempcpy (Makefile.am): Likewise.
38474 * modules/memrchr (Makefile.am): Likewise.
38475 * modules/memset (Makefile.am): Likewise.
38476 * modules/memxor (Makefile.am): Likewise.
38477 * modules/mkancesdirs (Makefile.am): Likewise.
38478 * modules/mkdir-p (Makefile.am): Likewise.
38479 * modules/mkdir (Makefile.am): Likewise.
38480 * modules/mkdtemp (Makefile.am): Likewise.
38481 * modules/mkstemp (Makefile.am): Likewise.
38482 * modules/mktime (Makefile.am): Likewise.
38483 * modules/modechange (Makefile.am): Likewise.
38484 * modules/mountlist (Makefile.am): Likewise.
38485 * modules/nanosleep (Makefile.am): Likewise.
38486 * modules/obstack (Makefile.am): Likewise.
38487 * modules/openat (Makefile.am): Likewise.
38488 * modules/pagealign_alloc (Makefile.am): Likewise.
38489 * modules/pathmax (Makefile.am): Likewise.
38490 * modules/physmem (Makefile.am): Likewise.
38491 * modules/poll (Makefile.am): Likewise.
38492 * modules/posixtm (Makefile.am): Likewise.
38493 * modules/posixver (Makefile.am): Likewise.
38494 * modules/putenv (Makefile.am): Likewise.
38495 * modules/quote (Makefile.am): Likewise.
38496 * modules/quotearg (Makefile.am): Likewise.
38497 * modules/raise (Makefile.am): Likewise.
38498 * modules/read-file (Makefile.am): Likewise.
38499 * modules/readline (Makefile.am): Likewise.
38500 * modules/readlink (Makefile.am): Likewise.
38501 * modules/readtokens (Makefile.am): Likewise.
38502 * modules/readutmp (Makefile.am): Likewise.
38503 * modules/realloc (Makefile.am): Likewise.
38504 * modules/regex (Makefile.am): Likewise.
38505 * modules/rename-dest-slash (Makefile.am): Likewise.
38506 * modules/rename (Makefile.am): Likewise.
38507 * modules/rijndael (Makefile.am): Likewise.
38508 * modules/rmdir (Makefile.am): Likewise.
38509 * modules/rpmatch (Makefile.am): Likewise.
38510 * modules/safe-read (Makefile.am): Likewise.
38511 * modules/safe-write (Makefile.am): Likewise.
38512 * modules/same-inode (Makefile.am): Likewise.
38513 * modules/same (Makefile.am): Likewise.
38514 * modules/save-cwd (Makefile.am): Likewise.
38515 * modules/savedir (Makefile.am): Likewise.
38516 * modules/setenv (Makefile.am): Likewise.
38517 * modules/settime (Makefile.am): Likewise.
38518 * modules/sha1 (Makefile.am): Likewise.
38519 * modules/sig2str (Makefile.am): Likewise.
38520 * modules/snprintf (Makefile.am): Likewise.
38521 * modules/stat-macros (Makefile.am): Likewise.
38522 * modules/stat-time (Makefile.am): Likewise.
38523 * modules/stdbool (Makefile.am): Likewise.
38524 * modules/stdint (Makefile.am): Likewise.
38525 * modules/stdlib-safer (Makefile.am): Likewise.
38526 * modules/stpcpy (Makefile.am): Likewise.
38527 * modules/stpncpy (Makefile.am): Likewise.
38528 * modules/strcase (Makefile.am): Likewise.
38529 * modules/strcasestr (Makefile.am): Likewise.
38530 * modules/strchrnul (Makefile.am): Likewise.
38531 * modules/strcspn (Makefile.am): Likewise.
38532 * modules/strdup (Makefile.am): Likewise.
38533 * modules/strerror (Makefile.am): Likewise.
38534 * modules/strftime (Makefile.am): Likewise.
38535 * modules/strndup (Makefile.am): Likewise.
38536 * modules/strnlen (Makefile.am): Likewise.
38537 * modules/strpbrk (Makefile.am): Likewise.
38538 * modules/strsep (Makefile.am): Likewise.
38539 * modules/strstr (Makefile.am): Likewise.
38540 * modules/strtod (Makefile.am): Likewise.
38541 * modules/strtoimax (Makefile.am): Likewise.
38542 * modules/strtok_r (Makefile.am): Likewise.
38543 * modules/strtol (Makefile.am): Likewise.
38544 * modules/strtoll (Makefile.am): Likewise.
38545 * modules/strtoul (Makefile.am): Likewise.
38546 * modules/strtoull (Makefile.am): Likewise.
38547 * modules/strtoumax (Makefile.am): Likewise.
38548 * modules/strverscmp (Makefile.am): Likewise.
38549 * modules/sys_socket (Makefile.am): Likewise.
38550 * modules/sys_stat (Makefile.am): Likewise.
38551 * modules/sysexits (Makefile.am): Likewise.
38552 * modules/time_r (Makefile.am): Likewise.
38553 * modules/timegm (Makefile.am): Likewise.
38554 * modules/timespec (Makefile.am): Likewise.
38555 * modules/tmpfile-safer (Makefile.am): Likewise.
38556 * modules/trim (Makefile.am): Likewise.
38557 * modules/unistd-safer (Makefile.am): Likewise.
38558 * modules/unlinkdir (Makefile.am): Likewise.
38559 * modules/unlocked-io (Makefile.am): Likewise.
38560 * modules/userspec (Makefile.am): Likewise.
38561 * modules/utime (Makefile.am): Likewise.
38562 * modules/utimecmp (Makefile.am): Likewise.
38563 * modules/utimens (Makefile.am): Likewise.
38564 * modules/vasnprintf (Makefile.am): Likewise.
38565 * modules/vasprintf (Makefile.am): Likewise.
38566 * modules/vsnprintf (Makefile.am): Likewise.
38567 * modules/xalloc (Makefile.am): Likewise.
38568 * modules/xgetcwd (Makefile.am): Likewise.
38569 * modules/xnanosleep (Makefile.am): Likewise.
38570 * modules/xreadlink (Makefile.am): Likewise.
38571 * modules/xstrtod (Makefile.am): Likewise.
38572 * modules/xstrtol (Makefile.am): Likewise.
38573 * modules/xstrtold (Makefile.am): Likewise.
38574 * modules/yesno (Makefile.am): Likewise.
38575 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
38577 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
38579 * modules/error (Makefile.am): Distribute files through
38580 EXTRA_DIST, not lib_SOURCES.
38582 2006-10-12 Eric Blake <ebb9@byu.net>
38584 * modules/error (Makefile.am): Distribute files in /lib.
38585 * modules/obstack (Makefile.am): Likewise.
38587 2006-10-12 Bruno Haible <bruno@clisp.org>
38589 * modules/acl (Makefile.am): Distribute all files in lib/ through
38591 * modules/arcfour (Makefile.am): Likewise.
38592 * modules/arctwo (Makefile.am): Likewise.
38593 * modules/argmatch (Makefile.am): Likewise.
38594 * modules/argz (Makefile.am): Likewise.
38595 * modules/atexit (Makefile.am): Likewise.
38596 * modules/backupfile (Makefile.am): Likewise.
38597 * modules/c-strtod (Makefile.am): Likewise.
38598 * modules/c-strtold (Makefile.am): Likewise.
38599 * modules/calloc (Makefile.am): Likewise.
38600 * modules/canon-host (Makefile.am): Likewise.
38601 * modules/canonicalize (Makefile.am): Likewise.
38602 * modules/chdir-long (Makefile.am): Likewise.
38603 * modules/chdir-safer (Makefile.am): Likewise.
38604 * modules/check-version (Makefile.am): Likewise.
38605 * modules/chown (Makefile.am): Likewise.
38606 * modules/cloexec (Makefile.am): Likewise.
38607 * modules/close-stream (Makefile.am): Likewise.
38608 * modules/closeout (Makefile.am): Likewise.
38609 * modules/crc (Makefile.am): Likewise.
38610 * modules/cycle-check (Makefile.am): Likewise.
38611 * modules/des (Makefile.am): Likewise.
38612 * modules/dirfd (Makefile.am): Likewise.
38613 * modules/dirname (Makefile.am): Likewise.
38614 * modules/dup2 (Makefile.am): Likewise.
38615 * modules/euidaccess (Makefile.am): Likewise.
38616 * modules/exclude (Makefile.am): Likewise.
38617 * modules/exitfail (Makefile.am): Likewise.
38618 * modules/fcntl-safer (Makefile.am): Likewise.
38619 * modules/file-type (Makefile.am): Likewise.
38620 * modules/fileblocks (Makefile.am): Likewise.
38621 * modules/filemode (Makefile.am): Likewise.
38622 * modules/filenamecat (Makefile.am): Likewise.
38623 * modules/fnmatch (Makefile.am): Likewise.
38624 * modules/fopen-safer (Makefile.am): Likewise.
38625 * modules/fpending (Makefile.am): Likewise.
38626 * modules/fprintftime (Makefile.am): Likewise.
38627 * modules/free (Makefile.am): Likewise.
38628 * modules/fsusage (Makefile.am): Likewise.
38629 * modules/ftruncate (Makefile.am): Likewise.
38630 * modules/fts (Makefile.am): Likewise.
38631 * modules/gc (Makefile.am): Likewise.
38632 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38633 * modules/getaddrinfo (Makefile.am): Likewise.
38634 * modules/getcwd (Makefile.am): Likewise.
38635 * modules/getdelim (Makefile.am): Likewise.
38636 * modules/getdomainname (Makefile.am): Likewise.
38637 * modules/getgroups (Makefile.am): Likewise.
38638 * modules/gethostname (Makefile.am): Likewise.
38639 * modules/gethrxtime (Makefile.am): Likewise.
38640 * modules/getline (Makefile.am): Likewise.
38641 * modules/getloadavg (Makefile.am): Likewise.
38642 * modules/getlogin_r (Makefile.am): Likewise.
38643 * modules/getopt (Makefile.am): Likewise.
38644 * modules/getpass (Makefile.am): Likewise.
38645 * modules/getpass-gnu (Makefile.am): Likewise.
38646 * modules/getsubopt (Makefile.am): Likewise.
38647 * modules/gettime (Makefile.am): Likewise.
38648 * modules/gettimeofday (Makefile.am): Likewise.
38649 * modules/getugroups (Makefile.am): Likewise.
38650 * modules/getusershell (Makefile.am): Likewise.
38651 * modules/glob (Makefile.am): Likewise.
38652 * modules/group-member (Makefile.am): Likewise.
38653 * modules/hard-locale (Makefile.am): Likewise.
38654 * modules/hash (Makefile.am): Likewise.
38655 * modules/hmac-md5 (Makefile.am): Likewise.
38656 * modules/hmac-sha1 (Makefile.am): Likewise.
38657 * modules/human (Makefile.am): Likewise.
38658 * modules/idcache (Makefile.am): Likewise.
38659 * modules/imaxabs (Makefile.am): Likewise.
38660 * modules/imaxdiv (Makefile.am): Likewise.
38661 * modules/inet_ntop (Makefile.am): Likewise.
38662 * modules/inet_pton (Makefile.am): Likewise.
38663 * modules/inttostr (Makefile.am): Likewise.
38664 * modules/isapipe (Makefile.am): Likewise.
38665 * modules/lchown (Makefile.am): Likewise.
38666 * modules/long-options (Makefile.am): Likewise.
38667 * modules/lstat (Makefile.am): Likewise.
38668 * modules/malloc (Makefile.am): Likewise.
38669 * modules/mathl (Makefile.am): Likewise.
38670 * modules/mbchar (Makefile.am): Likewise.
38671 * modules/md2 (Makefile.am): Likewise.
38672 * modules/md4 (Makefile.am): Likewise.
38673 * modules/md5 (Makefile.am): Likewise.
38674 * modules/memcasecmp (Makefile.am): Likewise.
38675 * modules/memchr (Makefile.am): Likewise.
38676 * modules/memcmp (Makefile.am): Likewise.
38677 * modules/memcoll (Makefile.am): Likewise.
38678 * modules/memcpy (Makefile.am): Likewise.
38679 * modules/memmem (Makefile.am): Likewise.
38680 * modules/memmove (Makefile.am): Likewise.
38681 * modules/mempcpy (Makefile.am): Likewise.
38682 * modules/memrchr (Makefile.am): Likewise.
38683 * modules/memset (Makefile.am): Likewise.
38684 * modules/memxor (Makefile.am): Likewise.
38685 * modules/mkancesdirs (Makefile.am): Likewise.
38686 * modules/mkdir (Makefile.am): Likewise.
38687 * modules/mkdir-p (Makefile.am): Likewise.
38688 * modules/mkdtemp (Makefile.am): Likewise.
38689 * modules/mkstemp (Makefile.am): Likewise.
38690 * modules/mktime (Makefile.am): Likewise.
38691 * modules/modechange (Makefile.am): Likewise.
38692 * modules/mountlist (Makefile.am): Likewise.
38693 * modules/nanosleep (Makefile.am): Likewise.
38694 * modules/openat (Makefile.am): Likewise.
38695 * modules/pagealign_alloc (Makefile.am): Likewise.
38696 * modules/physmem (Makefile.am): Likewise.
38697 * modules/poll (Makefile.am): Likewise.
38698 * modules/posixtm (Makefile.am): Likewise.
38699 * modules/posixver (Makefile.am): Likewise.
38700 * modules/putenv (Makefile.am): Likewise.
38701 * modules/quote (Makefile.am): Likewise.
38702 * modules/quotearg (Makefile.am): Likewise.
38703 * modules/raise (Makefile.am): Likewise.
38704 * modules/read-file (Makefile.am): Likewise.
38705 * modules/readline (Makefile.am): Likewise.
38706 * modules/readlink (Makefile.am): Likewise.
38707 * modules/readtokens (Makefile.am): Likewise.
38708 * modules/readutmp (Makefile.am): Likewise.
38709 * modules/realloc (Makefile.am): Likewise.
38710 * modules/regex (Makefile.am): Likewise.
38711 * modules/rename (Makefile.am): Likewise.
38712 * modules/rename-dest-slash (Makefile.am): Likewise.
38713 * modules/rijndael (Makefile.am): Likewise.
38714 * modules/rmdir (Makefile.am): Likewise.
38715 * modules/rpmatch (Makefile.am): Likewise.
38716 * modules/safe-read (Makefile.am): Likewise.
38717 * modules/safe-write (Makefile.am): Likewise.
38718 * modules/same (Makefile.am): Likewise.
38719 * modules/save-cwd (Makefile.am): Likewise.
38720 * modules/savedir (Makefile.am): Likewise.
38721 * modules/setenv (Makefile.am): Likewise.
38722 * modules/settime (Makefile.am): Likewise.
38723 * modules/sha1 (Makefile.am): Likewise.
38724 * modules/sig2str (Makefile.am): Likewise.
38725 * modules/snprintf (Makefile.am): Likewise.
38726 * modules/stdlib-safer (Makefile.am): Likewise.
38727 * modules/stpcpy (Makefile.am): Likewise.
38728 * modules/stpncpy (Makefile.am): Likewise.
38729 * modules/strcase (Makefile.am): Likewise.
38730 * modules/strcasestr (Makefile.am): Likewise.
38731 * modules/strchrnul (Makefile.am): Likewise.
38732 * modules/strcspn (Makefile.am): Likewise.
38733 * modules/strdup (Makefile.am): Likewise.
38734 * modules/strerror (Makefile.am): Likewise.
38735 * modules/strftime (Makefile.am): Likewise.
38736 * modules/strndup (Makefile.am): Likewise.
38737 * modules/strnlen (Makefile.am): Likewise.
38738 * modules/strpbrk (Makefile.am): Likewise.
38739 * modules/strsep (Makefile.am): Likewise.
38740 * modules/strstr (Makefile.am): Likewise.
38741 * modules/strtod (Makefile.am): Likewise.
38742 * modules/strtoimax (Makefile.am): Likewise.
38743 * modules/strtok_r (Makefile.am): Likewise.
38744 * modules/strtol (Makefile.am): Likewise.
38745 * modules/strtoll (Makefile.am): Likewise.
38746 * modules/strtoul (Makefile.am): Likewise.
38747 * modules/strtoull (Makefile.am): Likewise.
38748 * modules/strtoumax (Makefile.am): Likewise.
38749 * modules/strverscmp (Makefile.am): Likewise.
38750 * modules/time_r (Makefile.am): Likewise.
38751 * modules/timegm (Makefile.am): Likewise.
38752 * modules/tmpfile-safer (Makefile.am): Likewise.
38753 * modules/unistd-safer (Makefile.am): Likewise.
38754 * modules/unlinkdir (Makefile.am): Likewise.
38755 * modules/userspec (Makefile.am): Likewise.
38756 * modules/utime (Makefile.am): Likewise.
38757 * modules/utimecmp (Makefile.am): Likewise.
38758 * modules/utimens (Makefile.am): Likewise.
38759 * modules/vasnprintf (Makefile.am): Likewise.
38760 * modules/vasprintf (Makefile.am): Likewise.
38761 * modules/vsnprintf (Makefile.am): Likewise.
38762 * modules/xalloc (Makefile.am): Likewise.
38763 * modules/xgetcwd (Makefile.am): Likewise.
38764 * modules/xnanosleep (Makefile.am): Likewise.
38765 * modules/xreadlink (Makefile.am): Likewise.
38766 * modules/xstrtod (Makefile.am): Likewise.
38767 * modules/xstrtol (Makefile.am): Likewise.
38768 * modules/xstrtold (Makefile.am): Likewise.
38769 * modules/yesno (Makefile.am): Likewise.
38771 2006-10-12 Jim Meyering <jim@meyering.net>
38773 * m4/getloadavg.m4: Revert the change below.
38775 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
38776 lib/getloadavg.c using "ls -L", not "test -f". The latter would
38777 fail with a symlink, which is what coreutils' ./bootstrap now
38778 creates by default.
38780 2006-10-12 Bruno Haible <bruno@clisp.org>
38782 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
38784 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
38785 MSVC and mingw explicitly.
38787 2006-10-11 Simon Josefsson <jas@extundo.com>
38788 Bruno Haible <bruno@clisp.org>
38790 Add support for multiple gnulib-tool invocations in the scope of a
38791 single configure.ac file.
38792 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
38793 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
38794 with the same contents as the _LIBADD variable.
38795 (func_emit_initmacro_start, func_emit_initmacro_end,
38796 func_emit_initmacro_done): New functions.
38797 (func_import, func_create_testdir): Invoke them. Allow the identifiers
38798 gl_LIBOBJS and gl_LTLIBOBJS.
38800 2006-10-11 Bruno Haible <bruno@clisp.org>
38802 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
38803 (func_create_testdir): Don't create po/Makefile.am, don't invoke
38804 autoreconf. Instead, invoke autopoint explicitly but move back the
38805 *.m4 files from gnulib.
38807 2006-10-11 Bruno Haible <bruno@clisp.org>
38809 * gnulib-tool (func_usage): Make module names after --create-testdir
38811 (func_create_testdir): If no module was specified, use nearly all
38814 2006-10-12 Jim Meyering <jim@meyering.net>
38816 Big performance improvement for fts-based tools that use FTS_NOSTAT.
38817 Avoid spurious inode-mismatch problems on non-POSIX file systems.
38818 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
38819 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
38820 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
38821 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
38822 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
38823 (fts_set_stat_required): New function.
38824 (fts_open): Defer the calls to fts_stat, if possible or requested.
38825 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
38826 into fts_stat itself.
38827 (fts_read): Perform any required (deferred) fts_stat call.
38828 (fts_build): Likewise, for the directory we're about to open and read.
38829 In the readdir loop, carefully decide whether each entry will require
38830 an eventual call to fts_stat, using dirent.d_type info if available.
38831 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
38832 a command line argument into this function. Update all callers.
38833 Map a return value of FTS_DOT to FTS_D for a command line argument.
38834 * modules/fts (Depends-on): Add d-type. Alphabetize.
38835 Thanks to Miklos Szeredi for his tenacity and for the initial
38836 bug report about "find" failing on a FUSE-based file system.
38838 * lib/fts.c (fts_open): Use consistent indentation.
38840 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
38842 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
38843 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
38844 reported by Jim Meyering. All uses of cache variables renamed
38845 to match Autoconf's.
38846 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
38849 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38850 Fix misspelling in diagnostic.
38852 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
38854 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
38855 defined. Problem reported by Matthew Woehlke.
38857 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
38858 Add support for Tandem NonStop R series.
38859 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
38862 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
38863 (has_trailing_slash): Omit size arg; all callers changed.
38864 Omit 'inline', since it doesn't help performance and we'd
38865 need to configure it.
38866 Don't count //, ///, etc. as having a trailing slash.
38867 As a side effect, this removes a C99ism reported by Matthew Woehlke.
38868 (rpl_rename_dest_slash): On failure, use rename's errno rather
38869 than (in some cases) an incorrect or junk errno.
38870 Simplify code by removing need to compute length; this does
38871 cause it to make two passes instead of one over the file name,
38874 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
38875 change, since Autoconf's version may no longer be appropriate now
38876 that we are using CVS Autoconf's version. Add support for Tandem.
38878 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
38879 Bruno Haible <bruno@clisp.org>
38881 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
38882 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
38883 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
38884 gl_AC_TYPE_LONG_LONG.
38886 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
38887 instead of HAVE_LONG_LONG.
38888 * lib/printf-args.c (printf_fetchargs): Likewise.
38889 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
38890 * lib/vasnprintf.c (VASNPRINTF): Likewise.
38891 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
38892 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
38893 gl_AC_TYPE_LONG_LONG.
38895 2006-10-11 Bruno Haible <bruno@clisp.org>
38897 * m4/longlong.m4: Add comments.
38898 * m4/ulonglong.m4: Likewise.
38900 2006-10-10 Bruno Haible <bruno@clisp.org>
38902 Make it possible to #define stpcpy, strdup to aliases.
38903 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
38904 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
38906 2006-10-10 Bruno Haible <bruno@clisp.org>
38908 Make it possible to #define gcd to an alias.
38909 * lib/gcd.c: Include config.h.
38911 2006-10-10 Bruno Haible <bruno@clisp.org>
38913 Make it possible to #define c_isascii to an alias.
38914 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
38915 defined. Undefine the macros before defining them, to avoid gcc
38917 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
38918 define NO_C_CTYPE_MACROS early.
38920 2006-10-10 Bruno Haible <bruno@clisp.org>
38922 Make it possible to #define set_program_name to an alias.
38923 * lib/progname.c: Don't undefine set_program_name; instead, undefine
38924 ENABLE_RELOCATABLE early.
38926 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
38928 Port to Tandem NSK OSS, which has 64-bit signed int but at most
38929 32-bit unsigned int. Problem reported by Matthew Woehlke in:
38930 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
38931 More generally, don't assume that 64-bit signed int is available
38932 if unsigned int is, and vice versa.
38933 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
38934 unsigned symbols, not on their signed counterparts.
38935 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
38936 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
38937 (UINT64_C, UINTMAX_C):
38939 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
38940 unsigned counterparts.
38941 (Have_long_long, Unsigned): New macros.
38942 (Int): Renamed from INT.
38943 (strtoimax): Use the new macros.
38944 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
38945 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
38946 * modules/inttypes (inttypes.h): Substitute
38947 HAVE_UNSIGNED_LONG_LONG_INT.
38948 * modules/stdint (stdint.h): Likewise.
38949 (Files): Add m4/ulonglong.m4.
38951 2006-10-10 Bruno Haible <bruno@clisp.org>
38953 Fix a gcc -Wshadow warning.
38954 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
38956 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
38957 gl_linked_indexof_from_to): Likewise.
38958 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
38960 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
38962 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
38963 Reported by Eric Blake.
38965 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
38967 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
38968 for NetBSD. Problem reported by Bruno Haible.
38970 2006-10-09 Jim Meyering <jim@meyering.net>
38972 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
38973 Patch from Bruno Haible.
38975 2006-10-09 Jim Meyering <jim@meyering.net>
38977 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
38978 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
38979 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
38981 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
38983 Don't include <config.h> twice; this doesn't work in some cases,
38984 e.g., when config.h has "#define intmax_t long long int" and
38985 we include <config.h>, <inttypes.h>, <config.h> in that order.
38986 Problem reported by Matthew Woehlke in:
38987 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
38988 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
38989 * lib/fts-cycle.c: Don't include config.h.
38990 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
38991 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
38992 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
38993 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
38995 * lib/xstrtoumax.c: Likewise.
38996 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
38997 __strtol and the like, so that this module is more like its siblings.
38998 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
38999 Remove; no longer needed now that we assume gnulib inttypes.h.
39001 2006-10-08 Bruno Haible <bruno@clisp.org>
39003 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
39006 2006-10-07 Jim Meyering <jim@meyering.net>
39008 * modules/inttypes (inttypes.h): Revert what seems to have been
39009 an inadvertent part of today's change: use "|", not "/" in the
39010 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
39012 2006-10-07 Bruno Haible <bruno@clisp.org>
39014 * modules/sublist: New file.
39016 2006-10-07 Bruno Haible <bruno@clisp.org>
39018 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
39019 * modules/argz (argz.h): Likewise.
39020 * modules/arpa_inet (arpa/inet.h): Likewise.
39021 * modules/byteswap (byteswap.h): Likewise.
39022 * modules/configmake (configmake.h): Likewise.
39023 * modules/fcntl (fcntl.h): Likewise.
39024 * modules/fnmatch (fnmatch.h): Likewise.
39025 * modules/getopt (getopt.h): Likewise.
39026 * modules/glob (glob.h): Likewise.
39027 * modules/inttypes (inttypes.h): Likewise.
39028 * modules/netinet_in (netinet/in.h): Likewise.
39029 * modules/poll (poll.h): Likewise.
39030 * modules/stdbool (stdbool.h): Likewise.
39031 * modules/stdint (stdint.h): Likewise.
39032 * modules/sys_select (sys/select.h): Likewise.
39033 * modules/sys_socket (sys/socket.h): Likewise.
39034 * modules/sys_stat (sys/stat.h): Likewise.
39035 * modules/sysexits (sysexits.h): Likewise.
39036 * modules/unistd (unistd.h): Likewise.
39037 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39038 Add a "DO NOT EDIT" comment to the generated file.
39039 (func_import): Likewise for gnulib-comp.m4.
39041 2006-10-07 Bruno Haible <bruno@clisp.org>
39043 * lib/gl_sublist.h: New file.
39044 * lib/gl_sublist.c: New file.
39046 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
39048 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
39049 name (relative to the original working directory) and the file
39050 name component (relative to the temporary working directory). All
39052 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
39053 * lib/mkdir-p.c (make_dir_parents): Likewise.
39054 * lib/mkdir-p.h (make_dir_parents): Likewise.
39056 2006-10-06 Eric Blake <ebb9@byu.net>
39058 Define several macros for use by the clean-temp module.
39059 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
39060 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
39061 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
39063 * lib/clean-temp.h (close_stream_temp): New declaration.
39064 * lib/clean-temp.c (includes): Pull in headers according to what
39065 other modules are in use.
39066 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
39068 2006-10-06 Bruno Haible <bruno@clisp.org>
39070 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
39071 instead of fopen, fwriteerror.
39073 2006-10-06 Bruno Haible <bruno@clisp.org>
39075 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
39076 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
39078 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
39079 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
39080 Return an error indicator.
39081 Suggested by Eric Blake.
39083 2006-10-06 Bruno Haible <bruno@clisp.org>
39085 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
39086 Reported by Eric Blake.
39088 2006-10-06 Bruno Haible <bruno@clisp.org>
39090 * modules/closeout (Description): Mention stderr too.
39092 2006-10-06 Bruno Haible <bruno@clisp.org>
39093 and Paul Eggert <eggert@cs.ucla.edu>
39095 * lib/closeout.c (close_stdout): Also close stderr.
39096 * lib/closeout.h: Update comment.
39098 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
39100 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
39101 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
39102 * lib/dirchownmod.c: Include lchown.h.
39103 * lib/lchown.c: Don't include files that lchown.h now includes.
39104 Don't declare chown, since lchown.h now does that.
39105 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
39106 (lchown): Define to rpl_chown if lchown is declared but
39107 does not exist. Declare using a prototype if lchown is not
39108 declared. Add a copyright notice.
39109 * lib/mkstemp.h: Include <unistd.h>.
39110 * lib/openat.c: Include lchown.h.
39112 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
39113 we now test for that separately.
39114 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
39115 rather than O_NOFOLLOW, when testing whether it's possible to
39116 avoid a race condition reliably.
39117 * lib/savewd.c (savewd_chdir): Likewise.
39119 Remove macros that are no longer needed now that stdint.h is
39121 * lib/fsusage.c (UINTMAX_MAX): Remove.
39122 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
39123 * lib/utimecmp.c (SIZE_MAX): Remove.
39125 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
39127 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
39128 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
39131 2006-10-05 Bruno Haible <bruno@clisp.org>
39133 * lib/gl_list.h (gl_sortedlist_search_from_to,
39134 gl_sortedlist_indexof_from_to): New declarations.
39135 (gl_list_implementation): New fields sortedlist_search_from_to,
39136 sortedlist_indexof_from_to.
39137 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
39139 * lib/gl_list.c (gl_sortedlist_search_from_to,
39140 gl_sortedlist_indexof_from_to): New functions.
39141 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
39143 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
39144 (gl_array_sortedlist_search_from_to): New function.
39145 (gl_array_list_implementation): Update.
39146 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
39148 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
39149 (gl_carray_sortedlist_search_from_to): New function.
39150 (gl_carray_list_implementation): Update.
39151 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
39152 gl_linked_sortedlist_indexof_from_to): New functions.
39153 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39154 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39155 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
39156 gl_tree_sortedlist_indexof_from_to): New functions.
39157 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39158 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39160 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39161 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
39164 2006-10-05 Bruno Haible <bruno@clisp.org>
39166 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
39167 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
39168 (struct gl_list_implementation): Add fields search_from_to,
39169 indexof_from_to. Remove fields search, indexof.
39170 (gl_list_search): Use the search_from_to method.
39171 (gl_list_search_from, gl_list_search_from_to): New functions.
39172 (gl_list_indexof): Use the indexof_from_to method.
39173 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39174 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
39175 (gl_list_search_from, gl_list_search_from_to): New functions.
39176 (gl_list_indexof): Use the indexof_from_to method.
39177 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39178 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
39179 gl_array_indexof. Add start_index, end_index arguments.
39180 (gl_array_search_from_to): Renamed from gl_array_search. Add
39181 start_index, end_index arguments.
39182 (gl_array_remove, gl_array_list_implementation): Update.
39183 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
39184 gl_carray_indexof. Add start_index, end_index arguments.
39185 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
39186 start_index, end_index arguments.
39187 (gl_carray_remove, gl_carray_list_implementation): Update.
39188 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
39189 gl_linked_search. Add start_index, end_index arguments.
39190 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
39191 start_index, end_index arguments.
39192 (gl_linked_remove): Update.
39193 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39194 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39195 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
39197 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
39198 gl_tree_search. Add start_index, end_index arguments.
39199 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39200 start_index, end_index arguments.
39201 (gl_tree_remove): Update.
39202 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39203 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39204 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
39206 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
39207 gl_tree_search. Add start_index, end_index arguments.
39208 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39209 start_index, end_index arguments.
39210 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39212 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39214 2006-10-05 Bruno Haible <bruno@clisp.org>
39216 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
39218 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
39219 fwriteerror_temp): New declarations.
39220 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
39221 (descriptors): New variable.
39222 (cleanup): First, close the descriptors.
39223 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
39224 fclose_temp, fwriteerror_temp): New functions.
39226 2006-10-04 Jim Meyering <jim@meyering.net>
39228 * lib/fts.c (fts_open): Tiny comment change.
39230 2006-10-04 Bruno Haible <bruno@clisp.org>
39232 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
39233 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
39235 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
39236 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
39237 gl_LOCK_EARLY_BODY.
39238 (gl_LOCK): Require gl_LOCK_BODY.
39240 2006-10-04 Bruno Haible <bruno@clisp.org>
39242 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
39243 (gl_oset_search_atleast): New declaration.
39244 (struct gl_oset_implementation): Add field 'search_atleast'.
39245 (gl_oset_search_atleast): New inline function.
39246 * lib/gl_oset.c (gl_oset_search_atleast): New function.
39247 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
39248 (gl_array_oset_implementation): Update.
39249 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
39250 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
39251 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
39253 2006-10-04 Bruno Haible <bruno@clisp.org>
39255 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
39257 2006-10-03 Bruno Haible <bruno@clisp.org>
39259 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
39260 from gl_avltreehash_list_implementation.
39262 2006-10-03 Bruno Haible <bruno@clisp.org>
39264 * lib/gl_oset.c (gl_oset_add): Fix return type.
39266 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
39268 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
39270 2006-10-02 Eric Blake <ebb9@byu.net>
39272 * modules/strnlen (Depends-on): Add extensions.
39274 2006-10-02 Eric Blake <ebb9@byu.net>
39276 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
39277 definition in 2.60+.
39279 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
39281 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
39284 2006-10-02 Bruno Haible <bruno@clisp.org>
39286 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
39287 to the AUTOMAKE_OPTIONS.
39288 Reported by Jim Meyering.
39290 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
39292 Work around bug in Solaris 10 /proc file system:
39293 /proc/self/fd/NNN/.. isn't the parent directory of
39294 the directory whose file descriptor is NNN. This needs to
39295 be worked around at run time, not compile time, since a
39296 program might be built on Solaris 8, where things work, and
39298 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
39299 to use the following interface instead:
39300 (OPENAT_BUFFER_SIZE): New macro.
39301 (openat_proc_name): New function.
39302 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
39303 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
39305 * lib/openat-proc.c: New file.
39306 * modules/openat (Files): Add lib/openat-proc.c.
39307 (Depends-on): Add same-inode, stdbool.
39308 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
39310 2006-09-29 Bruno Haible <bruno@clisp.org>
39312 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
39313 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
39314 argument. Set stdout_closed before testing for ferror, not after.
39315 (fwriteerror, fwriteerror_no_ebadf): New functions.
39317 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39319 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
39321 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
39323 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
39324 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
39326 2006-09-28 Jim Meyering <jim@meyering.net>
39328 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
39329 Include <unistd.h>.
39331 2006-09-28 Bruno Haible <bruno@clisp.org>
39333 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
39334 * modules/linkedhash-list (Depends-on): Likewise.
39335 * modules/rbtreehash-list (Depends-on): Likewise.
39337 2006-09-28 Bruno Haible <bruno@clisp.org>
39339 * lib/strndup.h: Simplify the redefinition of strndup.
39340 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
39341 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
39343 2006-09-28 Bruno Haible <bruno@clisp.org>
39345 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
39346 * lib/gl_linkedhash_list.c: Likewise.
39347 * lib/gl_rbtreehash_list.c: Likewise.
39349 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
39351 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
39354 * lib/__fpending.h: Don't include <stdio_ext.h> unless
39355 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
39356 it causes <stdio_ext.h> to cause a compile-time error.
39357 Problem reported by Nelson H. F. Beebe.
39358 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
39359 of HAVE_DECL___PENDING.
39361 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
39362 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
39365 2006-09-27 Jim Meyering <jim@meyering.net>
39367 This file could end up with a definition for a function
39368 named __strndup, rather than rpl_strndup on a system with
39369 incomplete weak_alias support.
39370 * lib/strndup.c (strndup): Rename from __strndup.
39371 Remove #defines that used to map __strndup to strndup.
39372 Don't use K&R prototypes.
39373 Remove LIBC-related code, since this file is not sync'd with glibc.
39374 * lib/strndup.h: Revamp, accordingly.
39375 * m4/strndup.m4: Modernize.
39377 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
39379 * modules/savewd (Depends-on): Add 'raise'.
39380 * lib/savewd.c: Include <signal.h>, for 'raise'.
39382 2006-09-26 Jim Meyering <jim@meyering.net>
39384 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
39385 when we detect Darwin 8.7.0's acl_get_file bug.
39386 Rearrange to perform the new (below) run-test while $LIBS
39387 contains any acl-related library. Set USE_ACL at the end.
39388 (gl_ACL_GET_FILE): New function.
39390 2006-09-26 Eric Blake <ebb9@byu.net>
39392 * lib/verror.c: Include <config.h> unconditionally.
39394 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
39396 * modules/clock-time (Maintainer): Add self.
39397 * modules/getlogin_r (Depends-on): Add extensions.
39399 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39401 * modules/clock-time: New module.
39402 * modules/nanosleep (Depends-on): Add clock-time.
39403 * modules/gethrxtime (Depends-on): Likewise.
39404 * modules/gettime (Depends-on): Likewise.
39405 * modules/settime (Depends-on): Likewise.
39407 * modules/fts-lgpl: Depend on openat.
39408 * modules/mkancesdirs: Depend on savewd.
39409 * modules/mkdir-p: Likewise.
39411 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39413 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
39415 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
39416 `gl_have_arbitrary_file_name_length_limit' to
39417 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
39418 actually works between configure runs.
39420 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39421 Bruno Haible <bruno@clisp.org>
39423 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
39425 2006-09-25 Jim Meyering <jim@meyering.net>
39427 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
39428 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
39430 2006-09-25 Eric Blake <ebb9@byu.net>
39432 * gnulib-tool (func_import, func_create_testdir): Fix typos in
39433 exec's in 2006-09-18 patch when shuffling fds.
39435 2006-09-25 Bruno Haible <bruno@clisp.org>
39437 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
39438 Reported by Jim Meyering.
39440 2006-09-24 Jim Meyering <jim@meyering.net>
39442 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
39443 compare a pointer against a literal "0". That caused failures with
39444 at least HP-UX's hpcc.
39446 2006-09-22 Simon Josefsson <jas@extundo.com>
39450 * modules/gc-hmac-sha1:
39451 * modules/gc-hmac-md5:
39453 * modules/gc-arcfour: Distribute more files.
39455 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39457 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
39458 (gl_linked_iterator_from_to): Initialize struct completely.
39459 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
39460 (gl_tree_iterator_from_to): Likewise
39461 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
39462 * lib/gl_array_list.c [lint] (gl_array_iterator)
39463 (gl_array_iterator_from_to): Likewise.
39464 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
39465 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
39466 (gl_carray_iterator_from_to): Likewise.
39468 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
39469 * lib/md4.c (md4_process_block): Remove unused variable.
39470 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
39471 parentheses for clarity.
39473 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39475 * modules/bison-i18n (Depends-on): Add gettext.
39477 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39479 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
39480 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39481 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
39482 also add missing comma that caused broken test.
39483 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
39484 stdlib.h, for `abort'.
39485 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
39487 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
39488 include unistd.h if present, for `rmdir'.
39489 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
39491 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
39492 in the process include standard headers for prototypes.
39493 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
39494 gets declared on GNU/Linux.
39495 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
39496 unistd.h, for `rmdir'.
39497 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
39499 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
39501 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
39503 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
39505 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39507 * gnulib-tool (func_version): Create output all at once. This
39508 may help avoid triggering unnecessary SIGPIPEs, and at any
39509 rate it doesn't hurt.
39511 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39512 Bruno Haible <bruno@clisp.org>
39514 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
39515 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39516 * m4/signed.m4 (bh_C_SIGNED): Likewise.
39518 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
39519 (gl_FUNC_VASPRINTF): Invoke it.
39521 2006-09-22 Bruno Haible <bruno@clisp.org>
39523 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
39524 getloadavg.c as first argument.
39526 2006-09-22 Bruno Haible <bruno@clisp.org>
39528 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
39529 at the beginning of the gl_INIT macro.
39530 * modules/getloadavg (configure.ac): Pass $gl_source_base to
39533 2006-09-22 Bruno Haible <bruno@clisp.org>
39535 * gnulib-tool (func_create_megatestdir): Don't include the config-h
39537 Suggested by Ralf Wildenhues.
39539 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
39541 Import this patch from libc:
39543 2006-09-06 Jakub Jelinek <jakub@redhat.com>
39545 * lib/regex_internal.c (re_string_reconstruct): Handle
39546 offset < pstr->valid_raw_len && pstr->offsets_needed case.
39547 Ensure no bytes read before raw_mbs array. Pass a saved copy of
39548 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
39549 re_string_context_at.
39551 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
39553 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
39554 gl_REGEX now does it for us.
39555 (gl_REGEX): Add test taken from
39556 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
39558 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
39559 Check that large offsets work. Modernize Autoconf usages.
39560 Prefer "yes" to mean a good thing rather than a bad.
39561 Don't put "#define mkstemp" in config.h, as this might interfere
39562 with standard system headers that "#define mkstemp mkstemp64".
39564 * modules/mkstemp (Depends-on): Add extensions, so that
39565 mkstemp is visible on some platforms.
39566 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
39567 (Include): Change to "mkstemp.h" from <stdlib.h>.
39568 (Files): Add mkstemp.h.
39570 * lib/mkstemp.h: New file, since some standard headers
39572 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
39573 Include "mkstemp.h".
39574 Make the _LIBC code resemble glibc original more,
39575 e.g., use K&R style.
39576 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
39577 (mkstemp): Remove, since mkstemp.h does this for us.
39578 * lib/stdlib--.h: Include mkstemp.h.
39580 Import this patch from libc:
39582 2006-04-07 Ulrich Drepper <drepper@redhat.com>
39584 * lib/tempname.c (__gen_tempname): Change attempts_min
39585 into a macro. Use preprocessor to decide how to initialize
39586 attempts [Coverity CID 67].
39588 2006-09-20 Bruno Haible <bruno@clisp.org>
39590 * lib/mkdtemp.c: Import from libc.
39591 2006-04-07 Ulrich Drepper <drepper@redhat.com>
39592 * sysdeps/posix/tempname.c (__gen_tempname): Change
39593 attempts_min into a macro. Use preprocessor to decide how to
39594 initialize attempts [Coverity CID 67].
39595 2001-11-27 Paul Eggert <eggert@twinsun.com>
39596 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
39597 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
39599 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39601 * gnulib-tool (func_exit): New function, to allow to pass the
39602 exit status portably through the trap. Use everywhere.
39603 (--help, --version): Signal a write error.
39604 (trap): catch SIGPIPE, for write errors.
39605 Exit at the end of the trap, with the correct exit status.
39607 2006-09-19 Karl Berry <karl@gnu.org>
39609 * doc/gnulib.texi: note about the license texinfo files.
39611 2006-09-19 Eric Blake <ebb9@byu.net>
39613 * gnulib-tool: Avoid space-tab.
39615 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
39617 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
39618 that prevented coreutils 6.1 from building. Problem reported
39619 by Petter Reinholdtsen.
39621 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
39623 * gnulib-tool (avoidlist): Fix typo that broke options like
39624 --avoid=lock that are used by coreutils bootstrap.
39626 2006-09-18 Mark D. Baushke <mdb@gnu.org>
39628 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
39629 more systematically.
39631 2006-09-18 Jim Meyering <jim@meyering.net>
39633 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
39635 2006-09-18 Bruno Haible <bruno@clisp.org>
39637 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
39639 2006-09-18 Bruno Haible <bruno@clisp.org>
39641 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
39642 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
39643 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
39644 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
39645 * m4/gettext.m4: Require autoconf >= 2.52.
39646 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
39647 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
39648 of gl_cv_header_inttypes_h.
39650 2006-09-18 Bruno Haible <bruno@clisp.org>
39652 * lib/javaversion.c: Include configmake.h.
39654 2006-09-18 Bruno Haible <bruno@clisp.org>
39656 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
39657 avoid that the while loops be executed in a subshell.
39659 2006-09-18 Bruno Haible <bruno@clisp.org>
39661 * MODULES.html.sh (func_module): Break long lines.
39662 Suggested by Bruce Korb <bkorb@gnu.org>.
39664 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39666 Speed up by a factor of 1.12.
39667 * gnulib-tool (nl): New variable.
39668 (func_import): Rewrite include directive extraction to only read each
39671 2006-09-17 Bruno Haible <bruno@clisp.org>
39673 * modules/javaversion (Makefile.am): Remove DEFS setting.
39674 (Depends-on): Add configmake, for PKGDATADIR definition.
39676 2006-09-17 Bruno Haible <bruno@clisp.org>
39678 * gnulib-tool (func_create_testdir): Rewrite all files at once.
39680 2006-09-17 Bruno Haible <bruno@clisp.org>
39682 * gnulib-tool (func_append): New function, stolen from libtool.m4.
39683 (func_modules_transitive_closure, func_modules_add_dummy,
39684 func_modules_to_filelist, func_import, func_create_testdir,
39685 func_create_megatestdir, ...): Use it wherever possible.
39686 Suggested by Ralf Wildenhues.
39688 2006-09-16 Karl Berry <karl@gnu.org>
39690 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
39691 to avoid sectioning errors.
39692 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
39693 [ifinfo]: blank line after @center-ed titles.
39694 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
39695 Spell FSF address consistently with others.
39696 (These changes approved by rms.)
39698 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39700 Speed up by a factor of 1.61.
39701 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
39702 already checked module names again.
39704 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39706 Speed up by a factor of 1.13.
39707 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
39708 for new_files, and the input to func_add_or_update.
39710 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39712 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
39713 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
39715 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
39717 * modules/mkancesdirs (Depends-on): Add fcntl.
39718 * modules/savewd: New file.
39719 * MODULES.html.sh (File system functions): Add savewd.
39721 * modules/configmake (Makefile.am): Add support for the
39722 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
39724 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
39726 * m4/savewd.m4: New file.
39728 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
39730 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
39731 (dirchownmod): New arg FD. All callers changed.
39732 Use FD rather than opening the directory ourself, as opening is
39733 now the caller's responsibility.
39734 * lib/dirchownmod.h: Likewise.
39735 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
39736 hosts that require <sys/types.h> before <sys/stat.h>. Include
39737 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
39738 (test_dir): Remove.
39739 (mkancesdirs): Return length of prefix of FILE that has already
39740 been made, or -2 if there is a child doing the work. Redo
39741 algorithm so that it is O(N) rather than O(N**2). Optimize away
39742 ".", and treat ".." specially since it might stray back into
39743 already-created areas. Use a subprocess if necessary. New arg
39744 WD; all users changed. MAKE_DIR function should now return 1
39745 if it creates a directory that is not readable. Return -2 if
39746 a child process is spun off.
39747 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
39748 Adjust signature to match code.
39749 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
39750 (make_dir_parents): Use a subprocess if necessary. New arg WD;
39752 * lib/savewd.c, lib/savewd.h: New files.
39754 2006-09-15 Jim Meyering <jim@meyering.net>
39756 * modules/rename-dest-slash: New module.
39757 * MODULES.html.sh (posix_compat): Add it here.
39759 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
39761 2006-09-15 Jim Meyering <jim@meyering.net>
39763 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
39766 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
39768 2006-09-15 Jim Meyering <jim@meyering.net>
39770 * lib/rename-dest-slash.c (has_trailing_slash): Use
39771 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
39772 (rpl_rename_dest_slash): Perform the cheaper trailing slash
39773 test before testing whether SRC is a directory.
39774 Suggestions from Bruno Haible.
39776 Avoid a warning about an unused variable.
39777 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
39778 into the #ifdef block where it's used.
39780 * lib/rename-dest-slash.c: New file.
39782 2006-09-14 Bruno Haible <bruno@clisp.org>
39784 * lib/allocsa.c: Include <config.h> unconditionally.
39785 * lib/asnprintf.c: Likewise.
39786 * lib/asprintf.c: Likewise.
39787 * lib/c-strcasecmp.c: Likewise.
39788 * lib/c-strcasestr.c: Likewise.
39789 * lib/c-strncasecmp.c: Likewise.
39790 * lib/c-strstr.c: Likewise.
39791 * lib/classpath.c: Likewise.
39792 * lib/clean-temp.c: Likewise.
39793 * lib/concatpath.c: Likewise.
39794 * lib/copy-file.c: Likewise.
39795 * lib/csharpcomp.c: Likewise.
39796 * lib/csharpexec.c: Likewise.
39797 * lib/execute.c: Likewise.
39798 * lib/fatal-signal.c: Likewise.
39799 * lib/findprog.c: Likewise.
39800 * lib/fwriteerror.c: Likewise.
39801 * lib/gl_array_list.c: Likewise.
39802 * lib/gl_array_oset.c: Likewise.
39803 * lib/gl_avltree_list.c: Likewise.
39804 * lib/gl_avltree_oset.c: Likewise.
39805 * lib/gl_avltreehash_list.c: Likewise.
39806 * lib/gl_carray_list.c: Likewise.
39807 * lib/gl_linked_list.c: Likewise.
39808 * lib/gl_linkedhash_list.c: Likewise.
39809 * lib/gl_list.c: Likewise.
39810 * lib/gl_oset.c: Likewise.
39811 * lib/gl_rbtree_list.c: Likewise.
39812 * lib/gl_rbtree_oset.c: Likewise.
39813 * lib/gl_rbtreehash_list.c: Likewise.
39814 * lib/imaxabs.c: Likewise.
39815 * lib/imaxdiv.c: Likewise.
39816 * lib/javacomp.c: Likewise.
39817 * lib/javaexec.c: Likewise.
39818 * lib/javaversion.c: Likewise.
39819 * lib/linebreak.c: Likewise.
39820 * lib/localcharset.c: Likewise.
39821 * lib/lock.c: Likewise.
39822 * lib/mbchar.c: Likewise.
39823 * lib/mbswidth.c: Likewise.
39824 * lib/mkdtemp.c: Likewise.
39825 * lib/pipe.c: Likewise.
39826 * lib/printf-args.c: Likewise.
39827 * lib/printf-parse.c: Likewise.
39828 * lib/progname.c: Likewise.
39829 * lib/progreloc.c: Likewise.
39830 * lib/readlink.c: Likewise.
39831 * lib/sh-quote.c: Likewise.
39832 * lib/stpcpy.c: Likewise.
39833 * lib/stpncpy.c: Likewise.
39834 * lib/strcasecmp.c: Likewise.
39835 * lib/strcasestr.c: Likewise.
39836 * lib/strcspn.c: Likewise.
39837 * lib/striconv.c: Likewise.
39838 * lib/strncasecmp.c: Likewise.
39839 * lib/strnlen1.c: Likewise.
39840 * lib/strstr.c: Likewise.
39841 * lib/strtok_r.c: Likewise.
39842 * lib/tls.c: Likewise.
39843 * lib/tmpdir.c: Likewise.
39844 * lib/unicodeio.c: Likewise.
39845 * lib/unsetenv.c: Likewise.
39846 * lib/vasnprintf.c: Likewise.
39847 * lib/vasprintf.c: Likewise.
39848 * lib/wait-process.c: Likewise.
39849 * lib/xallocsa.c: Likewise.
39850 * lib/xsetenv.c: Likewise.
39851 * lib/xstriconv.c: Likewise.
39853 2006-09-13 Simon Josefsson <jas@extundo.com>
39855 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
39856 that internally, suggested by Ralf Wildenhues
39857 <Ralf.Wildenhues@gmx.de>.
39859 2006-09-13 Simon Josefsson <jas@extundo.com>
39861 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
39863 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39865 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
39867 * lib/_fpending.c: Include <config.h> unconditionally, since we no
39868 longer worry about uses that don't define HAVE_CONFIG_H.
39869 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
39870 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
39871 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
39872 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
39873 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
39874 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
39875 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
39876 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
39877 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
39878 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
39879 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
39880 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
39881 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
39882 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
39883 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
39884 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
39885 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
39886 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
39887 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
39888 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
39889 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
39890 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
39891 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
39892 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
39893 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
39894 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
39895 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
39896 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
39897 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
39898 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
39899 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
39900 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
39901 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
39902 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
39903 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
39904 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
39905 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
39906 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
39907 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
39908 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
39909 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
39912 2006-09-13 Eric Blake <ebb9@byu.net>
39914 * lib/getopt.c: Fix typo in last commit.
39916 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
39918 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
39921 2006-09-12 Jim Meyering <jim@meyering.net>
39923 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
39924 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
39925 Reported by Nelson H. F. Beebe.
39927 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
39929 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
39930 program_invocation_name and program_invocation_short_name are
39932 * lib/argp-namefrob.h: Move declarations of program_invocation_name
39933 and program_invocation_short_name to argp.h, so they are visible
39935 * lib/argp.h: Likewise
39937 2006-09-10 Bruno Haible <bruno@clisp.org>
39939 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
39940 m4/inttypes_h.m4, m4/uintmax_t.m4.
39942 2006-09-10 Bruno Haible <bruno@clisp.org>
39944 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
39945 gl_AC_TYPE_UINTMAX_T.
39947 2006-09-10 Bruno Haible <bruno@clisp.org>
39949 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
39951 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
39953 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
39954 convention. Text proposed by Bruno Haible.
39955 (struct argp_option): Document the use of N_() wrappers.
39957 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
39958 '\v', and translate the two parts separately, instead of feeding
39959 the whole string to gettext. This allows to exclude
39960 '\v' from the strings visible to the translator by writing doc
39961 strings as N_("..") "\v" N_("..").
39963 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
39965 * config/srclist.txt: Undo latest change; the bug was fixed.
39967 2006-09-09 Bruno Haible <bruno@clisp.org>
39969 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
39970 assignments if building a library without libtool.
39971 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
39972 in func_emit_lib_Makefile_am.
39973 (func_import): When building a static library libfoo.a, arrange to
39974 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
39975 (func_create_testdir): Likewise.
39976 * modules/gc (configure.ac, Makefile.am): If building statically,
39977 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
39978 * modules/iconvme (configure.ac, Makefile.am): Likewise.
39979 * modules/striconv (configure.ac, Makefile.am): Likewise.
39980 Based on a suggestion by Ralf Wildenhues.
39982 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
39984 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39985 Check for unistd.h too, since Autoconf doesn't assume POSIX.
39988 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
39989 Add year_2050_test to catch glibc bug 2821
39990 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
39992 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
39993 Prefer #ifdef to #if.
39995 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
39996 Return from 'main' instead of calling 'exit'.
39998 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
40000 * lib/mktime.c (guess_time_tm): Fix bug where mktime
40001 returned the maximum time_t value rather than (time_t) -1.
40002 Problem originally reported by William Bardwell
40003 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
40005 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40007 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
40010 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
40012 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
40015 2006-09-08 Jim Meyering <jim@meyering.net>
40017 Don't make generated files read-only. That would bother too many
40018 people. However, do retain the ability to work when targets are
40019 read-only: remove the destination and temporary files before writing
40020 them (when generated via sed or echo), or by using the -f option for
40021 both cp and mv commands. Suggestion to use -f from Paul Eggert.
40022 * modules/alloca-opt, modules/argz, modules/arpa_inet:
40023 * modules/byteswap, modules/configmake, modules/fcntl:
40024 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40025 * modules/localcharset, modules/netinet_in, modules/poll:
40026 * modules/stdbool, modules/stdint, modules/sys_select:
40027 * modules/sys_socket, modules/sys_stat, modules/sysexits:
40029 2006-09-08 Jim Meyering <jim@meyering.net>
40031 Avoid new build failure on FreeBSD 6.0.
40032 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
40033 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
40034 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
40036 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40038 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
40040 2006-09-07 Jim Meyering <jim@meyering.net>
40042 Fix global typo in last change: use chmod u-w, not chmod u-x.
40043 Spotted by Paul Eggert and Bruce Korb.
40044 * modules/alloca-opt, modules/argz, modules/arpa_inet:
40045 * modules/byteswap, modules/configmake, modules/fcntl:
40046 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
40047 * modules/localcharset, modules/netinet_in, modules/poll:
40048 * modules/stdbool, modules/stdint, modules/sys_select:
40049 * modules/sys_socket, modules/sys_stat, modules/sysexits:
40051 2006-09-06 Jim Meyering <jim@meyering.net>
40053 Make generated files be read-only.
40054 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
40055 Ensure that each generated file is now read-only.
40056 * modules/argz: Likewise.
40057 * modules/arpa_inet: Likewise.
40058 * modules/byteswap: Likewise.
40059 * modules/configmake: Likewise.
40060 * modules/fcntl: Likewise.
40061 * modules/fnmatch: Likewise.
40062 * modules/getopt: Likewise.
40063 * modules/glob: Likewise.
40064 * modules/inttypes: Likewise.
40065 * modules/netinet_in: Likewise.
40066 * modules/poll: Likewise.
40067 * modules/stdbool: Likewise.
40068 * modules/stdint: Likewise.
40069 * modules/sys_select: Likewise.
40070 * modules/sys_socket: Likewise.
40071 * modules/sys_stat: Likewise.
40072 * modules/sysexits: Likewise.
40073 * modules/localcharset: Same as above, but continue using temporary
40074 file named "t-$@" (why different?) rather than the "$@-t" used
40077 * modules/sysexits (Makefile.am): Replace literal occurrences
40078 of "sysexit.h" more readable, and more consistent, "$@".
40080 2006-09-06 Bruno Haible <bruno@clisp.org>
40082 * modules/striconv: New file.
40083 * modules/xstriconv: New file.
40084 * MODULES.html.sh (Internationalization functions): Add striconv,
40087 2006-09-06 Bruno Haible <bruno@clisp.org>
40089 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
40090 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
40091 not using libtool correctly.
40093 2006-09-06 Bruno Haible <bruno@clisp.org>
40095 * lib/striconv.h: New file.
40096 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
40098 * lib/xstriconv.h: New file.
40099 * lib/xstriconv.c: New file.
40101 2006-09-06 Bruno Haible <bruno@clisp.org>
40103 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40106 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40108 * lib/argz_.h: Sync from Libtool.
40110 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
40111 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40113 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
40115 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
40117 * modules/trim: New file.
40119 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
40121 * lib/trim.h: New file.
40122 * lib/trim.c: New file.
40124 2006-09-05 Bruno Haible <bruno@clisp.org>
40126 * MODULES.html.sh (String handling): Add trim.
40128 2006-09-04 Karl Berry <karl@gnu.org>
40130 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
40131 until next release.
40133 2006-09-03 Bruno Haible <bruno@clisp.org>
40135 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
40138 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
40140 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
40141 not gl_GETLOADAVG. Omit unneeded semicolons.
40142 Problems reported by Ralf Wildenhues in
40143 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40144 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
40145 at the end, which is the usual gnulib style.
40147 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
40148 of doing all the work ourselves.
40149 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
40150 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
40152 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
40154 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
40155 Problem reported by Ralf Wildenhues in
40156 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40158 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
40159 HAVE_STRUCT_STATFS_F_FSTYPENAME.
40161 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
40163 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
40164 yesterday's patch by changing test -n to test -z.
40166 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
40168 * modules/getloadavg (Files): Add m4/getloadavg.m4.
40169 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
40170 the former is now obsolescent.
40172 * modules/chdir-long (Depends-on): Add fcntl.
40174 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
40176 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
40177 obsolescent, and programs should use gnulib instead.
40178 * m4/getloadavg.m4: New file, with contents taken from Autoconf
40179 but with prefixes changed.
40181 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
40183 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
40184 or stdbool.h, because they might not exist while configuring.
40186 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
40187 Don't include unistd.h or limits.h; not needed, since chdir-long.h
40189 (O_DIRECTORY): Remove.
40191 2006-08-31 Eric Blake <ebb9@byu.net>
40193 * gnulib-tool: Don't let emacs change spaces to TAB.
40195 2006-08-31 Bruno Haible <bruno@clisp.org>
40197 * gnulib-tool: When calling func_import more than once, do it in a
40199 Reported by Eric Blake <ebb9@byu.net>.
40201 2006-08-31 Bruno Haible <bruno@clisp.org>
40203 * gnulib-tool (nl): Remove variable.
40204 (sed_transform_lib_file): Use more robust test for config-h module.
40205 (func_import): Fix typo in 2006-08-25 patch.
40207 2006-08-31 Bruno Haible <bruno@clisp.org>
40209 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
40210 specified, augment Makefile.am variables instead of assigning them.
40212 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
40214 Work around a bug in both the Linux and SunOS 64-bit kernels:
40215 nanosleep mishandles sleeps for longer than 2**31 seconds.
40216 Problem reported by Frank v Waveren in
40217 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40218 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
40219 Check for nanosleep bug.
40220 (LIB_NANOSLEEP): Append clock_gettime library if needed.
40222 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
40224 Work around a bug in both the Linux and SunOS 64-bit kernels:
40225 nanosleep mishandles sleeps for longer than 2**31 seconds.
40226 Problem reported by Frank v Waveren in
40227 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40228 * lib/nanosleep.c (BILLION): New constant.
40229 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
40230 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
40233 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
40235 * modules/nanosleep (Depends-on): Add gettime.
40237 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
40238 and Simon Josefsson <jas@extundo.com>
40239 and Oskar Liljeblad <oskar@osk.mine.nu>
40241 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
40242 * gnulib-tool (func_import): New license type 'unmodifiable license
40244 * modules/fdl: Use it. Longer description.
40245 * module/gpl, module/lgpl: New files.
40247 2006-08-30 Jim Meyering <jim@meyering.net>
40249 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
40250 shadowing the parameter.
40252 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40256 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40258 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
40259 sharing with gnulib. Report by Eric Blake.
40261 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
40263 * modules/isapipe: New file.
40264 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
40266 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
40268 * modules/configmake (Makefile.am): Add a comment, and omit
40269 the CONFIGMAKE_ prefix from generated macro names. Suggested
40272 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
40274 * m4/isapipe.m4: New file.
40276 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
40278 * lib/isapipe.c, lib/isapipe.h: New files.
40280 2006-08-29 Jim Meyering <jim@meyering.net>
40282 * modules/configmake (Makefile.am): Make configmake.h depend on
40283 Makefile. Otherwise, a stale configmake.h could hang around.
40285 2006-08-29 Eric Blake <ebb9@byu.net>
40287 * lib/error.c (error_at_line, print_errno_message): Match libc, after
40288 resolution of upstream bug 3044.
40290 2006-08-29 Bruno Haible <bruno@clisp.org>
40292 * modules/localcharset (Depends-on): Add configmake.
40293 (Makefile.am): Remove setting of LIBDIR through DEFS.
40295 2006-08-29 Bruno Haible <bruno@clisp.org>
40297 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
40300 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
40302 * modules/fcntl: New file.
40303 * modules/chdir-safer (Depends-on): Add fcntl.
40304 * modules/fts: Likewise.
40305 * modules/mkdir-p: Likewise.
40307 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
40308 This undoes the most recent change, since we're now addressing the
40309 problem in a different way.
40311 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
40312 into output, since the output might be called Makefile.am even
40313 if $makefile_name is something different.
40314 (func_import): Use $makefile_am rather than
40315 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
40318 * modules/inttypes (Files): Add m4/inttypes-h.m4.
40320 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
40322 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
40323 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
40324 recent change to stdint.m4, since we're now addressing the problem in a
40327 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
40329 * m4/fcntl_h.m4: New file.
40331 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
40333 * lib/fcntl_.h: New file.
40334 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
40336 * lib/dirchownmod.c: Likewise.
40337 * lib/fts.c: Likewise.
40339 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
40340 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
40341 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
40342 just before including <inttypes.h>, to avoid circular inclusion.
40344 2006-08-28 Jim Meyering <jim@meyering.net>
40346 * doc/visibility.texi: Actually read and correct the grammar of the
40347 sentence affected by yesterday's change.
40349 2006-08-28 Eric Blake <ebb9@byu.net>
40351 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
40354 2006-08-28 Eric Blake <ebb9@byu.net>
40356 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
40358 2006-08-28 Eric Blake <ebb9@byu.net>
40360 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
40362 2006-08-28 Bruno Haible <bruno@clisp.org>
40364 * modules/c-strstr: New file, from GNU gettext.
40365 * MODULES.html.sh (String handling): Add c-strstr.
40367 2006-08-28 Bruno Haible <bruno@clisp.org>
40369 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
40371 Reported by Eric Blake.
40373 2006-08-28 Bruno Haible <bruno@clisp.org>
40375 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
40376 (VASNPRINTF): Return a string of length > INT_MAX without failing.
40377 * lib/vasprintf.c: Include errno.h, limits.h.
40378 (EOVERFLOW): New fallback definition.
40379 (vasprintf): Test here whether the string length is > INT_MAX.
40380 * lib/vsnprintf.c: Include errno.h, limits.h.
40381 (EOVERFLOW): New fallback definition.
40382 (vsnprintf): Fix bug when generated string was too long for the buffer.
40383 Test here whether the string length is > INT_MAX.
40385 2006-08-28 Bruno Haible <bruno@clisp.org>
40387 * lib/inttypes_.h (SCNX*): Remove definitions.
40388 Reported by Eric Blake.
40390 2006-08-28 Bruno Haible <bruno@clisp.org>
40392 * lib/c-strstr.h: New file, from GNU gettext.
40393 * lib/c-strstr.c: New file, from GNU gettext.
40395 2006-08-28 Bruno Haible <bruno@clisp.org>
40397 * gnulib-tool: Reorder some statements.
40399 2006-08-28 Bruno Haible <bruno@clisp.org>
40401 * gnulib-tool: New option --makefile-name.
40402 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
40404 (func_import): Write $makefile_name to the cache file, and read it from
40405 there unless explicitly specified. Use $makefile_name as file name
40406 instead of Makefile.am. Adjust the recommendations accordingly.
40408 2006-08-28 Bruno Haible <bruno@clisp.org>
40410 * gnulib-tool (func_verify_module): Check against misapplying patch.
40412 2006-08-28 Bruno Haible <bruno@clisp.org>
40414 * gnulib-tool (func_relativize, func_relconcat): New functions.
40415 Give an error if --local-dir is given with --update.
40416 Remove trailing slashes from $local_gnulib_dir.
40417 (func_import): Store the relativized $local_gnulib_dir in
40418 gnulib-cache.m4, and read it from there if not specified explicitly.
40420 2006-08-28 Bruno Haible <bruno@clisp.org>
40422 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
40423 is the current directory. Respect also $local_gnulib_dir.
40425 2006-08-28 Bruno Haible <bruno@clisp.org>
40426 Simon Josefsson <jas@extundo.com>
40429 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
40431 2006-08-27 Jim Meyering <jim@meyering.net>
40433 * doc/visibility.texi: Remove duplicate word: "pointer".
40435 2006-08-26 Bruno Haible <bruno@clisp.org>
40437 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
40438 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
40439 (Makefile.am): Create inttypes.h from inttypes_.h.
40440 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
40442 * modules/imaxabs: New file.
40444 * modules/imaxdiv: New file.
40446 2006-08-26 Bruno Haible <bruno@clisp.org>
40448 * m4/inttypes.m4: New file.
40449 * m4/_inttypes_h.m4: Remove file.
40450 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
40452 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
40454 * m4/imaxabs.m4: New file.
40456 * m4/imaxdiv.m4: New file.
40458 2006-08-26 Bruno Haible <bruno@clisp.org>
40460 * lib/inttypes_.h: New file.
40461 * lib/inttypes.h: Remove file.
40462 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
40464 * lib/imaxabs.c: New file.
40466 * lib/imaxdiv.c: New file.
40468 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
40470 New config-h module, so that "make" output needn't be cluttered
40471 by -DHAVE_CONFIG_H.
40472 * MODULES.html.sh (Support for building libraries and executables):
40474 * modules/config-h: New file.
40475 * gnulib-tool (nl, sed_transform_lib_file): New vars.
40476 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
40477 the config-h module is used.
40479 New configmake module, so that "make" output needn't be cluttered
40480 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
40481 * MODULES.html.sh (Support for building libraries and executables):
40483 * modules/configmake: New file.
40485 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
40487 * m4/config-h.m4: New file.
40489 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
40491 * config/srclist.txt: Add elisp-comp.
40493 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
40495 * MODULES.html.sh (Support for building libraries and executables):
40497 * build-aux/elisp-comp: New file.
40498 * modules/elisp-comp: New file.
40500 2006-08-24 Bruno Haible <bruno@clisp.org>
40502 * gnulib-tool (func_create_testdir): Use non-default values of
40503 sourcebase and m4base.
40505 2006-08-24 Bruno Haible <bruno@clisp.org>
40507 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
40510 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
40512 * modules/openat (Depends-on): Add lchown.
40514 2006-08-23 Bruno Haible <bruno@clisp.org>
40516 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
40517 of gl_LOCK_EARLY instead of gl_LOCK.
40519 2006-08-23 Bruno Haible <bruno@clisp.org>
40521 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
40523 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
40525 2006-08-23 Bruno Haible <bruno@clisp.org>
40527 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
40530 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
40531 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
40532 (gl_LOCK): New macro.
40534 2006-08-22 Simon Josefsson <jas@extundo.com>
40536 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
40539 2006-08-22 Simon Josefsson <jas@extundo.com>
40541 * MODULES.html.sh: Add "Support for maintaining and release
40544 * build-aux/gnupload: New file, from coreutils.
40546 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
40548 Avoid the need for AC_LIBSOURCES in m4 macros.
40549 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
40550 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
40551 * modules/check-version (EXTRA_DIST): Add check-version.h.
40552 * modules/crc (EXTRA_DIST): Add crc.h.
40553 * modules/des (EXTRA_DIST): Add des.h.
40554 * modules/gc (EXTRA_DIST): Add gc.h.
40555 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
40556 * modules/getline (EXTRA_DIST): Add getline.h.
40557 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
40558 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
40559 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
40560 * modules/md2 (EXTRA_DIST): Add md2.h.
40561 * modules/md4 (EXTRA_DIST): Add md4.h.
40562 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
40563 * modules/read-file (EXTRA_DIST): Add read-file.h.
40564 * modules/readline (EXTRA_DIST): Add readline.h.
40565 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
40566 rijndael-api-fst.h.
40568 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
40570 * m4/rijndael.m4 (gl_ARCFOUR):
40571 * m4/arctwo.m4 (gl_ARCTWO):
40572 * m4/check-version.m4 (gl_CHECK_VERSION):
40573 * m4/crc.m4 (gl_CRC):
40574 * m4/des.m4 (gl_DES):
40575 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
40576 * m4/gc.m4 (gl_GC):
40577 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
40578 * m4/getline.m4 (gl_FUNC_GETLINE):
40579 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
40580 * m4/hmac-md5.m4 (gl_HMAC_MD5):
40581 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
40582 * m4/md2.m4 (gl_MD2):
40583 * m4/md4.m4 (gl_MD4):
40584 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
40585 * m4/read-file.m4 (gl_FUNC_READ_FILE):
40586 * m4/readline.m4 (gl_FUNC_READLINE):
40587 * m4/rijndael.m4 (gl_RIJNDAEL):
40588 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40589 to get the necessary .h files and whatnot.
40591 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
40593 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
40594 gnulib rather than the other way around.
40595 * config/srclistvars.sh (COREUTILS): Remove.
40597 2006-08-22 Jim Meyering <jim@meyering.net>
40599 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
40601 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
40603 2006-08-22 Eric Blake <ebb9@byu.net>
40605 * modules/regexprops-generic: New file.
40606 * MODULES.html.sh (Support for building documentation): List it.
40608 2006-08-22 Eric Blake <ebb9@byu.net>
40610 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
40611 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40612 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
40613 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
40615 2006-08-22 Bruno Haible <bruno@clisp.org>
40617 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
40618 and lib_LTLIBRARIES like the other lib_* variables.
40620 2006-08-22 Bruno Haible <bruno@clisp.org>
40622 * build-aux/x-to-1.in: New file, from GNU gettext.
40624 2006-08-22 Bruno Haible <bruno@clisp.org>
40626 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
40629 2006-08-22 Bruno Haible <bruno@clisp.org>
40631 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
40634 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
40637 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
40639 Problem reported by Bruno Haible.
40641 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
40643 Avoid the need for AC_LIBSOURCES in m4 macros.
40644 * modules/acl (EXTRA_DIST): Add acl.h.
40645 * modules/argmatch (Files): Add m4/argmatch.m4.
40646 (configure.ac): Add gl_ARGMATCH.
40647 (EXTRA_DIST): Renamed from lib_SOURCES, for
40648 consistency with the other modules. Remove argmatch.c.
40649 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
40650 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
40651 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
40652 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
40653 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
40654 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
40655 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
40656 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
40657 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
40658 * modules/closeout (EXTRA_DIST): Add closeout.h.
40659 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
40660 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
40661 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
40662 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
40663 dirname.h; remove basename.c and stripslash.c.
40664 * modules/exclude (EXTRA_DIST): Add exclude.h.
40665 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
40666 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
40667 * modules/file-type (EXTRA_DIST): Add file-type.h.
40668 * modules/filemode (EXTRA_DIST): Add filemode.h.
40669 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
40670 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40671 * modules/fpending (EXTRA_DIST): Add __fpending.h.
40672 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
40673 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
40674 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
40675 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
40676 * modules/getdate (EXTRA_DIST): Add getdate.c.
40677 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
40678 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
40679 * modules/getpass (EXTRA_DIST): Add getpass.h.
40680 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
40681 * modules/group-member (EXTRA_DIST): Add group-member.h.
40682 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
40683 * modules/hash (EXTRA_DIST): Add hash.h.
40684 * modules/human (EXTRA_DIST): Add human.h.
40685 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
40686 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
40687 * modules/lchown (EXTRA_DIST): Add lchown.h.
40688 * modules/long-options (EXTRA_DIST): Add long-options.h.
40689 * modules/lstat (EXTRA_DIST): Add lstat.h.
40690 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
40691 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
40692 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
40693 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
40694 * modules/memxor (EXTRA_DIST): Add memxor.h.
40695 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
40696 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
40697 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
40698 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
40699 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
40700 * modules/physmem (EXTRA_DIST): Add physmem.h.
40701 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
40702 * modules/posixver (EXTRA_DIST): Add posixver.h.
40703 * modules/quote (EXTRA_DIST): Add quote.h.
40704 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
40705 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
40706 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
40707 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
40708 regex_internal.h regexec.c.
40709 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
40710 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
40711 * modules/same (EXTRA_DIST): Add same.h.
40712 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
40713 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
40714 * modules/savedir (EXTRA_DIST): Add savedir.h.
40715 * modules/sha1 (EXTRA_DIST): Add sha1.h.
40716 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
40717 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
40718 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
40719 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
40720 * modules/strdup (EXTRA_DIST): Add strdup.h.
40721 * modules/strftime (EXTRA_DIST): Add strftime.h.
40722 * modules/strndup (EXTRA_DIST): Add strndup.h.
40723 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
40724 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
40725 * modules/time_r (EXTRA_DIST): Add time_r.h.
40726 * modules/timespec (EXTRA_DIST): Add timespec.h.
40727 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40728 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
40729 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
40730 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
40731 * modules/userspec (EXTRA_DIST): Add userspec.h.
40732 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
40733 * modules/utimens (EXTRA_DIST): Add utimens.h.
40734 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
40735 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
40736 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
40737 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
40738 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
40739 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
40740 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
40741 * modules/yesno (EXTRA_DIST): Add yesno.h.
40743 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
40745 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
40747 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
40748 * m4/dev-ino.m4, same-inode.m4: Remove.
40750 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
40751 * m4/acl.m4 (AC_FUNC_ACL):
40752 * m4/backupfile.m4 (gl_BACKUPFILE):
40753 * m4/c-strtod.m4 (gl_C99_STRTOLD):
40754 * m4/canon-host.m4 (gl_CANON_HOST):
40755 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40756 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
40757 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
40758 * m4/cloexec.m4 (gl_CLOEXEC):
40759 * m4/close-stream.m4 (gl_CLOSE_STREAM):
40760 * m4/closeout.m4 (gl_CLOSEOUT):
40761 * m4/dirfd.m4 (gl_FUNC_DIRFD):
40762 * m4/dirname.m4 (gl_DIRNAME):
40763 * m4/exclude.m4 (gl_EXCLUDE):
40764 * m4/exitfail.m4 (gl_EXITFAIL):
40765 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
40766 * m4/file-type.m4 (gl_FILE_TYPE):
40767 * m4/filemode.m4 (gl_FILEMODE):
40768 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
40769 * m4/fpending.m4 (gl_FUNC_FPENDING):
40770 * m4/fprintftime.m4 (gl_FPRINTFTIME):
40771 * m4/fts.m4 (gl_FUNC_FTS):
40772 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
40773 * m4/getdate.m4 (gl_GETDATE):
40774 * m4/gethrxtime.m4 (gl_GETHRXTIME):
40775 * m4/getpagesize.m4 (gl_GETPAGESIZE):
40776 * m4/getpass.m4 (gl_FUNC_GETPASS):
40777 * m4/gettime.m4 (gl_GETTIME):
40778 * m4/getugroups.m4 (gl_GETUGROUPS):
40779 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
40780 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
40781 * m4/hard-locale.m4 (gl_HARD_LOCALE):
40782 * m4/hash.m4 (gl_HASH):
40783 * m4/idcache.m4 (gl_IDCACHE):
40784 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
40785 * m4/lchown.m4 (gl_FUNC_LCHOWN):
40786 * m4/long-options.m4 (gl_LONG_OPTIONS):
40787 * m4/lstat.m4 (gl_FUNC_LSTAT):
40788 * m4/md5.m4 (gl_MD5):
40789 * m4/memcasecmp.m4 (gl_MEMCASECMP):
40790 * m4/memcoll.m4 (gl_MEMCOLL):
40791 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
40792 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
40793 * m4/memxor.m4 (gl_MEMXOR):
40794 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
40795 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
40796 * m4/modechange.m4 (gl_MODECHANGE):
40797 * m4/mountlist.m4 (gl_MOUNTLIST):
40798 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40799 * m4/openat.m4 (gl_FUNC_OPENAT):
40800 * m4/pathmax.m4 (gl_PATHMAX):
40801 * m4/physmem.m4 (gl_PHYSMEM):
40802 * m4/posixtm.m4 (gl_POSIXTM):
40803 * m4/posixver.m4 (gl_POSIXVER):
40804 * m4/quote.m4 (gl_QUOTE):
40805 * m4/quotearg.m4 (gl_QUOTEARG):
40806 * m4/readtokens.m4 (gl_READTOKENS):
40807 * m4/readutmp.m4 (gl_READUTMP):
40808 * m4/regex.m4 (gl_REGEX):
40809 * m4/safe-read.m4 (gl_SAFE_READ):
40810 * m4/safe-write.m4 (gl_SAFE_WRITE):
40811 * m4/same.m4 (gl_SAME):
40812 * m4/save-cwd.m4 (gl_SAVE_CWD):
40813 * m4/savedir.m4 (gl_SAVEDIR):
40814 * m4/settime.m4 (gl_SETTIME):
40815 * m4/sha1.m4 (gl_SHA1):
40816 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
40817 * m4/stat-macros.m4 (gl_STAT_MACROS):
40818 * m4/stat-time.m4 (gl_STAT_TIME):
40819 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
40820 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
40821 * m4/strdup.m4 (gl_FUNC_STRDUP):
40822 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
40823 * m4/strndup.m4 (gl_FUNC_STRNDUP):
40824 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
40825 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
40826 * m4/time_r.m4 (gl_TIME_R):
40827 * m4/timespec.m4 (gl_TIMESPEC):
40828 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
40829 * m4/unlinkdir.m4 (gl_UNLINKDIR):
40830 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
40831 * m4/userspec.m4 (gl_USERSPEC):
40832 * m4/utimecmp.m4 (gl_UTIMECMP):
40833 * m4/utimens.m4 (gl_UTIMENS):
40834 * m4/xalloc.m4 (gl_XALLOC):
40835 * m4/xgetcwd.m4 (gl_XGETCWD):
40836 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
40837 * m4/xreadlink.m4 (gl_XREADLINK):
40838 * m4/xstrtod.m4 (gl_XSTRTOD):
40839 * m4/yesno.m4 (gl_YESNO):
40840 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40841 to get the necessary .h files and whatnot.
40843 2006-08-21 Mark D. Baushke <mdb@gnu.org>
40844 Bruno Haible <bruno@clisp.org>
40846 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
40847 /bin/sh understanding of '!' conditional negation.
40849 2006-08-21 Jim Meyering <jim@meyering.net>
40851 * modules/openat (Depends-on): Really alphabetize.
40853 * modules/acl (Depends-on): Add error and quote.
40855 * check-module (find_included_lib_files): Add at-func.c to the
40856 ok-to-include-more-than-once white list.
40858 * modules/openat (Depends-on): Add lstat. Alphabetize.
40860 2006-08-21 Bruno Haible <bruno@clisp.org>
40862 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40863 Emit a pkgdata_DATA variable only if some snippets add contents to it.
40864 Reported by Martin Lambers <marlam@marlam.de>.
40866 2006-08-21 Bruno Haible <bruno@clisp.org>
40868 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
40869 specify an installation location, don't emit a noinst_LIBRARIES or
40870 noinst_LTLIBRARIES assignment.
40872 2006-08-21 Bruno Haible <bruno@clisp.org>
40875 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
40876 BeOS has mbrtowc() but no <wctype.h>.
40878 2006-08-21 Bruno Haible <bruno@clisp.org>
40881 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
40884 2006-08-21 Bruno Haible <bruno@clisp.org>
40887 * lib/mbchar.h: Include <wctype.h> only if it exists.
40889 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
40891 Remove files that are no longer needed by their respective modules.
40892 * m4/obstack.m4: Remove.
40893 * m4/strerror_r.m4: Remove.
40894 * m4/uint32_t.m4: Remove.
40895 * m4/uintptr_t.m4: Remove.
40896 * m4/ullong_max.m4: Remove.
40897 * m4/xstrtoimax.m4: Remove.
40898 * m4/xstrtoumax.m4: Remove.
40900 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
40901 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
40902 dependencies now capture this.
40904 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
40905 Do not use AC_LIBSOURCES, since gnulib modules now do this.
40906 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
40907 * m4/human.m4 (gl_HUMAN): Likewise.
40908 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
40909 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
40911 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
40913 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
40914 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
40916 * m4/human.m4 (gl_HUMAN): Likewise.
40917 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
40918 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
40919 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
40920 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
40921 * m4/xstrtol (gl_XSTRTOL): Likewise.
40923 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
40924 AC_TYPE_LONG_LONG_INT.
40925 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
40926 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
40927 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
40928 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
40930 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
40933 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
40934 (gl_PREREQ_XSTRTOUL): Remove.
40936 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
40938 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
40941 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
40943 Add and change modules to make it easier for coreutils to use
40945 * modules/backupfile (Files): Remove m4/d-ino.m4.
40946 (Depends-on): Add d-ino.
40947 * modules/cycle-check (Depends-on): Add stdint.
40948 (lib_SOURCES): Add cycle-check.h.
40949 * modules/d-ino: New module.
40950 * modules/d-type: New module.
40951 * modules/error (Files): Remove m4/strerror_r.m4.
40952 * modules/filemode (Files): Add m4/st_dm_mode.m4.
40953 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40954 m4/inttypes_h.m4, m4/uintmax_t.m4.
40955 (Depends-on): Add stdint.
40956 (lib_SOURCES): Add fsusage.h.
40957 * modules/getcwd (Files): Remove d-ino.m4.
40958 (Depends-on): Add d-ino.
40959 * modules/getndelim2 (Depends-on): Add stdint.
40960 * modules/glob (Files): Remove m4/d-type.m4.
40961 (Depends-on): Add d-type.
40962 * modules/host-os: New module.
40963 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40964 m4/inttypes_h.m4, m4/uintmax_t.m4.
40965 * Depends-on: Add stdint.
40966 (lib_SOURCES): Add human.h.
40967 * modules/inttostr (Files): Remove m4/intmax_t.m4,
40968 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
40969 m4/uintmax_t.m4, m4/ulonglong.m4.
40970 (Depends-on): Add stdint.
40971 (EXTRA_DIST): Add inttostr.h.
40972 * modules/lchmod: New module.
40973 * modules/link-follow: New module.
40974 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
40975 (Depends-on): Add lchmod.
40976 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
40977 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
40978 (Depends-on): Add stdint.
40979 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
40980 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
40981 (Depends-on): Add stdint.
40982 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
40983 * modules/perl: New module.
40984 * modules/regex (Depends-on): Add stdint.
40985 * modules/rmdir-errno: New module.
40986 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
40988 (Depends-on): Add stdint.
40989 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
40991 (Depends-on): Add stdint.
40992 * modules/unlink-busy: New module.
40993 * modules/utimecmp (Depends-on): Add stdint.
40994 * modules/uptime: New module.
40995 * modules/winsz-ioctl: New module.
40996 * modules/winsz-termios: New module.
40997 * modules/xnanosleep (Depends-on): Add nanosleep.
40998 * modules/ullong_max: Remove.
40999 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
41000 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
41001 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
41002 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
41003 (Depends-on): Add inttypes.
41004 (lib_SOURCES): Add xstrtol.h.
41005 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
41006 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
41007 * MODULES.html.sh: Move 'assert' into the assert section.
41008 Move 'dummy' into the linking section.
41010 Add section for compatibility checks for POSIX:2001 functions,
41011 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
41012 winsz-ioctl, and winsz-termios into it.
41014 Add top-level Misc section and put host-os, perl, and uptime
41017 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
41019 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
41020 now assume the stdint module. Do not include inttypes.h.
41021 * lib/fsusage.h: Likewise.
41022 * lib/getndelim2.c: Likewise.
41023 * lib/human.h: Likewise.
41024 * lib/inttostr.h: Likewise.
41025 * lib/obstack.c: Likewise.
41026 * lib/regex_internal.h: Likewise.
41027 * lib/tempname.c: Likewise.
41028 * lib/utimecmp.c: Likewise.
41029 * lib/xstrtol.h: Likewise.
41031 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
41033 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
41034 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
41035 * lib/xtime.h: Likewise.
41037 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
41039 * modules/openat (Files): Add lib/fchmodat.c.
41040 Fixes problem reported by Jay Youngman.
41042 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
41044 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
41045 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
41047 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
41048 Bruno Haible <bruno@clisp.org>
41050 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
41051 and is a script that invokes bison. Tighten the code. Add comments.
41053 2006-08-18 Jim Meyering <jim@meyering.net>
41055 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
41056 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
41057 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
41058 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
41060 2006-08-18 Bruno Haible <bruno@clisp.org>
41062 * modules/bison-i18n: New file.
41063 * MODULES.html.sh (Internationalization functions): Add it.
41065 2006-08-18 Bruno Haible <bruno@clisp.org>
41067 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
41068 sys/statvfs.h. When getmntinfo was found, check its declaration and
41069 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
41071 2006-08-18 Bruno Haible <bruno@clisp.org>
41073 * m4/bison-i18n.m4: New file, from bison.
41075 2006-08-18 Bruno Haible <bruno@clisp.org>
41077 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
41078 (ME_DUMMY): Treat "kernfs" as a dummy.
41079 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
41081 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
41083 Update from coreutils.
41085 2006-08-15 Jim Meyering <jim@meyering.net>
41087 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
41089 2006-01-17 Jim Meyering <jim@meyering.net>
41091 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
41093 2006-01-11 Jim Meyering <jim@meyering.net>
41095 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
41096 Check for the lchmod function.
41098 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
41100 Update from coreutils.
41102 * lib/__fpending.h: Add copyright notice.
41103 * lib/fprintftime.h: Likewise.
41104 * lib/savedir.c: Use (C) in copyright notice.
41105 * lib/savedir.h: Likewise.
41107 2006-08-15 Jim Meyering <jim@meyering.net>
41109 * lib/at-func.c: New file, with the logic of all emulated at-functions.
41110 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
41111 in support of the EXPECTED_ERRNO macro.
41112 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
41113 definitions. Instead, define the appropriate symbols and include
41115 * lib/mkdirat.c (mkdirat): Likewise.
41116 * lib/fchmodat.c (fchmodat): Likewise.
41117 (ENOSYS): Remove definition.
41118 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
41119 it. Don't include "unistd--.h" -- it wasn't ever used.
41121 2006-01-17 Jim Meyering <jim@meyering.net>
41123 Rewrite fts.c not to change the current working directory,
41124 by using openat, fstatat, fdopendir, etc..
41126 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
41127 (HAVE_OPENAT_SUPPORT): Define.
41128 [_LIBC] (fchdir): Don't undef or define; no longer used.
41129 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
41130 Now, this `function' always succeeds, and consumes its file descriptor
41131 parameter -- so callers must not close such FDs. Update callers.
41132 (diropen_fd, opendirat, cwd_advance_fd): New functions.
41133 (diropen): Add parameter, SP. Adjust all callers.
41134 Implement using diropen_fd, rather than open.
41135 (fts_open): Initialize new member, fts_cwd_fd.
41136 Remove fts_rft-setting code.
41137 (fts_close): Close fts_cwd_fd, if necessary.
41138 (__opendir2): Define in terms of opendir or opendirat,
41139 depending on whether the FST_NOCHDIR flag is set.
41140 (fts_build): Since fts_safe_changedir consumes its FD, and since
41141 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
41142 and close the dup'd file descriptor upon failure.
41143 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
41144 (fts_safe_changedir): Tweak semantics to reflect that this function
41145 now calls cwd_advance_fd and hence consumes its FD argument.
41146 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
41147 [struct FTS] (fts_rft): Remove now-unused member.
41148 [struct FTS] (fts_cycle.state): Improve comment.
41150 * lib/openat.c (openat_needs_fchdir): New function.
41151 * lib/openat.h (openat_needs_fchdir): Declare it.
41153 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
41155 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
41156 Problem and fix reported by Pádraig Brady in
41157 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
41159 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
41161 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
41163 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
41165 * lib/memcoll.c (memcoll): Optimize for the common case where the
41166 arguments are bytewise equal.
41168 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
41170 * doc/regexprops-generic.texi: Add a copyright notice.
41172 2006-08-15 Bruno Haible <bruno@clisp.org>
41174 * modules/tmpdir (License): Change to LGPL.
41176 2006-08-15 Bruno Haible <bruno@clisp.org>
41178 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
41181 2006-08-14 Simon Josefsson <jas@extundo.com>
41183 * config/srclist.txt: Add gnupload.
41185 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
41187 Change copyright notice from LGPL 2 to GPL 2, since that's the
41188 standard form used in the gnulib repository.
41189 * tests/test-lock.c: Likewise.
41190 * tests/test-stdint.c: Likewise.
41191 * tests/test-tls.c: Likewise.
41193 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
41194 prelude-manager. User shorter URLs for GNU projects, without '?'.
41195 Add copyright notice.
41197 * check-module: Add copyright notice. Output a copyright
41198 notice if "--version" is specified.
41199 * modules/COPYING: New file.
41200 * tests/test-getaddrinfo.c: Add copyright notice.
41201 * tests/test-verify.c: Likewise.
41203 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
41205 Change copyright notice from LGPL 2 to GPL 2, since that's the
41206 standard form used in the gnulib repository.
41207 * lib/lock.c: LGPL -> GPL.
41208 * lib/lock.h: Likewise.
41209 * lib/strnlen1.c: Likewise.
41210 * lib/strnlen1.h: Likewise.
41211 * lib/tls.c: Likewise.
41212 * lib/tls.h: Likewise.
41213 * lib/tmpdir.c: Likewise.
41215 * lib/TODO: Remove; this belongs only in coreutils.
41217 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
41219 Add copyright notices to long-enough files that lack them, since
41220 otherwise the files aren't clearly free. Use the same notice that
41221 getdate.texi already uses.
41222 * doc/alloca-opt.texi: Add copyright notice.
41223 * doc/alloca.texi: Likewise.
41224 * doc/ctime.texi: Likewise.
41225 * doc/functions.texi: Likewise.
41226 * doc/gcd.texi: Likewise.
41227 * doc/gnulib-tool.texi: Likewise.
41228 * doc/inet_ntoa.texi: Likewise.
41229 * doc/visibility.texi: Likewise.
41231 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
41232 * doc/quote.texi: Add copyright notice.
41234 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
41235 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
41236 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
41237 Mention SunOS 5.11. Mention that everything before SunOS 5.7
41238 is now obsolete, and give a pointer to the Sun list.
41239 Add copyright notice.
41241 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
41243 * config/srclistvars.sh: Add copyright notice.
41245 2006-08-14 Eric Blake <ebb9@byu.net>
41247 Import the following change from libc:
41249 2006-08-12 Ulrich Drepper <drepper@redhat.com>
41252 * lib/misc/error.c: Add space between program name and message if file
41255 2006-08-12 Karl Berry <karl@gnu.org>
41257 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
41258 remove, these originate in gnulib now.
41260 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41262 * doc/Makefile (standards.info standards.html standards.dvi):
41263 Also depend on make-stds.texi.
41265 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
41267 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
41268 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
41270 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
41271 in wchar_t. Problem reported by Eric Blake.
41273 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
41274 LEN is smaller than SIZE. Suggested by Bruno Haible.
41275 Also, help the compiler to keep LEN in a register.
41277 2006-08-11 Eric Blake <ebb9@byu.net>
41279 * users.txt: Sort. Add tar.
41281 2006-08-11 Bruno Haible <bruno@clisp.org>
41283 * users.txt: New file.
41285 2006-08-11 Bruno Haible <bruno@clisp.org>
41287 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
41288 before <wchar.h>. Needed for OSF/1 and BSD/OS.
41290 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
41292 * modules/snprintf (Depends-on): Remove minmax.
41293 (Maintainer): Add self and Bruno.
41295 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
41297 * lib/.cppi-disable: Add snprintf.h, socket_.h.
41298 * lib/snprintf.c: Include <errno.h> and <limits.h>.
41299 (EOVERFLOW): Define if the system does not.
41300 Do not include "minmax.h"; it wasn't used.
41301 (snprintf): Don't assume size_t promotes to an unsigned type.
41302 Fix bug when generated string was too long for the buffer: the
41303 buffer's contents are supposed to be the initial prefix of the
41304 output. Don't assume vasnprintf returns EOVERFLOW if the size
41305 exceeds INT_MAX; do the check ourselves.
41307 Import the following changes from libc:
41309 2006-06-02 Jakub Jelinek <jakub@redhat.com>
41311 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
41312 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
41313 set wc to the byte which couldn't be converted.
41314 (re_string_reconstruct): Don't clear valid_raw_len before calling
41315 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
41316 tip_context using re_string_context_at.
41318 2006-05-02 Ulrich Drepper <drepper@redhat.com>
41320 * lib/posix/regex.h: g++ still cannot handled [restrict].
41322 2006-04-21 Ulrich Drepper <drepper@redhat.com>
41324 * lib/posix/regex.h: Remove special handling for VMS.
41326 2006-08-10 Jim Meyering <jim@meyering.net>
41328 * modules/same-inode: New module.
41329 * modules/dev-ino: New module.
41330 * modules/cycle-check: Depend on these modules, rather than simply
41331 including their .h files.
41332 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
41333 required via m4/cycle-check.m4.
41334 * modules/same: Depend on new same-inode module, rather than
41335 including same-inode.h.
41336 * modules/chdir-safer: New file.
41338 * modules/chown (Depends-on): Add stat-macros.
41340 2006-08-10 Jim Meyering <jim@meyering.net>
41342 * m4/cycle-check.m4: New file.
41343 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
41344 * m4/dev-ino.m4, m4/same-inode.m4: New files.
41346 2006-08-10 Eric Blake <ebb9@byu.net>
41348 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
41349 in from original proposal.
41351 2006-08-10 Eric Blake <ebb9@byu.net>
41352 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41354 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
41357 2006-08-10 Bruno Haible <bruno@clisp.org>
41359 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
41362 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
41364 Sync from coreutils.
41366 2006-07-19 Mike Frysinger <vapier@gentoo.org>
41368 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
41369 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
41371 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
41373 * modules/restrict: Remove; no longer needed now that we assume
41374 Autoconf 2.59 or later.
41375 * MODULES.html.sh: Remove 'restrict'.
41376 * modules/argp (Depends-on): Remove 'restrict'.
41377 * modules/base64 (Depends-on): Likewise.
41378 * modules/gc (Depends-on): Likewise.
41379 * modules/getaddrinfo (Depends-on): Likewise.
41380 * modules/glob (Depends-on): Likewise.
41381 * modules/inet_ntop (Depends-on): Likewise.
41382 * modules/inet_pton (Depends-on): Likewise.
41383 * modules/memxor (Depends-on): Likewise.
41384 * modules/regex (Depends-on): Likewise.
41385 * modules/strtok_r (Depends-on): Likewise.
41386 * modules/time_r (Depends-on): Likewise.
41388 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
41390 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
41391 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
41392 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41393 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
41394 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
41395 * m4/memxor.m4 (gl_MEMXOR): Likewise.
41396 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
41397 gl_C_RESTRICT replaced by AC_C_RESTRICT.
41399 Merge from coreutils.
41400 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
41401 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
41402 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41403 * m4/time_r.m4 (gl_TIME_R): Likewise.
41405 2006-08-09 Karl Berry <karl@gnu.org>
41407 * config/srclist.txt: no more gettext-tools, per Bruno.
41409 2006-08-08 Eric Blake <ebb9@byu.net>
41411 * modules/verror: New module.
41412 * MODULES.html.sh: Document it.
41414 2006-08-08 Eric Blake <ebb9@byu.net>
41416 * lib/verror.h, lib/verror.c: New files.
41418 2006-08-08 Eric Blake <ebb9@byu.net>
41420 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
41421 verror_at_line output complies with GNU Coding Standards even when
41424 2006-08-07 Bruno Haible <bruno@clisp.org>
41426 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
41428 Reported by Ralf Wildenhues.
41430 2006-08-07 Bruno Haible <bruno@clisp.org>
41432 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
41433 in an AC_DEFUN. Needed so that the autoconf snippets can use
41436 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41438 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41439 Initialize pkgdata_DATA.
41440 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
41443 2006-08-06 Eric Blake <ebb9@byu.net>
41445 * lib/error.h: Fold in some upstream changes from glibc.
41446 * lib/error.c: Likewise.
41448 2006-08-04 Bruno Haible <bruno@clisp.org>
41450 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41451 Make the mostlyclean-local rule depend on mostlyclean-generic.
41452 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
41454 2006-07-31 Bruno Haible <bruno@clisp.org>
41456 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
41457 <stdlib.h>, <string.h>.
41459 2006-07-30 Bruno Haible <bruno@clisp.org>
41461 * modules/readlink (License): Change to LGPL.
41463 2006-07-30 Bruno Haible <bruno@clisp.org>
41465 * modules/javaversion (Makefile.am): Distribute javaversion.java and
41466 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
41467 set PKGDATADIR to point to it.
41469 2006-07-30 Bruno Haible <bruno@clisp.org>
41471 * modules/csharpexec (configure.ac): Comment out macro invocation.
41472 * modules/javaexec (configure.ac): Likewise.
41473 * modules/javacomp-script (configure.ac): Likewise.
41475 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
41477 2006-07-30 Bruno Haible <bruno@clisp.org>
41479 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
41482 2006-07-30 Bruno Haible <bruno@clisp.org>
41484 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
41486 2006-07-30 Bruno Haible <bruno@clisp.org>
41488 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41489 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
41492 2006-07-29 Bruno Haible <bruno@clisp.org>
41494 Make it possible for gnulib-tool to work with locally modified or
41495 augmented gnulib repositories.
41496 * gnulib-tool (func_usage): Document --local-dir option.
41497 (local_gnulib_dir): New variable.
41498 Handle --local-dir option.
41499 (func_lookup_file): New function.
41500 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
41501 (func_get_description, func_get_filelist, func_get_description,
41502 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
41503 func_get_automake_snippet, func_get_include_directive,
41504 func_get_license, func_get_maintainer): Use func_lookup_file.
41505 (func_import, func_create_testdir): Use func_lookup_file.
41507 2006-07-29 Bruno Haible <bruno@clisp.org>
41509 * modules/setenv (Depends-on): Add unistd.
41511 2006-07-29 Bruno Haible <bruno@clisp.org>
41513 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
41515 2006-07-29 Bruno Haible <bruno@clisp.org>
41517 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
41519 2006-07-29 Bruno Haible <bruno@clisp.org>
41521 * gnulib-tool (import, update): If there is no Makefile.am, look at
41522 aclocal.m4, instead of bailing out.
41524 2006-07-29 Bruno Haible <bruno@clisp.org>
41526 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
41527 Categorize the options by when they are useful.
41529 2006-07-29 Bruno Haible <bruno@clisp.org>
41531 * gnulib-tool (func_usage): Document option --no-libtool.
41532 Handle option --no-libtool.
41533 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
41534 for changed semantics of $libtool variable.
41535 (func_import): Likewise. If libtool is not used, show this through
41536 an option --no-libtool.
41537 (func_create_testdir): Update.
41539 2006-07-29 Bruno Haible <bruno@clisp.org>
41541 * gnulib-tool (func_import): Extend error message about missing
41544 2006-07-29 Bruno Haible <bruno@clisp.org>
41546 * gnulib-tool (func_import): Don't create the $docbase directory if
41547 there is no file to store there.
41549 2006-07-29 Bruno Haible <bruno@clisp.org>
41551 * gnulib-tool (autoconf_minversion): If a --dir option is given and
41552 relevant, look for configure.ac there, not in the current directory.
41553 Also use a simple search for AC_PREREQ, not "autoconf --trace".
41555 2006-07-29 Bruno Haible <bruno@clisp.org>
41557 * gnulib-tool (SORT): New variable.
41558 (func_usage): Undocument --assume-autoconf option.
41559 Remove --assume-autoconf option handling.
41560 (autoconf_minversion): Determine from the contents of configure.ac.
41561 (func_import): Remove autoconf_minversion handling.
41562 Suggested by Eric Blake.
41564 2006-07-29 Bruno Haible <bruno@clisp.org>
41566 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
41568 2006-07-29 Bruno Haible <bruno@clisp.org>
41570 * config/srclist.txt (*setenv.[ch]): Remove rules.
41572 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41574 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
41576 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41578 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
41581 2006-07-28 Simon Josefsson <jas@extundo.com>
41583 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
41584 * modules/inet_pton (Depends-on): Likewise.
41586 2006-07-28 Simon Josefsson <jas@extundo.com>
41588 * m4/netinet_in_h.m4: New file.
41590 2006-07-28 Simon Josefsson <jas@extundo.com>
41592 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
41595 2006-07-28 Simon Josefsson <jas@extundo.com>
41597 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
41600 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
41602 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
41603 setgid on directories only if they set these bits.
41604 * lib/modechange.h: Remove obsolete comment about masks.
41606 2006-07-28 Eric Blake <ebb9@byu.net>
41608 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
41611 2006-07-28 Bruno Haible <bruno@clisp.org>
41613 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
41615 2006-07-28 Bruno Haible <bruno@clisp.org>
41617 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
41619 2006-07-28 Bruno Haible <bruno@clisp.org>
41621 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41622 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41624 Avoids link error on FreeBSD 4.x.
41625 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41627 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
41629 * lib/mbswidth.c (iswcntrl): Likewise.
41631 2006-07-27 Bruno Haible <bruno@clisp.org>
41633 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
41636 2006-07-27 Bruno Haible <bruno@clisp.org>
41638 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
41639 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
41642 2006-07-26 Eric Blake <ebb9@byu.net>
41644 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
41646 2006-07-26 Eric Blake <ebb9@byu.net>
41648 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
41649 like mingw that lack mkstemp.
41650 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
41651 avoid compilation warning on mingw.
41653 2006-07-26 Bruno Haible <bruno@clisp.org>
41655 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
41656 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
41657 INT_FAST*_MIN, INTPTR_MIN.
41659 2006-07-25 Bruno Haible <bruno@clisp.org>
41661 * modules/version-etc (Depends-on): Add stdarg.
41663 2006-07-25 Bruno Haible <bruno@clisp.org>
41665 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
41668 2006-07-25 Bruno Haible <bruno@clisp.org>
41670 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
41671 defined in <stdarg.h> or config.h.
41673 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
41675 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
41676 (gl_STDIO_SAFER): Remove.
41678 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
41680 * MODULES.html.sh (File stream based Input/Output):
41681 Add fopen-safer, tmpfile-safer; remove stdio-safer.
41682 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
41683 * modules/fopen-safer, modules/tmpfile-safer: New files.
41684 * modules/stdio-safer: Remove.
41686 2006-07-24 Bruno Haible <bruno@clisp.org>
41688 * modules/tmpdir: New file.
41689 * MODULES.html.sh (File system functions): Add it.
41691 2006-07-24 Bruno Haible <bruno@clisp.org>
41693 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
41694 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
41696 2006-07-24 Bruno Haible <bruno@clisp.org>
41698 * modules/clean-temp: New file.
41700 2006-07-24 Bruno Haible <bruno@clisp.org>
41702 * m4/tmpdir.m4: New file, from GNU gettext.
41704 2006-07-24 Bruno Haible <bruno@clisp.org>
41706 * lib/tmpdir.h: New file, from GNU gettext.
41707 * lib/tmpdir.c: New file, from GNU gettext.
41709 2006-07-24 Bruno Haible <bruno@clisp.org>
41711 * lib/clean-temp.h: New file, from GNU gettext.
41712 * lib/clean-temp.c: New file, from GNU gettext.
41714 2006-07-23 Eric Blake <ebb9@byu.net>
41716 * modules/stdio-safer (Files): Add tmpfile-safer.c.
41717 (Depends-on): Add binary-io.
41719 2006-07-23 Eric Blake <ebb9@byu.net>
41721 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
41723 2006-07-23 Eric Blake <ebb9@byu.net>
41725 * lib/tmpfile-safer.c: New file.
41726 * lib/stdio-safer.h (fopen_safer): Add prototype.
41727 * lib/stdio--.h (tmpfile): Make safer.
41729 2006-07-23 Bruno Haible <bruno@clisp.org>
41731 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
41732 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
41733 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
41734 gl_linked_remove_at): Use it.
41736 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41737 and Simon Josefsson <jas@extundo.com>
41739 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
41741 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
41743 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
41745 * modules/close-stream: New file.
41746 * modules/closeout (Description): Make it clear that it exits
41747 with a diagnostic on error.
41748 (Depends-on): Add close-stream. Remove fpending, stdbool.
41749 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
41751 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
41753 * m4/close-stream.m4: New file.
41755 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
41757 * lib/close-stream.c, lib/close-stream.h: New files.
41759 2006-07-22 Bruno Haible <bruno@clisp.org>
41761 Merge from GNU gettext 0.15.
41763 2006-05-01 Bruno Haible <bruno@clisp.org>
41765 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
41767 2006-07-22 Bruno Haible <bruno@clisp.org>
41769 * modules/javaversion: New file.
41770 * MODULES.html.sh (Java): Add javaversion.
41772 2006-03-12 Bruno Haible <bruno@clisp.org>
41774 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
41776 2005-12-04 Bruno Haible <bruno@clisp.org>
41778 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
41781 2006-06-21 Bruno Haible <bruno@clisp.org>
41783 Avoid warnings from recent versions of mcs.
41784 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
41785 -o, -L, -r any more. Use options documented since mcs-1.0
41786 instead. Similarly for -g.
41788 2005-12-04 Bruno Haible <bruno@clisp.org>
41790 * build-aux/csharpcomp.sh.in: Suffix for resources is
41791 .resources, not .resource.
41793 2005-07-09 Bruno Haible <bruno@clisp.org>
41795 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
41797 Reported by Mark Junker <mjscod@gmx.de>.
41799 2006-07-22 Bruno Haible <bruno@clisp.org>
41801 * modules/gettext: Upgrade to gettext-0.15.
41802 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
41804 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
41806 2006-07-22 Bruno Haible <bruno@clisp.org>
41808 Merge from GNU gettext 0.15.
41810 2006-03-25 Bruno Haible <bruno@clisp.org>
41812 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
41814 2006-07-21 Bruno Haible <bruno@clisp.org>
41816 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
41819 2006-05-09 Bruno Haible <bruno@clisp.org>
41821 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
41822 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
41823 for the conftestver execution.
41825 2006-05-01 Bruno Haible <bruno@clisp.org>
41827 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
41828 optional target-version argument. Verify that the compiler
41829 groks source of the specified source-version, or add -source
41830 option as necessary. Verify that the compiler produces
41831 bytecode in the specified target-version, or add -target and
41832 -source options as necessary. Make the result of the test
41833 available as variable CONF_JAVAC. Also log error output in
41836 2006-03-11 Bruno Haible <bruno@clisp.org>
41838 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
41840 2006-05-09 Bruno Haible <bruno@clisp.org>
41842 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
41843 CLASSPATH_SEPARATOR to a semicolon.
41845 2006-03-12 Bruno Haible <bruno@clisp.org>
41847 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
41848 available as variable CONF_JAVA, for subsequent autoconf
41849 tests. Also log error output in config.log.
41851 2006-07-19 Bruno Haible <bruno@clisp.org>
41853 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
41854 that getline works on glibc2 systems. Needed to avoid trouble
41856 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
41858 2005-12-04 Bruno Haible <bruno@clisp.org>
41860 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
41861 launcher (untested).
41863 2005-12-04 Bruno Haible <bruno@clisp.org>
41865 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
41867 2006-07-22 Bruno Haible <bruno@clisp.org>
41869 * gettext.m4: Update from GNU gettext-0.15.
41870 * nls.m4: Likewise.
41872 * inttypes-pri.m4: Likewise.
41873 * inttypes-h.m4: Renamed from inttypes.m4.
41874 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
41876 2006-07-22 Bruno Haible <bruno@clisp.org>
41878 Merge from GNU gettext 0.15.
41880 2005-07-05 Bruno Haible <bruno@clisp.org>
41882 * printf-args.c (printf_fetchargs): Work around broken
41883 definition of wint_t on mingw.
41885 2005-02-12 Bruno Haible <bruno@clisp.org>
41887 * xallocsa.h: Add extern "C" for C++.
41889 2006-05-17 Bruno Haible <bruno@clisp.org>
41891 Cygwin portability.
41892 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
41894 2006-04-30 Bruno Haible <bruno@clisp.org>
41896 * progreloc.c: Include <mach-o/dyld.h> if available.
41897 (find_executable): Use _NSGetExecutablePath when possible.
41899 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
41901 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
41904 2005-12-29 Bruno Haible <bruno@clisp.org>
41906 * progreloc.c (set_program_name_and_installdir): Fix
41909 2005-12-04 Bruno Haible <bruno@clisp.org>
41911 Cygwin portability.
41912 * progreloc.c: Include <windows.h> also on Cygwin.
41913 (find_executable): Add support for Cygwin.
41914 (set_program_name_and_installdir): Handle also platforms with
41917 2006-07-11 Bruno Haible <bruno@clisp.org>
41919 * javacomp.c: Fix a comment.
41920 Reported by Jim Meyering.
41922 2006-04-30 Bruno Haible <bruno@clisp.org>
41924 * javacomp.h (compile_java_class): Add source_version,
41925 target_version arguments.
41926 * javacomp.c: Rewritten to choose only a compiler that
41927 respects the specified source_version and target_version.
41929 2006-06-27 Bruno Haible <bruno@clisp.org>
41931 Assume correct S_ISDIR macro.
41932 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
41934 2006-07-22 Bruno Haible <bruno@clisp.org>
41936 * javaversion.h: New file, from GNU gettext.
41937 * javaversion.c: New file, from GNU gettext.
41938 * javaversion.java: New file, from GNU gettext.
41939 * javaversion.class: New file, from GNU gettext.
41941 2006-05-17 Bruno Haible <bruno@clisp.org>
41943 Cygwin portability.
41944 * javaexec.c (execute_java_class): Test for jview program
41947 2006-04-09 Bruno Haible <bruno@clisp.org>
41949 * fatal-signal.c: Don't include string.h.
41950 (at_fatal_signal): Use a copying loop instead of memcpy.
41952 2005-12-04 Bruno Haible <bruno@clisp.org>
41954 * csharpexec.c: Add support for 'clix' launcher (untested).
41955 (execute_csharp_using_sscli): New function.
41956 (execute_csharp_program): Call it.
41958 2006-06-21 Bruno Haible <bruno@clisp.org>
41960 Avoid warnings from recent versions of mcs.
41961 * csharpcomp.c (compile_csharp_using_mono): Don't use options
41962 -o, -L, -r any more. Use options documented since mcs-1.0
41963 instead. Similarly for -g.
41965 2005-07-09 Bruno Haible <bruno@clisp.org>
41967 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
41969 Reported by Mark Junker <mjscod@gmx.de>.
41971 2006-06-17 Bruno Haible <bruno@clisp.org>
41973 * config.charset: Update for NetBSD 3.0.
41975 2006-05-17 Bruno Haible <bruno@clisp.org>
41977 Cygwin portability.
41978 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
41980 2006-05-16 Bruno Haible <bruno@clisp.org>
41982 * localcharset.c [CYGWIN]: Include <windows.h>.
41983 (get_charset_aliases): For Cygwin, return the same CPxxx
41984 aliases list as under WIN32.
41985 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
41986 the environment variables. Fall back to GetACP().
41988 2006-04-05 Bruno Haible <bruno@clisp.org>
41990 * config.charset: Update Juan Manuel Guerrero's address.
41992 2005-02-12 Bruno Haible <bruno@clisp.org>
41994 * allocsa.h: Add extern "C" for C++.
41996 2005-02-10 Bruno Haible <bruno@clisp.org>
41998 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
41999 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
42001 2006-07-22 Bruno Haible <bruno@clisp.org>
42003 * gettext.h: Update to GNU gettext-0.15.
42005 2006-07-22 Bruno Haible <bruno@clisp.org>
42007 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
42008 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
42009 lib-prefix.m4, longdouble.m4, ssize_t.m4.
42011 2006-07-21 Eric Blake <ebb9@byu.net>
42013 * modules/stdlib-safer: New file.
42014 * MODULES.html.sh (File stream based Input/Output): Add
42017 2006-07-21 Eric Blake <ebb9@byu.net>
42019 * lib/stdlib-safer.h: New file from coreutils, required by
42022 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
42024 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
42026 2006-07-20 Bruno Haible <bruno@clisp.org>
42028 * gnulib-tool: Recognize new option --assume-autoconf.
42029 (autoconf_minversion): New variable.
42030 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
42032 2006-07-20 Bruno Haible <bruno@clisp.org>
42034 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
42036 2006-07-19 Derek R. Price <derek@ximbiot.com>
42038 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
42039 Reindent and repaginate.
42041 2006-07-19 Derek Price <derek@ximbiot.com>
42043 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
42046 2006-07-17 Bruno Haible <bruno@clisp.org>
42048 * modules/list: New file.
42049 * modules/array-list: New file.
42050 * modules/carray-list, modules/carray-list-tests: New files.
42051 * modules/linked-list, modules/linked-list-tests: New files.
42052 * modules/avltree-list, modules/avltree-list-tests: New files.
42053 * modules/rbtree-list, modules/rbtree-list-tests: New files.
42054 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
42055 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
42056 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
42057 * modules/oset: New file.
42058 * modules/array-oset: New file.
42059 * modules/avltree-oset, modules/avltree-oset-tests: New files.
42060 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
42061 * tests/test-carray_list.c: New file.
42062 * tests/test-linked_list.c: New file.
42063 * tests/test-avltree_list.c: New file.
42064 * tests/test-rbtree_list.c: New file.
42065 * tests/test-linkedhash_list.c: New file.
42066 * tests/test-avltreehash_list.c: New file.
42067 * tests/test-rbtreehash_list.c: New file.
42068 * tests/test-avltree_oset.c: New file.
42069 * tests/test-rbtree_oset.c: New file.
42070 * MODULES.html.sh (Container data structures): New section.
42072 2006-07-17 Bruno Haible <bruno@clisp.org>
42074 * m4/gl_list.m4: New file.
42076 2006-07-17 Bruno Haible <bruno@clisp.org>
42078 * lib/gl_list.h: New file.
42079 * lib/gl_list.c: New file.
42080 * lib/gl_array_list.h: New file.
42081 * lib/gl_array_list.c: New file.
42082 * lib/gl_carray_list.h: New file.
42083 * lib/gl_carray_list.c: New file.
42084 * lib/gl_linked_list.h: New file.
42085 * lib/gl_linked_list.c: New file.
42086 * lib/gl_anylinked_list1.h: New file.
42087 * lib/gl_anylinked_list2.h: New file.
42088 * lib/gl_avltree_list.h: New file.
42089 * lib/gl_avltree_list.c: New file.
42090 * lib/gl_anyavltree_list1.h: New file.
42091 * lib/gl_anyavltree_list2.h: New file.
42092 * lib/gl_rbtree_list.h: New file.
42093 * lib/gl_rbtree_list.c: New file.
42094 * lib/gl_anyrbtree_list1.h: New file.
42095 * lib/gl_anyrbtree_list2.h: New file.
42096 * lib/gl_anytree_list1.h: New file.
42097 * lib/gl_anytree_list2.h: New file.
42098 * lib/gl_linkedhash_list.h: New file.
42099 * lib/gl_linkedhash_list.c: New file.
42100 * lib/gl_anyhash_list1.h: New file.
42101 * lib/gl_anyhash_list2.h: New file.
42102 * lib/gl_avltreehash_list.h: New file.
42103 * lib/gl_avltreehash_list.c: New file.
42104 * lib/gl_rbtreehash_list.h: New file.
42105 * lib/gl_rbtreehash_list.c: New file.
42106 * lib/gl_anytreehash_list1.h: New file.
42107 * lib/gl_anytreehash_list2.h: New file.
42109 * lib/gl_oset.h: New file.
42110 * lib/gl_oset.c: New file.
42111 * lib/gl_array_oset.h: New file.
42112 * lib/gl_array_oset.c: New file.
42113 * lib/gl_avltree_oset.h: New file.
42114 * lib/gl_avltree_oset.c: New file.
42115 * lib/gl_rbtree_oset.h: New file.
42116 * lib/gl_rbtree_oset.c: New file.
42117 * lib/gl_anytree_oset.h: New file.
42119 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
42121 * m4/mkancesdirs.m4: New file.
42122 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
42123 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
42124 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
42127 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
42129 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
42130 * lib/mkancesdirs.h: New files.
42131 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
42132 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
42133 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
42134 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
42135 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
42136 callers changed. Revamp internals significantly, by not
42137 attempting to create directories that are temporarily more
42138 permissive than the final results. Do not attempt to use
42139 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
42140 This removes some race conditions, fixes some bugs, and simplifies
42141 things. Use new dirchownmod function to do owner and mode changes.
42142 * lib/mkdir-p.h: Likewise.
42143 * lib/modechange.c (octal_to_mode): New function.
42144 (struct mode_change): New member mentioned.
42145 (make_node_op_equals): New arg mentioned. All callers changed.
42146 (mode_compile): Keep track of which mode bits the user has explicitly
42148 (mode_adjust): New arg DIR, so that we implement the X op correctly.
42149 New arg PMODE_BITS, to keep track of which mode bits the user
42150 mentioned; it treats S_ISUID and S_ISGID speciall.
42151 All callers changed.
42152 * lib/modechange.h: Likewise.
42154 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
42156 * MODULES.html.sh: Add mkancestors.
42157 * modules/mkancesdirs: New module.
42158 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
42159 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
42160 The chdir-safer and afs files are now orphans; I'll remove them
42161 unless someone speaks up.
42162 Add lib/dirchownmod.c, lib/dirchownmod.h.
42163 (Depends-on): Remove alloca, chown, save-cwd, dirname.
42164 Add lchown, mkancesdirs.
42165 (Maintainer): Add self.
42167 2006-07-15 Karl Berry <karl@gnu.org>
42169 * gnulib-tool: help message wording/arrangement.
42171 2006-07-14 Simon Josefsson <jas@extundo.com>
42173 * doc/gnulib.texi (Libtool and Windows): New section.
42175 2006-07-12 Simon Josefsson <jas@extundo.com>
42177 * modules/gendocs (License): Fix license, approved by Karl.
42179 2006-07-12 Eric Blake <ebb9@byu.net>
42181 * MODULES.html.sh: Add gendocs.
42183 2006-07-11 Eric Blake <ebb9@byu.net>
42185 * modules/fdl: New module, to install doc/fdl.texi.
42186 * MODULES.html.sh: Add new section for documentation modules.
42187 * gnulib-tool: Avoid space-tab.
42188 (--doc-base): New option, to manage files from doc.
42190 2006-07-11 Eric Blake <ebb9@byu.net>
42192 * m4/absolute-header.m4: Fix comments to match recent change.
42194 2006-07-11 Eric Blake <ebb9@byu.net>
42196 * gnulib-tool: List --doc-base before --tests-base.
42198 2006-07-11 Derek R. Price <derek@ximbiot.com>
42200 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
42202 2006-07-11 Bruno Haible <bruno@clisp.org>
42204 * README: Mention where to put documentation.
42206 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42208 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
42210 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
42212 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
42215 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
42217 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
42218 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
42219 "no/such/file/stdint.h" when there is no such file, so that
42220 the resulting C code can be parsed by dodgy compilers.
42221 Problems reported by Bob Proulx.
42223 2006-07-10 Derek R. Price <derek@ximbiot.com>
42225 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
42226 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
42227 macros into the GNU _D_EXACT_NAMLEN.
42228 * lib/savedir.c: Likewise.
42229 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
42231 2006-07-10 Derek R. Price <derek@ximbiot.com>
42232 and Paul Eggert <eggert@cs.ucla.edu>
42234 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
42236 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
42237 macros into the GNU _D_EXACT_NAMLEN.
42239 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
42241 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
42242 around the absolute name, to work around a problem with the HP-UX
42243 11.23 native C compiler, reported by Bob Proulx.
42245 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
42247 * doc/maintain.texi, make-stds.texi: Sync from
42248 <http://savannah.gnu.org/projects/gnustandards>.
42250 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
42252 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
42254 2006-07-09 Jim Meyering <jim@meyering.net>
42256 * m4/glob.m4: Remove a doubled word in a comment.
42258 2006-07-09 Jim Meyering <jim@meyering.net>
42260 * lib/argp-pv.c: Remove a doubled word in a comment.
42261 * lib/check-version.c (check_version): Likewise.
42262 * lib/javacomp.c (compile_java_class): Likewise.
42264 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
42266 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
42267 for the benefit of people using Autoconf 2.60. If you want to
42268 support older Autoconf versions you can copy m4/onceonly_2_57.m4
42269 (or m4/onceonly.m4, if pre-2.57) manually.
42271 2006-07-08 Jim Meyering <jim@meyering.net>
42273 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
42275 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
42276 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
42279 2006-07-08 Jim Meyering <jim@meyering.net>
42281 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
42283 2006-07-07 Simon Josefsson <jas@extundo.com>
42285 * tests/test-crc.c: Change expected crc value, the test vector
42286 were probably computed using the old broken crc.c?
42288 2006-07-06 Simon Josefsson <jas@extundo.com>
42290 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
42291 now the canonical place for the M4 file).
42293 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
42294 from the sys_socket dependency now.
42296 * modules/inet_pton (Files): Ditto.
42298 * modules/inet_ntop (Files): Ditto.
42300 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
42302 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
42303 not gl_PREREQ_GETUSERSHELL.
42305 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42307 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
42308 with only one argument, for Autoconf 2.60.
42309 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
42310 expand to nothing, so add a shell command to avoid syntax error.
42311 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
42313 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42315 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
42317 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
42319 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
42320 no longer needed. Check for isblank decl.
42321 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
42322 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
42325 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
42327 * lib/getloadavg.c: Use __VMS, not VMS.
42328 * lib/getopt.c: Likewise.
42329 * lib/getpagesize.h: Likewise.
42330 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
42331 and probably does not work.
42333 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
42335 * lib/.cppi-disable: Add wcwidth.
42336 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
42337 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
42338 (ISGRAPH): Remove. All uses changed to isgraph.
42339 (FOLD) [!defined _LIBC]: Remove special case.
42340 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
42341 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
42343 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
42346 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
42348 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
42349 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
42350 brackets. Other minor changes to suppress some compiler
42353 2006-07-06 Derek R. Price <derek@ximbiot.com>
42354 and Paul Eggert <eggert@cs.ucla.edu>
42356 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
42357 of invoking obsolescent AC_HEADER_DIRENT macro.
42358 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
42359 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
42360 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42361 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
42362 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
42363 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42364 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
42365 * m4/readdir.m4: Remove; no longer needed.
42367 2006-07-06 Derek R. Price <derek@ximbiot.com>
42368 and Paul Eggert <eggert@cs.ucla.edu>
42370 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
42371 Don't worry about this obsolete case any more.
42372 (HAVE_DIR): Remove. All uses removed; we now assume you can read
42374 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
42375 worry about this obsolete case any more.
42376 * lib/fts.c: Likewise.
42377 * lib/getcwd.c: Likewise.
42378 * lib/glob.h: Likewise.
42379 * lib/savedir.c: Likewise.
42381 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
42383 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
42384 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
42385 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
42388 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42389 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42390 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
42392 * m4/getdate.m4 (gl_GETDATE): Likewise.
42393 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42394 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42395 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42396 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42397 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42398 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42399 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
42402 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
42404 * lib/memcasecmp.c: Include <limits.h>.
42405 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
42406 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
42407 Don't assume isdigit succeeds only on '0' through '9'.
42409 2006-07-05 Eric Blake <ebb9@byu.net>
42411 * modules/getaddrinfo (Depends-on): Add snprintf.
42413 2006-07-05 Eric Blake <ebb9@byu.net>
42415 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
42416 to avoid 'header present but could not be compiled' on cygwin.
42418 2006-07-05 Eric Blake <ebb9@byu.net>
42420 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
42421 missing from netdb.h.
42422 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
42424 2006-07-05 Derek R. Price <derek@ximbiot.com>
42426 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
42428 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
42429 * m4/getdate.m4 (gl_GETDATE): Likewise.
42430 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42431 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42432 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42433 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42434 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42436 2006-07-05 Derek R. Price <derek@ximbiot.com>
42438 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
42439 All uses of is_space replaced by isspace.
42440 * lib/exit.h: Don't talk about STDC_HEADERS.
42441 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
42442 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
42443 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
42444 replaced by isprint etc.
42445 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
42446 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42447 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
42448 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
42449 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
42450 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42452 2006-07-05 Bruno Haible <bruno@clisp.org>
42454 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
42455 the function exists, before testing against AIX.
42456 Reported by Martin Lambers <marlam@marlam.de>.
42458 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
42460 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
42461 From Mark D. Baushke.
42463 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
42465 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
42466 to the absolute name, not just one, to bypass Sun C 5.8's
42467 "warning: #include of /usr/include/... may be non-portable".
42469 2006-07-04 Eric Blake <ebb9@byu.net>
42471 * modules/dirname-tests: New test module.
42472 * tests/test-dirname.c: New file, replacing dirname.c
42473 TEST_DIRNAME section that was recently deleted.
42475 2006-07-04 Bruno Haible <bruno@clisp.org>
42477 Assume ANSI C header files and <ctype.h> functions.
42478 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
42479 (mbsnwidth): Use isprint, iscntrl instead.
42481 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
42483 Merge from coreutils.
42484 * MODULES.html.sh: Add xstrtold.
42485 * modules/xstrtold: New file.
42486 * modules/cycle-check (Files): Add lib/same-inode.h.
42487 * modules/dirname (Files): Add m4/double-slash-root.m4.
42488 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
42489 * modules/mkdir-p (Files): Add lib/same-inode.h.
42490 * modules/same (Files): Add lib/same-inode.h.
42492 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
42494 * m4/absolute-header.m4: Renamed from full-header-path.m4.
42495 This is to keep the terminology clean; POSIX talks about
42496 "absolute pathnames", not "full pathnames", but the GNU
42497 Coding Standards say to use "path" for something else;
42498 so use "absolute" to keep both sides happy.
42499 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
42500 Set gl_absolute_header, not gl_full_header_path.
42501 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
42502 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
42505 Merge from coreutils.
42507 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
42509 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
42510 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
42511 want to require the building of c-strtod.o.
42512 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
42513 needs -lm directly.
42514 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
42516 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
42518 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
42519 --as-needed option if available. Problem reported by Albert Chin in
42520 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
42521 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
42522 cc merely issues a bunch of annoying warnings for --as-needed
42523 (this problem was reported by Bob Proulx). Also, try linking with
42524 -lm to detect a bug in binutils 2.16 (this problem was reported
42525 by Ralf Wildenhues).
42527 2006-06-18 Jim Meyering <jim@meyering.net>
42529 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
42530 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
42532 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
42533 also check for glibc-2.4's abort-inducing bug.
42535 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
42536 Low-probability clean-up should be to use rmdir to get rid of
42537 the just-created directory, not unlink.
42539 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
42540 configure fail, and request a bug report to inform us about it.
42541 Add a comment that, barring reports to the contrary, in 2007 we'll
42542 assume ftruncate is universally available.
42544 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
42546 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
42548 2006-03-12 Jim Meyering <jim@meyering.net>
42550 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
42551 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
42552 * m4/same.m4 (gl_SAME): Likewise.
42553 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
42555 2006-03-11 Eric Blake <ebb9@byu.net>
42557 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
42558 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
42559 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
42560 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
42562 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
42564 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
42565 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
42566 reported by Mark D. Baushke, one in
42567 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
42569 Merge from coreutils.
42571 * lib/.cppi-disable: Add stdint_.h.
42572 * lib/.cvsignore: Add stdint.h.
42574 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
42576 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
42577 both double and long double versions.
42578 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
42579 * lib/xstrtold.c: New file.
42580 * lib/xstrtod.h (xstrtold): New decl.
42582 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
42584 * lib/filemode.c (setst): Remove.
42585 (strmode): Rewrite to avoid setst. This makes the code shorter,
42586 (arguably) clearer, and the generated code is a bit smaller on my
42587 Debian GNU/Linux stable x86 host.
42589 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
42591 * lib/filemode.c: Include "filemode.h" first, to test the interface.
42592 Assume that filemode.h includes sys/types.h and sys/stat.h.
42593 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
42594 (ftypelet): Reorder to put common cases first, for efficiency.
42595 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
42597 (strmode): Renamed from mode_string, and now stores 12 bytes instead
42598 of 10, for compatibility with FreeBSD. All callers changed.
42599 (filemodestring): Now stores 12 bytes instead of 10, and sets file
42600 types that can't be deduced solely from st_mode. First arg is now a
42602 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
42603 (strmode): Renamed from mode_string.
42604 (filemodestring): New decl.
42605 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
42606 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
42608 (S_ISPORT, S_ISWHT): New macros, if not already defined.
42610 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
42612 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
42613 fsusage.h now does that. Include fsusage.h first, to test interface.
42614 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
42615 at most one method (the old code could have generated decls that
42616 didn't conform to C89, not that this was ever exercised).
42617 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
42619 2006-03-19 Jim Meyering <jim@meyering.net>
42621 Work even in a chroot where d_ino values for entries in "/"
42622 don't match the stat.st_ino values for the same names.
42623 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
42624 number, iterate through all entries again, using lstat instead.
42625 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
42626 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
42628 * lib/getcwd.c (__getcwd): Clarify a comment.
42629 Use memcpy in place of a call to strcpy.
42631 2006-03-12 Jim Meyering <jim@meyering.net>
42633 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
42634 matches that of the current directory (which we're about to chdir ".."
42635 out of), then save the dev-ino of the parent, instead.
42637 * lib/same-inode.h (SAME_INODE): New file/macro.
42638 * lib/chdir-safer.c (SAME_INODE): Remove definition.
42639 Include "same-inode.h", instead.
42640 * lib/same.c: Likewise.
42641 * lib/cycle-check.h: Include "same-inode.h".
42642 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
42643 * lib/cycle-check.c (SAME_INODE): Remove definition.
42644 * lib/root-dev-ino.h: Include "same-inode.h".
42646 2006-03-11 Eric Blake <ebb9@byu.net>
42648 * lib/same.c (same_name): s/base_name/last_component/
42649 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
42650 * lib/filenamecat.c (file_name_concat): Likewise.
42652 2006-03-11 Eric Blake <ebb9@byu.net>,
42653 Paul Eggert <eggert@cs.ucla.edu>
42655 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
42656 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
42658 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
42659 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
42660 (last_component): New method.
42661 * lib/dirname.c (dir_len): Determine when drive letters need a
42662 subsequent slash. Preserve // when it is special.
42663 (dir_name): Don't append dot when drive letter is absolute.
42664 [TEST_DIRNAME]: Move into a full-blown gnulib test.
42665 * lib/basename.c (base_name): New semantics - malloc the result.
42666 Preserve // when it is special. Preserve relative files that look
42667 like drive letters.
42668 (base_len): Preserve // when it is special.
42669 (last_component): New method, similar to old base_name semantics.
42670 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
42671 base_name. Strip redundant slashes from ///.
42673 2006-07-03 Jim Meyering <jim@meyering.net>
42675 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
42676 macro is used before the first cycle_check call.
42678 2006-07-03 Eric Blake <ebb9@byu.net>
42680 * modules/dirname (Depends-on): Add xstrndup.
42682 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
42684 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
42685 test cases, so that config.log is a bit easier to follow.
42687 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
42689 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
42690 both are 64 bits, since this seems to be the tradition, and this
42691 prevents gcc -Wformat from warning about usages with PRIuMAX. If
42692 we ever run into a host that prefers long long to long in this
42693 case, we'll need another configure-time test. Problem reported by
42696 2006-07-02 Eric Blake <ebb9@byu.net>
42698 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
42700 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
42702 * modules/inttypes (Depends-on): No longer depends on stdint.
42703 * modules/stdint (Description): Say more about assumptions.
42704 Say that the fast types might differ. Say macros are used.
42705 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
42706 (Makefile.am): Revise list of substituted symbols to match
42708 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
42709 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
42710 * tests/test-stdint.c (verify_same_types)
42711 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
42712 the code conforms to C99/C89.
42713 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
42714 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
42716 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
42718 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
42719 but fix a bug, by requiring at least 64 bits.
42720 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42721 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
42722 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
42723 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
42725 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
42726 changes. Make 2.59 a prerequisite. Check and substitute for
42727 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
42728 inttypes.h. Do not use special include files; just use the
42729 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
42730 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
42731 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
42732 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
42733 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
42734 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
42735 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
42736 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
42737 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
42738 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
42739 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
42740 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
42741 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
42742 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
42743 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
42744 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
42745 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
42746 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
42747 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
42748 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
42749 WINT_MAX. Check for C99 conformance more strictly, by detecting
42750 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
42751 not check for things that C99 does not require, e.g., int8_t. If
42752 a test isn't needed unless <stdint.h> isn't working, and is
42753 unlikely to be needed for any other reason, then don't do it
42754 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
42755 size_t, since we assume C89 freestanding at least. Do not check
42756 for sig_atomic_t, wchar_t, or wint_t, since the code now does
42757 the right thing even if the types are not defined. Instead use:
42758 (gl_STDINT_TYPE_PROPERTIES): New macro.
42759 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
42760 testing whether <sys/types.h> clashes, as Autoconf does this for
42761 us now. All uses removed.
42762 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
42763 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
42764 (gl_CHECK_TYPE_SAME):
42765 Remove; no longer needed.
42766 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
42767 exists, since we'll return 0 anyway in that case.
42768 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
42770 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
42772 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
42773 possible collision with system files.
42774 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
42775 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
42776 WCHAR_MIN and WCHAR_MAX in this case.
42777 (<stddef.h>): Do not include; no longer needed.
42778 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
42779 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
42780 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
42781 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
42782 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
42783 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
42784 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
42785 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
42786 !defined(__c99))]: Include in this case too, since it's harmless
42788 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
42789 dangerous to do so.
42790 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
42791 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
42792 (_STDINT_MIN, _STDINT_MAX): New macros.
42793 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
42794 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
42795 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
42796 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
42797 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
42798 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
42799 macros, not typedefs; this simplifies things quite a bit.
42800 Use long int for all types narrower than int64_t.
42801 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
42802 Define in terms of long long int or int64_t or long int,
42803 not int64_t or int32_t. This saves some compile-time testing.
42804 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
42805 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
42806 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
42807 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
42808 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
42809 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
42810 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
42811 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
42812 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
42813 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
42814 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42815 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42816 undef any previous version and define our own version, for
42817 simplicity and consistency with the new macros for types.
42818 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42819 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42820 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
42821 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
42822 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
42823 @WINT_T_SUFFIX@ to keep things simple here.
42824 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
42825 Simplify by assuming typical 8/16/32/64 host, since we're
42826 already doing that elsewhere anyway.
42827 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
42828 and assume long long int is 64 bits if available. This
42829 speeds up 'configure'.
42831 2006-07-01 Eric Blake <ebb9@byu.net>
42833 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
42834 Reported by Andreas Buening.
42836 2006-07-01 Eric Blake <ebb9@byu.net>
42838 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
42840 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
42842 * lib/getaddrinfo.c: fixed typo
42844 2006-06-29 Jim Meyering <jim@meyering.net>
42846 * modules/strftime (Maintainer): Add my name, since with the
42847 FPRINTFTIME changes strftime.c has forked from glibc.
42849 2006-06-29 Eric Blake <ebb9@byu.net>
42851 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
42853 2006-06-29 Eric Blake <ebb9@byu.net>
42855 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
42857 2006-06-29 Eric Blake <ebb9@byu.net>
42859 * lib/stat_.h: New file.
42861 2006-06-29 Eric Blake <ebb9@byu.net>
42863 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
42864 unused static function.
42866 2006-06-29 Eric Blake <ebb9@byu.net>
42868 * doc/functions.texi (Function Portability): Document missing lstat
42871 2006-06-29 Eric Blake <ebb9@byu.net>
42873 * MODULES.html.sh: Add sys_stat.
42874 * modules/sys_stat: New module.
42875 * modules/mkstemp (Depends-on): Add sys_stat.
42877 2006-06-29 Derek R. Price <derek@ximbiot.com>
42879 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
42881 2006-06-29 Derek R. Price <derek@ximbiot.com>
42883 * m4/c-bs-a.m4: Removed.
42885 2006-06-29 Derek R. Price <derek@ximbiot.com>
42887 * lib/strftime.c: Assume strftime() exists.
42889 2006-06-29 Derek Price <derek@ximbiot.com>
42891 * modules/c-bs-a: Removed - \a is C89.
42892 * MODULES.html.sh: Remove c-bs-a.
42894 2006-06-29 Bruno Haible <bruno@clisp.org>
42896 * modules/wcwidth (License): Change to LGPL.
42898 2006-06-28 Simon Josefsson <jas@extundo.com>
42900 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
42903 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
42906 2006-06-28 Simon Josefsson <jas@extundo.com>
42908 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
42910 2006-06-28 Simon Josefsson <jas@extundo.com>
42912 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
42913 functions there. It will succeed on Windows XP, but on Windows
42914 2000 and (presumably) earlier, it will fail, and use the internal
42916 (use_win32_p): New function.
42917 (getaddrinfo): Use strtoul on servname, to support numeric ports.
42918 Support AI_NUMERICSERV to disable getservbyname.
42919 (getnameinfo): New function, only supports
42920 NI_NUMERICHOST|NI_NUMERICSERV for now.
42922 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
42923 only have some of them. Add AI_NUMERICSERV. Add prototype for
42926 2006-06-28 Eric Blake <ebb9@byu.net>
42928 * modules/wcwidth: New file.
42929 * modules/mbchar (Depends-on): Add wcwidth.
42930 * modules/mbswidth (Depends-on): Add wcwidth.
42931 * MODULES.html.sh: Add wcwidth.
42933 2006-06-28 Eric Blake <ebb9@byu.net>
42935 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
42936 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
42938 2006-06-28 Eric Blake <ebb9@byu.net>
42940 * lib/xvasprintf.h: Fix comments.
42942 2006-06-28 Eric Blake <ebb9@byu.net>
42944 * lib/mbchar.h (wcwidth): Include wcwidth.h.
42945 * lib/mbswidth.c (wcwidth): Move from here...
42946 * lib/wcwidth.h: ...to this new file.
42948 2006-06-28 Derek R. Price <derek@ximbiot.com>
42950 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
42952 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
42954 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
42956 2006-06-28 Derek R. Price <derek@ximbiot.com>
42958 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
42959 Autoconf 2.60 says this stuff was obsolete.
42961 2006-06-28 Bruno Haible <bruno@clisp.org>
42963 * modules/wcwidth (Files): Add m4/wchar_t.m4.
42965 2006-06-28 Bruno Haible <bruno@clisp.org>
42967 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
42970 2006-06-28 Bruno Haible <bruno@clisp.org>
42972 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
42973 declaration for wcwidth.
42974 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
42976 2006-06-28 Bruno Haible <bruno@clisp.org>
42978 * lib/mkdtemp.c [MINGW]: Include <io.h>.
42979 (mkdir): Define using _mkdir.
42981 2006-06-28 Bruno Haible <bruno@clisp.org>
42983 * lib/getaddrinfo.h: Fix POSIX URL.
42984 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
42986 (use_win32_p): Make static.
42987 (getaddrinfo): Reject service name if it is empty or does not consist
42988 solely of decimal digits, or if its value is > 65535.
42989 (getnameinfo): Remove useless casts.
42991 2006-06-27 Simon Josefsson <jas@extundo.com>
42993 * modules/sys_select: New file, suggested by Bruno Haible, Paul
42994 Eggert and Martin Lambers.
42996 2006-06-27 Simon Josefsson <jas@extundo.com>
42998 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
42999 Eggert and Martin Lambers.
43001 2006-06-27 Bruno Haible <bruno@clisp.org>
43003 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
43004 result to 0, not to empty.
43005 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
43007 2006-06-27 Bruno Haible <bruno@clisp.org>
43009 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
43011 2006-06-26 Simon Josefsson <jas@extundo.com>
43013 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
43016 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
43018 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
43019 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
43020 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
43022 2006-06-26 Mark D. Baushke <mdb@gnu.org>
43024 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
43026 2006-06-26 Bruno Haible <bruno@clisp.org>
43028 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
43030 2006-06-26 Bruno Haible <bruno@clisp.org>
43032 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
43034 2006-06-26 Bruno Haible <bruno@clisp.org>
43036 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
43037 SGI C compiler in pre-C99 mode.
43038 Suggested by Mark D. Baushke and Larry Jones.
43040 2006-06-26 Bruno Haible <bruno@clisp.org>
43042 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
43044 Reported by Mark D. Baushke and Larry Jones.
43046 2006-06-26 Bruno Haible <bruno@clisp.org>
43048 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
43050 Suggested by Mark D. Baushke and Larry Jones.
43052 2006-06-23 Simon Josefsson <jas@extundo.com>
43053 Bruno Haible <bruno@clisp.org>
43055 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
43056 Emit mostlyclean-local rule.
43057 (func_emit_tests_Makefile_am): Likewise.
43058 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
43060 2006-06-23 Mark D. Baushke <mdb@gnu.org>
43062 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
43064 2006-06-23 Bruno Haible <bruno@clisp.org>
43066 * tests/test-stdint.c: Update to match ISO C 99 Technical
43069 2006-06-23 Bruno Haible <bruno@clisp.org>
43071 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
43073 2006-06-23 Bruno Haible <bruno@clisp.org>
43075 * lib/stdint_.h: Treat IRIX like OpenBSD.
43077 2006-06-23 Bruno Haible <bruno@clisp.org>
43079 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
43080 ISO C 99 Technical Corrigendum 1.
43082 2006-06-22 Simon Josefsson <jas@extundo.com>
43084 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
43087 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
43089 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
43090 needed. Some compiler complained about some of them. Problem reported
43092 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
43094 2006-06-21 Simon Josefsson <jas@extundo.com>
43096 * tests/test-getaddrinfo.c: New file.
43098 * modules/getaddrinfo-tests: New file.
43100 * MODULES.html.sh: Add inet_pton.
43102 * modules/inet_pton: New file.
43104 2006-06-21 Simon Josefsson <jas@extundo.com>
43106 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
43107 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
43108 of using the (limited) gnulib implementation on Windows XP.
43110 * m4/inet_pton.m4: New file.
43112 2006-06-21 Simon Josefsson <jas@extundo.com>
43114 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
43117 * lib/socket_.h: Don't define WINVER.
43119 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
43120 slightly modified to work in gnulib.
43122 2006-06-21 Simon Josefsson <jas@extundo.com>
43124 * doc/gnulib.texi (Windows sockets): Add.
43126 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
43128 * lib/read-file.c (fread_file): Start with buffer allocation of
43129 0 bytes rather than 1 byte; this simplifies the code.
43130 Don't invoke feof; it's not needed. Refactor to avoid duplicate
43131 code to free buffer and save/restore errno.
43132 (internal_read_file): Remove unused local.
43134 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
43136 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
43137 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
43138 Problem reported by Denis Excoffier in
43139 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
43141 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43143 * modules/sys_socket, modules/socklen: Include sys/types since
43144 FreeBSD 4.x's sys/socket.h needs it.
43146 2006-06-19 Simon Josefsson <jas@extundo.com>
43148 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
43150 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
43152 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
43154 2006-06-19 Bruno Haible <bruno@clisp.org>
43156 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
43157 and FULL_PATH_INTTYPES_H in angle brackets.
43158 Reported by Mark D. Baushke <mdb@gnu.org>.
43160 2006-06-17 Eric Blake <ebb9@byu.net>
43162 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
43165 2006-06-17 Bruno Haible <bruno@clisp.org>
43167 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
43170 2006-06-17 Bruno Haible <bruno@clisp.org>
43172 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
43173 whether errno is declared. Assume <errno.h> declares errno.
43175 2006-06-17 Bruno Haible <bruno@clisp.org>
43177 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
43179 2006-06-17 Bruno Haible <bruno@clisp.org>
43181 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
43182 problem on Solaris 2.5.1.
43184 2006-06-16 Eric Blake <ebb9@byu.net>
43186 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
43187 * lib/unicodeio.c [!defined errno]: Likewise.
43188 * lib/strtol.c [!defined errno]: Likewise.
43189 * lib/strtod.c [!defined errno]: Likewise.
43191 2006-06-15 Eric Blake <ebb9@byu.net>
43193 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
43195 2006-06-15 Eric Blake <ebb9@byu.net>
43197 * config/srclist.txt (ssize_t.m4): Lose sync.
43199 2006-06-15 Bruno Haible <bruno@clisp.org>
43201 * modules/stdint (Files): Include m4/full-header-path.m4,
43202 m4/size_max.m4, m4/wchar_t.m4.
43203 (Makefile.am): Many more substitutions.
43204 * modules/stdint-tests: New file.
43205 * tests/test-stdint.c: New file.
43207 2006-06-15 Bruno Haible <bruno@clisp.org>
43209 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
43210 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
43211 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
43212 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
43213 gl_CHECK_TYPE_SAME): New macros.
43215 2006-06-15 Bruno Haible <bruno@clisp.org>
43217 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
43219 2006-06-15 Bruno Haible <bruno@clisp.org>
43221 * lib/stdint_.h: Rewritten to be fully auto-configured.
43222 Fixes bug on HP-UX/IA64.
43224 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
43226 * lib/getdate.y (__attribute__): Don't define if already defined.
43227 Problem reported by Larry Jones.
43228 * lib/utimens.c (__attribute__): Likewise.
43230 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
43232 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
43233 reported by Andreas Schwab.
43235 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43236 Bruno Haible <bruno@clisp.org>
43238 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
43239 check for the declaration of strnlen and a run test that exposes the
43240 AIX 5.1 strnlen bug. In the failure case, #define strndup to
43243 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43244 Bruno Haible <bruno@clisp.org>
43246 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
43248 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43250 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
43251 compile test, for Tru64 4.0D.
43253 2006-05-28 Karl Berry <karl@gnu.org>
43255 * config/srclist.txt (printf-args.c): lose sync.
43257 2006-05-26 Martin Lambers <marlam@marlam.de>
43259 * lib/getpass.c: Updates the test for the native W32 API, and adds
43260 missing includes, thus fixing compilation warnings.
43262 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
43264 * lib/exclude.c (exclude_fnmatch): New function.
43265 (excluded_file_name): Call exclude_fnmatch.
43266 * lib/exclude.h (excluded_file_name): New prototype
43268 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
43270 * lib/tempname.c (small_open, large_open): New macros.
43271 (__open, __open64) [!_LIBC]: Remove.
43272 (__gen_tempname): Use small_open and large_open instead of __open
43273 and __open64. This fixes a portability bug on HP-UX 11.11i
43274 reported by Simon Wing-Tang in
43275 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
43277 2006-05-24 Bruno Haible <bruno@clisp.org>
43279 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
43280 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
43281 Reported by Thorsten Maerz <torte@netztorte.de> via
43282 Aaron Stone <aaron@serendipity.cx>.
43284 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
43286 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
43287 gl_ rather than jm_. Link, don't run, so that cross-compiles are
43288 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
43289 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
43290 not really conditional on the cache.
43291 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
43293 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
43295 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
43296 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
43297 (my_usleep): Don't mishandle maximum value.
43299 2006-05-19 Jim Meyering <jim@meyering.net>
43301 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
43303 2006-05-17 Bruno Haible <bruno@clisp.org>
43305 Cygwin portability.
43306 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
43308 2006-05-17 Bruno Haible <bruno@clisp.org>
43310 * lib/stdint_.h: Fix recognition of Cygwin.
43312 2006-05-15 Bruno Haible <bruno@clisp.org>
43314 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
43315 on libtool patch by Ralf Wildenhues.
43317 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
43319 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
43320 test for C99 conformance; (bool) 0.5 is an integer constant
43321 expression, but (bool) -0.5 is not. Problem reported by Fedor
43322 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
43324 2006-05-11 Simon Josefsson <jas@extundo.com>
43326 * m4/xvasprintf.m4: Fix obvious typo.
43328 2006-05-11 Jim Meyering <jim@meyering.net>
43330 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
43333 2006-05-10 Simon Josefsson <jas@extundo.com>
43335 * lib/md4.c: Typo fix, update copyright years.
43336 (K1, K2): Don't use L because it turn computations into 64-bit on
43339 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
43341 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
43342 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
43343 unwanted sign propagation, e.g., on hosts with 64-bit int.
43344 There still are some problems with reeelly weird theoretical hosts
43345 (e.g., 33-bit int) but it's not worth worrying about now.
43346 * lib/sha1.c (rol): Likewise.
43347 (K1, K2, K3, K4): Remove unnecessary L suffix.
43349 2006-05-10 Bruno Haible <bruno@clisp.org>
43351 * lib/des.c: Cast to avoid warnings.
43353 2006-05-09 Bruno Haible <bruno@clisp.org>
43355 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
43356 (Depends-on): Depend also on xsize, stdarg.
43357 (configure.ac): Add gl_XVASPRINTF.
43359 2006-05-09 Bruno Haible <bruno@clisp.org>
43361 * m4/xvasprintf.m4: New file.
43363 2006-05-09 Bruno Haible <bruno@clisp.org>
43365 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
43366 (EOVERFLOW): Define fallback value.
43367 (xstrcat): New function.
43368 (xvasprintf): Recognize the special case of a string concatenation.
43370 2006-05-08 Eric Blake <ebb9@byu.net>
43372 * gnulib-tool (func_version): Base copyright year on CVS date.
43373 (func_emit_copyright_notice): New function.
43374 (func_emit_lib_Makefile_am): Use it.
43375 (func_emit_tests_Makefile_am): Likewise.
43376 (func_import): Likewise.
43378 2006-05-08 Bruno Haible <bruno@clisp.org>
43380 * modules/stdarg: New file.
43381 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
43383 2006-05-08 Bruno Haible <bruno@clisp.org>
43385 * m4/stdarg.m4: New file, from GNU gettext.
43387 2006-05-08 Bruno Haible <bruno@clisp.org>
43389 * config/srclist.txt (build-aux/config.rpath): different from latest
43392 2006-05-08 Bruno Haible <bruno@clisp.org>
43394 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
43396 2006-05-05 Jim Meyering <jim@meyering.net>
43398 * m4/warning.m4: New file, derived from bison's file by the same name.
43400 2006-05-03 Bruno Haible <bruno@clisp.org>
43402 * lib/stdint_.h: Shorter URL.
43403 * lib/inttypes.h: Likewise.
43405 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
43407 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
43409 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
43411 * lib/verify.h: Document the internals better. Most of this change
43412 was written by Bruno Haible.
43414 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
43416 * doc/verify.texi: New file, partly based on a proposal by
43419 2006-05-02 Bruno Haible <bruno@clisp.org>
43421 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
43423 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
43425 2006-04-29 Bruno Haible <bruno@clisp.org>
43427 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
43428 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
43430 2006-04-29 Bruno Haible <bruno@clisp.org>
43432 * gnulib-tool: Make --update option actually work.
43434 2006-04-29 Bruno Haible <bruno@clisp.org>
43436 * doc/gcd.texi: New file.
43437 * doc/gnulib.texi: Include it.
43439 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
43441 * lib/getdate.y (get_date): When adding relative date, start with the
43442 initial time, not with the result of the first mktime call.
43444 2006-04-25 Bruno Haible <bruno@clisp.org>
43446 * gnulib-tool (func_import): Output the include directives in three
43447 blocks, sorted separately.
43448 Reported by Ben Pfaff <blp@cs.stanford.edu>.
43450 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
43452 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
43453 to define main with arguments, for C++. Reported by Eric Blake.
43454 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
43455 Prefer 'int main ()' to 'int main (void)', for C++.
43456 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43457 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
43458 for 'main', for C99 and C++.
43460 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
43462 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
43463 Don't assume that exit status -1 is valid.
43464 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43465 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43466 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43467 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
43468 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
43469 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
43470 not AC_TRY_RUN. Use return, not exit. Don't assume that
43471 functions can be used without declaring them, or that you can
43472 exit with status -1.
43473 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43475 2006-04-24 Karl Berry <karl@gnu.org>
43477 * config/srclist.txt (longdouble.m4): sync lost.
43479 2006-04-24 Eric Blake <ebb9@byu.net>
43481 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
43483 2006-04-24 Bruno Haible <bruno@clisp.org>
43485 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
43486 poll() implementation in AIX.
43487 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43489 2006-04-24 Bruno Haible <bruno@clisp.org>
43491 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
43492 assigned exactly once.
43494 2006-04-23 Claudio Fontana <claudio@gnu.org>
43495 Bruno Haible <bruno@clisp.org>
43497 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
43498 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
43501 2006-04-23 Bruno Haible <bruno@clisp.org>
43503 * modules/copy-file: Depend on unistd.
43504 * modules/execute: Likewise.
43505 * modules/fatal-signal: Likewise.
43506 * modules/findprog: Likewise.
43507 * modules/mkdtemp : Likewise.
43508 * modules/pipe: Likewise.
43509 * modules/wait-process: Likewise.
43511 2006-04-23 Bruno Haible <bruno@clisp.org>
43513 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
43514 condition was already detected.
43515 Reported by Ben Pfaff <blp@cs.stanford.edu>.
43517 2006-04-23 Bruno Haible <bruno@clisp.org>
43519 * lib/copy-file.c: Include <unistd.h> unconditionally.
43520 * lib/execute.c: Likewise.
43521 * lib/fatal-signal.c: Likewise.
43522 * lib/findprog.c: Likewise.
43523 * lib/mkdtemp.c: Likewise.
43524 * lib/pipe.h: Likewise.
43525 * lib/pipe.c: Likewise.
43526 * lib/wait-process.h: Likewise.
43528 2006-04-23 Bruno Haible <bruno@clisp.org>
43530 * gnulib-tool (func_usage): Fix --import description. Document
43532 (func_import): Create temporary file in a temporary directory, if
43533 --dry-run is specified. Silence errors from 'grep' when there are no
43534 m4 files in $m4dir.
43535 (func_create_testdir): Silence errors from 'grep' when there are no
43536 m4 files in $m4dir.
43537 Reported by Karl Berry <karl@freefriends.org>.
43539 2006-04-20 Bruno Haible <bruno@clisp.org>
43541 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
43542 one argument, so that the code will be portable to Autoconf 2.60.
43543 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
43544 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43545 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
43547 2006-04-19 Derek Price <derek@ximbiot.com>
43548 Eric Blake <ebb9@byu.net>
43550 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
43551 rather than "/full/path.h". Update comment to match. Shorten &
43552 generalize m4_translit call via AS_TR_CPP.
43554 2006-04-19 Derek Price <derek@ximbiot.com>
43555 Eric Blake <ebb9@byu.net>
43557 * lib/inttypes.h: Correct grammar in comment.
43559 2006-04-18 Derek Price <derek@ximbiot.com>
43560 Paul Eggert <eggert@cs.ucla.edu>
43562 * modules/inttypes: New file.
43563 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
43565 2006-04-18 Derek Price <derek@ximbiot.com>
43566 Paul Eggert <eggert@cs.ucla.edu>
43568 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
43571 2006-04-18 Derek Price <derek@ximbiot.com>
43572 Paul Eggert <eggert@cs.ucla.edu>
43574 * lib/inttypes.h: New file.
43575 * lib/strtoimax.c: Assume <inttypes.h>.
43577 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
43579 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
43580 isn't mounted. Problem reported by Kir Kolyshkin.
43582 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
43584 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
43585 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
43587 * lib/regex.h (RE_DUP_MAX): Update comment to match current
43590 2006-04-12 Eric Blake <ebb9@byu.net>
43592 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
43593 is now done automatically by the corresponding Autoconf macro.
43595 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
43597 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
43600 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
43602 Merge regex changes from libc, removing some of our
43603 POSIX-conformance changes that were rejected and redoing them in a
43604 less-intrusive way.
43606 * lib/regcomp.c (re_compile_internal, init_dfa):
43607 Length arg is now size_t, not Idx. All uses changed.
43608 (peek_token): Forward decl now says internal_function.
43609 (__re_error_msgid, __re_error_msgid_idx):
43610 Now static rather than extern with attribute_hidden.
43611 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
43612 For some reason libc prefers K&R style defns for external functions.
43613 (regerror) [!defined _LIBC]: Likewise.
43614 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
43615 (seek_collating_symbol_entry, lookup_collation_sequence_value):
43616 (build_range_exp, build_collating_symbol):
43617 Use K&R-style defn.
43618 (re_compile_fastmap): Use '\0' to memset, not 0.
43619 (utf8_sb_map): Make the calculations more obvious.
43620 (init_dfa, parse_bracket_exp, build_charclass_op):
43621 Call calloc and cast result, as glibc does.
43622 (init_word_char, fetch_token, peek_token, peek_token_bracket):
43623 (build_range_exp, build_collating_symbol):
43624 Now internal functions.
43626 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
43628 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
43629 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
43630 Don't depend on VMS; depend on __VMS instead, for POSIX
43631 namespace cleanness.
43632 (regoff_t): Define to ssize_t, not long int.
43634 Remove the REG_ macros named below. Instead, make the old names
43635 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
43637 (REG_BACKSLASH_ESCAPE_IN_LISTS):
43638 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
43639 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
43640 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
43641 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
43642 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
43643 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
43644 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
43645 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
43646 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
43647 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
43648 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
43649 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
43650 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
43651 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
43652 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
43653 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
43655 Remove. All uses replaced by the old RE_* names.
43656 (RE_BACKSLASH_ESCAPE_IN_LISTS):
43657 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
43658 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
43659 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
43660 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
43661 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
43662 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
43663 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
43664 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
43665 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
43666 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
43667 Don't bother having these macros be independent of each others'
43668 values, since they no longer exist in the POSIX name space.
43670 Rename the following member names back to their old names,
43671 unless !__USE_GNU_REGEX. All uses changed back.
43672 (buffer): Renamed from re_buffer.
43673 (allocated): Renamed from re_allocated.
43674 (used): Renamed from re_used.
43675 (syntax): Renamed from re_syntax.
43676 (fastmap): Renamed from re_fastmap.
43677 (translate): Renamed from re_translate.
43678 (can_be_null): Renamed from re_can_be_null.
43679 (regs_allocated): Renamed from re_regs_allocated.
43680 (fastmap_accurate): Renamed from re_fastmap_accurate.
43681 (no_sub): Renamed from re_no_sub.
43682 (not_bol): Renamed from re_not_bol.
43683 (not_eol): Renamed from re_not_eol.
43684 (newline_anchor): Renamed from re_newline_anchor.
43685 (num_regs): Renamed from rm_num_regs.
43686 (start): Renamed from rm_start.
43687 (end): Renamed from rm_end.
43689 (free_state): Move up a bit.
43691 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
43692 #define to be empty.
43693 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
43694 when that is what is intended.
43695 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
43696 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
43698 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
43699 All uses changed back to re_malloc, etc. It's now the caller's
43700 responsibility to check for overflow; all callers changed.
43701 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
43702 (re_x2nrealloc): Remove.
43703 (free_state): Remove decl.
43705 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
43706 (re_set_registers, re_exec):
43707 Use K&R-style defn.
43709 2006-01-31 Roland McGrath <roland@redhat.com>
43711 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
43712 Reported by Mike Frysinger <vapier@gentoo.org>.
43714 2006-01-15 Andreas Jaeger <aj@suse.de>
43717 * lib/regex_internal.c (re_string_reconstruct): Adjust for
43718 build_wcs_upper_buffer change.
43719 (build_wcs_upper_buffer): Change return type.
43721 2005-12-10 Ulrich Drepper <drepper@redhat.com>
43723 * lib/regex_internal.h: Include <stdint.h> if available.
43725 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
43727 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
43729 2005-10-14 Ulrich Drepper <drepper@redhat.com>
43731 * lib/regcomp.c: Adjust for changed secondary hash function.
43733 2005-09-30 Ulrich Drepper <drepper@redhat.com>
43735 * lib/regex.h: Pretty printing.
43736 Clean up namespace a bit.
43738 2005-09-30 Jakub Jelinek <jakub@redhat.com>
43740 * lib/regexec.c (update_cur_sifted_state, check_arrival,
43741 check_arrival_add_next_nodes): Avoid using uninitialized variable.
43743 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
43744 Ulrich Drepper <drepper@redhat.com>
43747 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
43749 (bitset_word_t): Renamed from bitset_word. All uses changed.
43751 2005-09-22 Ulrich Drepper <drepper@redhat.com>
43754 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
43755 * lib/regcomp.c: Remove unnecessary uses of
43756 unsigned RE_TRANSLATE_TYPE.
43757 * lib/regex_internal.h: Likewise.
43758 * lib/regex_internal.c: Likewise.
43759 * lib/regexec.c: Likewise.
43760 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
43762 2005-09-07 Ulrich Drepper <drepper@redhat.com>
43764 * lib/regexec.c (find_recover_state): Remove unnecessary
43766 (transit_state_bkref): Make DFA a const pointer.
43767 (get_subexp): Likewise.
43768 (check_arrival): Likewise.
43769 (update_cur_sifted_state): Likewise.
43770 (re_search_internal): Likewise.
43771 (prune_impossible_nodes): Likewise.
43772 (acquire_init_state_context): Likewise.
43773 (proceed_next_node): Likewise.
43774 (set_regs): Likewise.
43775 (free_fail_stack_return): Likewise.
43776 (check_arrival_expand_ecl): Mark DFA parameter as const.
43777 (check_arrival_expand_ecl_sub): Likewise.
43778 (check_subexp_limits): Likewise.
43779 (sub_epsilon_src_nodes): Likewise.
43780 (add_epsilon_src_nodes): Likewise.
43781 (merge_state_array): Likewise.
43782 (update_regs): Likewise.
43783 (build_trtable): Likewise.
43784 (sift_states_backward): Mark MCTX parameter as const.
43785 (build_sifted_states): Likewise.
43786 (update_cur_sifted_state): Likewise.
43787 (sift_states_mkref): Likewise.
43788 (check_arrival_expand_ecl): Mark eclosure as const.
43789 (check_dst_limits_calc_pos_1): Likewise.
43790 * lib/regex_internal.h (re_match_context_t): Make dfa a const
43793 2005-09-06 Ulrich Drepper <drepper@redhat.com>
43795 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
43796 (transit_state_sb): Likewise.
43797 (transit_state_mb): Likewise.
43798 (sift_states_iter_mb): Likewise.
43799 (check_arrival_add_next_nodes): Likewise.
43800 (check_node_accept_bytes): Change first parameter to pointer-to-const.
43801 [_LIBC] (re_search_2_stub): Use mempcpy.
43803 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
43804 mbrtowc for very simple UTF-8 case.
43806 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
43807 a pointer-to-const.
43808 (re_acquire_state_context): Likewise.
43809 * lib/regex_internal.h: Adjust prototypes.
43811 * lib/regex.c: Prevent using C++ compilers.
43813 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
43814 (re_acquire_state_context): Likewise.
43816 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
43818 * modules/regex (Depends-on): Add ssize_t.
43820 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
43822 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
43825 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
43827 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
43829 2006-03-29 Mark D. Baushke <mdb@gnu.org>
43830 Bruno Haible <bruno@clisp.org>
43832 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
43833 <sys/types.h> and <inttypes.h>.
43835 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43837 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
43838 `__error_t_defined', so argp.h will not typedef the former.
43840 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
43842 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
43843 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
43844 glibc names. Even if glibc is changed to conform to POSIX, the
43845 traditional names will be available anyway, since regex depends on
43846 the extensions module. Also, fix a longstanding typo in the
43847 implementation of Spencer ERE test #75 from grep 2.3. Problems
43848 reported by Emanuele Giaquinta. Also, change sense of cached
43849 variable, so that the message makes sense.
43851 2006-03-24 Simon Josefsson <jas@extundo.com>
43853 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
43854 including some doc fixes.
43855 (base64_encode_alloc): Fix +1 bug on allocation failures.
43857 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43859 * lib/base64.c (base64_encode): Do not read past end of array with
43860 unsanitized input on systems with CHAR_BIT > 8.
43862 2006-03-24 Eric Blake <ebb9@byu.net>
43864 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
43866 2006-03-22 Karl Berry <karl@gnu.org>
43868 * config/srclist.txt (*setenv.[ch]): get from coreutils.
43869 * config/srclistvars.sh (COREUTILS): new var.
43871 2006-03-17 Jim Meyering <jim@meyering.net>
43873 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
43874 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
43876 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
43878 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
43879 no longer needs it. Instead, check that regoff_t is as least
43880 as wide as ptrdiff_t.
43882 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
43883 so that our regex.h stays compatible with the installed regex.
43884 This is helpful for installers who configure --without-included-regex.
43885 Problem reported by Emanuele Giaquinta.
43887 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
43889 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
43890 Typedef to long int, not to off_, as POSIX will likely change
43893 2006-03-15 Eric Blake <ebb9@byu.net>
43895 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
43897 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
43899 * lib/argp-help.c (validate_uparams): Fix typo
43900 * lib/argp-parse.c (argp_default_options): Consistently begin help
43901 messages with a lowercase letter.
43903 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
43905 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
43906 overrun buffers and shouldn't be used (much as gets shouldn't be
43908 * lib/time_r.c (asctime_r, ctime_r): Likewise.
43910 2006-03-08 Simon Josefsson <jas@extundo.com>
43912 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
43913 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43915 2006-03-08 Simon Josefsson <jas@extundo.com>
43917 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
43918 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43920 2006-03-08 Simon Josefsson <jas@extundo.com>
43922 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
43923 signal that configure disabled the device.
43925 2006-03-08 Simon Josefsson <jas@extundo.com>
43927 * build-aux/maint.mk: Fix refresh-po, to handle no translated
43930 2006-03-07 Simon Josefsson <jas@extundo.com>
43932 * modules/getopt (Depends-on): Add unistd.
43934 * modules/unistd: New file.
43936 2006-03-07 Simon Josefsson <jas@extundo.com>
43938 * modules/gc-random: New file.
43940 2006-03-07 Simon Josefsson <jas@extundo.com>
43942 * m4/unistd_h.m4: New file.
43944 2006-03-07 Simon Josefsson <jas@extundo.com>
43946 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
43947 test to be side-effect free by storing the result in the cache
43948 variable gl_cv_lib_readline, and moving the assignment of
43949 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
43950 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43952 2006-03-07 Simon Josefsson <jas@extundo.com>
43954 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
43955 error on missing devices (the functions will return an error).
43957 * m4/gc.m4: Move random stuff to gc-random.m4
43959 2006-03-07 Simon Josefsson <jas@extundo.com>
43961 * lib/unistd_.h: New file.
43963 2006-03-07 Simon Josefsson <jas@extundo.com>
43965 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
43967 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
43969 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
43970 Problem reported by Juan Manuel Guerrero.
43972 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
43974 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
43976 * lib/getlogin_r.c: Likewise.
43977 * lib/getlogin_r.h: Likewise.
43978 * lib/glob.c: Likewise.
43979 * lib/pagealign_alloc.c: Likewise.
43980 * lib/unistd_.h: Remove; no longer needed.
43982 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
43984 * MODULES.html.sh (Support for systems lacking POSIX:2001):
43986 * modules/c-stack (Depends-on): Add unistd.
43987 * modules/getlogin_r: Likewise.
43988 * modules/glob: Likewise.
43989 * modules/pagealign_alloc: Likewise.
43990 * modules/unistd (Files): Remove lib/unistd_.h.
43991 (EXTRA_DIST): Remove.
43992 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
43994 (MOSTLYCLEANFILES): Remove unistd.h-t.
43996 2006-03-03 Simon Josefsson <jas@extundo.com>
43998 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
44000 2006-03-03 Simon Josefsson <jas@extundo.com>
44002 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
44005 2006-03-03 Simon Josefsson <jas@extundo.com>
44007 * build-aux/maint.mk: Add indent target.
44009 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44011 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
44012 our replacement poll.h in any case, to avoid a differing
44013 declaration from a system header. Seen on AIX.
44015 2006-03-01 Simon Josefsson <jas@extundo.com>
44017 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
44020 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
44022 * modules/gettime (Depends-on): Add extensions module.
44023 * modules/nanosleep (Depends-on): Likewise.
44024 * modules/settime (Depends-on): Likewise.
44026 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
44028 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
44029 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
44031 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44032 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
44034 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
44035 not "==". Reported by Ralf Wildenhues.
44037 2006-03-01 Karl Berry <karl@gnu.org>
44039 * doc/Copyright/request-*: new files, synced from gnuorg.
44041 2006-03-01 Karl Berry <karl@gnu.org>
44043 * config/srclist.txt (Copyright/*): new entries.
44045 2006-02-28 Simon Josefsson <jas@extundo.com>
44047 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
44049 2006-02-27 Simon Josefsson <jas@extundo.com>
44051 * lib/base64.h: Indent #define's. From Jim Meyering
44052 <jim@meyering.net>.
44054 2006-02-27 Jim Meyering <jim@meyering.net>
44056 Revert the change of 2006-02-24, so these files can continue
44057 to be sync'd from gettext.
44058 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
44061 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
44063 * modules/intprops: New file.
44064 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
44066 * modules/getloadavg (Files): Remove lib/intprops.h.
44067 (Depends-on): Add intprops.
44068 * modules/human: Likewise.
44069 * modules/inttostr: Likewise.
44070 * modules/openat: Likewise.
44071 * modules/sig2str: Likewise.
44072 * modules/userspec: Likewise.
44073 * modules/utimecmp: Likewise.
44074 * modules/xnanosleep: Likewise.
44075 * modules/xstrtol: Likewise.
44077 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
44079 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
44080 * modules/lock-tests (TESTS): Use $(EXEEXT).
44081 * modules/tls-tests: Likewise.
44082 * modules/argp-tests: Likewise.
44083 (check_PROGRAMS): New var, replacing...
44084 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
44086 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44088 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
44091 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
44093 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
44095 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44097 Sync from coreutils.
44098 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
44101 2006-02-22 Jim Meyering <jim@meyering.net>
44103 Sync from coreutils.
44104 * m4/chdir-safer.m4: New file.
44106 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
44108 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
44109 AT_FDCWD exceeds INT_MAX.
44110 * lib/openat.h (AT_FDCWD): Likewise.
44112 2006-02-17 Eric Blake <address@hidden>
44114 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
44116 2006-02-16 Simon Josefsson <jas@extundo.com>
44118 * modules/getaddrinfo (Depends-on): Add sys_socket.
44120 2006-02-15 Simon Josefsson <jas@extundo.com>
44122 * build-aux/maint.mk: Add dsyntax-check rule.
44124 2006-02-15 Eric Blake <ebb9@byu.net>
44126 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
44127 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
44128 'present but cannot compile' warnings on cygwin.
44129 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
44130 use ws2tcpip.h if sys/socket.h works.
44131 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
44132 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
44134 2006-02-14 Simon Josefsson <jas@extundo.com>
44136 * modules/maintainer-makefile (Files): Rename.
44138 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
44139 and (the local) Makefile.cfg to maint-cfg.mk.
44141 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
44144 * modules/maintainer-makefile: New module.
44146 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
44147 severaly stripped to make it possible to build it up from scratch
44148 with reliable tests.
44150 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
44151 fixes to permit overriding the default actions when configure and
44152 makefile are not available.
44154 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
44156 Sync from coreutils.
44157 * modules/lstat (Depends-on): Don't depend on xalloc.
44158 (License): Change from GPL to LGPL, since this is now simply a
44159 replacement for a libc function.
44161 2006-02-14 Jim Meyering <jim@meyering.net>
44163 Sync from coreutils.
44165 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
44166 failure on deficient systems, and simplify gnulib lgpl dependencies.
44167 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
44168 xmalloc/lstat combination. Based on a patch from Bruno Haible.
44170 * lib/xalloc-die.c: Remove unused definition of N_.
44172 2006-02-14 Jim Meyering <jim@meyering.net>
44174 Sync from coreutils.
44175 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
44176 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
44177 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
44178 double-quote uses of that variable, to accommodate the rare case in
44179 which getmntent is available in none of the libraries checked. This
44180 happens at least on FreeBSD 5.0.
44182 2006-02-13 Simon Josefsson <jas@extundo.com>
44184 * gnulib-tool (Usage): Fix --import, from
44185 karl@freefriends.org (Karl Berry).
44187 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
44189 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
44191 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
44193 * lib/argp-namefrob.h: Restore changes accidentally lost during the
44194 "autoupdate" on 2005-12-12.
44196 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
44198 * modules/closeout (Depends-on): Remove atexit.
44200 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
44202 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
44203 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
44205 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
44207 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
44208 __EXTENSIONS__ if this causes compilation to fail. Problem
44209 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
44210 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
44212 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
44214 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
44215 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
44216 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
44219 2006-01-26 Simon Josefsson <jas@extundo.com>
44221 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
44222 prototype is visible on mingw32.
44224 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
44227 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
44230 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
44232 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
44233 attempt to open for write; this always fails, at least on POSIX
44234 hosts. This reinstates the 2006-01-09 change, which was
44235 inadvertently removed.
44237 2006-01-26 Bruno Haible <bruno@clisp.org>
44239 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
44240 Reported by Paul Eggert.
44242 2006-01-26 Bruno Haible <bruno@clisp.org>
44243 Paul Eggert <eggert@cs.ucla.edu>
44245 * lib/stdbool_.h (_Bool)
44246 [(! (defined __cplusplus || defined __BEOS__)
44247 && !defined __GNUC__
44248 && !(defined __HP_cc || defined __xlc__
44249 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
44250 || defined __sgi))]:
44251 #define to signed char in these cases too; this simplifies
44252 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
44253 etc., separately) and makes it more conservative.
44255 2006-01-25 Simon Josefsson <jas@extundo.com>
44257 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
44258 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
44259 ws2tcpip.h with WINVER=0x0501. All for mingw32.
44261 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
44263 * lib/argp-namefrob.h: Bugfix. Remove stray #
44265 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
44267 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
44268 so that we test the test.
44269 Check for yet another HP-UX cc bug involving *bool |= bool.
44271 2006-01-25 Karl Berry <karl@gnu.org>
44273 * config/srclist.txt (vasnprintf.c): sync lost.
44275 2006-01-25 Jim Meyering <jim@meyering.net>
44277 Sync from the stable (b5) branch of coreutils:
44279 * lib/fts.c (fts_children): Don't let close() clobber errno from
44282 * lib/fts.c (fts_stat): When following a symlink-to-directory,
44283 don't necessarily interpret stat-fails+lstat-succeeds as indicating
44284 a dangling symlink. That can also happen at least for ELOOP.
44285 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
44286 FYI, this bug predates the inclusion of fts.c in coreutils.
44288 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
44289 in their own block, so pre-c99 compilers don't object.
44291 Avoid the double-free (first in fts_read, second in fts_close) that
44292 would occur when an `active' directory is made inaccessible (e.g.,
44293 via chmod a-x) during a traversal.
44294 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44295 before returning. Reproduce this failure by
44296 mkdir -p a/b; cd a; chmod a-x . b
44297 Reported by Stavros Passas.
44299 2006-01-25 Jim Meyering <jim@meyering.net>
44301 * lib/fileblocks.c: Remove more useless parentheses.
44302 * lib/readutmp.h: Likewise.
44304 2006-01-25 Bruno Haible <bruno@clisp.org>
44306 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
44308 Reported by Paul Eggert.
44310 2006-01-25 Bruno Haible <bruno@clisp.org>
44312 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
44313 rid of a trap command. For Solaris sh.
44314 Reported by Mark D. Baushke <mdb@gnu.org>.
44316 2006-01-24 Simon Josefsson <jas@extundo.com>
44318 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
44321 2006-01-24 Karl Berry <karl@gnu.org>
44323 * config/srclist.txt (argp-namefrob.h): sync lost.
44325 2006-01-24 Jim Meyering <jim@meyering.net>
44327 * modules/openat (Files): Add lib/intprops.h.
44328 From Mark D. Baushke.
44330 2006-01-24 Jim Meyering <jim@meyering.net>
44332 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
44333 Reported by Mark D. Baushke.
44335 2006-01-24 Jim Meyering <jim@meyering.net>
44337 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
44339 2006-01-24 Bruno Haible <bruno@clisp.org>
44341 * modules/strnlen (Maintainer): Change from glibc to all.
44343 2006-01-24 Bruno Haible <bruno@clisp.org>
44345 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
44346 Patch by Paul Eggert.
44348 2006-01-24 Bruno Haible <bruno@clisp.org>
44350 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
44352 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
44355 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
44356 'signed char' to avoid problems with the built-in _Bool type.
44357 Reported by Paul Eggert on 2005-11-26.
44359 2006-01-24 Bruno Haible <bruno@clisp.org>
44361 * gnulib-tool (func_import): Avoid constructing complicated sed
44362 expressions inside backquote.
44363 Report and solution by Mark D. Baushke <mdb@gnu.org>.
44365 2006-01-23 Ulrich Drepper <drepper@redhat.com>
44367 These changes imported from libc.
44368 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
44369 test and two separate function calls.
44370 * lib/strndup.c (__strndup): Add libc_hidden_def.
44372 2006-01-23 Simon Josefsson <jas@extundo.com>
44374 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
44375 Remove the test_*_SOURCES variable: automake infers it by default.
44376 * modules/tls-tests: Likewise.
44378 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
44380 Work around porting bugs reported by Dieter in
44381 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
44382 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
44383 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
44384 Include "getopt.h" first, to check interface.
44385 (getenv): Declare only if defined HAVE_DECL_GETENV &&
44387 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
44388 (__strndup): Revert to K&R-style function dfns, the glibc style.
44389 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
44390 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
44391 Include strnlen.h first, to get prototype properly.
44392 (strnlen): Renamed from __strnlen.
44395 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
44397 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
44399 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
44401 * config/srclist.txt: Adjust to reflect glibc reorganization.
44402 This affects only comments.
44404 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44406 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
44407 Reported by Bruce Korb <bkorb@gnu.org>.
44409 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
44411 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
44412 to pacify gcc -Wswitch-default.
44414 2006-01-22 Bruno Haible <bruno@clisp.org>
44416 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
44417 temporary buffer for sprintf, take into account the precision also
44418 for 'd', 'i', 'u', 'o', 'x', 'X'.
44420 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
44422 * modules/argp-tests: New module
44423 * tests/test-argp.c: New file
44424 * tests/test-argp-2.sh: New file
44426 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
44428 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
44429 (__argp_base_name): Removed
44430 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
44432 (__argp_base_name): Provide macro definition or extern declaration
44433 depending on the configuration
44435 2006-01-20 Simon Josefsson <jas@extundo.com>
44437 * modules/inet_ntop (Depends-on): Depend on sys_socket.
44439 2006-01-20 Simon Josefsson <jas@extundo.com>
44441 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
44443 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
44445 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
44446 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
44447 Suggested by Bruno Haible.
44449 2006-01-20 Karl Berry <karl@gnu.org>
44451 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
44452 until changes propagate, I guess.
44454 2006-01-19 Simon Josefsson <jas@extundo.com>
44456 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
44458 2006-01-19 Simon Josefsson <jas@extundo.com>
44460 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
44462 2006-01-19 Simon Josefsson <jas@extundo.com>
44464 * gnulib-tool: Set check_PROGRAMS.
44466 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44467 modules/des-tests, modules/gc-arcfour-tests,
44468 modules/gc-arctwo-tests, modules/gc-des-tests,
44469 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44470 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44471 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44472 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44473 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44474 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
44475 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
44478 2006-01-18 Simon Josefsson <jas@extundo.com>
44480 * modules/socklen (Depends-on): Depend on sys_socket.
44482 2006-01-18 Simon Josefsson <jas@extundo.com>
44484 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44485 modules/des-tests, modules/gc-arcfour-tests,
44486 modules/gc-arctwo-tests, modules/gc-des-tests,
44487 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44488 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44489 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44490 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44491 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44492 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
44493 $(EXEEXT) to automake TESTS variable, for mingw32.
44495 2006-01-17 Simon Josefsson <jas@extundo.com>
44497 * modules/socklen (Include): Need sys/socket.h.
44499 2006-01-17 Bruno Haible <bruno@clisp.org>
44501 * modules/ssize_t (Include): Add <sys/types.h>.
44503 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
44505 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
44506 it's not portable and it doesn't work with cross-compiles.
44507 Problem reported by Bruno Haible. Fix missing-$ typo in
44508 'test "gl_cv_ignore_unused_libraries" ...' that prevented
44509 -zignore from being used with Sun's C compiler.
44511 2006-01-12 Simon Josefsson <jas@extundo.com>
44513 * lib/base64.c: Fix warning, reported by Bruno Haible
44514 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
44516 2006-01-12 Bruno Haible <bruno@clisp.org>
44518 * modules/ldd: New file.
44519 * build-aux/ldd.sh.in: New file.
44520 * MODULES.html.sh (Support for building libraries and executables): Add
44523 2006-01-12 Bruno Haible <bruno@clisp.org>
44525 * m4/ldd.m4: New file.
44527 2006-01-12 Bruno Haible <bruno@clisp.org>
44529 * gnulib-tool (func_import, func_create_testdir): Don't go into an
44530 endless loop while replacing $auxdir with build-aux.
44532 2006-01-11 Simon Josefsson <jas@extundo.com>
44534 * lib/stdint_.h (SIZE_MAX): Add missing (.
44536 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
44538 Sync from coreutils.
44539 * lib/md5.c: Fix commentary typos.
44540 (alignof, UNALIGNED_P): No need for a GCC-specific version.
44541 * lib/md5.h (__attribute__): Remove; unused.
44542 * lib/sha1.c: Fix commentary to match md5 better.
44543 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
44544 so that we don't need to worry about alignment. All uses changed.
44545 This merges the 2005-10-28 md5 change into sha1.
44547 2006-01-11 Jim Meyering <jim@meyering.net>
44549 Sync from coreutils.
44550 * lib/md5.c (OP): Fix spacing.
44552 2006-01-11 Bruno Haible <bruno@clisp.org>
44554 Ensure automatic ordering between gl_LOCK and gl_ARGP.
44555 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
44556 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
44558 2006-01-11 Bruno Haible <bruno@clisp.org>
44560 Ensure automatic ordering between gl_LOCK and gl_ARGP.
44561 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
44562 the "early" section as well.
44564 2006-01-11 Bruno Haible <bruno@clisp.org>
44566 Avoid "ar: no archive members specified" error on MacOS X.
44567 * gnulib-tool (func_modules_add_dummy): New function.
44568 (func_import, func_create_testdir): Invoke it.
44570 2006-01-11 Bruno Haible <bruno@clisp.org>
44572 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
44573 with $auxdir in AC_CONFIG_FILES statements.
44575 2006-01-11 Bruno Haible <bruno@clisp.org>
44577 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44578 Initialize also noinst_HEADERS to empty.
44580 2006-01-11 Bruno Haible <bruno@clisp.org>
44582 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
44584 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
44587 2006-01-11 Bruno Haible <bruno@clisp.org>
44589 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
44590 overridable by the user.
44591 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44593 2006-01-10 Simon Josefsson <jas@extundo.com>
44595 * modules/sys_socket: New file.
44597 2006-01-10 Simon Josefsson <jas@extundo.com>
44599 * m4/sys_socket_h.m4: New file.
44601 2006-01-10 Simon Josefsson <jas@extundo.com>
44603 * lib/socket_.h: New file.
44605 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
44607 * modules/readutmp (Maintainer): Add myself.
44609 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
44611 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
44612 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
44613 People who are still concerned with buggy memcmp implementations
44614 can invoke gl_FUNC_MEMCMP themselves.
44616 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
44618 * lib/regex_internal.h (BITSET_WORD_BITS):
44619 Work around a bug in 64-bit PGC (before version 6.1-2), where the
44620 preprocessor mishandles large unsigned values as if they were signed.
44621 Problem reported by Claudio Fontana in
44622 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
44624 2006-01-10 Jim Meyering <jim@meyering.net>
44626 Avoid the double-free (first in fts_read, second in fts_close) that
44627 would occur when an `active' directory is made inaccessible (e.g.,
44628 via chmod a-x) during a traversal.
44629 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44630 before returning. Reproduce this failure by
44631 mkdir -p a/b; cd a; chmod a-x . b
44632 Reported by Stavros Passas.
44634 Sync from coreutils.
44635 * lib/sha1.c: Tweak grammar in a comment.
44637 2006-01-10 Jim Meyering <jim@meyering.net>
44639 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
44640 Patch by Joerg Sonnenberger.
44642 2006-01-10 Bruno Haible <bruno@clisp.org>
44644 * modules/readutmp: Depend on module free.
44645 * modules/strtok_r: Depend on module restrict.
44647 2006-01-10 Bruno Haible <bruno@clisp.org>
44649 * modules/gettext (configure.ac): Add an invocation of
44650 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
44652 2006-01-10 Bruno Haible <bruno@clisp.org>
44654 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
44655 Reported by Werner Lemberg <wl@gnu.org>.
44657 2006-01-10 Bruno Haible <bruno@clisp.org>
44659 * lib/localcharset.c: Update from GNU gettext.
44661 2006-01-10 Bruno Haible <bruno@clisp.org>
44663 * lib/argp.h (__const): Remove macro. Use const instead.
44664 * lib/argp-fmtstream.h (__const): Likewise.
44665 * lib/glob_.h (__const): Remove macro.
44666 * lib/glob-libc.h: Use const instead of __const.
44668 2006-01-10 Bruno Haible <bruno@clisp.org>
44670 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
44672 Needed to avoid an automake error regarding the 'gettext' module.
44674 2006-01-09 Simon Josefsson <jas@extundo.com>
44676 * modules/inet_ntop (Depends-on): Add restrict.
44678 2006-01-09 Simon Josefsson <jas@extundo.com>
44680 * modules/gc-rijndael-tests (License): Put under LGPL.
44682 * modules/gc-des-tests (License): Likewise.
44684 * modules/gc-arcfour-tests (License): Likewise.
44686 * modules/gc-arctwo-tests (License): Likewise.
44688 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
44690 * modules/gc-hmac-sha1-tests (Files): Likewise.
44692 * modules/gc-hmac-md5-tests (License): Likewise.
44694 * modules/gc-sha1-tests (License): Likewise.
44696 * modules/gc-md5-tests (License): Likewise.
44698 * modules/gc-md4-tests (License): Likewise.
44700 * modules/gc-md2-tests (License): Likewise.
44702 * modules/gc-tests (License): Likewise.
44704 * modules/des-tests (License): Likewise.
44706 * modules/md4-tests (License): Likewise.
44708 * modules/md2-tests (License): Likewise.
44710 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
44712 Sync from coreutils:
44714 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
44715 * modules/lib-ignore: New file.
44716 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
44717 chdir-safer.m4, lchmod.m4.
44718 * modules/openat: Add mkdirat.c, openat-priv.h.
44720 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
44722 Sync from coreutils.
44723 * m4/lib-ignore.m4: New file.
44724 * m4/lchmod.m4: New file.
44726 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
44728 Sync from coreutils.
44729 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
44730 for write access: POSIX says that must fail.
44731 * lib/fts.c (diropen): Likewise.
44732 * lib/save-cwd.c (save_cwd): Likewise.
44733 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
44734 well, for minor improvements on hosts that lack O_DIRECTORY.
44735 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
44736 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
44737 Fall back on chown if open failed with EACCES.
44739 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
44740 Report an error at compile-time if only a 1-second nominal clock
44741 resolution is found.
44743 * lib/lchmod.h: New file.
44744 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
44745 (make_dir_parents): Use lchown rather than chown, and
44746 lchmod rather than chmod.
44748 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
44749 dummies too. Problem with "none" reported by Bob Proulx. Problem with
44750 "proc" reported by n0dalus.
44752 * lib/mountlist.c: Include <limits.h>.
44753 (dev_from_mount_options)
44754 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
44755 New function. It no longer assumes "dev=" has the System V meaning
44756 on Linux (since it doesn't). It also parses "dev=" more carefully.
44757 (read_file_system_list)
44758 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
44759 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
44762 * lib/posixtm.h (PDS_PRE_2000): New macro.
44763 * lib/posixtm.c (year): Arg is now syntax_bits rather than
44764 allow_century. All usages changed. Reject dates outside the range
44765 1969-1999 if PDS_PRE_2000 is used.
44767 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
44769 Sync from coreutils.
44770 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
44771 (Time of day items): Mention the possibility of leap seconds.
44772 Problem reported by Dr. David Alan Gilbert.
44774 2006-01-09 Jim Meyering <jim@meyering.net>
44776 Sync from coreutils.
44778 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
44780 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
44782 * lib/modechange.c (mode_compile): Reject an invalid mode string
44783 that starts with an octal digit. From Andreas Gruenbacher.
44785 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
44786 and dup to open_safer and dup_safer, respectively.
44787 (openat_permissive): Fix typo in comment.
44789 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
44790 "gettext.h"; either no longer needed or are guaranteed by openat.h.
44791 (_): Remove; no longer needed.
44792 (openat): Renamed from rpl_openat; no need for rpl_openat
44793 since openat.h renames openat for us.
44794 Replace most of the body with a call to openat_permissive,
44795 to avoid duplicate code.
44796 Port to (probably hypothetical) environments were mode_t is
44798 (openat_permissive): Require mode arg, so that we can check
44799 types better. Put it just after flags. Change cwd failure
44800 indicator from pointer-to-bool to pointer-to-errno-value.
44801 All callers changed.
44802 Invoke openat_save_fail and/or openat_restore_fail if
44803 cwd_errno is null, so that openat can call us.
44804 (openat_permissive, fdopendir, fstatat, unlinkat):
44805 Simplify errno handling to avoid some duplicate code,
44806 as it's OK to set errno on success.
44807 * lib/openat.h: Revamp code so that function macros depend on
44808 __OPENAT_PREFIX only, not also on AT_FDCWD.
44809 (openat_ro): Remove. Caller changed to use openat_permissive.
44810 (openat_permissive): Now a macro, if not a function.
44811 (openat_restore_fail, openat_save_fail): Now always functions,
44812 since mkdirat needs them even if __OPENAT_PREFIX is defined.
44814 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
44816 * lib/mkdirat.c: Include openat-priv.h.
44817 Remove definitions of macros defined therein.
44818 * lib/openat.c: Likewise.
44820 * lib/mkdirat.c (mkdirat): New file and function.
44821 * lib/openat.h (mkdirat): Declare.
44823 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
44825 * lib/openat.h (openat_permissive): Declare.
44826 (openat_ro): Define.
44828 * lib/openat.c (EXPECTED_ERRNO): New macro.
44829 (openat_permissive): New function -- used in remove.c rewrite.
44830 (all functions): Set errno just before returning, only if there
44831 was an actual failure.
44832 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
44834 Emulate openat-family functions using Linux's procfs, if possible.
44835 Idea and some code based on Ulrich Drepper's glibc changes.
44837 * lib/openat.c: (BUILD_PROC_NAME): New macro.
44838 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
44839 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
44840 before falling back on save_cwd and restore_cwd.
44841 (fdopendir, fstatat, unlinkat): Likewise.
44843 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
44844 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
44846 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
44847 as second argument to va_arg. Otherwise, some versions of gcc
44848 warn that `if this code is reached, the program will abort'.
44850 2006-01-09 Jim Meyering <jim@meyering.net>
44852 Sync from coreutils.
44853 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
44854 Require openat-priv.h.
44856 2006-01-09 Bruno Haible <bruno@clisp.org>
44858 * modules/strnlen (Include): Use strnlen.h.
44860 2006-01-09 Bruno Haible <bruno@clisp.org>
44862 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
44864 2006-01-09 Bruno Haible <bruno@clisp.org>
44866 * lib/sysexit_.h (EX_OK): New macro.
44867 Suggested by Martin Lambers <marlam@marlam.de>.
44869 2006-01-09 Bruno Haible <bruno@clisp.org>
44871 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
44872 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
44874 2006-01-09 Bruno Haible <bruno@clisp.org>
44876 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
44879 2006-01-09 Bruno Haible <bruno@clisp.org>
44881 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
44882 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
44883 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
44884 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
44886 2006-01-09 Bruno Haible <bruno@clisp.org>
44888 * build-aux/javacomp.sh.in: New file, moved from lib/.
44889 * modules/javacomp-script (Files): Update.
44890 (configure.ac): Add AC_CONFIG_FILES invocation.
44891 (EXTRA_DIST): Remove variable.
44893 * build-aux/javaexec.sh.in: New file, moved from lib/.
44894 * modules/javaexec (Files): Update.
44895 (configure.ac): Add AC_CONFIG_FILES invocation.
44896 (EXTRA_DIST): Remove javaexec.sh.in.
44898 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
44899 * modules/csharpcomp-script (Files): Update.
44900 (configure.ac): Add AC_CONFIG_FILES invocation.
44901 (EXTRA_DIST): Remove variable.
44903 * build-aux/csharpexec.sh.in: New file, moved from lib/.
44904 * modules/csharpexec (Files): Update.
44905 (configure.ac): Add AC_CONFIG_FILES invocation.
44906 (EXTRA_DIST): Remove csharpexec.sh.in.
44908 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
44910 Sync from coreutils.
44912 Add POSIX ACL support
44913 * lib/acl.h (copy_acl, set_acl): Add declarations.
44914 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
44915 systems other than Linux.
44916 (chmod_or_fchmod): New function: use fchmod when possible,
44917 and chmod otherwise.
44918 (file_has_acl): Add a POSIX ACL implementation, with a
44919 Linux-specific subcase.
44920 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
44921 S_ISVTX from one file to another. Fall back to fchmod/chmod when
44922 acls are unsupported.
44923 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
44924 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
44927 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
44929 Sync from coreutils.
44930 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
44932 2006-01-07 Bruno Haible <bruno@clisp.org>
44934 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
44937 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
44939 * lib/strftime.c (tzname): Don't declare if it is already #defined.
44940 Problem reported for Mingw by Mark Junker.
44942 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
44944 * README: Gnulib normally doesn't generate a tarball.
44946 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
44948 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
44949 long int, not int, for nanosecond counts, so that people who are
44950 used to POSIX struct timespec won't be surprised. Reported by Jim
44953 2005-12-28 Bruno Haible <bruno@clisp.org>
44955 * build-aux/config.rpath: Update from GNU gettext.
44957 2005-12-16 Jim Meyering <jim@meyering.net>
44959 * modules/fprintftime: New module.
44960 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
44962 2005-12-16 Jim Meyering <jim@meyering.net>
44964 * m4/fprintftime.m4: New file.
44966 2005-12-16 Jim Meyering <jim@meyering.net>
44968 * lib/fprintftime.c, lib/fprintftime.h: New files.
44970 2005-12-15 Simon Josefsson <jas@extundo.com>
44972 * modules/socklen (configure.ac): Fix M4 macro name, to align with
44975 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
44977 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
44978 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
44980 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
44982 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
44983 * lib/argp-help.c (fill_in_uparams): Check if the constructed
44984 struct uparams is valid. Fall back to the default values if it is
44987 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
44989 * modules/argp (Files): Add argp-pin.c
44990 (Depends-on): dirname
44991 (lib_SOURCES): Add argp-pin.c
44993 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
44995 * m4/argp.m4: Check if program_invocation_name and
44996 program_invocation_short_name are declared and define appropriate
44997 macros if they are not.
44999 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
45001 * lib/argp-help.c (__argp_base_name): New function
45002 (__argp_short_program_name): Rewrite using __argp_base_name
45003 * lib/argp-namefrob.h: Define program_invocation_name and
45004 program_invocation_short_name if requested
45005 (__argp_base_name): Add prototype
45006 * lib/argp-parse.c (argp_def): Use gettext wrappers
45007 (argp_default_parser): Use __argp_base_name
45008 * lib/argp-pin.c: New file. Defines program_invocation_name and
45009 program_invocation_short_name on systems that lack them.
45011 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
45013 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
45014 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45015 porting problem reported by Georg Schwarz in
45016 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45018 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
45020 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
45021 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
45022 porting problem reported by Georg Schwarz in
45023 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
45025 2005-12-05 Bruno Haible <bruno@clisp.org>
45027 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
45028 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
45029 Reported by Mark Junker <mjscod@gmx.de>.
45031 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
45033 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
45034 Use implementation from Albert Chin, with some
45035 comments/corrections by Stepan Kasal and myself.
45037 2005-12-02 Bruno Haible <bruno@clisp.org>
45039 * gnulib-tool (func_import): Accept GPLed build tool modules when
45041 * modules/csharpcomp-script: New file.
45042 * modules/csharpcomp: Depend on it.
45043 * modules/javacomp-script: New file.
45044 * modules/javacomp: Depend on it.
45045 Suggested by Simon Josefsson.
45047 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
45049 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
45050 statement, to work around an HP-UX 10.20 compiler bug reported by
45053 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
45055 * modules/savedir (Depends-on): Add openat.
45057 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
45059 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
45060 (uintmax_t) [defined uintmax_t]: Do not declare.
45061 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
45062 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
45063 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
45064 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
45065 sake of portability to weird hosts that C allows (though we don't
45066 know of any practical examples).
45068 * lib/savedir.h (fdsavedir): New decl.
45069 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
45070 contains most of the former guts of savedir.
45071 (savedir): Use savedirstream.
45072 Include "openat.h".
45074 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
45076 * modules/obstack (Files): Add m4/ulonglong.m4.
45077 Problem reported by Davide Angelocola.
45079 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
45081 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
45082 coreutils no longer futzes with rounding modes.
45084 2005-11-14 Jim Meyering <jim@meyering.net>
45086 * lib/mkstemp-safer.c: Include <config.h>, required for possible
45087 replacement of mkstemp.
45089 2005-11-10 Simon Josefsson <jas@extundo.com>
45091 * lib/readline.c: Remove EOL.
45093 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
45095 * modules/gethrxtime (Depends-on): Add gettime.
45097 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
45099 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
45100 or gettimeofday; no longer needed.
45102 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
45104 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
45106 (gethrxtime) [! (HAVE_NANOUPTIME
45107 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
45108 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
45109 our own approximation.
45111 2005-11-08 Eric Blake <ebb9@byu.net>
45113 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45115 2005-11-08 Eric Blake <ebb9@byu.net>
45117 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45119 2005-11-04 Bruno Haible <bruno@clisp.org>
45121 * gnulib-tool: Implement --update mode.
45123 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
45125 Fix porting problem reported by Theodoros V. Kalamatianos.
45126 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
45127 Don't assume that futimes failing means we must fail.
45129 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
45131 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
45132 variables to suggest the intended function of the PATH_MAX check.
45134 2005-10-30 Kean Johnston <jkj@sco.com>
45136 Trivial changes to support SCO systems.
45137 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
45139 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
45140 where __ptr is null when no I/O is pending.
45142 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
45144 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
45145 leave errno alone. Problem reported by Dmitry V. Levin.
45147 2005-10-28 Simon Josefsson <jas@extundo.com>
45149 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
45152 * tests/test-gc-md2.c, tests/test-md2.c: New files.
45154 * modules/md2, modules/md2-tests: New files.
45156 2005-10-28 Simon Josefsson <jas@extundo.com>
45158 * m4/inet_ntop.m4: More tests.
45160 * m4/gc-md2.m4, md2.m4: New file.
45162 2005-10-28 Simon Josefsson <jas@extundo.com>
45164 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
45165 "restrict" keywords, as per POSIX. Protect the function
45166 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
45167 Don't use K&R prototypes. Check the sprintf return values.
45168 Re-define EAFNOSUPPORT if not present. Indent.
45170 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
45171 suggested by Bruno Haible <bruno@clisp.org>.
45173 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
45175 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
45177 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
45180 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
45182 * lib/md2.h, lib/md2.c: New files.
45184 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
45186 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
45187 errno alone. Problem reported by Frederic Jolliton.
45189 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
45191 * modules/verify (License): Change from GPL to LGPL. This is a
45192 tiny module and there are apparently near-equivalents that are
45193 under the BSD license.
45195 2005-10-24 Simon Josefsson <jas@extundo.com>
45197 * modules/sha1: Relicense to LGPL.
45199 2005-10-24 Simon Josefsson <jas@extundo.com>
45201 * lib/md4.h: Shrink buffer size, now that we changed the type.
45203 2005-10-23 Simon Josefsson <jas@extundo.com>
45205 * gnulib-tool (func_import): Fix --tests-base.
45207 2005-10-22 Simon Josefsson <jas@extundo.com>
45209 * modules/arcfour (Depends-on): Need stdint.
45211 2005-10-22 Simon Josefsson <jas@extundo.com>
45213 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
45214 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
45216 2005-10-22 Simon Josefsson <jas@extundo.com>
45218 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
45219 suggested by Bruno Haible <bruno@clisp.org>.
45221 2005-10-22 Simon Josefsson <jas@extundo.com>
45223 * lib/crc.h: Include stddef.h, for size_t.
45225 2005-10-22 Simon Josefsson <jas@extundo.com>
45227 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
45228 arcfour_context struct (simplify test vector testing in GNU
45231 2005-10-21 Simon Josefsson <jas@extundo.com>
45233 * modules/des, modules/des-tests: New files.
45235 * modules/gc-des, modules/gc-des-tests: New files.
45237 * tests/test-des.c, tests/test-gc-des.c: New file.
45239 2005-10-21 Simon Josefsson <jas@extundo.com>
45241 * modules/arctwo, modules/arctwo-tests: New files.
45243 * tests/test-arctwo.c: New file.
45245 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
45247 * tests/test-gc-arctwo.c: New file.
45249 2005-10-21 Simon Josefsson <jas@extundo.com>
45251 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
45252 Bruno Haible <bruno@clisp.org>.
45254 * m4/gc-des.m4: New file.
45256 2005-10-21 Simon Josefsson <jas@extundo.com>
45258 * m4/arctwo.m4: New file.
45260 * m4/gc-arctwo.m4: New file.
45262 2005-10-21 Simon Josefsson <jas@extundo.com>
45264 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
45267 2005-10-21 Simon Josefsson <jas@extundo.com>
45269 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
45272 * lib/hmac-sha1.c (hmac_sha1): Likewise.
45274 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
45275 Bruno Haible <bruno@clisp.org>.
45277 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
45280 2005-10-21 Simon Josefsson <jas@extundo.com>
45282 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
45284 2005-10-21 Simon Josefsson <jas@extundo.com>
45286 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
45288 2005-10-21 Simon Josefsson <jas@extundo.com>
45290 * lib/des.h, lib/des.c: New files.
45292 * lib/gc-gnulib.c: Support DES.c
45294 2005-10-21 Simon Josefsson <jas@extundo.com>
45296 * lib/arctwo.h, lib/arctwo.c: New files.
45298 * lib/gc-gnulib.c: Support ARCTWO.
45300 2005-10-21 Simon Josefsson <jas@extundo.com>
45302 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
45303 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45305 2005-10-21 Simon Josefsson <jas@extundo.com>
45307 * gnulib-tool (func_import, func_create_testdir): Define automake
45308 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
45309 Makefile.am snippet),
45310 suggested by Bruno Haible <bruno@clisp.org>.
45312 * modules/gc (Makefile.am): Use it.
45314 2005-10-21 Bruno Haible <bruno@clisp.org>
45316 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
45319 2005-10-19 Simon Josefsson <jas@extundo.com>
45321 * tests/test-gc-rijndael.c: New file.
45323 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
45325 2005-10-19 Simon Josefsson <jas@extundo.com>
45327 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
45330 2005-10-19 Simon Josefsson <jas@extundo.com>
45332 * tests/test-gc-arcfour.c: New file.
45334 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
45336 2005-10-19 Simon Josefsson <jas@extundo.com>
45338 * modules/gc-md4, modules/gc-md4-tests: New file.
45340 * tests/test-gc-md4.c: New file.
45342 2005-10-19 Simon Josefsson <jas@extundo.com>
45344 * m4/gc-md4.m4: New file.
45346 2005-10-19 Simon Josefsson <jas@extundo.com>
45348 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
45349 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
45352 2005-10-19 Simon Josefsson <jas@extundo.com>
45354 * m4/gc-arcfour.m4: New file.
45356 * m4/gc-rijndael.m4: New file.
45358 2005-10-19 Simon Josefsson <jas@extundo.com>
45360 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
45362 2005-10-19 Simon Josefsson <jas@extundo.com>
45364 * lib/gc-gnulib.c: Support ARCFOUR.
45366 2005-10-19 Simon Josefsson <jas@extundo.com>
45368 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
45371 * lib/gc.h: Add ECB enum type.
45373 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
45375 2005-10-18 Simon Josefsson <jas@extundo.com>
45377 * tests/test-md5.c: New file.
45379 * modules/md5-tests: New file.
45381 2005-10-18 Simon Josefsson <jas@extundo.com>
45383 * tests/test-md4.c: New file.
45385 * modules/md4, modules/md4-tests: New files.
45387 2005-10-18 Simon Josefsson <jas@extundo.com>
45389 * m4/md4.m4: New file.
45391 2005-10-18 Simon Josefsson <jas@extundo.com>
45393 * lib/md4.h, lib/md4.c: New files, based on md5.?.
45395 2005-10-17 Stepan Kasal <kasal@ucw.cz>
45397 * gnulib-tool (func_create_testdir): Omit the second check whether
45398 BUILT_SOURCES in nonempty.
45400 2005-10-17 Simon Josefsson <jas@extundo.com>
45402 * tests/test-rijndael.c: New file.
45404 2005-10-17 Simon Josefsson <jas@extundo.com>
45406 * modules/sha1: Depend on stdint instead of md5.
45408 * modules/md5: Depend on stdint, remove uint32_t.
45410 2005-10-17 Simon Josefsson <jas@extundo.com>
45412 * modules/gc-sha1-tests: New file.
45414 * tests/test-gc-sha1.c: New file.
45416 2005-10-17 Simon Josefsson <jas@extundo.com>
45418 * m4/md5.m4: Remove call to uint32_t.m4.
45420 2005-10-17 Simon Josefsson <jas@extundo.com>
45422 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
45424 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
45427 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
45429 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
45431 2005-10-17 Simon Josefsson <jas@extundo.com>
45433 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
45435 2005-10-17 Simon Josefsson <jas@extundo.com>
45437 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
45439 2005-10-17 Simon Josefsson <jas@extundo.com>
45441 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
45443 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
45445 2005-10-17 Bruno Haible <bruno@clisp.org>
45447 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
45448 that it can also be used in a test.
45450 2005-10-16 Bruno Haible <bruno@clisp.org>
45452 * gnulib-tool (func_emit_tests_Makefile_am): Also define
45453 TESTS_ENVIRONMENT, so that individual tests can augment it.
45455 * gnulib-tool (func_create_testdir): Use an intermediate target for
45456 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
45457 macros, like $(ALLOCA_H), which cannot be passed through the command
45460 2005-10-15 Simon Josefsson <jas@extundo.com>
45462 * modules/rijndael-tests: New file.
45464 * modules/rijndael: New file.
45466 2005-10-15 Simon Josefsson <jas@extundo.com>
45468 * m4/rijndael.m4: New file.
45470 2005-10-15 Simon Josefsson <jas@extundo.com>
45472 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
45474 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
45476 2005-10-14 Simon Josefsson <jas@extundo.com>
45478 * tests/test-arcfour.c: New file.
45480 * modules/arcfour, modules/arcfour-tests: New files.
45482 2005-10-14 Simon Josefsson <jas@extundo.com>
45484 * m4/arcfour.m4: New file.
45486 2005-10-14 Simon Josefsson <jas@extundo.com>
45488 * lib/arcfour.h, lib/arcfour.c: New files.
45490 2005-10-14 Roland McGrath <roland@redhat.com>
45492 Import from libc. [BZ #1331]
45493 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
45495 Reported by Matej Vela <vela@debian.org>.
45497 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
45499 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
45500 include <wchar.h>; no longer needed.
45502 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
45504 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
45506 2005-10-14 Jakub Jelinek <jakub@redhat.com>
45507 and Ulrich Drepper <drepper@redhat.com>
45510 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
45511 instead of inline stream orientation test and two separate
45512 function calls. Pay no attention to USE_IN_LIBIO.
45514 2005-10-13 Simon Josefsson <jas@extundo.com>
45516 * modules/gc-hmac-md5-tests: New file.
45518 * tests/test-gc-hmac-sha1.c: New file.
45520 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
45522 * modules/gc-hmac-md5-tests: New file.
45524 * tests/test-gc-md5.c: New file.
45526 * modules/gc-md5-tests: New file.
45528 2005-10-13 Simon Josefsson <jas@extundo.com>
45530 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
45531 Move memory allocation outside of loop.
45533 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
45535 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
45536 intermediate directory is in a read-only file system. Problem
45537 reported by Eric Blake.
45539 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
45541 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
45543 2005-10-12 Simon Josefsson <jas@extundo.com>
45545 * tests/test-hmac-sha1.c: New file.
45547 * modules/hmac-sha1-tests: New file.
45549 * modules/hmac-sha1: New file.
45551 2005-10-12 Simon Josefsson <jas@extundo.com>
45553 * modules/gc-sha1: New file.
45555 2005-10-12 Simon Josefsson <jas@extundo.com>
45557 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
45559 * tests/test-gc-pbkdf2-sha1.c: New file.
45561 2005-10-12 Simon Josefsson <jas@extundo.com>
45563 * modules/gc-md5, modules/gc-hmac-md5: New files.
45565 * modules/gc (Files): Remove md5, memxor and hmac files.
45567 2005-10-12 Simon Josefsson <jas@extundo.com>
45569 * m4/gc-pbkdf2-sha1.m4: New file.
45571 * m4/gc-hmac-sha1.m4: New file.
45573 * m4/gc-sha1: New file.
45575 * m4/hmac-sha1.m4: New file.
45577 2005-10-12 Simon Josefsson <jas@extundo.com>
45579 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
45581 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
45583 2005-10-12 Simon Josefsson <jas@extundo.com>
45585 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
45586 suggested by Bruno Haible <bruno@clisp.org>.
45588 2005-10-12 Simon Josefsson <jas@extundo.com>
45590 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
45592 2005-10-12 Simon Josefsson <jas@extundo.com>
45594 * lib/gc-pbkdf2-sha1.c: New file.
45596 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
45598 2005-10-12 Simon Josefsson <jas@extundo.com>
45600 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
45602 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
45604 2005-10-12 Simon Josefsson <jas@extundo.com>
45606 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
45607 GC_USE_HMAC_MD5, respectively.
45609 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
45610 (gc_md5): Fix typo.
45612 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
45614 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
45616 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
45618 2005-10-12 Bruno Haible <bruno@clisp.org>
45620 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
45621 Reported by Stepan Kasal <kasal@ucw.cz>.
45623 2005-10-11 Simon Josefsson <jas@extundo.com>
45625 * tests/test-crc.c: New file.
45627 * modules/crc, modules/crc-tests: New files.
45629 2005-10-11 Simon Josefsson <jas@extundo.com>
45631 * m4/crc.m4: New file.
45633 2005-10-11 Simon Josefsson <jas@extundo.com>
45635 * lib/gc.h: Add gc_hash and gc_hash_buffer.
45637 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
45639 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
45641 2005-10-11 Simon Josefsson <jas@extundo.com>
45643 * lib/crc.h, lib/crc.c: New files.
45645 * lib/gc.h (gc_hash_buffer): Add doc.
45647 2005-10-11 Bruno Haible <bruno@clisp.org>
45649 * modules/c-strcasestr: New file.
45650 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
45652 2005-10-11 Bruno Haible <bruno@clisp.org>
45654 * modules/c-strcase: New file.
45655 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
45657 2005-10-11 Bruno Haible <bruno@clisp.org>
45659 * lib/strcasecmp.c: Include limits.h.
45660 (strcasecmp): Avoid integer overflow on exotic platforms.
45661 * lib/strncasecmp.c: Include limits.h.
45662 (strncasecmp): Avoid integer overflow on exotic platforms.
45663 Reported by Paul Eggert.
45665 2005-10-11 Bruno Haible <bruno@clisp.org>
45667 * lib/c-strcasestr.h: New file, from GNU gettext.
45668 * lib/c-strcasestr.c: New file, from GNU gettext.
45670 2005-10-11 Bruno Haible <bruno@clisp.org>
45672 * lib/c-strcase.h: New file, from GNU gettext.
45673 * lib/c-strcasecmp.c: New file, from GNU gettext.
45674 * lib/c-strncasecmp.c: New file, from GNU gettext.
45676 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
45678 * modules/mempcpy (License): GPL -> LGPL.
45679 * modules/strchrnul (License): Likewise.
45680 * modules/sysexits (License): Likewise.
45682 2005-10-08 Simon Josefsson <jas@extundo.com>
45684 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
45686 2005-10-07 Simon Josefsson <jas@extundo.com>
45688 * m4/memxor.m4: Remove gl_C_RESTRICT call.
45690 2005-10-06 Simon Josefsson <jas@extundo.com>
45692 * tests/test-hmac-md5.c: New file.
45694 * modules/hmac-md5-tests: New file.
45696 * modules/hmac-md5: New file.
45698 2005-10-06 Simon Josefsson <jas@extundo.com>
45700 * m4/hmac-md5.m4: New file.
45702 * m4/memxor.m4: Require gl_C_RESTRICT.
45704 2005-10-06 Simon Josefsson <jas@extundo.com>
45706 * lib/memxor.c (memxor): Avoid casts and warnings.
45708 2005-10-06 Simon Josefsson <jas@extundo.com>
45710 * lib/hmac-md5.c: New file.
45712 * lib/hmac.h: New file.
45714 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
45716 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
45717 promotes to int, not unsigned int, to catch the AIX 5.3
45720 2005-10-05 Simon Josefsson <jas@extundo.com>
45722 * modules/memxor: New file.
45724 * modules/iconv (Files): Move config.rpath to havelib, it is used
45727 * modules/havelib (Files): Add config.rpath.
45729 2005-10-05 Simon Josefsson <jas@extundo.com>
45731 * m4/memxor.m4: New file.
45733 2005-10-05 Simon Josefsson <jas@extundo.com>
45735 * lib/memxor.c (memxor): Fix compiler error.
45737 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
45738 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
45740 * lib/memxor.h, lib/memxor.c: New files.
45742 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
45743 we assume all systems have it, suggested by Jim Meyering
45744 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
45745 any systems lack sys/socket.h; mingw32 is known to lack it, but we
45746 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
45749 2005-10-05 Simon Josefsson <jas@extundo.com>
45751 * config/srclist.txt: Add glibc bug 1423 for md5.h.
45753 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
45755 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
45756 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
45757 needed, since the source code now assumes these .h files.
45759 2005-10-05 Derek Price <derek@ximbiot.com>
45761 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
45763 2005-10-05 Bruno Haible <bruno@clisp.org>
45765 * modules/stdint (License): Change to LGPL.
45767 2005-10-04 Simon Josefsson <jas@extundo.com>
45769 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
45770 D. Baushke" <mdb@gnu.org>.
45772 2005-10-04 Bruno Haible <bruno@clisp.org>
45774 * lib/verify.h (verify_true): Provide alternative definition for C++.
45776 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
45778 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
45779 (SSIZE_MAX): New macro, if not already defined.
45780 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
45783 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
45785 Sync from coreutils.
45786 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
45787 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
45788 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
45789 ULLONG_MAX doesn't work with 2.7.2.1.
45791 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
45793 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
45796 * modules/exclude (Depends-on): Depend on verify.
45797 * modules/strtoimax (Depends-on): Likewise.
45798 * modules/utimecmp (Depends-on): Likewise.
45800 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
45802 * lib/exclude.c: Include verify.h.
45803 (verify): Remove. All callers changed to use verify.h's version.
45804 * lib/strtoimax.c: Likewise.
45805 * lib/utimecmp.c: Likewis.e
45807 Sync from coreutils.
45808 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
45809 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
45810 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
45811 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
45812 bother returning ENOSYS if settimeofday or stime fails; just let
45813 them return whatever errno they want to return.
45814 * lib/utimens.c: Include unistd.h, for dup2.
45815 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
45816 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
45818 2005-10-02 Jim Meyering <jim@meyering.net>
45820 Sync from coreutils.
45821 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
45822 from glibc-2.2.5 that fails for read-only files.
45824 2005-10-02 Jim Meyering <jim@meyering.net>
45826 Sync from coreutils.
45827 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
45828 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
45829 `#if HAVE_CONFIG_H'.
45830 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
45831 Remove AT_FDCWD test.
45832 Do not consume the fd unless successful.
45833 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
45834 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
45835 block, so that we don't even try to compile it if settimeofday is
45836 available. This works around a compilation failure on OSF1 V5.1,
45837 due to stime requiring a `long int*' while tv_sec is `int'.
45839 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
45841 Sync from coreutils.
45842 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
45843 against `yes', rather than just testing for nonempty.
45845 2005-10-01 Simon Josefsson <jas@extundo.com>
45847 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
45850 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
45851 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
45852 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
45853 freeaddrinfo and gai_strerror are declared by the POSIX headers.
45854 Check if struct addrinfo is declared.
45856 2005-10-01 Simon Josefsson <jas@extundo.com>
45858 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
45859 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
45860 AI_* and EAI_* definitions. Protect function declarations.
45862 2005-10-01 Jim Meyering <jim@meyering.net>
45864 Sync from coreutils.
45866 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
45867 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
45868 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
45869 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45870 in the inet and nsl libraries. Required on Solaris 5.7.
45872 2005-10-01 Jim Meyering <jim@meyering.net>
45874 Sync from coreutils.
45875 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45876 in the inet and nsl libraries. Required on Solaris 5.7.
45878 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
45880 * lib/getdelim.c (getdelim): Remove unused variables.
45882 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
45884 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
45885 so that the code works even with ancient cpp. Portability problem
45886 with GCC 2.7.2.1 reported by Thomas M.Ott.
45888 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
45890 * modules/regex (Depends-on): Add strcase.
45892 * modules/gethostname (Licence): Change from GPL to LGPL, since
45893 gethostname.c is a trivial implementation of a standard library
45895 * modules/poll (License): Change from GPL to LGPL, since it's
45896 derived from LGPL code.
45898 2005-09-27 Jim Meyering <jim@meyering.net>
45900 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
45903 * lib/intprops.h (signed_type_or_expr__): Define.
45904 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
45905 for unsigned types.
45907 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
45909 * lib/verify.h (verify_expr): Remove, replacing with:
45910 (verify_true): New macro that returns true instead of void.
45911 (verify_type__): Remove.
45912 (verify): Use verify_true rather than verify_type__.
45914 2005-09-26 Bruno Haible <bruno@clisp.org>
45916 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
45918 (lib_SOURCES): Remove mbchar.c.
45919 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
45920 (Files): Add m4/mbrtowc.m4.
45921 * modules/mbiter: Likewise.
45922 * modules/mbuiter: Likewise.
45924 2005-09-26 Bruno Haible <bruno@clisp.org>
45926 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
45927 compile mbchar.c if they are not both present.
45928 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
45929 * m4/mbiter.m4 (gl_MBITER): Likewise.
45930 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
45931 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
45932 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
45934 2005-09-25 Jim Meyering <jim@meyering.net>
45936 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
45937 also uses socklen_t.
45939 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
45941 * lib/utimens.c (ENOSYS): Define if not already defined.
45942 (futimens): Support having a null PATH if the file descriptor
45945 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
45947 (__attribute): Define to empty unless GCC 3.1 or later.
45948 This works around a core dump on OpenBSD 3.4, which has GCC
45949 2.95.3, which dumps core when given __attribute__(()). It also
45950 simplifies other tests, since we really don't want to bother with
45951 worrying about which ancient version of GCC supported what.
45952 Original problem reported by Yoann Vandoorselaere, with part of
45953 the fix suggested by Derek Price.
45955 2005-09-24 Jim Meyering <jim@meyering.net>
45957 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
45958 so we can once again use a positive bitfield width of 1 -- now we
45959 don't have to explain why we were using a bitfield width of 2.
45961 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
45963 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
45964 and similarly for the other external symbols. Problem reported
45967 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
45968 bug reported by Jim Meyering.
45970 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
45971 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
45972 not needed, since socklen is a prerequisite module.
45974 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
45976 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
45977 Problem reported by Eric Blake.
45978 (getaddrinfo): Initialize se so that it's not garbage.
45979 Redo internal storage allocation so that it doesn't make unportable
45980 assumptions about alignment.
45983 * lib/utimens.c (futimens): Use futimesat if available.
45984 Prefer it to futimes since it doesn't have the futimes bug.
45986 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
45987 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
45988 Instead, declare a function that returns a pointer to an array,
45989 and use verify_type__ to declare the size of the array.
45990 Problem and germ of a solution reported by Bruno Haible.
45991 (verify_type__): Use 2, not 1, for bitfield size, to avoid
45992 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
45994 2005-09-23 Jim Meyering <jim@meyering.net>
45996 Sync from coreutils.
45997 Correct build failure (socklen_t not defined) on at least
45998 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
45999 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
46001 2005-09-23 Jim Meyering <jim@meyering.net>
46003 * modules/getaddrinfo (Depends-on): Add socklen.
46005 2005-09-23 Bruno Haible <bruno@clisp.org>
46007 * tests/test-verify.c: New file.
46009 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
46011 Sync from coreutils.
46013 * modules/argmatch (Depends-on): Add verify.
46014 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
46016 * modules/save-cwd (Depends-on): Likewise.
46018 * modules/openat (Files): Add lib/openat-die.c.
46019 (Depends-on): Remove error, exitfail.
46022 * modules/verify: New file.
46023 * MODULES.html.sh (Diagnostics <assert.h>): New section,
46024 with "verify" module.
46026 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
46028 Sync from coreutils.
46030 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
46031 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
46032 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
46033 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
46034 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
46035 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
46036 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
46037 Don't bother checking for string.h, stdlib.h, unistd.h.
46038 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
46039 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
46041 * m4/jm-macros.m4 (gl_MACROS): Likewise.
46042 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
46044 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
46045 (gl_GETDATE): Use it.
46047 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
46049 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
46051 Sync from coreutils.
46053 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
46055 * lib/argmatch.h: Include verify.h
46056 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
46057 (ARGMATCH_ASSERT): Remove; unused.
46058 * lib/canonicalize.c: Assume STDC_HEADERS.
46059 * lib/exclude.c: Include "strcase.h".
46060 * lib/regex_internal.h [!defined _LIBC]: Likewise.
46061 * lib/getusershell.c: Include stdio--.h rather than stdio.h
46063 (getusershell): Call fopen, not fopen_safer.
46064 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
46065 Do not include unistd-safer.h.
46066 (save_cwd): Don't call fd_safer; no longer needed
46067 now that we include fcntl--.h.
46069 * lib/getdate.y (relative_time): New type.
46070 (RELATIVE_TIME_0): New constant.
46071 (parser_control): Use relative_time instead of doing it ourselves.
46072 (%union): Add new relative_time rel member.
46073 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
46075 (relunit, relunit_snumber): Now of type rel.
46076 (zone, rel, relunit, get_date): Adjust to above changes.
46078 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
46079 Do not include unistd-safer.h.
46080 (getloadavg): Don't call fd_safer; no longer needed
46081 now that we include fcntl--.h.
46083 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
46084 (make_dir_parents): Treat ENOSYS like EEXIST.
46086 Improve quality of diagnostics on restore_cwd failure.
46087 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
46088 (make_dir_parents): Last arg is now int * (for errno), not bool *.
46089 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
46090 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
46091 each time through the loop. Do not diagnose restore_cwd failure;
46092 that is the caller's job (and perhaps the caller does not care).
46094 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
46095 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
46096 If the file already exists but is not a directory, don't bother
46097 to try to make its parents.
46098 Close potential file descriptor leak if we can't chdir("/") (!).
46099 Don't always return true if chdir($PWD) fails; return true only
46100 if the requested action was done successfully (except for the
46102 Don't log final directory unless we actually made it.
46103 Refactor to avoid duplicate code to fix up permissions.
46104 Don't attempt to fix up parent permissions if chdir($PWD) fails.
46106 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
46107 to make it a bit faster and (I hope) clearer.
46108 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
46109 Fix bug in formats like %2N.
46111 * lib/verify.h: New file.
46113 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
46115 Sync from coreutils.
46116 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
46118 2005-09-22 Jim Meyering <jim@meyering.net>
46120 Sync from coreutils.
46122 * m4/lstat.m4 (gl_FUNC_LSTAT):
46123 Use AC_LIBSOURCES to require lstat.c and lstat.h.
46124 Remove obsolete comment.
46125 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
46126 * m4/xstrtod.m4: Likewise.
46128 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
46130 2005-09-22 Jim Meyering <jim@meyering.net>
46132 Sync from coreutils.
46134 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
46136 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
46137 the .tm_year member, since otherwise gcc-4.0 would now warn about
46138 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
46140 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
46141 order to avoid an unsuppressible warning from gcc on 64-bit systems.
46143 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
46144 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
46145 when run in a time zone for which daylight savings time is in effect
46146 for the starting date.
46148 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
46149 stop us from restricting permissions of just-created absolute-named
46151 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
46152 to restore initial working directory.
46153 * lib/mkdir-p.c (make_dir_parents): New parameter:
46154 different_working_dir, to tell caller if/when we change the working
46155 directory and are unable to return to the initial one.
46156 * lib/mkdir-p.h (make_dir_parents): Update prototype.
46157 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
46158 `return false'. This fixes a bug introduced on 2004-07-30.
46160 * lib/openat.c (fdopendir): Be sure to close the supplied
46161 file descriptor before returning. This makes our replacement
46162 implementation a little closer to Solaris's, where fdopendir
46163 ties the file descriptor to the returned DIR* pointer.
46164 * lib/openat.c (unlinkat): New function.
46165 * lib/openat.h (unlinkat): Add prototype.
46166 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
46167 (openat_restore_fail): Rename from openat_restore_die.
46168 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
46170 Provide an alternative to exiting immediately upon save_cwd or
46171 restore_cwd failure. Now, an application can arrange e.g.,
46172 to perform a longjump in that case.
46173 * lib/openat.c: Include dirname.h.
46174 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
46175 (rpl_openat, fdopendir, fstatat): Call openat_save_die
46176 and openat_restore_die rather than calling error directly.
46177 Don't include "error.h" or "exitfail.h"; they're no longer needed.
46179 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
46180 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
46183 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
46184 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
46185 int utc, int nanoseconds);
46187 date should not have to allocate a megabyte of virtual memory to
46188 handle a format argument like +%1048575T. When implemented with
46189 strftime, it must allocate such a buffer, use strftime to fill it
46190 in, print it, then free it.
46191 With fprintftime, it simply prints everything and exits.
46192 With no need for memory allocation, that's one fewer way to fail.
46193 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
46194 optional field width, not before, so we accept %9:z, not %:9z.
46195 (my_strftime): Be sure to use L_('x') for literals.
46197 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
46198 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
46199 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
46200 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
46201 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
46202 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
46203 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
46204 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
46205 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
46206 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
46207 * lib/xgethostname.c, lib/xreadlink.c:
46208 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
46210 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
46211 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
46212 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
46213 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
46214 and don't include <sys/file.h>).
46216 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
46218 Sync from coreutils.
46220 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
46221 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
46222 [!LDAV_DONE]: Avoid unused variable warning.
46224 2005-09-21 Bruno Haible <bruno@clisp.org>
46226 * lib/unicodeio.h (unicode_to_mb): New declaration.
46228 2005-09-20 Derek Price <derek@ximbiot.com>
46230 * lib/getaddrinfo.c: Don't include <netdb.h> included from
46233 2005-09-20 Bruno Haible <bruno@clisp.org>
46235 * gnulib-tool: Remove trailing slashes from the values specified for
46236 --source-base, --m4-base, --tests-base, --aux-dir.
46237 Suggested by Simon Josefsson <jas@extundo.com>.
46239 2005-09-20 Bruno Haible <bruno@clisp.org>
46241 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
46242 func_modules_to_filelist, func_import, func_create_testdir): Make all
46243 sorting results locale-independent, so that gnulib-cache.m4 doesn't
46244 change when gnulib-tool is invoked in a different locale.
46246 2005-09-19 Simon Josefsson <jas@extundo.com>
46248 * m4/socklen.m4: Fix typo.
46250 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46252 Use a consistent style for including <config.h>.
46253 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
46254 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
46255 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
46256 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
46257 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
46258 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
46259 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
46260 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
46261 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
46262 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
46263 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
46264 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
46265 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
46266 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
46267 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
46268 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
46269 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
46270 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
46271 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
46272 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
46273 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
46274 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
46275 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
46276 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
46277 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
46278 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
46279 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
46280 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
46281 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
46282 lib/xstrtoumax.c, lib/yesno.c:
46283 Standardize inclusion of config.h.
46284 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
46285 lib/inttostr.h: Removed inclusion of config.h from header files.
46286 * lib/inttostr.c: Adjusted in-tree users.
46287 * lib/timespec.h: Remove superfluous warning to include config.h.
46288 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
46289 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
46290 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
46291 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
46292 config.h with HAVE_CONFIG_H.
46294 2005-09-19 Jim Meyering <jim@meyering.net>
46296 * modules/pathmax (License): Change to LGPL.
46298 2005-09-19 Derek Price <derek@ximbiot.com>
46300 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
46302 2005-09-19 Bruno Haible <bruno@clisp.org>
46304 * gnulib-tool (import): Provide default for --tests-base.
46306 2005-09-19 Bruno Haible <bruno@clisp.org>
46308 * doc/quote.texi: New file, extracted from gnulib.texi.
46309 * doc/ctime.texi: New file, extracted from gnulib.texi.
46310 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
46311 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
46312 * doc/gnulib.texi: Include them.
46314 2005-09-18 Bruno Haible <bruno@clisp.org>
46317 * gnulib-tool (func_readlink): New function.
46318 (func_ln_if_changed): Use it.
46320 2005-09-18 Bruno Haible <bruno@clisp.org>
46322 * gnulib-tool: Support --with-tests also with --import.
46323 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
46324 (func_import): Use variables $testsbase and $inctests. Emit a
46325 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
46326 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
46327 SUBDIRS += $testsdir.
46328 (func_create_testdir): Update.
46330 2005-09-18 Bruno Haible <bruno@clisp.org>
46332 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
46333 instead of $dry_run.
46334 (func_cp_if_changed, func_mv_if_changed): Remove functions.
46335 (func_ln_if_changed): Don't handle dry-run here.
46336 (func_import): In dry-run mode, detect more precisely which actions
46337 would be performed, and don't use "...ing" verbs.
46339 2005-09-18 Bruno Haible <bruno@clisp.org>
46341 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
46342 (func_import): Use join on two temporary files instead of three nested
46343 loops, in order to determine which files are new or old.
46345 2005-09-18 Bruno Haible <bruno@clisp.org>
46347 * gnulib-tool (func_import): Comment out code that spits out the
46348 new files with --dry-run.
46350 2005-09-18 Bruno Haible <bruno@clisp.org>
46352 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
46354 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
46356 * lib/stat-time.h: New file.
46357 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
46358 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
46359 in a different way.
46360 (timespec_cmp): New function.
46361 * lib/utimecmp.c: Include stat-time.h.
46362 (SYSCALL_RESOLUTION): Depend on whether various struct stat
46363 members exist, not on the obsolescent ST_MTIM_NSEC.
46364 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
46366 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
46368 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
46370 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
46372 * MODULES.html.sh (File system functions): Add stat-time.
46373 * modules/stat-time: New file.
46374 * modules/timespec (Files): Remove m4/st_mtim.m4; this
46375 is now done in a different way, by the stat-time module.
46376 * modules/utimecmp (Depends-on): Add stat-time.
46378 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
46380 * m4/st_mtim.m4: Remove. Superseded by...
46381 * m4/stat-time.m4: New file.
46382 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
46383 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
46385 2005-09-15 Derek Price <derek@ximbiot.com>
46387 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
46389 2005-09-15 Derek Price <derek@ximbiot.com>
46391 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
46392 * lib/regex_internal.c: Ditto, using this...
46393 (__GNUC_PREREQ): ...new macro.
46394 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
46396 (__GNUC_PREREQ): ...this new macro.
46398 * lib/strstr.h: Include string.h. Define strstr as a macro here.
46400 2005-09-15 Derek Price <derek@ximbiot.com>
46401 Paul Eggert <eggert@cs.ucla.edu>
46403 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
46404 changes, consolidating in...
46405 * lib/regex_internal.h: ...this file.
46407 2005-09-13 Jim Meyering <jim@meyering.net>
46409 * lib/canon-host.c: Filter through gnu indent and reword comments
46411 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
46413 2005-09-13 Derek Price <derek@ximbiot.com>
46415 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
46417 Reported by Jim Meyering <jim@meyering.net>.
46419 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46421 * lib/base64.c: Typo.
46422 (base64_encode): Put b64str in initialized data section.
46424 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
46426 Merge glibc and coreutils changes into gnulib, plus a few
46428 * lib/md5.c: Use #error rather than a string.
46429 (CYCLIC): New macro, from glibc source. Use it instead of rol.
46430 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
46431 (__attribute__): Define to empty for non recent-GCC.
46432 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
46433 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
46434 Renamed from their non-__ counterparts, with new macros replacing
46435 them if not _LIBC. Add __THROW attribute.
46437 (struct md5_ctx): Align buffer if using GCC.
46438 * lib/sha1.h (struct sha1_ctx): Likewise.
46439 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
46440 The old name was backwards.
46441 (NOTSWAP): Remove; not used.
46442 (rol): New macro, moved here from md5.h.
46443 (sha1_process_block): Remove a FIXME that doesn't make sense.
46445 2005-09-12 Derek Price <derek@ximbiot.com>
46447 Return usable errors from canon-host.
46448 * lib/canon-host.h: New file.
46449 * lib/canon-host.c (canon_host): Wrap...
46450 (canon_host_r): ...this new function, which now relies exclusively on
46452 (ch_strerror): New function.
46453 (last_cherror): New global.
46454 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
46456 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
46458 (freeaddrinfo): Free ai->ai_canonname when set.
46460 2005-09-12 Derek Price <derek@ximbiot.com>
46462 Make canon-host require getaddrinfo.
46463 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
46464 AC_LIBSOURCE canon-host.h. Call...
46465 (gl_PREREQ_CANON_HOST): ...this new function, which requires
46467 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
46469 2005-09-12 Derek Price <derek@ximbiot.com>
46471 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
46473 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
46475 2005-09-12 Derek Price <derek@ximbiot.com>
46477 * lib/gai_strerror.c: Include config.h when available. Include
46478 getaddrinfo.h before other headers to test interface.
46479 Reported by Larry Jones <lawrence.jones@ugs.com>.
46481 2005-09-12 Derek Price <derek@ximbiot.com>
46482 Paul Eggert <eggert@cs.ucla.edu>
46484 * modules/glob (Files): Add glob-libc.h.
46486 2005-09-12 Derek Price <derek@ximbiot.com>
46487 Paul Eggert <eggert@cs.ucla.edu>
46489 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
46490 glob_.h, glob-libc.h.
46491 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
46493 2005-09-12 Derek Price <derek@ximbiot.com>
46494 Paul Eggert <eggert@cs.ucla.edu>
46496 * lib/glob-libc.h: Renamed from glob_.h. The new version is
46497 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
46498 protecting things that should be done only in gnulib contexts.
46499 * lib/glob_.h: New file, containing only the glob things needed for
46501 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
46502 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
46503 (glob, globfree, glob_pattern_p): Now defined simply in terms of
46504 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
46505 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
46506 and to respect the namespace rules better.
46508 2005-09-08 Simon Josefsson <jas@extundo.com>
46510 * modules/socklen: New file.
46512 2005-09-08 Simon Josefsson <jas@extundo.com>
46514 * m4/socklen.m4: New file.
46516 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
46518 * modules/utimens (Files): Add m4/utimbuf.m4, since
46519 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
46520 Reported by Sergey Poznyakoff.
46522 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
46524 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
46525 definitions, since that's the preferred style in glibc.
46526 Fix a minor spacing issue, and update copyright notice to match
46529 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
46531 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
46533 2005-09-06 Simon Josefsson <jas@extundo.com>
46535 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
46536 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
46538 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46540 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
46543 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46545 * config/srclist.txt: Add glibc bug 1302.
46547 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
46549 Change bitset word type from unsigned int to unsigned long int,
46550 as this has better performance on typical 64-bit hosts.
46551 Port bitset code to hosts with unusual word sizes.
46552 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
46553 (build_collating_symbol):
46554 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
46555 argument is a bitset. This is merely a style issue, but it makes
46556 it clearer that an entire array is expected.
46557 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
46558 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
46559 Port to the case where bitset_word is not the same as unsigned int.
46560 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46561 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
46563 * lib/regexec.c (check_dst_limits_calc_pos_1,
46564 check_subexp_matching_top):
46565 (build_trtable, group_nodes_into_DFAstates):
46567 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
46568 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
46569 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
46570 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
46571 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
46572 * lib/regcomp.c (optimize_subexps, lower_subexp):
46573 Work even if bitset_word has holes in its bitwise representation.
46574 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
46575 * lib/regexec.c (check_dst_limits_calc_pos_1,
46576 check_subexp_matching_top):
46578 * lib/regex_internal.c (re_string_reconstruct):
46579 Don't assume UCHAR_MAX == 255.
46580 * lib/regex_internal.h (bitset_set_all): Likewise.
46581 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
46583 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
46584 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
46586 (BITSET_WORD_MAX): New macro.
46587 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
46588 (bitset_set_all, bitset_copy): Now inline functions, not macros.
46589 (bitset_empty, bitset_copy):
46590 Prefer sizeof (bitset) to multiplying it out ourselves.
46591 (bitset_not_merge): Remove; unused.
46592 (bitset_contain): Return bool, not unsigned int with one bit on.
46593 All callers changed.
46594 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
46595 alignment than re_node_set; do this by defining a new internal
46596 type struct dests_alloc and using it to allocate memory.
46598 2005-09-05 Bruno Haible <bruno@clisp.org>
46600 * gnulib-tool (func_import): Fix comparison in handling of symbolic
46603 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
46605 * modules/size_max (Makefile.am): Add size_max.h
46607 2005-09-04 Derek Price <derek@ximbiot.com>
46609 * gnulib-tool (func_import): Fix reversed $symbolic logic.
46611 2005-09-03 Simon Josefsson <jas@extundo.com>
46613 * gnulib-tool: Fix typo.
46615 2005-09-03 Simon Josefsson <jas@extundo.com>
46617 * config/srclist.txt: Add glibc bug 1293.
46619 2005-09-03 Derek Price <derek@ximbiot.com>
46621 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
46622 From Larry Jones <lawrence.jones@ugs.com>.
46624 2005-09-02 Simon Josefsson <jas@extundo.com>
46626 * modules/socklen: New file.
46628 2005-09-02 Simon Josefsson <jas@extundo.com>
46630 * modules/havelib: New module.
46632 * modules/gettext, modules/iconv, modules/lock, modules/readline:
46635 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
46637 Check for arithmetic overflow when calculating sizes, to prevent
46638 some buffer-overflow issues. These patches are conservative, in the
46639 sense that when I couldn't determine whether an overflow was possible,
46640 I inserted a run-time check.
46641 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
46643 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
46644 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
46645 (re_xnrealloc, re_x2nrealloc): New inline functions.
46646 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
46647 parse_bracket_exp):
46648 (build_equiv_class, build_charclass): Check for arithmetic overflow
46649 in size expression calculations.
46650 * lib/regex_internal.c (re_string_realloc_buffers):
46651 (build_wcs_upper_buffer, re_node_set_add_intersect):
46652 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
46653 (re_dfa_add_node, register_state): Likewise.
46654 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
46655 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
46656 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
46657 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
46659 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
46661 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
46662 m4/ulonglong.m4. Problem reported by Martin Lambers.
46664 2005-09-02 Bruno Haible <bruno@clisp.org>
46666 Support for lib vs. lib64 distinction on biarch platforms.
46667 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
46668 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
46669 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
46671 2005-09-02 Bruno Haible <bruno@clisp.org>
46673 * gnulib-tool (import): In the other first-use case, provide defaults
46676 2005-09-02 Bruno Haible <bruno@clisp.org>
46678 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
46679 patches not yet found in the latest gettext release.
46681 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
46683 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
46684 to avoid a collision with bits/local_lim.h in glibc.
46685 All uses changed. Problem reported by Dmitry V. Levin in
46686 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
46688 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
46689 bugs in int versus size_t comparisons.
46690 (re_string_context_at): Fix bug where the code assumed that
46693 Use bool where appropriate.
46694 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
46695 All callers changed.
46696 (calc_eclosure_iter): Likewise, for ROOT arg.
46697 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
46698 (build_charclass_op): Likewise, for NON_MATCH arg.
46699 * lib/regex_internal.c (re_string_allocate, re_string_construct):
46700 (re_string_construct_common): Likewise, for ICASE arg.
46701 * lib/regexec.c (re_search_2_stub, re_search_stub):
46702 Likewise, for RET_LEN arg.
46703 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
46704 (set_regs): Likewise, for FL_BACKTRACK arg.
46705 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
46706 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
46707 (calc_eclosure_iter, parse_bracket_exp):
46708 Use bool for internal variables that are booleans.
46709 * lib/regexec.c (re_search_internal, check_matching,
46710 proceed_next_node):
46711 (set_regs, build_sifted_states, sift_states_bkref):
46712 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
46713 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
46714 (find_collation_sequence_value):
46716 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
46717 (re_node_set_compare):
46718 Return bool, not int. All callers changed.
46719 * lib/regexec.c (check_halt_node_context, check_dst_limits):
46720 (build_trtable, check_node_accept): Likewise.
46721 * lib/regex_internal.h: Include stdbool.h.
46723 Fix bugs uncovered when converting to bool.
46724 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
46725 failure instead of charging ahead blindly.
46726 * lib/regex_internal.c (register_state): Likewise.
46727 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
46728 for freeing internal storage.
46729 (group_nodes_into_DFA_states): Use unsigned int, not int, for
46730 bitset pieces used as boolean, to avoid undefined behavior
46731 on hosts that do int overflow checking.
46733 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
46735 * config/srclist.txt: Add glibc bugs 1285-1287.
46737 2005-09-01 Jim Meyering <jim@meyering.net>
46739 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
46740 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
46741 Require gl_STAT_MACROS, too.
46743 2005-09-01 Bruno Haible <bruno@clisp.org>
46745 * gnulib-tool (import): In the first-use case, provide defaults.
46747 2005-09-01 Bruno Haible <bruno@clisp.org>
46749 * gnulib-tool (func_import): Remove the .tmp files.
46751 2005-09-01 Bruno Haible <bruno@clisp.org>
46753 * gnulib-tool (func_import): Fix handling of symbolic links.
46755 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
46757 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
46758 old glibc regex code mishandles strings longer than 2**31 bytes.
46759 This patch fixes this when the regex code is used in gnulib
46760 (i.e., outside glibc).
46762 This patch should not affect the use of the regex code inside
46763 glibc. No doubt this problem also needs to be handled for glibc
46764 as well, but the result will be an incompatible change to the
46765 glibc ABI, and the old ABI will have to be supported too. That
46766 can be the the subject for another patch.
46768 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
46769 governing whether the rest of this patch is active. By default,
46770 the macro is disabled and the patch has no effect.
46771 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
46772 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
46773 (struct re_pattern_buffer, re_search, re_search_2, re_match):
46774 (re_match_2, re_set_registers): Use the new types.
46775 * lib/regex_internal.h (Idx, re_hashval_t): New types.
46776 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
46778 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
46779 (re_string_context_at, bin_tree_t, re_dfastate_t):
46780 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
46781 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
46782 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
46783 (re_string_char_size_at, re_string_wchar_at):
46784 (re_string_elem_size_at):
46785 Use the new types and macros to port to 64-bit hosts.
46786 Use unsigned types for internal values, so that the code
46787 mostly works even for arrays larger than SSIZE_MAX.
46788 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
46789 (search_duplicated_node, calc_eclosure_iter, fetch_number):
46790 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
46791 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
46792 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
46793 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
46794 (calc_inveclosure, parse_dup_op, build_range_exp):
46795 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
46796 (fetch_number, create_token_tree, mark_opt_subexp):
46798 * lib/regex_internal.c (re_string_construct_common,
46799 create_ci_newstate):
46800 (create_cd_newstate, re_string_allocate, re_string_construct):
46801 (re_string_realloc_buffers, build_wcs_upper_buffer):
46802 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
46803 (re_string_reconstruct, re_string_peek_byte_case):
46804 (re_string_fetch_byte_case, re_string_context_at):
46805 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
46806 (re_node_set_init_copy, re_node_set_add_intersect):
46807 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
46808 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
46809 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
46810 (re_acquire_state, re_acquire_state_context, register_state):
46812 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
46813 search_cur_bkref_entry):
46814 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
46815 (re_search_internal, re_search_2_stub, re_search_stub)
46816 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
46817 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
46818 (update_cur_sifted_state, check_dst_limits):
46819 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46820 (check_subexp_limits, sift_states_bkref, merge_state_array):
46821 (check_subexp_matching_top, get_subexp, get_subexp_sub):
46822 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
46823 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
46824 (expand_bkref_cache, check_node_accept_bytes):
46825 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
46826 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
46827 (acquire_init_state_context, check_halt_node_context):
46828 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
46829 (sift_states_backward, clean_state_log_if_needed):
46830 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
46831 (find_recover_state, transit_state_sb, transit_state_mb):
46832 (transit_state_bkref, build_trtable, match_ctx_clean):
46834 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
46835 to work around an assumption that REG_MISSING is negative.
46837 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
46838 (seek_collating_symbol_entry) [defined _LIBC]:
46839 (lookup_collation_sequence_value) [defined _LIBC]:
46840 (build_range_exp, build_collating_symbol) [defined _LIBC]:
46841 Use prototypes rather than old-style function definitions.
46842 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
46843 (transit_state_sb) [0]:
46844 (find_collation_sequence_value) [defined _LIBC]: Likewise.
46846 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
46849 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
46850 (optimize_subexps, lower_subexp):
46851 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
46852 since the signed shift might overflow. Use 1u<<31 instead.
46853 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46855 * lib/regexec.c (check_dst_limits_calc_pos_1,
46856 check_subexp_matching_top): Likewise.
46858 * lib/regcomp.c (optimize_subexps, lower_subexp):
46859 Use CHAR_BIT rather than 8, for clarity.
46860 * lib/regexec.c (check_dst_limits_calc_pos_1):
46861 (check_subexp_matching_top): Likewise.
46862 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
46863 have to worry about portability issues when shifting it left.
46864 Remove no-longer-needed test for table_size > 0.
46865 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
46866 in a word, as the resulting behavior is undefined.
46867 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
46868 in one case, a <= should have been an <, and in another case the
46869 whole test was missing.
46870 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
46871 the standard name CHAR_BIT.
46872 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
46873 this is not true on one's complement and signed-magnitude hosts.
46875 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
46877 (struct re_dfa_t): Remove unused member states_alloc.
46878 * lib/regcomp.c (init_dfa): Don't initialize unused members.
46880 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
46882 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
46883 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
46884 and large-file glibc and in 32-bit large-file Solaris.
46886 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
46888 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
46889 lengths fit in regoff_t; this isn't true if regoff_t is the same
46891 * lib/regex.c (re_search_internal): 5th arg is LAST_START
46892 (= START + RANGE) instead of RANGE. This avoids overflow
46893 problems when regoff_t is the same width as size_t.
46894 All callers changed.
46895 (re_search_2_stub): Check for overflow when adding the
46896 sizes of the two strings.
46897 (re_search_stub): Check for overflow when adding START
46898 to RANGE; if it occurs, substitute the extreme value.
46900 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
46902 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
46904 2005-08-31 Jim Meyering <jim@meyering.net>
46906 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
46907 a pointer-to-const.
46908 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
46909 (register_state): Likewise.
46910 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
46911 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46912 (group_nodes_into_DFAstates): Likewise.
46914 2005-08-31 Jim Meyering <jim@meyering.net>
46916 * check-module: Add a FIXME comment.
46918 2005-08-31 Eric Blake <ebb9@byu.net>
46920 * modules/unistd-safer (Files): Add unistd--.h.
46921 * modules/stdio-safer (Files): Add stdio--.h.
46923 2005-08-31 Derek Price <derek@ximbiot.com>
46925 * lib/getdelim.c (getdelim): Return EOF on EOF.
46926 Reported by Larry Jones <lawrence.jones@ugs.com>.
46928 2005-08-31 Bruno Haible <bruno@clisp.org>
46930 Avoid unnecessary diffs in the generated lib/Makefile.am.
46931 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
46932 the generated files.
46933 (func_import): Don't set cmd.
46935 2005-08-31 Bruno Haible <bruno@clisp.org>
46937 * lib/strstr.c: Include <stddef.h>, for NULL.
46938 * lib/strcasestr.c: Likewise.
46939 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46941 2005-08-31 Bruno Haible <bruno@clisp.org>
46943 * gnulib-tool: New option --macro-prefix.
46944 (func_import): Use macro_prefix.
46945 (import): Handle option --macro-prefix.
46947 2005-08-31 Bruno Haible <bruno@clisp.org>
46949 * gnulib-tool (import): Rename most ac_* variables to cached_*.
46950 Also use new variables cached_lgpl, cached_libtool.
46952 2005-08-31 Bruno Haible <bruno@clisp.org>
46954 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
46955 always instantiating them.
46957 2005-08-31 Bruno Haible <bruno@clisp.org>
46959 * gnulib-tool (func_import): Read the previous cached settings
46960 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
46961 earlier added by gnulib but are now dropped. Warn when a gnulib file
46962 overwrites a non-gnulib file.
46964 2005-08-31 Bruno Haible <bruno@clisp.org>
46966 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
46967 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
46968 projects that don't keep autogenerated files in CVS. Put into
46969 actioncmd only the specified modules, not the transitive closure.
46971 2005-08-31 Bruno Haible <bruno@clisp.org>
46973 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
46974 Create directories that shall be filled.
46975 (import): Don't look for gl_* macros in configure.ac. Recurse across
46976 all directories containing a gnulib-cache.m4 files, if meaningful.
46978 2005-08-31 Bruno Haible <bruno@clisp.org>
46980 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
46981 (import): Set seen_libtool when we see gl_LIBTOOL.
46983 2005-08-31 Bruno Haible <bruno@clisp.org>
46985 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
46986 declaration macro definitions from generated gnulib.m4.
46988 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
46990 * lib/iconvme.h: Add prototype for iconv_alloc.
46992 2005-08-29 Simon Josefsson <jas@extundo.com>
46994 * lib/iconvme.c: Fix errno.
46996 2005-08-29 Bruno Haible <bruno@clisp.org>
46998 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
46999 that it works when the directory contains spaces.
47001 2005-08-29 Bruno Haible <bruno@clisp.org>
47003 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
47005 2005-08-29 Bruno Haible <bruno@clisp.org>
47007 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
47010 2005-08-29 Bruno Haible <bruno@clisp.org>
47011 and Stepan Kasal <kasal@ucw.cz>
47013 * check-module: If more parameters are given, check each of them
47014 separately; add more exceptions, as noted by Jim Meyering.
47015 (check_module): New procedure.
47016 (%exempt_header): Now contains all exceptions.
47018 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
47020 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
47022 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
47024 * lib/iconvme.c: Split iconv_string into iconv_alloc.
47026 2005-08-28 Bruno Haible <bruno@clisp.org>
47028 * m4/gnulib-tool.m4: New file.
47030 2005-08-27 Jim Meyering <jim@meyering.net>
47032 * modules/unistd-safer (Files): Add pipe-safer.c.
47033 * modules/fcntl-safer (Files): Add creat-safer.c.
47035 2005-08-27 Jim Meyering <jim@meyering.net>
47037 * m4/stdlib-safer.m4: New file. From coreutils.
47038 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
47039 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
47040 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
47041 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
47042 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
47044 2005-08-27 Jim Meyering <jim@meyering.net>
47046 * lib/fopen-safer.c: Merge minor changes from coreutils.
47047 * lib/dup-safer.c: Likewise.
47048 * lib/fd-safer.c: Likewise.
47050 Merge from coreutils.
47051 * lib/stdio--.h: New file.
47052 * lib/stdlib--.h: New file.
47053 * lib/mkstemp-safer.c: New file.
47055 GNU tar needs these.
47056 * lib/pipe-safer.c: New file.
47057 * lib/creat-safer.c: New file.
47058 * lib/fcntl--.h (creat): Define to creat_safer.
47059 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
47060 * lib/unistd--.h (pipe): Define to pipe_safer.
47061 * lib/unistd-safer.h: Declare pipe_safer.
47063 2005-08-26 Simon Josefsson <jas@extundo.com>
47065 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
47066 Haible <bruno@clisp.org>.
47068 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
47070 * lib/regex_internal.h: Remove all references to
47071 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
47073 (bitset_not, bitset_merge, bitset_not_merge):
47074 (bitset_mask, re_string_allocate, re_string_construct):
47075 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
47076 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
47077 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
47078 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
47079 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47080 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47081 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
47082 (re_acquire_state_context):
47083 Remove unnecessary forward decls.
47084 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
47085 Put __attribute at function definition,
47086 now that the function decl has been removed.
47087 * lib/regex_internal.c (re_string_peek_byte_case):
47088 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
47091 2005-08-25 Stepan Kasal <kasal@ucw.cz>
47093 * m4/regex.m4: Add AC_PREREQ(2.50).
47094 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
47096 2005-08-25 Simon Josefsson <jas@extundo.com>
47098 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
47101 2005-08-25 Simon Josefsson <jas@extundo.com>
47103 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
47104 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
47105 GLIBC specific code.
47107 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
47109 Make regex safe for g++. This fixes one real bug (an "err"
47110 that should have been "*err"). g++ problem reported by
47112 * lib/regex_internal.h (re_calloc): New macro, consistent with
47113 re_malloc etc. All callers of calloc changed to use re_calloc.
47114 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
47115 not int. All callers changed.
47116 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
47117 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
47118 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
47119 (find_recover_state): Change "err" to "*err"; this fixes what
47120 appears to be a real bug.
47121 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
47124 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
47126 * modules/regex (Depends-on): Add malloc, since the code
47127 assumes that !malloc(0) means failure.
47129 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
47131 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
47133 alloca modernization/simplification for regex.
47134 * lib/regex.c: Remove portability cruft for alloca. This no longer
47135 needs to be at the start of the file, and can be moved into
47136 regex_internal.h and simplified.
47137 * lib/regex_internal.h: Include <alloca.h>.
47138 (__libc_use_alloca) [!defined _LIBC]: New macro.
47139 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
47140 now works outside glibc.
47142 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
47144 * config/srclist.txt: Add glibc bugs 1241, 1245.
47146 2005-08-25 Jim Meyering <jim@meyering.net>
47148 * lib/open-safer.c: Include <config.h>.
47149 Otherwise, we'd lose LARGEFILE support in any file using
47152 2005-08-25 Bruno Haible <bruno@clisp.org>
47154 * m4/minmax.m4: Require autoconf 2.52.
47155 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
47156 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
47157 alternatives of translit over the alphabet.
47158 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
47160 2005-08-24 Simon Josefsson <jas@extundo.com>
47162 * tests/test-getpass.c: New file.
47164 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
47166 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
47167 for GNU regex features.
47169 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
47171 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
47172 * lib/regex.h (regerror): Likewise.
47174 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
47175 requires this. (The code never needed it.)
47177 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
47178 All uses of recently-renamed identifiers changed to use the new,
47179 POSIX-compliant names. The code will build and run just fine
47180 without these changes, but it's better to eat our own dog food
47181 and use the standard-conforming names.
47183 * lib/regex.h: Fix a multitude of POSIX name space violations.
47184 These changes have an effect only for programs that define
47185 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
47186 do not change anything for programs compiled in the normal way.
47187 Also, there is no effect on the ABI.
47189 (_REGEX_SOURCE): New macro.
47190 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
47191 defined and _GNU_SOURCE is not; this fixes a name space violation.
47193 Rename the following macros to obey POSIX requirements.
47194 The old names are still visible as macros if _REGEX_SOURCE is defined.
47195 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
47196 RE_BACKSLASH_ESCAPE_IN_LISTS.
47197 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
47198 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
47199 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
47200 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
47201 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
47202 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
47203 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
47204 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
47205 (REG_INTERVALS): renamed from RE_INTERVALS.
47206 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
47207 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
47208 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
47209 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
47210 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
47211 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
47212 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
47213 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
47214 RE_UNMATCHED_RIGHT_PAREN_ORD.
47215 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
47216 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
47217 (REG_DEBUG): renamed from RE_DEBUG.
47218 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
47219 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
47220 unusual, since we can't clash with the POSIX REG_ICASE.
47221 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
47222 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
47223 (REG_NO_SUB): renamed from RE_NO_SUB.
47224 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
47225 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
47226 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
47227 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
47228 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
47229 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
47230 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
47231 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
47232 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
47233 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
47234 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
47235 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
47236 RE_SYNTAX_POSIX_MINIMAL_BASIC.
47237 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
47238 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
47239 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
47240 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
47241 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
47242 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
47243 (REG_FIXED): Renamed from REGS_FIXED.
47244 (REG_NREGS): Renamed from RE_NREGS.
47246 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
47247 of other REG_* macros, since POSIX says the user is allowed to
47248 #undef these macros selectively.
47250 (reg_errcode_t): Update comment stating what other tables need
47253 Rename the following enum values to obey POSIX requirements.
47254 The old names are still visible as macros.
47255 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
47256 is not defined, since GNU is supposed to be a superset of POSIX as
47257 much as possible, and since we want reg_errcode_t to be a signed
47258 type for implementation consistency.
47259 (_REG_NOERROR): Renamed from REG_NOERROR.
47260 (_REG_NOMATCH): Renamed from REG_NOMATCH.
47261 (_REG_BADPAT): Renamed from REG_BADPAT.
47262 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
47263 (_REG_ECTYPE): Renamed from REG_ECTYPE.
47264 (_REG_EESCAPE): Renamed from REG_EESCAPE.
47265 (_REG_ESUBREG): Renamed from REG_ESUBREG.
47266 (_REG_EBRACK): Renamed from REG_EBRACK.
47267 (_REG_EPAREN): Renamed from REG_EPAREN.
47268 (_REG_EBRACE): Renamed from REG_EBRACE.
47269 (_REG_BADBR): Renamed from REG_BADBR.
47270 (_REG_ERANGE): Renamed from REG_ERANGE.
47271 (_REG_ESPACE): Renamed from REG_ESPACE.
47272 (_REG_BADRPT): Renamed from REG_BADRPT.
47273 (_REG_EEND): Renamed from REG_EEND.
47274 (_REG_ESIZE): Renamed from REG_ESIZE.
47275 (_REG_ERPAREN): Renamed from REG_ERPAREN.
47276 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
47277 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
47278 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
47279 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
47281 (_REG_RE_NAME, _REG_RM_NAME): New macros.
47282 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
47283 changed. But support the old name if the new one is not defined
47284 and if _REGEX_SOURCE.
47286 Change the following member names in struct re_pattern_buffer.
47287 The old names are still supported if !_REGEX_SOURCE.
47288 The new names are always supported, regardless of _REGEX_SOURCE.
47289 (re_buffer): Renamed from buffer.
47290 (re_allocated): Renamed from allocated.
47291 (re_used): Renamed from used.
47292 (re_syntax): Renamed from syntax.
47293 (re_fastmap): Renamed from fastmap.
47294 (re_translate): Renamed from translate.
47295 (re_can_be_null): Renamed from can_be_null.
47296 (re_regs_allocated): Renamed from regs_allocated.
47297 (re_fastmap_accurate): Renamed from fastmap_accurate.
47298 (re_no_sub): Renamed from no_sub.
47299 (re_not_bol): Renamed from not_bol.
47300 (re_not_eol): Renamed from not_eol.
47301 (re_newline_anchor): Renamed from newline_anchor.
47303 Change the following member names in struct re_registers.
47304 The old names are still supported if !_REGEX_SOURCE.
47305 The new names are always supported, regardless of _REGEX_SOURCE.
47306 (rm_num_regs): Renamed from num_regs.
47307 (rm_start): Renamed from start.
47308 (rm_end): Renamed from end.
47310 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
47311 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
47312 Prepend __ to parameter names.
47314 Undo yesterday's changes.
47316 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
47318 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
47319 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
47322 2005-08-24 Jim Meyering <jim@meyering.net>
47324 Sync from coreutils.
47325 * m4/fcntl-safer.m4: New file.
47327 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
47328 and object files for this module.
47330 2005-08-24 Jim Meyering <jim@meyering.net>
47332 Sync from coreutils.
47333 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
47335 2005-08-24 Jim Meyering <jim@meyering.net>
47337 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
47338 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
47340 2005-08-24 Jim Meyering <jim@meyering.net>
47342 * modules/fcntl-safer: New module.
47343 * modules/fts (Depends-on): Add fcntl-safer.
47344 * MODULES.html.sh (File descriptor based Input/Output):
47347 2005-08-24 Bruno Haible <bruno@clisp.org>
47349 Support for unit test modules.
47350 * modules/README: Mention tests modules.
47351 * modules/TEMPLATE-TESTS: New file.
47352 * gnulib-tool: New options --extract-tests-module, --with-tests and
47353 --tests-base (unused for the moment).
47354 (testsbase, inctests): New variables.
47355 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
47356 (func_verify_module): Exclude TEMPLATE-TESTS.
47357 (func_verify_nontests_module, func_verify_tests_module): New functions.
47358 (func_get_dependencies): Add implicit dependency for tests modules.
47359 (func_get_tests_module): New function.
47360 (func_modules_transitive_closure): When --with-tests was specified,
47361 include the unit tests as well, unless explicitly avoided.
47362 (func_emit_lib_Makefile_am): Ignore the tests modules here.
47363 (func_emit_tests_Makefile_am): New function.
47364 (func_create_testdir): When --with-tests was specified, emit a
47366 * MODULES.html.sh (Future developments): Update.
47368 2005-08-24 Bruno Haible <bruno@clisp.org>
47370 * modules/tls-tests: New file.
47371 * tests/test-tls.c: New file, from GNU gettext.
47373 2005-08-24 Bruno Haible <bruno@clisp.org>
47375 * modules/lock-tests: New file.
47376 * tests/test-lock.c: New file, from GNU gettext.
47378 2005-08-24 Bruno Haible <bruno@clisp.org>
47380 * lib/lock.h: Add multiple inclusion guard.
47381 * lib/tls.h: Add multiple inclusion guard.
47383 2005-08-24 Bruno Haible <bruno@clisp.org>
47385 * gnulib-tool: Add support for the --aux-dir option to
47386 --create-testdir, --create-megatestdir, --test, --megatest.
47387 (func_create_testdir, func_create_megatestdir): Optionally emit a
47388 AC_CONFIG_AUX_DIR directive.
47389 (create-testdir, create-megatestdir, test, megatest): Provide a
47390 default value for $auxdir.
47392 2005-08-24 Bruno Haible <bruno@clisp.org>
47394 * gnulib-tool (import): Use compound statement instead of subshell
47397 2005-08-24 Bruno Haible <bruno@clisp.org>
47399 * gnulib-tool (import): Change --aux-dir default to "build-aux".
47401 2005-08-24 Bruno Haible <bruno@clisp.org>
47403 * gnulib-tool (func_version): Update.
47405 2005-08-24 Bruno Haible <bruno@clisp.org>
47407 * gnulib-tool (func_import, func_create_testdir,
47408 func_create_megatestdir): Quote all autoconf macro arguments.
47410 2005-08-24 Bruno Haible <bruno@clisp.org>
47412 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
47413 option --force, because --force causes the aclocal.m4 of each
47414 subdirectory to be newer than the corresponding config.h.in.
47416 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
47418 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
47419 All contents moved to gl_REGEX.
47420 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
47421 assume that it does.
47423 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
47425 * lib/regex.h (REG_NOSYS)
47426 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
47427 Define, since POSIX requires it as of 2001.
47429 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
47430 New private symbol, used to keep the enum signed in all cases.
47431 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
47433 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
47435 * lib/regex_internal.c (re_string_skip_chars, register_state):
47437 Remove forward decls; no longer needed now that we use prototypes.
47438 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
47439 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
47440 (clean_state_log_if_needed): Likewise.
47442 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
47444 * config/srclist.txt: Add glibc bugs 1231-1233.
47446 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
47448 Fix problems reported by Sam Steingold in
47449 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
47450 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
47451 assumed that reg_errcode_t is a signed type, which is not
47452 necessarily true if _XOPEN_SOURCE is not defined.
47453 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
47454 since some compilers warn about it otherwise.
47456 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
47458 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
47459 (init_word_char, create_initial_state, duplicate_node_closure):
47460 (fetch_token, peek_token_bracket, build_range_exp):
47461 (build_collating_symbol): Remove forward decls; no longer needed
47462 now that we use prototypes.
47465 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
47466 (re_compile_fastmap_iter, regcomp, regerror, regfree):
47467 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
47468 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
47469 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
47470 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
47471 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
47472 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
47473 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
47474 (build_range_exp, build_collating_symbol, parse_bracket_exp):
47475 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
47476 (build_charclass, build_charclass_op, fetch_number, create_tree):
47477 (create_token_tree, mark_opt_subexp, duplicate_tree):
47478 Use prototypes rather than old-style definitions.
47480 * lib/regex_internal.c:
47481 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
47482 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
47483 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47484 (re_string_reconstruct, re_string_peek_byte_case):
47485 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
47486 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47487 (re_node_set_init_copy, re_node_set_add_intersect):
47488 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47489 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47490 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47491 (re_acquire_state, re_acquire_state_context, register_state):
47492 (create_ci_newstate, create_cd_newstate, free_state):
47494 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
47496 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
47497 (re_search_internal, prune_impossible_nodes):
47498 (acquire_init_state_context, check_matching, static):
47499 (check_halt_node_context, check_halt_state_context, proceed_next_node):
47500 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
47501 (update_regs, sift_states_backward, build_sifted_states):
47502 (clean_state_log_if_needed, merge_state_array):
47503 (update_cur_sifted_state, add_epsilon_src_nodes):
47504 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
47505 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
47506 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
47507 (find_recover_state, check_subexp_matching_top, transit_state_mb):
47508 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
47509 (check_arrival, check_arrival_add_next_nodes):
47510 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47511 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
47512 (check_node_accept_bytes, check_node_accept, extend_buffers):
47513 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
47514 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
47518 * lib/regex_internal.h:
47519 (re_string_allocate, re_string_construct, re_string_reconstruct):
47520 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
47521 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
47522 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
47523 (re_string_context_at, re_string_peek_byte_case):
47524 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
47525 is defined, since we now use prototypes always.
47527 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
47528 C89 or better. All uses removed.
47530 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
47532 * config/srclist.txt: Add glibc bugs 1220-1227.
47534 2005-08-20 Jim Meyering <jim@meyering.net>
47536 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
47537 of unused local, dfa.
47539 2005-08-20 Bruno Haible <bruno@clisp.org>
47541 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
47543 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
47545 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
47546 (re_node_set_insert_last, re_dfa_add_node):
47547 Rename local variables to avoid GCC shadowing warnings.
47549 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
47551 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
47552 [defined lint]: Suppress bogus uninitialized-variable warnings.
47554 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
47555 and let the caller return REG_ESPACE if out of space. This
47556 removes an uninitialied-variable warning with GCC 4.0.1, and also
47557 avoids taking the address of a local variable. All callers
47560 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
47562 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
47563 $LIBCSRC/posix/regexec.c.
47564 Add glibc bug 1217 for regcomp.c.
47566 2005-08-19 Jim Meyering <jim@meyering.net>
47568 * lib/regexec.c (proceed_next_node): Redo local variables to
47569 avoid GCC shadowing warnings.
47571 2005-08-18 Bruno Haible <bruno@clisp.org>
47573 * lib/strstr.c (strstr): Fix return value in multibyte case.
47574 * lib/strcasestr.c (strcasestr): Likewise.
47576 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
47578 * lib/regex.h: Remove useless space-before-tab. From coreutils.
47580 2005-08-17 Jim Meyering <jim@meyering.net>
47582 Make the %s format (seconds since the epoch) work for a negative
47583 number and when used with a zero-padded field width, e.g. %015s.
47585 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
47586 label so that it precedes the code to set `digits'. Otherwise,
47587 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
47588 print `00-22'. Now, it prints `-0022', as it should.
47590 2005-08-17 Bruno Haible <bruno@clisp.org>
47592 * modules/strstr (Files): Add m4/mbrtowc.m4.
47593 (Depends-on): Add mbuiter.
47595 2005-08-17 Bruno Haible <bruno@clisp.org>
47597 * modules/strcasestr: New file.
47598 * MODULES.html.sh (String handling, based on ANSI C 89): Add
47601 2005-08-17 Bruno Haible <bruno@clisp.org>
47603 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
47605 2005-08-17 Bruno Haible <bruno@clisp.org>
47607 * modules/mbuiter: New file.
47608 * MODULES.html.sh (Extended multibyte and wide character utilities):
47611 2005-08-17 Bruno Haible <bruno@clisp.org>
47613 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
47614 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
47616 2005-08-17 Bruno Haible <bruno@clisp.org>
47618 * m4/strcasestr.m4: New file.
47620 2005-08-17 Bruno Haible <bruno@clisp.org>
47622 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
47623 * lib/strstr.c: Completely rewritten, with multibyte locale support.
47625 2005-08-17 Bruno Haible <bruno@clisp.org>
47627 * lib/strcasestr.h: New file.
47628 * lib/strcasestr.c: New file.
47630 2005-08-17 Bruno Haible <bruno@clisp.org>
47632 * lib/strcasecmp.c: Use mbuiter.h.
47634 2005-08-17 Bruno Haible <bruno@clisp.org>
47636 * lib/mbuiter.h: New file.
47638 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
47640 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
47641 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
47642 and gl_GETOPT are both invoked via different paths (as happens
47643 with GNU tar CVS because it uses both argp and getopt), the former
47646 2005-08-16 Bruno Haible <bruno@clisp.org>
47648 * modules/tls: New file.
47649 * MODULES.html.sh (Multithreading): Add tls.
47651 2005-08-16 Bruno Haible <bruno@clisp.org>
47653 * modules/strnlen1: New file.
47654 * MODULES.html.sh (String handling): Add strnlen1.
47656 2005-08-16 Bruno Haible <bruno@clisp.org>
47658 * modules/strcase (Files): Add m4/mbrtowc.m4.
47659 (Depends-on): Add strnlen1, mbchar.
47661 2005-08-16 Bruno Haible <bruno@clisp.org>
47663 * modules/mbiter: New file.
47664 * MODULES.html.sh (Extended multibyte and wide character utilities):
47667 2005-08-16 Bruno Haible <bruno@clisp.org>
47669 * modules/mbfile: New file.
47670 * MODULES.html.sh (Extended multibyte and wide character utilities):
47673 2005-08-16 Bruno Haible <bruno@clisp.org>
47675 * modules/mbchar: New file.
47676 * MODULES.html.sh (Extended multibyte and wide character utilities):
47679 2005-08-16 Bruno Haible <bruno@clisp.org>
47681 * m4/tls.m4: New file, from GNU gettext.
47683 2005-08-16 Bruno Haible <bruno@clisp.org>
47685 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
47687 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
47689 2005-08-16 Bruno Haible <bruno@clisp.org>
47691 * m4/mbiter.m4: New file.
47693 2005-08-16 Bruno Haible <bruno@clisp.org>
47695 * m4/mbfile.m4: New file.
47697 2005-08-16 Bruno Haible <bruno@clisp.org>
47699 * m4/mbchar.m4: New file.
47701 2005-08-16 Bruno Haible <bruno@clisp.org>
47703 * lib/tls.h: New file, from GNU gettext.
47704 * lib/tls.c: New file, from GNU gettext.
47706 2005-08-16 Bruno Haible <bruno@clisp.org>
47708 * lib/strnlen1.h: New file.
47709 * lib/strnlen1.c: New file.
47711 2005-08-16 Bruno Haible <bruno@clisp.org>
47713 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
47714 (mbi_init): Update.
47715 (mbi_avail, mbi_advance): Let the iteration end before the terminating
47716 NUL byte, not after it.
47718 2005-08-16 Bruno Haible <bruno@clisp.org>
47720 * lib/strcase.h (strcasecmp): Add note in comments.
47721 * lib/strncasecmp.c: Use code from strcasecmp.c.
47722 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
47723 (strcasecmp): Work correctly in multibyte locales.
47725 2005-08-16 Bruno Haible <bruno@clisp.org>
47727 * lib/mbiter.h: New file.
47729 2005-08-16 Bruno Haible <bruno@clisp.org>
47731 * lib/mbfile.h: New file.
47733 2005-08-16 Bruno Haible <bruno@clisp.org>
47735 * lib/mbchar.h: New file.
47736 * lib/mbchar.c: New file.
47738 2005-08-16 Bruno Haible <bruno@clisp.org>
47740 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
47741 the valid ones. Makes the comparison operations transitive:
47742 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
47743 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
47745 2005-08-15 Simon Josefsson <jas@extundo.com>
47747 * modules/ssize_t (License): Change to 'unlimited'.
47749 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
47751 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
47753 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
47754 Add comments for each pending glibc patch.
47756 2005-08-15 Bruno Haible <bruno@clisp.org>
47758 * lib/regex.h (__restrict_arr): Don't define to __restrict if
47759 __cplusplus is defined.
47761 2005-08-14 Jim Meyering <jim@meyering.net>
47763 Sync from coreutils.
47765 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
47766 Use the hash-table-based cycle-detection code not just when
47767 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
47768 Reported by James Youngman in
47769 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
47770 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
47771 FTS_TIGHT_CYCLE_CHECK.
47772 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
47773 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
47775 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
47776 * lib/fts.c (fd_safer): Remove decl.
47777 Include fcntl--.h rather than unistd-safer.h
47778 (fts_safe_changedir): Don't call fd_safer; no longer needed
47779 now that we include fcntl--.h.
47781 2005-08-12 Simon Josefsson <jas@extundo.com>
47783 * modules/getndelim2: Use ssize_t module.
47784 * modules/getnline: Likewise.
47785 * modules/safe-read: Likewise.
47786 * modules/xreadlink: Likewise.
47788 * modules/ssize_t: New file.
47790 2005-08-12 Simon Josefsson <jas@extundo.com>
47792 * m4/readline.m4: Look for termcap, curses or ncurses if required.
47794 2005-08-12 Simon Josefsson <jas@extundo.com>
47796 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47799 2005-08-12 Simon Josefsson <jas@extundo.com>
47801 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
47802 readline, getdelim and check_version.
47803 (Support for systems lacking ISO C 99: Sizes of integer types):
47806 2005-08-12 Bruno Haible <bruno@clisp.org>
47808 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
47810 2005-08-11 Simon Josefsson <jas@extundo.com>
47812 * modules/readline: New file.
47814 * modules/strnlen (Files): Add strnlen.h.
47816 2005-08-11 Simon Josefsson <jas@extundo.com>
47818 * m4/readline.m4: New file.
47820 2005-08-11 Simon Josefsson <jas@extundo.com>
47822 * lib/readline.h, readline.c: New file.
47824 2005-08-11 Simon Josefsson <jas@extundo.com>
47826 * doc/gnulib.texi (Initial import, Finishing touches): Mention
47829 2005-08-11 Bruno Haible <bruno@clisp.org>
47831 * lib/strnlen.h (strnlen): Change parameter name to match comment.
47833 2005-08-10 Stepan Kasal <kasal@ucw.cz>
47835 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
47837 2005-08-10 Simon Josefsson <jas@extundo.com>
47839 * tests/test-iconvme.c: New file.
47841 2005-08-10 Simon Josefsson <jas@extundo.com>
47843 * m4/strnlen.m4: New file.
47845 * m4/strndup.m4: Don't check for strnlen declaration, done in
47848 2005-08-10 Simon Josefsson <jas@extundo.com>
47850 * lib/strndup.c: Use strnlen.h.
47852 * lib/strnlen.h: New file.
47854 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47858 2005-08-02 Simon Josefsson <jas@extundo.com>
47860 * modules/readline: New file.
47862 2005-08-02 Simon Josefsson <jas@extundo.com>
47864 * modules/getdelim: New file.
47866 * modules/getline: Rewrite, don't use getndelim2.
47868 2005-08-02 Simon Josefsson <jas@extundo.com>
47870 * m4/getline.m4: Separate out getdelim stuff into separate module.
47872 * m4/getdelim.m4: New file.
47874 2005-08-02 Simon Josefsson <jas@extundo.com>
47876 * lib/getline.h, getline.c: Rewrite.
47878 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
47880 2005-07-31 Bruno Haible <bruno@clisp.org>
47882 * lib/lock.h (gl_lock_initializer): New macro.
47883 (gl_lock_define_initialized): Use it.
47884 (gl_rwlock_initializer): New macro.
47885 (gl_rwlock_define_initialized): Use it.
47886 (gl_recursive_lock_initializer): New macro.
47887 (gl_recursive_lock_define_initialized): Use it.
47889 2005-07-30 Karl Berry <karl@gnu.org>
47891 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
47892 Report from Ben Pfaff, regarding getopt.
47894 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
47896 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
47898 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
47899 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
47900 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
47901 (gl_GETOPT): Use the new macros. Most of the implementation
47902 is moved to the new macros. This is for programs like Emacs
47903 that don't want all the functionality of gl_GETOPT.
47905 2005-07-26 Bruno Haible <bruno@clisp.org>
47907 * m4/lock.m4: Update from GNU gettext.
47909 2005-07-26 Bruno Haible <bruno@clisp.org>
47911 * lib/lock.h: Update from GNU gettext.
47912 * lib/lock.c: Update from GNU gettext.
47914 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
47916 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
47917 obsolescent AC_TRY_RUN. Include the default includes files, for
47920 2005-07-24 Bruno Haible <bruno@clisp.org>
47922 * modules/visibility: New file.
47923 * MODULES.html.sh (Misc): Add visibility.
47925 2005-07-24 Bruno Haible <bruno@clisp.org>
47927 * m4/visibility.m4: New file.
47929 2005-07-24 Bruno Haible <bruno@clisp.org>
47931 * doc/visibility.texi: New file.
47933 2005-07-22 Bruno Haible <bruno@clisp.org>
47935 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
47936 $(ALLOCA_H), redundant through BUILT_SOURCES.
47937 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
47938 redundant through BUILT_SOURCES.
47939 * modules/byteswap (Makefile.am): Remove explicit dependency on
47940 $(BYTESWAP_H), redundant through BUILT_SOURCES.
47941 * modules/fnmatch (Makefile.am): Remove explicit dependency on
47942 $(FNMATCH_H), redundant through BUILT_SOURCES.
47943 * modules/getopt (Makefile.am): Remove explicit dependency on
47944 $(GETOPT_H), redundant through BUILT_SOURCES.
47945 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
47946 redundant through BUILT_SOURCES.
47947 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
47948 redundant through BUILT_SOURCES.
47949 * modules/stdbool (Makefile.am): Remove explicit dependency on
47950 $(STDBOOL_H), redundant through BUILT_SOURCES.
47951 * modules/stdint (Makefile.am): Remove explicit dependency on
47952 $(STDINT_H), redundant through BUILT_SOURCES.
47953 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
47954 Remove explicit dependency on $(SYSEXITS_H).
47955 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
47957 2005-07-18 Simon Josefsson <jas@extundo.com>
47959 * lib/check-version.c (check_version): Accept identical versions too.
47961 2005-07-18 Bruno Haible <bruno@clisp.org>
47963 * modules/lock: New file.
47964 * MODULES.html.sh (Multithreading): New section.
47966 2005-07-18 Bruno Haible <bruno@clisp.org>
47968 * m4/lock.m4: New file, from GNU gettext.
47970 2005-07-18 Bruno Haible <bruno@clisp.org>
47972 * lib/lock.h: New file, from GNU gettext.
47973 * lib/lock.c: New file, from GNU gettext.
47975 2005-07-18 Bruno Haible <bruno@clisp.org>
47977 * lib/lock.h (gl_once_t): New type.
47978 (gl_once_define, gl_once): New macros.
47979 * lib/lock.c (fresh_once): New variable.
47980 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
47983 2005-07-16 Simon Josefsson <jas@extundo.com>
47985 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
47986 workaround, suggested by Bruno.
47988 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
47990 * modules/xalloc (Depends-on): Add xalloc-die.
47991 * modules/xvasprintf (Depends-on): Add xalloc-die.
47993 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
47995 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
47996 with a minor change.
47998 2005-07-15 Bruno Haible <bruno@clisp.org>
48000 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
48001 When using lib/poll.c, define poll as rpl_poll.
48003 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
48005 * modules/argp (Depends-on): Remove unlocked-io.
48007 2005-07-14 Derek Price <derek@ximbiot.com>
48009 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
48010 for glob symlink bug.
48012 2005-07-14 Bruno Haible <bruno@clisp.org>
48014 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
48015 Instead, test for *_unlocked function declarations directly.
48017 2005-07-11 Simon Josefsson <jas@extundo.com>
48019 * modules/size_max: New file.
48021 * modules/xsize: Depend on size_max module for size_max.m4.
48023 2005-07-11 Simon Josefsson <jas@extundo.com>
48025 * lib/size_max.h: New file.
48027 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
48029 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
48030 copyright symbol and the year.
48031 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
48032 (version_etc_va): Use parameterized copyright notice.
48033 Reword to conform to the current GNU coding standards.
48035 2005-07-11 Karl Berry <karl@gnu.org>
48037 * doc/gnulib.texi (Quoting): new node.
48038 (Initial import): more info, from Patrice.
48040 2005-07-11 Bruno Haible <bruno@clisp.org>
48042 * gnulib-tool (func_usage): Document option --avoid.
48043 (Command line options): Handle --avoid.
48044 (func_acceptable): New function.
48045 (func_modules_transitive_closure): Use it.
48047 2005-07-11 Bruno Haible <bruno@clisp.org>
48049 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
48050 Reported by Jim Meyering.
48052 2005-07-10 Bruno Haible <bruno@clisp.org>
48054 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
48055 Needed when size_t is smaller than 'unsigned int'.
48056 Reported by Paul Eggert.
48058 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
48060 * modules/argp (Depends-on): Add unlocked-io
48062 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
48064 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
48067 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
48069 * config/srclist.txt: Comment out regcomp.c, since we have a porting
48072 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
48073 and Paul Eggert <eggert@cs.ucla.edu>
48075 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
48076 in wint_t, not wchar_t. Remove now-unnecessary cast.
48078 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
48080 * modules/regex (Files): Add lib/regex_internal.c,
48081 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
48082 (Depends-on): Add extensions.
48083 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
48085 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
48087 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
48089 * m4/same.m4 (gl_SAME): Likewise.
48090 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
48092 * m4/regex.m4: Adjust to new libc regex implementation.
48093 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
48094 all the .c and .h parts of (the new) regex.
48095 Quote the m4 stuff better.
48096 Check for RE_ICASE bug of old gnulib.
48097 Check for REG_STARTEND of recent libc.
48098 Rename local variables from jm_* to gl_*.
48099 Quote operand of "test -f".
48100 Say "recent enough" version of libc, not "version 2".
48101 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
48102 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
48103 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
48104 Remove check for btowc, isascii.
48105 Require AM_LANGINFO_CODESET.
48107 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
48109 * lib/regex.c, regex.h: Sync from libc.
48110 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
48112 New files, synced from libc, except that regex_internal.h
48113 currently has a small porting fix.
48115 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
48117 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
48118 regex_internal.c, regexec.c.
48119 Add regex_internal.h too, but as a comment, since the libc version
48120 is currently broken in gnulib mode.
48122 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
48124 Support programs like Emacs that use gnulib but not gettext.
48125 * MODULES.html.sh (Internationalization functions): Add gettext-h.
48126 * modules/gettext-h: New file.
48127 * modules/gettext (Files): Remove lib/gettext.h.
48128 (Depends-on): Add gettext-h.
48129 (Makefile.am): Remove lib_SOURCES.
48130 * modules/argmatch, modules/c-stack, modules/closeout:
48131 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
48132 * modules/execute, modules/file-type, modules/getaddrinfo:
48133 * modules/getopt, modules/human, modules/javacomp:
48134 * modules/javaexec, modules/mkdir-p, modules/obstack:
48135 * modules/openat, modules/pagealign_alloc, modules/pipe:
48136 * modules/quotearg, modules/regex, modules/rpmatch:
48137 * modules/unicodeio, modules/userspec, modules/version-etc:
48138 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
48140 Depend on gettext-h, not gettext.
48142 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
48144 * gnulib-tool (func_import): Add support for 'public domain' license.
48145 * modules/alloca, modules/atexit, modules/memmove:
48146 Now public domain, not GPL.
48147 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
48148 * modules/realloc, modules/strerror, modules/strtod:
48151 2005-07-05 Bruno Haible <bruno@clisp.org>
48153 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
48154 autoconf CVS. Needed for mingw.
48156 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
48158 Remove the dependency of the strftime module on the tzset module.
48159 * modules/strftime (Depends-on): Remove dependency on tzset.
48161 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
48163 Remove the dependency of the strftime module on the tzset module.
48164 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
48165 gl_FUNC_TZSET_CLOBBER.
48167 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
48169 Remove the dependency of the strftime module on the tzset module.
48170 * lib/strftime.c (my_strftime)
48171 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
48172 Copy the input structure, to work around some of the bug with
48173 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
48174 Solaris releases, you should also use the tzset module, but we won't
48175 require it as a dependency any more since we don't want LGPLed code
48176 to depend on GPLed code.
48178 2005-07-02 Jim Meyering <jim@meyering.net>
48180 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
48181 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
48182 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
48183 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
48185 2005-07-02 Jim Meyering <jim@meyering.net>
48187 * lib/backupfile.c (backup_args): Change a `0' to NULL.
48189 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
48191 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
48192 declares only 'struct timespec;' (!).
48194 2005-07-01 Jim Meyering <jim@meyering.net>
48196 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
48197 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
48198 * lib/save-cwd.c, tempname.c:
48199 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48200 and don't include <sys/file.h>).
48202 2005-06-29 Jim Meyering <jim@meyering.net>
48204 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
48205 type name. Use the variable name instead.
48206 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
48209 2005-06-28 Simon Josefsson <jas@extundo.com>
48211 * modules/check-version (Files): Add check-version.m4.
48213 2005-06-28 Simon Josefsson <jas@extundo.com>
48215 * m4/check-version.m4: New file, suggested by Jim Meyering
48216 <jim@meyering.net>.
48218 2005-06-28 Simon Josefsson <jas@extundo.com>
48220 * lib/check-version.h, lib/check-version.c: New files.
48222 2005-06-28 Simon Josefsson <jas@extundo.com>
48224 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
48225 collision with global variable. Better indentation. Don't
48226 increment buffer pointer beyond buffer end. Based on comments
48227 from Paul Eggert <eggert@cs.ucla.edu>.
48229 * lib/base64.h: Indent.
48231 2005-06-28 Simon Josefsson <jas@extundo.com>
48233 * doc/gnulib.texi (Library version handling): New section.
48235 2005-06-28 Jim Meyering <jim@meyering.net>
48237 * check-module (find_included_lib_files): Hard-code another
48238 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
48239 but modules/fts-lgpl (correctly) does not list those files.
48241 * modules/canonicalize (Files): Add lib/pathmax.h.
48243 2005-06-25 Simon Josefsson <jas@extundo.com>
48245 * modules/check-version: New file.
48247 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
48249 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
48250 initializer of struct addrinfo, as an indication that we don't
48251 care how many members the structure has.
48253 2005-06-24 Derek Price <derek@ximbiot.com>
48254 and Bruno Haible <bruno@clisp.org>
48256 Remove stat module & update lstat.
48257 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
48258 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48259 * m4/stat.m4: Remove this file.
48261 2005-06-24 Derek Price <derek@ximbiot.com>
48262 and Bruno Haible <bruno@clisp.org>
48264 Remove stat module & update lstat.
48265 * lib/stat.c: Remove this file...
48266 (slash_aware_lstat): ...moving this content and its support...
48267 * lib/lstat.c (rpl_lstat): ...into here.
48268 * lib/lstat.h: New file.
48270 2005-06-24 Derek Price <derek@ximbiot.com>
48271 and Bruno Haible <bruno@clisp.org>
48273 Remove stat module & update lstat.
48274 * config/srclist.txt (libc sources): Remove stat.
48276 2005-06-24 Derek Price <derek@ximbiot.com>
48277 and Bruno Haible <bruno@clisp.org>
48279 Remove stat module & update lstat.
48280 * MODULES.html.sh (stat): Remove.
48281 * MODULES.html: Regenerated.
48282 * modules/lstat (Description): Correct function name.
48283 (Files): Add "lstat.h".
48284 (Depends-on): Remove stat, add xalloc, stat-macros.
48285 * modules/stat: Remove this file.
48286 (Include): Add "lstat.h", remove <sys/stat.h>.
48288 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
48290 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
48291 (ranged_convert): Don't save conversion in a temporary struct.
48292 This causes a warning with GCC 4.0.0, and anyway in the typical
48293 case it's not worth the extra 100 bytes or so of code.
48294 (ranged_convert, __mktime_internal): When calling a function via a
48295 pointer P, use P () rather than (*P) (), as we now assume C89 or
48298 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
48300 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
48301 "who -r" failed to give output. Problem reported by Tim Waugh.
48303 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
48304 (xcalloc): Use it to avoid needless tests.
48305 Problem reported by Jim Meyering.
48307 2005-06-20 Derek Price <derek@ximbiot.com>
48309 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
48310 unnecessary for Autoconfs > 2.59c.
48312 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48314 * lib/argp.h (__option_is_short): Check upper limit of
48315 __key. Isprint() requires its argument to have the value
48316 of an unsigned char or EOF.
48318 2005-06-16 Jim Meyering <jim@meyering.net>
48320 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
48321 when either N or S is zero.
48323 2005-06-16 Derek Price <derek@ximbiot.com>
48325 * m4/bison.m4: Declare YACC & YFLAGS precious.
48327 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
48329 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
48330 multibyte string or pattern, fall back on unibyte matching.
48331 Problem reported by James Youngman.
48333 2005-06-08 Bruno Haible <bruno@clisp.org>
48335 * modules/csharpcomp: New file.
48336 * MODULES.html.sh (C#): Add csharpcomp.
48338 2005-06-08 Bruno Haible <bruno@clisp.org>
48340 * m4/csharpcomp.m4: New file, from GNU gettext.
48342 2005-06-08 Bruno Haible <bruno@clisp.org>
48344 * lib/csharpcomp.h: New file, from GNU gettext.
48345 * lib/csharpcomp.c: New file, from GNU gettext.
48346 * lib/csharpcomp.sh.in: New file, from GNU gettext.
48348 2005-06-08 Bruno Haible <bruno@clisp.org>
48350 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
48353 2005-06-07 Derek Price <derek@ximbiot.com>
48356 * lib/glob_.h: Indent nested #ifdef.
48358 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
48360 Sync from coreutils.
48361 Use "file name" when talking about file names, instead of "filename"
48362 or "path", as per the GNU coding standards.
48363 * lib/mkdir-p.c: Renamed from makepath.c.
48364 (make_dir_parents): Renamed from make_path. All callers changed.
48365 * lib/mkdir-p.h: Likewise. All includers changed.
48366 * lib/filenamecat.c: Renamed from path-concat.c.
48367 (file_name_concat): Renamed from path_concat. All callers changed.
48368 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
48369 * lib/filenamecat.h: Likewise. All includers changed.
48370 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
48371 in comments or local variable names.
48372 * lib/basename.c: Likewise.
48373 * lib/canonicalize.c, canonicalize.h: Likewise.
48374 * lib/dirname.c, dirname.h: Likewise.
48375 * lib/euidaccess.c: Likewise.
48376 * lib/exclude.c: Likewise
48377 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
48378 * lib/fsusage.c, fsuage.h: Likewise.
48379 * lib/fts.c, fts_.h: Likewise.
48380 * lib/getcwd.c: Likewise.
48381 * lib/getloadavg.c: Likewise.
48382 * lib/mkstemp.c: Likewise.
48383 * lib/mountlist.c, mountlist.h: Likewise.
48384 * lib/openat.c, openat.h: Likewise.
48385 * lib/readlink-stub.c: Likewise.
48386 * lib/readutmp.c, readutmp.h: Likewise.
48387 * lib/rename.c: Likewise.
48388 * lib/rmdir.c: Likewise.
48389 * lib/same.c: Likewise.
48390 * lib/savedir.c: Likewise.
48391 * lib/stripslash.c: Likewise.
48392 * lib/tempname.c: Likewise.
48393 * lib/xreadlink.c: Likewise.
48394 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
48396 * lib/exclude.h: Likewise.
48398 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
48399 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48400 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
48401 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48402 * lib/pathmax.h: Include <limits.h> unconditionally, since other
48403 files have been getting away with it for years (MORE/BSD 4.3
48405 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
48406 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48408 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
48409 Define to 256, not 255, as per modern POSIX.
48411 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
48413 Sync from coreutils.
48414 Use "file name" when talking about file names, instead of "filename"
48415 or "path", as per the GNU coding standards.
48416 * MODULES.html.sh: mkdir-p renamed from makepath.
48417 filenamecat renamed from path-concat.
48418 * modules/filenamecat: Renamed from modules/path-concat.
48419 (Files): filenamecat.h and filenamecat.c renamed from
48420 path-concat.h and path-concat.c.
48421 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
48422 (Include): filenamecat.h, not path-concat.h.
48423 * modules/mkdir-p: Renamed from modules/makepath.
48424 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
48426 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
48427 (Include): mkdir-p.h, not makepath.h.
48429 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
48431 Sync from coreutils.
48432 * m4/mkdir-p.m4: Renamed from makepath.m4.
48433 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
48434 Rename files from makepath.c to mkdir-p.c, and from
48435 makepath.h to mkdir-p.h.
48436 * m4/filenamecat.m4: Renamed from path-concat.m4.
48437 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
48438 Rename files from path-concat.c to filenamecat.c,
48439 and from path-concat.h to filenamecat.h.
48440 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
48441 "file name" in local variables or comments.
48442 * m4/rename.m4: Likewise.
48444 2005-06-01 Bruno Haible <bruno@clisp.org>
48446 * modules/csharpexec: New file.
48447 * MODULES.html.sh (C#): New section.
48449 2005-06-01 Bruno Haible <bruno@clisp.org>
48451 * m4/csharp.m4: New file, from GNU gettext.
48452 * m4/csharpexec.m4: New file, from GNU gettext.
48454 2005-06-01 Bruno Haible <bruno@clisp.org>
48456 * lib/csharpexec.h: New file, from GNU gettext.
48457 * lib/csharpexec.c: New file, from GNU gettext.
48458 * lib/csharpexec.sh.in: New file, from GNU gettext.
48460 2005-05-31 Derek Price <derek@ximbiot.com>
48461 Paul Eggert <eggert@cs.ucla.edu>
48464 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48466 2005-05-31 Derek Price <derek@ximbiot.com>
48467 Paul Eggert <eggert@cs.ucla.edu>
48470 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48472 2005-05-29 Derek Price <derek@ximbiot.com>
48474 * config/srclist.txt (glob_.h, glob.c): Add these files.
48476 2005-05-29 Derek Price <derek@ximbiot.com>
48478 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
48479 * modules/glob: New file.
48480 * modules/getlogin_r: Add link to POSIX spec in description.
48482 2005-05-29 Derek Price <derek@ximbiot.com>
48483 Paul Eggert <eggert@cs.ucla.edu>
48485 * m4/glob.m4: New file.
48487 2005-05-29 Derek Price <derek@ximbiot.com>
48488 Paul Eggert <eggert@cs.ucla.edu>
48490 * lib/glob_.h, lib/glob.c: New files.
48492 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
48494 * modules/fts (Files): Remove m4/inttypes-pri.m4.
48495 * modules/fts-lgpl (Depends-on): Remove gettext.
48497 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
48499 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
48500 and don't require gt_INTTYPES_PRI.
48502 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
48504 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
48506 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
48507 the configuration hassle isn't worth it.
48508 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
48509 (LONGEST_MODIFIER, PRIuMAX): Remove.
48511 2005-05-27 Bruno Haible <bruno@clisp.org>
48513 * lib/getlogin_r.h: Remove second include of <stddef.h>.
48515 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
48517 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
48518 _POSIX_PTHREAD_SEMANTICS for Solaris.
48520 2005-05-25 Derek Price <derek@ximbiot.com>
48522 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
48524 2005-05-25 Derek Price <derek@ximbiot.com>
48525 Paul Eggert <eggert@cs.ucla.edu>
48527 * modules/getlogin_r, m4/getlogin_r.m4: New files.
48528 * lib/getlogin_r.c, getlogin_r.h: New files.
48530 2005-05-25 Bruno Haible <bruno@clisp.org>
48531 Derek Price <derek@ximbiot.com>
48533 * lib/getlogin_r.h: Simplify API documentation.
48535 2005-05-23 Derek Price <derek@ximbiot.com>
48537 * modules/minmax (Files): Add m4/minmax.m4.
48538 (configure.ac): Add gl_MINMAX.
48540 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
48542 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
48543 so that unistd-safer.h (GPL'ed code) need not be included.
48545 2005-05-22 Bruno Haible <bruno@clisp.org>
48547 * m4/minmax.m4: New file.
48548 Based on a patch by Derek Price <derek@ximbiot.com>.
48550 2005-05-22 Bruno Haible <bruno@clisp.org>
48552 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
48553 (INT64_MIN): Fix definition.
48554 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
48556 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
48557 NEED_SIGNED_INT_TYPES.
48559 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
48560 HAVE_SYSTEM_INTTYPES.
48562 2005-05-22 Bruno Haible <bruno@clisp.org>
48564 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
48565 Also include <sys/param.h> if it defines MIN, MAX.
48566 Based on a patch by Derek Price <derek@ximbiot.com>.
48568 2005-05-21 Jim Meyering <jim@meyering.net>
48570 * modules/fts (Files): Add m4/inttypes-pri.m4.
48571 (Depends-on): Add lstat and remove gettext. Alphabetize.
48573 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
48576 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
48577 (setup_dir, free_dir): New functions.
48578 (enter_dir, leave_dir): Define trivial
48579 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
48580 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
48581 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
48582 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
48583 Move to fts-cycle.c.
48584 (fts_open): Use setup_dir.
48585 (fts_close): Use free_dir.
48586 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
48587 This adds a label and some gotos, but the alternatives were messier.
48588 Check for memory allocation failure when entering a dir.
48589 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
48590 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
48591 (FTS): New member fts_cycle, that is a union that contains the
48592 old active_dir_ht and cycle_state. All uses changed to mention
48593 fts_cycle.ht and fts_cycle.state.
48594 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
48595 fts.c, with the following changes:
48596 (setup_dir, free_dir): New functions.
48597 (enter_dir): Now returns bool. Return true if successful, false
48598 if memory exhausted. All callers changed.
48599 Do not bother partly cleaning up on
48600 memory allocation failure; that is free_dir's job.
48601 However, free ad if hash_insert fails, to avoid memory leak.
48602 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
48603 fts->fts_options to see which union member to use.
48605 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
48607 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
48608 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
48610 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
48612 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
48614 2005-05-20 Jim Meyering <jim@meyering.net>
48616 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
48617 Now a macro, to pacify GCC.
48619 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
48621 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
48624 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
48626 * lib/chown.c (rpl_chown): Return -1 on failure.
48628 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
48630 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
48631 Don't check for stddef.h.
48632 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
48633 don't use its results.
48634 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
48635 since we include them unconditionally. Don't require
48636 AM_STDBOOL_H, since stdbool is a prerequisite.
48637 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
48638 since we assume C89 or better.
48639 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
48640 as we don't use their results.
48641 Don't check for fchdir, memmove, memset, strrchr, as we use
48642 them unconditionally.
48643 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
48644 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
48646 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
48648 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
48649 Include <stddef.h> unconditionally, since we assume C89 now.
48650 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
48651 * lib/fts.c: Include fts_.h first, to check interface.
48652 Do not include intprops.h; no longer needed.
48653 Include cycle-check.h and hash.h, since fts_.h no longer does.
48654 Remove unnecessary casts of closedir to void.
48655 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
48656 decide whether to decrement nlinks.
48657 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
48658 (FTS): Use struct hash_table * instead of Hash_table, so that
48659 we no longer need to include hash.h here.
48661 2005-05-18 Jim Meyering <jim@meyering.net>
48663 * modules/dirfd (License): Change to LGPL. Most of the code
48664 is already in the public domain.
48666 2005-05-18 Jim Meyering <jim@meyering.net>
48668 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
48669 Reported by Yoann Vandoorselaere.
48671 2005-05-17 Jim Meyering <jim@meyering.net>
48673 * m4/fts.m4: New file, from coreutils.
48675 2005-05-17 Jim Meyering <jim@meyering.net>
48677 * lib/fts.c, lib/fts_.h: New files, from coreutils.
48679 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
48681 Sync from coreutils.
48682 * m4/unlinkdir.m4: New file.
48684 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
48686 Sync from coreutils.
48687 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
48688 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
48689 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
48690 White space changes only.
48691 * lib/makepath.c (make_path): Port to hosts where leading "//" is
48693 * lib/yesno.c: Include getline.h, not ctype.h.
48694 (yesno): Don't remove leading white space; POSIX doesn't allow it.
48695 Use getline to remove arbitrary restriction on response length.
48697 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
48699 * config/srclist-update: Spell out "Street" in FSF postal
48700 mail address; this is the style the FSF seems to prefer.
48702 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
48703 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
48704 this updates FSF postal mail address.
48706 Sync from coreutils.
48707 * modules/unlinkdir: New file.
48708 * modules/yesno (Depends-on): Add getline.
48709 * MODULES.html.sh (File system functions): Add unlinkdir.
48711 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
48713 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
48715 Change the initial comment to refer to GPL, not LGPL.
48716 gnulib-tool will change it to LGPL as needed.
48718 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
48719 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
48720 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
48721 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
48722 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
48723 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
48724 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
48725 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
48726 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
48727 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
48728 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
48729 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
48730 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
48731 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
48732 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
48733 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
48734 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
48735 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
48736 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
48737 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
48738 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
48739 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
48740 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
48741 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
48742 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
48743 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
48744 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
48745 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
48746 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
48747 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
48748 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
48749 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
48750 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
48751 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
48752 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
48753 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
48754 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
48755 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
48756 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
48757 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
48758 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
48759 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
48760 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
48761 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
48762 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
48763 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
48764 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
48765 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
48766 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
48767 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
48768 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
48769 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
48770 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
48771 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
48772 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
48773 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
48774 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
48775 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
48776 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
48777 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
48778 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
48779 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
48780 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
48781 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
48782 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
48783 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
48784 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
48785 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
48786 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
48787 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
48788 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
48789 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
48790 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
48791 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
48792 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
48793 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
48794 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
48795 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
48796 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
48797 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
48798 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
48799 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
48800 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
48801 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
48802 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
48803 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
48804 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
48805 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
48806 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
48807 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
48808 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
48809 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
48810 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
48811 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
48812 lib/yesno.c, lib/yesno.h:
48813 Update FSF postal mail address.
48815 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
48817 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
48818 tests/test-memmem.c, tests/test-stpncpy.c:
48819 Update FSF postal mail address.
48821 2005-05-13 Bruno Haible <bruno@clisp.org>
48823 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
48824 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
48825 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
48826 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
48827 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
48828 Add support for 64-bit integers in the MSVC compiler.
48830 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48832 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
48834 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
48836 * gnulib-tool (func_import): Sort and uniquify recommended includes.
48838 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
48840 * doc/getdate.texi (General date syntax): Don't say that date
48841 date --iso-8601=ns generates acceptable dates; it doesn't yet.
48842 Problem reported by Nic Ferrier.
48844 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48846 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
48847 specified in ai_socktype. Fix invalid ai_protocol
48848 check. ai_protocol is usually set to 0 or depending on
48849 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
48850 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
48851 ai_socktype / ai_protocol in the returned addrinfo structure.
48853 2005-05-10 Simon Josefsson <jas@extundo.com>
48855 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
48856 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48858 2005-05-10 Karl Berry <karl@gnu.org>
48860 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
48861 (from http://www.gnu.org/licenses).
48862 * doc/COPYING.LIB: also rename to COPYING.LESSER.
48863 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
48866 2005-05-10 Karl Berry <karl@gnu.org>
48868 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
48869 (COPYING.DOC): remove.
48871 * config/srclist-update: new FSF address.
48873 2005-05-10 Derek Price <derek@ximbiot.com>
48875 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
48878 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48879 Bruno Haible <bruno@clisp.org>
48881 * modules/inet_ntop: New file.
48882 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48885 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48886 Bruno Haible <bruno@clisp.org>
48888 * m4/inet_ntop.m4: New file.
48890 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48891 Bruno Haible <bruno@clisp.org>
48893 * lib/inet_ntop.h: New file.
48894 * lib/inet_ntop.c: New file, from glibc with modifications.
48896 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
48898 * modules/time_r (License): Change to LGPL.
48899 * modules/extensions (License): Change to LGPL. Actually,
48900 the license is more permissive than that, but currently gnulib-tool
48901 doesn't know how to handle more-permissive licenses.
48903 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
48904 Problem reported by Dave Love.
48906 2005-05-08 Jim Meyering <jim@meyering.net>
48908 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
48911 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
48913 * modules/argmatch (Depends-on): Add stdbool.
48914 * modules/backupfile (Depends-on): Likewise.
48915 * modules/chdir-long (Depends-on): Likewise.
48916 * modules/closeout (Depends-on): Likewise.
48917 * modules/cycle-check (Depends-on): Likewise.
48918 * modules/dirname (Depends-on): Likewise.
48919 * modules/fnmatch (Depends-on): Likewise.
48920 * modules/fsusage (Depends-on): Likewise.
48921 * modules/fwriteerror (Depends-on): Likewise.
48922 * modules/getcwd (Depends-on): Likewise.
48923 * modules/getloadavg (Depends-on): Likewise.
48924 * modules/hard-locale (Depends-on): Likewise.
48925 * modules/makepath (Depends-on): Likewise.
48926 * modules/mountlist (Depends-on): Likewise.
48927 * modules/nanosleep (Depends-on): Likewise.
48928 * modules/posixtm (Depends-on): Likewise.
48929 * modules/quotearg (Depends-on): Likewise.
48930 * modules/readtokens (Depends-on): Likewise.
48931 * modules/readtokens0 (Depends-on): Likewise.
48932 * modules/readutmp (Depends-on): Likewise.
48933 * modules/save-cwd (Depends-on): Likewise.
48934 * modules/strftime (Depends-on): Likewise.
48935 * modules/userspec (Depends-on): Likewise.
48936 * modules/utimecmp (Depends-on): Likewise.
48937 * modules/xgetcwd (Depends-on): Likewise.
48938 * modules/xnanosleep (Depends-on): Likewise.
48939 * modules/xstrtod (Depends-on): Likewise.
48940 * modules/yesno (Depends-on): Likewise.
48942 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
48944 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
48947 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
48949 Merge from coreutils. Among other things,
48950 add bulletproofing for cases where stdin, stdout, or stderr are closed.
48951 * lib/fd-safer.c: New file.
48952 * lib/fcntl-safer.h, open-safer.c: Remove.
48953 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
48954 * lib/dup-safer.c: Include unistd-safer.h first.
48955 Don't include errno.h.
48956 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
48957 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
48958 * lib/file-type.c: Rely on file-type.h change.
48959 * lib/getloadavg.c: Include unistd-safer.h.
48960 (getloadavg): Use safer open.
48961 * lib/getusershell.c: Include "stdio-safer.h".
48962 (getusershell): Use safer fopen.
48963 * lib/long-options.c (long_options): Use NULL rather than 0.
48964 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
48966 * lib/modechange.c: Likewise.
48967 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
48968 (MODE_DONE): New constant.
48969 (struct mode_change): Remove 'next' member.
48970 (make_node_op_equals): New function; like the old one of the
48971 same name, except it allocates an array.
48972 (mode_compile, mode_create_from_ref): Use it.
48973 (mode_compile): Allocate result as an array, not a linked list.
48974 Parse octal string ourself, so that we catch mistakes like "+0".
48975 (mode_adjust): Arg is an array, not a linked list.
48976 * lib/modechange.c: Include stat-macros.h, xalloc.h.
48977 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
48978 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
48979 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
48980 Remove. This is now stat-macros.h's job.
48981 (talloc): Remove. All callers replaced by xalloc, so that
48982 our invokers don't have to worry about reporting memory failures.
48983 (make_node_op_equals): Remove.
48984 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
48986 (struct mode_change): Moved here from modechange.h.
48987 (mode_append_entry): Remove.
48988 (mode_compile): Remove MASKED_OPS arg, since it encouraged
48989 apps to have incorrect behavior. Use simpler algorithm for head
48990 and tail. Don't futz with umask; that's now the job of mode_adjust.
48991 Detect more invalid usages rather than having somewhat-random behavior.
48992 Don't insert an "a=" action, as that leads to incorrect behavior.
48993 (mode_compile, mode_create_from_ref): Return NULL on error instead
48994 of an enum, since now there's only one way to have an error. All
48996 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
48997 at the correct time. Simplify calculation of "+u" and its ilk.
48998 Don't mishandle "+X".
48999 (mode_free): Remove "register" and localize decls.
49000 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
49001 (struct mode_change): Move to modechange.c; callers don't
49002 need to see this stuff.
49003 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
49004 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
49005 (mode_change, mode_adjust): Reflect the new signatures noted above.
49006 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
49007 that might redefine system include files.
49008 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
49009 (my_usleep): Use NULL rather than (void *) 0.
49010 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
49011 Use siginterrupt to specify that system calls should be interrupted.
49012 (rpl_nanosleep): Move initialization of suspended closer to call of
49014 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
49015 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
49016 (desirable_utmp_entry): New function.
49017 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
49018 using x2nrealloc, to simplify logic.
49019 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
49020 size calculation. Do not assume utmp file is a regular file.
49021 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
49022 (READ_UTMP_CHECK_PIDS): New constant.
49023 * lib/save-cwd.c: Include unistd-safer.h.
49024 (save_cwd): Use fd_safer.
49025 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
49026 [!_LIBC] Include "stat-macros.h" instead.
49027 * lib/unistd-safer.h (fd_safer): New decl.
49029 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
49031 * modules/getloadavg (Depends-on): Add unistd-safer.
49032 * modules/getusershell (Depends-on): Add stdio-safer.
49033 * modules/lstat (Depends-on): Remove xalloc.
49034 * modules/mkstemp (Depends-on): Add stat-macros.
49035 * modules/modechange (Depends-on): Remove xstrtol.
49036 Add stat-macros, xalloc.
49037 * modules/save-cwd (Depends-on): Add unistd-safer.
49038 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
49039 * modules/unistd-safer (Files): Add lib/fd-safer.c
49040 (Makefile.am): Remove lib_SOURCES.
49042 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
49043 Remove fcntl-safer; unistd-safer supersedes it.
49045 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
49047 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
49049 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
49050 (gl_PREREQ_CHOWN): Remove.
49051 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
49052 it. Don't require AC_HEADER_STAT.
49053 (gl_PREREQ_LSTAT): Remove.
49054 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
49055 Don't require AC_HEADER_STAT.
49056 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
49057 (gl_PREREQ_RMDIR): Remove.
49058 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
49059 mention stat-macros.h or AC_HEADER_STAT, since we'll make
49060 the stat-macros module a prerequisite.
49061 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
49062 * m4/filemode.m4 (gl_FILEMODE): Likewise.
49063 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
49064 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
49065 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
49067 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
49068 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
49070 * m4/fcntl-safer.m4: Remove.
49071 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
49072 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
49073 Invoke gl_PREREQ_FD_SAFER.
49074 (gl_PREREQ_FD_SAFER): New macro.
49075 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
49076 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
49077 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
49078 Remove duplicate call to AC_LIBOBJ(readutmp).
49079 (gl_PREREQ_READUTMP): Remove. All uses inlined.
49081 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
49082 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
49084 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
49086 * MODULES.html.sh (Misc): Add byteswap.
49088 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
49090 * modules/getcwd (Depends-on): Add extensions.
49091 * modules/openat (Depends-on): Likewise.
49093 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
49095 * modules/byteswap: New file.
49097 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
49099 * m4/byteswap.m4: New file.
49101 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
49103 * lib/byteswap_.h: New file.
49105 2005-04-25 Karl Berry <karl@gnu.org>
49107 * m4/gettext.m4: Update from GNU gettext 0.14.4.
49109 2005-04-25 Albert Chin <china@thewrittenword.com>
49111 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
49114 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
49116 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
49117 (func_ln_if_changed) Remove forcibly for no error message
49118 in case file does not exist.
49120 2005-04-19 Simon Josefsson <jas@extundo.com>
49122 * gnulib-tool (Options): Make --symlink mean --symbolic.
49124 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
49126 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
49128 2005-04-16 Simon Josefsson <jas@extundo.com>
49130 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
49132 2005-04-15 Simon Josefsson <jas@extundo.com>
49134 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
49136 2005-04-15 Simon Josefsson <jas@extundo.com>
49138 * gnulib-tool: Rename --symlink to --symbolic.
49140 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
49142 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
49143 symbolic links to files instead of copying/moving. Add --aux-dir,
49144 specifying directory relative --dir where auxiliary build tools
49147 2005-04-14 Bruno Haible <bruno@clisp.org>
49149 * modules/allocsa (License): Change to LGPL.
49150 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49152 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
49154 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
49155 that "UTC +1 second" continues to work. Problem reported
49156 by Dmitry V. Levin.
49157 (relunit_snumber): New rule.
49160 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
49162 * lib/getdate.y (universal_time_zone_table): New constant.
49163 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
49164 universal_time_zone_table.
49165 (lookup_zone): Prefer universal_time_zone_table to
49166 local_time_zone_table, so that "GMT" time stamps are allowed in
49167 London during the summer. Problem reported by Ian Abbott.
49169 2005-04-12 Jim Meyering <jim@meyering.net>
49171 * lib/human.c (humblock): Set *options even when returning due to
49172 xstrtoumax conversion failure. Thanks to a used-uninitialized
49173 warning from gcc-4.
49175 2005-04-09 Jim Meyering <jim@meyering.net>
49177 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
49178 -Wuninitialized: initialize tm0.tm_year.
49180 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
49182 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
49183 count, since there's no maximum. All uses changed.
49184 Add member dsts_seen.
49185 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
49187 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
49188 Use pc_rels_seen to decide whther a date is absolute.
49190 * lib/getdate.y (number): Don't overwrite year.
49191 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
49194 2005-04-02 Simon Josefsson <jas@extundo.com>
49196 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
49197 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
49199 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
49201 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
49202 where no absolute path name can be longer than PATH_MAX.
49204 2005-03-27 Jim Meyering <jim@meyering.net>
49206 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
49208 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
49210 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
49211 "one's complement" -> "ones' complement" in comment, as per Knuth.
49212 "value of type" -> "type or expression" in comment.
49213 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
49215 2005-03-26 Jim Meyering <jim@meyering.net>
49218 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
49219 Correct typos: s/or/of/.
49221 2005-03-26 Jim Meyering <jim@meyering.net>
49223 * modules/check-include-files: Move to ../ and rename to...
49224 * check-module: ...this.
49226 2005-03-25 Jim Meyering <jim@meyering.net>
49228 * modules/xvasprintf (Files): Add xalloc.h.
49230 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
49232 * modules/gettext (Files): config/config.rpath ->
49233 build-aux/config.rpath
49234 * modules/iconv (Files): Likewise.
49235 Problem reported by Oskar Liljeblad.
49237 2005-03-23 Jim Meyering <jim@meyering.net>
49239 * modules/check-include-files: New script to check for
49240 missing dependencies, multiple includes, etc.
49242 * modules/c-strtold (Depends-on): Add xalloc.
49243 * modules/c-strtod (Depends-on): Add xalloc.
49244 * modules/hash (Depends-on): Add xalloc.
49245 (Files): Remove lib/xalloc.h.
49247 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
49248 * modules/userspec (Files): Add lib/inttostr.h.
49250 2005-03-23 Jim Meyering <jim@meyering.net>
49252 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
49254 2005-03-22 Jim Meyering <jim@meyering.net>
49256 * modules/stat-macros: New module.
49257 * modules/canonicalize, modules/euidaccess, modules/file-type,
49258 * modules/filemode, modules/lchown, modules/makepath,
49259 * modules/rmdir, modules/stat: Depend on new stat-macros module
49260 rather than listing lib/stat-macros.h manually.
49261 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
49263 2005-03-22 Jim Meyering <jim@meyering.net>
49265 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
49267 2005-03-22 Bruno Haible <bruno@clisp.org>
49269 * config/srclist.txt: Replace target directory 'config' with
49271 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
49272 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
49275 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
49277 * modules/chdir-long (Depends-on): Add mempcpy.
49279 * modules/acl, modules/backupfile, modules/c-strtod,
49280 modules/c-strtold, modules/canon-host, modules/canonicalize,
49281 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
49282 modules/exclude, modules/exitfail, modules/file-type,
49283 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
49284 modules/getdate, modules/getline, modules/getpagesize,
49285 modules/getpass, modules/getugroups, modules/group-member,
49286 modules/hard-locale, modules/hash, modules/human, modules/idcache,
49287 modules/inttostr, modules/long-options, modules/makepath,
49288 modules/md5, modules/memcasecmp, modules/memcoll,
49289 modules/modechange, modules/mountlist, modules/path-concat,
49290 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
49291 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
49292 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
49293 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
49294 modules/strftime, modules/strndup, modules/strverscmp,
49295 modules/timespec, modules/unlocked-io, modules/userspec,
49296 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
49298 Remove lib_SOURCES line from Makefile.am section, as this is now
49299 done automatically by the corresponding Autoconf macro.
49301 2005-03-21 Jim Meyering <jim@meyering.net>
49303 Changes imported from coreutils.
49305 * lib/cycle-check.c: Don't include xalloc.h.
49307 * lib/path-concat.c: Don't include assert.h.
49308 (path_concat): Remove assertion that would have triggered
49309 for ABASE starting with more than one slash.
49310 Reported by Andreas Schwab.
49312 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
49313 properly when ABASE is an absolute file name.
49314 Correct the description of this function.
49315 Include <assert.h>.
49316 Add an assertion and a test driver.
49317 This fixes a bug introduced on 2004-07-02.
49318 Andreas Schwab reported the resulting failure of cp --parents:
49319 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
49321 2005-03-21 Jim Meyering <jim@meyering.net>
49323 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
49324 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
49326 2005-03-21 Jim Meyering <jim@meyering.net>
49327 and Paul Eggert <eggert@cs.ucla.edu>
49329 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
49330 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
49331 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
49332 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
49333 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
49334 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
49335 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
49336 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
49337 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
49338 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
49339 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
49340 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
49341 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
49342 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
49343 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
49344 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
49345 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
49348 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
49350 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
49351 (which shouldn't happen), generate nothing instead of returning 0
49352 immediately, so that nstrftime (NULL, ...) doesn't return 0.
49354 2005-03-16 Bruno Haible <bruno@clisp.org>
49356 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
49357 HAVE_LONGLONG_64BIT.
49359 2005-03-16 Bruno Haible <bruno@clisp.org>
49361 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
49362 HAVE_LONGLONG_64BIT.
49364 2005-03-16 Bruno Haible <bruno@clisp.org>
49366 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
49367 HAVE_LONGLONG_64BIT.
49369 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
49371 * lib/strftime.c (my_strftime): Prepend space to format so that we can
49372 reliably distinguish strftime failure from empty output on POSIX
49375 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
49377 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
49378 (iconv_string): Don't guess a size-zero buffer, as that might cause
49379 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
49380 result would be 'too large', where 'too large' is (heuristically)
49381 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
49382 overflow concerns. This will prevent some unwanted malloc failures
49383 when the inputs are very large.
49385 2005-03-15 Karl Berry <karl@gnu.org>
49387 * config/srclist.txt (config.rpath): from gettext.
49388 * config/config.rpath: update.
49390 2005-03-15 Bruno Haible <bruno@clisp.org>
49392 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
49395 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
49398 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
49401 2005-03-14 Simon Josefsson <jas@extundo.com>
49403 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
49406 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
49408 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
49409 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
49411 * lib/strtol.c: Likewise.
49413 2005-03-14 Jim Meyering <jim@meyering.net>
49415 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
49416 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
49417 to be nonzero so that we (and caller) can detect the difference
49418 between a valid zero-length expansion and an error return, even
49419 when the underlying strftime fails before writing anything into
49422 2005-03-14 Bruno Haible <bruno@clisp.org>
49424 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
49425 Update from GNU gettext 0.14.3.
49427 2005-03-10 Jim Meyering <jim@meyering.net>
49429 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
49431 2005-03-10 Jim Meyering <jim@meyering.net>
49433 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
49434 so that this module works on systems without fchdir.
49436 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
49438 Factor int-properties macros into a single file, except for
49439 glibc-related files.
49440 * lib/intprops.h: New file.
49441 * lib/getloadavg.c: Include it instead of limits.h.
49442 (INT_STRLEN_BOUND): Remove.
49443 * lib/human.c: Include intprops.h.
49444 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
49445 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
49447 * lib/inttostr.h: Include intprops.h instead of limits.h.
49448 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
49449 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
49450 for consistency with intprops.h.
49451 (time_t_is_integer, twos_complement_arithmetic): Use them.
49452 * lib/sig2str.h: Include <signal.h>, intprops.h.
49453 (INT_STRLEN_BOUND): Remove.
49454 * lib/strftime.c (TYPE_SIGNED): Remove.
49455 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
49456 * lib/strtol.c: Adjust comments to match intprops.h.
49457 * lib/userspec.c: Include intprops.h.
49458 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
49459 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
49460 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
49461 instead of rolling our own expressions.
49462 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
49464 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
49466 (my_strftime): Do not mishandle years close to INT_MAX, by doing
49467 the right thing even if adding 1900 would overflow. Similarly
49468 for tm_mon + 1 and tm_yday + 1.
49469 Make %Y always equivalent to %C%y, and similarly for %G and %g.
49470 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
49471 (DO_SIGNED_NUMBER): New macro.
49472 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
49474 2005-03-07 Bruno Haible <bruno@clisp.org>
49476 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
49478 2005-03-07 Bruno Haible <bruno@clisp.org>
49480 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
49482 2005-03-04 Derek R. Price <derek@ximbiot.com>
49484 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
49485 (func_import): Only replace files via --import when they have actually
49488 2005-03-03 Derek R. Price <derek@ximbiot.com>
49490 * m4/mmap-anon.m4: New file.
49491 * m4/pagealign_alloc.m4: New file.
49493 2005-03-03 Derek R. Price <derek@ximbiot.com>
49494 Bruno Haible <bruno@clisp.org>
49496 * modules/pagealign_alloc: New file.
49497 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
49499 2005-03-03 Derek R. Price <derek@ximbiot.com>
49500 Bruno Haible <bruno@clisp.org>
49502 * lib/pagealign_alloc.h: New file.
49503 * lib/pagealign_alloc.c: New file.
49505 2005-03-03 Bruno Haible <bruno@clisp.org>
49507 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
49508 Use an all-permissive copyright notice, recommended by RMS.
49510 2005-03-02 Bruno Haible <bruno@clisp.org>
49512 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
49513 of AIX, the replacement has to be done only after <string.h> is
49514 included, therefore not in config.h. stpncpy.h does the replacement,
49515 and stpncpy.c uses it.
49517 2005-03-02 Bruno Haible <bruno@clisp.org>
49519 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
49522 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
49524 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
49525 The workaround isn't strictly needed for POSIX conformance, and
49526 it's too much of a pain to configure and maintain. We'll ask
49527 people to fix their kernels instead.
49528 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
49529 (NANOSLEEP_BUG_WORKAROUND): Remove.
49530 (xnanosleep): Remove the workaround.
49532 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
49534 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
49535 Reported by Derek Price.
49536 (Include): Add "timespec.h".
49538 * modules/xnanosleep (Depends-on): Remove gethrxtime.
49540 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
49542 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
49543 to detect nanosleep bug.
49545 2005-03-01 Bruno Haible <bruno@clisp.org>
49547 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
49549 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
49551 * modules/gethrxtime: New file.
49552 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
49553 (Depends-on): Add gethrxtime.
49554 (configure.ac): Add gl_XNANOSLEEP.
49555 (Makefile.am): Remove lib_SOURCES line.
49557 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
49559 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
49560 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
49562 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
49564 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
49565 * lib/timespec.h (gettime): Return void, since it always
49566 succeeds now. All uses changed.
49567 * lib/gettime.c (gettime) Likewise.
49568 [HAVE_NANOTIME]: Prefer nanotime.
49569 Assume gettimeofday succeeds, as POSIX requires.
49570 Assime time () succeeds, since other code already does.
49571 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
49572 (timespec_subtract): Remove.
49573 (NANOSLEEP_BUG_WORKAROUND): New constant.
49574 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
49575 things considerably. Use it only on GNU/Linux hosts, since the
49576 workaround shouldn't be needed elsewhere.
49578 2005-02-24 Bruno Haible <bruno@clisp.org>
49580 * modules/gettext (Files): Add m4/glibc2.m4.
49582 2005-02-24 Bruno Haible <bruno@clisp.org>
49584 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
49585 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
49587 Update from GNU gettext 0.14.2.
49588 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
49590 2005-02-24 Bruno Haible <bruno@clisp.org>
49592 * lib/localcharset.c: Update from GNU gettext 0.14.2.
49593 * lib/config.charset: Update from GNU gettext 0.14.2.
49595 2005-02-24 Bruno Haible <bruno@clisp.org>
49597 * lib/gettext.h: Update from GNU gettext 0.14.2.
49599 2005-02-23 Simon Josefsson <jas@extundo.com>
49601 * m4/iconvme.m4: New file.
49603 2005-02-23 Jim Meyering <jim@meyering.net>
49605 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
49607 Thanks to Bruno Haible for catching it.
49609 2005-02-22 Simon Josefsson <jas@extundo.com>
49611 * modules/iconvme: New file.
49613 * MODULES.html.sh: Add iconvme.
49615 2005-02-22 Simon Josefsson <jas@extundo.com>
49617 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
49619 2005-02-22 Simon Josefsson <jas@extundo.com>
49621 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
49623 2005-02-22 Jim Meyering <jim@meyering.net>
49625 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
49628 2005-02-20 Neil Conway <neilc@samurai.com>
49630 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
49631 returned by OSX/Darwin if the specified buffer is not large
49632 enough for the hostname.
49634 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49636 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
49637 pass it to _help, otherwise the latter coredumps trying to
49638 dereference state.root_argp.
49640 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
49642 * modules/chdir-long (Depends-on): Add memrchr.
49643 * modules/memrchr (Files): Add lib/memrchr.h.
49644 (Include): "memrchr.h".
49646 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
49648 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
49650 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
49652 * lib/memrchr.h: New file.
49653 * lib/chdir-long.c: Include it.
49654 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
49655 Don't bother including stddef.h.
49657 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
49659 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
49661 Include <sys/types.h>, for dev_t.
49662 (ME_DUMMY, ME_REMOTE): Move from here....
49663 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
49664 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
49666 Include mountlist.h first, to test the interface.
49668 2005-01-29 Bruno Haible <bruno@clisp.org>
49670 * lib/progname.c (program_name): Initialize.
49671 Needed when linking statically on MacOS X.
49673 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
49675 Sync from coreutils.
49676 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
49677 (Depends-on): Add c-strtod.
49678 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
49680 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
49682 Sync from coreutils.
49683 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
49685 Remove files that are specific to coreutils.
49686 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
49688 2005-01-28 Bruno Haible <bruno@clisp.org>
49690 * modules/javacomp: New file.
49691 * MODULES.html.sh (Java): Add javacomp.
49693 2005-01-28 Bruno Haible <bruno@clisp.org>
49695 * m4/javacomp.m4: New file, from GNU gettext.
49697 2005-01-28 Bruno Haible <bruno@clisp.org>
49699 * lib/javacomp.sh.in: New file, from GNU gettext.
49700 * lib/javacomp.h: New file, from GNU gettext.
49701 * lib/javacomp.c: New file, from GNU gettext.
49703 2005-01-26 Simon Josefsson <jas@extundo.com>
49705 * lib/gai_strerror.c: Use GPL in header.
49707 2005-01-26 Bruno Haible <bruno@clisp.org>
49709 * modules/javaexec: New file.
49710 * MODULES.html.sh (Java): Add javaexec.
49712 2005-01-26 Bruno Haible <bruno@clisp.org>
49714 * m4/javaexec.m4: New file, from GNU gettext.
49716 2005-01-26 Bruno Haible <bruno@clisp.org>
49718 * lib/javaexec.sh.in: New file, from GNU gettext.
49719 * lib/javaexec.h: New file, from GNU gettext.
49720 * lib/javaexec.c: New file, from GNU gettext.
49722 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49724 * modules/lchown (Depends-on): Remove lchown.h
49726 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49728 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
49729 must be defined if the header file was not found, in order
49730 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
49732 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49734 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
49735 initializers for struct pentry_state.
49736 (__argp_error): Check return value of __asprintf
49737 (__argp_failure): Translate error message
49739 * lib/argp-parse.c: Removed braces around the expansion of N_()
49741 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
49743 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
49744 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
49745 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
49746 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
49747 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
49748 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
49749 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
49750 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
49751 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
49752 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
49753 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
49754 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
49755 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
49756 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
49757 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
49758 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
49759 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
49760 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
49761 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
49762 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
49763 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
49764 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
49765 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
49766 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
49767 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
49768 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
49769 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
49770 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
49771 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
49772 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
49773 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
49774 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
49775 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
49776 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
49777 xstrtol.m4, xstrtoumax.m4, yesno.m4:
49778 Use an all-permissive copyright notice, recommended by RMS.
49780 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
49782 * modules/chdir-long (Depends-on): Remove mempcpy.
49784 2005-01-21 Jim Meyering <jim@meyering.net>
49786 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
49787 same value as for Solaris 9.
49789 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
49790 component length. This included changing the parameter to be
49791 of type `char *' rather than `char const *'.
49792 * lib/chdir-long.h (chdir_long): Update prototype.
49794 * lib/openat.c (fdopendir, fstatat): New functions.
49795 * lib/openat.h: Include headers required for use of DIR and struct
49797 [AT_SYMLINK_NOFOLLOW]: Define.
49798 (fdopendir, fstatat): Add prototypes.
49800 2005-01-21 Bruno Haible <bruno@clisp.org>
49802 * modules/classpath: New file.
49803 * MODULES.html.sh (Java): Add classpath.
49805 2005-01-21 Bruno Haible <bruno@clisp.org>
49807 * lib/classpath.h: New file, from GNU gettext.
49808 * lib/classpath.c: New file, from GNU gettext.
49810 2005-01-20 Simon Josefsson <jas@extundo.com>
49812 * modules/version-etc-fsf: New file.
49814 2005-01-20 Simon Josefsson <jas@extundo.com>
49816 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
49817 * lib/version-etc.c: Remove version_etc_copyright.
49818 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
49819 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
49821 2005-01-20 Simon Josefsson <jas@extundo.com>
49823 * lib/base64.h (isbase64): Add.
49825 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
49826 using a unsigned prototype, don't inline.
49827 (base64_decode): Use it.
49829 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
49831 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
49834 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
49836 * lib/save-cwd.c (save_cwd): Remove code to support the case
49837 where fchdir is missing or flaky.
49839 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
49841 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
49843 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
49845 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
49846 AC_LIBSOURCES now does this.
49847 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
49848 with new ullong_max module.
49850 2005-01-19 Bruno Haible <bruno@clisp.org>
49852 * modules/sh-quote: New file.
49853 * MODULES.html.sh (Executing programs): Add sh-quote.
49855 2005-01-19 Bruno Haible <bruno@clisp.org>
49857 * lib/sh-quote.h: New file, from GNU gettext.
49858 * lib/sh-quote.c: New file, from GNU gettext.
49860 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
49862 Merge from coreutils.
49863 * m4/ullong_max.m4: New file.
49864 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
49865 (gl_MACROS): Assume localeconv exists.
49867 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
49869 Merge changes from coreutils, as described below in several
49870 changelogs dated today.
49872 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
49873 (O_DIRECTORY): Remove; not needed here, since "." must be
49874 a directory. All uses removed.
49875 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
49876 universal on Suns, and we also need to test for IRIX.
49877 Revamp code to use 'if' rather than '#if'.
49878 Avoid unnecessary comparison of cwd->desc to 0.
49880 * lib/utimens.c (futimens): Robustify the previous patch, by checking
49881 for known valid error numbers rather than observed invalid ones.
49883 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
49885 * modules/ullong_max: New file.
49887 * modules/chdir-long, modules/openat: New files.
49888 * modules/save-cwd (Depends-on): Depend on chdir-long.
49889 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
49891 2005-01-18 Jim Meyering <jim@meyering.net>
49893 Merge from coreutils.
49894 * m4/chdir-long.m4, m4/openat.m4: New files.
49895 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
49896 save-cwd.h. Add AC_LIBOBJ for save-cwd.
49897 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
49898 is sane and DOES follow symlinks. Besides, testing 20 different
49899 systems found no broken chown implementations.
49900 Prompted by a change in rsync's copy of this macro.
49901 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
49903 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
49905 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
49906 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
49907 NULL-means-set-to-current-time semantics.
49908 Remove temporary file immediately, rather than waiting
49909 for configure's at-exit trap code to do it.
49911 2005-01-18 Jim Meyering <jim@meyering.net>
49913 * lib/version-etc.c (version_etc_copyright): Update copyright date.
49915 * lib/utimens.c (futimens): Account for the fact that futimes
49916 can also fail with errno == ENOSYS or errno == ENOENT.
49917 Patch from Dmitry V. Levin.
49919 Change the name of the robust chdir function from chdir to chdir_long.
49920 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
49921 (restore_cwd): Use chdir_long, not chdir.
49922 * lib/chdir-long.c: Renamed from chdir.c.
49923 * lib/chdir-long.h: Renamed from chdir.h.
49924 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
49927 2005-01-18 Bruno Haible <bruno@clisp.org>
49929 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
49930 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
49931 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
49932 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
49933 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
49934 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
49935 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
49936 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
49937 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
49938 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
49939 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
49940 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
49941 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
49942 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
49943 Use an all-permissive copyright notice, recommended by RMS.
49945 2005-01-18 Bob Proulx <bob@proulx.com>
49947 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
49948 simplify offsetof() macro construct to avoid compile failure with
49949 native HP-UX 11.0 ANSI C compiler.
49951 2005-01-17 Bruno Haible <bruno@clisp.org>
49953 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
49954 redundant because stpncpy.m4 takes care of it.
49956 2005-01-17 Bruno Haible <bruno@clisp.org>
49958 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
49960 2005-01-17 Bruno Haible <bruno@clisp.org>
49962 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
49965 2005-01-17 Bruno Haible <bruno@clisp.org>
49967 * lib/fwriteerror.h (fwriteerror): Change specification to include
49969 * lib/fwriteerror.c: Include <stdbool.h>.
49970 (fwriteerror): At the end, close the file stream. Record whether
49971 stdout was already closed.
49973 2005-01-17 Bruno Haible <bruno@clisp.org>
49975 * lib/execute.c (environ): Declare if needed.
49976 * lib/pipe.c (environ): Likewise.
49977 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
49979 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49981 * modules/argp: Depend on vsnprintf
49983 2005-01-10 Jim Meyering <jim@meyering.net>
49985 * modules/closeout (Depends-on): Add atexit.
49987 2005-01-06 Bruno Haible <bruno@clisp.org>
49989 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
49991 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
49993 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
49994 definitions to be after all include files, to avoid collisions.
49995 Problem reported by Bob Proulx.
49997 2005-01-04 Jim Meyering <jim@meyering.net>
49999 Changes imported from coreutils.
50000 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
50001 as the mkstemp template, use a temporary directory and an
50002 8.3-friendly template to avoid trouble on systems like DJGPP.
50003 Reported by Juan M. Guerrero via Stepan Kasal.
50004 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
50005 close. Remove the temporary directory right away, rather than waiting
50006 for configure's at-exit trap code to do it.
50007 Suggestion from Stepan Kasal.
50009 2005-01-01 Simon Josefsson <jas@extundo.com>
50011 * gnulib-tool: Print #include directives when --import'ing.
50013 2004-12-28 Simon Josefsson <jas@extundo.com>
50015 * tests/test-base64.c: Include required header files. Remove
50018 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
50020 * modules/error (Depends-on): Remove gettext.
50022 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
50024 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
50025 not needed. This removes a dependency on the gettext module.
50026 [defined _LIBC]: Do not include <libintl.h>; not needed.
50028 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
50030 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
50031 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
50033 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
50035 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
50038 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
50040 * modules/getdate (Depends-on): Remove alloca-opt.
50042 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
50044 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
50046 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
50048 * lib/argp-parse.c: Include <stddef.h>.
50049 (alignof, alignto): New macros.
50050 (parser_init): Don't assume that void * is aligned sufficiently
50053 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
50054 need to extend the stack.
50055 (YYINITDEPTH): New macro, so that the initial stack isn't overly
50058 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50060 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
50062 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
50064 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
50065 (2004-10-24) change. Apparently this was a false alarm.
50067 * modules/getdate: Depend on alloca-opt, not alloca.
50069 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
50071 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
50072 Remove now-obsolete comment about AIX.
50073 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
50074 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
50075 (YYMAXDEPTH): New macro.
50077 2004-12-18 Simon Josefsson <jas@extundo.com>
50079 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
50081 2004-12-18 Bruno Haible <bruno@clisp.org>
50083 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
50085 2004-12-18 Bruno Haible <bruno@clisp.org>
50087 * lib/fatal-signal.c (fatal_signals): Make non-const.
50088 (init_fatal_signals): New function.
50089 (uninstall_handlers, install_handlers): Ignore signals that were set to
50091 (at_fatal_signal): Call init_fatal_signals.
50092 (init_fatal_signal_set): Likewise. Ignore signals that were set to
50094 Reported by Paul Eggert.
50096 2004-12-18 Bruno Haible <bruno@clisp.org>
50098 * doc/alloca.texi: New file.
50099 * doc/alloca-opt.texi: New file.
50101 2004-12-17 Jim Meyering <jim@meyering.net>
50103 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
50104 Otherwise, install-sh could exit with improper exit status when
50105 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
50107 2004-12-16 Simon Josefsson <jas@extundo.com>
50109 * tests/test-base64.c: Add license.
50111 2004-12-15 Stepan Kasal <address@hidden>
50113 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
50115 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
50117 * modules/getcwd (Files): Add m4/d-ino.m4.
50118 Suggested by Mark D. Baushke.
50120 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
50122 * lib/getdate.y (textint): New member "negative".
50123 (time_zone_hhmm): New function.
50124 Expect 14 shift-reduce conflicts, not 13.
50125 (o_colon_minutes): New rule.
50126 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
50127 (yylex): Set the "negative" member of signed numbers.
50129 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
50131 * doc/getdate.texi (Time of day items, Time zone items):
50132 Describe new formats +00:00, UTC+00:00.
50134 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
50136 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
50137 spurious "-l"s. Problem reported by Stepan Kasal.
50139 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
50141 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
50142 in Autoconf 2.59. Problem reported by Mark D. Baushke.
50144 2004-12-04 Simon Josefsson <jas@extundo.com>
50146 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
50147 Vandoorselaere <yoann@prelude-ids.org>.
50149 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
50151 Changes imported from coreutils.
50152 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
50154 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
50156 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
50158 Changes imported from coreutils.
50159 * lib/hard-locale.c: Assume <locale.h> exists.
50160 Include "strdup.h".
50161 (GLIBC_VERSION): New macro.
50162 (hard_locale): Assume setlocale exists.
50163 Rewrite to avoid #ifdef.
50164 Use strdup rather than malloc + strcpy.
50165 * lib/human.c: Assume <locale.h> exists.
50166 (human_readable): Assume localeconv exists.
50168 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
50170 * modules/hard-locale (Depends-on): Add strdup.
50172 2004-12-01 Jakub Jelinek <jakub@redhat.com>
50174 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
50175 convert T2, not T. (Imported from libc.)
50177 2004-11-30 Simon Josefsson <jas@extundo.com>
50179 * modules/restrict (License): Change to LGPL.
50181 2004-11-30 Simon Josefsson <jas@extundo.com>
50183 * m4/restrict.m4: Add copyright and copying conditions.
50185 2004-11-30 Simon Josefsson <jas@extundo.com>
50187 * m4/base64.m4: New file.
50189 2004-11-30 Simon Josefsson <jas@extundo.com>
50191 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
50194 * tests/test-base64.c: New file.
50196 * modules/base64: New file.
50198 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
50200 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
50201 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
50203 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
50205 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
50207 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
50208 (__getcwd.c): Don't restore errno; glibc doesn't.
50209 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
50210 first, falling back to our code only if its results look suspicious.
50211 Ensure that the resulting buffer is only as large as necessary.
50213 * lib/readutmp.c: Include readutmp.h first.
50214 Include <errno.h>, since readutmp.h no longer does that.
50215 * lib/readutmp.h: Don't include <errno.h>,
50216 <sys/param.h>, <time.h>; not needed to establish interface.
50217 (errno): Remove decl.
50218 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
50219 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
50220 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
50222 2004-11-28 Simon Josefsson <jas@extundo.com>
50224 * lib/base64.h, base64.c: New file.
50226 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
50228 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
50230 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
50232 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
50233 (Depends-on): Remove pathmax, same. Add mempcpy.
50234 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
50235 (Makefile.am): Append getcwd.h to lib_SOURCES.
50236 (Include): Add getcwd.h.
50237 (Maintainer): Change from Jim Meyering to "all, glibc",
50238 since getdate now uses intended-for-glibc code.
50239 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
50240 (Depends-on): Depend on getcwd. Do not depend on pathmax.
50242 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
50244 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
50245 HP's ANSI C compiler.
50246 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
50247 Declaring int functions causes warnings on some modern systems and
50248 shouldn't be needed to compile on ancient ones.
50249 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
50252 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
50253 with the following changes.
50254 (__set_errno): Parenthesize properly.
50255 Include <stdbool.h>.
50256 (MIN, MAX, MATCHING_INO): New macros.
50257 (__getcwd): Define with prototype, not K&R form.
50258 Use heuristics to allocate default buffer on stack if possible.
50259 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
50260 behavior, and to avoid the PATH_MAX limit when computing
50262 Use MATCHING_INO to compare inode number to file.
50263 Check for arithmetic overflow in size calculations.
50264 Fix bug in reallocation of dot array that caused getcwd to fail
50265 on directories nested deeper than 75.
50266 Be more careful about saving errno on error.
50267 Do not use realloc; use only free+malloc, as this is a bit
50268 more flexible and avoids a needless copy operation.
50269 Do not inspect st_dev and st_ino for symbolic links; POSIX
50270 doesn't specify the latter.
50271 Check for closedir errors.
50272 Avoid needless casts.
50273 Use "#ifdef weak_alias" around weak_alias, to be like other
50275 The following changes to getcwd.c have effect only when used in
50276 gnulib; they have no effect inside glibc proper.
50277 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
50278 as alloca isn't used.
50279 (alloca, __alloca): Likewise.
50280 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
50281 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
50282 unconditionally, as gnulib assumes C89 or better.
50283 Do not include <sys/param.h>.
50284 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
50285 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
50287 (NULL) [!defined NULL]: Remove; we assume C89 or better.
50288 Include <dirent.h> in a way that is compatible with modern Autoconf.
50289 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
50290 New macros, if not already defined.
50291 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
50292 Use "_LIBC", not "defined _LIBC", for consistency.
50293 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
50295 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
50296 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
50297 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
50298 credit only to Jim Meyering and adjust the copyright dates.
50299 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
50300 <stdlib.h>, <unistd.h>, "pathmax.h".
50301 Instead, include "xgetcwd.h" (first) and "getcwd.h".
50302 (INITIAL_BUFFER_SIZE): Remove.
50303 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
50305 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
50307 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
50308 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
50309 Use the _ONCE methods, for efficiency.
50310 Check for fcntl.h. In test program, include <errno.h>
50311 and <fcntl.h> if available. Remove old K&R cruft from
50312 test program. Check for common errors in GNU/Linux,
50313 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
50314 don't do AC_LIBOBJ, as that's getcwd.m4's job.
50315 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
50316 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
50318 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
50319 accommodate new getcwd.c.
50320 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
50321 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
50322 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
50323 that's all we need now.
50325 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50327 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
50328 argp-parse.c depends on getopt internals, that means we should
50329 always use our getopt, to be on the safe side.
50330 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
50331 order not to spoil the result of an eventual previous invocation
50332 of gl_GETOPT_SUBSTITUTE.
50334 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50336 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
50337 redefinition warnings. To avoid them, include the defines
50338 in `#if !defined __need_getopt ... #endif'. The only place
50339 where __getopt_argv_const is used is in definitions
50340 of getopt_long and getopt_long_only below, which are as well
50341 protected by `#ifndef __need_getopt'.
50342 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
50343 __need_getopt after including <stdio.h> and <unistd.h> These
50344 headers might have defined it.
50346 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
50348 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
50350 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
50352 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
50353 (futimens): New function, which uses futimes if available.
50354 (futimens, utimens): Support timespec==NULL, with same semantics
50355 as utime and utimens.
50356 * lib/utimens.h (futimens): New decl.
50358 2004-11-23 Jim Meyering <jim@meyering.net>
50360 * lib/getopt_.h: Remove trailing blanks.
50362 2004-11-23 Jim Meyering <jim@meyering.net>
50364 * lib/__fpending.c: Add comment.
50366 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
50368 * modules/canonicalize (Depends-on): Add xreadlink.
50369 Problem reported by James Youngman.
50371 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
50373 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
50375 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
50376 optopt): Use them instead of invoking ## directly; otherwise, the
50377 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
50379 2004-11-19 Bruno Haible <bruno@clisp.org>
50381 * lib/strtok_r.c: Move comments from here...
50382 * lib/strtok_r.h: ... to here.
50384 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
50386 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
50387 implementations that mishandle size_t overflow.
50389 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
50391 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
50392 might fail. Problem reported by Yoann Vandoorselaere.
50393 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
50394 implementations that mishandle size_t overflow.
50396 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
50398 * modules/canon-host (Depends-on): Add strdup.
50400 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
50402 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
50404 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
50406 * lib/canon-host.c: Include "strdup.h".
50407 (canon_host): Use getaddrinfo if available, so that IPv6 works.
50408 Use strdup instead of malloc/strcpy to duplicate strings.
50410 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
50411 (human_space_before_unit): New constant.
50412 * lib/human.c (human_readable): Support it.
50414 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
50415 (xgetcwd): Set errno correctly when failing.
50416 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
50417 the failure is actually due to a PATH_MAX problem.
50419 Further getopt changes to make it more likely that glibc will
50420 buy the changes back.
50421 * lib/getopt.c (POSIXLY_CORRECT): New constant.
50422 (getopt): Use it, so to preserve glibc semantic
50423 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
50424 when compiling for libc.
50425 * lib/getopt_.h (__getopt_argv_const): Bring it back.
50426 (getopt_long, getopt_long_only): Use it.
50428 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50429 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
50430 (getopt): Argv is now char * const *, as per standard.
50431 (_getopt_internal_r, _getopt_internal): Argv is now char **,
50432 not char *__getopt_argv_const *.
50433 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50434 _getopt_long_only_r): Likewise.
50435 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
50436 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50437 _getopt_long_r, _getopt_long_only_r): Likewise.
50438 * lib/getopt_.h (__getopt_argv_const): Remove.
50439 (getopt): Argv is now char * const *, as per standard.
50441 * lib/getdate.y (tORDINAL): New token.
50442 (day, relunit): Allow it for relative times.
50443 (relative_time_table): Use tORDINAL for ordinals.
50445 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
50447 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
50448 Document that "second" isn't allowed as an ordinal number.
50450 2004-11-16 Jim Meyering <jim@meyering.net>
50452 * modules/closeout (Depends-on): Add fpending.
50454 2004-11-15 Jim Meyering <jim@meyering.net>
50456 * lib/closeout.c: Include "__fpending.h" once again.
50457 Include <stdbool.h>.
50458 (close_stdout): Don't fail just because stdout was closed initially,
50459 since some programs don't write to stdout in the normal course of
50460 operation (other than --version and --help), and we don't want this
50461 function to make e.g. `touch file >&-' fail.
50462 But do fail if it was closed and someone has tried to write to it.
50463 E.g., `printf foo >&-' must fail.
50465 2004-11-13 Jim Meyering <jim@meyering.net>
50467 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
50469 2004-11-12 Simon Josefsson <jas@extundo.com>
50471 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
50472 small doc fix is still pending.
50474 2004-11-11 Simon Josefsson <jas@extundo.com>
50476 * modules/strtok_r: New file.
50478 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50481 2004-11-11 Simon Josefsson <jas@extundo.com>
50483 * m4/strtok_r.m4: New file.
50485 * m4/getopt.m4: Replace opterr.
50487 2004-11-11 Simon Josefsson <jas@extundo.com>
50489 * lib/strtok_r.h, strtok_r.c: New file.
50491 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
50493 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
50494 of replacing opterr, getopt, etc. This should handle the
50495 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
50497 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
50499 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
50500 we can stop lying to compilers about the constness of argv when we
50501 are compiled outside glibc.
50502 (getopt, getopt_long, getopt_long_only): Use it.
50503 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50504 _getopt_internal, getopt): Likewise.
50505 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50506 _getopt_long_only_r): Likewise.
50507 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50508 _getopt_long_r, _getopt_long_only_r): Likewise.
50510 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
50511 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
50512 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
50513 the other external symbols.
50514 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
50515 declaration, since the above renaming now works around collisions.
50517 2004-11-11 Jim Meyering <jim@meyering.net>
50519 * lib/linebreak.c: Remove trailing blanks.
50520 * lib/alloca_.h: Likewise.
50521 * lib/acosl.c: Likewise.
50522 * lib/euidaccess.c: Likewise.
50523 * lib/allocsa.h: Likewise.
50525 2004-11-10 Simon Josefsson <jas@extundo.com>
50527 * m4/getaddrinfo.m4: New file.
50529 2004-11-10 Simon Josefsson <jas@extundo.com>
50531 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
50533 2004-11-10 Simon Josefsson <jas@extundo.com>
50535 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50538 * modules/getaddrinfo: New file.
50540 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
50542 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
50544 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
50546 * lib/mktime.c (SHR): New macro, which is a portable
50547 substitute for >> that should work even on Crays.
50548 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
50549 Problem reported by Mark D. Baushke in
50550 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
50551 * lib/getdate.y (SHR): Likewise.
50553 * lib/strftime.c (SHR): Likewise.
50555 * lib/quotearg.c (struct quoting_options): Use unsigned int for
50556 quote_these_too, so that right shifts are well defined. All uses
50559 2004-11-10 Jim Meyering <jim@meyering.net>
50561 Ensure that no close failure goes unreported.
50562 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
50563 return early when it seems there's nothing to flush.
50564 Don't include __fpending.h.
50566 2004-11-10 Jim Meyering <jim@meyering.net>
50568 * modules/closeout (Depends-on): Remove fpending.
50570 2004-11-10 Jim Meyering <jim@meyering.net>
50572 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
50574 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
50576 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
50578 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
50579 and AC_REQUIRE when possible, to avoid duplicate checks.
50580 Check for <wchar.h>.
50582 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
50584 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
50586 2004-11-09 Bruno Haible <bruno@clisp.org>
50588 * m4/sockpfaf.m4: New file.
50590 2004-11-05 Bruno Haible <bruno@clisp.org>
50592 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
50593 Reported by Mark D. Baushke <mdb@cvshome.org>.
50595 2004-11-04 Bruno Haible <bruno@clisp.org>
50597 2004-09-11 Bruno Haible <bruno@clisp.org>
50598 * allocsa.valgrind: New file.
50599 2004-02-06 Bruno Haible <bruno@clisp.org>
50600 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
50601 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
50602 Reported by Christopher Seip <chris.seip@hp.com>.
50604 2004-11-04 Bruno Haible <bruno@clisp.org>
50606 * modules/allocsa (Files): Add lib/allocsa.valgrind.
50607 (Makefile.am): Distribute it.
50609 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
50611 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
50612 with errno == ERANGE if the buffer is too small.
50613 Problem reported by Mark D. Baushke.
50615 2004-11-03 Albert Chin <china@thewrittenword.com>
50616 Paul Eggert <eggert@cs.ucla.edu>
50618 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
50619 equivalent, substitute $ac_type for equivalent type rather than
50620 blindly using uint32_t *always* which won't work if uint32_t is not
50621 available. Define _UINT32_T to work around typedef of uint32_t if
50622 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
50625 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
50627 * m4/jm-macros.m4: Sync from coreutils.
50628 (gl_MACROS): Check for mbrlen, for pathchk.
50629 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
50631 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
50633 * lib/xreadlink.c (MAXSIZE): New macro.
50634 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
50635 size does not exceed MAXSIZE. Avoid cast.
50636 As suggested by Mark D. Baushke in
50637 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
50638 if readlink fails with buffer size just under MAXSIZE, try again
50641 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
50643 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
50645 2004-11-02 Derek R. Price <derek@ximbiot.com>
50646 and Paul Eggert <eggert@cs.ucla.edu>
50648 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
50649 (get_date): Overparenthesize to avoid GCC warning.
50651 2004-11-02 Bruno Haible <bruno@clisp.org>
50653 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
50656 2004-11-02 Bruno Haible <bruno@clisp.org>
50658 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
50659 function returns void.
50661 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
50663 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
50664 fflush_unlocked, flockfile, funlockfile, funlockfile,
50665 fputs_unlocked, putc_unlocked.
50667 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
50669 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50670 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
50673 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
50675 * modules/getdate (Files): Add doc/getdate.texi.
50676 (Depends-on): Add setenv, xalloc.
50678 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
50680 * lib/getdate.y: Add support for TZ="foo" within a date string.
50681 Fix some bugs near time_t boundaries. Reject dates with
50682 out-of-range components, e.g., "Sept 31".
50683 Include <stdlib.h>, "setenv.h", "xalloc.h".
50684 (ISDIGIT_LOCALE): Remove; unused.
50685 Note that the TZ and time functions used here are not reentrant.
50686 (mktime_ok, get_tz): New functions.
50687 (TZBUFSIZE): New constant.
50688 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
50689 This requires that we sometimes generate our own TZ="XXX..." setting.
50691 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
50693 * doc/getdate.texi: New file, from coreutils with modifications for
50694 the new TZ parsing.
50696 2004-10-27 Derek R. Price <derek@ximbiot.com>
50698 * lib/mktime.c (not_equal_tm): Remove redundant check.
50700 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
50702 * modules/regex (lib_SOURCES): Add regex.c.
50703 Reported by James Youngman in
50704 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
50706 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
50708 * lib/getdate.y: Use Bison 1.875 features, and some minor
50709 code cleanups. This change does not affect semantics.
50710 Don't include <stdlib.h>; no longer needed.
50711 Don't include unlocked-io.h; only the "#if TEST" code uses
50712 stdio, and performance isn't crucial there.
50713 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
50714 Bison 1.875 features as described below.
50715 All uses of "PC." replaced by "pc->".
50716 (YYSTYPE): Add a forward declaration.
50717 (yylex, yyerror): Use full prototypes in forward decls.
50718 Use "%pure-parser" rather than obsolescent "%pure_parser".
50719 Use %parse-param and %lex-param instead of obsolescent
50720 YYPARSE_PARAM and YYLEX_PARAM.
50721 (meridian_table, month_and_day_table, time_units_table,
50722 relative_time_table, time_zone_table, military_table,
50723 lookup_zone, lookup_word, get_date):
50724 Use NULL instead of 0 where appropriate.
50725 (to_hour): Avoid abort (), to avoid a dependency on
50727 (yyerror, yylex): Now accepts parser_control * arg.
50728 (main) [TEST]: Use '\0' rather than 0 for char.
50730 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
50732 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
50734 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
50736 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
50737 It's now the caller's responsibility to handle the case where
50738 !HAVE_GETPAGESIZE && !defined getpagesize.
50740 * lib/mktime.c (leapyear): Arg is long int, not int.
50742 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
50744 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
50746 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
50748 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
50749 missing. Problem reported by James Youngman.
50751 2004-10-16 Simon Josefsson <jas@extundo.com>
50753 * gnulib-tool: Fix comments. Fix parse problem.
50754 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
50756 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
50758 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
50759 implementation of getopt_long. Problem reported by Alexander Taler in:
50760 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
50762 2004-10-15 Bruno Haible <bruno@clisp.org>
50764 * gnulib-tool: Untabify. Initialize supplied_libname.
50765 (func_usage): More homogenous output.
50766 (func_modules_transitive_closure, func_modules_to_filelist,
50767 func_emit_lib_Makefile_am): New functions.
50768 (func_import): New function, extracted from big case statement. Use
50769 func_get_license, func_modules_transitive_closure,
50770 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
50771 opt_lgpl. Don't use test -a, as it's not portable.
50772 (func_create_testdir): Use func_modules_transitive_closure,
50773 func_modules_to_filelist, func_emit_lib_Makefile_am.
50775 2004-10-15 Bruno Haible <bruno@clisp.org>
50777 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
50779 2004-10-15 Bruno Haible <bruno@clisp.org>
50781 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
50782 the portions belonging to each module.
50783 Suggested by Derek Robert Price <derek@ximbiot.com>.
50785 2004-10-12 Simon Josefsson <jas@extundo.com>
50787 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50788 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
50791 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
50793 * modules/vsnprintf: New file.
50795 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
50797 * m4/vsnprintf.m4: New file.
50799 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
50801 * lib/vsnprintf.h: New file.
50802 * lib/vsnprintf.c: New file.
50804 2004-10-11 Bruno Haible <bruno@clisp.org>
50806 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
50809 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
50811 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
50813 2004-10-07 Bruno Haible <bruno@clisp.org>
50815 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
50816 fits into the provided buffer.
50818 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
50820 * lib/diacrit.c, diacrit.h: Add GPL notice.
50822 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
50824 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
50825 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
50826 This avoids a potential constant-folding bug.
50828 2004-10-05 Bruno Haible <bruno@clisp.org>
50830 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
50831 for the declaration of strsep.
50833 2004-10-05 Bruno Haible <bruno@clisp.org>
50835 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
50837 2004-10-04 Simon Josefsson <jas@extundo.com>
50839 * modules/memmem: New file.
50840 * tests/test-memmem.c: New file.
50841 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
50843 2004-10-04 Simon Josefsson <jas@extundo.com>
50845 * m4/memmem.m4: New file.
50847 2004-10-04 Simon Josefsson <jas@extundo.com>
50849 * lib/memmem.h: New file.
50850 * lib/memmem.c: New file, taken from glibc.
50852 2004-10-04 Simon Josefsson <jas@extundo.com>
50854 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
50855 '#ifdef USE_UNLOCKED_IO'.
50857 2004-10-04 Simon Josefsson <jas@extundo.com>
50859 * config/srclist.txt: Add memmem from glibc.
50861 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
50863 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
50865 * modules/argmatch, modules/argp, modules/closeout, modules/error,
50866 modules/exclude, modules/getdate, modules/getline,
50867 modules/getndelim2, modules/getpass, modules/getpass-gnu,
50868 modules/getusershell, modules/linebuffer, modules/md5,
50869 modules/mountlist, modules/posixtm, modules/readtokens,
50870 modules/readutmp, modules/regex, modules/sha1,
50871 modules/version-etc, modules/yesno:
50872 Remove dependency on unlocked-io.
50874 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
50876 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
50878 * m4/unlocked-io.m4: Add copyright notice.
50879 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
50881 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
50883 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
50884 * lib/xmalloc.c (xmemdup): Likewise.
50885 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
50886 XFREE): Remove these long-obsolescent macros.
50887 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
50888 * lib/xstrdup.c: Remove.
50890 * lib/regex.c (re_comp): Cast gettext return value to char *,
50891 Problem reported by Martin Neitzel via Mark D. Baushke.
50893 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
50895 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
50896 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
50897 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
50898 regex.c, sha1.c, version-etc.c, yesno.c:
50899 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
50900 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
50901 the includer's responsibility.
50903 Sync from coreutils.
50905 * lib/modechange.c (mode_compile): Don't decrement a pointer that
50906 points to the start of a string, as the C Standard says the
50907 resulting behavior is undefined.
50909 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
50910 simple -> simple_backups, numbered_existing ->
50911 numbered_existing_backups, numbered -> numbered_backups
50912 to avoid shadowing problems. All uses changed.
50913 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
50914 * lib/backupfile.c (check_extension, numbered_backup):
50915 Rename locals to avoid shadowing 'basename'.
50916 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
50919 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
50920 * lib/.cvsignore: Add getopt.h.
50922 2004-10-04 Bruno Haible <bruno@clisp.org>
50924 * modules/README: New file.
50925 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
50928 2004-10-02 Jim Meyering <jim@meyering.net>
50930 * lib/dirfd.h, getpagesize.h: Add copyright notice.
50932 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
50934 * modules/strsep: New file.
50936 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
50938 * m4/strsep.m4: New file.
50940 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
50942 * lib/strsep.h: New file.
50943 * lib/strsep.c: New file.
50945 2004-10-01 Simon Josefsson <jas@extundo.com>
50947 * lib/snprintf.c (snprintf): Handle size==0.
50949 2004-10-01 Simon Josefsson <jas@extundo.com>
50950 Bruno Haible <bruno@clisp.org>
50952 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
50953 (snprintf): Declare 'args'.
50955 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
50957 * lib/snprintf.c: Remove comments as to why each header is needed.
50959 2004-10-01 Bruno Haible <bruno@clisp.org>
50961 * MODULES.html.sh: Add strsep.
50963 2004-09-30 Simon Josefsson <jas@extundo.com>
50965 * modules/snprintf: New file.
50967 2004-09-30 Simon Josefsson <jas@extundo.com>
50969 * m4/snprintf.m4: New file.
50971 2004-09-30 Simon Josefsson <jas@extundo.com>
50973 * lib/snprintf.h, lib/snprintf.c: New files.
50975 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50977 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
50978 (hol_entry_help): Never translate an empty string.
50979 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
50980 * lib/argp.h (OPTION_NO_TRANS): New option.
50982 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
50984 * modules/argp (Maintainer): Replace Simon Josefsson
50985 by Sergey Poznyakoff.
50987 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
50989 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
50990 changes merged back into glibc.
50992 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
50994 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
50996 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
50998 * lib/xvasprintf.c: Include xalloc.h.
50999 (xvasprintf): Use xalloc_die, not xmalloc_die.
51001 2004-09-29 Bruno Haible <bruno@clisp.org>
51003 * modules/alloca-opt: New file, derived from modules/alloca.
51004 * modules/allocsa: Depend on alloca-opt instead of alloca.
51005 * modules/setenv: Likewise.
51006 * modules/vasnprintf: Likewise.
51007 * MODULES.html.sh: Add alloca-opt.
51009 2004-09-28 Simon Josefsson <jas@extundo.com>
51011 * gnulib-tool: New parameter --lgpl, to asseert that modules are
51012 LGPL, and to replace license template from GPL to LGPL.
51014 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
51016 * modules/dummy: Change license to LGPL.
51018 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
51020 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
51022 2004-09-24 Simon Josefsson <jas@extundo.com>
51024 * modules/minmax (License): Change from GPL to LGPL.
51026 2004-09-23 Simon Josefsson <jas@extundo.com>
51028 * gnulib-tool (--import): Typo.
51030 2004-09-23 Simon Josefsson <jas@extundo.com>
51032 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
51034 2004-09-22 Bruno Haible <bruno@clisp.org>
51036 * modules/*: Add 'License' field.
51037 * gnulib-tool: Accept --extract-license option.
51038 (func_get_license): New function.
51040 2004-09-21 Bruno Haible <bruno@clisp.org>
51042 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
51043 Reported by Simon Josefsson.
51045 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
51047 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
51048 gl_AC_TYPE_LONG_LONG.
51050 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
51052 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
51054 2004-09-18 Simon Josefsson <jas@extundo.com>
51055 and Paul Eggert <eggert@cs.ucla.edu>
51057 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
51058 calls with autoreconf. Define GL_LIB.
51060 2004-09-14 Karl Berry <karl@gnu.org>
51062 * config/srclist.txt: unsync setenv.c, sigh.
51064 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
51066 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
51067 Problem reported by Bruno Haible in:
51068 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
51070 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
51072 * config/srclist.txt: Comment out argp-pvh.c.
51074 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
51076 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
51077 in case some system header has #define'd it. Problem reported by
51078 Soeren D. Schulze in
51079 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
51081 2004-09-09 Karl Berry <karl@gnu.org>
51083 * regex.[ch]: delete from the root. These were supposed to be
51084 synced with emacs cvs, but this has not happened for about
51085 a year, and anyway nothing else uses emacs regex.[ch].
51086 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
51087 lib/regex[.ch] is untouched.
51089 2004-09-09 Bruno Haible <bruno@clisp.org>
51091 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
51093 2004-09-09 Bruno Haible <bruno@clisp.org>
51095 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
51097 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
51099 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
51101 * modules/xvasprintf: New file.
51102 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
51104 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
51106 * lib/xvasprintf.h: New file.
51107 * lib/xvasprintf.c: New file.
51108 * lib/xasprintf.c: New file.
51110 2004-09-08 Bruno Haible <bruno@clisp.org>
51112 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
51114 2004-09-08 Bruno Haible <bruno@clisp.org>
51116 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
51117 length is > INT_MAX.
51118 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
51121 2004-09-08 Bruno Haible <bruno@clisp.org>
51123 * lib/stdint_.h: New file, taken from GNU clisp.
51125 2004-09-08 Bruno Haible <bruno@clisp.org>
51126 Oskar Liljeblad <oskar@osk.mine.nu>
51128 * modules/stdint: New file.
51129 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
51131 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
51133 Import from coreutils.
51134 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
51135 strings on unbounded length. alloca's performance benefits aren't
51136 that important here.
51137 (V_STRDUP): Remove.
51138 (parse_with_separator): New function, with most of the internals
51139 of the old parse_user_spec. Allow user to omit both user and group,
51140 for compatibility with FreeBSD.
51141 Clone only the user name, not the entire spec.
51142 Do not set *uid, *gid unless entirely successful.
51143 Avoid memory leak in some failing cases.
51144 Fix regression for USER.GROUP reported by Dmitry V. Levin in
51145 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
51146 (parse_user_spec): Rewrite to use parse_with_separator.
51148 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
51150 * modules/userspec: Don't depend on alloca.
51152 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
51154 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
51156 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
51158 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
51159 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
51160 utimecmp, utimens, xnanosleep. Rename sha to sha1.
51162 2004-08-16 Simon Josefsson <jas@extundo.com>
51164 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
51165 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
51166 Add --dry-run for --import.
51167 Let user provided command line parameters override configure.ac
51170 2004-08-12 Simon Josefsson <jas@extundo.com>
51172 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
51173 as discussed with Paul Eggert in threads rooted at
51174 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
51176 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
51177 Before, the test was empty, and relied on ELIDE_CODE in source
51179 (gl_PREREQ_GETOPT): New macro.
51180 (gl_GETOPT): Use them.
51182 2004-08-12 Simon Josefsson <jas@extundo.com>
51184 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
51185 * lib/getopt_.h: Renamed from getopt.h.
51187 2004-08-12 Simon Josefsson <jas@extundo.com>
51189 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
51190 Change default library name from libfoo to libgnu.
51191 Now, if you have a configure.ac that says:
51194 gl_MODULES(error getopt etcetera)
51196 you can import all you need by running:
51197 ../gnulib/gnulib-tool --import
51199 * modules/getopt (Files): Rename getopt.h to getopt_.h.
51200 (Makefile.am): Rewrite, use logic from argz.
51201 (Include): Use <getopt.h> instead of "getopt.h".
51203 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
51205 * modules/argp (Files): Add m4/unlocked-io.m4.
51206 (Depends-on): Add extensions.
51208 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
51210 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
51211 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
51212 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
51213 Check for program_invocation_name, program_invocation_short_name,
51214 flockfile, funlockfile, features.h, _getopt_long_only_r.
51216 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
51218 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
51219 its complicated substitute.
51220 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
51221 and program_invocation_name.
51222 (__argp_basename) [!_LIBC]: Remove; the only use was
51223 replaced by its body.
51224 (__argp_short_program_name): Change condition from
51225 !defined __argp_short_program_name to
51226 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
51227 to match argp-namefrob.h.
51228 (__argp_failure): Don't assume strerror_r returns char *.
51229 * lib/argp-parse.c (N_): Define unconditionally.
51230 (argp_default_options): Fill out initializers with 0 to avoid
51233 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
51235 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
51238 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
51240 Merge from coreutils.
51242 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
51244 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
51245 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
51247 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
51249 Merge from coreutils.
51251 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
51252 wmemchr or wmemcpy. Problem reported by Robert Dahlem
51253 for Reliant Unix 5.43.
51255 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
51256 (union fooround): Use uintmax_t, not long int.
51257 The rest is a merge from libc:
51258 [defined _LIBC]: Include <shlib-compat.h>.
51259 (_obstack) [defined _LIBC]: Remove after 2.3.4.
51261 * lib/settime.c (settime): Recode to avoid warning with
51264 * lib/strverscmp.c: Convert to UTF-8.
51266 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
51268 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
51271 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
51273 * modules/xalloc-die: New file.
51274 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
51276 * modules/md5 (Files): Add m4/uint32_t.m4.
51277 * modules/sha1: Renamed from modules/sha.
51279 Rename lib/sha.h to lib/sha1.h.
51280 Rename lib/sha.c to lib/sha1.c.
51281 Rename m4/sha.m4 to m4/sha1.m4.
51282 (lib_SOURCES): Likewise.
51283 (configure.ac): Rename gl_SHA to gl_SHA1.
51284 (Include): sha.h -> sha1.h.
51286 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
51288 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
51289 * m4/sha1.m4: Renamed from sha.m4.
51290 (gl_SHA1): Renamed from gl_SHA. All uses changed.
51292 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
51294 * lib/obstack.h (obstack_empty_p):
51295 Don't assume that chunk->contents is suitably aligned.
51296 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
51297 Likewise. Problem reported by Benno in
51298 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
51300 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
51301 readable. This could be improved further but it'd take some work.
51303 2004-08-08 Simon Josefsson <jas@extundo.com>
51305 * modules/xgethostname (Depends-on): Remove exit and error (not
51308 * modules/getpass-gnu: Add getpass.h.
51309 (Depends-on): Add stdbool.
51310 * modules/getpass: Add getpass.h.
51312 2004-08-08 Simon Josefsson <jas@extundo.com>
51314 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
51315 Check getpass declaration.
51317 2004-08-08 Simon Josefsson <jas@extundo.com>
51319 * lib/xgethostname.c: Don't include error.h (not used).
51321 * lib/getpass.h: Add.
51322 * lib/getpass.c: Include getpass.h first.
51324 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
51326 * lib/xalloc-die.c: New file.
51327 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
51329 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
51330 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
51332 (_, N_, xalloc_die): Move to xalloc-die.c.
51333 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
51334 so that we needn't mess with xalloc_msg_memory_exhausted.
51336 * lib/sha1.h: Renamed from sha.h.
51337 (SHA1_H): Renamed from _SHA_H.
51338 (sha1_ctx): Renamed from sha_ctx.
51339 (sha1_init_ctx): Renamed from sha_init_ctx.
51340 (sha1_process_block): Renamed from sha_process_block.
51341 (sha1_process_bytes): Renamed from sha_process_bytes.
51342 (sha1_finish_ctx): Renamed from sha_finish_ctx.
51343 (sha1_read_ctx): Renamed from sha_read_ctx.
51344 (sha1_stream): Renamed from sha_stream.
51345 (sha1_buffer): Renamed from sha_buffer.
51346 * lib/sha1.c: Likewise; renamed from sha.c.
51347 Do not include <sys/types.h>.
51348 Include <stddef.h> rather than <stdlib.h>.
51350 2004-08-08 Bruno Haible <bruno@clisp.org>
51352 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
51353 FILESYSTEM_PREFIX_LEN.
51354 * lib/progreloc.c: Likewise.
51355 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
51357 2004-08-06 Simon Josefsson <jas@extundo.com>
51359 * modules/progname (Depends-on): Don't depend on stdbool.
51361 2004-08-06 Simon Josefsson <jas@extundo.com>
51363 * modules/getsubopt: New file.
51364 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51367 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
51369 More merge from coreutils.
51371 * m4/utimens.m4, m4/utimecmp.m4: New files.
51372 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
51373 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
51374 prereq.m4, sha.m4: Import changes from coreutils.
51376 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
51378 More merge from coreutils.
51379 * modules/raise, modules/readtokens0, modules/utimens:
51380 * modules/utimecmp, module/xnanosleep: New files.
51381 * modules/strftime: Add lib/strftime.h.
51382 Change include from <time.h> to "strftime.h".
51383 * modules/yesno: Add lib/yesno.h.
51384 * modules/backupfile: Remove lib/addext.c.
51385 * modules/euidaccess: Add stat-macros.h.
51386 * modules/canonicalize, modules/euidaccess,
51387 modules/filemode, modules/lchown, modules/makepath,
51388 modules/rmdir, modules/stat: Likewise.
51390 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
51393 * lib/argp-help.c (make_hol, hol_append): Don't assume that
51394 SIZE_MAX is a valid preprocessor constant.
51395 (__argp_basename): Change from "#ifndef _LIBC"
51396 to "#ifndef __argp_short_program_name", so that
51397 we don't compile these functions for tar.
51399 More merges from coreutils.
51400 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
51401 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
51402 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
51403 * lib/addext.c: Remove; no longer needed.
51404 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
51405 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
51406 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
51407 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
51408 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
51409 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
51410 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
51411 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
51412 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
51413 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51414 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
51415 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
51416 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
51417 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
51418 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
51419 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
51420 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
51421 Import changes from coreutils.
51423 2004-08-05 Simon Josefsson <jas@extundo.com>
51425 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
51427 2004-08-05 Simon Josefsson <jas@extundo.com>
51429 * m4/getsubopt.m4: New file.
51431 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
51433 Merge from coreutils.
51435 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
51436 * m4/getcwd-path-max.m4: New files.
51438 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
51439 FILESYSTEM_PREFIX_LEN ->
51440 FILE_SYSTEM_PREFIX_LEN.
51441 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
51442 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
51443 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
51444 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
51446 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
51447 prerequisite modules now handle the DOS stuff.
51448 Don't check for unistd.h.
51450 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
51452 Merge from coreutils.
51454 * lib/.gdb-history: Remove; this doesn't belong here.
51456 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
51457 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
51458 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
51459 * lib/getcwd.c: New files.
51461 * lib/dirname.h: Include <stdbool.h>.
51462 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
51463 for consistency with POSIX terminology. All uses changed.
51464 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
51465 (strip_trailing_slashes): Use bool for booleans.
51466 * lib/stripslash.c (strip_trailing_slashes): Likewise.
51468 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
51469 sometimes returns a positive errno value even when it succeeds.
51470 (print_errno_message) [!LIBC]: Fall back on strerror if
51471 __strerror_r fails.
51473 * lib/path-concat.c (mempcpy): Don't define if a system header defines
51474 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
51475 (longest_relative_suffix): New function.
51476 (path_concat): Use it. Assume first argument is not NULL.
51477 Port to DOS. Omit redundant separators.
51478 Report an error instead of returning NULL.
51479 Use mempcpy instead of memcpy.
51480 (xpath_concat): Remove: not declared or used.
51482 * lib/same.h: Include <stdbool.h>
51483 (same_name): Return bool, not int.
51484 * lib/same.c (same_name): Likewise.
51485 (errno): Don't declare; we assume C89 or better now.
51487 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
51488 if not already defined.
51490 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
51491 * lib/dup-safer.c (errno): Likewise.
51493 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
51495 Merge from coreutils.
51496 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
51497 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
51498 * modules/path-concat: Don't depend on strdup.
51500 2004-08-03 Simon Josefsson <jas@extundo.com>
51502 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
51503 * lib/progname.h: Don't include stdbool.h.
51505 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
51507 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
51508 * MODULES.html.sh (func_all_modules): Remove fatal.
51510 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
51512 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
51514 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
51516 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
51519 2004-08-02 Simon Josefsson <jas@extundo.com>
51521 * lib/getsubopt.h: New file, with comments from Bruno Haible.
51522 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
51523 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
51525 2004-08-01 Simon Josefsson <jas@extundo.com>
51527 * lib/xgetdomainname.c: Include stdlib.h, for free().
51529 2004-07-19 Bruno Haible <bruno@clisp.org>
51531 * MODULES.html.sh (func_all_modules): Add dummy.
51533 2004-07-16 Simon Josefsson <jas@extundo.com>
51535 * modules/dummy: New file.
51537 2004-07-16 Simon Josefsson <jas@extundo.com>
51539 * lib/dummy.c: New file.
51541 2004-07-16 Bruno Haible <bruno@clisp.org>
51543 * lib/backupfile.h: Add extern "C" for C++.
51544 * lib/closeout.h: Likewise.
51545 * lib/copy-file.h: Likewise.
51546 * lib/findprog.h: Likewise.
51547 * lib/full-write.h: Likewise.
51548 * lib/pathname.h: Likewise.
51549 * lib/progname.h: Likewise.
51550 * lib/stpcpy.h: Likewise.
51551 * lib/stpncpy.h: Likewise.
51552 * lib/strcase.h: Likewise.
51553 * lib/strstr.h: Likewise.
51554 * lib/xalloc.h: Likewise.
51556 * lib/mbswidth.h: Add extern "C" for C++.
51557 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
51559 2004-07-13 Robert Millan <robertmh@gnu.org>
51561 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
51563 2004-07-09 Simon Josefsson <jas@extundo.com>
51565 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
51566 failed without this.)
51568 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
51570 * modules/chown (Files): Add lib/fchown-stub.c, since
51571 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
51573 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
51575 * lib/fchown-stub.c: New file.
51577 2004-06-24 Jim Meyering <jim@meyering.net>
51579 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
51581 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
51583 * modules/argz: Omit "#include".
51585 * MODULES.html.sh (func_all_modules): Add calloc, to match
51586 2004-06-01 addition of calloc module.
51588 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
51590 * m4/argz.m4: New file, which is autoupdated from libtool.
51592 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
51594 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
51597 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
51599 * config/srclist-update: Don't insist on "USA." before the
51600 close-comment, as libtool omits the period and puts the */ on a
51602 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
51603 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
51605 2004-06-22 Gary V. Vaughan <gary@gnu.org>
51607 * modules/argz: New file.
51608 * MODULES.html.sh (func_all_modules): Add argz.
51610 2004-06-12 Jim Meyering <jim@meyering.net>
51611 and Paul Eggert <eggert@cs.ucla.edu>
51613 * modules/hash (Files): Add lib/xalloc.h.
51614 * modules/pipe (Depends-on): Add wait-process.
51615 * modules/stat (Depends-on): Add xalloc.
51616 * modules/userspec (Files): Add lib/userspec.h.
51619 Upgrade from gettext-0.13.
51620 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
51621 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
51622 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
51624 2004-06-10 Jim Meyering <jim@meyering.net>
51626 * lib/calloc.c: New file.
51628 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
51630 * lib/getdate.y (yylex): Allow space between sign and number.
51631 Problem reported by Dan Jacobson.
51633 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
51635 Merge from coreutils CVS.
51637 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
51638 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
51639 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
51640 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
51641 xstrtol.m4: Fix copyright date and/or serial number.
51643 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
51644 See if we need an fchown replacement.
51645 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
51646 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
51647 and use the replacement function if we detect either defect.
51649 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
51652 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
51653 and Jim Meyering <jim@meyering.net>
51655 Merge from coreutils CVS.
51657 * lib/stat-macros.h: New file, with contents from file-type.h
51658 and coreutils' system.h.
51659 * lib/file-type.c: Include "stat-macros.h".
51660 * lib/file-type.h (file_type): Move all macro definitions to new file,
51663 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
51664 Wrap old code with this conditional.
51665 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
51666 function that does not dereference symlinks.
51667 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
51669 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
51670 dependency problems.
51671 (xreadlink): Accept new arg SIZE, for efficiency.
51672 All decls and uses changed.
51673 * lib/xreadlink.h: Include <stddef.h>, for size_t.
51675 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
51676 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
51678 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
51681 2004-06-01 Jim Meyering <jim@meyering.net>
51683 * m4/calloc.m4: New file.
51685 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
51687 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
51688 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
51689 Also, fix a typo in a diagnostic.
51691 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
51693 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
51694 or AC_FUNC_REALLOC.
51696 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
51698 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
51699 macros to be defined.
51700 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
51701 the allocator returns NULL because the requested size is zero.
51703 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
51705 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
51706 var. Add comment explaining why libc still defines it. This
51707 merges the following patch from glibc:
51708 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
51710 2004-05-20 Andreas Schwab <schwab@suse.de>
51712 * m4/free.m4: Replace free if it not known to work, not the other
51715 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
51717 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
51718 present in glibc since revision 1.1 of this file.
51719 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
51720 obstack_alignment_mask, obstack_alloc, obstack_base,
51721 obstack_blank, obstack_blank_fast, obstack_chunk_size,
51722 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
51723 obstack_grow0, obstack_init, obstack_int_grow,
51724 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
51725 obstack_next_free, obstack_object_size, obstack_ptr_grow,
51726 obstack_ptr_grow_fast, obstack_room): Remove declarations of
51727 nonexistent functions.
51729 2004-05-18 Karl Berry <karl@gnu.org>
51731 * config/srclist.txt: break link for vasnprintf.c.
51733 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
51735 Port obstack to the AS/400, where pointers are 16 bytes wide and
51736 you cannot cast an integer to a valid pointer. This patch is
51737 currently waiting to be integrated into glibc; see
51738 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
51740 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
51741 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
51742 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
51743 (struct obstack): temp member is now a union of a pointer and
51744 an integer, instead of an integer. All integer uses changed.
51745 This does not affect the physical layout of struct obstack,
51746 except on hosts (like the AS/400) where the size or alignment of
51747 void * is greater than that of ptrdiff_t.
51748 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
51749 __STDC__)]: Store temporary in pointer member of union, not
51751 * lib/obstack.c: Include <stddef.h>, for offsetof.
51752 (struct fooalign): Remove; it doesn't need a name.
51753 (union fooround): Change double to long double, and add void *.
51754 (DEFAULT_ALIGNMENT): Use offsetof to compute.
51755 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
51756 not a macro. Hence the values are always int; so remove all
51757 casts-to-int in uses.
51759 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
51761 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
51762 we can get this patch merged into glibc.
51764 2004-05-17 Derek R. Price <derek@ximbiot.com>
51765 Paul Eggert <eggert@cs.ucla.edu>
51767 * m4/argp: Depend on alloca.
51769 2004-05-17 Derek R. Price <derek@ximbiot.com>
51770 Paul Eggert <eggert@cs.ucla.edu>
51772 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
51775 2004-05-17 Bruno Haible <bruno@clisp.org>
51777 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
51778 precision that consists of a '.' followed by an empty digit string.
51779 Patch by Tor Lillqvist <tml@iki.fi>.
51781 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
51783 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
51784 for backward compatibility with older code. We need our own
51785 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
51786 it under some other name, and our alloca.h will define it.
51788 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
51789 Derek Price <derek@ximbiot.com>
51791 * lib/alloca.c: Include <alloca.h>, to get our interface.
51792 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
51793 include <alloca.h> first. Use C89 prototype for alloca; this
51794 requires including <stddef.h> for size_t. Use extern "C" if C++.
51795 Use #elif for simplicity, since we can assume C89 now.
51796 Don't try to source the system alloca.h since it will not be found
51797 and to prevent recursively including its replacement.
51798 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
51799 * lib/regex.c: Likewise.
51801 2004-05-16 Derek Price <derek@ximbiot.com>
51802 Paul Eggert <eggert@cs.ucla.edu>
51804 getline cleanup. This changes the getndelim2 API: both order of
51805 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
51808 * lib/getline.c: Don't include stddef.h or stdio.h, since our
51809 interface does that.
51810 (getline): Always use getdelim, so that we don't have two
51811 copies of this code.
51812 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
51814 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
51815 (GETNDELIM2_MAXIMUM): New macro.
51816 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
51817 instead of the old practice of delim2==0. All callers changed.
51818 Return -1 on overflow, instead of returning junk.
51819 Do not set *linesize unless allocation succeeds.
51820 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
51821 that we include sys/types.h.
51822 * lib/getnline.h: Likewise.
51823 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
51824 (getndelim2): Reorder arguments.
51825 * lib/getnline.c (getnline, getndelim):
51826 Don't discard the NMAX argument.
51827 (getnline): Invoke getndelim, to avoid code duplication.
51828 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
51829 of (size_t) -1 by callers of the getnline family.
51831 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
51833 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
51834 Check for gettimeofday.
51835 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
51836 Check for settimeofday, stime.
51838 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
51840 * lib/nanosleep.c (suspended): Change its type from int to
51841 sig_atomic_t volatile.
51842 (first_call): Make it private to rpl_nanosleep, and have it
51843 be zero initially as that's a bit faster.
51844 (my_usleep): Round up fractional times instead of truncating them,
51845 as this is the usual meaning for 'sleep'.
51847 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
51849 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
51850 (ENOSYS): Define if not defined.
51851 (settime): Fall back on stime if it exists and settimeofday fails.
51852 But don't bother with fallbacks if a method fails with errno == EPERM.
51854 2004-05-11 Jim Meyering <jim@meyering.net>
51856 Prior to this change, the save_cwd caller required read access to the
51857 current directory on most systems (ones with the fchdir function).
51859 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
51860 fails, try write-only, and finally, resort to using xgetcwd.
51862 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
51864 * lib/obstack.c, obstack.h: Import changes from libc.
51866 2004-04-28 Bruno Haible <bruno@clisp.org>
51868 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
51869 also implicitly appends .exe to executables.
51870 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
51871 accepts Windows pathnames.
51872 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51873 Treat Cygwin like Windows, since it now accepts Windows pathnames.
51874 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51875 Treat Cygwin like Windows, since it now accepts Windows pathnames.
51876 Reported by Derek Robert Price <derek@ximbiot.com>.
51878 2004-04-21 Karl Berry <karl@gnu.org>
51880 * config/srclist.txt (localcharset.c): break sync.
51882 2004-04-20 Paul Eggert <eggert@twinsun.com>
51884 * m4/host-os.m4: Add a copyright notice.
51886 2004-04-20 Jim Meyering <jim@meyering.net>
51888 Change UTILS_ to gl_ in AC_DEFINE'd names.
51889 Change utils_- and jm_-prefixed variables, too.
51890 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
51891 UTILS_FUNC_MKDIR_TRAILING_SLASH.
51892 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
51894 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
51895 Don't emit trailing blanks.
51896 Also rename jm_-prefixed variables to have gl_ prefix.
51898 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
51899 Also rename jm_-prefixed variables to have gl_ prefix.
51901 * m4/jm-macros.m4: Reflect the renamings.
51902 * m4/prereq.m4: Likewise.
51904 2004-04-20 Jim Meyering <jim@meyering.net>
51906 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
51909 2004-04-20 Jim Meyering <jim@meyering.net>
51910 Bruno Haible <bruno@clisp.org>
51912 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
51913 memory when realloc fails.
51915 2004-04-19 Jim Meyering <jim@meyering.net>
51917 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
51918 now that readutmp.c may call `free (0)'.
51920 2004-04-19 Bruno Haible <bruno@clisp.org>
51922 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
51923 * m4/inttypes_h.m4: Likewise.
51924 * m4/stdint_h.m4: Likewise.
51925 * m4/intmax_t.m4: Likewise.
51926 * m4/uintmax_t.m4: Likewise.
51928 2004-04-18 Jim Meyering <jim@meyering.net>
51930 * m4/prereq.m4: Don't forbid jm_ prefix.
51932 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
51933 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
51934 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
51935 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
51936 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
51937 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
51938 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
51939 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
51940 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
51941 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
51942 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
51943 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
51944 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
51945 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
51946 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
51947 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
51948 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
51949 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
51950 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
51952 2004-04-18 Jim Meyering <jim@meyering.net>
51954 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
51955 failure, don't leak memory and do call END_UTMP_ENT.
51957 2004-04-16 Jim Meyering <jim@meyering.net>
51959 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
51960 coreutils' stat program.
51961 (gl_PREREQ): Don't require jm_PREREQ_STAT.
51963 2004-04-11 Paul Eggert <eggert@twinsun.com>
51965 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
51967 (CHAR_BIT): Remove, since we assume C89.
51968 Include <stdint.h> if available, as per current Autoconf CVS advice.
51970 2004-03-31 Jim Meyering <jim@meyering.net>
51972 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
51973 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
51974 * m4/xalloc.m4: Likewise.
51976 2004-03-30 Paul Eggert <eggert@twinsun.com>
51978 Merge from coreutils.
51980 * m4/inttostr.m4: New file.
51981 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
51982 Require AM_STDBOOL_H and gl_TIMESPEC instead.
51983 Require gl_CLOCK_TIME.
51984 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
51986 2004-03-30 Paul Eggert <eggert@twinsun.com>
51988 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
51989 not bool, to be more consistent with Unix conventions.
51990 Suggested by Bruno Haible.
51992 Merge from coreutils.
51994 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
51995 * lib/umaxtostr.c: New files.
51997 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
51998 the usual <time.h> dance.
51999 (get_date): Change signature to support fractional time stamps.
52000 All callers changed.
52001 * lib/getdate.y: Include "getdate.h" first, as we can now
52002 assume C89 and don't need to worry about 'const'.
52003 Similarly, include "unlocked-io.h" near start, not in middle.
52004 Include <limits.h>.
52005 (textint.value): Use long int rather than int.
52006 (textint.digits): Use size_t rather than int.
52007 (BILLION, LOG10_BILLION): New constants.
52008 (parser_control): New member rel_ns. Members day_ordinal,
52009 time_zone, month, day, hour, minutes, rel_year, rel_month,
52010 rel_day, rel_hour, rel_minutes, rel_seconds
52011 are now long int, not int. Member seconds is now struct timespec,
52012 not int. New member timespec_seen. Members dates_seen, days_seen,
52013 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
52015 (%union.intval): Now long int, not int.
52016 New member timespec.
52017 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
52018 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
52019 (spec): Now is a timespec or an item list.
52020 (timespec, items): New nonterminals.
52021 (time, rel, relunit, number, get_date):
52022 Add support for fractional seconds.
52023 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
52024 (gmtime, localtime, mktime): Remove decls; not needed with C89.
52025 (to_hour): First arg is now long int, not int.
52026 (to_year): Returns long int, not int.
52027 Don't treat year -70 like 70.
52028 (tm_diff): Returns long int, not int.
52029 (lookup_word): Use bool instead of int when appropriate.
52030 (yylex): Use size_t for count, not int.
52031 Detect overflow when parsing large integer constants.
52032 Add support for fractions.
52033 (get_date): Make pointers 'const' if possible.
52034 Use more-portable code to detect integer overflow.
52035 (main) [TEST]: Adjust to above changes. Test for localtime failure.
52036 Don't use ctime; it's not reliable if the year has >4 digits.
52038 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
52039 This is for compatibility with BSD.
52041 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
52042 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
52043 From coreutils' system.h.
52045 * lib/userspec.c: Don't include "posixver.h".
52046 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
52047 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
52048 compatible extension. Simplify code by removing a boolean int
52049 that was always nonzero if a string was nonnull.
52051 2004-03-30 Jim Meyering <jim@meyering.net>
52053 Merge from coreutils.
52055 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
52056 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
52057 on some systems one must include <grp.h> before it.
52058 Reported by Christian Krackowizer.
52060 2004-03-30 Jim Meyering <jim@meyering.net>
52062 Merge from coreutils.
52064 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
52066 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
52067 an empty input stream.
52069 * lib/readtokens.c: Include <stdbool.h>.
52070 (readtoken): Use `size_t' rather than int/long.
52071 All callers adjusted.
52072 Use `bool' rather than `int' where appropriate.
52073 Use memset rather than an explicit loop.
52074 Use x2nrealloc rather than xrealloc.
52075 Allow the use of `\0' as a delimiter.
52076 (readtokens): Likewise.
52077 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
52079 2004-03-30 Jim Meyering <jim@meyering.net>
52081 * m4/realloc.m4: Remove file, since now it does no more than
52082 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
52083 the `configure.ac' section of module/realloc.
52084 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
52086 2004-03-30 Bruno Haible <bruno@clisp.org>
52088 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
52091 2004-03-29 Paul Eggert <eggert@twinsun.com>
52093 Merge changes to getloadavg.c from coreutils and Emacs.
52095 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
52096 Define to an expression, not to the empty string.
52097 Include cloexec.h and xalloc.h.
52098 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
52099 Use set_cloexec_flag rather than rolling our own.
52100 * lib/cloexec.c, lib/cloexec.h: New files.
52102 2004-03-29 Paul Eggert <eggert@twinsun.com>
52104 * m4/cloexec.m4: New file.
52106 2004-03-18 Paul Eggert <eggert@twinsun.com>
52108 * lib/getopt.h: Sync with libc CVS.
52110 2004-03-18 Paul Eggert <eggert@twinsun.com>
52111 Bruno Haible <bruno@clisp.org>
52113 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
52116 2004-03-18 Paul Eggert <eggert@twinsun.com>
52117 Bruno Haible <bruno@clisp.org>
52119 * lib/mbswidth.h: Include <wchar.h> only if
52120 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
52122 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
52124 2004-03-09 Paul Eggert <eggert@twinsun.com>
52126 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
52127 Sync with libc CVS.
52128 * lib/getopt_int.h: New file, also synced from libc.
52130 2004-03-09 Paul Eggert <eggert@twinsun.com>
52132 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
52133 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
52134 Bring back getopt.c, getopt.h, getopt1.c.
52136 2004-03-07 Paul Eggert <eggert@twinsun.com>
52138 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
52139 All uses changed. Check for sa_sigaction member; this fixes
52140 a bug first reported by Jason Andrade in
52141 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52143 2004-03-07 Paul Eggert <eggert@twinsun.com>
52145 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
52146 '#if' expressions. Unlike the code it replaces, it does not
52147 depend on (defined _SC_PAGESIZE). However, it does depend on
52148 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
52149 first reported by Jason Andrade in
52150 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52152 2004-02-25 Simon Josefsson <jas@extundo.com>
52154 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
52156 2004-02-25 Simon Josefsson <jas@extundo.com>
52158 * lib/strdup.h: New file.
52159 * lib/strdup.c: Include it.
52160 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
52161 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
52163 2004-02-23 Karl Berry <karl@gnu.org>
52165 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
52166 (from fencepost.gnu.org:/gd/gnuorg).
52168 2004-02-23 Karl Berry <karl@gnu.org>
52170 * config/srclistvars.sh (GNUORG) [karl]: redefine.
52171 * config/srclist.txt: add maintain/standards documents.
52173 2004-02-18 Bruno Haible <bruno@clisp.org>
52175 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
52176 Reported by Derek Robert Price <derek@ximbiot.com>.
52178 2004-02-16 Karl Berry <karl@gnu.org>
52180 * config/mkinstalldirs, install-sh: update from automake.
52182 2004-02-06 Karl Berry <karl@gnu.org>
52184 * m4/po.m4: update from gettext 0.14.1.
52186 2004-02-06 Karl Berry <karl@gnu.org>
52188 * lib/config.charset: update from gettext 0.14.1.
52190 2004-02-05 Paul Eggert <eggert@twinsun.com>
52192 Add comments and code, prompted by suggestions from Bruno Haible
52194 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
52195 describing the enum quoting_style values.
52196 * lib/quotearg.c (quotearg_alloc): New function.
52197 (quotearg_buffer_restyled): Treat lone { and } as special.
52198 Treat = as special. Work around bug with older shells
52199 that "see" a '\' that is really the 2nd byte of a multibyte char.
52200 Quote empty string with shell_quoting_style.
52202 2004-02-03 Bruno Haible <bruno@clisp.org>
52204 * m4/pipe.m4: New file, from GNU gettext.
52206 2004-02-03 Bruno Haible <bruno@clisp.org>
52208 * lib/pipe.h: New file, from GNU gettext.
52209 * lib/pipe.c: New file, from GNU gettext.
52211 2004-01-27 Bruno Haible <bruno@clisp.org>
52213 * m4/execute.m4: New file, from GNU gettext.
52215 2004-01-27 Bruno Haible <bruno@clisp.org>
52217 * lib/execute.h: New file, from GNU gettext.
52218 * lib/execute.c: New file, from GNU gettext.
52219 * lib/w32spawn.h: New file, from GNU gettext.
52221 2004-01-24 Paul Eggert <eggert@twinsun.com>
52223 Merge from diffutils.
52225 * lib/file-type.c (file_type): Add typed memory objects.
52226 * lib/file-type.h (S_TYPEISTMO): New macro.
52228 * lib/c-stack.h (c_stack_action): Remove argv argument.
52229 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
52230 (die): Don't calculate message unless segv_action returns.
52231 (get_stack_location, min_address_from_argv, max_address_from_argv,
52232 volatile stack_base, volatile_stack_size): Remove.
52233 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
52234 that every segmentation violation is a stack overflow. (Ouch!)
52235 See Debian bug 136249 (still outstanding) for more info about why
52236 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
52238 2004-01-24 Paul Eggert <eggert@twinsun.com>
52240 Exit-status fix from coreutils.
52242 Use exit_failure consistently in place of EXIT_FAILURE,
52243 so that program exit statuses are consistent on failure.
52245 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
52246 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
52247 * lib/argmatch.h: Comment fix to match the above.
52248 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
52249 Now a macro referring to exit_failure, instead of a separate
52250 variable. Include "exitfail.h" to get it.
52251 * lib/xstrtol.h: Include "exitfail.h".
52252 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
52254 * lib/long-options.c (parse_long_options): Use prototype
52255 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
52258 2004-01-21 Jim Meyering <jim@meyering.net>
52260 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
52261 so as not to conflict with a different-sized __mktime_internal
52262 function in GNU libc.
52263 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
52264 Problem building statically-linked `ls' reported by Michael Brunnbauer.
52266 2004-01-20 Karl Berry <karl@gnu.org>
52268 * config/config.guess: update from config.
52270 * config/srclistvars.sh: GNUWWWLICENSES for karl.
52272 2004-01-20 Bruno Haible <bruno@clisp.org>
52274 Safer stack allocation.
52275 * lib/setenv.c: Include allocsa.h.
52276 (alloca): Remove fallback definition.
52277 (freea): Remove macro.
52278 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
52281 2004-01-20 Bruno Haible <bruno@clisp.org>
52283 * m4/eealloc.m4: New file, from GNU gettext.
52285 2004-01-20 Bruno Haible <bruno@clisp.org>
52287 * m4/allocsa.m4: New file, from GNU gettext.
52289 2004-01-20 Bruno Haible <bruno@clisp.org>
52291 * lib/xallocsa.h: New file, from GNU gettext.
52292 * lib/xallocsa.c: New file, from GNU gettext.
52294 2004-01-20 Bruno Haible <bruno@clisp.org>
52296 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
52298 2004-01-20 Bruno Haible <bruno@clisp.org>
52300 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
52301 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
52304 2004-01-20 Bruno Haible <bruno@clisp.org>
52306 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
52309 2004-01-20 Bruno Haible <bruno@clisp.org>
52311 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
52313 2004-01-20 Bruno Haible <bruno@clisp.org>
52315 * lib/eealloc.h: New file.
52317 2004-01-20 Bruno Haible <bruno@clisp.org>
52319 * lib/binary-io.h: Avoid warnings on Cygwin.
52321 2004-01-20 Bruno Haible <bruno@clisp.org>
52323 * lib/allocsa.h: New file, from GNU gettext.
52324 * lib/allocsa.c: New file, from GNU gettext.
52326 2004-01-18 Karl Berry <karl@gnu.org>
52328 * doc/gpl.texi, doc/lgpl.texi: new files.
52330 2004-01-18 Karl Berry <karl@gnu.org>
52332 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
52333 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
52335 2004-01-15 Paul Eggert <eggert@twinsun.com>
52337 Merge from coreutils.
52339 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
52340 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
52341 (gl_DEFAULT_POSIX2_VERSION): Move
52342 the documentation from 'configure' into 'config.hin',
52343 so that 'configure --help' isn't burdened by it and
52344 we don't have to worry about its formatting there.
52345 Reword the documentation so that it's more succinct
52346 and can be run together into a single paragraph.
52347 * m4/same.m4 (gl_SAME): Check for pathconf.
52349 2004-01-15 Paul Eggert <eggert@twinsun.com>
52351 Merge from coreutils.
52353 * lib/posixver.c: Include posixver.h.
52355 * lib/same.c: Include <stdbool.h>, <limits.h>.
52356 (_POSIX_NAME_MAX): Define if not defined.
52358 (same_name): If file names are silently truncated, report
52359 that the file names are the same if they are the same after
52360 the silent truncation.
52362 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
52363 conversion function.
52364 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
52365 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
52368 2004-01-15 Jim Meyering <jim@meyering.net>
52370 Merge from coreutils.
52372 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
52373 if no library is required.
52374 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
52375 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
52376 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
52377 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
52378 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
52379 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
52380 value, $ac_cv_search_crypt, if it's "none required".
52381 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
52382 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
52383 not gl_FUNC_GETLOADAVG.
52384 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
52385 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
52387 2004-01-15 Jim Meyering <jim@meyering.net>
52389 Merge from coreutils.
52391 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
52392 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
52393 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
52395 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
52396 optional configure-time default.
52398 * lib/version-etc.c (version_etc_copyright): Update copyright date.
52400 * lib/xreadlink.c (xreadlink): Correct outdated comment.
52402 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
52404 Merge from coreutils.
52406 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
52407 value, $ac_cv_search_nanosleep, if it's "none required".
52409 2004-01-14 Paul Eggert <eggert@twinsun.com>
52411 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
52412 with like-named macro in fnmatch.c.
52413 (EXT): Use an internal constant instead.
52415 Merge fnmatch patches from glibc.
52416 * lib/fnmatch.c (mbsinit): Remove define.
52417 Add libc_hidden_ver (__fnmatch, fnmatch).
52418 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
52419 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
52421 2004-01-14 Karl Berry <karl@gnu.org>
52423 * config/install-sh: update from automake.
52425 2004-01-13 Karl Berry <karl@gnu.org>
52427 * config/install-sh: update from automake.
52429 2004-01-09 Karl Berry <karl@gnu.org>
52431 * config/install-sh: update from automake.
52433 2004-01-05 Karl Berry <karl@gnu.org>
52435 * config/config.{sub,guess}: update from config.
52437 2003-12-31 Karl Berry <karl@gnu.org>
52439 * config/depcomp: update from automake.
52441 2003-12-14 Karl Berry <karl@gnu.org>
52443 * lib/config.charset: update from gettext-runtime.
52445 2003-12-03 Paul Eggert <eggert@twinsun.com>
52447 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
52448 Bug reported by Alfred M. Szmidt.
52450 2003-12-03 Bruno Haible <bruno@clisp.org>
52452 * m4/gettext.m4: Upgrade from gettext-0.13.
52453 * m4/po.m4: Upgrade from gettext-0.13.
52454 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
52455 * m4/intmax.m4: New file, from gettext-0.13.
52456 * m4/printf-posix.m4: New file, from gettext-0.13.
52458 2003-11-29 Karl Berry <karl@gnu.org>
52460 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
52462 2003-11-25 Paul Eggert <eggert@twinsun.com>
52463 Bruno Haible <bruno@clisp.org>
52465 * lib/printf-parse.h: Don't include sys/types.h.
52466 (ARG_NONE): New macro.
52467 (char_directive): Change type of *arg_index fields to size_t.
52468 * lib/printf-parse.c: Don't include sys/types.h.
52469 (SSIZE_MAX): Remove macro.
52470 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
52471 Remove unnecessary overflow check.
52472 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
52475 2003-11-25 Bruno Haible <bruno@clisp.org>
52477 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
52479 2003-11-25 Bruno Haible <bruno@clisp.org>
52481 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
52484 2003-11-24 Paul Eggert <eggert@twinsun.com>
52486 * modules/alloca: Remove dependency on xalloc.
52488 2003-11-24 Paul Eggert <eggert@twinsun.com>
52490 * lib/alloca.c: Remove dependency on xalloc module.
52491 (xalloc_die): Remove.
52492 (memory_full) [!defined emacs]: New macro.
52493 [!defined emacs]: Don't include xalloc.h.
52494 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
52495 address arithmetic overflows. Change datatypes a bit to avoid
52498 2003-11-22 Jim Meyering <jim@meyering.net>
52500 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
52503 2003-11-21 Karl Berry <karl@gnu.org>
52505 * config/config.{sub,guess}: update from config.
52507 2003-11-18 Karl Berry <karl@gnu.org>
52509 * config/config.{sub,guess}: update from config.
52511 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
52513 2003-11-17 Paul Eggert <eggert@twinsun.com>
52515 * README: Mention that S+T cannot overflow if S is the size of
52516 an existing object and T is sufficiently small.
52518 2003-11-17 Jim Meyering <jim@meyering.net>
52520 On systems without utime and without a utimes function capable of
52521 dealing with a NULL struct utimbuf* argument, this utime replacement
52522 could -- in unusual circumstances -- leak a file descriptor.
52523 * lib/utime.c: Include <unistd.h> and <errno.h>.
52524 (utime_null): Be sure to close `fd' and to preserve errno.
52525 Reported by Geoff Collyer via Arnold Robbins.
52527 2003-11-17 Bruno Haible <bruno@clisp.org>
52529 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
52530 (Depends-on): Add xsize.
52532 2003-11-17 Bruno Haible <bruno@clisp.org>
52534 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
52536 2003-11-17 Bruno Haible <bruno@clisp.org>
52538 * lib/vasnprintf.c (alloca): Remove fallback definition.
52539 (freea): Remove definition.
52540 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
52541 Reported by Paul Eggert.
52543 2003-11-16 Paul Eggert <eggert@twinsun.com>
52544 Bruno Haible <bruno@clisp.org>
52546 Protect against address arithmetic overflow.
52547 * lib/printf-args.h: Include stddef.h.
52548 (arguments): Change type of field 'count' to size_t.
52549 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
52550 'unsigned int' where appropriate.
52551 * lib/printf-parse.h: Include sys/types.h.
52552 (char_directive): Change type of *arg_index fields to ssize_t.
52553 (char_directives): Change type of fields 'count', max_*_length to
52555 * lib/printf-parse.c: Include sys/types.h and xsize.h.
52556 (SSIZE_MAX): Define fallback value.
52557 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
52558 instead of 'int' where appropriate. Check a_allocated, d_allocated
52559 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
52560 * lib/vasnprintf.c: Include xsize.h.
52561 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
52562 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
52563 overflow. Avoid wraparound when converting a width or precision from
52566 2003-11-16 Bruno Haible <bruno@clisp.org>
52568 Update from GNU gettext.
52569 * lib/printf-parse.c: Generalize to it can be compiled for wide
52571 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
52572 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
52573 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
52574 SNPRINTF): New macros.
52575 Don't include <alloca.h> if the file is used inside libintl.
52576 (local_wcslen): New function, for Solaris 2.5.1.
52577 (VASNPRINTF): Use it instead of wcslen.
52579 2003-11-16 Bruno Haible <bruno@clisp.org>
52581 * lib/xsize.h (xmax): New function.
52582 (xsum, xsum3, xsum4): Declare as "pure" functions.
52584 2003-11-12 Paul Eggert <eggert@twinsun.com>
52586 * modules/xalloc (Files): Undo latest change, since xalloc.h
52587 no longer needs SIZE_MAX or PTRDIFF_MAX.
52589 2003-11-12 Paul Eggert <eggert@twinsun.com>
52591 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
52594 2003-11-12 Paul Eggert <eggert@twinsun.com>
52596 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
52597 "return", to pacify some unknown compiler. Problem reported
52598 by Joerg Schilling.
52600 2003-11-12 Paul Eggert <eggert@twinsun.com>
52602 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
52603 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
52604 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
52605 heuristic is just as accurate as far as we know, and it removes a
52606 dependency on size_max.m4 and ptrdiff_max.m4.
52608 2003-11-11 Bruno Haible <bruno@clisp.org>
52610 * modules/xsize (Files): Add m4/size_max.m4.
52611 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
52613 2003-11-11 Bruno Haible <bruno@clisp.org>
52615 * m4/size_max.m4: New file.
52616 * m4/ptrdiff_max.m4: New file.
52617 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
52618 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
52619 (gl_XALLOC): Invoke it.
52621 2003-11-11 Bruno Haible <bruno@clisp.org>
52623 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
52624 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
52627 2003-11-10 Paul Eggert <eggert@twinsun.com>
52629 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
52630 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
52631 rejected some allocations of exactly SIZE_MAX - 2 bytes.
52633 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
52634 not (size_t) -1, since it's defined here.
52636 2003-11-09 Karl Berry <karl@gnu.org>
52638 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
52640 2003-11-06 Paul Eggert <eggert@twinsun.com>
52642 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
52643 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
52644 Reject sizes of exactly SIZE_MAX bytes.
52645 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
52646 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
52648 2003-11-05 Bruno Haible <bruno@clisp.org>
52650 * lib/xsize.h: Include limits.h, to avoid a possible collision with
52651 SIZE_MAX defined in <limits.h> on Solaris.
52653 2003-11-04 Jim Meyering <jim@meyering.net>
52655 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
52656 variable names, rather than @VAR@.
52657 * modules/poll: Likewise.
52659 2003-11-04 Bruno Haible <bruno@clisp.org>
52661 * modules/xsize: New file.
52662 * modules/linebreak: Depend on xsize.
52663 * MODULES.html.sh (func_all_modules): Add xsize.
52665 2003-11-04 Bruno Haible <bruno@clisp.org>
52667 * m4/xsize.m4: New file.
52669 2003-11-04 Bruno Haible <bruno@clisp.org>
52671 * lib/xsize.h: New file.
52672 * lib/linebreak.c: Include xsize.h.
52673 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
52674 argument for overflow.
52675 Suggested by Paul Eggert.
52677 2003-11-03 Karl Berry <karl@gnu.org>
52679 * config/config.{guess,sub}: update from config.
52681 2003-11-03 Jim Meyering <jim@meyering.net>
52683 * modules/userspec (lib_SOURCES): Add userspec.h.
52684 (Include): Add "userspec.h".
52685 Improve description.
52687 2003-11-03 Jim Meyering <jim@meyering.net>
52689 * lib/userspec.c: Include "userspec.h".
52690 * lib/userspec.h: New file.
52692 2003-11-03 Bruno Haible <bruno@clisp.org>
52694 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
52696 2003-11-03 Bruno Haible <bruno@clisp.org>
52698 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
52699 available, to avoid (extremely rare) race condition.
52700 Suggested by Paul Eggert.
52702 2003-11-02 Karl Berry <karl@gnu.org>
52704 * config/srclist.txt (vasprintf.c): sync broken, sigh.
52706 2003-10-31 Paul Eggert <eggert@twinsun.com>
52708 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
52709 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
52710 (read_filesystem_list): Set and use me_type_malloced.
52711 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
52712 whatever the type happens to be), for brevity and consistency.
52713 Check for size calculation overflow on Alphas running OSF/1.
52715 2003-10-31 Jim Meyering <jim@meyering.net>
52717 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
52719 * lib/linebuffer.c: Include <string.h> for declaration of memset.
52721 2003-10-30 Paul Eggert <eggert@twinsun.com>
52722 Bruno Haible <bruno@clisp.org>
52724 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
52725 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
52727 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
52729 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
52730 netbsd*-gnu*. Suggested by Robert Millan.
52732 2003-10-29 Paul Eggert <eggert@twinsun.com>
52734 * modules/group-member: Depend on stdbool.
52736 2003-10-29 Paul Eggert <eggert@twinsun.com>
52738 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
52740 2003-10-29 Paul Eggert <eggert@twinsun.com>
52742 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
52743 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
52744 after the 'gnu' in these cases. This fixes some bugs in the
52745 previous change, and is based on suggestions by Robert Millan.
52747 2003-10-29 Paul Eggert <eggert@twinsun.com>
52749 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
52750 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
52752 * lib/quotearg.c (quotearg_n_options): Use it.
52753 * lib/group-member.c: Include <stdbool.h>.
52754 (free_group_info): Arg is now const *; don't free arg.
52755 (get_group_info): Now returns bool and accepts struct group_info *,
52756 rather than returning a malloc'ed struct group_info *.
52757 All uses changed. Check for overflow in internal size calculation.
52759 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
52760 rather than xmalloc/xrealloc.
52761 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
52762 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
52763 conformance bug: the old code used a pointer after freeing the
52764 storage that it addressed.
52765 * lib/hash.c (hash_initialize): Simplify the code by using
52766 xalloc_oversized rather than doing it by hand.
52767 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
52768 the buffer preserved. Use free and xmalloc instead.
52769 * lib/quotearg.c (quotearg_n_options): Likewise.
52770 Use a simpler test for size overflow. Don't use xalloc_oversized
52771 because unsigned int might be wider than size_t (!); this suggests
52772 that we should switch from unsigned int to size_t for slot numbers.
52774 2003-10-28 Paul Eggert <eggert@twinsun.com>
52776 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
52777 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
52778 NetBSD kernels. Requested by Richard Stallman.
52780 2003-10-27 Paul Eggert <eggert@twinsun.com>
52782 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
52783 to allocate the returned structure. Do not allocate a subarray,
52784 as x2nrealloc will do that.
52785 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
52786 instead of xnrealloc.
52787 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
52789 2003-10-27 Bruno Haible <bruno@clisp.org>
52791 * lib/stdbool_.h: Better support for BeOS.
52793 2003-10-26 Paul Eggert <eggert@twinsun.com>
52795 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
52798 2003-10-26 Paul Eggert <eggert@twinsun.com>
52800 * lib/xalloc.h (xalloc_oversized): New static inline function, for
52801 callers that want to do their own size-overflow checking. Include
52802 <stdbool.h>, since xalloc_oversized returns bool.
52803 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
52804 to use xalloc_oversized.
52806 Add two functions x2realloc, x2nrealloc, for programs that grow
52807 arrays dynamically by doubling their sizes.
52808 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
52809 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
52812 Port to C99 semantics for 'inline' of external functions.
52813 Bug reported by Bruno Haible.
52814 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
52815 with the old contents of xnmalloc.
52816 (xnmalloc, xmalloc): Use it.
52817 (xnrealloc_inline): New static inline function,
52818 with the old contents of xnrealloc.
52819 (xnrealloc, xrealloc): Use it.
52821 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
52824 2003-10-26 Karl Berry <karl@gnu.org>
52826 * config/srclist.txt (COPYING.DOC): no longer available from
52827 /gd/gnuorg; don't know where the ultimate source is.
52829 2003-10-25 Paul Eggert <eggert@twinsun.com>
52831 Fix several address-calculation bugs in the hash modules,
52832 plus some minor code cleanup.
52834 * lib/hash.h: Include <stdbool.h>, for bool.
52835 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
52836 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
52837 hash_get_n_entries, hash_get_max_bucket_length,
52838 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
52839 hash_rehash): Use size_t rather than unsigned.
52840 * lib/hash.c (struct hash_table, hash_get_n_buckets,
52841 hash_get_n_buckets_used, hash_get_n_entries,
52842 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
52843 hash_get_entries, hash_do_for_each, hash_string, is_prime,
52844 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
52846 (SIZE_MAX): Define if not defined.
52847 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
52848 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
52850 Use const * when possible.
52851 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
52852 (check_tuning): Fix bug: if tuning parameters were very close to
52853 0 or 1, rounding errors could have caused subscript violations.
52854 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
52855 (hash_initialize): Add 'fail:' label
52856 to free table and return NULL, and use it to simplify code.
52857 Use calloc rather than clearing the storage ourself.
52858 (hash_initialize, hash_rehash): Check for arithmetic overflow in
52859 buffer size calculations.
52860 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
52861 Include <stddef.h>, for size_t.
52862 * lib/hash-pjw.c (hash_pjw): Likewise.
52863 Switch to method described by Bruno Haible.
52864 Include <limits.h>, for CHAR_BIT.
52865 (SIZE_BITS): New macro.
52867 2003-10-23 Paul Eggert <eggert@twinsun.com>
52869 * m4/getline.m4 (AM_FUNC_GETLINE):
52870 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
52871 hosts. Problem reported by Derek Robert Price in
52872 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
52873 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
52874 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
52876 2003-10-21 Paul Eggert <eggert@twinsun.com>
52878 * lib/getndelim2.c (getndelim2): When size calculation overflows,
52879 ceiling the allocation at NMAX bytes rather than silently
52880 discarding input bytes before NMAX is reached. This makes
52881 a difference only if NMAX exceeds SIZE_MAX / 2.
52883 * lib/obstack.c: Merge from glibc.
52884 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
52885 Add libc_hidden_def (_obstack_newchunk).
52886 (_obstack_free) [! defined _LIBC]: Remove.
52887 [defined _LIBC]: Make a strong alias from obstack_free, rather than
52888 a clone of the function body.
52889 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
52890 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
52892 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
52894 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
52897 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
52898 (obstack_ptr_grow_fast, obstack_int_grow_fast):
52899 Don't use lvalue casts, as GCC plans to remove support for them
52900 in GCC 3.5. Reported by Joseph S. Myers. This bug
52901 was also present in the non-GCC version, indicating that this
52902 code had always been buggy and had never been widely used.
52903 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
52904 Use the fast variant of each macro, rather than copying the
52905 definiens of the fast variant; that way, we'll be more likely to
52906 catch future bugs in the fast variants.
52908 2003-10-20 Bruno Haible <bruno@clisp.org>
52910 * modules/wait-process: New file.
52911 * MODULES.html.sh (func_all_modules): Add wait-process.
52913 2003-10-20 Bruno Haible <bruno@clisp.org>
52915 * m4/wait-process.m4: New file.
52917 2003-10-20 Bruno Haible <bruno@clisp.org>
52919 * lib/wait-process.h: New file, from GNU gettext.
52920 * lib/wait-process.c: New file, from GNU gettext.
52922 2003-10-19 Jim Meyering <jim@meyering.net>
52924 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
52927 2003-10-18 Karl Berry <karl@gnu.org>
52929 * config/config.guess: update from config.
52931 2003-10-16 Paul Eggert <eggert@twinsun.com>
52933 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
52934 (getgroups): First arg is int, not size_t.
52935 Don't let 'free' mangle errno.
52937 2003-10-16 Paul Eggert <eggert@twinsun.com>
52939 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
52941 2003-10-16 Karl Berry <karl@gnu.org>
52943 * config/config.{guess,sub}: update from config.
52945 2003-10-16 Jim Meyering <jim@meyering.net>
52947 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
52950 2003-10-15 Paul Eggert <eggert@twinsun.com>
52952 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
52953 (SIZE_MAX): Remove.
52954 (new_exclude, add_exclude_file): Initial size no longer needs to
52956 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
52957 our own address arithmetic overflow checking.
52959 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
52960 (fnmatch): Do not alloca more than 2000 wide characters;
52961 instead, use malloc for large buffers.
52962 Check for address arithmetic overflow, and return -1
52963 with errno set to ENOMEM in that case.
52964 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
52965 (NEW_PATTERN): Do not alloca more than 8000 bytes;
52966 instead, return -1. Check for address arithmetic overflow.
52968 2003-10-14 Paul Eggert <eggert@twinsun.com>
52970 Handle invalid suffixes and overflow independently, so that
52971 callers can treat them independently as needed. Fix some bugs in
52972 suffix handling, e.g., "100k@" was not diagnosed as an invalid
52973 suffix for a human-readable blocksize. The major caller-visible
52974 change is the addition of a new
52975 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
52976 that both overflow and suffix chars were found.
52978 * lib/human.c (humblock): Don't check separately for invalid suffix
52979 char; that is xstrtoumax's job (now that its bug is fixed).
52980 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
52981 INTMAX_MAX]: New macros.
52982 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
52983 TYPE_MAXIMUM): New macros.
52984 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
52985 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
52986 if overflow occurs, as it's what __strtol does and it's more useful
52988 (__xstrtol): If __strtol reports some error other than ERANGE,
52989 reflect it to the caller as LONGINT_INVALID. If it reports
52990 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
52991 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
52992 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
52994 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
52995 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
52996 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
52997 [defined UINTMAX_MAX]: New macros.
52999 2003-10-14 Bruno Haible <bruno@clisp.org>
53001 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
53003 2003-10-14 Bruno Haible <bruno@clisp.org>
53005 * m4/sig_atomic_t: New file, from GNU gettext.
53006 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
53008 2003-10-14 Bruno Haible <bruno@clisp.org>
53010 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
53011 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
53012 Also use volatile where needed.
53014 2003-10-12 Paul Eggert <eggert@twinsun.com>
53016 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
53017 Change maintainer from Bruno Haible to 'all'.
53019 2003-10-12 Paul Eggert <eggert@twinsun.com>
53021 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
53023 2003-10-12 Paul Eggert <eggert@twinsun.com>
53025 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
53026 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
53027 and define in terms of the other primitives.
53028 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
53029 (SIZE_MAX): Define if not already defined.
53030 (array_size_overflow): New function.
53031 (xalloc_die): Abort instead of exiting if 'error' returns.
53032 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
53033 (xmalloc, xrealloc): Use them.
53034 (xcalloc): Check for address arithmetic overflow.
53035 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
53036 a bit faster than strcpy.
53038 2003-10-10 Simon Josefsson <jas@extundo.com>
53040 * modules/argp (Depends-on): Add restrict and strcase.
53042 2003-10-10 Simon Josefsson <jas@extundo.com>
53044 * m4/argp.m4: Add AC_C_INLINE.
53046 2003-10-08 Paul Eggert <eggert@twinsun.com>
53048 Merge getpass from libc, plus a few fixes.
53050 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
53051 Include <stdbool.h>.
53052 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
53053 __fsetlocking to empty.
53054 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
53055 do include <bits/libc-lock.h>.
53056 Do not include <fcntl.h>; not needed.
53057 [_LIBC]: Include <wchar.h>.
53058 (NOTCANCEL_MODE): New macro.
53059 (flockfile, funlockfile) [_LIBC]: New macros.
53060 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
53061 [!_LIBC]: New macros.
53062 (call_fclose): New function.
53063 (getpass): Use it. Save tty stream separately; this simplifies the
53064 code and makes it more reliable if stdin happens to equal stdout.
53065 Invoke __fsetlocking on tty.
53066 Handle thread cancellation if needed.
53067 Namespace cleanup (use __tcgetattr, __getline).
53068 Use bool for Booleans.
53069 [USE_IN_LIBIO]: Handle wide streams.
53070 [!_LIBC]: Unconditionally do the fseek, since we don't know what
53071 stream might go where.
53073 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
53074 doesn't have to include <stdio.h> before us.
53075 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
53076 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
53077 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
53078 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
53079 if not declared, so that we can use getpass.c code from libc without
53081 (flockfile, ftrylockfile, funlockfile): New macros.
53083 2003-10-08 Paul Eggert <eggert@twinsun.com>
53085 * modules/getpass: Depend on stdbool.
53087 2003-10-08 Paul Eggert <eggert@twinsun.com>
53089 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
53091 2003-10-07 Karl Berry <karl@gnu.org>
53093 * config/config.{guess,sub}: update from config.
53095 2003-10-06 Jim Meyering <jim@meyering.net>
53096 Bruno Haible <bruno@clisp.org>
53098 This lets translators provide better translations for the
53099 "Written by ..." part of --version output.
53100 * lib/version-etc.h: Include stdarg.h.
53101 (version_etc_copyright): Declare as readonly.
53102 (version_etc): Make this function variadic with a NULL-terminated list
53103 of author name strings.
53104 (version_etc_va): New declaration.
53105 * lib/version-etc.c: Include stdarg.h, stdlib.h.
53106 (version_etc_copyright): Declare as readonly.
53107 (version_etc_va): New function. Provide a different translatable string
53108 for each possible number of authors < 10. Abbreviate when there are 10
53110 (version_etc): Make this function variadic. Call version_etc_va.
53111 Suggestion from Gary V. Vaughan.
53113 * lib/long-options.h (parse_long_options): Change prototype: the
53114 authors string is moved to the end and becomes variadic.
53115 * lib/long-options.c: Include stdarg.h.
53116 (parse_long_options): Make this function variadic, too.
53117 Call version_etc_va, not version_etc.
53119 2003-10-06 Bruno Haible <bruno@clisp.org>
53121 * modules/version-etc-2: Remove file.
53122 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
53124 2003-10-06 Bruno Haible <bruno@clisp.org>
53126 * modules/fatal-signal: New file.
53127 * MODULES.html.sh (func_all_modules): Add fatal-signal.
53129 2003-10-06 Bruno Haible <bruno@clisp.org>
53131 * m4/fatal-signal.m4: New file.
53132 * m4/signalblocking.m4: New file, from GNU gettext.
53134 2003-10-06 Bruno Haible <bruno@clisp.org>
53136 * lib/version-etc-2.h: Remove file.
53137 * lib/version-etc-2.c: Remove file.
53139 2003-10-06 Bruno Haible <bruno@clisp.org>
53141 * lib/fatal-signal.h: New file, from GNU gettext.
53142 * lib/fatal-signal.c: New file, from GNU gettext.
53144 2003-10-05 Paul Eggert <eggert@twinsun.com>
53146 * README: Rework advice for preventing empty .o files.
53147 Don't recommend ELIDE constructs. Recommend <stddef.h>,
53150 2003-10-04 Karl Berry <karl@gnu.org>
53152 * lib/argp*: update from libc.
53154 2003-10-04 Karl Berry <karl@gnu.org>
53156 * config/config.{guess,sub}: update from config.
53158 2003-10-02 Bruno Haible <bruno@clisp.org>
53160 * modules/lchown (Include): Add lchown.h.
53161 * modules/time_r (Include): Use "..." syntax.
53162 * modules/xgetdomainname (Include): Add xgetdomainname.h.
53164 2003-10-01 Simon Josefsson <jas@extundo.com>
53166 * MODULES.html.sh (func_all_modules): Move gethostname from section
53167 'based on' to section 'lacking' POSIX:2001.
53169 2003-10-01 Larry Jones <lawrence.jones@eds.com>
53171 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
53172 to output mode on the same stream.
53174 2003-09-29 Paul Eggert <eggert@twinsun.com>
53176 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
53177 Fix arg typo in previous patch.
53179 2003-09-28 Jim Meyering <jim@meyering.net>
53181 * lib/error.c: Correct cpp indentation.
53183 2003-09-27 Paul Eggert <eggert@twinsun.com>
53185 * modules/free: New file.
53187 2003-09-27 Paul Eggert <eggert@twinsun.com>
53189 * m4/free.m4: New file.
53191 2003-09-27 Paul Eggert <eggert@twinsun.com>
53193 * lib/minmax.h (MIN, MAX)
53194 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
53195 Omit the special code that used __typeof__, since we worry that
53196 it could be more trouble than it's worth. See:
53197 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
53198 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
53200 * lib/free.c: New file.
53202 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
53204 Trivial fixes to Makefile.am parts of module listings.
53205 * modules/strstr: Append strstr.h to lib_SOURCES.
53206 * modules/strcase: Likewise, for strcase.h.
53208 2003-09-27 Karl Berry <karl@gnu.org>
53210 * config/mkinstalldirs: update from automake.
53212 2003-09-26 Paul Eggert <eggert@twinsun.com>
53214 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
53215 (error_tail): Do not loop, reallocating temporary buffer, since
53216 the output cannot contain more wide characters than the input
53217 contains bytes, the size must be big enough already. This avoids
53218 one potential size overflow calculation. Check for size overflow
53219 when calculating temporary buffer size. Free temporary buffer
53220 when done, if it was allocated with malloc; this plugs a memory
53221 leak. Remove casts from void * to pointers, that are no longer
53222 needed now that we're assuming C89 or better.
53224 Merge error changes from glibc.
53226 * lib/error.c, error.h: Update copyright notice header to match glibc.
53227 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
53228 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
53229 Disable cancellation while printing error.
53230 * lib/error.h: Prepend __ to parameter names.
53232 2003-09-26 Jim Meyering <jim@meyering.net>
53234 * lib/error.c (error_tail): Move some declarations
53235 into inner scope where the local variables are used.
53237 2003-09-26 Bruno Haible <bruno@clisp.org>
53239 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
53241 Don't define stpncpy through config.h; it's now done through stpncpy.h.
53243 2003-09-26 Bruno Haible <bruno@clisp.org>
53245 * lib/stpncpy.h (gnu_stpncpy): New declaration.
53246 (stpncpy): Define as alias for gnu_stpncpy.
53247 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
53249 2003-09-25 Simon Josefsson <jas@extundo.com>
53251 * lib/xgetdomainname.h: New file.
53252 * lib/xgetdomainname.c: New file.
53254 2003-09-25 Simon Josefsson <jas@extundo.com>
53255 Bruno Haible <bruno@clisp.org>
53257 * modules/getdomainname: New file.
53258 * modules/xgetdomainname: New file.
53259 * MODULES.html.sh (func_all_modules): Add getdomainname,
53262 2003-09-25 Simon Josefsson <jas@extundo.com>
53263 Bruno Haible <bruno@clisp.org>
53265 * m4/getdomainname.m4: New file.
53267 2003-09-25 Simon Josefsson <jas@extundo.com>
53268 Bruno Haible <bruno@clisp.org>
53270 * lib/getdomainname.h: New file.
53271 * lib/getdomainname.c: New file.
53273 2003-09-25 Karl Berry <karl@gnu.org>
53275 * lib/argp-fmtstream.c, argp-help.c: update from libc.
53277 2003-09-25 Karl Berry <karl@gnu.org>
53279 * config/install-sh: update from automake.
53281 2003-09-25 Bruno Haible <bruno@clisp.org>
53283 * modules/version-etc-2: New file, from modules/version-etc with
53285 * MODULES.html.sh (func_all_modules): Add version-etc-2.
53287 2003-09-25 Bruno Haible <bruno@clisp.org>
53289 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
53290 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
53292 2003-09-24 Simon Josefsson <jas@extundo.com>
53294 * modules/xgethostname: Add xgethostname.h.
53296 2003-09-24 Paul Eggert <eggert@twinsun.com>
53298 * lib/linebuffer.c (freebuffer): Don't free the argument, just
53299 the buffer associated with the argument. Bug reported by
53302 2003-09-24 Paul Eggert <eggert@twinsun.com>
53304 * README: Document assumptions that 'int' is at least 32 bits
53305 wide, that integer arithmetic is 2's complement without overflow,
53306 that there are no holes in integer values, that adding sizes of
53307 two nonoverlapping objects can't overflow, and that all-bits-zero
53308 yields scalar zero. Fix spelling and capitalization typos.
53310 2003-09-19 Karl Berry <karl@gnu.org>
53312 * lib/argp.h: update from libc.
53314 2003-09-17 Paul Eggert <eggert@twinsun.com>
53316 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
53317 to avoid spurious warnings like "AC_RUN_IFELSE was called before
53318 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
53320 2003-09-17 Paul Eggert <eggert@twinsun.com>
53322 * gnulib-tool: Use "test -h", not "test -L", for portability
53323 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
53324 (tags_regexp): Remove, since \| doesn't conform to POSIX.
53325 (sed_extract_prog): Issue s commands one-by-one, rather than
53326 using \| in one s command.
53328 2003-09-16 Paul Eggert <eggert@twinsun.com>
53330 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
53331 input error, instead of returning NULL the next time we are called
53332 (and therefore losing track of errno).
53334 2003-09-16 Bruno Haible <bruno@clisp.org>
53336 * gnulib-tool (func_create_testdir): Warn about duplicated
53339 2003-09-15 Paul Eggert <eggert@twinsun.com>
53341 * modules/argmatch, modules/fatal, modules/obstack,
53342 modules/xalloc, modules/xgethostname: Sort dependencies by
53343 importance, not alphabetically.
53345 2003-09-15 Paul Eggert <eggert@twinsun.com>
53347 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
53348 fails, so that the caller gets the proper errno.
53350 * lib/readutmp.c (read_utmp): Likewise.
53351 Check for fstat error. Close stream and free storage
53354 2003-09-14 Karl Berry <karl@gnu.org>
53356 * config/srclist.txt (strdup.c): disable for c89 changes.
53358 2003-09-14 Jim Meyering <jim@meyering.net>
53360 * lib/getloadavg.c: Correct cpp indentation.
53361 * lib/strdup.c: Likewise.
53362 * lib/vasnprintf.c: Likewise.
53364 2003-09-14 Bruno Haible <bruno@clisp.org>
53366 * modules/fwriteerror: New file.
53367 * MODULES.html.sh (func_all_modules): Add fwriteerror.
53369 2003-09-14 Bruno Haible <bruno@clisp.org>
53371 * lib/fwriteerror.h: New file.
53372 * lib/fwriteerror.c: New file.
53374 2003-09-12 Paul Eggert <eggert@twinsun.com>
53376 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
53377 modules/xgethostname, modules/xalloc: Depend on exit.
53379 2003-09-12 Paul Eggert <eggert@twinsun.com>
53381 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
53383 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
53384 and AC_MINIX, too, so that their extensions are available.
53386 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
53387 This macro has been superseded by gl_BACKUPFILE.
53389 More patches to assume C89 or better.
53391 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
53393 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
53395 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
53396 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
53397 Include <string.h>, <stdlib.h> unconditionally.
53398 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
53399 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
53400 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
53401 headers or for string.h.
53402 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
53405 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
53407 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
53408 * m4/userspec.m4 (gl_USERSPEC): Likewise.
53409 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
53410 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
53411 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53412 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
53414 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
53415 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
53416 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
53418 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
53419 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
53420 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
53423 2003-09-12 Paul Eggert <eggert@twinsun.com>
53425 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
53426 * lib/obstack.c [!defined _LIBC]: Likewise.
53427 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
53428 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
53429 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
53431 More changes to assume C89 or better.
53433 * lib/error.c (error_tail): Assume vprintf.
53435 * lib/argmatch.c (getenv): Remove decl.
53436 * lib/progreloc.c (get_full_program_name): Define via prototype.
53437 * lib/setenv.c (clearenv): Likewise.
53438 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
53440 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
53441 (malloc, memcpy): Remove decls.
53442 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
53443 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
53444 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53445 (memcpy): Remove macro.
53446 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
53447 (__P): Remove. All uses removed.
53448 (PTR): Remove. All uses changed to void *.
53449 (CHAR_BIT, NULL): Remove.
53450 (spaces, zeros, memset_space, memset_zero)
53451 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
53453 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
53454 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
53455 Define with prototype.
53456 Remove now-unnecessary prototype decl.
53457 (extra_args_spec): Assume ANSI C. All uses changed.
53458 (extra_args_spec_iso): Remove.
53459 (my_strftime, emacs_strftimeu): Define via prototype.
53460 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
53462 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
53463 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
53464 (strtoul, strtol): Remove decls.
53465 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
53467 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53468 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
53469 (LOCALE_PARAM_PROTO): New macro.
53470 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
53471 (INTERNAL (strtol), strtol): Define with a prototype.
53472 (PARAMS): Remove. All uses removed.
53473 * lib/tempname.c: Include <string.h> unconditionally.
53474 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
53475 * lib/xgethostname.c (main): Define with a prototype.
53476 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
53477 Include <stdlib.h> unconditionally.
53478 (calloc, malloc, realloc, free): Remove decls.
53479 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
53480 Include <stdlib.h> unconditionally. Sort include file names.
53482 (xstrtod): Define with a prototype.
53483 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
53484 (strtol, strtoul): Remove decls.
53486 2003-09-11 Paul Eggert <eggert@twinsun.com>
53488 More patches to assume C89 or better.
53489 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
53490 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
53491 string.h, memchr, STDC_HEADERS.
53493 2003-09-11 Paul Eggert <eggert@twinsun.com>
53495 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
53496 Include <stdlib.h>, <string.h> unconditionally.
53497 Remove now-unnecessary cast to char *.
53498 * lib/strnlen.c: Include <string.h> unconditionally.
53499 * lib/yesno.c (yesno): Define with a prototype.
53501 2003-09-11 Bruno Haible <bruno@clisp.org>
53503 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
53505 2003-09-10 Jim Meyering <jim@meyering.net>
53507 * lib/error.c: Correct indentation of cpp directives.
53509 2003-09-10 Bruno Haible <bruno@clisp.org>
53511 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
53512 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
53513 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
53514 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
53515 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
53516 <stdlib.h> and <string.h> checks.
53517 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
53518 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
53520 2003-09-10 Bruno Haible <bruno@clisp.org>
53522 * lib/strcspn.c: Include <string.h> unconditionally.
53523 * lib/strpbrk.c: Include <string.h> unconditionally.
53524 * lib/strstr.c: Include <string.h> unconditionally.
53525 * lib/unicodeio.c: Include <string.h> unconditionally.
53526 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
53527 * lib/unsetenv.c: Likewise.
53528 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
53529 * lib/yesno.c: Include <stdlib.h> unconditionally.
53530 (rpmatch): Add prototype.
53532 2003-09-09 Paul Eggert <eggert@twinsun.com>
53534 More patches to assume C89 or better.
53535 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
53536 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
53537 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
53539 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
53541 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
53543 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
53545 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
53546 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
53547 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
53549 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
53550 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
53552 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
53554 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
53555 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
53556 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
53557 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
53558 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
53559 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
53561 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
53562 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
53563 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
53564 C headers, or for string.h.
53565 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
53566 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
53567 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
53568 headers, memory.h, stdlib.h, string.h, strings.h.
53569 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
53570 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
53571 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
53573 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
53574 headers, memory.h, string.h.
53575 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
53576 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
53578 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
53580 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
53581 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
53582 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
53583 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
53584 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
53586 2003-09-09 Paul Eggert <eggert@twinsun.com>
53590 * lib/acosl.c (main): Use a prototype.
53591 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
53594 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
53596 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
53597 (getopt, etopt_long, getopt_long_only, _getopt_internal)
53598 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
53600 * lib/getopt.c (const): Remove macro.
53601 Include <string.h> unconditionally.
53602 (my_index): Remove; all uses changed to strchr.
53603 (strlen): Remove decl.
53604 (exchange): Remove forward decl; no longer needed.
53605 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
53606 Define with prototype.
53607 * lib/getopt1.c (const): Remove macro.
53608 (getopt_long, getopt_long_only, main): Define with prototype.
53610 * lib/getugroups.c: Include <string.h> unconditionally.
53612 * lib/getusershell.c: Include <stdlib.h> unconditionally.
53613 (getusershell, setusershell, endusershell, readname, main):
53614 Define with prototypes.
53616 * lib/group-member.c: Include group-member.h first.
53617 Include <stdlib.h> unconditionally.
53619 * lib/hard-locale.c: Include hard-locale.h first.
53620 Include <stdlib.h>, <string.h> unconditionally.
53622 * lib/hash.c (free, malloc): Remove decls.
53623 Include <stdlib.h> unconditionally.
53625 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
53626 (getenv): Do not declare.
53628 * lib/idcache.c: Include <string.h> unconditionally.
53630 * lib/long-options.c: Include long-options.h first, to test interface.
53631 Include <stdlib.h> unconditionally.
53633 * lib/makepath.c: Include makepath.h first, to test interface.
53634 Include <stdlib.h> and <string.h> unconditionally.
53636 * lib/linebuffer.c: Include <stdlib.h>.
53637 (free): Remove decl.
53639 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
53640 stddef.h. rpl_malloc returns void *, not char *.
53641 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
53644 * lib/md5.h: Include <limits.h> unconditionally.
53645 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
53646 (__P): Remove; all uses removed.
53647 * lib/md5.c: Include "md5.h" first.
53648 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
53649 md5_buffer, md5_process_bytes, md5_process_block):
53650 Define with prototypes.
53651 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
53652 * lib/sha.c: Include "sha.h" first.
53653 Include <stdlib.h>, <string.h> unconditionally.
53655 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
53656 * lib/memcmp.c (__ptr_t): Likewise.
53657 * lib/memrchr.c (__ptr_t): Likewise.
53658 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
53659 Include <string.h> unconditionally.
53660 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
53661 * lib/memchr.c: Include <stdlib.h> unconditionally.
53662 * lib/memchr.c (LONG_MAX): Remove.
53663 * lib/memrchr.c (LONG_MAX): Likewise.
53664 * lib/memchr.c (__memchr): Define via a prototype.
53665 * lib/memrchr.c (__memrchr): Likewise.
53666 * lib/memcmp.c (__P): Remove, and remove all uses.
53667 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
53668 Remove forward decls; no longer needed.
53669 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
53670 Use types required by C89 in prototype.
53672 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
53673 * lib/savedir.c: Likewise.
53674 * lib/mkdir.c (free): Remove decl.
53675 * lib/rmdir.c (rmdir): Define with a prototype.
53676 * lib/savedir.c: Include savedir.h first, to test interface.
53678 * lib/mktime.c (STDC_HEADERS): Remove.
53679 Include <stdlib.h>, <string.h> unconditionally.
53681 * lib/modechange.c: Include <stdlib.h> unconditionally.
53682 (malloc): Remove decl.
53684 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
53685 (free): Remove decl.
53687 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
53688 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
53689 (This type really should be intptr_t, but that's a C99ism.)
53690 (_obstack_memcpy): Remove: all uses changed to memcpy.
53691 Include <string.h> unconditionally.
53692 (struct obstack): Assume __STDC__ for types of members
53693 chunkfun, freefun, extra_arg.
53694 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
53695 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
53696 obstack_begin, obstack_specify_allocation,
53697 obstack_specify_allocation_with_arg, obstack_chunkfun,
53698 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
53699 Remove unprototyped decls and the macros that use them.
53700 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
53701 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
53702 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
53703 (defined __STDC__ && __STDC__)]:
53704 Remove nonprototyped code.
53705 Include <stdlib.h> unconditionally.
53706 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
53707 _obstack_allocated_p, _obstack_free, obstack_free,
53708 _obstack_memory_used, print_and_abort):
53709 Define using prototypes.
53710 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
53711 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
53712 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
53713 obstack_next_free, obstack_object_size, obstack_room) [0]:
53714 Remove unused, unprototyped code.
53716 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
53718 * lib/physmem.c (physmem_total, physmem_available, main): Define
53721 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
53722 (main): Define with a prototype.
53724 * lib/posixver.c (getenv): Remove decl.
53726 * lib/putenv.c (malloc): Returns void *, not char *.
53727 Include <string.h> unconditionally.
53728 (strchr, memcpy, NULL): Do not define.
53730 * lib/readtokens.c: Include readtokens.h first, to test interface.
53731 Include <stdlib.h>, <string.h> unconditionally.
53732 (init_tokenbuffer): Define with a prototype.
53734 * lib/regex.c (PARAMS): Remove. All uses removed.
53735 All uses of _RE_ARGS removed, too.
53736 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53738 (bzero): Assume memset exists.
53739 (memcmp, memcpy, NULL): Remove.
53740 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
53741 char, or assignments to local vars of type signed char.
53742 (init_syntax_once, PREFIX(extract_number_and_incr),
53743 PREFIX(print_partial_compiled_pattern),
53744 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
53745 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
53746 PREFIX(regex_grow_registers), PREFIX(regex_compile),
53747 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
53748 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
53749 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
53750 wcs_compile_range, byte_compile_range, truncate_wchar,
53751 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
53752 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
53753 count_mbs_length, wcs_re_match_2_internal,
53754 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
53755 PREFIX(alt_match_null_string_p),
53756 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
53757 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
53758 regfree, PREFIX(extract_number)): Define with prototype. Remove
53759 now-unnecessary declaration, if any.
53760 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
53762 Remove now-unnecessary casts among pointer types.
53763 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
53765 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
53766 (free): Remove decl.
53768 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
53770 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
53771 (free): Remove decl.
53773 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
53774 * lib/xgetcwd.c: Likewise.
53776 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
53777 (free): Remove decl.
53779 * lib/strchrnul.c (strchrnul): Define with a prototype.
53780 Fix bug: c_in was not converted to char before searching.
53782 The following changes are not K&R related:
53784 * lib/group-member.h: Include <sys/types.h>, so that this file is
53786 * lib/makepath.h: Likewise.
53788 * lib/getusershell.c (readname, default_index, line_size, readname):
53789 Use size_t, not int, for sizes.
53790 (readname): If the size overflows, report an error instead of
53793 2003-09-09 Paul Eggert <eggert@twinsun.com>
53795 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
53798 2003-09-09 Paul Eggert <eggert@twinsun.com>
53800 * README: New section: portability guidelines.
53802 2003-09-09 Derek Robert Price <derek@ximbiot.com>
53804 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
53807 2003-09-09 Derek Robert Price <derek@ximbiot.com>
53809 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
53811 2003-09-08 Paul Eggert <eggert@twinsun.com>
53813 Assume C89 or better; remove K&R cruft.
53814 A few of these changes were first proposed by Derek Robert Price
53815 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
53817 * lib/addext.c: Include <string.h> unconditionally.
53818 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
53819 Don't declare getenv or malloc.
53821 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
53822 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
53824 (find_stack_direction, alloca): Use prototypes.
53826 * lib/atexit.c (atexit): Define using a prototype.
53828 * lib/basename.c, dirname.c, stripslash.c:
53829 Include <string.h> unconditionally.
53831 * lib/bcopy.c: Include <stddef.h>.
53832 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
53834 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
53836 * lib/error.h (error, error_at_line, error_print_progname)
53837 [! (defined (__STDC__) && __STDC__)]: Remove decls.
53838 * lib/error.c: Include error.h first, to check interface.
53839 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53840 (VA_START): Remove; all uses changeed to va_start.
53841 (exit, strerror): Remove decls.
53842 (error_print_progname): Prototype uncondionally.
53843 Don't include <errno.h>; no longer needed.
53844 (private_strerror): Remove.
53845 (error_tail): Always define.
53846 (error, error_at_line): Assume C89 or better; always use prototypes.
53847 * lib/fatal.c: Include "fatal.h" first, to test interface.
53848 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53849 (VA_START): Remove; all uses changed to va_start.
53850 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
53852 (exit): Remove decl.
53853 (fatal): Prototype unconditionally. Assume va_start works.
53854 Abort at end, to pacify gcc.
53856 * lib/euidaccess.c (main): Define with a prototype.
53858 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
53860 * lib/exitfail.c: Include <stdlib.h> unconditionally.
53862 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
53864 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
53865 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
53866 (getenv): Remove decl.
53867 (fnmatch): Define using a prototype.
53868 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
53869 (FCT): Define using a prototype.
53871 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
53873 * lib/gethostname.c: Include <stddef.h>.
53874 (gethostname): Define with prototype. Length is size_t, not int.
53876 2003-09-08 Paul Eggert <eggert@twinsun.com>
53878 Assume C89 or better; remove K&R cruft.
53879 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
53880 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
53881 string.h, getenv, malloc.
53882 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
53884 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
53885 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
53886 do not check for strerror.
53887 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
53888 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
53889 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
53890 do not check for doprnt or vprintf.
53891 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
53892 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
53894 2003-09-08 Paul Eggert <eggert@twinsun.com>
53896 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
53897 getversion.c should have been removed then, but was accidentally
53900 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
53901 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
53903 2003-09-08 Karl Berry <karl@gnu.org>
53905 * config/config.sub, config.guess, srclistvars.sh: update from savannah
53906 config, forget about prep.
53908 * config/depcomp, missing: update from automake.
53910 2003-09-07 Paul Eggert <eggert@twinsun.com>
53912 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
53913 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
53915 2003-09-07 Paul Eggert <eggert@twinsun.com>
53917 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
53918 copy_tm_result. Bug reported by Simon Josefsson in
53919 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
53921 2003-09-06 Paul Eggert <eggert@twinsun.com>
53923 * m4/time_r.m4: New file.
53924 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
53925 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
53926 is. Check for timegm declaration.
53927 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
53928 Do not check for gmtime_r.
53929 Replace mktime if __mktime_internal does not exist and if mktime
53930 hasn't been replaced already.
53932 2003-09-06 Paul Eggert <eggert@twinsun.com>
53934 * lib/time_r.c, lib/time_r.h: New files.
53936 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
53938 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
53939 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
53941 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
53943 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
53944 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
53945 Include <time_r.h>.
53947 * lib/timegm.c: Switch to glibc implementation, with the following
53949 [defined HAVE_CONFIG_H]: Include <config.h>.
53950 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
53951 (__mktime_internal) [!defined _LIBC]: New decl.
53952 (__gmtime_r) [!defined _LIBC]: New macro and function.
53953 (timegm): Use a prototype, since gnulib assumes C89.
53954 Do not bother declaring tmp to be const, as it's not really usefu.
53955 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
53956 (timegm): Declare only if HAVE_DECL_TIMEGM.
53958 2003-09-06 Paul Eggert <eggert@twinsun.com>
53960 * MODULES.html.sh (func_all_modules): Add time_r.
53961 * modules/time_r: New file.
53962 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
53963 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
53965 2003-09-03 Paul Eggert <eggert@twinsun.com>
53967 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
53968 Bug reported by Lute Kamstra in
53969 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
53971 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
53972 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
53973 course with correspondingly smaller numbers for tomorrow and
53974 yesterday. From Tadayoshi Funaba. Originally installed into
53975 sh-utils on 1999-08-07, but the patch got lost (I guess during the
53978 2003-08-31 Simon Josefsson <jas@extundo.com>
53980 * modules/timegm: New file.
53981 * MODULES.html.sh (func_all_modules): Add timegm.
53983 2003-08-31 Simon Josefsson <jas@extundo.com>
53985 * m4/timegm.m4: New file.
53987 2003-08-31 Simon Josefsson <jas@extundo.com>
53989 * lib/timegm.h: New file.
53990 * lib/timegm.c: New file. Based on
53991 wget-1.8.2/src/http.c:mktime_from_utc.
53993 2003-08-31 Karl Berry <karl@gnu.org>
53995 * lib/argp.h: update from libc.
53997 2003-08-28 Bruno Haible <bruno@clisp.org>
53999 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
54000 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
54001 followed by '#define fnmatch fnmatch_posix' gives an error.
54003 2003-08-28 Bruno Haible <bruno@clisp.org>
54005 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
54006 warning on QNX, which defines O_BINARY to 000000.
54008 2003-08-27 Jim Meyering <jim@meyering.net>
54010 * m4/mkstemp.m4: Require that the system mkstemp be able to create
54011 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
54012 would fail after 32. Reported by Danny Levinson. Details here:
54013 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
54015 2003-08-24 Bruno Haible <bruno@clisp.org>
54017 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
54018 MSVC7 <stdio.h> is included later.
54020 2003-08-22 Simon Josefsson <jas@extundo.com>
54022 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
54024 2003-08-20 Karl Berry <karl@gnu.org>
54026 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
54028 2003-08-20 Bruno Haible <bruno@clisp.org>
54030 * modules/progname: New file.
54031 * MODULES.html.sh (func_all_modules): Add progname.
54033 2003-08-20 Bruno Haible <bruno@clisp.org>
54035 * lib/progname.h: New file, from GNU gettext.
54036 * lib/progname.c: New file, from GNU gettext.
54037 * lib/progreloc.c: New file, from GNU gettext.
54039 2003-08-19 Jim Meyering <jim@meyering.net>
54041 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
54042 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
54044 2003-08-19 Bruno Haible <bruno@clisp.org>
54046 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
54049 2003-08-19 Bruno Haible <bruno@clisp.org>
54051 * lib/xstrdup.c: Assume <string.h> exists.
54053 2003-08-18 Paul Eggert <eggert@twinsun.com>
54055 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
54058 2003-08-18 Jim Meyering <jim@meyering.net>
54060 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
54061 * m4/lib-ld.m4: Likewise.
54063 2003-08-18 Jim Meyering <jim@meyering.net>
54065 * lib/setenv.h: Indent nested cpp directive.
54066 * lib/vasnprintf.c: Remove trailing blanks.
54068 2003-08-17 Simon Josefsson <jas@extundo.com>
54070 * modules/xstrndup: New file.
54071 * MODULES.html.sh (func_all_modules): Add xstrndup.
54073 2003-08-17 Simon Josefsson <jas@extundo.com>
54075 * modules/argp: Fix autoconf macro name. Add more dependencies.
54077 2003-08-17 Simon Josefsson <jas@extundo.com>
54079 * m4/xstrndup.m4: New file.
54081 2003-08-17 Simon Josefsson <jas@extundo.com>
54083 * m4/argp.m4: New file.
54085 2003-08-17 Simon Josefsson <jas@extundo.com>
54086 Bruno Haible <bruno@clisp.org>
54088 * lib/xstrndup.h: New file.
54089 * lib/xstrndup.c: New file.
54091 2003-08-17 Bruno Haible <bruno@clisp.org>
54093 * modules/strndup (Files, Include): Add lib/strndup.h.
54095 2003-08-17 Bruno Haible <bruno@clisp.org>
54097 * modules/euidaccess (Files): Add lib/euidaccess.h.
54099 2003-08-17 Bruno Haible <bruno@clisp.org>
54101 * lib/strndup.h: New file.
54103 2003-08-17 Bruno Haible <bruno@clisp.org>
54105 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
54106 like AC_GNU_SOURCE.
54107 * modules/extensions (configure.ac): Comment out the invocation of
54108 gl_USE_SYSTEM_EXTENSIONS.
54110 2003-08-16 Paul Eggert <eggert@twinsun.com>
54112 Merges from coreutils, etc.
54113 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
54114 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
54115 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
54117 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
54118 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
54120 2003-08-16 Paul Eggert <eggert@twinsun.com>
54122 Document merge from coreutils.
54123 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
54124 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
54125 * modules/utime: Add m4/utimes-null.m4.
54127 2003-08-16 Paul Eggert <eggert@twinsun.com>
54129 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
54130 space, undoing this 2003-08-12 change:
54131 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54133 2003-08-16 Paul Eggert <eggert@twinsun.com>
54135 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
54136 strtoul.c from libc, undoing this 2003-08-12 change:
54137 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54139 2003-08-16 Jim Meyering <jim@meyering.net>
54141 Merges from coreutils.
54142 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
54143 prefix. Adjust cache variables similarly. Create 500 rather than
54144 just 300 files, to exercise bug on Darwin6.5, too.
54145 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
54147 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
54148 AM_SYS_POSIX_TERMIOS.
54149 Reported by mkc@mathdogs.com.
54150 Also change use of $am_cv_sys_posix_termios
54151 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
54152 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
54153 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
54154 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
54155 in /proc/mounts until it finds one with matching device number. This
54156 is unnecessary when the FILE argument *is* a mount point. No stat call
54157 is necessary in that case. So, disable the statvfs-testing code on
54158 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
54159 as RedHat bug# 84846.
54160 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54161 to 1MB, so as not to render systems with no stack size limit (e.g.,
54162 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
54163 Include <unistd.h>. On some systems,
54164 it is required for the definition of _SC_PAGESIZE.
54166 2003-08-16 Jim Meyering <jim@meyering.net>
54168 Merge from coreutils.
54169 * lib/xstrtoimax.c: #else #if -> #elif.
54170 * lib/xstrtoumax.c: Likewise.
54172 2003-08-16 Jim Meyering <jim@meyering.net>
54174 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
54175 * m4/utimes.m4: Removed.
54176 * m4/utimes-null.m4: Renamed from utimes.m4.
54178 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54179 to 1MB, so as not to render systems with no stack size limit (e.g.,
54180 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
54181 Include <unistd.h>. On some systems,
54182 it is required for the definition of _SC_PAGESIZE.
54184 2003-08-16 Jim Meyering <jim@meyering.net>
54185 and Paul Eggert <eggert@cs.ucla.edu>
54187 Merges from coreutils, etc.
54189 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
54190 using the latest version from cvs. This avoids problems with #line
54191 directives using a vendor (Sun) compiler.
54192 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
54193 Don't set GETGROUPS_LIB here; now it's
54194 done via getgroups.m4's wrapper function.
54195 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
54196 rather than just in sh-util/configure.in, so that the
54197 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
54199 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
54200 AC_FUNC_GETLOADAVG where to find getloadavg.c.
54201 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
54202 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
54203 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
54204 Remove code that is now done by the newly-required macros.
54205 Append $(EXEEXT) to DF_PROG.
54206 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
54207 Do not invoke or require the following here,
54208 since prereq.m4 or some gnulib .m4 now does this for us:
54209 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
54210 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
54211 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
54212 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
54213 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
54214 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
54215 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
54217 Do not replace the following functions, as this is now the job
54218 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
54219 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
54220 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
54221 atexit getpass, strdup, getpagesize.
54223 Do not check for the following functions, as this is now the job
54224 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
54225 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
54227 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
54228 Check for sys/sysctl.h.
54229 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
54230 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
54231 of checking for ssize_t ourselves.
54233 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
54234 Require every macro that gnulib/modules/* suggests for us.
54235 (jm_PREREQ_ADDEXT): New macro.
54236 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
54237 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
54239 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
54240 (gl_PHYSMEM): Use it.
54241 Also check for `table' function.
54242 Check for new headers and functions.
54243 Add check for sys/sysmp.h.
54244 With suggestions from Kaveh Ghazi.
54245 Ignore headers that are present but cannot be compiled. This
54246 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
54249 2003-08-15 Paul Eggert <eggert@twinsun.com>
54251 Document merge from coreutils.
54252 * modules/userspec: Depend on posixver.
54253 * modules/strftime: Depend on tzset.
54255 2003-08-15 Paul Eggert <eggert@twinsun.com>
54257 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
54258 rather than tab, after '#' in shell-script copyright notices.
54259 Suggested by Bruno Haible.
54261 2003-08-15 Paul Eggert <eggert@twinsun.com>
54263 * config/srclist-update: Use three spaces, rather than tab, after '#'
54264 in shell-script copyright notices. Suggested by Bruno Haible.
54265 Remove unnecessary parenthesization in regular expression.
54267 2003-08-15 Jim Meyering <jim@meyering.net>
54269 Merge from coreutils.
54270 * lib/xgethostname.c: Include <stdlib.h>.
54271 (xghostname): Don't exit for anything other than memory-related
54272 failure; just return NULL.
54273 * lib/userspec.c: Include "posixver.h".
54274 (parse_user_spec): Accept `.' as a separator only
54275 in pre-POSIX-200112 mode.
54276 * lib/strtoimax.c: Use #elif rather than #else #if.
54277 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
54278 Remove function, now that we can rely on a working tzset function.
54279 [!_LIBC]: Ensure that the required autoconf test has been run.
54280 [!defined _NL_CURRENT && HAVE_STRFTIME]:
54281 Use underlying_strftime for %r.
54282 * lib/sha.c: Merge in some clean-up and optimization changes from
54284 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
54285 Ensure that it is a multiple of 64.
54286 Rearrange loop exit tests so as to avoid performing an
54287 additional fread after encountering an error or EOF.
54288 * lib/realloc.c: Update copyright date.
54290 2003-08-15 Jim Meyering <jim@meyering.net>
54291 and Paul Eggert <eggert@twinsun.com>
54293 Merge from coreutils.
54294 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
54295 member but strut utmpx does not. Needed for AIX 4.3.3.
54296 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
54298 2003-08-15 Jim Meyering <jim@meyering.net>
54299 and Paul Eggert <eggert@cs.ucla.edu>
54301 Merges from coreutils, etc.
54302 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
54303 Require gl_FUNC_TZSET_CLOBBER.
54304 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
54305 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
54308 2003-08-14 Paul Eggert <eggert@twinsun.com>
54310 Help the merge from coreutils.
54311 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
54312 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
54313 * m4/tzset.m4: Use it too.
54315 2003-08-14 Paul Eggert <eggert@twinsun.com>
54317 * modules/tzset: New file.
54319 2003-08-14 Jim Meyering <jim@meyering.net>
54321 Merges from coreutils.
54322 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
54323 variable names, rather than @FNMATCH_H@.
54324 * modules/alloca: Likewise for $(ALLOCA_H).
54326 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
54327 the three copies of the literal target, `fnmatch.h'.
54328 * modules/alloca (alloca.h): Likewise.
54330 2003-08-14 Jim Meyering <jim@meyering.net>
54332 Merge from coreutils.
54333 * m4/tzset.m4: New file.
54334 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
54335 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
54336 otherwise, AIX 5.1 systems would end up using the latter.
54337 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
54338 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
54339 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
54340 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
54342 2003-08-14 Jim Meyering <jim@meyering.net>
54344 Merge from coreutils.
54345 * lib/obstack.h: Whitespace changes.
54346 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
54347 and xcalloc return values.
54348 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
54349 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
54350 hang on OSF/1 5.1 for DIR on both local and remote file systems.
54351 Reported by (and fix confirmed by) Nelson H. F. Beebe.
54352 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
54354 Use mntctl's return value to drive the entry-processing loop, since
54355 we can't rely on the value of the vmt_length member in the last
54356 entry. On some systems doing so could result in exhausting
54357 virtual memory. Based in part on a patch from Mike Jetzer.
54359 2003-08-14 Jim Meyering <jim@meyering.net>
54360 and Paul Eggert <eggert@twinsun.com>
54362 Merges from coreutils, plus other fixes.
54363 * lib/physmem.c: Merge in portability changes from gcc/libiberty
54364 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
54365 for credits and details. Thanks to Kaveh Ghazi for helping
54366 to keep these files in sync.
54367 (ARRAY_SIZE): Define it.
54368 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
54369 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
54370 (memcasecmp): Don't assume size_t fits in unsigned int.
54371 Remove casts and duplicate code.
54372 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
54373 (memcpy): Remove definition.
54374 Merge in some clean-up and optimization changes from glibc.
54375 [BLOCKSIZE]: Move definition to top of file.
54376 Ensure that it is a multiple of 64.
54377 Rearrange loop exit tests so as to avoid performing an
54378 additional fread after encountering an error or EOF.
54379 * lib/md5.h (md5_uintptr): Define.
54380 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
54381 return to the initial working directory. Preserve errno
54383 * lib/idcache.c: Include "xalloc.h".
54384 (xmalloc, xrealloc): Remove decls.
54385 (getuser): Remove casts no longer required in C89.
54386 * lib/human.c: Include stdio.h, for sprintf.
54387 * lib/group-member.c: Include "xalloc.h".
54388 (xmalloc, xrealloc): Remove decls.
54389 (get_group_info): Remove casts no longer required in C89.
54390 * lib/getusershell.c (readname): Remove casts no longer required in
54392 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
54393 * lib/getline.c: Whitespace fix, from coreutils.
54395 2003-08-13 Paul Eggert <eggert@twinsun.com>
54397 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
54400 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54401 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54402 Undo previous (whitespace-only) change.
54404 2003-08-13 Paul Eggert <eggert@twinsun.com>
54406 * lib/exclude.c: Include <ctype.h>
54407 (IN_CTYPE_DOMAIN): New macro.
54408 (is_space): New fn.
54409 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
54412 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54413 Undo previous (whitespace-only) change.
54415 2003-08-13 Paul Eggert <eggert@twinsun.com>
54417 * config/srclist-update: Change update back to the old behavior,
54418 leaving whitespace alone. Use one 'sed' command rather than a
54420 (fixlicense): Now a variable, not a function.
54421 (remove_trailing_blanks): Remove.
54422 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
54423 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54424 Undo previous (whitespace-only) change.
54426 2003-08-12 Paul Eggert <eggert@twinsun.com>
54428 Merge from coreutils.
54429 * modules/euidaccess: Add lib_SOURCES, include for new
54432 2003-08-12 Paul Eggert <eggert@twinsun.com>
54434 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54435 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54436 Normalize leading white space and remove trailing white space.
54438 Merge from coreutils
54439 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
54441 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
54442 0.12.1. These files are now being upgraded automatically by
54443 ../config/srclist-update.
54445 2003-08-12 Paul Eggert <eggert@twinsun.com>
54447 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54448 Normalize leading white space and remove trailing white space.
54449 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
54450 notice, as per ../config/srclist-update.
54452 Merge from coreutils.
54453 * lib/euidaccess.h: New file.
54454 * lib/euidaccess.c: Include it.
54455 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
54456 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
54457 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
54459 2003-08-12 Paul Eggert <eggert@twinsun.com>
54461 * config/srclist-update: Add copyright notice.
54462 (remove_id_lines, remove_trailing_blanks): New constants.
54463 (fixfile): Use them to normalize spacing a bit in copied files.
54464 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54465 Normalize leading white space and remove trailing white space.
54467 * config/texinfo.tex: Sync with texinfo.
54469 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
54470 strtoul.c from libc, to merge coreutils whitespace changes.
54472 * config/srclist.txt: Get the following m4 files from gettext:
54473 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
54474 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
54475 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
54478 2003-08-12 Karl Berry <karl@gnu.org>
54480 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
54483 2003-08-11 Paul Eggert <eggert@twinsun.com>
54485 * modules/gnu-source, m4/gnu-source.m4:
54486 Remove; we're assuming Autoconf 2.54 or later now.
54487 Suggested by Bruno Haible.
54488 * MODULES.html.sh (func_all_modules): Remove gnu-source.
54490 2003-08-11 Bruno Haible <bruno@clisp.org>
54492 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
54494 2003-08-11 Bruno Haible <bruno@clisp.org>
54496 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
54497 (vasnprintf): Use it instead of wcslen.
54499 2003-08-11 Bruno Haible <bruno@clisp.org>
54501 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
54502 value to ensure that _Bool promotes to int. Use #define for _Bool when
54503 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
54505 2003-08-10 Karl Berry <karl@gnu.org>
54507 * lib/regex.h: update from libc (whitespace fix).
54509 2003-08-09 Paul Eggert <eggert@twinsun.com>
54511 Merge some files from coreutils. These changes were
54512 originally made by Jim Meyering.
54513 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
54514 many older Unixes require this.
54515 * lib/alloca.c (alloca): Remove cast to argument of free;
54516 no longer needed in C89.
54517 * lib/alloca_.h, regex.h: Fix white space to match
54518 what GNU indent does.
54520 2003-08-09 Paul Eggert <eggert@twinsun.com>
54522 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
54523 apparently Emacs's Unicode mode got confused before my 2003-08-05
54526 2003-08-08 Paul Eggert <eggert@twinsun.com>
54528 * m4/extensions.m4: New file.
54529 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
54530 Require gl_USE_SYSTEM_EXTENSIONS.
54531 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
54532 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
54534 2003-08-08 Paul Eggert <eggert@twinsun.com>
54536 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
54537 * modules/extensions, modules/gnu-source: New files.
54538 * modules/timespec, modules/unlocked-io: Depend on extensions.
54540 2003-08-07 Paul Eggert <eggert@twinsun.com>
54542 * modules/restrict: New file.
54543 * MODULES.html.sh (func_all_modules): Add restrict.
54544 * modules/regex: Depend on restrict.
54546 2003-08-07 Paul Eggert <eggert@twinsun.com>
54548 * m4/restrict.m4: New file.
54549 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
54551 2003-08-07 Bruno Haible <bruno@clisp.org>
54553 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
54554 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
54556 2003-08-07 Bruno Haible <bruno@clisp.org>
54558 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
54559 makes the module 'getndelim2' compatible with the module 'getline'.
54561 2003-08-05 Paul Eggert <eggert@twinsun.com>
54563 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
54564 byte with "\201" to avoid glitches when editing that source file
54565 with multi-gnome-terminal.
54567 2003-08-05 Paul Eggert <eggert@twinsun.com>
54569 * lib/bumpalloc.h: Remove.
54571 2003-08-05 Paul Eggert <eggert@twinsun.com>
54573 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
54574 * modules/bumpalloc: Remove.
54576 2003-08-04 Paul Eggert <eggert@twinsun.com>
54578 * lib/getloadavg.c: Change copyright notice and spacing to conform to
54581 Merge from coreutils.
54582 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
54584 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
54585 from Karl Berry, implemented by Jim Meyering.
54586 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
54587 from Dmitry V. Levin.
54588 Remove anachronistic cast of xrealloc.
54589 * lib/fnmatch_.h (__const): Remove. Use 'const'.
54590 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
54591 type. Otherwise, it wouldn't compile with at least /bin/cc on
54592 ymp-cray-unicos9.0.2.X.
54593 Combine two mostly-identical uses of alloca into one.
54594 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
54596 2003-08-04 Dave Love <d.love@dl.ac.uk>
54600 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
54601 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
54602 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
54603 obsolete NLIST_NAME_UNION.
54604 [__GNU__]: Undef BSD and FSCALE.
54605 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
54607 2003-08-03 Paul Eggert <eggert@twinsun.com>
54609 * lib/stdbool_.h (_Bool): Make it signed char, instead of
54610 an enum type, so that it's guaranteed to promote to int. See:
54611 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
54613 2003-08-03 Karl Berry <karl@gnu.org>
54615 * config/depcomp: update from automake.
54617 2003-07-31 Paul Eggert <eggert@twinsun.com>
54619 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
54620 (strerror): Don't assume that a printable int fits in 14 bytes.
54622 2003-07-31 Bruno Haible <bruno@clisp.org>
54624 * modules/getpass-gnu: New file.
54625 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
54627 2003-07-31 Bruno Haible <bruno@clisp.org>
54629 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
54631 2003-07-24 Karl Berry <karl@gnu.org>
54633 * config/missing: update from automake.
54635 2003-07-24 Derek Robert Price <derek@ximbiot.com>
54636 Bruno Haible <bruno@clisp.org>
54638 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
54639 * lib/getline.c (getline, getdelim): Likewise.
54640 Remove _GNU_SOURCE define; now it's defined in config.h through
54643 2003-07-23 Karl Berry <karl@gnu.org>
54645 * config/config.sub: update from prep.
54647 2003-07-22 Paul Eggert <eggert@twinsun.com>
54649 * modules/xalloc (Depends-on): Add exitfail.
54650 * modules/xmemcoll: Likewise.
54652 2003-07-22 Paul Eggert <eggert@twinsun.com>
54654 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
54655 over-parenthesization in macros.
54657 Sync with coreutils.
54659 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
54662 Use `exit_failure' for xalloc and xmemcoll instead of their own
54663 private exit-failure variables.
54664 * lib/xalloc.h (xalloc_exit_failure): Remove.
54665 * lib/xmalloc.c: Likewise. Include exitfail.h.
54666 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
54667 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
54668 * lib/xmemcoll.c: Likewise. Include exitfail.h.
54669 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
54671 2003-07-20 Jim Meyering <jim@meyering.net>
54673 * modules/closeout (Depends-on): Add exitfail.
54674 Suggestion from Bruno Haible.
54676 2003-07-19 Karl Berry <karl@gnu.org>
54678 * config/config.sub: update from prep.
54680 2003-07-18 Paul Eggert <eggert@twinsun.com>
54682 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
54684 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
54685 to test that it can stand by itself. Include "exitfail.h".
54686 Clients should set exit_failure instead.
54687 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
54689 2003-07-18 Bruno Haible <bruno@clisp.org>
54691 * modules/getndelim2: New file.
54692 * modules/getline: Share files with module getndelim2.
54693 * modules/getnline: Depend on getndelim2 instead of sharing files with
54694 it. Add getnline.c to lib_SOURCES.
54695 * MODULES.html.sh (func_all_modules): Add getndelim2.
54697 2003-07-18 Bruno Haible <bruno@clisp.org>
54699 * m4/getndelim2.m4: New file.
54700 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
54701 invoke gl_PREREQ_GETNDELIM2.
54702 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
54703 gl_PREREQ_GETNDELIM2.
54704 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
54707 2003-07-18 Bruno Haible <bruno@clisp.org>
54709 * lib/getndelim2.h: New file.
54710 * lib/getndelim2.c: Make into a module of its own. Include config.h,
54712 (getndelim2): Make non-static. Change return type to ssize_t.
54713 * lib/getline.h: Change argument names.
54714 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
54715 * lib/getnline.c: Include getndelim2.h.
54717 2003-07-18 Andreas Schwab <schwab@suse.de>
54719 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
54721 2003-07-17 Karl Berry <karl@gnu.org>
54723 * config/config.sub: update from prep.
54725 2003-07-17 Bruno Haible <bruno@clisp.org>
54727 * modules/getnline: New file.
54728 * modules/getline: Add lib/getndelim2.c to source file list.
54729 * MODULES.html.sh (func_all_modules): Add getnline.
54731 2003-07-17 Bruno Haible <bruno@clisp.org>
54733 * m4/getnline.m4: New file.
54735 2003-07-17 Bruno Haible <bruno@clisp.org>
54737 * m4/Makefile.am.in: Remove file.
54738 * m4/Makefile.am: Remove file.
54739 * m4/Makefile.in: Remove file.
54741 2003-07-17 Bruno Haible <bruno@clisp.org>
54743 * lib/getnline.h: New file.
54744 * lib/getnline.c: New file.
54745 * lib/getndelim2.c: New file, extracted from getline.c.
54746 (getndelim2): Renamed from getdelim2, with added nmax argument.
54747 * lib/getline.c: Include getndelim2.c.
54748 (getdelim2): Moved out to getndelim2.c.
54749 (getline, getdelim): Update.
54751 2003-07-17 Bruno Haible <bruno@clisp.org>
54753 * lib/Makefile.am: Remove file.
54754 * lib/Makefile.in: Remove file.
54756 2003-07-17 Bruno Haible <bruno@clisp.org>
54758 * configure.in: Remove file.
54759 * Makefile.in: Remove file.
54761 2003-07-17 Bruno Haible <bruno@clisp.org>
54763 * MODULES.html.sh: Put the </BODY> right before </HTML>.
54765 2003-07-16 Karl Berry <karl@gnu.org>
54767 * config/srclist-update: was running fixlicense twice, which caused
54768 texinfo.tex to be nullified for some reason. Simplify,
54769 $gplsrc is no longer needed as far as I can see?
54771 2003-07-16 Jim Meyering <jim@meyering.net>
54773 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
54775 2003-07-15 Paul Eggert <eggert@twinsun.com>
54777 * config/srclist.txt: Get the following files from gettext-runtime/intl
54778 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
54779 ref-del.sin. From Bruno Haible.
54780 * config/srclist-update (fixfile): Change grep pattern again, since the
54781 previous fix didn't work (there was another trailing $). Use
54782 '[$]' to escape the $s.
54784 2003-07-15 Karl Berry <karl@gnu.org>
54786 * lib/vasnprintf.c: update from gettext.
54788 2003-07-15 Karl Berry <karl@gnu.org>
54790 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
54791 gets expanded when surrounded by '$'.
54793 2003-07-15 Jim Meyering <jim@meyering.net>
54795 * modules/save-cwd: Don't depend on error. From Derek Price.
54797 2003-07-15 Jim Meyering <jim@meyering.net>
54799 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
54801 2003-07-14 Simon Josefsson <jas@extundo.com>
54803 * modules/mempcpy: New file.
54804 * MODULES.html.sh (func_all_modules): Add mempcpy.
54806 2003-07-14 Simon Josefsson <jas@extundo.com>
54808 * m4/mempcpy.m4: New file.
54810 2003-07-14 Simon Josefsson <jas@extundo.com>
54812 * lib/mempcpy.h: New file.
54813 * lib/mempcpy.c: New file.
54815 2003-07-14 Paul Eggert <eggert@twinsun.com>
54817 * modules/getdate, modules/posixtm: Depend on mktime.
54819 2003-07-14 Paul Eggert <eggert@twinsun.com>
54821 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
54822 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
54823 unicodeio.c, unicodeio.h, unlocked-io.h:
54824 Switch from LGPL to GPL.
54826 2003-07-14 Paul Eggert <eggert@twinsun.com>
54828 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
54829 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
54830 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
54831 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
54832 vasprintf.c, vasprintf.h: Regenerate. These files are now being
54833 updated automatically by ../config/srclist-update. This changes
54834 their license from LPGL to GPL.
54836 2003-07-14 Paul Eggert <eggert@twinsun.com>
54838 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
54839 assumed to refer to the root of the most recent stable gettext version.
54840 * config/srclistvars.sh: Add defaults for eggert.
54841 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
54842 Match "This program" as well as "The program". This is needed
54845 2003-07-14 Jim Meyering <jim@meyering.net>
54847 Don't emit diagnostics. Let callers do that.
54848 * lib/save-cwd.c: Don't include "error.h".
54849 (save_cwd): Don't call error. Ensure that errno is valid
54850 when returning nonzero.
54852 * lib/save-cwd.h (restore_cwd): Update prototype.
54853 * lib/save-cwd.c (restore_cwd): Remove two parameters.
54854 Simplify. Don't call error upon failure. Let callers do that.
54855 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
54856 when auditing is enabled. But don't bother updating the #if.
54858 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
54860 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
54861 it breaks C++ compilation.
54862 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
54864 2003-07-10 Simon Josefsson <jas@extundo.com>
54866 * modules/strchrnul (Makefile.am): Add strchrnul.h.
54868 2003-07-10 Jim Meyering <jim@meyering.net>
54870 * m4/clock_time.m4: Remove trailing blank.
54871 * m4/intmax_t.m4: Likewise.
54873 2003-07-10 Jim Meyering <jim@meyering.net>
54875 * lib/vasnprintf.c: Remove trailing blanks.
54876 Make cpp indentation consistent.
54878 2003-07-09 Paul Eggert <eggert@twinsun.com>
54880 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
54881 posixver.c, strftime.c, strnlen.c, strverscmp.c:
54882 Switch from LGPL to GPL.
54884 2003-07-09 Paul Eggert <eggert@twinsun.com>
54886 * config/srclist.txt: Sort sublists. Add
54887 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
54888 that differ from gnulib for one reason or another; we'd like this list
54889 to be smaller but for now let's document what we have.
54891 2003-07-08 Paul Eggert <eggert@twinsun.com>
54893 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
54894 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
54895 and sweeter "eval x=$x".
54896 * config/srclist.txt: Get lib/argp* from glibc.
54898 2003-07-07 Paul Eggert <eggert@twinsun.com>
54900 * lib/mktime.c: Fix some boundary cases and remove need for floating
54903 Issue a compile-time diagnostic if time_t is floating point, or if
54904 two's complement arithmetic is not in effect, or if arithmetic
54905 right shift does not propagate the sign. These assumptions were
54906 all in the original code but they weren't checked.
54908 (TIME_T_MIDPOINT, verify): New macros.
54909 (__isleap): Remove; it has integer overflow problems.
54910 (leapyear): New function, without those problems.
54911 (ydhms_tm_diff): Remove; splitting into two parts.
54912 (ydhms_diff): New function, containing the arithmetic part of
54913 the old ydhms_tm_diff function. Issue a compile-time
54914 diagnostic if we are not using C99 integer division.
54915 Avoid casts when possible.
54916 (guess_time_tm): New function, containing the checking part of
54917 the old ydhms_tm_diff function. Return the new value, rather than
54918 the difference between it and the old. Accept a new argument T
54919 so that *T specifies the old value. Check for overflow in the result.
54921 (__mktime_internal): Use a time_t offset, not a long int offset.
54922 This undoes the 2003-06-04 change, which is no longer needed now
54923 that we have better overflow checking.
54924 (localtime_offset): Likewise.
54926 (__mktime_internal): Avoid harmful overflow on hosts where time_t
54927 and long are 64-bit but int is only 32-bit.
54928 (ydhms_diff): Use long int to store year1 and yday1.
54929 Issue a compile-time diagnostic if long int is not wide enough.
54931 (__mktime_internal): Use long int to store adjusted year and yday.
54932 Use plain C rather than preprocessor commands, if that doesn't
54934 Check for overflow (and try to repair) after each probe
54935 rather than checking only at the very end. This avoids some bugs
54936 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
54937 does not equal GMT offset at maximum time).
54938 Use integer to check for overflow rather than floating point; this
54939 is more portable to non-IEEE hosts, and is a tad faster.
54940 When we detect that we are oscillating between two values,
54941 don't check whether tm_isdst has the requested value, since
54942 we already know the answer. When tm_isdst has the wrong value,
54943 use a different heuristic to find the right one, based on the
54944 extreme values actually observed in practice in tz2003a,
54945 rather than the (overly optimistic) "previous 3 calendar quarters".
54947 (not_equal_tm, print_tm, check_result): Use "const T" rather than
54948 "T const" to accommodate glibc style.
54949 (check_result): Use less-confusing report format. "long" -> "long int.
54951 Don't loop if the iteration overflows time_t.
54952 Allow a negative step in the iteration.
54954 2003-07-06 Karl Berry <karl@gnu.org>
54956 * config/depcomp: update from automake.
54957 * config/config.sub: update from prep.
54959 2003-07-03 Karl Berry <karl@gnu.org>
54961 * config/config.guess: update from prep.
54963 2003-07-01 Paul Eggert <eggert@twinsun.com>
54965 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
54966 xreadlink.c now includes it unconditionally.
54968 2003-07-01 Paul Eggert <eggert@twinsun.com>
54970 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
54971 having it depend on HAVE_SYS_TYPES_H.
54973 2003-07-01 Bruno Haible <bruno@clisp.org>
54975 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
54976 <sys/types.h> should be sufficient.
54977 Reported by Paul Eggert.
54979 2003-06-26 Karl Berry <karl@gnu.org>
54981 * config/depcomp: update from automake.
54983 2003-06-26 Bruno Haible <bruno@clisp.org>
54985 * modules/human: Depend on module stdbool.
54987 2003-06-25 Bruno Haible <bruno@clisp.org>
54989 * modules/readlink: New file.
54990 * modules/xreadlink: Depend on it.
54991 * MODULES.html.sh (func_all_modules): Add readlink.
54993 2003-06-25 Bruno Haible <bruno@clisp.org>
54995 * m4/readlink.m4: New file.
54997 2003-06-25 Bruno Haible <bruno@clisp.org>
54999 * lib/readlink.c: New file.
55001 2003-06-22 Karl Berry <karl@gnu.org>
55003 * config/srclist.txt: update mkinstalldirs from automake.
55004 * config/mkinstalldirs: update.
55006 2003-06-22 Bruno Haible <bruno@clisp.org>
55008 Portability to mingw32.
55009 * m4/ssize_t.m4: New file, from GNU gettext.
55010 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
55011 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
55013 2003-06-22 Bruno Haible <bruno@clisp.org>
55015 * modules/safe-read: Add m4/ssize_t.m4.
55016 * modules/xreadlink: Add m4/ssize_t.m4.
55018 2003-06-20 Bruno Haible <bruno@clisp.org>
55020 Assume C89, so PARAMS isn't needed.
55021 * lib/unicodeio.h (PARAMS): Remove.
55022 * lib/unicodeio.c: Don't use PARAMS.
55024 2003-06-18 Karl Berry <karl@gnu.org>
55026 * config/config.{guess,sub}: update from prep.
55028 2003-06-18 Jim Meyering <jim@meyering.net>
55030 Merge changes from coreutils.
55031 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
55032 Remove explicit declarations of xmalloc and realloc.
55034 (read_utmp): Remove anachronistic cast of xmalloc.
55036 2003-06-17 Paul Eggert <eggert@twinsun.com>
55038 Assume C89, so PARAMS isn't needed.
55039 * lib/backupfile.h (PARAMS): Remove. All uses removed.
55040 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
55041 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
55042 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
55043 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
55044 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
55045 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
55046 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
55047 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
55048 lib/xstrtod.h, lib/xstrtol.h: Likewise.
55049 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
55050 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
55051 no longer needed. Anyway, config.h should always be included before any
55054 2003-06-11 Simon Josefsson <jas@extundo.com>
55056 * modules/sysexits: New file.
55057 * MODULES.html.sh (func_all_modules): Add sysexits.
55059 2003-06-11 Simon Josefsson <jas@extundo.com>
55061 * lib/sysexit_.h: New file.
55063 2003-06-11 Derek Price <derek@ximbiot.com>
55065 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
55068 2003-06-11 Bruno Haible <bruno@clisp.org>
55070 * m4/sysexits.m4: New file.
55072 2003-06-10 Simon Josefsson <jas@extundo.com>
55074 * lib/argp.h: New file, from glibc.
55075 * lib/argp-ba.c: New file, from glibc.
55076 * lib/argp-eexst.c: New file, from glibc.
55077 * lib/argp-fmtstream.c: New file, from glibc.
55078 * lib/argp-fmtstream.h: New file, from glibc.
55079 * lib/argp-fs-xinl.c: New file, from glibc.
55080 * lib/argp-help.c: New file, from glibc.
55081 * lib/argp-namefrob.h: New file, from glibc.
55082 * lib/argp-parse.c: New file, from glibc.
55083 * lib/argp-pv.c: New file, from glibc.
55084 * lib/argp-pvh.c: New file, from glibc.
55085 * lib/argp-xinl.c: New file, from glibc.
55087 2003-06-10 Simon Josefsson <jas@extundo.com>
55089 * modules/strchrnul: New file.
55091 2003-06-10 Simon Josefsson <jas@extundo.com>
55093 * modules/argp: New file.
55095 2003-06-10 Simon Josefsson <jas@extundo.com>
55097 * m4/strchrnul.m4: New file.
55099 2003-06-10 Simon Josefsson <jas@extundo.com>
55101 * lib/strchrnul.h: New file.
55102 * lib/strchrnul.c: New file.
55104 2003-06-10 Bruno Haible <bruno@clisp.org>
55106 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
55108 2003-06-07 Karl Berry <karl@gnu.org>
55110 * config/config.{guess,sub}: update from prep.
55112 2003-06-07 Jim Meyering <jim@meyering.net>
55114 * modules/strtod: Use $(...) notation, not @...@ for
55115 AC_REPLACE'd variables.
55116 * modules/localcharset: Likewise.
55118 2003-06-07 Jim Meyering <jim@meyering.net>
55120 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
55121 in place of my name in the copyright comment.
55122 Remove definition and uses of __P.
55125 * lib/stat.c: Don't declare xmalloc explicitly.
55126 Instead, include "xalloc.h".
55127 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
55128 xrealloc, and xcalloc return values.
55129 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
55131 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
55133 2003-06-07 Bruno Haible <bruno@clisp.org>
55135 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
55136 avoid AC_CONFIG_LINKS.
55137 * modules/fnmatch (Makefile.am): Use explicit creation rule for
55138 fnmatch.h, to avoid AC_CONFIG_LINKS.
55139 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
55141 2003-06-07 Bruno Haible <bruno@clisp.org>
55143 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
55144 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
55145 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55147 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
55148 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55151 2003-06-06 Jim Meyering <jim@meyering.net>
55153 Merge from coreutils.
55154 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
55155 Consolidate declarations and initializations of *_base* locals.
55157 Merge from coreutils.
55158 This avoids a core dump on systems without GNU putenv,
55159 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
55160 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
55161 (unsetenv): New static function, from GNU libc.
55162 (rpl_putenv): Use it.
55164 * lib/modechange.c: Remove trailing blanks.
55166 Merge from coreutils.
55167 * lib/fsusage.c: Remove declaration of statfs.
55168 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
55170 * lib/posixtm.c: Include <stdbool.h> unconditionally.
55172 2003-06-06 Jim Meyering <jim@meyering.net>
55174 * lib/stdbool_.h: Renamed from stdbool.h.in.
55176 2003-06-06 Jim Meyering <jim@meyering.net>
55177 Bruno Haible <bruno@clisp.org>
55179 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
55180 Adjust Makefile.am snippet not to redirect directly to target.
55181 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
55183 2003-06-05 Paul Eggert <eggert@twinsun.com>
55185 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
55186 mismatch, look in future quarters as well as past. This fixes a
55187 bug when processing fall-backwards gaps immediately after a long
55188 period of daylight-saving time.
55190 * lib/mktime.c: Assume freestanding C89 or better.
55191 (HAVE_LIMITS_H): Remove. Assume it's 1.
55192 (__P): Remove; not used.
55193 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
55194 (mktime, not_equal_tm, print_tm, check_result,
55195 main): Use prototypes. Use const * where appropriate.
55196 (main): Fix typo in testing code that uncovered by above changes.
55197 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
55199 2003-06-04 Paul Eggert <eggert@twinsun.com>
55201 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
55202 locale.h, localeconv. This merges changes from coreutils.
55204 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
55205 It can be removed after the next Autoconf is released.
55206 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
55209 2003-06-04 Paul Eggert <eggert@twinsun.com>
55211 * lib/mktime.c: Fix Debian bug 177940
55212 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
55213 (localtime_offset): Now long int, not time_t, because we want it
55214 to be guaranteed to be signed. All uses changed.
55215 (__mktime_internal): If overflow would occur when adding offset,
55218 Merge 'human' changes from coreutils. Rewrite to support
55219 locale-specific notations like thousands separators.
55220 * lib/human.c: Simplify authorship notice.
55221 Include human.h immediately after config.h.
55222 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
55223 <limits.h>: Do not include, since human.h does.
55224 (SIZE_MAX, UINTMAX_MAX): New macros.
55225 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
55226 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
55227 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
55228 (power_letter): Renamed from suffixes.
55229 (generate_suffix_backwards): Remove.
55230 (adjust_value): Now takes int style (because of human.h changes)
55231 and long double value (for greater precision on some platforms).
55232 (group_number): New function.
55233 (human_readable): Use it. Use integer options, not enum.
55234 Put the options before the sizes in the arg list.
55235 Support all the new options.
55236 The old human_readable function has been removed;
55237 use inttostr.h instead.
55238 (human_readable, default_block_size, humblock):
55239 Use uintmax_t, not int, for block sizes.
55240 (human_readable_inexact, block_size_types): Remove.
55241 (block_size_opts): New constant.
55242 (human_options): Renamed from human_block_size, with new signature
55243 that allows block sizes up to UINTMAX_MAX. All callers changed.
55244 * lib/human.h: Add copyright and authorship notice.
55245 Include <limits.h> and <stdbool.h> unconditionally.
55246 (PARAMS): Remove. All uses removed.
55247 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
55248 (enum human_inexact_style): Remove tag; now a nameless enum.
55249 (human_floor, human_ceiling, human_round_to_even): Now have
55250 values 2, 0, 1 rather than -1, 1, 0.
55251 (human_group_digits, human_suppress_point_zero, human_autoscale,
55252 human_base_1024, human_SI, human_B): New constants.
55253 (human_readable_inexact, human_block_size): Remove.
55254 (human_readable): Size args are now uintmax_t, not int.
55255 (human_options): New decl.
55257 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
55258 unnecessary now that we assume C89 or better. This change
55259 imported from coreutils.
55261 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55262 arbitrarily. This is the same patch as 2003-05-28, but it got lost
55263 in the 2003-05-30 sync from glibc.
55265 .h files should stand alone, but we shouldn't include <sys/types.h>
55266 if we can get away with just <stddef.h>.
55268 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
55269 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
55270 rather than <sys/types.h>, as we merely need size_t.
55271 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
55273 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
55274 Include <stdio.h>, to get FILE.
55275 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
55276 memcasecmp.h has included <stddef.h> and all we need is size_t.
55277 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
55278 our interface, instead of including <sys/types.h>
55280 2003-06-04 Paul Eggert <eggert@twinsun.com>
55282 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
55283 now, as glibc mktime is buggy on non-glibc systems.
55285 2003-06-03 Karl Berry <karl@gnu.org>
55287 * config/config.sub: update from prep.
55289 2003-06-02 Paul Eggert <eggert@twinsun.com>
55292 Fix some minor time-related bugs with POSIX time arguments.
55293 Some valid time stamps were being rejected (notably -1, and
55294 time stamps before 1900 on 64-bit hosts). And some invalid
55295 time stamps were being accepted, e.g. September 31.
55297 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
55298 that we can return (time_t) -1 successfully.
55299 * lib/posixtm.c: Likewise.
55300 [HAVE_STDBOOL_H]: Include <stdbool.h>.
55301 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
55302 (t): Remove static var.
55303 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
55304 of static var. All uses changed.
55305 (year): Do not reject years before 1900; they can occur with
55307 (posix_time_parse): Do not check for out-of-range components;
55308 that is now the caller's responsibility, since our checks were
55309 only approximations.
55310 (posixtime): Use mktime to check for out-of-range components,
55311 since it knows them exactly.
55312 If mktime returns (time_t) -1, check whether an error actually occurred
55313 by invoking localtime on -1.
55314 (main) [TEST_POSIXTIME]: Check for input data errors, and report
55315 posixtime failures better.
55316 Improve the test data (in comments only).
55318 2003-06-02 Karl Berry <karl@gnu.org>
55320 * config/mkinstalldirs (version): new variable.
55321 (--version): new option.
55322 (usage): improve message.
55324 2003-05-30 Karl Berry <karl@gnu.org>
55326 * lib/mktime.c: update from libc.
55328 2003-05-30 Bruno Haible <bruno@clisp.org>
55330 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
55331 * config/config.rpath: Upgrade to gettext-0.12.1.
55333 2003-05-30 Bruno Haible <bruno@clisp.org>
55335 * m4/gettext.m4: Upgrade to gettext-0.12.1.
55336 * m4/nls.m4: New file, from gettext-0.12.1.
55337 * m4/po.m4: New file, from gettext-0.12.1.
55338 * m4/progtest.m4: Upgrade to gettext-0.12.1.
55340 2003-05-30 Bruno Haible <bruno@clisp.org>
55342 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
55343 * lib/localcharset.h: Likewise.
55344 * lib/localcharset.c: Likewise.
55346 2003-05-29 Karl Berry <karl@gnu.org>
55348 * config/config.rpath: update from gettext.
55350 2003-05-28 Paul Eggert <eggert@twinsun.com>
55352 Assume the headers required for C89 freestanding compilers.
55353 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
55354 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
55355 * m4/human.m4 (gl_HUMAN): Likewise.
55356 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
55357 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
55358 * m4/userspec.m4 (gl_USERSPEC): Likewise.
55359 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
55360 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55361 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
55363 2003-05-28 Paul Eggert <eggert@twinsun.com>
55365 Assume the headers required for C89 freestanding compilers.
55366 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
55367 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
55368 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
55369 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
55370 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
55371 define, since <limits.h> is guaranteed to do that.
55372 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
55373 * lib/exclude.c: Include <stdbool.h> unconditionally.
55374 * lib/tempname.c: Include <stddef.h> unconditionally.
55375 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
55376 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
55377 <stddef.h> does that.
55378 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
55379 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
55380 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
55382 * lib/xstrtol.c: Likewise.
55383 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
55384 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
55386 * lib/addext.c (addext): Use assignment rather than cast, to avoid
55387 warnings on some platforms.
55389 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55392 2003-05-26 Jim Meyering <jim@meyering.net>
55394 Merge in a change from coreutils:
55395 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
55396 that is guaranteed to be `no'. Use `no_such_member' to indicate
55397 that condition, rather than `-1' which is slightly misleading.
55398 Change the name of the cache variable to have the gl_ prefix.
55399 Prompted by a patch from Richard Dawe for DJGPP.
55401 2003-05-24 Karl Berry <karl@gnu.org>
55403 * config/config.guess: update from prep.
55405 2003-05-22 Karl Berry <karl@gnu.org>
55407 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
55409 2003-05-20 Karl Berry <karl@gnu.org>
55411 * config/config.guess: update from prep.
55413 2003-05-18 Karl Berry <karl@gnu.org>
55415 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
55416 might actually be set by the user.
55418 * config/depcomp, install-sh, mdate-sh: update from automake.
55420 2003-05-17 Bruno Haible <bruno@clisp.org>
55422 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
55423 invalid expansion for AC_EGREP_CPP.
55424 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
55425 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55426 Suggested by Akim Demaille <akim@epita.fr> in
55427 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
55429 2003-05-12 Jim Meyering <jim@meyering.net>
55431 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
55432 the space-padded-by-default conversion specifiers, %e, %k, %l.
55434 2003-05-12 Bruno Haible <bruno@clisp.org>
55436 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
55437 the string is longer than 4 KB.
55439 2003-05-11 Karl Berry <karl@gnu.org>
55441 * config/config.{guess,sub}: update from prep.
55443 2003-05-09 Bruno Haible <bruno@clisp.org>
55445 * modules/error: Add m4/strerror_r.m4 to file list.
55447 2003-05-03 Bruno Haible <bruno@clisp.org>
55449 Upgrade to Unicode-4.0.
55450 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
55451 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
55452 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
55453 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
55454 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
55455 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
55456 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
55457 Change width of U+E0100..U+E01EF from 1 to 0.
55459 2003-04-25 Jim Meyering <jim@meyering.net>
55461 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
55462 of type size_t, not int.
55464 2003-04-25 Bruno Haible <bruno@clisp.org>
55466 * lib/copy-file.c: Include <stddef.h>, for size_t.
55468 2003-04-21 Paul Eggert <eggert@twinsun.com>
55470 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
55471 code which expansion is under static control. Patch imported from
55472 Akim Demaille's patch to Bison; see
55473 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
55475 2003-04-14 Bruno Haible <bruno@clisp.org>
55477 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
55479 2003-04-11 Jim Meyering <jim@meyering.net>
55481 Merge changes from Coreutils.
55483 2003-03-22 Jim Meyering <jim@meyering.net>
55485 * lib/strftime.c (widen): Cast alloca return value to proper type.
55487 2003-01-19 Ulrich Drepper <drepper@redhat.com>
55490 * lib/strftime.c (my_strftime): Handle very large width
55491 specifications for numeric values correctly. Improve checks for
55494 2003-01-19 Jim Meyering <jim@meyering.net>
55496 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
55498 (nl_get_alt_digit) [! defined my_strftime]: Define.
55499 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
55500 _nl_get_alt_digit and _nl_get_walt_digit.
55502 * lib/strftime.c (my_strftime): Merge in locale-related changes from
55503 libc. These changes have no effect outside of _LIBC.
55505 2003-04-10 Bruno Haible <bruno@clisp.org>
55507 * modules/findprog: New file.
55508 * MODULES.html.sh (func_all_modules): Add it.
55510 2003-04-10 Bruno Haible <bruno@clisp.org>
55512 * m4/findprog.m4: New file.
55513 * m4/eaccess.m4: New file.
55515 2003-04-10 Bruno Haible <bruno@clisp.org>
55517 * lib/findprog.h: New file, from GNU gettext.
55518 * lib/findprog.c: New file, from GNU gettext.
55520 2003-04-05 Jim Meyering <jim@meyering.net>
55522 Merge changes from Coreutils.
55524 * lib/exclude.h (PARAMS): Remove definition and uses.
55525 * lib/exclude.c: Remove uses of `PARAMS'.
55527 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
55528 Add test-cases for DOS filenames. Declare program_name.
55529 (main): Set up program_name. Patch by Rich Dawe.
55531 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55533 Use mntctl's return value to drive the entry-processing loop, since
55534 we can't rely on the value of the vmt_length member in the last
55535 entry. On some systems doing so could result in exhausting
55536 virtual memory. Based in part on a patch from Mike Jetzer.
55538 2003-04-04 Bruno Haible <bruno@clisp.org>
55540 * modules/linebreak: New file.
55541 * MODULES.html.sh (func_all_modules): Add it.
55543 2003-04-04 Bruno Haible <bruno@clisp.org>
55545 * m4/linebreak.m4: New file.
55547 2003-04-04 Bruno Haible <bruno@clisp.org>
55549 * lib/linebreak.h: New file, from GNU gettext.
55550 * lib/linebreak.c: New file, from GNU gettext with slight
55552 * lib/lbrkprop.h: New file, from GNU gettext.
55554 2003-04-03 Bruno Haible <bruno@clisp.org>
55556 * modules/utf8-ucs4: New file.
55557 * modules/utf16-ucs4: New file.
55558 * modules/ucs4-utf8: New file.
55559 * modules/ucs4-utf16: New file.
55560 * MODULES.html.sh (func_all_modules): Add them.
55562 2003-04-03 Bruno Haible <bruno@clisp.org>
55564 * m4/utf-ucs4.m4: New file.
55565 * m4/ucs4-utf.m4: New file.
55567 2003-04-03 Bruno Haible <bruno@clisp.org>
55569 * lib/utf8-ucs4.h: New file, from GNU gettext.
55570 * lib/utf16-ucs4.h: New file, from GNU gettext.
55571 * lib/ucs4-utf8.h: New file, from GNU gettext.
55572 * lib/ucs4-utf16.h: New file, from GNU gettext.
55574 2003-04-02 Bruno Haible <bruno@clisp.org>
55576 * modules/binary-io: New file.
55577 * MODULES.html.sh (func_all_modules): Add it.
55579 2003-04-02 Bruno Haible <bruno@clisp.org>
55581 * lib/binary-io.h: New file, from GNU gettext.
55583 2003-04-01 Bruno Haible <bruno@clisp.org>
55585 * modules/pathname: New file.
55586 * MODULES.html.sh (func_all_modules): Add it.
55588 2003-04-01 Bruno Haible <bruno@clisp.org>
55590 * lib/pathname.h: New file, from GNU gettext.
55591 * lib/concatpath.c: New file, from GNU gettext.
55593 2003-03-30 Bruno Haible <bruno@clisp.org>
55595 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
55597 2003-03-30 Bruno Haible <bruno@clisp.org>
55599 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
55600 function chown() doesn't exist.
55602 2003-03-28 Bruno Haible <bruno@clisp.org>
55604 * modules/copy-file: New file.
55605 * MODULES.html.sh (func_all_modules): Add it.
55607 2003-03-28 Bruno Haible <bruno@clisp.org>
55609 * m4/copy-file.m4: New file.
55611 2003-03-28 Bruno Haible <bruno@clisp.org>
55613 * lib/copy-file.h: New file, from GNU gettext.
55614 * lib/copy-file.c: New file, from GNU gettext.
55616 2003-03-18 Jim Meyering <jim@meyering.net>
55618 * lib/quote.c (quote_n): Fix typo in comment.
55620 2003-03-18 Bruno Haible <bruno@clisp.org>
55622 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
55624 * m4/onceonly_2_57.m4: Likewise.
55626 2003-03-17 Bruno Haible <bruno@clisp.org>
55628 * m4/onceonly.m4: Require autoconf 2.54 or newer.
55629 (m4_quote): Remove macro.
55630 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
55632 2003-03-14 Jim Meyering <jim@meyering.net>
55634 Merge changes from Coreutils.
55635 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
55636 to be const, in order to avoid warnings.
55637 (obstack_room): Likewise.
55638 (obstack_empty_p): Likewise.
55640 2003-03-14 Bruno Haible <bruno@clisp.org>
55642 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
55643 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
55645 2003-03-13 Paul Eggert <eggert@twinsun.com>
55647 Merge changes from Bison.
55648 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
55649 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
55650 when compiling Bison 1.875's `bitset bset = obstack_alloc
55651 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
55652 * lib/hash.c: Include <stdbool.h> unconditionally.
55654 2003-03-13 Paul Eggert <eggert@twinsun.com>
55656 * m4/onceonly.m4 (m4_quote): New macro.
55657 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
55658 Quote AC_FOREACH variable-expansions properly.
55660 2003-03-13 Paul Eggert <eggert@twinsun.com>
55662 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
55664 2003-03-09 Paul Eggert <eggert@twinsun.com>
55666 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
55667 Reported by Bruce Becker; see:
55668 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
55670 2003-03-03 Paul Eggert <eggert@twinsun.com>
55671 Bruno Haible <bruno@clisp.org>
55673 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
55674 Reported by John Hughes, see
55675 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
55677 2003-02-20 Bruno Haible <bruno@clisp.org>
55679 * MODULES.html.sh (func_all_modules): Add poll.
55681 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
55683 * modules/poll: New file.
55685 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
55687 * lib/poll_.h: New file.
55688 * lib/poll.c: New file.
55690 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
55692 * m4/poll.m4: New file.
55694 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
55696 * modules/mathl: New file.
55698 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
55700 * lib/mathl.h: New file.
55701 * lib/acosl.c: New file.
55702 * lib/asinl.c: New file.
55703 * lib/atanl.c: New file.
55704 * lib/ceill.c: New file.
55705 * lib/cosl.c: New file.
55706 * lib/expl.c: New file.
55707 * lib/floorl.c: New file.
55708 * lib/frexpl.c: New file.
55709 * lib/ldexpl.c: New file.
55710 * lib/logl.c: New file.
55711 * lib/sincosl.c: New file.
55712 * lib/sinl.c: New file.
55713 * lib/sqrtl.c: New file.
55714 * lib/tanl.c: New file.
55715 * lib/trigl.c: New file.
55716 * lib/trigl.h: New file.
55718 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
55720 * m4/mathl.m4: New file.
55722 2003-02-18 Bruno Haible <bruno@clisp.org>
55724 * MODULES.html.sh (func_all_modules): Add mathl.
55726 2003-02-17 Bruno Haible <bruno@clisp.org>
55728 * modules/mkdtemp: New module.
55729 * MODULES.html.sh (func_all_modules): Add it.
55731 2003-02-17 Bruno Haible <bruno@clisp.org>
55733 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
55735 2003-02-17 Bruno Haible <bruno@clisp.org>
55737 * lib/mkdtemp.h: New file, from GNU gettext.
55738 * lib/mkdtemp.c: New file, from GNU gettext.
55740 2003-02-02 Jim Meyering <jim@meyering.net>
55742 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
55745 2003-01-31 Bruno Haible <bruno@clisp.org>
55747 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
55749 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
55751 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
55753 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
55756 2003-01-31 Bruno Haible <bruno@clisp.org>
55758 * lib/rename.c: #undef rename before defining rpl_rename.
55759 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
55761 2003-01-30 Bruno Haible <bruno@clisp.org>
55763 * modules/vasnprintf, modules/vasprintf: New modules.
55764 * MODULES.html.sh (func_all_modules): Add them.
55766 2003-01-30 Bruno Haible <bruno@clisp.org>
55768 * m4/signed.m4: New file, from GNU gettext.
55769 * m4/longdouble.m4: New file, from GNU gettext.
55770 * m4/wchar_t.m4: New file, from GNU gettext.
55771 * m4/wint_t.m4: New file, from GNU gettext.
55772 * m4/vasnprintf.m4: New file.
55773 * m4/vasprintf.m4: New file.
55775 2003-01-30 Bruno Haible <bruno@clisp.org>
55777 * lib/printf-args.h: New file, from GNU gettext.
55778 * lib/printf-args.c: New file, from GNU gettext.
55779 * lib/printf-parse.h: New file, from GNU gettext.
55780 * lib/printf-parse.c: New file, from GNU gettext.
55781 * lib/vasnprintf.h: New file, from GNU gettext.
55782 * lib/vasnprintf.c: New file, from GNU gettext.
55783 * lib/asnprintf.c: New file, from GNU gettext.
55784 * lib/vasprintf.h: New file, from GNU gettext with modifications.
55785 * lib/vasprintf.c: New file, from GNU gettext.
55786 * lib/asprintf.c: New file, from GNU gettext.
55788 2003-01-29 Bruno Haible <bruno@clisp.org>
55790 * modules/stpncpy: New module.
55791 * MODULES.html.sh (func_all_modules): Add it.
55793 2003-01-29 Bruno Haible <bruno@clisp.org>
55795 * m4/stpncpy.m4: New file.
55797 2003-01-29 Bruno Haible <bruno@clisp.org>
55799 * lib/stpncpy.h: New file, from GNU gettext with modifications.
55800 * lib/stpncpy.c: New file, from GNU gettext with modifications.
55802 2003-01-28 Bruno Haible <bruno@clisp.org>
55804 * modules/c-ctype: New module.
55805 * MODULES.html.sh (func_all_modules): Add it.
55807 2003-01-28 Bruno Haible <bruno@clisp.org>
55809 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
55811 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
55814 2003-01-27 Bruno Haible <bruno@clisp.org>
55816 * modules/xsetenv: New module.
55817 * MODULES.html.sh (func_all_modules): Add it.
55819 2003-01-27 Bruno Haible <bruno@clisp.org>
55821 * lib/xsetenv.h: New file, from GNU gettext.
55822 * lib/xsetenv.c: New file, from GNU gettext.
55824 2003-01-23 Jim Meyering <jim@meyering.net>
55826 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
55827 from working on systems without dirfd (at least Irix and OSF1/Tru64).
55829 2003-01-23 Bruno Haible <bruno@clisp.org>
55831 * modules/minmax: New module.
55832 * MODULES.html.sh (func_all_modules): Add it.
55834 2003-01-23 Bruno Haible <bruno@clisp.org>
55836 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
55839 2003-01-22 Bruno Haible <bruno@clisp.org>
55841 * modules/exit: New module.
55842 * MODULES.html.sh (func_all_modules): Add it.
55844 2003-01-22 Bruno Haible <bruno@clisp.org>
55846 * lib/exit.h: New file, from GNU gettext.
55848 2003-01-19 Bruno Haible <bruno@clisp.org>
55850 * gnulib-tool: Recognize option --extract-maintainer.
55851 (func_get_maintainer): New function.
55852 * modules/*: Add Maintainer entry.
55854 2003-01-16 Jim Meyering <jim@meyering.net>
55856 * m4/regex.m4: The `regex' struct is both input and output.
55857 Initialize it before each use. Patch by Tim Waugh.
55859 2003-01-16 Bruno Haible <bruno@clisp.org>
55861 * MODULES.html.sh: Add a table of contents. Add the module name as
55862 leftmost column. Add hyperlinks.
55864 2003-01-15 Bruno Haible <bruno@clisp.org>
55866 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
55868 2003-01-15 Bruno Haible <bruno@clisp.org>
55870 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
55871 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
55874 2003-01-15 Bruno Haible <bruno@clisp.org>
55876 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
55878 2003-01-15 Bruno Haible <bruno@clisp.org>
55880 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
55881 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
55883 2003-01-14 Jim Meyering <jim@meyering.net>
55885 * lib/same.c (same_name): Tweak a comment.
55887 2003-01-14 Bruno Haible <bruno@clisp.org>
55889 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
55890 when a string comparison is sufficient.
55892 2003-01-14 Bruno Haible <bruno@clisp.org>
55894 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
55897 2003-01-14 Bruno Haible <bruno@clisp.org>
55899 * lib/hash-pjw.c: Add comment about low quality of this function.
55901 2003-01-13 Bruno Haible <bruno@clisp.org>
55903 * modules/stpcpy: Distribute lib/stpcpy.h.
55904 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
55906 2003-01-13 Bruno Haible <bruno@clisp.org>
55908 * modules/*: Add a description.
55909 * modules/strpbrk: Fix Makefile.am snippet.
55910 * modules/strtoimax: Fix dependencies.
55911 * modules/strtoumax: Likewise.
55913 2003-01-13 Bruno Haible <bruno@clisp.org>
55915 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
55916 * modules/alloca (Makefile.am): All object files depend on alloca.h.
55917 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
55919 2003-01-13 Bruno Haible <bruno@clisp.org>
55921 * gnulib-tool (func_create_testdir): Store config/* files in the main
55923 * config.rpath: Move to ...
55924 * config/config.rpath: ... here.
55925 * modules/gettext: Contains config/config.rpath, not config.rpath.
55926 * modules/iconv: Likewise.
55928 2003-01-12 Paul Eggert <eggert@twinsun.com>
55930 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55931 to avoid collisions with libcurses and libreadline.
55933 * m4/getstr.m4: Remove.
55934 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
55936 2003-01-12 Paul Eggert <eggert@twinsun.com>
55938 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55939 to avoid collisions with libcurses and libreadline.
55941 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
55942 * lib/getstr.h, getstr.c: Remove.
55943 * lib/getline.c: Include "getline.h", to check interface.
55944 Move body of old getstr.c here: this defines MIN_CHUNK and
55945 declares getdelim2, which is renamed from getstr.
55946 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
55948 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
55950 * lib/linebuffer.h: Likewise.
55951 (readline): Remove backward-compatibility macro.
55953 2003-01-12 Paul Eggert <eggert@twinsun.com>
55955 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55956 to avoid collisions with libcurses and libreadline.
55958 * MODULES.html.sh: Remove getstr.
55959 * modules/getline: Depend on unlocked-io, not getstr.
55961 2003-01-12 Jim Meyering <jim@meyering.net>
55963 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
55965 2003-01-10 Bruno Haible <bruno@clisp.org>
55967 * modules/alloca: Change Makefile.am requirements. Simplify Include
55968 requirements. Add lib/alloca_.h to file list.
55970 2003-01-10 Bruno Haible <bruno@clisp.org>
55972 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
55974 2003-01-10 Bruno Haible <bruno@clisp.org>
55976 * lib/alloca_.h: New file.
55977 * lib/getdate.y: Unconditionally include alloca.h.
55978 * lib/makepath.c: Likewise.
55979 * lib/setenv.c: Likewise.
55980 * lib/userspec.c: Likewise.
55982 2003-01-09 Karl Berry <karl@gnu.org>
55984 * MODULES.html.sh: include `dirname $0` in PATH, to find
55987 2003-01-09 Bruno Haible <bruno@clisp.org>
55989 * modules/stdbool: Change configure.ac, Makefile.am requirements.
55990 Simplify Include requirements. Add lib/stdbool.h.in to file list.
55992 2003-01-09 Bruno Haible <bruno@clisp.org>
55994 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
55996 2003-01-09 Bruno Haible <bruno@clisp.org>
55998 * lib/stdbool.h.in: New file.
56000 2003-01-09 Bruno Haible <bruno@clisp.org>
56002 * gnulib-tool (func_all_modules): Ignore files ending in ~.
56003 * MODULES.html.sh: Likewise.
56005 2003-01-08 Jim Meyering <jim@meyering.net>
56007 * lib/full-write.c: Undefine and define-away `const' after inclusion
56008 of errno.h, not before. Suggestion from Bruno Haible.
56010 2003-01-08 Bruno Haible <bruno@clisp.org>
56012 * modules/full-read: Depend on full-write.
56014 2003-01-08 Bruno Haible <bruno@clisp.org>
56016 * lib/safe-read.c: Include specification header first, to ensure its
56018 * lib/full-write.c: Likewise.
56020 2003-01-07 Jim Meyering <jim@meyering.net>
56022 * lib/full-write.c: Rework so that it may serve to define full_read,
56024 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
56026 2003-01-07 Bruno Haible <bruno@clisp.org>
56028 * lib/strtoimax.c: Include <stdint.h> as an alternative to
56030 * lib/xstrtol.h: Likewise.
56031 * lib/xstrtoimax.c: Likewise.
56032 * lib/xstrtoumax.c: Likewise.
56033 * lib/human.h: Likewise.
56035 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
56036 on systems that have <inttypes.h> but not <stdint.h>.
56038 2003-01-07 Bruno Haible <bruno@clisp.org>
56040 * MODULES.html.sh: Add copyright notice.
56041 (missed_files): Omit CVS directory entries.
56042 (func_module): Make it work with sed-3.02.
56043 * MODULES.txt: Remove file.
56045 2003-01-06 Jim Meyering <jim@meyering.net>
56047 * lib/version-etc.c: Update year in translatable copyright string.
56049 2003-01-03 Karl Berry <karl@gnu.org>
56051 * config/config.{guess,sub}: update from prep.
56053 2003-01-02 Karl Berry <karl@gnu.org>
56055 * doc/COPYING.DOC: belatedly updated to 1.2.
56057 2003-01-01 Karl Berry <karl@gnu.org>
56059 * gnulib-tool (func_verify_module): report module name $module in
56060 error message, not $1.
56061 * gnulib-tool (create-testdir): don't complain if destdir couldn't
56062 be created, only if it doesn't exist.
56063 * gnulib-tool (last_checkin_date): don't expand the $Date here.
56065 2002-12-31 Paul Eggert <eggert@twinsun.com>
56067 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
56069 2002-12-31 Paul Eggert <eggert@twinsun.com>
56071 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
56072 memcmp if strcoll doesn't work.
56074 2002-12-31 Bruno Haible <bruno@clisp.org>
56076 * lib/utime.c (utime_null): No need to call ftruncate if the file was
56079 2002-12-31 Bruno Haible <bruno@clisp.org>
56081 * lib/memcoll.c (STRCOLL): New macro.
56084 2002-12-31 Bruno Haible <bruno@clisp.org>
56086 * lib/localcharset.h: New file.
56087 * lib/localcharset.c: Include it.
56088 * lib/unicodeio.c: Likewise.
56090 2002-12-31 Bruno Haible <bruno@clisp.org>
56092 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
56093 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
56095 2002-12-31 Bruno Haible <bruno@clisp.org>
56097 * lib/getline.h: Include <stddef.h>, for size_t.
56099 * lib/unicodeio.h: Include <stddef.h>, for size_t.
56100 * lib/unicodeio.c: Don't include <stddef.h>.
56102 2002-12-31 Bruno Haible <bruno@clisp.org>
56104 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
56107 2002-12-24 Karl Berry <karl@gnu.org>
56109 * config/config.guess: update from prep.
56111 2002-12-24 Bruno Haible <bruno@clisp.org>
56113 General infrasructure.
56114 * m4/README: Rewritten.
56115 * m4/onceonly.m4: New file.
56116 * m4/onceonly_2_57.m4: New file.
56119 * m4/atexit.m4: New file.
56122 * m4/strtod.m4: New file.
56125 * m4/strtol.m4: New file.
56128 * m4/strtoul.m4: New file.
56131 * m4/memchr.m4: New file.
56134 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
56135 (jm_FUNC_MEMCMP): Invoke it.
56138 * m4/memcpy.m4: New file.
56141 * m4/memmove.m4: New file.
56144 * m4/memset.m4: New file.
56147 * m4/strcspn.m4: New file.
56150 * m4/strpbrk.m4: New file.
56153 * m4/strstr.m4: New file.
56156 * m4/strerror.m4: New file.
56159 * m4/mktime.m4: Renamed from jm-mktime.m4.
56160 (gl_PREREQ_MKTIME): New macro.
56161 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
56164 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
56165 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
56166 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
56169 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
56170 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
56171 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
56174 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
56175 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
56176 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
56178 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
56181 * m4/xalloc.m4: New file.
56184 * m4/alloca.m4: New file.
56187 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
56188 (jm_FUNC_PUTENV): Invoke it.
56191 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
56192 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
56193 when invoked twice.
56194 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
56198 * m4/memrchr.m4: New file.
56201 * m4/stpcpy.m4: New file.
56204 * m4/strcase.m4: New file.
56207 * m4/strdup.m4: New file.
56210 * m4/strnlen.m4: New file.
56213 * m4/strndup.m4: New file.
56216 * m4/xstrtod.m4: New file.
56219 * m4/xstrtol.m4: New file.
56222 * m4/getdate.m4: New file.
56224 Module unlocked-io.
56225 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
56226 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
56227 * m4/jm-glibc-io.m4n: Remove file.
56229 Module long-options.
56230 * m4/long-options.m4: New file.
56233 * m4/md5.m4: New file.
56236 * m4/sha.m4: New file.
56239 * m4/getstr.m4: New file.
56242 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
56243 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
56244 <sys/types.h>, for size_t. Use the function name gnu_getline, not
56245 simply getline. Infoke gl_PREREQ_GETLINE.
56248 * m4/obstack.m4: New file.
56251 * m4/hash.m4: New file.
56254 * m4/readtokens.m4: New file.
56257 * m4/strverscmp.m4: New file.
56260 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
56264 * m4/strtoll.m4: New file.
56267 * m4/strtoull.m4: New file.
56270 * m4/strtoimax.m4: New file.
56273 * m4/strtoumax.m4: New file.
56276 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
56277 jm_AC_PREREQ_XSTRTOIMAX.
56278 Moved the strtol prerequisites to strtol.m4.
56279 Moved the strtoll prerequisites to strtoll.m4.
56280 Moved the strtoimax prerequisites to strtoimax.m4.
56283 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
56284 jm_AC_PREREQ_XSTRTOUMAX.
56285 Moved the strtoul prerequisites to strtoul.m4.
56286 Moved the strtoull prerequisites to strtoull.m4.
56287 Moved the strtoumax prerequisites to strtoumax.m4.
56290 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
56291 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
56294 * m4/dup2.m4: New file.
56297 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
56298 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
56301 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
56302 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
56304 Module gettimeofday.
56305 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
56306 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
56307 gl_PREREQ_GETTIMEOFDAY.
56310 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
56311 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
56314 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
56315 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
56316 jm_AC_TYPE_UINTMAX_T.
56317 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
56320 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
56321 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
56324 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
56325 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
56328 * m4/timespec.m4 (gl_TIMESPEC): New macro.
56329 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
56330 * m4/st_mtim.m4: Indentation.
56333 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
56334 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
56335 gl_PREREQ_NANOSLEEP.
56338 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
56339 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
56340 (gl_REGEX): New macro.
56343 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
56344 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
56347 * m4/rmdir.m4: New file.
56350 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
56351 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
56352 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
56355 * m4/dirname.m4: New file.
56358 * m4/getopt.m4: New file.
56360 Module unistd-safer.
56361 * m4/unistd-safer.m4: New file.
56364 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
56366 (gl_PREREQ_FNMATCH_EXTRA): New macro.
56367 (gl_FUNC_FNMATCH_POSIX): New macro.
56368 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
56369 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
56373 * m4/exclude.m4: New file.
56376 * m4/human.m4: New file.
56382 * m4/backupfile.m4: New file.
56383 * m4/d-ino.m4: Indentation.
56386 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
56387 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
56388 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
56391 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
56395 * m4/euidaccess.m4: New file.
56398 * m4/file-type.m4: New file.
56401 * m4/fileblocks.m4: New file.
56404 * m4/filemode.m4: New file.
56407 * m4/isdir.m4: New file.
56410 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
56411 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
56414 * m4/makepath.m4: New file.
56417 * m4/modechange.m4: New file.
56420 * m4/mountlist.m4: New file.
56421 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
56424 Module path-concat.
56425 * m4/path-concat.m4: New file.
56428 * m4/pathmax.m4: New file.
56431 * m4/same.m4: New file.
56434 * m4/save-cwd.m4: New file.
56437 * m4/savedir.m4: New file.
56440 * m4/xgetcwd.m4: New file.
56441 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
56444 * m4/xreadlink.m4: New file.
56447 * m4/safe-read.m4: New file.
56450 * m4/safe-write.m4: New file.
56453 * m4/closeout.m4: New file.
56455 Module stdio-safer.
56456 * m4/stdio-safer.m4: New file.
56459 * m4/getpass.m4: New file.
56462 * m4/getugroups.m4: New file.
56464 Module group-member.
56465 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
56466 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
56469 * m4/idcache.m4: New file.
56472 * m4/userspec.m4: New file.
56475 * m4/clock_time.m4: New file.
56476 * m4/gettime.m4: New file.
56479 * m4/settime.m4: New file.
56482 * m4/posixtm.m4: New file.
56484 Module gethostname.
56485 * m4/gethostname.m4: New file.
56488 * m4/canon-host.m4: New file.
56491 * m4/codeset.m4: New file, from gettext-0.11.5.
56492 * m4/gettext.m4: New file, from gettext-0.11.5.
56493 * m4/glibc21.m4: New file, from gettext-0.11.5.
56494 * m4/iconv.m4: New file, from gettext-0.11.5.
56495 * m4/intdiv0.m4: New file, from gettext-0.11.5.
56496 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
56497 * m4/inttypes.m4: New file, from gettext-0.11.5.
56498 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
56499 * m4/isc-posix.m4: New file, from gettext-0.11.5.
56500 * m4/lcmessage.m4: New file, from gettext-0.11.5.
56501 * m4/lib-ld.m4: New file, from gettext-0.11.5.
56502 * m4/lib-link.m4: New file, from gettext-0.11.5.
56503 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
56504 * m4/progtest.m4: New file, from gettext-0.11.5.
56505 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
56506 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
56507 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
56509 Module localcharset.
56510 * m4/localcharset.m4: New file.
56512 Module hard-locale.
56513 * m4/hard-locale.m4: New file.
56516 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
56518 * m4/mbrtowc.m4: Add comment.
56521 * m4/memcasecmp.m4: New file.
56524 * m4/memcoll.m4: New file.
56527 * m4/unicodeio.m4: New file.
56530 * m4/rpmatch.m4: New file.
56533 * m4/yesno.m4: New file.
56536 * m4/exitfail.m4: New file.
56539 * m4/c-stack.m4 (gl_C_STACK): New macro.
56540 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
56543 * m4/error.m4 (gl_ERROR): New macro.
56544 (jm_PREREQ_ERROR): Use onceonly macros.
56547 * m4/fatal.m4: New file.
56550 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
56551 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
56553 Module getpagesize.
56554 * m4/getpagesize.m4: New file.
56556 Module getusershell.
56557 * m4/getusershell.m4: New file.
56560 * m4/physmem.m4: New file.
56563 * m4/posixver.m4: New file.
56566 * m4/quotearg.m4: New file.
56569 * m4/quote.m4: New file.
56572 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
56575 * m4/sig2str.m4: New file.
56578 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
56580 * m4/intmax_t.m4: New file.
56581 * m4/d-type.m4: Indentation.
56582 * m4/jm-macros.m4: Update.
56583 * m4/prereq.m4 (jm_PREREQ): Update.
56584 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
56585 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
56586 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
56587 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
56588 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
56589 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
56590 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
56591 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
56592 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
56593 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
56594 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
56595 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
56596 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
56597 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
56598 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
56599 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
56600 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
56601 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
56602 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
56604 2002-12-24 Bruno Haible <bruno@clisp.org>
56606 * MODULES.txt: Update according to m4/ changes.
56609 * config.rpath: New file, from gettext-0.11.5.
56611 * modules/*: New module descriptions.
56612 * gnulib-tool: New file.
56613 * MODULES.html.sh: New file.
56615 2002-12-21 Karl Berry <karl@gnu.org>
56617 * doc/fdl.texi: update to version 1.2.
56619 2002-12-19 Karl Berry <karl@gnu.org>
56621 * config/config.guess: update from prep.
56623 2002-12-18 Bruno Haible <bruno@clisp.org>
56625 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
56626 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
56628 2002-12-17 Bruno Haible <bruno@clisp.org>
56630 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
56631 stdlib.h, string.h.
56633 2002-12-17 Bruno Haible <bruno@clisp.org>
56635 * lib/canon-host.c (strdup): Remove unused declaration.
56637 * lib/fsusage.c: Include full_read.h.
56638 (get_fs_usage): Use full_read instead of safe_read.
56640 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
56642 2002-12-12 Karl Berry <karl@gnu.org>
56644 * config/config.guess: update from prep.
56646 2002-12-11 Bruno Haible <bruno@clisp.org>
56648 * m4/setenv.m4: New file, from gettext-0.11.5.
56650 2002-12-11 Bruno Haible <bruno@clisp.org>
56652 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
56654 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
56657 2002-12-11 Bruno Haible <bruno@clisp.org>
56659 * setenv.c (alloca): Fall back to malloc.
56660 (freea): New macro.
56661 (setenv): Use freea() to free memory allocated with alloca().
56663 2002-11-13 Bruno Haible <bruno@clisp.org>
56665 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
56666 function declarations.
56667 * unsetenv.c (unsetenv): Likewise.
56669 2002-03-04 Bruno Haible <bruno@clisp.org>
56671 Portability to AIX 4.3.3.
56672 * unsetenv.c: New file, extracted from setenv.c.
56673 * setenv.c: Move the unsetenv() function to unsetenv.c.
56675 2001-12-20 Bruno Haible <bruno@clisp.org>
56677 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
56678 use malloc instead. For SunOS 4.
56680 2001-12-11 Bruno Haible <bruno@clisp.org>
56682 * setenv.c: Declare alloca.
56683 (compar_fn_t): New typedef.
56684 (KNOWN_VALUE, STORE_VALUE): Use it.
56686 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
56689 2002-12-10 Paul Eggert <eggert@twinsun.com>
56691 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
56692 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
56693 Choose values that are less likely to collide with system fnmatch
56695 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
56696 defined (e.g., a pure POSIX system).
56697 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
56698 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
56700 2002-12-06 Paul Eggert <eggert@twinsun.com>
56702 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
56703 a pain in practice to deal with generated m4 files. This change
56704 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
56706 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
56707 and jm-glibc-io.m4, as they are no longer a special case.
56708 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
56709 kludge and the auto-generation stuff. Check only whether the
56710 functions are declared, not whether they exist, since older hosts
56711 that don't declare the functions can't use the optimization anyway.
56713 2002-12-06 Jim Meyering <jim@meyering.net>
56715 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
56717 Merge in changes from libc's misc/error.c, in preparation
56718 for the merge of gnulib's changes back into libc.
56720 * lib/error.c (_): Define only if not already defined.
56721 Move definition to follow all #include directives.
56722 Include unlocked-io.h only if !_LIBC.
56723 [_LIBC]: Include <libio/libioP.h>.
56724 [USE_IN_LIBIO]: Include <libio/iolibio.h>
56725 (fflush): Tweak definition to use INTUSE.
56728 2002-12-05 Paul Eggert <eggert@twinsun.com>
56730 * lib/alloca.c [defined emacs]: Include "lisp.h".
56731 (xalloc_die) [defined emacs]: New macro.
56732 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
56733 [! defined emacs]: Include <xalloc.h>.
56734 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
56735 (pointer): Typedef to POINTER_TYPE *.
56736 (malloc): Remove decl; we now always use xmalloc.
56737 (alloca): Use old-style definition, since Emacs needs this.
56738 Check for arithmetic overflow when computing combined size.
56740 2002-12-04 Paul Eggert <eggert@twinsun.com>
56742 Do not generate unlocked-io.h automatically, since it's easier to
56743 maintain it by hand.
56745 * lib/unlocked-io.h: New file, from GNU diffutils,
56746 but with proper copyright notice and attribution.
56747 * lib/gen-uio: Remove.
56748 * lib/Makefile.am: Add copyright notice.
56749 (libfetish_a_SOURCES): Add unlocked-io.h.
56750 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
56751 (DISTCLEANFILES, io_functions): Remove macros.
56752 (EXTRA_DIST): Remove gen_uio.
56753 (unlocked-io.h): Remove rule.
56755 2002-12-04 Jim Meyering <jim@meyering.net>
56757 Reflect the fact that stat.c and lstat.c are no longer generated.
56758 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
56759 (DISTCLEANFILES): Likewise.
56760 (EXTRA_DIST): Likewise.
56761 (all_local): Don't depend on stat.c or lstat.c.
56762 (stat.c, lstat.c): Remove rules.
56763 (EXTRA_DIST): Remove xstat.in.
56765 * lib/xstat.in: Remove file. Contents moved into stat.c.
56766 * lib/stat.c: New file. Contents mostly from xstat.in.
56767 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
56768 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
56770 * lib/safe-read.c: Rework so that it may serve to define safe_write,
56772 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
56774 2002-12-03 Jim Meyering <jim@meyering.net>
56776 * lib/safe-read.c, safe-write.c: Change variable names and comments,
56777 but not semantics, to minimize the differences between these two files.
56778 (safe_read): Change comment to mention SAFE_READ_ERROR.
56780 * lib/safe-read.c (IS_EINTR): Define.
56781 (safe_read): Use IS_EINTR in place of in-function cpp directives.
56783 2002-12-02 Jim Meyering <jim@meyering.net>
56785 * lib/safe-read.c (EINTR): Define.
56786 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
56787 (INT_MAX): Provide fallback.
56788 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
56790 * lib/safe-read.h (SAFE_READ_ERROR): Define.
56792 2002-12-02 Bruno Haible <bruno@clisp.org>
56794 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
56795 Define, taken from safe-read.c.
56796 (INT_MAX): Provide fallback.
56797 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
56798 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
56800 * lib/safe-read.c (EINTR): Remove definition.
56801 (safe_read): Don't use EINTR if it is absent.
56803 2002-12-01 Jim Meyering <jim@meyering.net>
56805 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
56807 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
56809 2002-11-27 Paul Eggert <eggert@twinsun.com>
56811 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
56812 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
56813 with `if (! (value < limit)) abort ();', for readability.
56815 2002-11-26 Karl Berry <karl@gnu.org>
56817 * lib/strdup.c: copy from libc again, with jim's ok.
56818 * lib/.cppi-disable: re-add strdup.c
56820 2002-11-25 Karl Berry <karl@gnu.org>
56822 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
56823 instead of "strtol.c".
56825 2002-11-25 Karl Berry <karl@gnu.org>
56827 * config/install-sh: update from automake for variable quoting, $0 in
56830 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
56831 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
56834 2002-11-25 Jim Meyering <jim@meyering.net>
56836 * lib/mktime.c: Sync from libc, now that it has the latest fix.
56838 2002-11-24 Karl Berry <karl@gnu.org>
56840 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
56841 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
56843 2002-11-24 Jim Meyering <jim@meyering.net>
56845 Update from coreutils:
56847 * lib/mktime.c: Merge in changes from libc.
56849 Avoid a link-time failure on some Linux systems.
56850 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
56852 (__mon_yday): Declare with the STATIC attribute.
56853 (__mktime_internal): Likewise.
56854 Based on a report from Greg Schafer.
56856 2002-11-23 Jim Meyering <jim@meyering.net>
56858 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
56859 Use `unsigned', not `int', as type of index.
56861 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
56863 * lib/fsusage.c: Remove unneeded parentheses around operands of
56866 2002-11-22 Paul Eggert <eggert@twinsun.com>
56868 * lib/quotearg.h: Allow multiple inclusion by surrounding with
56869 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
56870 so that we can be included first.
56871 (PARAMS): Remove; we now assume C89 or later. All uses removed.
56872 * lib/quotearg.c: Include quotearg.h immediately after config.h.
56873 No need to include stddef.h or sys/types.h any more.
56874 Surround local include files with "", not "<>".
56875 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
56876 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
56877 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
56878 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
56879 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
56880 (ISPRINT): Remove; no longer needed now that we assume C89.
56882 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
56885 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
56886 quotearg_char): Use SIZE_MAX rather than
56887 (size_t) -1 when we are talking about "infinity".
56889 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
56891 2002-11-22 Paul Eggert <eggert@twinsun.com>
56893 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
56894 hint that one should use `if (! x) abort ();' rather than `assert
56895 (x);', and anyway it's one less thing to worry about configuring.
56896 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
56897 hash_rehash, hash_insert): Use abort rather than assert.
56899 2002-11-22 Bruno Haible <bruno@clisp.org>
56901 * lib/safe-read.h: Assume C89. Add comments.
56902 (safe_read): Change return type to size_t.
56903 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
56904 byte counts > SSIZE_MAX correctly.
56905 * lib/safe-write.h: New file.
56906 * lib/safe-write.c: New file.
56907 * lib/full-read.h: New file.
56908 * lib/full-read.c: New file.
56909 * lib/full-write.h: Assume C89. Add comments.
56910 * lib/full-write.c: Include safe-write.h.
56911 (full_write): Rewritten to use safe_write.
56912 Suggested by Jim Meyering and Paul Eggert.
56914 2002-11-21 Jim Meyering <jim@meyering.net>
56916 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
56918 Merge in changes from the coreutils.
56920 2002-09-25 Paul Eggert <eggert@twinsun.com>
56921 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
56923 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
56924 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
56925 int. Work more efficiently if X is the same width as uintmax_t.
56926 Do not compare X to -1, to avoid bogus compiler warning.
56927 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
56928 Don't assume that f_frsize and f_bsize are the same type.
56930 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
56931 warning on FreeBSD.
56933 * lib/makepath.c (make_path): Restore umask *before* creating the final
56935 (make_path): Minor reformatting.
56937 * lib/xmalloc.c: Adjust to work with new autoconf macros,
56938 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
56939 HAVE_MALLOC/HAVE_REALLOC.
56941 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
56942 dummy ones. At least on GNU/Linux systems, `auto' means something
56944 From Michael Stone.
56946 2002-11-21 Bruno Haible <bruno@clisp.org>
56948 Remove case insensitive option matching.
56949 * lib/argmatch.h (argcasematch): Remove declaration.
56950 (ARGCASEMATCH): Remove macro.
56951 (__xargmatch_internal): Remove case_sensitive argument.
56952 (XARGMATCH): Update.
56953 (XARGCASEMATCH): Remove macro.
56954 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
56955 case_sensitive argument.
56956 (argcasematch): Remove function.
56957 (__xargmatch_internal): Remove case_sensitive argument.
56958 (main): Use XARGMATCH instead of XARGCASEMATCH.
56960 * lib/xmalloc.c: Change compile-time error message. Add comment about
56961 required autoconf version.
56963 2002-11-20 Paul Eggert <eggert@twinsun.com>
56965 Merge argmatch cleanups from Bison. Assume C89.
56967 * lib/argmatch.c: Include config.h here, not in argmatch.h.
56968 Include stdlib.h, for EXIT_FAILURE.
56969 Always include <string.h>, since we assume C89.
56970 (EXIT_FAILURE): Remove pre-C89 bug workaround.
56971 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
56972 Include <stddef.h> instead, since it's all we need for size_t.
56973 (PARAMS): Remove. All uses removed.
56974 (ARRAY_CARDINALITY): Do not bother to #undef.
56975 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
56976 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
56977 Remove unnecessary parentheses.
56978 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
56979 Insert necessary parentheses.
56980 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
56981 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
56983 2002-11-19 Bruno Haible <bruno@clisp.org>
56985 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
56986 * lib/mbswidth.h: Include <stddef.h>, for size_t.
56988 * lib/mbswidth.h (PARAMS): Remove macro.
56989 (mbswidth, mbsnwidth): Use ANSI C function declarations.
56990 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
56992 * lib/gcd.h (PARAMS): Remove macro.
56993 (gcd): Use ANSI C function declarations.
56994 * lib/gcd.c (gcd): Likewise.
56996 2002-11-15 Bruno Haible <bruno@clisp.org>
56998 * lib/strcspn.c: Include <stddef.h>.
56999 (strcspn): Use ANSI C function declaration. Change return type to
57001 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
57002 (strpbrk): Use NULL.
57003 * lib/strpbrk.h (PARAMS): Remove macro.
57004 (strpbrk): Use ANSI C function declaration.
57005 * lib/strstr.c: Don't include <sys/types.h>.
57006 * lib/strstr.h (PARAMS): Remove macro.
57007 (strstr): Use ANSI C function declarations.
57009 2002-11-14 Karl Berry <karl@gnu.org>
57011 * config/mkinstalldirs: `do' on separate line, instead of
57014 2002-11-06 Bruno Haible <bruno@clisp.org>
57016 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
57017 * lib/gcd.c (gcd): Likewise.
57019 2002-11-05 Bruno Haible <bruno@clisp.org>
57021 * lib/gcd.h: New file, from gettext-0.11.5.
57022 * lib/gcd.c: New file, from gettext-0.11.5.
57024 2002-11-05 Bruno Haible <bruno@clisp.org>
57026 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57027 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57028 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57029 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
57031 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
57033 * lib/makepath.c: Include gettext.h instead of <locale.h> and
57036 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
57037 * lib/human.c: Include gettext.h instead of <libintl.h>.
57038 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
57039 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
57040 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
57041 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
57042 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
57043 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
57044 (textdomain): Remove definition.
57045 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
57047 * lib/long-options.c: Remove include of <libintl.h> and definition of
57049 * lib/same.c: Remove include of <libintl.h> and definition of _.
57051 2002-11-04 Owen Taylor <otaylor@redhat.com>
57053 * lib/config.charset: A few additions for Solaris.
57055 2002-11-04 Bruno Haible <haible@clisp.cons.org>
57057 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
57058 * lib/localcharset.c (locale_charset): Declare as extern "C".
57060 2002-11-04 Bruno Haible <haible@clisp.cons.org>
57062 * lib/config.charset: msdos in uk_UA uses CP1125.
57064 2002-11-04 Bruno Haible <bruno@clisp.org>
57066 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
57067 * lib/strcase.h: New file, from GNU gettext-0.11.5.
57068 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
57069 * lib/strstr.h: New file, from GNU gettext-0.11.5.
57070 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
57072 2002-11-04 Bruno Haible <bruno@clisp.org>
57074 * lib/localcharset.c (locale_charset): Don't return an empty string.
57076 2002-11-04 Bruno Haible <bruno@clisp.org>
57078 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
57081 2002-11-04 Bruno Haible <bruno@clisp.org>
57083 * lib/config.charset: Update for newest glibc. Add canonical names
57084 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
57086 2002-11-04 Bruno Haible <bruno@clisp.org>
57088 * lib/config.charset: Add support for NetBSD.
57090 2002-11-04 Bruno Haible <bruno@clisp.org>
57092 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
57094 2002-11-01 Bruno Haible <bruno@clisp.org>
57096 * configure.in: Add AC_CONFIG_AUX_DIR call.
57097 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
57099 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
57101 2002-09-28 Karl Berry <karl@gnu.org>
57103 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
57104 installed automake until the next release, since changes have been
57107 2002-09-25 Karl Berry <karl@gnu.org>
57109 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
57110 * lib/getopt*: copy from libc/posix.
57111 * lib/gettext.h: copy from gettext.
57112 * lib/.cppi-disable: add strdup.c, gettext.h.
57114 2002-09-25 Karl Berry <karl@gnu.org>
57116 * config/srclist.txt: enable gettext.h check.
57117 * config/config.{guess,sub}: update from prep.
57118 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
57119 from automake 1.6.3.
57122 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
57124 * regex.c (PATFETCH): Remove the translating fetch.
57125 (PATFETCH_RAW): Rename to PATFETCH.
57126 (set_image_of_range): New fun.
57127 (SET_RANGE_TABLE_WORK_AREA): Use it.
57128 (regex_compile): Don't translate the pattern chars so eagerly.
57129 Only do it when inserting an `exactn' bytecode or when handling
57131 (mutually_exclusive_p): Avoid empty statement.
57133 2002-07-06 Jim Meyering <meyering@lucent.com>
57135 * m4/README: Don't mention Makefile.am.in.
57136 Outline how I've tested changes to .m4 files. Yep, it's a pain.
57138 2002-07-01 Jim Meyering <meyering@lucent.com>
57140 * lib/c-stack.c: Include sys/time.h.
57141 From Volker Borchert.
57143 2002-06-26 Paul Eggert <eggert@twinsun.com>
57145 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
57147 2002-06-26 Paul Eggert <eggert@twinsun.com>
57149 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
57150 New macro. Use it uniformly instead of
57151 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
57152 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
57153 reported by Vin Shelton.
57155 2002-06-22 Paul Eggert <eggert@twinsun.com>
57157 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
57158 Do not assume SA_SIGINFO behavior.
57159 Bug reported by Jim Meyering on NetBSD 1.5.2.
57161 2002-06-22 Jim Meyering <meyering@lucent.com>
57163 * m4/c-stack.m4: New file, from diffutils-2.8.2.
57164 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
57166 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
57167 now that configure.ac uses AC_GNU_SOURCE.
57168 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
57169 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
57171 Update to latest tools. Suggestions from Paul Eggert.
57172 * m4/stdbool.m4: New file, from diffutils-2.8.2.
57173 * m4/gnu-source.m4: Update from diffutils-2.8.2.
57174 * m4/fnmatch.m4: Likewise.
57175 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
57176 to AC_HEADER_STDBOOL
57178 2002-06-22 Jim Meyering <meyering@lucent.com>
57180 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
57181 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
57183 2002-06-22 Jim Meyering <meyering@lucent.com>
57185 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
57187 * lib/exitfail.c, exitfail.h: Likewise.
57188 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
57190 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
57192 (EXTRA_DIST): Add fnmatch_loop.c.
57193 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
57195 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
57196 * lib/fnmatch.c: Update from diffutils-2.8.2.
57197 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
57198 * lib/fnmatch.h: Remove file.
57200 2002-06-21 Jim Meyering <meyering@lucent.com>
57202 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
57203 * m4/mbrtowc.m4: Likewise.
57205 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
57206 * m4/mbswidth.m4: Reflect name change:
57207 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
57208 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
57210 * m4/lib-link.m4: Update from gettext-0.11.2.
57211 * m4/gettext.m4: Likewise.
57213 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
57214 From Alfred M. Szmidt.
57216 2002-06-18 Paul Eggert <eggert@twinsun.com>
57218 * lib/file-type.h: Report an error if neither S_ISREG nor
57219 S_IFREG is defined, instead of using a test specific to glibc
57220 2.2. This should be safe, since POSIX requires S_ISREG and
57221 Unix Version 7 had S_IFREG. We don't need to check for
57222 <sys/types.h> since we don't use any symbols that it defines.
57224 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
57226 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
57227 $@-t, so that each temporary file name is unique and valid in the first
57228 8 characters, for operation under DOS.
57230 2002-06-15 Paul Eggert <eggert@twinsun.com>
57232 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
57234 2002-06-15 Jim Meyering <meyering@lucent.com>
57236 Work even with DJGPP 2.03, which lacks support for symlinks.
57238 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
57240 * lib/lchown.c (S_ISLNK): Likewise.
57242 2002-06-15 Jim Meyering <meyering@lucent.com>
57244 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
57245 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
57246 have been included before this file.
57248 2002-06-14 Jim Meyering <meyering@lucent.com>
57250 * lib/file-type.h: Use the version from diffutils-2.8.2.
57251 * lib/file-type.c: Likewise.
57253 2002-06-07 Jim Meyering <meyering@lucent.com>
57255 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
57256 They're needed at least for NetBSD 1.5.2.
57257 ($statxfs_includes): Include those same headers.
57258 ($statxfs_includes): Include sys/vfs.h if available.
57259 ($statxfs_includes): Likewise for sys/statvfs.h.
57260 Check for the following members in both structs statfs and statvfs:
57261 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
57263 2002-06-01 Jim Meyering <meyering@lucent.com>
57265 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
57266 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
57268 2002-05-28 Jim Meyering <meyering@lucent.com>
57270 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
57271 Reported by Volker Borchert.
57273 2002-05-27 Jim Meyering <meyering@lucent.com>
57275 Fix a problem seen only on nonconforming systems whereby ls.c's
57276 use of localtime, and then of gettimeofday would cause trouble:
57277 the localtime call used to initialize rpl_gettimeofday's save
57278 mechanism would clobber ls's current local time information so
57279 that in any long listing the first file would always be listed
57280 with date 1970-01-01. Analysis by Volker Borchert.
57282 * lib/gettimeofday.c (localtime): Undefine.
57283 (rpl_localtime): New function.
57285 2002-05-27 Jim Meyering <meyering@lucent.com>
57287 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
57290 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
57291 use the replacement function; it wouldn't resolve at link time.
57292 Reported by Volker Borchert.
57294 2002-05-22 Jim Meyering <meyering@lucent.com>
57296 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
57298 * lib/file-type.h: New file.
57299 * lib/file-type.c (file_type): New file/function. Extracted from
57302 2002-04-30 Jim Meyering <meyering@lucent.com>
57304 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
57306 2002-04-29 Paul Eggert <eggert@twinsun.com>
57308 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
57310 2002-04-29 Paul Eggert <eggert@twinsun.com>
57312 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
57313 Do not check for alloca.h (no longer used) or stdbool.h (was never
57314 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
57316 2002-04-29 Paul Eggert <eggert@twinsun.com>
57318 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
57320 2002-04-29 Jim Meyering <meyering@lucent.com>
57322 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
57323 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
57324 Use AC_FUNC_STRNLEN here instead.
57326 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
57327 With autoconf-2.53a, it's part of AC_PROG_CC.
57329 2002-04-28 Paul Eggert <eggert@twinsun.com>
57331 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
57332 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
57334 2002-04-28 Paul Eggert <eggert@twinsun.com>
57336 * lib/sig2str.h, lib/sig2str.c: New files.
57337 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
57339 2002-04-28 Paul Eggert <eggert@twinsun.com>
57341 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
57342 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
57343 of 127, since 64 is the largest conceivable number for ancient
57345 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
57347 2002-04-28 Jim Meyering <meyering@lucent.com>
57349 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
57351 2002-04-24 Jim Meyering <meyering@lucent.com>
57353 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
57354 (jm_PREREQ): Use it.
57356 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
57357 mach/mach.h fcntl.h.
57358 Check for this function: setlocale.
57360 2002-04-24 Jim Meyering <meyering@lucent.com>
57362 * lib/gettext.h: New file, from Gettext.
57363 * lib/Makefile.am (INCLUDES): Remove -I../intl.
57364 (libfetish_a_SOURCES): Add gettext.h.
57366 2002-04-16 Jim Meyering <meyering@lucent.com>
57368 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
57369 ut_pid, ut_id, ut_exit.
57371 2002-04-16 Jim Meyering <meyering@lucent.com>
57373 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
57374 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
57375 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
57377 2002-04-12 Jim Meyering <meyering@lucent.com>
57379 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
57380 now-bogus check for f_type in sys/mount.h. Instead, just test for the
57381 existence of the getmntinfo function. Needed for Darwin 5.3.
57383 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
57384 This is necessary at least on Darwin 5.3.
57386 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
57387 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
57388 strnlen.o in the library, and that makes some versions of ranlib
57391 2002-04-12 Jim Meyering <meyering@lucent.com>
57393 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
57395 2002-04-09 Jim Meyering <meyering@lucent.com>
57397 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
57398 to be more precise. Rather than saying we're checking whether the
57399 function `works', say what we're testing.
57400 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
57401 Reported by Bruno Haible.
57403 2002-03-10 Jim Meyering <meyering@lucent.com>
57405 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
57406 Suggestion from Santiago Vila.
57408 2002-03-08 Jim Meyering <meyering@lucent.com>
57410 * lib/rename.c: Mention that this wrapper is needed also on
57411 mips-dec-ultrix4.4 systems.
57413 2002-03-02 Jim Meyering <meyering@lucent.com>
57415 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
57416 not HAVE_CLOCK_SETTIME.
57418 2002-02-27 Paul Eggert <eggert@twinsun.com>
57420 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
57421 Check for clock_settime.
57423 2002-02-27 Paul Eggert <eggert@twinsun.com>
57425 * lib/nanosleep.h: Rename to....
57426 * lib/timespec.h: New name for nanosleep.h. All uses changed.
57428 * lib/gettime.c: New file.
57429 * lib/settime.c: New file.
57430 * lib/stime.c: Remove.
57432 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
57433 timespec.h. Remove nanosleep.h.
57435 2002-02-25 Paul Eggert <eggert@twinsun.com>
57437 * m4/acl.m4: New file.
57438 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
57439 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
57441 2002-02-25 Paul Eggert <eggert@twinsun.com>
57443 * lib/acl.c, lib/acl.h: New files.
57444 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
57446 2002-02-24 Jim Meyering <meyering@lucent.com>
57448 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
57449 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
57450 cause trouble. Reported by Nelson Beebe.
57452 2002-02-23 Paul Eggert <eggert@twinsun.com>
57454 * lib/path-concat.c (xpath_concat): Reorder code to pacify
57455 compilers that don't know that xalloc_die never returns.
57457 2002-02-20 Jim Meyering <meyering@lucent.com>
57459 * lib/getdate.c: Regenerate using bison-1.33.
57461 2002-02-17 Jim Meyering <meyering@lucent.com>
57463 * config/config.guess (main): Don't use `head -1'; it's no longer
57464 portable. Use `sed 1q' instead.
57466 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
57468 * m4/codeset.m4: Upgrade to gettext-0.11.
57469 * m4/gettext.m4: Upgrade to gettext-0.11.
57470 * m4/glibc21.m4: Upgrade to gettext-0.11.
57471 * m4/iconv.m4: Upgrade to gettext-0.11.
57472 * m4/isc-posix.m4: Upgrade to gettext-0.11.
57473 * m4/lcmessage.m4: Upgrade to gettext-0.11.
57474 * m4/lib-ld.m4: New file, from gettext-0.11.
57475 * m4/lib-link.m4: New file, from gettext-0.11.
57476 * m4/lib-prefix.m4: New file, from gettext-0.11.
57477 * m4/progtest.m4: Upgrade to gettext-0.11.
57479 2002-02-15 Paul Eggert <eggert@twinsun.com>
57481 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
57482 (jm_PREREQ): Use it.
57484 2002-02-15 Paul Eggert <eggert@twinsun.com>
57486 * lib/posixver.c, lib/posixver.h: New files.
57487 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57489 2002-02-02 Paul Eggert <eggert@twinsun.com>
57490 Bruno Haible <bruno@clisp.org>
57492 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
57493 (fwrite_success_callback): New declaration.
57494 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
57495 print_unicode_char. Call failure callback instead of error.
57496 (fwrite_success_callback): New function.
57497 (exit_failure_callback): New function.
57498 (fallback_failure_callback): New function.
57499 (print_unicode_char): Call unicode_to_mb.
57501 2002-01-26 Jim Meyering <meyering@lucent.com>
57503 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
57504 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
57506 2002-01-26 Jim Meyering <meyering@lucent.com>
57508 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
57510 2002-01-22 Paul Eggert <eggert@twinsun.com>
57512 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
57514 2002-01-22 Jim Meyering <meyering@lucent.com>
57516 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
57517 Otherwise, some versions of automake would omit the rule that makes
57518 Makefile from Makefile.in.
57520 2002-01-21 Paul Eggert <eggert@twinsun.com>
57522 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
57523 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57524 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
57525 (memcoll): Set errno to zero if there is no error.
57527 * lib/quotearg.c (quotearg_buffer_restyled):
57528 Fix bug with quoting buffers containing NUL when backslashing escapes.
57529 This bug was exposed by the other changes in this patch.
57530 (quotearg_n_options): New arg ARGSIZE.
57531 All callers changed.
57532 (quoting_options_from_style): New function.
57533 (quotearg_n_style): Use it.
57534 (quotearg_n_style_mem): New function.
57536 * lib/quotearg.h (quotearg_n_style_mem): New function.
57538 2002-01-19 Jim Meyering <meyering@lucent.com>
57540 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
57541 Remove useless quotes: DF_PROG="df".
57542 * m4/strnlen.m4: New file.
57544 2002-01-16 Paul Eggert <eggert@twinsun.com>
57546 * lib/backupfile.c (ISDIGIT): Comment fix.
57547 * lib/getdate.y (ISDIGIT): Likewise.
57548 * lib/posixtm.c (ISDIGIT, year): Likewise.
57549 * lib/strverscmp.c (ISDIGIT): Likewise.
57550 * lib/userspec.c (ISDIGIT): Likewise.
57552 2002-01-16 Jim Meyering <meyering@lucent.com>
57554 * lib/getdate.y: Add three semicolons, each just before a closing
57555 brace. Bison (as of version 1.31) no longer papers over that mistake.
57557 2002-01-05 Jim Meyering <meyering@lucent.com>
57559 * lib/version-etc.c (version_etc_copyright): Update copyright year.
57561 2001-12-19 Paul Eggert <eggert@twinsun.com>
57563 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
57564 not silently exit merely because the output buffer happens to
57565 have nothing pending.
57567 2001-12-18 Paul Eggert <eggert@twinsun.com>
57569 See the big note in ../ChangeLog.
57570 * lib/human.c (suffixes): Prefer K to k for 1024.
57571 (generate_suffix_backwards): New function.
57572 (human_readable_inexact): Use it.
57573 * lib/xstrtol.c (__xstrtol): If there is no number but there
57574 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
57575 Accept 'K' as well as 'k'.
57577 2001-12-15 Jim Meyering <meyering@lucent.com>
57579 * lib/regex.h (__restrict_arr): Update from libc.
57581 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
57582 as `remote' if the name starts with `//'. Suggested by Michael Stone.
57585 2001-12-14 Jim Meyering <meyering@lucent.com>
57587 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
57588 Suggestion from Bruno Haible.
57590 2001-12-10 Jim Meyering <meyering@lucent.com>
57592 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
57593 xrealloc, Instead, include "xalloc.h".
57594 (initbuffer): Don't cast xmalloc return value to char*.
57595 (readline): Reword comment.
57596 Don't cast xrealloc return value to char*
57597 Return NULL, not 0.
57599 2001-12-09 Jim Meyering <meyering@lucent.com>
57601 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
57602 about `signed and unsigned type in conditional expression'.
57603 * lib/posixtm.c (posix_time_parse): Likewise.
57605 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
57607 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
57608 to avoid a pedantic warning.
57610 * lib/getstr.c: Don't include assert.h.
57611 (getstr): Remove warning-evoking assertions.
57612 Return -1 if offset parameter is out of bounds.
57613 Change the type of a local from int to size_t.
57615 * lib/strftime.c (my_strftime_localtime_r): Include this function
57616 definition in the `#if ! HAVE_TM_GMTOFF' block.
57618 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
57619 Include xalloc.h instead.
57621 2001-12-02 Jim Meyering <meyering@lucent.com>
57623 * lib/tempname.c: Don't declare getenv, thus reverting the change of
57624 2001-11-18. It's no longer necessary, now that stdlib.h is always
57627 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
57628 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
57630 2001-11-30 Akim Demaille <akim@epita.fr>
57632 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
57633 before being defined.
57635 2001-11-27 Paul Eggert <eggert@twinsun.com>
57637 * lib/quotearg.h (quotearg_n, quotearg_n_style):
57638 First arg is int, not unsigned.
57639 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
57640 (SIZE_MAX, UINT_MAX): New macros.
57641 (quotearg_n_options): Abort if N is negative.
57642 Avoid overflow check on hosts where size_t is 64 bits and int
57643 is 32 bits, as overflow is impossible there.
57644 Fix off-by-one typo that caused unnecessary reallocation.
57646 2001-11-27 Jim Meyering <meyering@lucent.com>
57648 * lib/tempname.c: Merge with version from libc.
57649 * lib/regex.c: Likewise.
57651 * lib/tempname.c: Include stdlib.h unconditionally. On some old
57652 systems for which STDC_HEADERS is 0, it was not included, resulting in
57653 a warning about an integer-to-pointer conversion problem with getenv.
57654 Reported by Volker Borchert.
57656 2001-11-26 Jim Meyering <meyering@lucent.com>
57658 * lib/gtod.h: Remove file.
57659 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
57660 * lib/gettimeofday.c: Don't include gtod.h.
57661 (GTOD_init): Remove function.
57662 (rpl_gettimeofday): Do its job here instead, rather than aborting.
57663 Suggestion from Volker Borchert.
57665 2001-11-23 Jim Meyering <meyering@lucent.com>
57667 * lib/hash.h (struct hash_table): Don't define here. Merely declare
57669 * lib/hash.c (struct hash_table): Define it here instead.
57671 2001-11-22 Jim Meyering <meyering@lucent.com>
57673 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
57675 2001-11-20 Jim Meyering <meyering@lucent.com>
57677 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
57678 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
57680 2001-11-19 Jim Meyering <meyering@lucent.com>
57682 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
57683 directory. Use "conftestXXXXXX" as the template.
57684 Suggestion from Paul Eggert.
57686 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
57687 immediately, so the test doesn't mistakenly hit the max-open-files
57690 2001-11-18 Paul Eggert <eggert@twinsun.com>
57692 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
57693 (TEMPORARIES): New macro.
57694 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
57695 removes an artificial limitation (e.g. HP-UX 10.20, where
57698 2001-11-18 Jim Meyering <meyering@lucent.com>
57700 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
57702 2001-11-18 Jim Meyering <meyering@lucent.com>
57704 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
57707 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
57708 files will be created before anything else.
57710 2001-11-17 Paul Eggert <eggert@twinsun.com>
57712 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
57713 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
57715 2001-11-17 Jim Meyering <meyering@lucent.com>
57717 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
57718 Prompted by a report from Bob Proulx.
57720 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
57721 Instead, require UTILS_FUNC_MKSTEMP.
57723 2001-11-17 Jim Meyering <meyering@lucent.com>
57725 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
57726 Now, that's done as part of AC_FUNC_STRTOD.
57728 2001-11-17 Jim Meyering <meyering@lucent.com>
57730 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
57731 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
57732 rather than group writable. Patch by Juan F. Codagnone.
57734 * lib/readtokens.c: Remove explicit declarations of xmalloc and
57735 xrealloc, Instead, include "xalloc.h".
57737 * lib/mountlist.c: Include unlocked-io.h after all system headers.
57738 Remove explicit declarations of xmalloc, xrealloc,
57739 and xstrdup. Instead, include "xalloc.h".
57741 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
57743 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
57745 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
57747 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
57748 Reported by Padraig Brady.
57750 * lib/mkstemp.c: #undef mkstemp.
57752 (rpl_mkstemp): Rename from mkstemp.
57755 2001-11-16 Jim Meyering <meyering@lucent.com>
57757 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
57758 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
57759 determine the amount of total physical memory, use pstat_getstatic.
57760 HPUX-11 doesn't define _SC_PHYS_PAGES.
57761 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
57762 If sysconf couldn't be used to determine the amount of available
57763 physical memory, use both pstat_getstatic and pstat_getdynamic.
57764 Based on a patch from Bob Proulx.
57766 2001-11-10 Jim Meyering <meyering@lucent.com>
57768 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
57769 (jm_PREREQ): Use it.
57771 2001-11-09 Jim Meyering <meyering@lucent.com>
57773 * m4/jm-macros.m4: Require autoconf-2.52f.
57774 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
57775 Use these AC_-prefixed names, not the AM_-prefixed ones.
57777 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
57779 2001-11-05 Jim Meyering <meyering@lucent.com>
57781 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
57783 2001-11-04 Jim Meyering <meyering@lucent.com>
57785 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
57788 2001-11-03 Jim Meyering <meyering@lucent.com>
57790 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
57793 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
57794 know the name of the variable in the macro definition.
57796 2001-11-03 Jim Meyering <meyering@lucent.com>
57798 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
57799 in argmatch_to_argument call.
57801 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
57804 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
57805 e.g., a fault due to an attempt to free a NULL pointer.
57807 2001-11-01 Jim Meyering <meyering@lucent.com>
57809 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
57810 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
57812 2001-11-01 Jim Meyering <meyering@lucent.com>
57814 * lib/dirfd.c, lib/dirfd.h: New files.
57815 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
57817 * lib/hash.c (hash_print) [TESTING]: Clean up.
57819 2001-10-22 Paul Eggert <eggert@twinsun.com>
57821 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
57822 to avoid a warning if -Wall.
57824 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
57827 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
57828 (per RMS's instructions, this is now the canonical source)
57829 * lgpl/, gpl/: New directories.
57831 2001-10-21 Paul Eggert <eggert@twinsun.com>
57833 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
57835 2001-10-21 Jim Meyering <meyering@lucent.com>
57837 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
57838 this code would end up calling gettext even in packages built
57839 with --disable-nls.
57840 * lib/getopt.c (_): Likewise.
57841 * lib/regex.c (_): Likewise.
57843 2001-10-20 Paul Eggert <eggert@twinsun.com>
57845 * m4/error.m4 (jm_PREREQ_ERROR):
57846 Do not invoke AC_CHECK_FUNCS with strerror_r, as
57847 AC_FUNC_STRERROR_R does that.
57848 Check for strerror declaration.
57850 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
57851 are supposed to have them these days.
57852 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
57853 Merge changes from latest Autoconf CVS.
57854 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
57855 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
57856 POSIX decided to standardize on the int flavor of strerror_r.
57858 2001-10-20 Paul Eggert <eggert@twinsun.com>
57860 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
57861 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
57862 Use strerror_r that is only a macro, even if it is not a function.
57863 (strerror): Check for HAVE_DECL_STRERROR before declaring.
57864 (private_strerror): Use prototypes, not old-style function definition.
57865 (print_errno_message): New function.
57866 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
57867 char*-flavored one.
57868 (error_tail, error, error_at_line): Use it.
57870 2001-10-11 Jim Meyering <meyering@lucent.com>
57872 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
57873 and quote_n (1, ... to avoid clobbering a buffer.
57875 2001-10-05 Jim Meyering <meyering@lucent.com>
57877 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
57879 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
57880 * lib/hash-pjw.h: New file.
57882 2001-09-30 Jim Meyering <meyering@lucent.com>
57884 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
57885 `struct fsstat' has the `f_fstypename' member.
57886 Use that to define FS_TYPE, which is now used to make
57887 the getfsstat link test tighter.
57889 2001-09-30 Jim Meyering <meyering@lucent.com>
57891 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
57892 Include <sys/ucred.h>, for Apple Darwin.
57893 Include sys/mount.h and sys/fs_types.h only if available.
57895 (read_filesystem_list): Use FS_TYPE.
57897 2001-09-29 Paul Eggert <eggert@twinsun.com>
57899 * lib/exclude.c (excluded_filename): 0 -> false, since it's
57902 2001-09-29 Jim Meyering <meyering@lucent.com>
57904 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57905 [one-argument getmntent function]): Include stdio.h before mntent.h.
57906 SunOS 4.1.x needs it for the declaration of `FILE'.
57907 Patch by Volker Borchert.
57909 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57910 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
57911 sys/fs_types.h, and make the link-test for getfsstat guard #include
57912 directives with appropriate #if HAVE_*_H tests so that we can
57913 detect getfsstat on Apple Darwin1.3.7 systems.
57914 Reported by Nelson Beebe.
57915 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
57917 2001-09-28 Paul Eggert <eggert@twinsun.com>
57919 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
57920 #defines strtoimax. Also treat the other strto* functions
57923 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
57924 Check for strtoul and strtoumax,
57925 as those declarations are made even in the signed case.
57926 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
57927 Likewise, for strtol and strtoimax.
57929 2001-09-28 Paul Eggert <eggert@twinsun.com>
57931 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
57932 #defines strtoimax. Also treat the other strto* functions
57935 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
57936 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
57937 (strtoimax, strtoumax): Do not declare if already defined as a macro.
57939 2001-09-26 Jim Meyering <meyering@lucent.com>
57941 Most macros in unlocked-io.h had the wrong number of arguments.
57942 * lib/gen-uio: New script.
57943 (USE_UNLOCKED_IO): Define to 1 if not already defined.
57944 * lib/unlocked-io.hin: Remove file.
57945 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
57946 rather than trying to embed it here.
57947 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
57948 Reported by Padraig Brady.
57950 2001-09-25 Volker Borchert <bt@teknon.de>
57952 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
57955 2001-09-24 Jim Meyering <meyering@lucent.com>
57957 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
57959 2001-09-23 Jim Meyering <meyering@lucent.com>
57961 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
57962 instead of the mere test for existence of mntent.h. The latter
57963 would get a false-positive on AIX 3.4 systems.
57964 In the outer getmntent if-block, don't die if neither of the getmntent
57965 tests succeeds. Instead, just fall through and continue with the
57968 2001-09-23 Jim Meyering <meyering@lucent.com>
57970 * lib/mountlist.c: Remove useless parentheses in #if directives.
57971 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
57972 the deprecated MOUNTED symbol is no longer defined in mntent.h.
57974 2001-09-22 Jim Meyering <meyering@lucent.com>
57976 * m4/gettext.m4: New file. From gettext.
57977 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
57978 * m4/progtest.m4: Likewise
57979 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
57980 * m4/glibc21.m4: Likewise.
57982 * m4/libintl.m4: Remove. No longer used.
57984 2001-09-22 Jim Meyering <meyering@lucent.com>
57986 * lib/localcharset.c: Update from latest gettext.
57987 * lib/config.charset: Likewise.
57989 2001-09-20 Jim Meyering <meyering@lucent.com>
57991 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
57993 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
57996 2001-09-20 Jim Meyering <meyering@lucent.com>
57998 * lib/xstrtol.c (strtoimax): Guard declaration with
57999 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
58000 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
58001 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
58002 (strtoumax): Likewise, for completeness (it wasn't necessary).
58004 2001-09-17 Paul Eggert <eggert@twinsun.com>
58006 * lib/strtoimax.c (HAVE_LONG_LONG):
58007 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
58008 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
58009 to work around bug in IBM C compiler.
58011 2001-09-17 Jim Meyering <meyering@lucent.com>
58013 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
58014 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
58015 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
58016 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
58017 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
58018 whenever the right hand side need not be expanded by the shell.
58020 2001-09-16 Paul Eggert <eggert@twinsun.com>
58022 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
58023 library. It's not correct, as some older glibcs are buggy.
58024 fnmatch wasn't fixed until glibc 2.2.
58026 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
58027 special shell magic here.
58029 2001-09-16 Jim Meyering <meyering@lucent.com>
58031 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
58032 * m4/jm-macros.m4: Require it.
58034 2001-09-16 Jim Meyering <meyering@lucent.com>
58036 * lib/mkdir.c: New file.
58038 2001-09-15 Jim Meyering <meyering@lucent.com>
58040 * m4/jm-macros.m4: Check for help2man.
58042 2001-09-11 Jim Meyering <meyering@lucent.com>
58044 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
58045 The body, by Paul Eggert, was moved here from configure.in.
58046 * m4/jm-macros.m4: Require UTILS_HOST_OS.
58048 2001-09-04 Paul Eggert <eggert@twinsun.com>
58050 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
58051 (jm_PREREQ): Use it.
58053 2001-09-04 Paul Eggert <eggert@twinsun.com>
58055 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
58056 Use ssize_t, not int, to store result of readlink.
58057 Check for ssize_t overflow as well as size_t overflow,
58058 as POSIX says the result of readlink is implementation-defined
58059 when ssize_t overflows.
58060 Remove unnecessary cast to char*.
58061 Use free+malloc instead of realloc, as the storage doesn't need
58062 to be preserved and it's clearer and can be more efficient that way.
58063 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
58064 * lib/xreadlink.h (xreadlink): Update prototype.
58066 2001-09-04 Paul Eggert <eggert@twinsun.com>
58068 * lib/xgetcwd.c: Revert some of the previous change; intead,
58069 fix the HAVE_GETCWD_NULL code to behave more like the
58070 !HAVE_GETCWD_NULL code used to.
58072 Include "xalloc.h".
58073 (xgetcwd): Do not return NULL when memory is exhausted; instead,
58076 2001-09-03 Paul Eggert <eggert@twinsun.com>
58078 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
58079 sys/param.h, as pathmax.h includes them.
58081 2001-09-03 Paul Eggert <eggert@twinsun.com>
58083 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
58084 (jm_PREREQ_XGETCWD): New macro.
58086 * m4/getcwd.m4: New file.
58088 2001-09-03 Paul Eggert <eggert@twinsun.com>
58090 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
58091 like the HAVE_GETCWD_NULL code.
58092 Include pathmax.h if not HAVE_GETCWD.
58093 Do not include xalloc.h.
58094 (INITIAL_BUFFER_SIZE): New symbol.
58095 Do not use xmalloc / xrealloc, since the caller is responsible for
58096 handling errors. Preserve errno around `free' during failure.
58097 Do not overrun buffer when using getwd.
58099 2001-09-03 Paul Eggert <eggert@twinsun.com>
58101 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
58102 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
58105 2001-09-03 Paul Eggert <eggert@twinsun.com>
58107 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
58108 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
58109 spotted by Jim Meyering.
58111 2001-09-03 Jim Meyering <meyering@lucent.com>
58113 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
58116 2001-09-02 Jim Meyering <meyering@lucent.com>
58118 * lib/error.c: Update from GNU libc.
58120 2001-09-01 Jim Meyering <meyering@lucent.com>
58122 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
58125 2001-09-01 Jim Meyering <meyering@lucent.com>
58127 * lib/xreadlink.c: New file.
58128 * lib/xreadlink.h: New file.
58129 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
58132 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
58133 doesn't conflict with sparc Solaris 7's definition in
58134 /usr/include/sys/int_types.h.
58136 * lib/exclude.c: Use `""', not `<>' to #include non-system header
58138 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
58139 and strncasecmp as r-values. Unixware didn't have declarations.
58141 2001-08-31 Paul Eggert <eggert@twinsun.com>
58143 * lib/xstrtol.h: Add copyright notice.
58144 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
58145 LONGINT_INVALID_SUFFIX_CHAR.
58147 2001-08-31 Paul Eggert <eggert@twinsun.com>
58149 * lib/xstrtol.c (strtoimax): New decl.
58151 2001-08-31 Paul Eggert <eggert@twinsun.com>
58153 * lib/xgetcwd.c: Don't include pathmax.h.
58154 Include stdlib.h and unistd.h if available.
58156 (xmalloc, xstrdup, free): Remove decls.
58157 (xgetcwd): Don't assume sizes fit in unsigned.
58158 Check for overflow when computing sizes.
58159 Simplify reallocation code.
58161 2001-08-31 Paul Eggert <eggert@twinsun.com>
58163 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
58164 a directory's st_size can have an arbitrary value, so the old
58165 usage could waste an arbitrary amount of memory. All uses
58167 * lib/savedir.h: Update prototype.
58169 2001-08-31 Paul Eggert <eggert@twinsun.com>
58171 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
58173 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
58176 Also, make the following further changes to make this file's
58177 configuration more similar to that of strtol.c:
58178 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
58179 (strtoumax, uintmax_t, strtoull, strtol): Remove.
58180 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
58181 (strtoimax): Renamed from strtoumax. All uses of unsigned values
58182 changed to signed values.
58184 And make the following changes as well:
58185 Fix copyright notice, as 1999 was missing.
58186 (verify): New macro.
58187 (strtoimax): Check sizes at compile-time, not run-time.
58188 Prefer strtol to strtoll if both work.
58189 (main): Remove; it was not that useful and was a pain to maintain.
58191 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
58193 2001-08-31 Jim Meyering <meyering@lucent.com>
58195 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
58196 Use an initial, malloc'd, buffer of length 128 rather than
58197 a statically allocated one of length 1024.
58199 2001-08-30 Paul Eggert <eggert@twinsun.com>
58201 Simplify code, partly by assuming autoconf 2.52 semantics.
58203 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
58205 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
58206 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
58208 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
58209 Move AC_REQUIRE to next-to-top level, to avoid confusion.
58210 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
58211 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
58212 jm_AC_HEADER_INTTYPES_H.
58213 * m4/jm-macros.m4 (jm_MACROS): Likewise.
58215 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
58217 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58218 Quote first arg of AC_DEFUN.
58219 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
58220 since they are needed to parse the include file even if we need
58221 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
58222 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
58223 but with opposite signedness.
58225 2001-08-30 Paul Eggert <eggert@twinsun.com>
58227 Merge 'exclude' changes from tar 1.13.22.
58228 This fixes one or two unlikely storage allocation overflow bugs,
58229 but doesn't change user-visible behavior otherwise.
58231 2001-08-30 Paul Eggert <eggert@twinsun.com>
58233 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
58234 (jm_PREREQ_EXCLUDE): New macro.
58236 2001-08-30 Paul Eggert <eggert@twinsun.com>
58238 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
58241 2001-08-30 Paul Eggert <eggert@twinsun.com>
58243 * lib/hash.c: Remove '2001' from copyright notice.
58245 2001-08-30 Paul Eggert <eggert@twinsun.com>
58247 * lib/full-write.h: New file.
58248 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
58249 * lib/full-write.c: Correct credits, as cccp.c no longer
58250 exists and anyway it was so heavily changed from the old cccp
58251 code as to be unrecognizable. Include full-write.h.
58252 (full_write) Return size_t, with short writes meaning failure.
58253 All callers changed. This fixes a bug with large buffers
58255 * lib/utime.c: Include full-write.h.
58257 2001-08-30 Paul Eggert <eggert@twinsun.com>
58259 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
58260 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
58261 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
58262 Include if available.
58263 (<xalloc.h>): Include
58264 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
58265 (verify): New macro. Use it to verify that EXCLUDE macros do not
58266 collide with FNM macros.
58267 (struct patopts): New struct.
58268 (struct exclude): Use it, as exclude patterns now come with options.
58269 (new_exclude): Support above changes.
58270 (new_exclude, add_exclude_file):
58271 Initial size must now be a power of two to simplify overflow checking.
58272 (free_exclude, fnmatch_no_wildcards): New function.
58273 (excluded_filename): No longer requires options arg, as the options
58274 are determined by add_exclude. Now returns bool, not int.
58275 (excluded_filename, add_exclude):
58276 Add support for the fancy new exclusion options.
58277 (add_exclude, add_exclude_file): Now takes int options arg.
58278 Check for arithmetic overflow when computing sizes.
58279 (add_exclude_file): xrealloc might modify errno, so don't
58280 realloc until after errno might be used.
58282 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
58284 (free_exclude): New decl.
58285 (add_exclude, add_exclude_file): Now takes int options arg.
58286 (excluded_filename): No longer requires options arg, as the options
58287 are determined by add_exclude. Now returns bool, not int.
58289 2001-08-30 Paul Eggert <eggert@twinsun.com>
58291 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
58293 2001-08-27 Jim Meyering <meyering@lucent.com>
58295 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
58297 * lib/version-etc.c (N_): Remove definition.
58298 Revert most of last change.
58299 Instead, simply don't mark the `Copyright...' string for translation.
58300 Based on advice from Paul Eggert.
58302 * lib/strtoxmax.c: Tweak comment.
58304 2001-08-26 Jim Meyering <meyering@lucent.com>
58306 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
58308 * m4/xstrtoimax.m4: New file.
58309 * m4/xstrtoumax.m4: Add comments explaining why we
58310 AC_REPLACE_FUNCS(strtol).
58312 2001-08-26 Jim Meyering <meyering@lucent.com>
58314 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
58315 of copyright with `%s' so translators don't get an untranslated
58317 (COPYRIGHT_YEAR): Define.
58318 (version_etc): Use fprintf rather than fputs.
58319 Suggestion from Ulrich Drepper.
58321 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
58323 * lib/strtoll.c: New file, from GNU libc.
58324 * lib/xstrtoimax.c: New file.
58326 * lib/xstrtol.h: Add xstrtoimax.
58327 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
58328 * lib/strtoimax.c: New file. Likewise, but first define
58331 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
58333 * lib/strtoxmax.c: ... then renamed to this.
58335 2001-08-18 Paul Eggert <eggert@twinsun.com>
58337 * m4/inttypes.m4: Add AC_PREREQ(2.13).
58338 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
58339 (jm_AC_TYPE_INTMAX_T): New macro.
58340 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
58342 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
58344 * m4/longlong.m4: Renamed from ulonglong.m4.
58345 * m4/inttypes.m4: Renamed from inttypes_h.m4.
58346 * m4/uintmax_t.m4: Removed.
58348 2001-08-13 Paul Eggert <eggert@twinsun.com>
58350 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
58351 Port to Solaris 8, where 'sed' requires a space after the 'r'
58352 command, and where sh dislikes "$/". Clean up the spacing a bit.
58353 Redirect output to $tmp just once.
58355 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
58357 * lib/addext.c (<errno.h>): Include.
58358 (errno): Declare if not defined.
58359 (addext): Work correctly when pathconf returns -1 and leaves
58360 errno alone because there is no limit. Also, work even if
58361 pathconf returns a value greater than SIZE_MAX.
58363 2001-08-12 Jim Meyering <meyering@lucent.com>
58365 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
58366 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
58367 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
58368 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
58369 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
58370 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
58371 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
58372 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
58373 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
58374 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
58375 utime.m4, utimes.m4, xstrtoumax.m4:
58376 Quote the first argument in each use of AC_DEFUN.
58378 2001-08-12 Jim Meyering <meyering@lucent.com>
58380 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
58381 Simply `return getcwd (NULL, 0);'.
58382 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
58383 Use 1300 as initial value for length, not PATH_MAX.
58385 * lib/pathmax.h: Clean up cpp syntax.
58387 2001-08-12 Jim Meyering <meyering@lucent.com>
58389 * lib/gettimeofday.c: New file.
58390 * lib/gtod.h: New file.
58391 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
58393 2001-08-05 Jim Meyering <meyering@lucent.com>
58395 * m4/jm-macros.m4: Require autoconf-2.52.
58397 2001-08-04 Jim Meyering <meyering@lucent.com>
58399 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
58400 stmt, to get in sync with glibc.
58402 2001-08-03 Paul Eggert <eggert@twinsun.com>
58404 The following changes are from gettext 0.10.39 as maintained by
58407 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
58408 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
58409 with inverted sense. All uses changed.
58411 * lib/mbswidth.c: Don't include <limits.h>.
58412 Include <stdlib.h> and <string.h> unconditionally.
58413 (iswcntrl, mbsinit, ISCNTRL): New macros.
58414 (mbsnwidth): Use K&R style function declarations.
58415 Don't bother checking for MB_LEN_MAX == 1, since the compiler
58416 can optimize it when MB_CUR_MAX == 1.
58417 The width of control characters is zero, not 1.
58419 2001-08-03 Paul Eggert <eggert@twinsun.com>
58421 The following changes are from gettext 0.10.39 as maintained by
58422 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
58424 * m4/codeset.m4: Upgrade to serial AM1.
58425 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
58426 all uses changed. Quote first arg of AC_DEFUN.
58427 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
58429 * m4/iconv.m4: Upgrade to serial AM2.
58430 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
58431 Add --with-libconv-prefix.
58432 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
58433 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
58434 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
58435 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
58436 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
58438 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
58439 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
58440 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
58441 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
58442 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
58443 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
58444 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
58445 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
58446 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
58448 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
58451 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
58452 not the default value.
58454 2001-06-25 Bruno Haible <haible@clisp.cons.org>
58455 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
58456 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
58457 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
58458 Also check for iswcntrl, used for wcwidth fallback.
58459 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
58462 2001-08-03 Jim Meyering <meyering@lucent.com>
58464 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
58465 as it was in the original. Reported by Paul Eggert.
58467 2001-07-16 Jim Meyering <meyering@lucent.com>
58469 * m4/gettimeofday.m4: New file.
58470 Prompted by a report from Bernhard Baehr.
58472 2001-07-15 Jim Meyering <meyering@lucent.com>
58474 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
58475 stuff. Now it's in ../Makefile.cfg.
58477 2001-07-15 Jim Meyering <meyering@lucent.com>
58479 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
58480 (BUILT_SOURCES): Add unlocked-io.h.
58481 (io_functions): Define.
58482 (unlocked-io.h): New rule.
58483 (DISTCLEANFILES): Add unlocked-io.h.
58484 (all-local): Depend on unlocked-io.h, to ensure it is created.
58486 * lib/unlocked-io.hin: New file
58488 * lib/regex.c: Update from glibc.
58490 2001-07-05 Jim Meyering <meyering@lucent.com>
58492 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
58494 (libfetish_a_SOURCES): Put all .h files here instead.
58495 Remove a thus-exposed (better checks in automake) duplicate and
58496 two unnecessary .h files.
58498 2001-07-04 Jim Meyering <meyering@lucent.com>
58500 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
58501 that generates jm-glibc-io.m4 so that it doesn't trigger any make
58504 2001-07-02 Jim Meyering <meyering@lucent.com>
58506 The following changes were prompted by suggestions from Bruno Haible.
58508 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
58510 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
58511 definition of EXTRA_DIST.
58512 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
58513 ensure that the generated file is created/updated whenever the list
58514 of $(unlocked_functions) is changed.
58515 (jm-glibc-io.m4): New rule.
58516 (unlocked-io.h): New rule -- currently unused.
58518 2001-06-24 Jim Meyering <meyering@lucent.com>
58520 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
58521 unmatched right bracket, rather than kludging it with an extra,
58522 falsely-matching quote in a comment. Patch by Akim Demaille.
58524 2001-06-11 Jim Meyering <meyering@lucent.com>
58526 * lib/regex.c: Update from GNU libc.
58528 2001-05-27 Jim Meyering <meyering@lucent.com>
58530 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
58531 Check for ut_type in struct utmp.
58533 2001-05-27 Jim Meyering <meyering@lucent.com>
58535 * lib/readutmp.h (UT_TYPE): Define.
58537 2001-05-24 Jim Meyering <meyering@lucent.com>
58539 * lib/argmatch.c: Include "quote.h".
58540 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
58541 quote function. Reported by Göran Uddeborg.
58543 2001-05-22 Jim Meyering <meyering@lucent.com>
58545 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
58546 now that we use the package-supplied version unconditionally.
58547 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
58549 2001-05-21 Jim Meyering <meyering@lucent.com>
58551 * m4/regex.m4: Change a couple backticks to single quotes to avoid
58552 shell syntax errors.
58554 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
58556 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
58558 2001-05-20 Paul Eggert <eggert@twinsun.com>
58560 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
58561 Don't bother to check library strftime, since
58562 we'll be using our own my_strftime function anyway.
58563 Define my_strftime instead of strftime.
58565 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
58567 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
58568 which is not yet declared.
58570 2001-05-15 Jim Meyering <meyering@lucent.com>
58572 * m4/regex.m4: Use proper quoting so brackets appear in the test
58574 Reported by, and with help from, Bruno Haible.
58576 2001-05-13 Jim Meyering <meyering@lucent.com>
58578 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
58581 2001-05-11 Paul Eggert <eggert@twinsun.com>
58583 dirname code cleanup. base_name now behaves more compatibly
58584 with POSIX basename when given file names that have trailing
58585 slashes, and similarly for dir_name. Add new primitives
58586 base_len and dir_len. Put the directory-name-related decls
58589 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
58590 * lib/backupfile.c (base_name): Likewise.
58591 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
58592 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
58593 * lib/makepath.c (strip_trailing_slashes): Likewise.
58594 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
58595 ISSLASH): Likewise.
58596 * lib/rename.c (strip_trailing_slashes): Likewise.
58597 * lib/same.c (base_name): Likewise.
58598 * lib/stripslash.c (ISSLASH): Likewise.
58600 * lib/addext.c: Include <dirname.h> after size_t is defined.
58601 * lib/backupfile.c: Likewise.
58603 * lib/addext.c (addext): Use base_len to trim redundant
58604 trailing slashes instead of doing it ourselves.
58605 But do not trim the last slash if it is not redundant.
58607 * lib/backupfile.c (find_backup_file_name,
58608 max_backup_version): Use base_len instead of rolling it ourselves.
58609 Handle the case of "" and (on DOS) "C:" correctly.
58611 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
58612 needed. Include <string.h>, <dirname.h>.
58613 (base_name): Allow file names ending in slashes, other than names
58614 that are all slashes. In this case, return the basename followed
58615 by the slashes. This is more general, and can be used in places
58616 where the original base_name purposely had an assertion failure.
58617 (base_len): New function.
58619 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
58620 Do not include <assert.h>; no longer needed.
58622 (memrchr): Remove decl.
58623 (dir_name_r): Remove.
58624 (dir_len): Renamed from dirlen. All callers changed.
58625 Rewrite in terms of base_name, for simplicity and consistency.
58626 (dir_name): Never return NULL. All callers changed.
58627 Do not include <stdlib.h> in test program; no longer needed.
58628 return 0; is fine for test program.
58630 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
58632 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
58634 * lib/path-concat.c (path_concat): Use base_len to compute
58635 base length, not strlen; this means we cannot rely on memcpy
58638 * lib/same.c (STREQ): Remove.
58639 (same_name): Handle the case where the basename ends in trailing '/'.
58641 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
58642 a slash was stripped. Do not strip the last slash after a
58643 file system prefix.
58645 2001-05-11 Paul Eggert <eggert@twinsun.com>
58647 * lib/Makefile.am (libfetish_a_SOURCES):
58648 Add strftime.c, since we now compile it on all hosts.
58650 * lib/strftime.c (my_strftime):
58651 Define to nstrftime if emacs, but only if my_strftime is not defined.
58652 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
58653 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
58654 Add one more extra argument: a nanoseconds value.
58657 (my_strftime function): Add %N format.
58658 (emacs_strftimeu): Renamed from emacs_strftime,
58659 with extra ut argument.
58661 2001-05-09 Paul Eggert <eggert@twinsun.com>
58663 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
58665 2001-04-21 Jim Meyering <meyering@lucent.com>
58667 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
58670 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
58672 * m4/ftruncate.m4: Check for chsize.
58673 Link with ftruncate.o unconditionally if ftruncate is missing.
58674 This was required when cross-compiling to i586-mingw32msvc.
58676 2001-04-08 Jim Meyering <meyering@lucent.com>
58678 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
58679 recomputed; that's necessary when the offset spans a DST transition.
58680 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
58682 2001-04-02 Jim Meyering <meyering@lucent.com>
58684 * lib/regex.h, regex.c: Update from GNU libc.
58686 2001-03-24 Jim Meyering <meyering@lucent.com>
58688 * m4/jm-macros.m4: Require autoconf-2.49d.
58690 2001-03-20 Bruno Haible <haible@clisp.cons.org>
58692 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
58694 2001-03-19 Paul Eggert <eggert@twinsun.com>
58696 * lib/version-etc.c (version_etc_copyright): Update to 2001.
58698 2001-03-17 Jim Meyering <meyering@lucent.com>
58700 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
58701 now that the version in autoconf is equivalent.
58702 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
58704 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
58705 Suggestion from Akim Demaille.
58707 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
58708 (jm_PREREQ_TEMPNAME): New function.
58710 2001-03-16 Paul Eggert <eggert@twinsun.com>
58712 * lib/tempname.c (uint64_t): Define to uintmax_t if
58713 not defined, and if UINT64_MAX is not defined.
58714 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
58715 Reported by John David Anglin.
58717 2001-03-15 Bruno Haible <haible@clisp.cons.org>
58719 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
58720 resolve alias if codeset is empty.
58721 * lib/config.charset (BeOS): Use wildcard syntax.
58723 2001-03-13 Jim Meyering <meyering@lucent.com>
58725 * lib/path-concat.c (path_concat)
58726 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
58727 concatenating e.g., `C:' and `foo'.
58730 2001-03-06 Bruno Haible <haible@clisp.cons.org>
58732 * lib/localcharset.c (locale_charset): Don't use
58733 setlocale(LC_CTYPE,NULL). Don't return NULL.
58734 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
58736 2001-03-06 Bruno Haible <haible@clisp.cons.org>
58738 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
58739 support for DOS/DJGPP.
58741 2001-03-01 Paul Eggert <eggert@twinsun.com>
58743 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
58744 lacks mkstemp. Compile our own tempname.c if we compile our own
58745 mkstemp.c, as mkstemp relies on tempname.
58747 2001-03-01 Jim Meyering <meyering@lucent.com>
58749 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
58750 AH_VERBATIM really does output its argument verbatim.
58752 2001-02-28 Paul Eggert <eggert@twinsun.com>
58754 * lib/Makefile.am (libfetish_a_SOURCES):
58755 Add dup-safer.c, fopen-safer.c.
58756 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
58758 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
58759 * lib/unistd-safer.h: New files.
58761 2001-02-25 Paul Eggert <eggert@twinsun.com>
58763 The mkstemp replacement is taken from glibc 2.2.2, with some
58764 portability fixes for use outside glibc, as follows:
58766 * lib/tempname.c (struct_stat64): New macro.
58767 (direxists, __gen_tempname): Use it.
58768 This avoids a portability problem with Solaris 8.
58770 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
58771 (<stddef.h>, <stdint.h>, <string.h>):
58772 Include only if STDC_HEADERS || _LIBC.
58773 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
58774 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
58775 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
58776 (__set_errno): Define this macro if <errno.h> doesn't.
58777 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
58778 Define these macros if <stdio.h> doesn't.
58779 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
58780 Define these macros if <sys/stat.h>
58781 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
58782 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
58783 __xstat64): Define if not _LIBC.
58784 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
58785 (__gen_tempname): Invoke gettimeofday only if
58786 HAVE_GETTIMEOFDAY || _LIBC;
58787 otherwise, fall back on plain "time".
58788 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
58790 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
58792 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
58794 2001-02-18 Paul Eggert <eggert@twinsun.com>
58796 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
58798 2001-02-17 Paul Eggert <eggert@twinsun.com>
58800 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
58801 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
58802 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
58803 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58805 2001-02-17 Paul Eggert <eggert@twinsun.com>
58807 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
58808 Remove workaround macros for hosts that have mbrtowc but not
58809 mbstate_t, as we now insist on proper declarations for both
58810 before using mbrtowc.
58812 2001-02-17 Jim Meyering <meyering@lucent.com>
58814 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
58815 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
58816 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
58819 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
58820 rather than AC_CACHE_VAL.
58822 2001-02-17 Jim Meyering <meyering@lucent.com>
58824 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
58825 around included file name.
58827 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
58829 * lib/strftime.c: Update from GNU libc (the only changes were to
58832 2001-02-17 Jim Meyering <meyering@lucent.com>
58834 * lib/regex.c: Update from libc.
58836 2001-02-17 Bruno Haible <haible@clisp.cons.org>
58838 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
58841 2001-02-16 Paul Eggert <eggert@twinsun.com>
58843 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
58844 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
58845 Reported by Mark Hounschell via Paul Eggert.
58847 2001-02-07 Jim Meyering <meyering@lucent.com>
58849 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
58851 2001-02-05 Jim Meyering <meyering@lucent.com>
58853 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
58854 it includes the patch required for `large file' support with at least
58855 HP-UX's 10.20 /bin/cc.
58857 2001-02-03 Jim Meyering <meyering@lucent.com>
58859 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
58860 AS_IF, now that it works once again (mysteriously).
58861 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58863 2001-01-30 Jim Meyering <meyering@lucent.com>
58865 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
58866 * m4/chown.m4: Rename conftestchown to conftest.chown.
58867 * m4/rename.m4: s/conftestdir/conftest.d1/ and
58868 s/conftestdir2/conftest.d2/.
58869 * m4/utimes.m4: s/conftestdata/conftest.data/
58870 Inspired by Pavel Roskin's change in autoconf.
58872 2001-01-30 Bruno Haible <haible@clisp.cons.org>
58874 * lib/config.charset: Update for FreeBSD 4.2.
58876 2001-01-27 Jim Meyering <meyering@lucent.com>
58878 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
58880 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58882 2001-01-26 Jim Meyering <meyering@lucent.com>
58884 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
58885 quotearg.c includes it.
58887 2001-01-26 Jim Meyering <meyering@lucent.com>
58889 * lib/quotearg.c: Include stddef.h.
58890 * lib/quote.c: Include stddef.h.
58891 Reported by Axel Kittenberger.
58893 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
58894 line in double quotes so that it evokes a better diagnostic.
58895 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
58896 Reported by Axel Kittenberger.
58898 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
58900 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
58901 as if it was a `charset'.
58903 2001-01-21 Bruno Haible <haible@clisp.cons.org>
58905 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
58908 2001-01-21 Bruno Haible <haible@clisp.cons.org>
58910 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
58911 to avoid a warning. Add back 'const' to inptr.
58913 2001-01-20 Jim Meyering <meyering@lucent.com>
58915 Be sure that headers are checked before used in code compiled
58916 for the type checks.
58917 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
58918 In place of that, invoke jm_CHECK_ALL_TYPES.
58919 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
58920 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
58921 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
58922 The check for ssize_t was mistakenly run before the test for unistd.h.
58924 The configure-time check for stdbool.h was missing.
58925 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
58926 (jm_PREREQ_HASH): New function.
58928 2001-01-17 Jim Meyering <meyering@lucent.com>
58930 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
58931 for autoconf-2.49c.
58932 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
58934 2001-01-16 Jim Meyering <meyering@lucent.com>
58936 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
58939 2001-01-14 Jim Meyering <meyering@lucent.com>
58941 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
58942 foo and bar. Create conftestdir/ in the script, not in the C code.
58943 Remove directories in the script, not in the C code.
58944 Remove conftestdir{,2} before trying to create the directory.
58945 Make the entire configure script fail if the mkdir fails.
58947 2001-01-14 Jim Meyering <meyering@lucent.com>
58949 * lib/rename.c: New file. From Volker Borchert.
58950 Include stdlib.h, string.h or strings.h, and xalloc.h.
58951 Use strip_trailing_slashes rather than open-coding it.
58953 2001-01-03 Paul Eggert <eggert@twinsun.com>
58955 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
58957 2001-01-03 Jim Meyering <meyering@lucent.com>
58959 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
58960 of local `inptr' to avoid warning with some system declarations of
58963 2001-01-02 Volker Borchert <bt@teknon.de>
58965 * m4/rename.m4: New file.
58966 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
58968 2001-01-01 Jim Meyering <meyering@lucent.com>
58970 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
58971 even on systems with utmpx.h. It's necessary for the declaration of
58972 utmp's ut_user member. Reported by Andreas Jaeger.
58974 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
58975 available. They are required for the declarations of getgrgid and
58977 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
58978 Reported by Andreas Jaeger.
58980 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
58982 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
58983 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
58984 so `make install' also works in VPATH builds.
58986 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
58988 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
58989 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
58990 can be used in subdirectories.
58992 2000-12-29 Paul Eggert <eggert@twinsun.com>
58994 * lib/modechange.c: Do not assume that mode_t uses the
58995 traditional octal encoding. E.g. "chmod 1 FOO" should set
58996 the other-execute bit of FOO even if S_IXOTH != 1.
58998 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
58999 WOTH, XOTH, ALLM): New macros.
59000 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
59001 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
59003 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
59004 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
59006 No need to use uintmax_t; unsigned long is long enough.
59007 Don't bother to get suffix since we don't use it.
59009 2000-12-26 Jim Meyering <meyering@lucent.com>
59011 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
59012 better with autoheader.
59014 2000-12-24 Jim Meyering <meyering@lucent.com>
59016 * lib/hash.c (is_prime): Return explicit boolean values.
59017 (hash_get_first): Return NULL to appease Irix5.6's 89.
59018 Reported by Nelson Beebe.
59020 2000-12-19 Bruno Haible <haible@clisp.cons.org>
59022 * lib/localcharset.c (locale_charset): Add support for Win32.
59024 2000-12-18 Paul Eggert <eggert@twinsun.com>
59026 * lib/physmem.h, lib/physmem.c: New files.
59028 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
59029 (noinst_HEADERS): Add physmem.h.
59031 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
59032 't' for compatibility with Solaris 8 sort.
59034 2000-12-18 Bruno Haible <haible@clisp.cons.org>
59036 * lib/config.charset: Add support for BeOS.
59038 2000-12-17 Jim Meyering <meyering@lucent.com>
59040 * m4/dos.m4 (jm_AC_DOS): New file and macro.
59041 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
59043 2000-12-16 Jim Meyering <meyering@lucent.com>
59045 This bug had a serious impact on chown: `chown N:M FILE' (for integer
59046 N and M) would have treated it like `chown N:N FILE'.
59048 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
59050 2000-12-16 Jim Meyering <meyering@lucent.com>
59052 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
59053 SHELLS_FILE to a file name that's useful on djgpp systems.
59055 (ADDITIONAL_DEFAULT_SHELLS): Define.
59056 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
59057 Based mostly on a patch from Prashant TR.
59059 2000-12-16 Bruno Haible <haible@clisp.cons.org>
59061 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
59062 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
59063 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
59065 2000-12-08 Andreas Schwab <schwab@suse.de>
59067 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
59068 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
59070 2000-12-07 Jim Meyering <meyering@lucent.com>
59072 * lib/stripslash.c (ISSLASH): Define.
59073 (strip_trailing_slashes): Use ISSLASH rather than comparing against
59077 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
59078 (dir_name_r): Declare this function as static.
59079 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
59080 manifest itself on a name containing a mix of slashes and
59082 Make this function work with names starting with a DOS-style
59083 drive letter and colon prefix.
59084 (dir_name): Append `.' if necessary.
59085 Based mostly on patches from Prashant TR and Eli Zaretskii.
59087 * lib/dirname.h (dir_name_r): Remove prototype.
59089 2000-12-06 Paul Eggert <eggert@twinsun.com>
59091 * m4/off_t-format.m4: Remove this file.
59092 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
59094 2000-12-06 Jim Meyering <meyering@lucent.com>
59096 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
59097 replacement strtoull, we may well need the replacement strtoul, too.
59098 Check for declarations of strtoul and strtoull.
59099 Check for strtol. Mainly as a cue to cause automake to include
59100 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
59101 Check for limits.h -- strtol.c needs it.
59103 2000-12-05 Jim Meyering <meyering@lucent.com>
59105 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
59107 2000-12-04 Jim Meyering <meyering@lucent.com>
59109 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
59110 Also include memory.h, stdlib.h, unistd.h if appropriate.
59111 Reported by Andreas Jaeger (conflicting declaration of malloc).
59113 2000-12-02 Jim Meyering <meyering@lucent.com>
59115 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
59116 * m4/jm-macros.m4 (jm_MACROS): require it.
59118 2000-12-02 Jim Meyering <meyering@lucent.com>
59120 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
59122 2000-12-01 Paul Eggert <eggert@twinsun.com>
59124 * lib/memrchr.c: Include <config.h> before any system include file.
59126 2000-11-30 Jim Meyering <meyering@lucent.com>
59128 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
59130 2000-11-30 Jim Meyering <meyering@lucent.com>
59132 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
59134 2000-11-29 Paul Eggert <eggert@twinsun.com>
59136 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
59138 2000-11-26 Jim Meyering <meyering@lucent.com>
59140 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
59142 2000-11-22 Paul Eggert <eggert@twinsun.com>
59144 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
59145 size of (size_t) -1; it's not portable.
59147 2000-11-17 Jim Meyering <meyering@lucent.com>
59149 * lib/strstr.c: Update from GNU libc.
59151 2000-11-17 Akim Demaille <akim@epita.fr>
59153 * lib/obstack.h: Formatting changes.
59154 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
59155 prevent type checking.
59156 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
59157 cast the value to (void *): assigning a `foo *' to a `void *'
59159 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
59161 2000-11-16 Jim Meyering <meyering@lucent.com>
59163 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
59165 2000-11-11 Jim Meyering <meyering@lucent.com>
59167 * lib/error.c: Add a couple #includes, merging from GNU libc version.
59169 2000-11-10 Jim Meyering <meyering@lucent.com>
59171 * lib/obstack.h: Update from GNU libc.
59172 * lib/obstack.c: Likewise.
59174 2000-11-08 Bruno Haible <haible@clisp.cons.org>
59176 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
59178 2000-11-06 Paul Eggert <eggert@twinsun.com>
59180 * lib/getusershell.c (setusershell): Use rewind rather than
59181 fseek/fseeko, to avoid configuration hassles with fseeko.
59182 Don't bother opening SHELLS_FILE if shellstream is NULL;
59183 it's not necessary.
59185 2000-11-05 Jim Meyering <meyering@lucent.com>
59187 * lib/makepath.h (make_dir): Declare.
59188 * lib/makepath.c (make_dir): Remove `static' attribute.
59191 2000-11-04 Jim Meyering <meyering@lucent.com>
59193 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
59195 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
59197 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
59198 last one in a bucket, advance to the next bucket.
59200 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
59202 * lib/fnmatch.c: Do not comment out all the code if we are using
59203 the GNU C library, because in some cases we are replacing buggy
59204 code in the GNU C library itself.
59206 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
59208 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
59209 (regex_compile): Catch bogus \(\1\).
59211 2000-10-30 Paul Eggert <eggert@twinsun.com>
59213 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
59214 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
59215 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
59217 2000-10-30 Paul Eggert <eggert@twinsun.com>
59219 * lib/error.h, getline.h, modechange.h:
59220 Remove "2000" from Copyright line, as the file hasn't been
59221 changed this year other than in the copyright notice.
59223 * lib/xalloc.h: Add "2000" to Copyright line, as this file
59224 was changed this year.
59226 2000-10-29 Jim Meyering <meyering@lucent.com>
59228 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
59230 * m4/ls-mntd-fs.m4: Likewise
59232 2000-10-29 Jim Meyering <meyering@lucent.com>
59234 * lib/xstat.in: Fix grammar in comment.
59236 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
59238 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
59239 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
59240 doesn't define __restrict_arr.
59242 2000-10-28 Jim Meyering <meyering@lucent.com>
59244 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
59245 (jm_PREREQ_MEMCHR): New function.
59247 2000-10-28 Jim Meyering <meyering@lucent.com>
59249 * lib/memchr.c: Update from libc.
59250 Adjust for portability:
59251 [HAVE_STDLIB_H]: Include stdlib.h.
59252 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
59253 Undef __memchr, too.
59254 [!weak_alias]: Define __memchr to memchr.
59256 * lib/regex.c: Update from libc.
59257 * lib/regex.h: Likewise.
59258 * lib/getopt1.c: Likewise.
59259 * lib/memcmp.c: Likewise.
59261 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
59262 Avoid using fseek, when possible -- it's broken by design.
59263 Patch by Ulrich Drepper.
59265 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
59267 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
59268 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
59269 Giving in to popular pressure to shut up the compiler with casts.
59271 2000-10-26 Jim Meyering <meyering@lucent.com>
59273 * lib/strftime.c: Update from libc.
59275 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
59277 * regex.c: More `unsigned char' -> `re_char' changes.
59278 Also change several `int' into `re_wchar_t'.
59279 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
59280 (PUSH_FAILURE_POINTER): Don't cast any more.
59281 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
59282 We want GCC to complain, since this piece of code makes
59283 re_match non-reentrant, which *should* be fixed.
59284 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
59285 (EXTEND_BUFFER): Use RETALLOC.
59286 (SET_LIST_BIT): Don't cast.
59287 (re_wchar_t): New type.
59288 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
59289 that those two functions will always properly return.
59290 (IMMEDIATE_QUIT_CHECK): Cast to void.
59291 (analyse_first): Use recursion rather than an explicit stack.
59292 (re_compile_fastmap): Can't fail anymore.
59293 (re_search_2): Don't check re_compile_fastmap for failure.
59294 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
59295 Now also sets the new value (passed in a new argument).
59296 (re_match_2_internal): Use it.
59297 Also, use a new var `reg' of type size_t when looping through regs
59298 rather than reuse the inappropriate `mcnt'.
59300 2000-10-25 Jim Meyering <meyering@lucent.com>
59302 * lib/obstack.c: Update from libc.
59304 2000-10-24 Kenichi Handa <handa@etl.go.jp>
59306 * regex.c (regex_compile): Change the way of handling a range from
59307 a char less than 256 to a char not less than 256.
59309 2000-10-24 Andrew Innes <andrewi@gnu.org>
59311 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
59313 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
59314 so that re_search functions only quit when callers expect them to.
59316 2000-10-23 Jim Meyering <meyering@lucent.com>
59318 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
59319 wrong. That set_locale call must not have any side effects.
59322 2000-10-22 Jim Meyering <meyering@lucent.com>
59324 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
59325 [CYCLIC]: Remove now-unused definition.
59327 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
59328 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
59329 Suggestion from Ulrich Drepper.
59331 2000-10-21 Jim Meyering <meyering@lucent.com>
59333 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
59334 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
59335 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
59337 2000-10-21 Jim Meyering <meyering@lucent.com>
59339 * lib/dirname.c (memrchr): Declare if necessary.
59340 (dir_name): Remove the restriction that there be no
59341 trailing slashes. Now, this code skips past them, effectively
59343 [TEST_DIRNAME] (main): New unit tests.
59345 * lib/memrchr.c: New file from GNU libc.
59346 Undef __memrchr, too.
59347 [!weak_alias]: Define __memrchr to memrchr.
59348 Guard weak_alias use with `#ifdef weak_alias'.
59350 2000-10-21 Jim Meyering <meyering@lucent.com>
59352 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
59353 (dir_name): Use dir_name_r.
59354 * lib/dirname.h (dir_name_r): Declare it.
59356 2000-10-17 Jim Meyering <meyering@lucent.com>
59358 * lib/quote.h (PARAMS): Define and use.
59359 Reported by Akim Demaille.
59361 * lib/getopt.c: Update from libc.
59363 2000-10-16 Jim Meyering <meyering@lucent.com>
59365 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
59369 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
59371 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
59373 2000-09-25 Jim Meyering <meyering@lucent.com>
59375 * lib/md5.h (rol): Define (from GnuPG).
59377 * lib/sha.c: Give credit (GnuPG) where due.
59378 (M): Use rol rather than open-coding it.
59379 Add a FIXME comment.
59381 2000-09-21 Jim Meyering <meyering@lucent.com>
59383 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
59384 Reported by Michael Stone.
59386 2000-09-20 Jim Meyering <meyering@lucent.com>
59388 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
59389 (noinst_HEADERS): Add sha.h.
59390 Based on code from Scott G. Miller and from GnuPG.
59392 2000-09-18 Jim Meyering <meyering@lucent.com>
59394 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
59395 LIBS. Otherwise, everyone ends up linking with -lelf for some
59397 Reported by Mike Stone.
59399 2000-09-15 Jim Meyering <meyering@lucent.com>
59401 * lib/regex.c: Update from libc.
59403 2000-09-10 Jim Meyering <meyering@lucent.com>
59405 * lib/getopt.c (_getopt_internal): Update from glibc.
59407 2000-09-09 Jim Meyering <meyering@lucent.com>
59409 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
59410 think it should be used as a general replacement for isascii.
59411 * lib/fnmatch.c: Likewise.
59412 * lib/mbswidth.c: Likewise
59413 * lib/regex.c: Likewise.
59416 * lib/userspec.c: Include sys/param.h and limits.h.
59418 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59419 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
59420 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
59421 UID, GID. Check range.
59423 2000-09-06 Jim Meyering <meyering@lucent.com>
59425 * lib/getopt.c (_getopt_internal): Update from glibc.
59427 2000-08-30 Jim Meyering <meyering@lucent.com>
59429 * lib/strftime.c: Merge in changes from GNU libc.
59431 2000-08-26 Jim Meyering <meyering@lucent.com>
59433 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
59434 * m4/fpending.m4: New file.
59436 2000-08-26 Jim Meyering <meyering@lucent.com>
59438 * lib/closeout.c: Include "__fpending.h".
59439 (close_stdout_status): Return right away if there's nothing to flush.
59441 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
59442 * lib/__fpending.c: New file.
59443 * lib/__fpending.h: New file.
59445 2000-08-20 Jim Meyering <meyering@lucent.com>
59447 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
59448 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
59449 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
59451 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
59453 Improve fileutils installation on systems where running
59454 programs (like install) can't be unlinked.
59455 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
59456 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
59458 2000-08-07 Paul Eggert <eggert@twinsun.com>
59460 Standardize on "memory exhausted" instead of "Memory exhausted"
59461 or "virtual memory exhausted".
59462 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
59463 "virtual memory exhausted".
59464 * lib/same.c (same_name): Invoke xalloc_die instead of printing
59466 * lib/userspec.c (parse_user_spec): Likewise.
59467 * lib/bumpalloc.h: comment fix
59468 * lib/same.c, userspec.c: Include xalloc.h.
59470 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
59471 not char *const and pointing to a constant array.
59472 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
59473 (xrealloc): Comment fix.
59475 * lib/userspec.c (parse_user_spec):
59476 Don't translate a message until just before returning,
59477 to avoid unnecessary translation.
59479 2000-08-07 Jim Meyering <meyering@lucent.com>
59481 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
59482 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
59483 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
59484 getgroups.c, gethostname.c, getopt.h, group-member.c,
59485 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
59486 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
59487 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
59488 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
59489 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
59490 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
59491 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
59492 yesno.c: Back out Copyright date changes for each file with no change
59493 this year. This eases coordination with other programs using the same
59494 source code modules. From Paul Eggert.
59496 2000-08-06 Paul Eggert <eggert@twinsun.com>
59498 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
59499 not char, for compatibility with glibc 2.1.3 strftime.c.
59501 2000-08-03 Greg McGary <greg@mcgary.org>
59503 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
59504 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
59505 (EXTEND_BUFFER): Use them.
59507 2000-08-01 Jim Meyering <meyering@lucent.com>
59509 * lib/dirname.c (ISSLASH): Define.
59510 (BACKSLASH_IS_PATH_SEPARATOR): Define.
59511 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
59512 both `\' and `/' may be use as path separators.
59513 Based on a patch from Prashant TR.
59515 2000-07-31 Paul Eggert <eggert@twinsun.com>
59517 * lib/quotearg.c (quotearg_n_options): Don't make the initial
59518 slot vector a constant, since it might get modified.
59520 2000-07-31 Jim Meyering <meyering@lucent.com>
59522 * lib/xmalloc.c: Use `virtual memory exhausted', not
59523 `Memory exhausted'.
59524 * lib/obstack.c (print_and_abort): Likewise.
59526 2000-07-30 Paul Eggert <eggert@twinsun.com>
59528 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
59529 buffer, so that the caller can always quote one small
59530 component of a "memory exhausted" message in slot 0.
59531 From a suggestion by Jim Meyering.
59533 2000-07-30 Jim Meyering <meyering@lucent.com>
59535 * lib/makepath.c (make_path): Quote the other instance, too.
59537 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
59538 (STATIC_BUF_SIZE): Define.
59539 (quotearg_n_options): Use only statically allocated storage when
59540 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
59541 than STATIC_BUF_SIZE.
59543 2000-07-29 Jim Meyering <meyering@lucent.com>
59545 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
59546 * lib/dirname.c (dir_name): Likewise.
59548 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
59551 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
59552 (dir_name): Assert that there are no trailing slashes.
59554 2000-07-29 Bruno Haible <haible@clisp.cons.org>
59556 * lib/mbswidth.h (mbswidth): Add a flags argument.
59557 (mbswidth): New declaration.
59558 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
59559 * lib/mbswidth.c (mbswidth): Add a flags argument.
59560 (mbsnwidth): New function.
59562 2000-07-24 Jim Meyering <meyering@lucent.com>
59564 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
59566 2000-07-23 Paul Eggert <eggert@twinsun.com>
59568 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
59570 2000-07-23 Paul Eggert <eggert@twinsun.com>
59572 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
59573 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
59574 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
59575 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
59576 invoke multibyte primitives.
59578 2000-07-23 Paul Eggert <eggert@twinsun.com>
59581 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
59582 so that mbstate_t is always defined.
59584 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
59585 be 1 in at least one GCC installation, and this configuration
59586 error is likely to be common. Ignoring MB_LEN_MAX hurts
59587 performance on hosts that have mbrtowc but have only unibyte
59588 locales, but I assume these hosts are rare.
59590 2000-07-23 Paul Eggert <eggert@twinsun.com>
59592 * lib/mbswidth.c (_XOPEN_SOURCE):
59593 Don't define; this causes problems on Solaris 7.
59594 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
59596 2000-07-23 Jim Meyering <meyering@lucent.com>
59598 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
59599 too: getgrgid, getpwuid, getuid.
59601 2000-07-23 Jim Meyering <meyering@lucent.com>
59603 * lib/basename.c (base_name): Add an assertion.
59605 2000-07-23 Bruno Haible <haible@clisp.cons.org>
59607 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
59608 shadow its mbsinit function.
59610 2000-07-17 Bruno Haible <haible@clisp.cons.org>
59612 * lib/mbswidth.h: New file.
59613 * lib/mbswidth.c: New file.
59614 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
59615 (noinst_HEADERS): Add mbswidth.h.
59617 2000-07-17 Bruno Haible <haible@clisp.cons.org>
59619 * lib/config.charset: Add support for FreeBSD. Improve support for
59622 2000-07-16 Bruno Haible <haible@clisp.cons.org>
59624 * m4/mbswidth.m4: New file.
59625 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
59627 2000-07-15 Jim Meyering <meyering@lucent.com>
59629 * lib/makepath.c: Include quote.h.
59630 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
59631 corresponding argument in a `quote (...)' call.
59632 Give better diagnostics.
59634 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
59635 (noinst_HEADERS): Add quote.h.
59637 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
59638 from tar's src/misc.c.
59639 * lib/quote.h: New file. Prototypes for same.
59641 2000-07-14 Paul Eggert <eggert@twinsun.com>
59643 From a suggestion by Bruno Haible.
59644 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
59645 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
59646 to decide whether to define the BeOS workaround macro;
59647 this adjusts to the change to AC_MBSTATE_T.
59649 2000-07-14 Jim Meyering <meyering@lucent.com>
59651 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
59652 jm_AC_TYPE_UINTMAX_T.
59654 2000-07-13 Paul Eggert <eggert@twinsun.com>
59656 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
59658 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
59659 quotearg_buffer_restyled): Add support for
59660 clocale_quoting_style. Undo previous change to
59661 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
59662 and "{RIGHT QUOTATION MARK}" msgids.
59664 2000-07-10 Paul Eggert <eggert@twinsun.com>
59666 From a suggestion by Bruno Haible.
59667 * m4/mbstate_t.m4 (AC_MBSTATE_T):
59668 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
59669 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
59670 and mbstate_t, to a single-part test that simply defines mbstate_t.
59671 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
59672 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
59674 2000-07-10 Jim Meyering <meyering@lucent.com>
59676 * m4/strerror_r.m4: Mirror the correction made in autoconf.
59678 * m4/gnu-source.m4: Output to confdefs.h directly.
59679 Suggestion from Akim Demaille.
59681 2000-07-09 Paul Eggert <eggert@twinsun.com>
59683 The old behavior of quoting `like this' doesn't look good with
59684 newer, ISO-style fonts. See:
59685 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
59687 Instead, quote "like this" by default. Let the translator
59688 tailor the locale-specific quoting behavior by providing
59689 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
59691 * lib/quotearg.c (N_): New macro.
59692 (gettext_default): New function.
59693 (quotearg_buffer_restyled): Use
59694 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
59695 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
59697 2000-07-09 Jim Meyering <meyering@lucent.com>
59699 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
59700 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
59702 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
59703 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
59705 2000-07-09 Jim Meyering <meyering@lucent.com>
59707 * lib/Most files: Update copyright dates to include 2000.
59709 2000-07-08 Jim Meyering <meyering@lucent.com>
59711 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
59713 (xgethostname): Remove now-unnecessary #ifdef.
59714 Move declaration of `err' into loop where it's used.
59716 2000-07-05 Paul Eggert <eggert@twinsun.com>
59717 and Bruno Haible <haible@clisp.cons.org>
59719 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
59720 only if the test for an object-type mbstate_t fails. This
59721 prevents us from mistakenly reporting that mbstate_t is a
59722 system object type after we "#define mbstate_t int" to work
59725 2000-07-05 Paul Eggert <eggert@twinsun.com>
59726 and Bruno Haible <haible@clisp.cons.org>
59728 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
59730 2000-07-05 Bruno Haible <haible@clisp.cons.org>
59732 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
59734 Include <ctype.h> for use of isalpha.
59736 2000-07-05 Bruno Haible <haible@clisp.cons.org>
59738 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
59739 by allocating a larger buffer. Test the gethostname return value for
59740 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
59741 returns an error and ENAMETOOLONG isn't defined.
59743 2000-07-05 Bruno Haible <haible@clisp.cons.org>
59745 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
59748 2000-07-04 Jim Meyering <meyering@lucent.com>
59750 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
59751 of the deprecated AC_CHECKING.
59753 2000-07-04 Jim Meyering <meyering@lucent.com>
59755 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
59756 Reported by Bruno Haible.
59758 2000-07-04 Jim Meyering <meyering@lucent.com>
59760 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
59761 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
59764 2000-07-03 Paul Eggert <eggert@twinsun.com>
59766 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
59767 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
59769 2000-07-03 Paul Eggert <eggert@twinsun.com>
59770 and Bruno Haible <haible@clisp.cons.org>
59772 * lib/quotearg.c (mbrtowc):
59773 Assign to *pwc, and return 1 only if result is nonzero.
59774 (iswprint): Use ISPRINT when substituting our own mbrtowc.
59776 2000-07-03 Jim Meyering <meyering@lucent.com>
59778 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
59780 2000-07-03 Jim Meyering <meyering@lucent.com>
59782 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
59783 This is necessary to get a definition of e.g., UTMP_FILE on
59787 2000-07-02 Jim Meyering <meyering@lucent.com>
59789 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
59791 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
59792 AC_LIBOBJ(function_name).
59793 * m4/chown.m4: Likewise.
59794 * m4/fnmatch.m4: Likewise.
59795 * m4/ftruncate.m4: Likewise.
59796 * m4/getgroups.m4: Likewise.
59797 * m4/getline.m4: Likewise.
59798 * m4/group-member.m4: Likewise.
59799 * m4/jm-macros.m4: Likewise.
59800 * m4/lstat.m4: Likewise.
59801 * m4/malloc.m4: Likewise.
59802 * m4/memcmp.m4: Likewise.
59803 * m4/nanosleep.m4: Likewise.
59804 * m4/putenv.m4: Likewise.
59805 * m4/realloc.m4: Likewise.
59806 * m4/regex.m4: Likewise.
59807 * m4/stat.m4: Likewise.
59808 * m4/strftime.m4: Likewise.
59810 2000-07-02 Jim Meyering <meyering@lucent.com>
59812 * lib/quotearg.c (mbstate_t): Don't define here.
59814 2000-07-02 Jim Meyering <meyering@lucent.com>
59816 * lib/nanosleep.c (SIGCONT): Define if not already defined.
59818 2000-07-01 Jim Meyering <meyering@lucent.com>
59820 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
59822 2000-07-01 Jim Meyering <meyering@lucent.com>
59824 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
59827 2000-07-01 Bruno Haible <haible@clisp.cons.org>
59829 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
59830 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
59832 2000-07-01 Bruno Haible <haible@clisp.cons.org>
59834 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
59835 per change in ../m4/ls-mntd-fs.m4.
59836 (read_filesystem_list): Ignore symbolic links.
59838 2000-06-29 Jim Meyering <meyering@lucent.com>
59840 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
59841 for declaration of strcmp.
59843 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
59845 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
59846 Avoid warning by casting result to `char *' to remove `const'.
59848 2000-06-28 Jim Meyering <meyering@lucent.com>
59850 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
59851 included by quotearg.c, for which we perform this test. From
59854 2000-06-27 Bruno Haible <haible@clisp.cons.org>
59856 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
59857 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
59858 <utmpx.h> exists, put readutmp.o into LIBOBJS.
59860 2000-06-27 Bruno Haible <haible@clisp.cons.org>
59862 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
59864 2000-06-26 Paul Eggert <eggert@twinsun.com>
59866 savedir now sets errno on failure and invokes xmalloc to get memory.
59867 Fix a couple of other minor bugs while we're at it.
59869 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
59870 (NAMLEN): Remove macro.
59871 (malloc, realloc): Remove decls.
59872 (stpcpy): Likewise.
59873 ("xalloc.h"): Include.
59874 (NAME_SIZE_DEFAULT): New macro.
59875 (savedir): Use xmalloc / xrealloc to allocate memory.
59876 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
59877 Skip "" directory entries.
59878 Use strlen to calculate directory entry length, since the old method
59879 is rarely used these days and isn't worth supporting.
59880 Don't use a pointer after freeing it.
59881 Check for integer overflow when calculating allocation size.
59882 Use memcpy to copy entries, instead of stpcpy.
59883 Set errno properly when returning NULL.
59884 Check for readdir error.
59886 2000-06-26 Jim Meyering <meyering@lucent.com>
59888 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
59890 2000-06-25 Jim Meyering <meyering@lucent.com>
59892 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
59893 Linux header bug when _XOPEN_SOURCE is defined to 500.
59895 2000-06-25 Bruno Haible <haible@clisp.cons.org>
59897 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
59900 2000-06-25 Bruno Haible <haible@clisp.cons.org>
59902 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
59904 Don't include <stdlib.h>. Don't declare malloc, realloc.
59906 2000-06-24 Jim Meyering <meyering@lucent.com>
59908 * m4/strerror_r.m4: Revive this file -- to try out an experimental
59909 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
59910 for which strerror does return char*, but which lacks a conveniently
59911 accessible declaration of the function. If the compile-test says
59912 strerror_r doesn't work, then resort to a `run'-test that works on
59913 BeOS and segfaults on DEC Unix.
59915 2000-06-24 Jim Meyering <meyering@lucent.com>
59917 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
59919 2000-06-23 Paul Eggert <eggert@twinsun.com>
59921 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
59922 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
59924 2000-06-23 Paul Eggert <eggert@twinsun.com>
59926 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
59927 (mbrtowc, mbstate_t): Define substitutes if
59928 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
59929 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
59930 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
59932 2000-06-23 Jim Meyering <meyering@lucent.com>
59934 * m4/afs.m4: Add missing AC_MSG_RESULT.
59935 Reported by Bruno Haible.
59937 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
59938 Suggestion from Bruno Haible.
59940 2000-06-23 Jim Meyering <meyering@lucent.com>
59942 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
59944 2000-06-21 Jim Meyering <meyering@lucent.com>
59946 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
59948 2000-06-21 Jim Meyering <meyering@lucent.com>
59950 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
59951 (noinst_HEADERS): Add getstr.h.
59953 * lib/getline.c (getstr): Move into a separate file.
59954 * lib/getstr.c (getstr): New file, extracted from getline.c, with
59955 the following changes: new parameter, delim2; both delim[12]
59956 parameters have type `int', not `char'. The latter would lose
59957 with 8-bit delimiters.
59958 * lib/getstr.h: New file.
59960 2000-06-21 Bruno Haible <haible@clisp.cons.org>
59962 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
59963 than 1024, return a memory chunk of least possible size, instead
59964 of size PATH_MAX + 2. In the loop, increment the size proportionally.
59965 Use free/xmalloc instead of xrealloc to avoid copying for very long
59968 2000-06-21 Bruno Haible <haible@clisp.cons.org>
59970 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
59973 2000-06-21 Bruno Haible <haible@clisp.cons.org>
59975 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
59976 address, not strdup. Include <stdlib.h> and don't declare free().
59978 2000-06-19 Jim Meyering <meyering@lucent.com>
59980 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
59982 2000-06-18 Jim Meyering <meyering@lucent.com>
59984 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
59986 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
59987 `checking whether...' message to be consistent with that of the
59990 2000-06-18 Jim Meyering <meyering@lucent.com>
59992 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
59993 Besides, these days every porting target provides a mkdir function.
59995 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
59996 needed. (this snippet comes from src/system.h).
59998 2000-06-16 Bruno Haible <haible@clisp.cons.org>
60000 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
60002 2000-06-15 Paul Eggert <eggert@twinsun.com>
60004 * lib/human.c (adjust_value): New function.
60005 (human_readable_inexact): Apply rounding style even when
60006 printing approximate values.
60008 2000-06-14 Paul Eggert <eggert@twinsun.com>
60010 * lib/human.c (human_readable_inexact): Allow an input block
60011 size that is not a multiple of the output block size, and vice versa.
60012 Reported by Piergiorgio Sartor.
60014 2000-06-14 Paul Eggert <eggert@twinsun.com>
60016 * lib/getdate.y (get_date): Apply relative times after time
60017 zone indicator, not before. Reported by Todd A. Jacobs.
60019 2000-06-13 Jim Meyering <meyering@lucent.com>
60021 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
60023 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
60025 2000-06-12 Paul Eggert <eggert@twinsun.com>
60027 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
60029 2000-06-12 Jim Meyering <meyering@lucent.com>
60031 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
60032 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
60034 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
60035 the optional argument, `lib'.
60037 2000-06-08 Jim Meyering <meyering@lucent.com>
60039 * m4/largefile.m4: Remove file (now that it's part of autoconf).
60041 2000-06-04 Paul Eggert <eggert@twinsun.com>
60043 Rewrite largefile configuration so that we don't need to run
60044 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
60045 AC_CANONICAL_HOST in configure.in -- jmm]
60047 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
60048 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
60049 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
60050 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
60051 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
60053 Instead of inspecting the output of getconf, try to compile the
60054 test program without and with the macro definition.
60055 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
60056 for getconf. Instead, check for the needed flags by compiling
60059 2000-06-04 Paul Eggert <eggert@twinsun.com>
60061 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
60063 2000-06-04 Jim Meyering <meyering@lucent.com>
60065 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
60066 SunOS 4.1.4 for which gid_t is an unsigned type.
60068 2000-06-03 Jim Meyering <meyering@lucent.com>
60070 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
60071 now that autoconf requires that.
60073 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
60074 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
60075 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
60077 2000-06-03 Jim Meyering <meyering@lucent.com>
60079 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
60081 2000-06-03 Bruno Haible <haible@clisp.cons.org>
60083 * m4/glibc21.m4: New file.
60084 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
60086 2000-06-03 Bruno Haible <haible@clisp.cons.org>
60088 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
60089 newer, don't install charset.alias.
60090 * lib/config.charset: Change the Linux/glibc rules so they become empty
60091 on glibc-2.1 or newer.
60093 2000-06-02 Jim Meyering <meyering@lucent.com>
60095 * lib/mountlist.c: Back out last change. Instead, do this...
60096 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
60097 me_dummy member using the same `ignore'-testing code.
60098 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
60102 2000-05-29 Jim Meyering <meyering@lucent.com>
60104 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
60105 mounts with the `ignore' attribute. Based on a patch from
60108 2000-05-28 Jim Meyering <meyering@lucent.com>
60110 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
60111 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60112 * m4/stat.m4: Likewise.
60113 * m4/lstat.m4: Likewise.
60114 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
60116 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
60117 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
60119 2000-05-26 Jim Meyering <meyering@lucent.com>
60121 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
60123 2000-05-24 Jim Meyering <meyering@lucent.com>
60125 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
60126 autoconf requires that.
60127 * m4/lib-check.m4: Likewise.
60128 * m4/jm-macros.m4: Likewise.
60129 * m4/strftime.m4: Likewise.
60131 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
60132 AC_CHECK_DECLS, now that autoconf requires that.
60134 2000-05-22 Jim Meyering <meyering@lucent.com>
60136 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60137 * m4/lstat.m4: Likewise.
60139 2000-05-22 Jim Meyering <meyering@lucent.com>
60141 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
60143 2000-05-20 Jim Meyering <meyering@lucent.com>
60145 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
60146 (jm_PREREQ): Use it.
60148 2000-05-18 Jim Meyering <meyering@lucent.com>
60150 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
60151 back, too, since it may have been modified by allocate_entry.
60152 (hash_delete): Rewrite to use neither the assignment operator
60153 nor the comma operator in an if-expression.
60155 2000-05-15 Paul Eggert <eggert@twinsun.com>
60158 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
60159 Remove; no longer needed.
60160 "quotearg.h": Add include.
60161 (file_name): Do not bother to explicitly initialize to NULL; it's less
60162 efficient on some hosts.
60163 (close_stdout_status): Remove test as to whether stdout was already
60164 closed; it breaks for the case "echo x | sort >&-".
60165 Quote file name colons.
60166 Do not assume that _("write error") lacks format strings.
60168 2000-05-15 Jim Meyering <meyering@lucent.com>
60170 * lib/version-etc.c (version_etc_copyright): Update the copyright
60171 string used in all --version output.
60173 2000-05-14 Jim Meyering <meyering@lucent.com>
60175 * lib/closeout.c (close_stdout_set_file_name): New function.
60176 (close_stdout_status): Use new file-scoped global.
60177 Return right away if fstat says the stdout file descriptor is invalid.
60178 * lib/closeout.h (close_stdout_set_file_name): Declare.
60180 2000-05-10 Jim Meyering <meyering@lucent.com>
60182 * lib/closeout.c [default_exit_status]: New file-scoped variable.
60183 (close_stdout_set_status): New function.
60184 * lib/closeout.h (close_stdout_set_status): Declare.
60186 2000-05-09 Jim Meyering <meyering@lucent.com>
60188 * m4/gettext.m4: Rename this...
60189 * m4/libintl.m4: ...to this.
60191 2000-05-08 Jim Meyering <meyering@lucent.com>
60193 * lib/long-options.c: Don't include closeout.h.
60194 (parse_long_options): Don't call close_stdout for --version.
60196 2000-05-06 Paul Eggert <eggert@twinsun.com>
60198 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
60199 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
60200 2.1.3 bug. This avoids a clash when files like regex.c define
60203 2000-05-06 Jim Meyering <meyering@lucent.com>
60205 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
60206 (AC_REPLACE_FUNCS): Add strnlen.
60208 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
60209 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
60211 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
60212 AC_SEARCH_LIBS call for nanosleep.
60213 (LIB_NANOSLEEP): Set and AC_SUBST.
60215 2000-05-06 Jim Meyering <meyering@lucent.com>
60217 * lib/strnlen.c: Undefine __strnlen and strnlen.
60218 [!weak_alias]: Define __strnlen to strnlen.
60220 * lib/atexit.c: New file, from libiberty.
60222 2000-05-06 Jim Meyering <meyering@lucent.com>
60224 * lib/closeout.c (close_stdout_status): Also check for errors on the
60227 2000-05-05 Jim Meyering <meyering@lucent.com>
60229 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
60230 AC_SEARCH_LIBS call for clock_gettime.
60231 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
60233 * m4/search-libs.m4: Update from autoconf.
60235 su doesn't work on Solaris 2.6.
60236 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
60237 <shadow.h>. Reported by Dragos Harabor.
60239 2000-05-05 Bruno Haible <haible@clisp.cons.org>
60241 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
60242 memcpy instead of xmalloc, xrealloc, path_concat.
60243 (locale_charset): Treat empty environment variables as absent.
60244 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
60246 2000-05-04 Jim Meyering <meyering@lucent.com>
60248 * lib/getopt.c: Update from glibc.
60249 * lib/obstack.c: Likewise.
60250 * lib/obstack.h: Likewise.
60251 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
60254 * lib/regex.h: Likewise.
60255 * lib/strndup.c: Likewise.
60256 * lib/strnlen.c: New file, from glibc.
60258 2000-05-03 Jim Meyering <meyering@lucent.com>
60260 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
60262 2000-05-02 Paul Eggert <eggert@twinsun.com>
60264 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
60265 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
60266 compile-time test, rather than inspecting host and OS, to
60267 decide whether to define _LARGEFILE_SOURCE.
60269 2000-05-01 Jim Meyering <meyering@lucent.com>
60271 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
60273 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
60274 Based on a patch from Bruno Haible.
60276 2000-05-01 Jim Meyering <meyering@lucent.com>
60278 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
60280 2000-04-29 Jim Meyering <meyering@lucent.com>
60282 * lib/path-concat.c: Declare strdup only if it's not defined.
60283 * lib/canon-host.c: Likewise.
60285 2000-04-28 Jim Meyering <meyering@lucent.com>
60287 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
60288 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
60289 is included first, then limits.h is included by locale.h by libintl.h.
60290 From John David Anglin.
60292 2000-04-25 Jim Meyering <meyering@lucent.com>
60294 * lib/makepath.c (S_IRWXUGO): Define.
60295 (make_path): Always perform explicit chmod if MODE specifies any
60296 of the `special' permission bits. Prompted by a bug report against
60297 install from Mate Wierdl and Joost van Baal.
60299 2000-04-18 Jim Meyering <meyering@lucent.com>
60301 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
60302 (jm_PREREQ): Use it.
60304 2000-04-18 Jim Meyering <meyering@lucent.com>
60306 * lib/README: New file.
60308 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
60309 getpagesize. For BeOS. Based on a patch from Bruno Haible.
60311 2000-04-17 Jim Meyering <meyering@lucent.com>
60314 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
60315 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
60316 Suggestion from Akim Demaille.
60318 2000-04-17 Jim Meyering <meyering@lucent.com>
60320 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
60321 the definition of it to rpl_strftime also defined-away the system's
60324 2000-04-15 Jim Meyering <meyering@lucent.com>
60326 Use `C' to denote so-called `contiguous' files, the same way
60328 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
60329 (ftypelet): Use S_ISCTG.
60330 From Michael Deutschmann.
60332 2000-04-14 Jim Meyering <meyering@lucent.com>
60334 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
60335 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
60338 2000-04-14 Jim Meyering <meyering@lucent.com>
60340 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
60342 2000-04-13 Jim Meyering <meyering@lucent.com>
60344 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
60345 AH_VERBATIM to insert required #ifndef into config.h.in.
60346 Suggestion from Akim Demaille.
60348 2000-04-12 Jim Meyering <meyering@lucent.com>
60350 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
60351 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
60352 Christian Krackowizer.
60354 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
60355 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
60356 (AC_SYS_LARGEFILE): Require.
60357 (AM_C_PROTOTYPES): Require.
60359 2000-04-08 Jim Meyering <meyering@lucent.com>
60361 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
60362 names don't conflict. Reported by Eli Zaretskii.
60364 2000-04-07 Jim Meyering <meyering@lucent.com>
60366 * lib/putenv.c: Move inclusion of errno.h so it follows that of
60367 sys/types.h, to work around system header problems on AIX 3.2.5.
60370 2000-04-07 Bruno Haible <haible@clisp.cons.org>
60372 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
60373 bug. Deal with the different error behavior of Irix iconv.
60375 2000-04-05 Paul Eggert <eggert@twinsun.com>
60377 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
60378 IRIX if the installer said otherwise.
60380 2000-04-05 Jim Meyering <meyering@lucent.com>
60382 Portability tweaks required for ultrix4.3.
60383 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
60384 (jm_CHECK_DECLS): Add getutent to the list of functions.
60385 (_jm_DECL_HEADERS): Add utmpx.h.
60386 From John David Anglin.
60388 * m4/strftime.m4: Back out the 2000-04-02 change.
60389 Instead of that change, simply undefine putenv in the test program.
60391 2000-04-05 Jim Meyering <meyering@lucent.com>
60393 Portability tweaks required for ultrix4.3.
60394 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
60396 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
60397 * lib/canon-host.c: Declare strdup.
60398 * lib/path-concat.c: Likewise.
60399 From John David Anglin.
60401 2000-04-04 Jim Meyering <meyering@lucent.com>
60403 Be more DOS 8.3-friendly.
60404 * lib/ref-add.sin: Renamed from ref-add.sed.in.
60405 * lib/ref-del.sin: Renamed from ref-del.sed.in.
60406 * lib/Makefile.am: Reflect renaming.
60407 Reported by Eli Zaretskii.
60409 Use a temporary file name that won't clash with `charset.alias'
60410 in the DOS 8.3 name space.
60411 * lib/Makefile.am (charset_tmp): Define.
60412 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
60413 (uninstall-local): Likewise.
60414 Reported by Eli Zaretskii.
60416 2000-04-03 Jim Meyering <meyering@lucent.com>
60418 * m4/gettext.m4: Fix typo in comment.
60420 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
60421 textutils/configure.in). Suggestion from Paul Eggert.
60422 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
60424 2000-04-02 Paul Eggert <eggert@twinsun.com>
60426 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
60427 variable in the shell rather than using putenv, which isn't
60428 portable. This avoids the configure-time inter-test dependency
60429 on the potentially-renamed putenv function.
60431 2000-03-30 Paul Eggert <eggert@twinsun.com>
60433 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
60434 before checking struct stat.st_blksize, so that
60435 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
60437 2000-03-29 Paul Eggert <eggert@twinsun.com>
60439 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
60440 since strftime.c uses HAVE_STRFTIME to decide whether to use
60441 the underlying strftime.
60443 2000-03-29 Paul Eggert <eggert@twinsun.com>
60445 * lib/time/strftime.c (my_strftime): Make sure we call the system
60446 strftime, not ourselves, when invoking the underlying strftime.
60448 2000-03-24 Jim Meyering <meyering@lucent.com>
60450 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
60451 (charset_alias): Define.
60452 (install-exec-local): Factor out common code.
60453 (uninstall-local): Split lines longer than 80.
60454 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
60455 (SUFFIXES): Define.
60456 (.sed.in.sed): New rule. Don't redirect directly to $@.
60457 (CLEANFILES): Add ref-add.sed and ref-del.sed.
60459 2000-03-19 Bruno Haible <haible@clisp.cons.org>
60461 * lib/config.charset: Output a line containing "Packages using this
60463 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
60464 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
60465 ref-del.sed): New rules.
60467 2000-03-17 Jim Meyering <meyering@lucent.com>
60469 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
60470 Otherwise, include <strings.h>
60472 2000-03-17 Bruno Haible <haible@clisp.cons.org>
60474 * lib/unicodeio.c (utf8_wctomb): New function.
60475 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
60476 format instead of in UCS-4 with platform dependent endianness.
60478 2000-03-10 Jim Meyering <meyering@lucent.com>
60480 * m4/lib-check.m4: Look for getspnam in -lgen, too.
60481 From Marco Franzen.
60483 2000-03-07 Paul Eggert <eggert@twinsun.com>
60485 * lib/savedir.c (savedir): Work even if directory size is
60486 negative; this can happen with some screwy NFS configurations.
60488 2000-03-06 Jim Meyering <meyering@lucent.com>
60490 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
60491 if it's NULL (because we ran out of memory). From Bruno Haible.
60493 2000-03-05 Jim Meyering <meyering@lucent.com>
60495 * lib/localcharset.c ("path-concat.h"): Include.
60496 (get_charset_aliases): Use path_concat instead of ANSI string
60499 * lib/unicodeio.h (PARAMS): Define.
60500 Use it to guard prototype.
60502 2000-03-04 Jim Meyering <meyering@lucent.com>
60504 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
60505 for lib/localcharset.c.
60507 2000-03-04 Jim Meyering <meyering@lucent.com>
60509 * lib/Makefile.am (install-exec-local): Create $(libdir) before
60510 installing into it.
60511 (uninstall-local): Uncomment this rule so `make distcheck' works
60514 * lib/unicodeio.c (<errno.h>): Include it.
60515 (errno): Declare if not defined.
60517 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
60519 * lib/config.charset: New version, incorporating remarks from a linux
60520 i18n mailing list. From Bruno Haible.
60522 2000-03-04 Bruno Haible <haible@clisp.cons.org>
60524 * m4/codeset.m4: New file.
60525 * m4/iconv.m4: New file.
60526 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
60528 2000-03-03 Jim Meyering <meyering@lucent.com>
60530 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
60532 2000-03-02 Jim Meyering <meyering@lucent.com>
60534 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
60535 the messages come out on separate lines.
60537 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
60538 rather than jm_CHECK_DECLARATIONS.
60539 * m4/decl.m4: Remove now-unused file.
60541 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
60544 2000-03-02 Jim Meyering <meyering@lucent.com>
60546 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
60548 2000-03-01 Jim Meyering <meyering@lucent.com>
60550 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
60551 * lib/unicodeio.c: Likewise.
60553 2000-03-01 Bruno Haible <haible@clisp.cons.org>
60555 * lib/config.charset: New file.
60556 * lib/localcharset.c: New file.
60557 * lib/unicodeio.h, lib/unicodeio.c: New files.
60558 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
60559 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
60560 (noinst_HEADERS): Add unicodeio.h.
60561 (all-local, install-exec-local, charset.alias): New targets.
60563 2000-02-28 Paul Eggert <eggert@twinsun.com>
60565 * lib/quotearg.c (ALERT_CHAR): New macro.
60566 (quotearg_buffer_restyled): Use it.
60568 2000-02-27 Jim Meyering <meyering@lucent.com>
60570 * m4/check-decl.m4: Add getenv to the list.
60572 2000-02-27 Jim Meyering <meyering@lucent.com>
60574 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
60575 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
60577 * lib/backupfile.c: Guard inclusion of stdlib.h with
60578 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
60579 Declare malloc if needed.
60581 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
60582 `#ifndef HAVE_DECL..'
60583 now that autoconf always defines the HAVE_DECL_ symbols.
60584 * lib/human.c: Likewise.
60585 * lib/same.c: Likewise.
60586 * lib/strtoumax.c: Likewise.
60588 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
60589 declaration check was not run.
60590 * lib/hash.c: Likewise.
60591 * lib/human.c: Likewise.
60592 * lib/same.c: Likewise.
60593 * lib/strtoumax.c: Likewise.
60595 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
60596 `.', then first look up the entire `.'-containing string as a login
60599 2000-02-23 Jim Meyering <meyering@lucent.com>
60601 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
60602 in place of my hack.
60604 2000-02-18 Paul Eggert <eggert@twinsun.com>
60606 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
60607 (textint): New typedef.
60608 (parser_control): Member year changed from int to textint.
60610 (YYSTYPE): Removed; replaced by %union with int and textint members.
60611 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
60612 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
60613 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
60614 (tSNUMBER, tUNUMBER): Now of type <textintval>.
60615 (date, number, to_year): Use width of number in digits, not its value,
60616 to determine whether it's a 2-digit year, or a 2-digit time.
60617 (yylex): Store number of digits of numeric tokens.
60618 Reported by John Kendall.
60620 (parser_control): Changed from struct parser_control to typedef (for
60621 consistency). All uses changed.
60623 (tID): Removed; not used.
60624 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
60626 2000-02-14 Paul Eggert <eggert@twinsun.com>
60628 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
60629 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
60631 2000-02-12 Jim Meyering <meyering@lucent.com>
60633 * lib/userspec.c (ISDIGIT): Define it.
60634 (isdigit): Remove definition.
60635 (is_number): Use ISDIGIT, not isdigit.
60636 <libintl.h>: Include.
60637 (_ and N_): Define.
60638 (parse_user_spec): Mark translatable strings.
60640 2000-02-10 Jim Meyering <meyering@lucent.com>
60642 With these changes, nanosleep.[ch] are finally enough like the other
60643 lib/* replacement files to compile on a few more losing systems.
60645 * lib/nanosleep.h: Don't include config.h.
60646 Remove prototype from declaration of nanosleep.
60647 (PARAMS): Remove now-unneeded definition.
60648 * lib/nanosleep.c: #undef nanosleep.
60649 (rpl_nanosleep): Rename from nanosleep.
60651 2000-02-10 Jim Meyering <meyering@lucent.com>
60653 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
60654 gnu_nanosleep to rpl_nanosleep.
60656 2000-02-09 Jim Meyering <meyering@lucent.com>
60658 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
60659 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
60661 2000-02-08 Akim Demaille <akim@epita.fr>
60663 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
60664 `[' and `]' and remove uses of `changequote'.
60665 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
60666 (AC_SYS_LARGEFILE): Likewise.
60667 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
60668 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
60670 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
60671 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
60672 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
60673 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
60675 2000-02-05 Jim Meyering <meyering@lucent.com>
60677 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
60678 Remove explicit use of AC_HEADER_TIME. It is required by
60679 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
60680 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
60681 in autoconf whereby the expansion of the latter ended up preceding
60682 the expansion of its prerequisite, AC_HEADER_TIME.
60683 Reported by Volker Borchert.
60685 2000-02-03 Jim Meyering <meyering@lucent.com>
60687 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
60689 2000-02-03 Jim Meyering <meyering@lucent.com>
60691 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
60692 rather than with `#if HAVE_UTMPNAME'.
60694 2000-02-02 Jim Meyering <meyering@lucent.com>
60696 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
60697 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
60698 Reported by Eli Zaretskii.
60700 2000-02-01 Jim Meyering <meyering@lucent.com>
60702 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
60704 2000-01-31 Jim Meyering <meyering@lucent.com>
60706 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
60707 functions. Add the time.h and sys/time.h headers along with the
60708 AC_REQUIRE'ment of AC_HEADER_TIME.
60710 2000-01-31 Jim Meyering <meyering@lucent.com>
60712 * lib/nanosleep.h (nanosleep): Guard declaration with
60713 `#if ! HAVE_DECL_NANOSLEEP'.
60714 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
60715 the declaration in that vendor's sys/timers.h.
60716 Reported by Christian Krackowizer.
60718 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
60719 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
60720 (ISPRINT): Likewise.
60721 Reported by Tom Tromey.
60723 2000-01-30 Jim Meyering <meyering@lucent.com>
60725 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
60727 * m4/prereq.m4 (utmp_includes): Define.
60728 Check for ut_user and ut_name members in both struct utmpx
60731 2000-01-30 Jim Meyering <meyering@lucent.com>
60733 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
60734 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
60735 header files where only utmpx.ut_user is declared.
60737 * lib/readutmp.h (UT_USER): Define.
60739 2000-01-29 Jim Meyering <meyering@lucent.com>
60741 * m4/lib-check.m4: New file containing library-related checks from
60742 fileutils and sh-utils (textutils had none).
60744 2000-01-28 Jim Meyering <meyering@lucent.com>
60746 * m4/perl.m4: Change format of warning message to look more like that
60747 from the missing script. Suggestion from François Pinard.
60749 2000-01-25 Jim Meyering <meyering@lucent.com>
60751 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
60752 well as time.h in the compile check.
60753 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
60754 Fix typo in cross-compiling case: s/yes/no/.
60756 2000-01-23 Jim Meyering <meyering@lucent.com>
60758 * m4/jm-macros.m4: Move df-related tests here from
60759 fileutils/configure.in
60761 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
60762 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
60764 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
60765 s/space/ac_fsusage_space/.
60766 (jm_FILE_SYSTEM_USAGE): Take two parameters.
60768 * m4/ftruncate.m4: New file (derived from part of
60769 fileutils/configure.in).
60770 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
60771 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
60773 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
60774 AC_SUBST these here, rather than just in sh-util/configure.in, so
60775 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
60777 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
60778 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
60779 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
60780 (AC_SUBST(POW_LIBM)): Likewise.
60781 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
60783 2000-01-23 Jim Meyering <meyering@lucent.com>
60785 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
60788 2000-01-22 Jim Meyering <meyering@lucent.com>
60790 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
60792 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
60794 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
60796 (AC_CHECK_HEADERS): Likewise for sh-utils.
60797 (AC_CHECK_HEADERS): Likewise for textutils.
60798 Merge the three lists of headers.
60800 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
60801 from fileutils' configure.in.
60803 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
60804 code. Moved tests into their own function (_jm_DECL_HEADERS) in
60807 * m4/check-decl.m4: Use #if rather than #ifdef.
60808 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
60809 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
60810 (_jm_DECL_HEADERS): Define new function.
60811 (jm_CHECK_DECLARATIONS): Require it.
60813 2000-01-22 Jim Meyering <meyering@lucent.com>
60815 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
60816 [! HAVE_DECL_STRTOULL]: Declare strtoull.
60817 Required for some AIX systems. Reported by Christian Krackowizer.
60818 [TESTING] (main): New function.
60820 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
60821 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
60824 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
60827 * lib/strverscmp.c (ISDIGIT): Define.
60828 (strverscmp): Use ISDIGIT, not isdigit.
60830 2000-01-19 Jim Meyering <meyering@lucent.com>
60832 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
60833 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
60834 defines `struct timespec' in <sys/time.h>
60836 * m4/c-bs-a.m4: Remove uses of changequote altogether.
60837 Thanks to Akim for explaining.
60839 2000-01-17 Paul Eggert <eggert@twinsun.com>
60841 * lib/nanosleep.c (nanosleep):
60842 Don't use SA_INTERRUPT to decide whether to call sigaction, as
60843 POSIX.1 doesn't require SA_INTERRUPT and some systems
60844 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
60845 it's been part of POSIX.1 since day 1 (in 1988).
60847 2000-01-17 Jim Meyering <meyering@lucent.com>
60849 * lib/interlock: Remove unused file. Reported by François Pinard.
60851 2000-01-16 Paul Eggert <eggert@twinsun.com>
60853 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
60854 alert, backslash, formfeed, and vertical tab unnecessarily in
60855 shell quoting style.
60857 2000-01-16 Jim Meyering <meyering@lucent.com>
60859 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
60860 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
60861 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
60862 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
60864 2000-01-16 Jim Meyering <meyering@lucent.com>
60866 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
60867 because the latter didn't work.
60869 2000-01-15 Jim Meyering <meyering@lucent.com>
60871 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
60872 (AC_REPLACE_FUNCS): Add memcpy and memset.
60873 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
60875 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
60877 2000-01-12 Jim Meyering <meyering@lucent.com>
60879 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
60880 (jm_PREREQ): Use it.
60881 (jm_PREREQ_READUTMP): New macro.
60882 (jm_PREREQ): Use it.
60884 2000-01-11 Paul Eggert <eggert@twinsun.com>
60886 Quote multibyte characters correctly.
60887 * m4/c-bs-a.m4: New file.
60888 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
60889 (jm_PREREQ): Use it.
60891 2000-01-11 Paul Eggert <eggert@twinsun.com>
60893 * m4/uintmax_t.m4: Port to autoconf 2.13.
60895 2000-01-08 Jim Meyering <meyering@ascend.com>
60897 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
60898 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
60900 2000-01-04 Jim Meyering <meyering@ascend.com>
60902 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
60903 jm_STRUCT_DIRENT_D_TYPE.
60904 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
60905 jm_STRUCT_DIRENT_D_INO.
60906 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
60908 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
60910 * m4/utime.m4: Likewise.
60912 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
60913 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
60915 2000-01-03 Paul Eggert <eggert@twinsun.com>
60917 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
60918 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
60920 2000-01-02 Jim Meyering <meyering@ascend.com>
60922 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
60923 remember if this is necessary.
60925 1999-12-26 Jim Meyering <meyering@ascend.com>
60927 * m4/jm-macros.m4: Use it here.
60928 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
60930 1999-12-23 Jim Meyering <meyering@ascend.com>
60932 * m4/jm-macros.m4: Check for clock_gettime (moved from
60933 fileutils/configure.in)
60934 Check for gettimeofday.
60936 1999-12-20 Jim Meyering <meyering@ascend.com>
60938 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
60939 autoconf-2.14a-1999-12-20.
60941 1999-12-19 Jim Meyering <meyering@ascend.com>
60943 * m4/lstat-slash.m4: New file.
60944 * m4/jm-macros.m4: Use the new macro:
60945 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60947 1999-12-07 Jim Meyering <meyering@ascend.com>
60949 * m4/perl.m4: Require that File::Compare be available, too.
60950 Too many systems seem to lack it.
60952 * m4/strftime.m4: Add checks for most of the cpp macros tested in
60953 GNU's strftime.c. Prompted by a patch from Paul Eggert.
60955 1999-11-18 Paul Eggert <eggert@twinsun.com>
60957 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
60958 problem with the QNX 4.25 shell, which doesn't propagate exit
60959 status of failed commands inside shell assignments.
60961 1999-11-17 Jim Meyering <meyering@ascend.com>
60963 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
60965 1999-11-07 Jim Meyering <meyering@ascend.com>
60967 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
60969 1999-11-06 Jim Meyering <meyering@ascend.com>
60971 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
60972 * m4/jm-macros.m4 (jm_MACROS): Use it here.
60974 1999-11-05 Jim Meyering <meyering@ascend.com>
60976 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
60977 configure.in of textutils, fileutils, and sh-utils into this one
60978 (shared between those packages) file.
60979 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
60980 AC_STRUCT_ST_BLKSIZE.
60982 1999-11-03 Jim Meyering <meyering@ascend.com>
60984 * m4/ssize_t.m4: Remove file. No longer needed since the new version
60985 of AC_CHECK_TYPE checks includes unistd.h.
60986 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
60987 Suggestion from Akim Demaille.
60989 1999-10-30 Jim Meyering <meyering@ascend.com>
60991 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
60993 * m4/ls-mntd-fs.m4: Likewise.
60994 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
60995 * m4/jm-winsz1.m4: Likewise.
60997 * m4/const.m4: Remove file, since the fix made it into the experimental
60998 version of autoconf.
60999 * m4/mktime.m4: Likewise.
61001 * m4/check-type.m4: Remove file, now that the latest version of
61002 AC_CHECK_TYPE takes a third arg to specify additional #includes.
61004 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
61005 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
61008 1999-10-04 Jim Meyering <meyering@ascend.com>
61010 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
61012 1999-09-22 Paul Eggert <eggert@twinsun.com>
61014 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
61015 2.95.1 bug with HP-UX 10.20.
61017 1999-09-17 Jim Meyering <meyering@ascend.com>
61019 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
61020 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
61021 due to missing strdup (against sh-utils-2.0).
61023 1999-08-29 Jim Meyering <meyering@ascend.com>
61025 * m4/jm-macros.m4: Require jm_BISON.
61026 * m4/bison.m4: New file.
61028 1999-08-17 Paul Eggert <eggert@twinsun.com>
61030 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
61031 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
61033 1999-08-05 Jim Meyering <meyering@ascend.com>
61035 * m4/getline.m4: Rename test file from conftestdata to conftest.data
61036 to avoid conflicts with `conftest' on 8+3 filesystems.
61037 Suggestion from Eli Zaretskii.
61039 1999-08-04 Jim Meyering <meyering@ascend.com>
61041 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
61042 fileutils and sh-utils (textutils's getline test was inadequate).
61043 (AM_FUNC_GETLINE): Run this test.
61044 (AC_CHECK_FUNCS): Check for getdelim.
61045 Reported by Bob Proulx.
61047 1999-08-02 Jim Meyering <meyering@ascend.com>
61049 * m4/jm-macros.m4: Add a comment.
61051 1999-08-01 Paul Eggert <eggert@twinsun.com>
61053 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
61054 <inttypes.h> defines strtoumax as a macro (and not as a
61057 1999-08-01 Paul Eggert <eggert@twinsun.com>
61059 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
61060 that we can shift, multiply and divide unsigned long long
61061 values; Ultrix cc can't do it.
61063 1999-08-01 Paul Eggert <eggert@twinsun.com>
61065 * m4/mktime.m4: New file, which is a preview of what should appear
61066 in the next public autoconf release.
61068 1999-08-01 Paul Eggert <eggert@twinsun.com>
61070 * m4/lfs.m4: Remove this file.
61071 * m4/largefile.m4: New file. It contains the old contents of
61072 lfs.m4, except that all names with prefix AC_LFS have been
61073 changed to use the prefix AC_SYS_LARGEFILE instead, to be
61074 compatible with future autoconf versions. Also, some minor m4
61075 quoting problems have been fixed.
61077 1999-08-01 Paul Eggert <eggert@twinsun.com>
61079 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
61080 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
61081 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
61082 and simplify the shell code.
61084 1999-08-01 Jim Meyering <meyering@ascend.com>
61086 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
61089 1999-07-20 Jim Meyering <meyering@ascend.com>
61091 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
61093 1999-07-15 Jim Meyering <meyering@ascend.com>
61095 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
61097 1999-05-22 Jim Meyering <meyering@ascend.com>
61099 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
61101 1999-05-20 Jim Meyering <meyering@ascend.com>
61103 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
61104 Add a colon after each `then' in case $4 is empty.
61106 1999-05-16 Jim Meyering <meyering@ascend.com>
61108 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
61110 1999-05-10 Jim Meyering <meyering@ascend.com>
61112 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
61114 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
61117 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
61119 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
61121 1999-05-04 Paul Eggert <eggert@twinsun.com>
61123 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
61124 not CPPFLAGS, so that linking works correctly in IRIX.
61126 1999-04-30 Paul Eggert <eggert@twinsun.com>
61128 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
61130 1999-04-20 Paul Eggert <eggert@twinsun.com>
61132 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
61133 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
61134 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
61135 jm_AC_TYPE_UNSIGNED_LONG_LONG.
61136 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
61138 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
61140 1999-04-20 Jim Meyering <meyering@ascend.com>
61142 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
61143 AC_REPLACE xstroull if necessary. From Paul Eggert.
61144 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
61146 1999-04-18 Jim Meyering <meyering@ascend.com>
61148 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
61149 * m4/jm-macros.m4: Use it.
61151 1999-04-06 Jim Meyering <meyering@ascend.com>
61153 * m4/strftime.m4: Remove test for %f.
61155 1999-03-29 Jim Meyering <meyering@ascend.com>
61157 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
61158 superset of the AC_TYPE_* checks in the textutils, fileutils,
61159 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
61162 1999-03-28 Jim Meyering <meyering@ascend.com>
61164 * m4/jm-macros.m4: Define GNU_PACKAGE here.
61165 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
61166 replaced e.g., in the *.sh files of the sh-utils.
61168 1999-03-20 Jim Meyering <meyering@ascend.com>
61170 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
61171 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
61172 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
61174 1999-03-19 Jim Meyering <meyering@ascend.com>
61176 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
61178 1999-03-12 Jim Meyering <meyering@ascend.com>
61180 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
61182 1999-03-07 Jim Meyering <meyering@ascend.com>
61184 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
61187 1999-02-17 Jim Meyering <meyering@ascend.com>
61189 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
61190 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
61192 1999-02-07 Jim Meyering <meyering@ascend.com>
61194 * m4/group-member.m4: New file -- extracted from sh-utils'
61197 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
61198 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
61200 1999-02-06 Jim Meyering <meyering@ascend.com>
61202 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
61203 * m4/fnmatch.m4: Likewise.
61204 * m4/getgroups.m4: Likewise.
61205 * m4/lstat.m4: Likewise.
61206 * m4/malloc.m4: Likewise.
61207 * m4/putenv.m4: Likewise.
61208 * m4/realloc.m4: Likewise.
61209 * m4/regex.m4: Likewise.
61210 * m4/stat.m4: Likewise.
61211 * m4/strftime.m4: Likewise.
61212 Suggestion from Alain Magloire.
61214 * m4/chown.m4: Use `.$ac_objext', not `.o'.
61215 * m4/fnmatch.m4: Likewise.
61216 * m4/getgroups.m4: Likewise.
61217 * m4/getline.m4: Likewise.
61218 * m4/lstat.m4: Likewise.
61219 * m4/malloc.m4: Likewise.
61220 * m4/memcmp.m4: Likewise.
61221 * m4/putenv.m4: Likewise.
61222 * m4/realloc.m4: Likewise.
61223 * m4/regex.m4: Likewise.
61224 * m4/stat.m4: Likewise.
61225 * m4/strftime.m4: Likewise.
61226 Suggestion from Alain Magloire.
61228 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
61231 * m4/regex.m4: Add a run-time Test for proper operation of
61232 re_compile_pattern.
61234 1999-01-31 Jim Meyering <meyering@ascend.com>
61236 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
61238 1999-01-30 Jim Meyering <meyering@ascend.com>
61240 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
61242 * m4/jm-mktime.m4: Make this a wrapper around the official
61243 AM_FUNC_MKTIME rather than my private copy, now that the official one
61245 * m4/mktime.m4: Remove file.
61247 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
61248 * m4/uptime.m4: Likewise.
61249 * m4/uintmax_t.m4: Likewise.
61251 1999-01-28 Jim Meyering <meyering@ascend.com>
61253 * m4/jm-macros.m4: Use jm_AFS.
61254 * m4/afs.m4: New file (from fileutils' configure.in).
61256 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
61257 * m4/chown.m4: Likewise.
61258 * m4/d-ino.m4: Likewise.
61259 * m4/d-type.m4: Likewise.
61260 * m4/fnmatch.m4: Likewise.
61261 * m4/getgroups.m4: Likewise.
61262 * m4/gettext.m4: Likewise.
61263 * m4/jm-mktime.m4: Likewise.
61264 * m4/jm-winsz2.m4: Likewise.
61265 * m4/lcmessage.m4: Likewise.
61266 * m4/ls-mntd-fs.m4: Likewise.
61267 * m4/malloc.m4: Likewise.
61268 * m4/memcmp.m4: Likewise.
61269 * m4/putenv.m4: Likewise.
61270 * m4/realloc.m4: Likewise.
61271 * m4/st_mtim.m4: Likewise.
61272 * m4/strftime.m4: Likewise.
61274 1999-01-16 Jim Meyering <meyering@ascend.com>
61276 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
61277 (ARGMATCH_DIE_DECL): Define.
61279 1999-01-12 Jim Meyering <meyering@ascend.com>
61281 * m4/Makefile.am.in: Rewrite to avoid using fmt.
61282 Reported by Lars Hecking.
61284 1999-01-10 Jim Meyering <meyering@ascend.com>
61286 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
61288 * m4/inttypes_h.m4: Likewise.
61289 * m4/lstat.m4: Likewise.
61290 * m4/malloc.m4: Likewise.
61291 * m4/readdir.m4: Likewise.
61292 * m4/realloc.m4: Likewise.
61293 * m4/st_dm_mode.m4: Likewise.
61294 * m4/stat.m4: Likewise.
61295 * m4/utimbuf.m4: Likewise.
61296 * m4/utimes.m4: Likewise.
61298 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
61299 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
61300 comments in config.h.in are meaningful.
61302 * m4/jm-macros.m4: Require autoconf-2.13 here.
61304 * m4/regex.m4: By default, don't use the included regex.c on systems
61305 with glibc 2. Suggestion from Uli Drepper.
61307 1999-01-02 Jim Meyering <meyering@ascend.com>
61309 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
61311 1998-12-18 Jim Meyering <meyering@ascend.com>
61313 * m4/Makefile.am.in (Makefile.am): Simplify rule.
61314 Based on a suggestion from Lars Hecking.
61316 1998-11-16 Paul Eggert <eggert@twinsun.com>
61318 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
61320 1998-11-16 Jim Meyering <meyering@ascend.com>
61322 * m4/lfs.m4: Double-quote the `uname...` expression.
61324 1998-11-14 Jim Meyering <meyering@ascend.com>
61326 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
61327 * m4/stat.m4: Likewise.
61329 1998-11-03 Jim Meyering <meyering@ascend.com>
61331 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
61332 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
61334 1998-10-18 Jim Meyering <meyering@ascend.com>
61336 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
61338 1998-10-17 Jim Meyering <meyering@ascend.com>
61340 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
61341 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
61342 calls for those previously hard-coded headers. Instead, take a new
61344 (jm_CHECK_DECLARATIONS): Reflect interface change.
61345 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
61346 (jm_CHECK_DECL_LOCALTIME_R): New macro.
61348 * m4/mktime.m4: Test for spring-forward gap before long-running test.
61350 1998-10-14 Jim Meyering <meyering@ascend.com>
61352 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
61353 instead of "TZ=America/Vancouver". From Paul Eggert.
61355 1998-10-11 Jim Meyering <meyering@ascend.com>
61357 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
61358 This adds a test for a recently added compatibility fix for mktime.c.
61359 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
61361 1998-09-27 Jim Meyering <meyering@ascend.com>
61363 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
61365 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
61366 ../configure.in, including a change from Gordon Matzigkeit to allow
61367 cross-compiling for the Hurd.
61369 * m4/glibc.m4: New file/macro to test for the GNU C Library
61370 versions 1 and 2. From Gordon Matzigkeit.
61373 1998-09-21 Jim Meyering <meyering@ascend.com>
61375 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
61377 1998-08-18 Paul Eggert <eggert@twinsun.com>
61379 Port nanosecond-resolution times to UnixWare 2.1.2 and
61380 pedantic Solaris 2.6.
61382 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
61384 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
61385 Generate name of ns member, instead of just 1 or undef.
61386 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
61388 1998-08-15 Jim Meyering <meyering@ascend.com>
61390 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
61391 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
61392 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
61393 instead of jm_TYPE_SSIZE_T.
61395 1998-08-12 Jim Meyering <meyering@ascend.com>
61397 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
61399 1998-08-02 Jim Meyering <meyering@ascend.com>
61401 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
61402 in acconfig.h manually.
61404 1998-07-31 Paul Eggert <eggert@twinsun.com>
61406 * m4/st_mtim.m4: New file.
61408 1998-07-28 Jim Meyering <meyering@ascend.com>
61410 * m4/utimes.m4: Undef stat.
61412 1998-07-25 Jim Meyering <meyering@ascend.com>
61414 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
61415 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
61417 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
61419 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
61420 uid and gid actually remain unchanged.
61422 1998-07-07 Jim Meyering <meyering@ascend.com>
61424 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
61426 1998-07-04 Jim Meyering <meyering@ascend.com>
61428 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
61429 to prove that this macro can be used in packages without regex.c.
61431 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
61433 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
61436 1998-07-03 Jim Meyering <meyering@ascend.com>
61438 * m4/gettext.m4: Add -lintl if it's found to be necessary.
61440 * m4/gettext.m4: New file -- from gettext-0.10.35.
61441 * m4/lcmessage.m4: Likewise.
61442 * m4/progtest.m4: Likewise.
61444 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
61445 * m4/jm-macros.m4: Require the new macro.
61447 1998-06-29 Jim Meyering <meyering@ascend.com>
61449 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
61450 for the definition of NGROUPS (used in a system header included
61453 1998-06-28 Jim Meyering <meyering@ascend.com>
61455 * m4/ls-mntd-fs.m4: New file.
61456 * m4/fstypename.m4: New file.
61458 * m4/jm-macros.m4: Require the new macro.
61459 * m4/jm-glibc-io.m4: New file.
61461 1998-05-19 Jim Meyering <meyering@ascend.com>
61463 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
61464 * m4/lchown.m4: New file.
61466 * m4/Makefile.am.in: New file.
61467 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
61469 1998-05-14 Jim Meyering <meyering@ascend.com>
61471 * m4/Makefile.am (EXTRA_DIST): Add them.
61472 * m4/jm-macros.m4: New file.
61473 * m4/utimbuf.m4: New file.
61475 1998-05-12 Jim Meyering <meyering@ascend.com>
61477 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
61479 1998-05-11 Jim Meyering <meyering@ascend.com>
61481 * m4/isc-posix.m4: New file.
61483 1998-05-10 Jim Meyering <meyering@ascend.com>
61485 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
61487 1998-05-09 Jim Meyering <meyering@ascend.com>
61489 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
61490 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
61493 * m4/ssize_t.m4: New file.
61494 * m4/mktime.m4: Remove file -- the new automake has this now.
61496 1998-04-26 Jim Meyering <meyering@ascend.com>
61498 * m4/assert.m4: New file.
61499 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
61501 1998-04-05 Jim Meyering <meyering@ascend.com>
61503 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
61504 (jm_PREREQ): Use it here.
61506 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
61508 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
61511 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
61513 * m4/prereq.m4: New file.
61514 * m4/error.m4: New file.
61515 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
61517 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
61519 * m4/getline.m4: Don't set am_cv_func_working_getline before the
61520 cache-check for the same variable -- that defeated the purpose of
61521 the test; the test program was never run. This was a problem only
61522 on systems with losing getline functions -- HP-UX 10.20 is one.
61523 Reported by Bjorn Helgaas.
61525 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
61527 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
61529 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
61531 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
61533 * m4/const.m4: New file. Use an initializer in this declaration
61534 typedef int charset[2]; const charset x;
61535 Reported by Bob Glickstein.
61537 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
61539 * m4/chown.m4: Fix reversed types on -1 args to chown.
61542 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
61544 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
61545 Add lseek and memchr.
61547 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
61548 T.E.Dickey <dickey@clark.net> said that some older preprocessors
61549 have a 20-character limit on names.
61551 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
61553 * m4/inttypes_h.m4: New file.
61554 * m4/uintmax_t.m4: New file.
61555 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
61564 Copyright (C) 1997-2010 Free Software Foundation, Inc.
61566 Copying and distribution of this file, with or without
61567 modification, are permitted provided the copyright notice
61568 and this notice are preserved.