1 2008-04-01 Bruno Haible <bruno@clisp.org>
3 Fix test to work on IRIX 6.5 with cc.
4 * tests/test-math.c (numeric_equal): New function.
7 2008-04-01 Bruno Haible <bruno@clisp.org>
9 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
11 2008-04-01 Bruno Haible <bruno@clisp.org>
13 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
14 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
16 (Depends-on): Remove math.
18 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
19 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
20 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
21 (Depends-on): Remove math.
23 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26 (Depends-on): Remove math.
27 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
28 (Depends-on): Remove math.
30 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
31 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
33 (Depends-on): Remove math.
34 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
35 (Depends-on): Remove math.
37 * tests/test-round1.c: Include nan.h.
38 (main): Use NaNd instead of NAN.
39 * modules/round-tests (Files): Add tests/nan.h.
41 * tests/test-trunc1.c: Include nan.h.
42 (main): Use NaNd instead of NAN.
43 * modules/trunc-tests (Files): Add tests/nan.h.
45 * tests/test-roundf1.c: Include nan.h.
46 (main): Use NaNf instead of NAN.
47 * modules/roundf-tests (Files): Add tests/nan.h.
49 * tests/test-truncf1.c: Include nan.h.
50 (main): Use NaNf instead of NAN.
51 * modules/truncf-tests (Files): Add tests/nan.h.
53 * tests/test-ceilf1.c: Include nan.h.
54 (main): Use NaNf instead of NAN.
55 * modules/ceilf-tests (Files): Add tests/nan.h.
57 * tests/test-floorf1.c: Include nan.h.
58 (main): Use NaNf instead of NAN.
59 * modules/floorf-tests (Files): Add tests/nan.h.
61 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
62 (main): Use NaNf instead of NAN.
63 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
65 * tests/test-isnand.c: Include nan.h instead of <math.h>.
66 (main): Use NaNd instead of NAN.
67 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
69 * tests/test-frexp.c: Include nan.h.
70 (main): Use NaNd instead of NAN.
71 * modules/frexp-tests (Files): Add tests/nan.h.
73 * lib/isnan.c: Don't include <math.h>.
74 (FUNC): Don't use NAN macro.
75 * modules/isnand-nolibm (Depends-on): Remove math.
76 * modules/isnanf-nolibm (Depends-on): Remove math.
77 * modules/isnanl (Depends-on): Remove math.
78 * modules/isnanl-nolibm (Depends-on): Remove math.
80 * tests/nan.h: New file.
82 2008-04-01 Eric Blake <ebb9@byu.net>
85 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
86 values to be the right type.
88 For now, cater to gnulib strtod inaccuracies.
89 * tests/test-strtod.c (main): Allow 1-ulp error on expected
90 fractional results. While not as nice from a QoI perspective, it
91 is a quicker patch than correctly implementing decimal to binary
94 2008-03-31 Eric Blake <ebb9@byu.net>
96 Guarantee a definition of NAN.
97 * lib/math.in.h (NAN): Define if missing.
98 * tests/test-math.c (main): Test it.
99 * doc/posix-headers/math.texi (math.h): Document this.
100 * lib/isnan.c (rpl_isnand): Use it.
101 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
102 * tests/test-floorf1.c (NaN): Likewise.
103 * tests/test-frexp.c (NaN): Likewise.
104 * tests/test-isnand.c (NaN): Likewise.
105 * tests/test-isnanf.c (NaN): Likewise.
106 * tests/test-round1.c (NaN): Likewise.
107 * tests/test-roundf1.c (NaN): Likewise.
108 * tests/test-snprintf-posix.h (NaN): Likewise.
109 * tests/test-sprintf-posix.h (NaN): Likewise.
110 * tests/test-trunc1.c (NaN): Likewise.
111 * tests/test-truncf1.c (NaN): Likewise.
112 * tests/test-vasnprintf-posix.c (NaN): Likewise.
113 * tests/test-vasprintf-posix.c (NaN): Likewise.
114 * modules/isnand-nolibm (Depends-on): Add math.
115 * modules/isnanf-nolibm (Depends-on): Likewise.
116 * modules/isnanl (Depends-on): Likewise.
117 * modules/isnanl-nolibm (Depends-on): Likewise.
118 * modules/snprintf-posix-tests (Depends-on): Likewise.
119 * modules/sprintf-posix-tests (Depends-on): Likewise.
120 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
121 * modules/vsprintf-posix-tests (Depends-on): Likewise.
122 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
123 * modules/vasprintf-posix-tests (Depends-on): Likewise.
125 2008-03-31 Bruno Haible <bruno@clisp.org>
127 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
128 * doc/posix-functions/strtod.texi: Likewise.
130 2008-03-31 Bruno Haible <bruno@clisp.org>
132 * tests/test-strtod.c (main): Don't use C99 syntax.
134 2008-03-31 Bruno Haible <bruno@clisp.org>
136 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
137 Reported by Eric Blake.
139 2008-03-31 Jim Meyering <meyering@redhat.com>
141 Don't compare actual signbit return values.
142 * tests/test-strtod.c (main): Rather, compare only their
143 zero/non-zero nature.
145 2008-03-31 Eric Blake <ebb9@byu.net>
147 More strtod documentation.
148 * doc/posix-functions/strtod.texi (strtod): Interpret more test
149 failures as distinct bugs.
151 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
153 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
154 Problem reported by Erik Benada in
155 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
157 2008-03-30 Bruno Haible <bruno@clisp.org>
159 * tests/test-strtod.c: Add comments about which assertion fails on which
161 * doc/posix-functions/strtod.texi: Add info about many more platforms.
163 2008-03-30 Eric Blake <ebb9@byu.net>
165 Test signbit behavior on zeros.
166 * tests/test-signbit.c (test_signbitf): Add tests for zero.
167 (test_signbitd, test_signbitl): Likewise.
169 More strtod touchups.
170 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
171 sign of negative underflow, for now. Use .5, not .1.
172 * doc/posix-functions/strtod.texi (strtod): Mention these
174 Reported by Jim Meyering.
176 2008-03-30 Bruno Haible <bruno@clisp.org>
178 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
179 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
181 2008-03-30 Bruno Haible <bruno@clisp.org>
183 Avoid failure when attempting to return empty iconv results on some
185 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
186 allocation, don't report ENOMEM when the resulting string is empty.
188 2008-03-30 Bruno Haible <bruno@clisp.org>
191 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
192 Don't consider the width for tmp_length. Check count against tmp_length
193 before doing the padding. Ensure enough allocation during padding.
195 2008-03-30 Eric Blake <ebb9@byu.net>
198 * lib/strtod.c (strtod): Avoid compiler warnings.
199 Reported by Jim Meyering.
201 2008-03-30 Bruno Haible <bruno@clisp.org>
203 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
204 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
205 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
206 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
207 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
208 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
209 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
210 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
212 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
213 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
214 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
215 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
216 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
217 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
218 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
219 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
221 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
222 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
223 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
224 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
225 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
226 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
227 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
228 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
230 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
231 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
233 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
234 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
236 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
237 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
239 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
240 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
241 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
243 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
244 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
245 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
247 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
248 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
249 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
251 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
252 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
253 * modules/vasprintf (Depends-on): Add EOVERFLOW.
255 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
256 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
257 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
258 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
259 (Depends-on): Add EOVERFLOW.
260 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
261 (Depends-on): Add EOVERFLOW.
262 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
263 (Depends-on): Add EOVERFLOW.
264 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
265 (Depends-on): Add EOVERFLOW.
266 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
267 (Depends-on): Add EOVERFLOW.
268 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
269 (Depends-on): Add EOVERFLOW.
270 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
271 (Depends-on): Add EOVERFLOW.
272 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
273 (Depends-on): Add EOVERFLOW.
275 * lib/sprintf.c (EOVERFLOW): Remove fallback.
276 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
277 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
279 * lib/snprintf.c (EOVERFLOW): Remove fallback.
280 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
281 * modules/snprintf (Depends-on): Add EOVERFLOW.
283 * lib/poll.c (EOVERFLOW): Remove fallback.
284 * modules/poll (Depends-on): Add EOVERFLOW.
286 * lib/getugroups.c (EOVERFLOW): Remove fallback.
287 * modules/getugroups (Depends-on): Add EOVERFLOW.
289 * lib/getdelim.c (EOVERFLOW): Remove fallback.
290 * modules/getdelim (Depends-on): Add EOVERFLOW.
292 * lib/ftell.c (EOVERFLOW): Remove fallback.
293 * modules/ftell (Depends-on): Add EOVERFLOW.
295 * lib/fprintf.c (EOVERFLOW): Remove fallback.
296 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
297 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
299 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
301 * modules/EOVERFLOW-tests: New file.
302 * tests/test-EOVERFLOW.c: New file.
304 * modules/EOVERFLOW: New file.
305 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
307 2008-03-30 Bruno Haible <bruno@clisp.org>
309 Fix bug introduced on 2007-06-10.
310 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
311 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
313 2008-03-30 Bruno Haible <bruno@clisp.org>
315 Improve freadseek's efficiency after ungetc.
316 * lib/freadseek.c: Include freadahead.h.
317 (freadptrinc): New function, extracted from freadseek.
318 (freadseek): Use it in a loop. Use freadahead to determine the number
320 * modules/freadseek (Depends-on): Add freadahead.
321 (configure.ac): Require AC_C_INLINE.
323 2008-03-30 Bruno Haible <bruno@clisp.org>
325 * lib/freadseek.c (freadseek): Don't ignore the return value of
328 2008-03-29 Eric Blake <ebb9@byu.net>
330 Add hex float support.
331 * modules/strtod (Depends-on): Add c-ctype.
332 (Link): Mention POW_LIB.
333 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
334 whitespace between 'e' and exponent.
335 * tests/test-strtod.c (main): Enable hex float tests.
336 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
339 Document various strtod bugs, with some fixes.
340 * doc/posix-functions/strtod.texi (strtod): Document bugs with
341 "-0x", "inf", "nan", and hex constants.
342 * doc/posix-functions/atof.texi (atof): Likewise.
343 * modules/stdlib (Makefile.am): Support strtod.
344 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
345 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
346 detect additional strtod bugs.
347 * lib/stdlib.in.h (rpl_strtod): Add declarations.
348 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
349 bool where appropriate. Parse 'inf' and 'nan'.
350 * tests/test-strtod.c: New file.
351 * modules/strtod (Depends-on): Add stdbool, stdlib.
352 (configure.ac): Turn on module indicator.
353 * modules/strtod-tests: New module.
355 2008-03-29 Eric Blake <ebb9@byu.net>
358 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
359 * modules/ftell-tests (Depends-on): Add binary-io.
360 * modules/ftello-tests (Depends-on): Likewise.
361 * tests/test-ftell.c (main): Enhance test to cover behavior after
362 ungetc. Enforce binary mode.
363 * tests/test-ftello.c (main): Likewise.
365 Pass test-freadseek on cygwin.
366 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
367 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
370 * tests/test-fflush2.c (main): Fix typo.
372 2008-03-29 Bruno Haible <bruno@clisp.org>
374 * tests/test-fflush2.c (main): Temporarily disable the contents of
376 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
377 Reported by Eric Blake.
379 2008-03-28 Simon Josefsson <simon@josefsson.org>
381 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
382 (GC_SHA224_DIGEST_SIZE): Add.
384 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
385 (gc_hash_digest_length): Likewise.
386 (gc_hash_buffer): Likewise.
388 2008-03-25 Bruno Haible <bruno@clisp.org>
390 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
391 detail which gettext release to use.
392 Reported by Simon Josefsson.
394 2008-03-26 Jim Meyering <meyering@redhat.com>
396 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
397 * modules/gnumakefile (clean-GNUmakefile): Also, use
398 test ... && ... || : syntax rather than if-then ... fi.
400 gnumakefile: Don't double-quote-expand $(VPATH) value.
401 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
403 2008-03-24 Eric Blake <ebb9@byu.net>
405 Alter GNUmakefile to install into top directory.
406 * modules/maintainer-makefile: Split, and add dependency...
407 * modules/gnumakefile: to this new module.
408 * build-aux/GNUmakefile: Move...
409 * top/GNUmakefile: ...here.
410 * build-aux/maint.mk: Move...
411 * top/maint.mk: ...here.
412 * MODULES.html.sh (Support for maintaining...): Document new
415 2008-03-23 Bruno Haible <bruno@clisp.org>
417 * gnulib-tool: New options --vc-files, --no-vc-files.
418 (func_usage): Document them.
419 (vc_files): New variable.
420 (func_import): Consider vc_files.
421 (func_create_testdir): Set vc_files to empty.
422 Suggested by Jim Meyering and Karl Berry.
424 2008-03-23 Bruno Haible <bruno@clisp.org>
426 Fix regex compilation error on HP-UX 11.
427 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
428 * modules/regex (Files): Add m4/mbstate_t.m4.
429 Reported by Ton Voon <ton.voon@altinity.com>.
431 2008-03-23 Bruno Haible <bruno@clisp.org>
433 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
435 2008-03-23 Eric Blake <ebb9@byu.net>
436 Bruno Haible <bruno@clisp.org>
438 Install files from top/ in the destination directory.
439 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
440 augmentation also for the files from top/.
441 (func_import, func_create_testdir): Rewrite file names:
442 top/filename -> filename.
444 2008-03-23 Bruno Haible <bruno@clisp.org>
446 Tweak "gnulib --version" output.
447 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
449 2008-03-23 Bruno Haible <bruno@clisp.org>
451 Tweak "gnulib --version" output.
452 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
453 rather than contents of ChangeLog, when possible.
455 2008-03-21 Eric Blake <ebb9@byu.net>
457 More --version tweaks.
458 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
459 date of last ChangeLog entry.
461 2008-03-21 Jim Meyering <meyering@redhat.com>
463 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
465 2008-03-20 Eric Blake <ebb9@byu.net>
468 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
470 2008-03-20 Simon Josefsson <simon@josefsson.org>
472 * build-aux/GNUmakefile: Make git-version-gen optional. Add
473 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
475 2008-03-20 Eric Blake <ebb9@byu.net>
477 Sync GNUmakefile with coreutils.
478 * build-aux/GNUmakefile (have-Makefile): Rename...
479 (_have-Makefile): ...to this, for namespace consideration.
480 (GNUmakefile.cfg): Include, if present.
481 (_autoreconf): Define a default.
482 (_is-dist-target): New rule for rebuilds to pick up intra-release
484 (maint-cfg.mk): Rename...
485 (cfg.mk): ...to this.
487 2008-03-18 Jim Meyering <meyering@redhat.com>
489 New script and module: mktempd
490 * MODULES.html.sh (maint+release support): Add mktempd.
491 * build-aux/mktempd: New file.
492 * modules/mktempd: New file.
494 2008-03-15 Jim Meyering <meyering@redhat.com>
497 * lib/sha1.c, lib/md5.c: 63 != ~63.
498 Reported by Andreas Schwab.
500 sha1.c, md5.c: Hoist a redundant expression.
501 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
502 "ctx->buflen" only once, before calling *_process_block.
503 * lib/md5.c (md5_process_bytes): Likewise.
505 2008-03-14 Eric Blake <ebb9@byu.net>
507 Bump copyright year in files generated by gnulib-tool.
508 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
509 gnulib-tool, rather than hard-coding it.
511 Fix 'gnulib-tool --version' output to work with git.
512 * gnulib-tool (func_gnulib_dir): New function, extracted from...
514 (func_version): Use it to invoke git-version-gen, rather than
515 relying on CVS keyword expansion. Modernize wording.
516 (cvsdatestamp, last_checkin_date, version): Kill unused
519 2008-03-12 Jim Meyering <meyering@redhat.com>
521 Recognize optional cast of the argument to free.
522 * build-aux/useless-if-before-free: Update regexps.
524 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
526 2008-03-11 Bruno Haible <bruno@clisp.org>
528 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
530 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
531 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
532 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
533 Reported by Sam Steingold <sds@gnu.org>.
535 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
537 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
540 2008-03-11 Bruno Haible <bruno@clisp.org>
542 Avoid conflicts between local macro definitions.
543 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
544 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
546 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
547 Bruno Haible <bruno@clisp.org>
549 Make va_copy work with some version of xlc on AIX 5.1.
550 * lib/stdarg.in.h: New file.
551 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
552 On AIX, use a <stdarg.h> file substitute.
553 * modules/stdarg (Files): Add lib/stdarg.in.h.
554 (Depends-on): Add include_next.
555 (Makefile.am): Build a stdarg.h substitute if requested.
556 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
558 2008-03-10 Bruno Haible <bruno@clisp.org>
560 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
561 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
562 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
564 2008-03-10 Bruno Haible <bruno@clisp.org>
566 * modules/stdlib (Depends-on): Add include_next, remove
569 2008-03-09 Bruno Haible <bruno@clisp.org>
571 * lib/freadahead.h (freadahead): Document more precisely.
572 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
573 the sum of both buffer sizes.
574 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
575 * NEWS: Document the change.
577 2008-03-09 Bruno Haible <bruno@clisp.org>
579 Extend freadptr to return also the buffer size.
580 * lib/freadptr.h (freadptr): Add sizep argument.
581 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
582 (freadptr): Add sizep argument. Determine buffer size like freadahead
584 * tests/test-freadptr.c: Don't include freadahead.h.
585 (main): Adapt for new calling convention of freadptr.
586 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
587 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
588 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
589 tests/test-freadptr2.sh.
590 (Depends): Remove freadahead.
591 (TESTS): Add test-freadptr2.sh.
592 (check_PROGRAMS): Add test-freadptr2.
594 2008-03-09 Bruno Haible <bruno@clisp.org>
596 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
597 Report and solution by Simon Josefsson.
599 2008-03-06 Bruno Haible <bruno@clisp.org>
601 Make fflush after ungetc work on BSD platforms.
602 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
603 * tests/test-fflush2.c: New file.
604 * tests/test-fflush2.sh: New file.
605 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
606 tests/test-fflush2.c.
607 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
608 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
610 2008-03-06 Eric Blake <ebb9@byu.net>
613 * modules/ftello (Dependencies): Add extensions.
614 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
616 2008-03-06 Bruno Haible <bruno@clisp.org>
618 * modules/fseeko (Dependencies): Add extensions.
619 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
620 Needed on glibc systems.
622 2008-03-06 Bruno Haible <bruno@clisp.org>
624 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
626 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
628 2008-03-06 Bruno Haible <bruno@clisp.org>
630 * users.txt: Add libgnupdf.
632 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
634 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
635 (Header File Substitutes, Function Substitutes,
636 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
637 (Build robot for gnulib): Fix typo.
639 2008-03-06 Bruno Haible <bruno@clisp.org>
641 * doc/gnulib-tool.texi (VCS Issues): Small updates.
642 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
644 2008-03-06 Bruno Haible <bruno@clisp.org>
646 * doc/func.texi: New file, extracted from doc/gnulib.texi.
647 * doc/gnulib.texi: Include it.
649 2008-03-06 Simon Josefsson <simon@josefsson.org>
651 * modules/func (License): Change license to unlimited; there was
652 no LGPL parts in the module anyway.
654 2008-03-06 Simon Josefsson <simon@josefsson.org>
656 * modules/__func__: Renamed to modules/func.
657 * modules/__func__-tests: Renamed to modules/func-tests.
658 * tests/test-__func__.c: Renamed to tests/test-func.c.
659 * m4/__func__.m4: Renamed to m4/func.m4.
660 * doc/gnulib.texi (__func__): Section renamed to func.
661 Suggested by Eric Blake <ebb9@byu.net>.
663 2008-03-06 Simon Josefsson <simon@josefsson.org>
665 * doc/gnulib.texi (__func__): Use C99 terminology when talking
666 about __func__. Make example self-contained. Suggested by Eric
667 Blake <ebb9@byu.net>.
669 * tests/test-__func__.c (main): Avoid extraneous () around __func.
670 Suggested by Eric Blake <ebb9@byu.net>.
672 2008-03-06 Simon Josefsson <simon@josefsson.org>
674 * modules/__func__: New file.
675 * modules/__func__-tests: New file.
676 * tests/test-__func__.c: New file.
677 * m4/__func__.m4: New file.
678 * doc/gnulib.texi (__func__): Document __func__ module.
680 2008-03-05 Simon Josefsson <simon@josefsson.org>
682 * modules/byteswap (License): Re-license as LGPLv2+.
684 2008-03-05 Simon Josefsson <simon@josefsson.org>
686 * doc/Makefile: Add pdf target.
688 2008-03-05 Simon Josefsson <simon@josefsson.org>
690 * modules/inline (License): Use 'unlimited', since there are only
691 *.m4 files in this module.
693 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
694 Bruno Haible <bruno@clisp.org>
696 Add support for HP C 7.1 on OpenVMS 8.3.
697 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
699 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
701 Update VMS specifics.
702 * lib/getopt.c [VMS]: Remove include of unixlib.h.
704 2008-03-02 Jim Meyering <meyering@redhat.com>
706 Remove the last dependency on the "free" module.
707 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
708 Reported by Bob Proulx.
710 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
712 Remove useless "if" tests before free. Deprecate "free" module.
713 * doc/posix-functions/free.texi: Mention that this
714 module is no longer useful.
715 * modules/free (Notice): Say this module is obsolete.
716 * modules/readutmp (Depends-on): Remove free.
717 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
718 * lib/putenv.c (putenv): Likewise.
719 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
720 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
721 * tests/test-c-strcasestr.c (main): Likewise.
722 * tests/test-c-strstr.c (main): Likewise.
723 * tests/test-mbscasestr1.c (main): Likewise.
724 * tests/test-mbscasestr2.c (main): Likewise.
725 * tests/test-mbsstr1.c (main): Likewise.
726 * tests/test-mbsstr2.c (main): Likewise.
727 * tests/test-memmem.c (main): Likewise.
728 * tests/test-strcasestr.c (main): Likewise.
729 * tests/test-striconv.c (main): Likewise.
730 * tests/test-striconveh.c (main): Likewise.
731 * tests/test-striconveha.c (main): Likewise.
732 * tests/test-strstr.c (main): Likewise.
734 * build-aux/git-version-gen: Adjust a comment and the Usage string.
736 bootstrap: sync from coreutils again
737 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
739 2008-03-01 Jim Meyering <meyering@redhat.com>
741 bootstrap: sync from coreutils
742 * build-aux/bootstrap (update_po_files): Copy a .po file into place
743 also when the target doesn't exist.
745 2008-03-01 Eric Blake <ebb9@byu.net>
747 Fix bugs in last patch.
748 * lib/memchr2.c (memchr2): Fix typo.
749 * tests/test-memchr2.c: Test previous bug, and don't use GNU
751 Reported by Bruce Korb.
753 New module 'memchr2'.
754 * modules/memchr2: New file.
755 * modules/memchr2-tests: Likewise.
756 * lib/memchr2.h: Likewise.
757 * lib/memchr2.c: Likewise, based on memchr.c.
758 * tests/test-memchr2.c: New test.
759 * MODULES.html.sh (String handling): Add memchr2.
761 2008-02-29 Bruno Haible <bruno@clisp.org>
763 * modules/freadseek-tests: New file.
764 * tests/test-freadseek.sh: New file.
765 * tests/test-freadseek.c: New file.
767 New module 'freadseek'.
768 * modules/freadseek: New file.
769 * lib/freadseek.h: New file.
770 * lib/freadseek.c: New file.
771 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
773 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
775 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
778 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
779 program_invocation_name and program_invocation_short_name are
782 2008-02-28 Bruno Haible <bruno@clisp.org>
784 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
785 * tests/test-freadptr.sh: Also test non-seekable stdin.
787 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
789 * build-aux/bootstrap (source_base, m4_base)
790 (doc_base, tests_base): New variables.
791 (gnulib_tool_options): Do not hardcode base directories, use
792 the above variables instead.
794 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
796 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
798 2008-02-28 Bruno Haible <bruno@clisp.org>
800 * modules/freadptr-tests: New file.
801 * tests/test-freadptr.sh: New file.
802 * tests/test-freadptr.c: New file.
804 New module 'freadptr'.
805 * modules/freadptr: New file.
806 * lib/freadptr.h: New file.
807 * lib/freadptr.c: New file.
808 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
810 2008-02-26 Karl Berry <karl@freefriends.org>
813 * libltdl/argz.c (argz_add, argz_count): New functions.
814 * libltdl/argz.in.h: Declare them.
815 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
817 2008-02-22 Bruno Haible <bruno@clisp.org>
819 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
820 is a pointer type. Needed for HP-UX 10.
821 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
822 * doc/posix-functions/gmtime_r.texi: Likewise.
823 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
825 2008-02-24 Bruno Haible <bruno@clisp.org>
827 * modules/environ-tests: New file.
828 * tests/test-environ.c: New file.
830 New module 'environ'.
831 * modules/environ: New file.
832 * lib/unistd.in.h (environ): New declaration.
833 * m4/environ.m4: New file.
834 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
836 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
838 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
840 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
841 wrong claim that 'environ' is missing on some systems.
842 * modules/execute (Depends-on): Add environ.
843 * lib/execute.c (environ): Remove fallback declaration.
844 * modules/pipe (Depends-on): Add environ.
845 * lib/pipe.c (environ): Remove fallback declaration.
846 * modules/setenv (Depends-on): Add environ.
847 * lib/setenv.c (environ): Remove fallback declaration.
848 * modules/unsetenv (Depends-on): Add environ.
849 * lib/unsetenv.c (environ): Remove fallback declaration.
850 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
852 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
853 (gl_PREREQ_UNSETENV): Likewise.
855 2008-02-24 Bruno Haible <bruno@clisp.org>
857 * doc/posix-functions/environ.texi: Document the MacOS X problem.
859 2008-02-20 Bob Proulx <bob@proulx.com>
861 Enable use of older two part flavor 'git describe'.
862 * build-aux/git-version-gen: If using the older two part flavor of
863 git version then recreate the third part now present in the
864 newer three part flavor of git describe.
866 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
868 * lib/fts.c (fts_build): Typo correction to comment.
870 2008-02-17 Bruno Haible <bruno@clisp.org>
872 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
873 generating no-op conflicts.
875 2008-02-17 Bruno Haible <bruno@clisp.org>
878 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
879 result_entries, rather than an index-based loop.
881 2008-02-17 Bruno Haible <bruno@clisp.org>
884 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
886 (entry_create): New function.
887 (entry_hashcode): Use the cached hashcode if possible.
888 (read_changelog_file, try_split_merged_entry): Use entry_create.
890 2008-02-17 Bruno Haible <bruno@clisp.org>
892 Speed up from O(n^2) to O(n) for long ChangeLog files.
893 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
894 (read_changelog_file): Change implementation of entries_reversed list
896 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
898 2008-02-17 Bruno Haible <bruno@clisp.org>
900 New option --split-merged-entry.
901 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
902 (find_paragraph_end, try_split_merged_entry): New functions.
903 (long_options): Add option --split-merged-entry.
904 (usage): Document option --split-merged-entry.
905 (main): Implement option --split-merged-entry.
906 Reported by Eric Blake.
908 2008-02-17 Bruno Haible <bruno@clisp.org>
910 * lib/git-merge-changelog.c: Include c-strstr.h.
911 (main): Support the "git pull --rebase" situation.
912 * modules/git-merge-changelog (Depends-on): Add c-strstr.
913 Reported by Eric Blake.
915 2008-02-16 Eric Blake <ebb9@byu.net>
917 Avoid doubling \ in common case of "c-maybe" quoting style.
918 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
919 eliding outer quotes.
920 * lib/quotearg.h: Document this.
921 * tests/test-quotearg.c (result_strings, inputs, results_g)
922 (flag_results, locale_results): Test it by adding a new string to
924 (compare_strings): Test new string.
926 2008-02-13 Eric Blake <ebb9@byu.net>
928 Avoid trigraph quoting in default output.
929 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
930 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
931 unless explicitly requested.
932 * tests/test-quotearg.c (flag_results, main): Add additional tests.
934 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
936 Don't rely on signed integer overflowing to negative value.
937 * lib/getugroups.c (getugroups): Include <limits.h>.
938 Instead, compare against INT_MAX, and increment only if the test passes.
940 2008-02-13 Jim Meyering <meyering@redhat.com>
941 and Eric Blake <ebb9@byu.net>
943 Avoid shadowing warning and compile errors on Linux.
944 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
945 forwarding macros on Linux.
946 (dcgettext): Define a stub, for Linux.
947 (results_g, main): Avoid warnings.
949 2008-02-12 Eric Blake <ebb9@byu.net>
951 Silence warning in last patch.
952 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
954 Quotearg part 4: add tests, fix c-maybe colon quoting.
955 * lib/quotearg.h: Improve documentation.
956 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
957 escapes when adding outer quotes. When quoting trigraphs, use
958 valid C notation. When quoting NUL, omit extra characters if next
959 character is not digit. Alter prototype.
960 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
962 * modules/quotearg-tests: New module.
963 * tests/test-quotearg.c: New test.
965 2008-02-07 Eric Blake <ebb9@byu.net>
967 Quotearg part 3: add flag to control outer quote elision.
968 * lib/quotearg.h (c_maybe_quoting_style): New style.
969 (enum quoting_flags): Better documentation of flags.
970 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
972 (quotearg_buffer_restyled): Handle new flag to elide outer
975 Quotearg part 2: add flag that can control NUL elision.
976 * lib/quotearg.h (set_quoting_flags): New prototype.
977 * lib/quotearg.c (struct quoting_options): Add flag field.
978 (set_quoting_flags): New function.
979 (quotearg_buffer_restyled): Add flags parameter.
980 (quotearg_alloc_mem): Set the flag if length cannot be returned.
981 (quotearg_n_options): Set the flag, since length cannot be
983 (quoting_options_from_style): Default flags correctly.
985 Quotearg part 1: more wrappers, restore quotearg_char state.
986 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
987 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
988 (quotearg_colon_mem): New wrappers.
989 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
990 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
992 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
993 (quotearg_colon_mem): New functions.
995 2008-02-11 Bruno Haible <bruno@clisp.org>
997 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
998 library in the current directory: it does not work with parallel make.
999 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1001 2008-02-11 Bruno Haible <bruno@clisp.org>
1003 * .gitattributes: New file.
1005 2008-02-11 Jim Meyering <meyering@redhat.com>
1007 useless-if-before-free: Fix reversed exit values.
1008 * build-aux/useless-if-before-free: Use correct values
1009 for EXIT_MATCH and EXIT_NO_MATCH.
1011 * build-aux/useless-if-before-free: Close stdout carefully.
1013 2008-02-10 Bruno Haible <bruno@clisp.org>
1015 New module 'git-merge-changelog'.
1016 * modules/git-merge-changelog: New file.
1017 * lib/git-merge-changelog.c: New file.
1019 2008-02-10 Jim Meyering <meyering@redhat.com>
1021 useless-if-before-free: New option: --list (-l).
1023 useless-if-before-free: Don't exit immediately upon open failure.
1024 * build-aux/useless-if-before-free: Exit 2 for errors.
1025 Upon failure to open a file, don't exit immediately.
1026 Rather, just warn and continue with any remaining files.
1028 2008-02-10 Bruno Haible <bruno@clisp.org>
1030 New abstract list operation 'node_set_value'.
1031 * lib/gl_list.h (gl_list_node_set_value): New function.
1032 (struct gl_list_implementation): New field node_set_value.
1033 * lib/gl_list.c (gl_list_node_set_value): New function.
1034 * lib/gl_array_list.c (gl_array_node_set_value): New function.
1035 (gl_array_list_implementation): Update.
1036 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
1037 (gl_carray_list_implementation): Update.
1038 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
1039 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
1040 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
1041 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
1042 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
1043 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
1044 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1046 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
1047 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
1048 (gl_sublist_list_implementation): Update.
1050 2008-02-10 Bruno Haible <bruno@clisp.org>
1052 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
1053 Needed when ELEMENT is #defined to 'some_type *'.
1055 2008-02-10 Jim Meyering <meyering@redhat.com>
1057 New script and module: useless-if-before-free
1058 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
1059 * build-aux/useless-if-before-free: New file.
1060 * modules/useless-if-before-free: New file.
1062 * build-aux/gitlog-to-changelog: Use committer date, not author date.
1064 xstrtol_error: Fix typo.
1065 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
1066 s/exit_failure/exit_status/.
1068 2008-02-09 Jim Meyering <meyering@redhat.com>
1070 New script and module: gitlog-to-changelog
1071 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
1072 * modules/gitlog-to-changelog: New file.
1073 * build-aux/gitlog-to-changelog: New file.
1075 2008-02-08 Jim Meyering <meyering@redhat.com>
1077 Avoid two "parameter unused" warnings.
1078 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
1081 Use "git COMMAND", not "git-COMMAND".
1082 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
1083 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
1084 * build-aux/git-version-gen: Use "git status", not "git-status".
1086 2008-02-07 Bruno Haible <bruno@clisp.org>
1088 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
1089 Avoids a crash on Windows Vista.
1090 Reported by Adam Strzelecki <ono@java.pl> via
1091 Simon Josefsson <simon@josefsson.org>.
1093 2008-02-06 Bruno Haible <bruno@clisp.org>
1095 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
1096 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
1097 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
1098 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
1099 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1100 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1101 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
1102 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
1103 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1104 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1105 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1106 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1107 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1108 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1109 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1110 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
1112 * tests/test-snprintf-posix.h (test_function): Likewise.
1113 * tests/test-sprintf-posix.h (test_function): Likewise.
1114 * tests/test-vasprintf-posix.c (test_function): Likewise.
1115 * doc/posix-functions/fprintf.texi: Update.
1116 * doc/posix-functions/printf.texi: Update.
1117 * doc/posix-functions/snprintf.texi: Update.
1118 * doc/posix-functions/sprintf.texi: Update.
1119 * doc/posix-functions/vfprintf.texi: Update.
1120 * doc/posix-functions/vprintf.texi: Update.
1121 * doc/posix-functions/vsnprintf.texi: Update.
1122 * doc/posix-functions/vsprintf.texi: Update.
1123 Reported by Peter Fales <psfales@alcatel-lucent.com>.
1125 2008-02-06 Bruno Haible <bruno@clisp.org>
1127 Fix bug introduced on 2008-01-26.
1128 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
1130 2008-02-06 Bruno Haible <bruno@clisp.org>
1132 Fix bug introduced on 2007-06-10.
1133 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
1134 !NEED_PRINTF_FLAG_ZERO.
1136 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
1138 getloadavg: use libperfstat on AIX5
1139 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
1141 2008-02-03 Bruno Haible <bruno@clisp.org>
1143 * lib/diffseq.h: Add comments about required #includes.
1144 Reported by Michael Biggs <gnulib@doubleplum.net>.
1146 2008-02-01 Bruno Haible <bruno@clisp.org>
1148 * users.txt: Add gnuit.
1150 2008-01-31 Bruno Haible <bruno@clisp.org>
1152 * lib/md4.c (set_uint32): Mark as inline.
1153 * lib/md5.c (set_uint32): Likewise.
1154 * lib/sha1.c (set_uint32): Likewise.
1155 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
1156 * m4/md5.m4 (gl_MD5): Likewise.
1157 * m4/sha1.m4 (gl_SHA1): Likewise.
1159 2008-01-31 Jim Meyering <meyering@redhat.com>
1161 Use "sizeof VAR", rather than a literal "4".
1162 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
1163 * lib/md4.c (md4_read_ctx): Likewise.
1164 * lib/sha1.c (sha1_read_ctx): Likewise.
1166 2008-01-31 Simon Josefsson <simon@josefsson.org>
1168 * tests/test-sha1.c: New file, based on test-md5.c.
1170 * modules/crypto/sha1-tests: New file.
1172 2008-01-31 Simon Josefsson <simon@josefsson.org>
1174 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
1176 2008-01-31 Jim Meyering <meyering@redhat.com>
1178 Prefer "sizeof v" over the equivalent "4".
1179 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
1180 * lib/md5.c (set_uint32): Likewise.
1181 * lib/sha1.c (set_uint32): Likewise.
1183 2008-01-31 Simon Josefsson <simon@josefsson.org>
1185 * lib/sha1.c (set_uint32): Mark function as static.
1187 2008-01-31 Simon Josefsson <simon@josefsson.org>
1189 md2: clarify comments to say that alignment is not required.
1190 * lib/md2.h: Remove warning about alignment in comment.
1191 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
1192 never been required.
1194 2008-01-31 Simon Josefsson <simon@josefsson.org>
1196 md4: adapt alignment constraint fix from sha1.
1197 * lib/md4.c (set_uint32): New function, from sha1.c
1198 (md4_read_ctx): Use it.
1199 (md4_finish_ctx): Doc fix.
1200 * lib/md4.h: Doc fix.
1202 2008-01-31 Simon Josefsson <simon@josefsson.org>
1204 md5: adapt alignment constraint fix from sha1.
1205 * lib/md5.c (set_uint32): New function, from sha1.c
1206 (md5_read_ctx): Use it.
1207 (md5_finish_ctx): Doc fix.
1208 * lib/md5.h: Doc fix.
1210 2008-01-30 Peter Palfrader <weasel@debian.org>
1212 sha1: remove the result buffer alignment constraint
1213 * lib/sha1.c (set_uint32): New function.
1214 (sha1_read_ctx): Rewrite to remove the result buffer alignment
1216 (sha1_finish_ctx): Remove comment warning about alignment constraint.
1217 * lib/sha1.h: Likewise.
1219 2008-01-30 Andreas Schwab <schwab@suse.de>
1220 Bruno Haible <bruno@clisp.org>
1222 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
1223 correct definition of LDBL_MIN_EXP.
1225 2008-01-30 Karl Berry <karl@gnu.org>
1227 * config/srclist-update: try to preserve x bit on updates.
1228 * config/srclistvars.sh: update for karl.
1230 2008-01-29 Jim Meyering <meyering@redhat.com>
1232 vasnprintf.c: Avoid warning about unused label
1233 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
1234 "overflow" label definition and associated code with the
1235 same cpp condition that guards the sole use of that label.
1237 2008-01-26 Bruno Haible <bruno@clisp.org>
1239 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
1240 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
1241 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
1242 * lib/isnanl-nolibm.h (isnanl): Likewise.
1243 Reported by Paul Eggert <eggert@cs.ucla.edu>.
1245 2008-01-26 Bruno Haible <bruno@clisp.org>
1247 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
1248 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
1250 2008-01-26 Bruno Haible <bruno@clisp.org>
1252 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
1253 GCC >= 4.0 built-in.
1254 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
1256 2008-01-26 Bruno Haible <bruno@clisp.org>
1258 Rename isnan, applicable to 'double' only, to isnand.
1259 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
1260 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
1261 (configure.ac): Update.
1262 (Include): Replace "isnan.h" with "isnand.h".
1263 * m4/isnand.m4: Renamed from m4/isnan.m4.
1264 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
1265 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
1267 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
1268 instead of HAVE_ISNAN_IN_LIBC.
1269 (isnand): Renamed from isnan.
1270 * lib/isnand.c: New file.
1271 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
1272 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
1273 (Makefile.am): Update.
1274 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
1275 Include isnand.h instead of isnan.h.
1276 (main): Test isnand instead of isnan.
1277 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
1279 * modules/frexp (Depends-on): Likewise.
1280 * modules/frexp-tests (Depends-on): Likewise.
1281 * modules/frexp-nolibm (Depends-on): Likewise.
1282 * modules/frexp-nolibm-tests (Depends-on): Likewise.
1283 * modules/isfinite (Depends-on): Likewise.
1284 * modules/round-tests (Depends-on): Likewise.
1285 * modules/signbit (Depends-on): Likewise.
1286 * modules/signbit-tests (Depends-on): Likewise.
1287 * modules/snprintf-posix (Depends-on): Likewise.
1288 * modules/sprintf-posix (Depends-on): Likewise.
1289 * modules/trunc-tests (Depends-on): Likewise.
1290 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1291 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1292 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1293 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1294 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1295 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1296 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1297 * modules/vasnprintf-posix (Depends-on): Likewise.
1298 * modules/vasprintf-posix (Depends-on): Likewise.
1299 * modules/vfprintf-posix (Depends-on): Likewise.
1300 * modules/vsnprintf-posix (Depends-on): Likewise.
1301 * modules/vsprintf-posix (Depends-on): Likewise.
1302 * lib/frexp.c: Include isnand.h instead of isnan.h.
1303 (ISNAN): Set to isnand instead of isnan.
1304 * lib/isfinite.c: Include isnand.h instead of isnan.h.
1305 (gl_isfinited): Use isnand instead of isnan.
1306 * lib/signbitd.c: Include isnand.h instead of isnan.h.
1307 (gl_signbitd): Use isnand instead of isnan.
1308 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
1309 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
1310 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
1311 (main): Use isnand instead of isnan.
1312 * tests/test-round1.c: Include isnand.h.
1313 (main): Use isnand instead of isnan.
1314 * tests/test-round2.c: Include isnand.h instead of isnan.h.
1315 (ISNAN): Set to isnand instead of isnan.
1316 * tests/test-trunc1.c: Include isnand.h.
1317 (main): Use isnand instead of isnan.
1318 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
1319 (equal): Use isnand instead of isnan.
1320 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
1322 * NEWS: Mention the change.
1324 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
1325 Bruno Haible <bruno@clisp.org>
1327 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
1328 the GCC builtins for signbits are present and set
1329 REPLACE_SIGNBIT_USING_GCC if so.
1330 * lib/math.in.h (signbit): Define using GCC builtins if
1331 REPLACE_SIGNBIT_USING_GCC is set.
1332 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
1333 REPLACE_SIGNBIT_USING_GCC.
1334 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
1336 2008-01-25 Jim Meyering <meyering@redhat.com>
1338 Prefer <config.h> over "config.h". See autoconf doc for explanation.
1339 * lib/poll.c: Include <config.h>, not "config.h".
1340 * tests/test-getaddrinfo.c: Likewise.
1342 2008-01-25 Simon Josefsson <simon@josefsson.org>
1344 * modules/sockets-tests: New file.
1346 2008-01-24 Simon Josefsson <simon@josefsson.org>
1348 * modules/sockets: New module, can be used to call WSA_Startup and
1349 WSA_Cleanup when needed.
1351 * lib/sockets.h, lib/sockets.c: New files.
1353 * m4/sockets.m4: New file.
1355 * tests/test-sockets.c: New file.
1357 2008-01-19 Bruno Haible <bruno@clisp.org>
1359 * doc/posix-headers: Renamed from doc/headers.
1360 * doc/posix-functions: Renamed from doc/functions.
1361 * doc/gnulib.texi: Update.
1363 2008-01-19 Bruno Haible <bruno@clisp.org>
1365 * doc/glibc-functions/strcasestr.texi: Include contents of
1366 doc/functions/strcasestr.texi, fixing the list of platforms.
1367 * doc/functions/strcasestr.texi: Remove file.
1369 2008-01-19 Bruno Haible <bruno@clisp.org>
1371 * doc/glibc-functions/memmem.texi: Include contents of
1372 doc/functions/memmem.texi.
1373 * doc/functions/memmem.texi: Remove file.
1375 2008-01-18 Bruno Haible <bruno@clisp.org>
1377 * doc/glibc-functions/*.texi: New files.
1378 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
1379 to use the new files.
1381 2008-01-17 Bruno Haible <bruno@clisp.org>
1383 * tests/test-gethostname.c (main): Fix printf statement.
1385 2008-01-17 Simon Josefsson <simon@josefsson.org>
1387 * modules/gethostname-tests: New file.
1389 * tests/test-gethostname.c: New file.
1391 2008-01-17 Simon Josefsson <simon@josefsson.org>
1393 * lib/gethostname.c: Include string.h unconditionally, strncpy is
1394 used by the UNAME case. Reported by Bruno Haible
1397 2008-01-17 Eric Blake <ebb9@byu.net>
1399 Convert c-strcasestr to be more efficient.
1400 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
1401 (Depends-on): Add c-strcase, remove malloca, strnlen.
1402 * tests/test-c-strcasestr.c (main): Enhance test.
1403 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
1405 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
1407 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
1408 Use it in creating po/Makevars.
1410 2008-01-15 Simon Josefsson <simon@josefsson.org>
1412 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
1413 Applications that requires it should initialize libgcrypt
1416 2008-01-16 Simon Josefsson <simon@josefsson.org>
1418 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
1420 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
1422 Fix problem with getdate on mingw32 reported by Simon Josefsson
1423 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
1424 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
1425 tzname", when deciding whether to declare tzname.
1426 * lib/strftime.c (tzname): Likewise.
1428 2008-01-15 Bruno Haible <bruno@clisp.org>
1430 Work around a MacOS X 10.5 bug in frexpl().
1431 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
1432 * doc/functions/frexpl.texi: Document the bug.
1433 Reported by Elias Pipping <pipping@gentoo.org>.
1435 2008-01-14 Eric Blake <ebb9@byu.net>
1437 Touch up previous patch.
1438 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
1439 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
1441 Convert strcasestr module to use Two-Way algorithm.
1442 * modules/strcasestr-simple: New module, based on the old
1443 strcasestr, but with Two-Way rather than KMP.
1444 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
1445 * lib/string.in.h (rpl_strcasestr): Declare.
1446 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
1448 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
1449 * modules/string (Makefile.am): Support strcasestr.
1450 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
1451 * modules/strcasestr-tests (Depends-on): Check for alarm.
1452 * tests/test-strcasestr.c: Augment test.
1453 * lib/str-two-way.h: Clean up stray macro.
1454 * NEWS: Document new module.
1455 * MODULES.html.sh (string handling): Likewise.
1456 * doc/functions/strcasestr.texi: New file.
1457 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
1458 here, since it is not a POSIX function.
1460 2008-01-14 Colin Watson <cjwatson@debian.org>
1461 Bruno Haible <bruno@clisp.org>
1463 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
1464 works fine; if not, set REPLACE_STRSIGNAL.
1465 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
1466 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1468 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
1469 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
1470 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
1472 2008-01-14 Bruno Haible <bruno@clisp.org>
1474 * modules/strsignal (Include): Change to <string.h>.
1476 2008-01-14 Colin Watson <cjwatson@debian.org>
1478 * modules/argp (Notice): Add a notice recommending to change
1480 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
1482 2008-01-13 Colin Watson <cjwatson@debian.org>
1484 * modules/strsignal-tests: New file.
1485 * tests/test-strsignal.c: New file.
1487 * lib/strsignal.c: New file, from glibc with modifications.
1488 * lib/siglist.h: New file, from glibc with modifications.
1489 * lib/string.in.h (strsignal): New declaration.
1490 * m4/strsignal.m4: New file.
1491 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1492 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
1493 * modules/strsignal: New file.
1494 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
1495 HAVE_DECL_STRSIGNAL.
1497 2008-01-13 Bruno Haible <bruno@clisp.org>
1499 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
1500 locale encoding is not ASCII. Needed for OpenBSD 4.0.
1501 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1502 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1504 2008-01-13 Bruno Haible <bruno@clisp.org>
1506 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
1507 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
1508 * lib/argp.h (__attribute__): Likewise.
1509 * lib/c-stack.c (__attribute__): Likewise.
1510 * lib/error.h (__attribute__): Likewise.
1511 * lib/fts.c (__attribute__): Likewise.
1512 * lib/openat.h (__attribute__): Likewise.
1513 * lib/stdio.in.h (__attribute__): Likewise.
1514 * lib/string.in.h (__attribute__): Likewise.
1515 * lib/utimens.c (__attribute__): Likewise.
1516 * lib/vasnprintf.h (__attribute__): Likewise.
1517 * lib/xalloc.h (__attribute__): Likewise.
1518 * lib/xprintf.h (__attribute__): Likewise.
1519 * lib/xstrtol.h (__attribute__): Likewise.
1520 * lib/xvasprintf.h (__attribute__): Likewise.
1522 2008-01-12 Bruno Haible <bruno@clisp.org>
1524 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
1525 * doc/glibc-headers/a.out.texi: New file.
1526 * doc/glibc-headers/aliases.texi: New file.
1527 * doc/glibc-headers/alloca.texi: New file.
1528 * doc/glibc-headers/ar.texi: New file.
1529 * doc/glibc-headers/argp.texi: New file.
1530 * doc/glibc-headers/argz.texi: New file.
1531 * doc/glibc-headers/byteswap.texi: New file.
1532 * doc/glibc-headers/crypt.texi: New file.
1533 * doc/glibc-headers/endian.texi: New file.
1534 * doc/glibc-headers/envz.texi: New file.
1535 * doc/glibc-headers/err.texi: New file.
1536 * doc/glibc-headers/error.texi: New file.
1537 * doc/glibc-headers/execinfo.texi: New file.
1538 * doc/glibc-headers/fpu_control.texi: New file.
1539 * doc/glibc-headers/fstab.texi: New file.
1540 * doc/glibc-headers/fts.texi: New file.
1541 * doc/glibc-headers/getopt.texi: New file.
1542 * doc/glibc-headers/ieee754.texi: New file.
1543 * doc/glibc-headers/ifaddrs.texi: New file.
1544 * doc/glibc-headers/libintl.texi: New file.
1545 * doc/glibc-headers/mcheck.texi: New file.
1546 * doc/glibc-headers/mntent.texi: New file.
1547 * doc/glibc-headers/obstack.texi: New file.
1548 * doc/glibc-headers/paths.texi: New file.
1549 * doc/glibc-headers/printf.texi: New file.
1550 * doc/glibc-headers/pty.texi: New file.
1551 * doc/glibc-headers/resolv.texi: New file.
1552 * doc/glibc-headers/shadow.texi: New file.
1553 * doc/glibc-headers/sysexits.texi: New file.
1554 * doc/glibc-headers/ttyent.texi: New file.
1556 2008-01-12 Jim Meyering <meyering@redhat.com>
1558 announce-gen: emit Gnulib's git-based version string.
1559 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
1560 New option --gnulib-version=V, where V is expected to be
1561 the output of running git describe in the gnulib directory.
1562 (get_tool_versions): Request feedback on xdelta. I suspect it's
1563 not useful, and plan to stop publishing an xdelta file with each
1566 * build-aux/announce-gen: Also check for lzma-compressed files.
1568 2008-01-11 Bruno Haible <bruno@clisp.org>
1570 * tests/test-memmem.c (main): Increase maximum allowed time.
1571 * tests/test-strstr.c (main): Likewise.
1573 2008-01-11 Bruno Haible <bruno@clisp.org>
1575 * doc/functions/memmem.texi: Add more precisions about platforms.
1576 * doc/functions/strstr.texi: Likewise.
1578 2008-01-10 Eric Blake <ebb9@byu.net>
1580 * m4/strstr.m4: Delete cruft from copy-n-paste.
1581 Reported by Bruno Haible.
1583 2008-01-10 Bruno Haible <bruno@clisp.org>
1585 Make c-strstr rely on strstr.
1586 * lib/c-strstr.c: Don't include str-kmp.h.
1587 (c_strstr): Define in terms of strstr.
1588 * modules/c-strstr (Files): Remove lib/str-kmp.h.
1589 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
1591 2008-01-10 Bruno Haible <bruno@clisp.org>
1593 * doc/gnulib.texi (String Functions in C Locale): New section.
1594 * doc/c-ctype.texi: New file.
1595 * doc/c-strcase.texi: New file.
1596 * doc/c-strcaseeq.texi: New file.
1597 * doc/c-strcasestr.texi: New file.
1598 * doc/c-strstr.texi: New file.
1599 * doc/c-strtod.texi: New file.
1600 * doc/c-strtold.texi: New file.
1602 2008-01-10 Eric Blake <ebb9@byu.net>
1604 * lib/relocatable.h: Fix a comment.
1606 2008-01-10 Eric Blake <ebb9@byu.net>
1608 Share two-way algorithm.
1609 * lib/str-two-way.h: New file, merged from...
1610 * lib/memmem.c: ...here...
1611 * lib/strstr.c: ...and here.
1612 * modules/memmem (Files): Use it.
1613 * modules/strstr (Files): Likewise.
1615 Avoid quadratic strstr implementations.
1616 * lib/strstr.c: New file.
1617 * m4/strstr.m4: Likewise.
1618 * modules/strstr: Likewise.
1619 * modules/strstr-tests: Likewise.
1620 * tests/test-strstr.c: Likewise.
1621 * lib/string.in.h (rpl_strstr): Declare.
1622 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
1623 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
1624 * modules/string (Makefile.am): Likewise.
1625 * MODULES.html.sh (string handling): Mention new module.
1626 * doc/functions/strstr.texi (strstr): Document the bug.
1628 2008-01-10 Bruno Haible <bruno@clisp.org>
1630 * lib/relocatable.h (relocate): State whether result is freshly
1632 * lib/relocatable.c (relocate): Return a freshly allocated string
1633 instead of a pointer to a privately held string.
1634 Reported by Sylvain Beucler <beuc@gnu.org>.
1636 2008-01-10 Colin Watson <cjwatson@debian.org>
1638 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
1641 2008-01-09 Bruno Haible <bruno@clisp.org>
1643 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
1645 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
1646 if it's only a guess.
1647 * modules/memmem: Simplify by depending on memmem-simple.
1649 2008-01-09 Bruno Haible <bruno@clisp.org>
1651 Work around OpenBSD 4.0 tdelete() bug.
1652 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
1653 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
1654 macros and don't redefine the enum values.
1655 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
1656 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
1657 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
1659 2008-01-09 Bruno Haible <bruno@clisp.org>
1661 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
1662 (main): Don't perform the tests if setlocale did not install a UTF-8
1663 locale. Needed on OpenBSD 4.0.
1664 * modules/wcwidth-tests (Depends-on): Add localcharset.
1666 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
1668 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
1669 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
1670 * NEWS: announce this.
1671 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
1673 2008-01-09 Simon Josefsson <simon@josefsson.org>
1674 and Eric Blake <ebb9@byu.net>
1676 Add memmem-simple module.
1677 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
1678 (gl_FUNC_MEMMEM): Separate performance from presence checks.
1679 * modules/memmem-simple: New file.
1680 * modules/memmem (Description): Tweak.
1681 * MODULES.html.sh (string handling): Mention new module.
1682 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
1683 addressed by memmem-simple.
1684 * NEWS: Document the difference.
1686 2008-01-09 Eric Blake <ebb9@byu.net>
1688 Give gcc some memmem optimization hints.
1689 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
1690 (strcasestr): Declare as pure.
1691 * modules/memmem (Maintainer): Claim my implementation.
1693 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1695 Support AIX 6.1 and higher.
1696 * build-aux/config.libpath: Likewise.
1697 * build-aux/config.rpath: Likewise.
1699 2008-01-08 Jim Meyering <meyering@redhat.com>
1700 Bruno Haible <bruno@clisp.org>
1702 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
1703 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
1704 Reported by Peter Fales in
1705 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
1707 2008-01-08 Bruno Haible <bruno@clisp.org>
1709 * modules/unictype/category-of (Depends-on): Add
1710 unictype/category-none.
1711 * modules/unictype/category-and-tests (Depends-on): Add
1712 unictype/category-{L,N,Lu,Nd}.
1713 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
1714 * modules/unictype/category-or-tests (Depends-on): Add
1715 unictype/category-{L,N}.
1716 * modules/unictype/category-name-tests (Depends-on): Add
1717 unictype/category-{Z,Nl}.
1718 Reported by Simon Josefsson.
1720 2008-01-08 Bruno Haible <bruno@clisp.org>
1722 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
1724 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
1725 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
1726 Reported by Peter Miller <millerp@canb.auug.org.au>.
1728 2008-01-08 Eric Blake <ebb9@byu.net>
1730 Rewrite memmem to guarantee linear complexity without malloc.
1731 * lib/memmem.c (memmem): Use Two-Way rather than
1732 Knuth-Morris-Pratt, to allow O(1) space usage.
1733 (critical_factorization, two_way_short_needle)
1734 (two_way_long_needle): New functions.
1735 (knuth_morris_pratt): Delete.
1736 * modules/memmem (Depends-on): No longer need malloca or stdbool.
1738 * tests/test-memmem.c (main): Add tests for periodic needle and
1739 sublinear performance.
1740 * doc/functions/memmem.texi (memmem): Document other deficiencies
1741 in cygwin and older glibc.
1743 2008-01-08 Bruno Haible <bruno@clisp.org>
1745 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
1748 2008-01-08 Mike Frysinger <vapier@gentoo.org>
1750 Add a configure time option: --disable-acl.
1751 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
1754 2008-01-06 Simon Josefsson <simon@josefsson.org>
1756 * tests/test-localename.c: Don't include obsolete "setenv.h".
1758 * modules/localename-tests (Depends-on): Need unsetenv.
1760 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1762 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
1764 2008-01-06 Colin Watson <cjwatson@debian.org>
1766 * users.txt: Add man-db.
1768 2008-01-07 Bruno Haible <bruno@clisp.org>
1770 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
1771 previous section name.
1773 2008-01-07 Bruno Haible <bruno@clisp.org>
1775 * lib/progname.c (set_program_name): Don't strip off a leading
1776 "lt-" prefix outside a .libs directory.
1777 Suggested by Paul Eggert.
1779 2008-01-01 Sylvain Beucler <beuc@gnu.org>
1780 Bruno Haible <bruno@clisp.org>
1782 Improve memory cleanup in 'relocatable' module.
1783 * lib/relocatable.h (compute_curr_prefix): Change return type to
1785 * lib/relocatable.c (compute_curr_prefix): Change return type to
1786 'char *'. Free curr_installdir after use.
1787 (relocate): Free curr_prefix_better after use.
1788 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
1790 2008-01-01 Bruno Haible <bruno@clisp.org>
1792 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
1793 failure on older glibc systems.
1794 Reported by Peter Fales <psfales@alcatel-lucent.com>.
1796 2008-01-05 Eric Blake <ebb9@byu.net>
1798 Avoid quadratic system memmem.
1799 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
1800 Reported by Ralf Wildenhues.
1802 Fix memmem test for mingw.
1803 * modules/memmem-tests (configure.ac): Check for alarm.
1804 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
1806 * doc/functions/memmem.texi: New file.
1807 * doc/gnulib.texi (Function Substitutes): Add memmem.
1808 Reported by Bruno Haible.
1810 2008-01-04 Bruno Haible <bruno@clisp.org>
1812 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
1813 Require gl_HEADER_STRINGS_H_DEFAULTS, not
1814 gl_HEADER_STRING_H_DEFAULTS.
1816 2008-01-04 Eric Blake <ebb9@byu.net>
1818 Shorten duration of memmem test.
1819 * tests/test-memmem.c (main): Use alarm to declare failure if test
1821 Reported by Ralf Wildenhues.
1823 2007-12-21 Simon Josefsson <simon@josefsson.org>
1825 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
1826 string, needed by strerror.
1828 2008-01-03 Colin Watson <cjwatson@debian.org>
1829 Bruno Haible <bruno@clisp.org>
1831 * doc/gnulib-tool.texi (Localization): New section.
1833 2008-01-02 Bruno Haible <bruno@clisp.org>
1835 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
1836 variables to 'unsigned char *' type.
1837 Reported by Paul Eggert.
1839 2008-01-02 Jim Meyering <jim@meyering.net>
1841 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
1843 2007-12-31 Jim Meyering <jim@meyering.net>
1845 Avoid use of private FTS type name.
1846 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
1848 2007-12-30 Karl Berry <karl@gnu.org>
1850 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
1851 work around defect in Texinfo and/or the standalone Info browser.
1853 2007-12-30 Bruno Haible <bruno@clisp.org>
1855 Unify 5 copies of the KMP code.
1856 * lib/str-kmp.h: New file.
1857 * lib/c-strcasestr.c: Include str-kmp.h.
1858 (knuth_morris_pratt): Remove function.
1859 (c_strcasestr): Update.
1860 * lib/c-strstr.c: Include str-kmp.h.
1861 (knuth_morris_pratt): Remove function.
1862 (c_strcasestr): Update.
1863 * lib/mbscasestr.c: Include str-kmp.h.
1864 (knuth_morris_pratt_unibyte): Remove function.
1865 * lib/mbsstr.c: Include str-kmp.h.
1866 (knuth_morris_pratt_unibyte): Remove function.
1867 * lib/strcasestr.c: Include str-kmp.h.
1868 (knuth_morris_pratt): Remove function.
1869 (strcasestr): Update.
1870 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
1871 * modules/c-strstr (Files): Likewise.
1872 * modules/mbscasestr (Files): Likewise.
1873 * modules/mbsstr (Files): Likewise.
1874 * modules/strcasestr (Files): Likewise.
1875 Suggested by Paul Eggert.
1877 2007-12-30 Bruno Haible <bruno@clisp.org>
1879 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
1882 2007-12-30 Bruno Haible <bruno@clisp.org>
1884 * lib/xmalloca.h: Include xalloc.h.
1885 (xnmalloca): New macro.
1887 2007-12-30 Bruno Haible <bruno@clisp.org>
1889 * lib/malloca.h (nmalloca): New macro.
1890 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
1891 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
1892 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
1893 knuth_morris_pratt_multibyte): Likewise.
1894 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
1895 knuth_morris_pratt_multibyte): Likewise.
1896 * lib/memmem.c (knuth_morris_pratt): Likewise.
1897 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
1899 2007-12-25 Bruno Haible <bruno@clisp.org>
1901 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
1902 * lib/glob.c: Don't include openat.h.
1903 (link_exists2_p): Add back the code that deals with the
1904 !GLOB_ALTDIRFUNC case.
1905 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
1906 let it do the filename concatenation.
1907 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
1908 * modules/glob (Depends-on): Remove openat.
1910 2007-12-31 Bruno Haible <bruno@clisp.org>
1912 * modules/dirfd (License): Change to LGPLv2+.
1913 Approved by Jim Meyering.
1915 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
1917 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
1918 when multiplying M by sizeof (size_t).
1920 2007-12-10 Martin Lambers <marlam@marlam.de>
1922 Override getpagesize on mingw.
1923 * lib/getpagesize.c: New file.
1924 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
1925 * modules/getpagesize (Files): Add lib/getpagesize.c.
1926 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
1927 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1928 REPLACE_GETPAGESIZE.
1929 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
1931 2007-12-25 Bruno Haible <bruno@clisp.org>
1933 * modules/localcharset (Notice): New field.
1934 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
1935 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1937 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
1938 Bruno Haible <bruno@clisp.org>
1940 Avoid using the syntax symbol() in formatted documentation.
1941 * MODULES.html.sh (func_module): When replacing symbol() with a
1942 hyperlink, remove the parentheses. Show an error if some remain.
1943 Recognize and render the '...' syntax.
1944 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
1945 Rework. Add paragraph about GCC's inlining.
1946 * doc/alloca.texi: Likewise.
1947 * doc/error.texi: Remove parentheses from symbol reference.
1948 * doc/gnulib-intro.texi: Likewise.
1949 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
1950 * modules/fnmatch (Description): Reword to say "the ... function".
1951 * modules/full-read (Description): Likewise.
1952 * modules/full-write (Description): Likewise.
1953 * modules/safe-read (Description): Likewise.
1954 * modules/safe-write (Description): Likewise.
1955 * modules/strchrnul (Description): Likewise.
1956 * modules/trim (Description): Likewise.
1957 * modules/error (Description): Remove parentheses from symbol
1959 * modules/verror (Description): Likewise.
1960 Reported by Karl Berry.
1962 2007-12-25 Bruno Haible <bruno@clisp.org>
1964 Fixup after 2007-10-16 commit.
1965 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
1967 2007-12-24 Bruno Haible <bruno@clisp.org>
1969 Make --enable-relocatable work with DESTDIR.
1970 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
1971 to compute installdir from destprog.
1972 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
1973 also set the RELOC_DESTDIR variable.
1974 Reported by Левашев Иван <octagram@bluebottle.com>.
1976 2007-12-24 Bruno Haible <bruno@clisp.org>
1978 Fix link error due to xalloc_die().
1979 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
1981 * lib/relocwrapper.c: Update comments.
1982 * build-aux/install-reloc: Remove xreadlink.c from file list.
1983 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
1985 Reported by Левашев Иван <octagram@bluebottle.com>.
1987 2007-12-24 Bruno Haible <bruno@clisp.org>
1989 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
1990 * lib/setenv.h: Remove file.
1991 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
1993 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
1994 (Depends-on): Add stdlib.
1995 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
1997 (Include): Replace setenv.h with <stdlib.h>.
1998 * modules/unsetenv: New file.
1999 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
2000 * lib/unsetenv.c: Include <stdlib.h> first.
2001 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
2002 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
2003 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
2004 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
2005 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
2006 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2007 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
2008 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2009 * doc/functions/unsetenv.texi: Update.
2010 * modules/xsetenv (Depends-on): Add unsetenv.
2011 * modules/getdate (Depends-on): Likewise.
2012 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
2013 * lib/xsetenv.c: Don't include setenv.h.
2014 * lib/getdate.y: Likewise.
2015 * lib/relocwrapper.c: Likewise.
2016 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
2017 (Depends-on): Add stdlib.
2018 * NEWS: Mention the changes.
2019 Reported by Левашев Иван <octagram@bluebottle.com>.
2021 2007-12-23 Bruno Haible <bruno@clisp.org>
2023 * lib/memmem.c (memmem): Use lowercase variable names. Tab
2026 2007-12-23 Bruno Haible <bruno@clisp.org>
2028 * lib/c-strcasestr.c: Add more comments.
2029 * lib/c-strstr.c: Likewise.
2030 * lib/mbscasestr.c: Likewise.
2031 * lib/mbsstr.c: Likewise.
2032 * lib/strcasestr.c: Likewise.
2033 * lib/memmem.c: Likewise.
2035 2007-12-23 Bruno Haible <bruno@clisp.org>
2037 * tests/test-memmem.c: Include <string.h> first.
2039 2007-12-22 Bruno Haible <bruno@clisp.org>
2041 * gnulib-tool (func_create_testdir): Change $auxdir while generating
2042 the contents of $testsbase.
2043 Reported by Ralf Wildenhues.
2045 2007-12-22 Bruno Haible <bruno@clisp.org>
2047 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
2048 two variables local_ldadd_before, local_ldadd_last.
2050 2007-12-20 Eric Blake <ebb9@byu.net>
2052 Work around circular library issue when cross-compiling.
2053 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
2054 that progname.o does not need to pull in rpl_memcmp.
2056 2007-12-19 Eric Blake <ebb9@byu.net>
2058 Fix memmem to avoid O(n^2) worst-case complexity.
2059 * lib/memmem.c (knuth_morris_pratt): New function.
2060 (memmem): Use it if first few naive iterations fail.
2061 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
2062 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
2063 * modules/memchr (License): Likewise.
2064 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
2066 * tests/test-memmem.c: Rewrite, borrowing ideas from
2067 test-mbsstr1.c; the old version wouldn't even compile!
2068 * modules/memmem-tests: New file.
2069 * lib/string.in.h (rpl_memmem): Add declaration.
2070 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
2071 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
2074 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
2076 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
2077 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
2078 before any system include files, and undef after them all. This
2079 should fix a problem on VMS reported by John E. Malmberg in
2080 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
2082 2007-12-17 Eric Blake <ebb9@byu.net>
2084 Revert addition of verify, for BSD/OS.
2085 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
2086 can't handle large files, for the sake of obsolete platforms.
2087 * modules/fseeko (Depends-on): Remove verify.
2088 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
2089 * doc/functions/ftello.texi (ftello): Likewise.
2090 * doc/functions/fgetpos.texi (fgetpos): Likewise.
2091 Reported by Larry Jones.
2093 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
2095 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
2096 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
2098 2007-12-17 Jim Meyering <meyering@redhat.com>
2100 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
2101 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
2102 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
2103 * modules/getcwd (Depends-on): Add openat.
2104 Reported by Petr Salinger.
2106 2007-12-17 Bruno Haible <bruno@clisp.org>
2108 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
2109 avoid a segmentation fault of the configure test on x86_64 systems.
2111 2007-12-15 Jim Meyering <meyering@redhat.com>
2113 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
2115 2007-12-13 Eric Blake <ebb9@byu.net>
2118 * tests/test-fseek.c (main): Also test ungetc handling.
2119 * tests/test-fseeko.c (main): Likewise.
2120 * modules/fseeko (Depends-on): Add verify.
2121 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
2123 Reported by Larry Jones.
2125 Fix fseeko on mingw.
2126 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
2129 Beef up fseek tests.
2130 * tests/test-fseek.c (main): Also test eof handling.
2131 * tests/test-fseeko.c (main): Likewise.
2132 Reported by Larry Jones.
2134 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
2136 Fix fseeko on BSD-based platforms.
2137 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
2140 2007-12-12 Eric Blake <ebb9@byu.net>
2142 Allow circular dependency of separate libtests.a
2143 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
2146 2007-12-11 Eric Blake <ebb9@byu.net>
2148 Fix bug with -0.0L in previous patch.
2149 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
2150 * tests/test-isnan.c (main): Also test on zeroes.
2151 * tests/test-isnanf.c (main): Likewise.
2152 * tests/test-isnanl.h (main): Likewise.
2154 Detect pseudo-denormals on x86 even when cross-compiling.
2155 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
2156 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
2157 invalid bit patterns that happen to satisfy ==.
2159 Avoid link failures with separate libtests.a.
2160 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
2161 last, to satisfy circular dependencies.
2163 2007-12-11 Eric Blake <ebb9@byu.net>
2164 and Bruno Haible <bruno@clisp.org>
2166 Fix OpenBSD 4.0 <float.h> handling of long double.
2167 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
2168 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
2169 * doc/headers/float.texi (float.h): Document OpenBSD bug.
2171 2007-12-11 Jim Meyering <meyering@redhat.com>
2173 * users.txt: Add libvirt.
2175 Support versions of autoconf prior to 2.59c.
2176 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
2177 if it is not already defined.
2179 2007-12-09 Bruno Haible <bruno@clisp.org>
2181 Let 'gnulib-tool --import' collect sources needed for the tests in
2182 tests/ rather than in lib/.
2183 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
2184 argument. If true, add rules to generate libtests.a, and put libtests.a
2185 into $(LDADD). Consider source files in subdirectories and set
2187 (func_emit_initmacro_start, func_emit_initmacro_end,
2188 func_emit_initmacro_done): Pass all arguments explicitly.
2189 (func_import): Determine two module lists main_modules,
2190 testsrelated_modules. Determine use_libtests. Determine two variables
2191 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
2192 instead of just sed_transform_lib_file. Determine two variables
2193 main_files and testsrelated_files. Compute 'files' as the union of
2194 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
2195 func_add_or_update. In the generated gnulib-comp.m4, collect the
2196 object files for tests/ in different variables than those for lib/.
2197 Substitute LIBTESTS_LIBDEPS.
2198 (func_create_testdir): Combine the uses_subdirs results from
2199 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
2201 2007-12-09 Bruno Haible <bruno@clisp.org>
2203 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
2204 the build-aux directory.
2206 2007-12-09 Bruno Haible <bruno@clisp.org>
2208 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
2209 introduced on 2006-09-09.
2211 2007-12-07 Jim Meyering <meyering@redhat.com>
2213 Let these macros work also with autoconf-2.59.
2214 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
2215 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
2216 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2218 2007-12-06 Jim Meyering <meyering@redhat.com>
2220 Avoid a configure-time syntax error in gl_FUNC_ACL.
2221 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
2222 function in each branch, before testing the cache variable.
2224 2007-12-04 Eric Blake <ebb9@byu.net>
2226 Make scripts executable.
2227 * build-aux/config.guess: Add execute permissions.
2228 * build-aux/config.sub: Likewise.
2229 * build-aux/gendocs.sh: Likewise.
2232 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
2234 * doc/functions/frexp.texi (frexp): Document the bug.
2236 Make cygwin fseeko check more reliable.
2237 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
2238 version numbers, rather than unrelated feature check.
2239 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
2240 * doc/functions/ftello.texi (ftello): Likewise.
2241 Reported by Bruno Haible.
2243 * m4/strerror.m4: Bump version number.
2245 2007-12-03 Bruno Haible <bruno@clisp.org>
2247 * doc/functions/mprotect.texi: Mention the mingw problem.
2249 2007-12-03 Eric Blake <ebb9@byu.net>
2251 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
2252 REPLACE_STRERROR is initialized before this macro.
2254 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
2256 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
2257 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
2258 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
2259 put -lsec in even for programs other than 'ls'. This fixes a problem
2260 for gettext reported by Bruno Haible in
2261 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
2262 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
2263 Add support for Solaris 10. This isn't efficient, but should get the
2266 2007-12-03 James Youngman <jay@gnu.org>
2268 * doc/regexprops-generic.texi: change "an close-group" to "a
2269 close-group" and "illegal" to "not allowed".
2271 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2273 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
2274 pr_byname.h. Needed for the rare case when the maintainer has done
2275 "make maintainer-clean" in the source directory and then attempts a
2276 build outside the source directory.
2277 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
2280 2007-12-02 Martin Lambers <marlam@marlam.de>
2281 Bruno Haible <bruno@clisp.org>
2283 * lib/getpagesize.h: Remove file.
2284 * lib/unistd.in.h: Include declaration of getpagesize here.
2285 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
2286 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
2288 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
2289 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
2290 * modules/getpagesize (Files): Remove lib/getpagesize.h.
2291 (Depends-on): Add unistd.
2292 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2293 (Include): Use <unistd.h> instead of getpagesize.h.
2294 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
2295 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
2296 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
2297 gl_GETPAGESIZE invocation, already handled by module dependency.
2298 * lib/pagealign_alloc.c: Don't include getpagesize.h.
2300 2007-12-02 Bruno Haible <bruno@clisp.org>
2302 * modules/strings-tests: New file.
2303 * tests/test-strings.c: New file.
2305 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
2306 * lib/strings.in.h: New file.
2307 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
2308 * m4/strings_h.m4: New file.
2309 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
2310 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
2311 * modules/strings: New file.
2312 * modules/string (Makefile.am): Update.
2313 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
2314 Reported by Karl Berry.
2316 2007-12-01 Eric Blake <ebb9@byu.net>
2318 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
2319 accomodate fix in cygwin 1.5.25.
2321 2007-12-01 Jim Meyering <meyering@redhat.com>
2323 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
2324 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2325 that would inhibit utf8-optimization of a regexp containing line-
2326 or buffer-anchors, e.g., `^', `$'.
2328 2007-11-30 Bruno Haible <bruno@clisp.org>
2330 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
2331 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
2332 glthread_recursive_lock_init.
2333 * lib/lock.c (glthread_recursive_lock_init)
2334 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
2335 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2337 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
2339 New function qset_acl, like set_acl but with syscall semantics.
2340 * lib/acl.h (qset_acl): New decl.
2341 * lib/acl.c (qset_acl): New function.
2342 (set_acl): Use new function. Use more-consistent diagnostics.
2344 2007-11-28 Jim Meyering <meyering@redhat.com>
2346 * modules/physmem (License): Change from GPL to LGPLv2+.
2348 2007-11-26 Bruno Haible <bruno@clisp.org>
2350 * lib/vasnprintf.c (decode_long_double): Don't abort if the
2351 'long double' type has excess precision.
2352 Reported by Jim Meyering in
2353 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
2355 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2357 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
2358 Sync from <http://gnu.org/licenses>.
2359 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
2360 with license text from same location.
2361 * doc/maintain.texi, doc/standards.texi: Sync from
2362 <http://savannah.gnu.org/projects/gnustandards>.
2364 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
2365 and Jim Meyering <meyering@redhat.com>
2367 Adjust getdate' grammar to accept a slightly more regular language.
2368 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
2369 Before, the former was rejected.
2370 * lib/getdate.y (digits_to_date_time): New function, factored
2372 (number): ...here. Just call digits_to_date_time.
2373 (hybrid): New non-terminal to handle an <unsigned number,
2374 signed relative offset> sequence consistently.
2376 2007-11-18 Jim Meyering <meyering@redhat.com>
2378 Pull my changes from coreutils:
2379 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
2380 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
2381 use of $gnulib_tool_option_extras, so that it's separated from the
2384 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
2385 * build-aux/bootstrap (cp_mark_as_generated): Create any required
2386 parent destination directories before copying a file into place.
2388 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
2390 bootstrap: work also with 4-argument variant of AC_INIT
2391 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
2393 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
2395 Port test-getaddrinfo to Solaris.
2396 Problem reported by Bruno Haible in
2397 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
2398 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
2399 explanation of setting 'hints'.
2400 Don't reject an implementation merely because it returns EAI_SERVICE.
2401 (EAI_SERVICE): Define to 0 if not defined.
2403 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
2405 The license of gnu-make and posix-shell is now "GPLed build tool".
2406 * modules/gnu-make (License): Likewise.
2407 * modules/posix-shell (License): Likewise.
2409 New module posix-shell, for determining a POSIX shell
2410 or perhaps something that is close enough to a POSIX shell.
2411 * m4/posix-shell.m4: New file.
2412 * modules/posix-shell: New file.
2414 * MODULES.html.sh: Mention new module.
2416 New module gnu-make, for determining whether we're using GNU Make.
2417 * m4/gnu-make.m4: New file.
2418 * modules/gnu-make: New file.
2419 * MODULES.html.sh: Mention new module.
2421 2007-11-14 Jim Meyering <meyering@redhat.com>
2423 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
2424 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
2425 use this macro to create a function _definition_.
2426 Remove useless "#undef ARGMATCH_DIE".
2428 2007-11-14 Bruno Haible <bruno@clisp.org>
2430 * lib/config.charset: Update for OpenBSD 4.1.
2431 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
2433 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
2435 Document 64-bit #if problems in stdint.texi.
2436 * doc/headers/stdint.texi (stdint.h): Mention problems with
2437 64-bit-#if, and how to work around them.
2439 Don't insist on 'long long int' support in the preprocessor. It
2440 breaks too many things. For example, PRIdMAX still uses a 'long
2441 long int' format with the latest Sun compiler, even though
2442 HAVE_LONG_LONG_INT isn't defined due to that compiler's
2443 preprocessor problem. This causes the latest coreutils to dump
2444 core on Solaris 10 sparc with the Sun C compiler.
2445 Instead, fix the 2007-10-16 problem in a different way, by evaluating
2446 the troublesome expressions at configure-time, not at #if-time.
2447 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
2449 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
2450 compile-time C checks, done at 'configure'-time.
2451 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
2452 * modules/inttypes (Makefile): Substitute the new symbols that
2453 gl_INTTYPES_H now generates.
2454 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
2456 2007-11-12 Bruno Haible <bruno@clisp.org>
2458 Tests for Unicode character classification functions.
2460 * modules/unictype/bidicategory-byname-tests: New file.
2461 * modules/unictype/bidicategory-name-tests: New file.
2462 * modules/unictype/bidicategory-of-tests: New file.
2463 * modules/unictype/bidicategory-test-tests: New file.
2464 * modules/unictype/block-list-tests: New file.
2465 * modules/unictype/block-of-tests: New file.
2466 * modules/unictype/block-test-tests: New file.
2467 * modules/unictype/category-C-tests: New file.
2468 * modules/unictype/category-Cc-tests: New file.
2469 * modules/unictype/category-Cf-tests: New file.
2470 * modules/unictype/category-Cn-tests: New file.
2471 * modules/unictype/category-Co-tests: New file.
2472 * modules/unictype/category-Cs-tests: New file.
2473 * modules/unictype/category-L-tests: New file.
2474 * modules/unictype/category-Ll-tests: New file.
2475 * modules/unictype/category-Lm-tests: New file.
2476 * modules/unictype/category-Lo-tests: New file.
2477 * modules/unictype/category-Lt-tests: New file.
2478 * modules/unictype/category-Lu-tests: New file.
2479 * modules/unictype/category-M-tests: New file.
2480 * modules/unictype/category-Mc-tests: New file.
2481 * modules/unictype/category-Me-tests: New file.
2482 * modules/unictype/category-Mn-tests: New file.
2483 * modules/unictype/category-N-tests: New file.
2484 * modules/unictype/category-Nd-tests: New file.
2485 * modules/unictype/category-Nl-tests: New file.
2486 * modules/unictype/category-No-tests: New file.
2487 * modules/unictype/category-P-tests: New file.
2488 * modules/unictype/category-Pc-tests: New file.
2489 * modules/unictype/category-Pd-tests: New file.
2490 * modules/unictype/category-Pe-tests: New file.
2491 * modules/unictype/category-Pf-tests: New file.
2492 * modules/unictype/category-Pi-tests: New file.
2493 * modules/unictype/category-Po-tests: New file.
2494 * modules/unictype/category-Ps-tests: New file.
2495 * modules/unictype/category-S-tests: New file.
2496 * modules/unictype/category-Sc-tests: New file.
2497 * modules/unictype/category-Sk-tests: New file.
2498 * modules/unictype/category-Sm-tests: New file.
2499 * modules/unictype/category-So-tests: New file.
2500 * modules/unictype/category-Z-tests: New file.
2501 * modules/unictype/category-Zl-tests: New file.
2502 * modules/unictype/category-Zp-tests: New file.
2503 * modules/unictype/category-Zs-tests: New file.
2504 * modules/unictype/category-and-not-tests: New file.
2505 * modules/unictype/category-and-tests: New file.
2506 * modules/unictype/category-byname-tests: New file.
2507 * modules/unictype/category-name-tests: New file.
2508 * modules/unictype/category-none-tests: New file.
2509 * modules/unictype/category-of-tests: New file.
2510 * modules/unictype/category-or-tests: New file.
2511 * modules/unictype/category-test-withtable-tests: New file.
2512 * modules/unictype/combining-class-tests: New file.
2513 * modules/unictype/ctype-alnum-tests: New file.
2514 * modules/unictype/ctype-alpha-tests: New file.
2515 * modules/unictype/ctype-blank-tests: New file.
2516 * modules/unictype/ctype-cntrl-tests: New file.
2517 * modules/unictype/ctype-digit-tests: New file.
2518 * modules/unictype/ctype-graph-tests: New file.
2519 * modules/unictype/ctype-lower-tests: New file.
2520 * modules/unictype/ctype-print-tests: New file.
2521 * modules/unictype/ctype-punct-tests: New file.
2522 * modules/unictype/ctype-space-tests: New file.
2523 * modules/unictype/ctype-upper-tests: New file.
2524 * modules/unictype/ctype-xdigit-tests: New file.
2525 * modules/unictype/decimal-digit-tests: New file.
2526 * modules/unictype/digit-tests: New file.
2527 * modules/unictype/mirror-tests: New file.
2528 * modules/unictype/numeric-tests: New file.
2529 * modules/unictype/property-alphabetic-tests: New file.
2530 * modules/unictype/property-ascii-hex-digit-tests: New file.
2531 * modules/unictype/property-bidi-arabic-digit-tests: New file.
2532 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
2533 * modules/unictype/property-bidi-block-separator-tests: New file.
2534 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
2535 * modules/unictype/property-bidi-common-separator-tests: New file.
2536 * modules/unictype/property-bidi-control-tests: New file.
2537 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
2538 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
2539 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
2540 * modules/unictype/property-bidi-european-digit-tests: New file.
2541 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
2542 * modules/unictype/property-bidi-left-to-right-tests: New file.
2543 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
2544 * modules/unictype/property-bidi-other-neutral-tests: New file.
2545 * modules/unictype/property-bidi-pdf-tests: New file.
2546 * modules/unictype/property-bidi-segment-separator-tests: New file.
2547 * modules/unictype/property-bidi-whitespace-tests: New file.
2548 * modules/unictype/property-byname-tests: New file.
2549 * modules/unictype/property-combining-tests: New file.
2550 * modules/unictype/property-composite-tests: New file.
2551 * modules/unictype/property-currency-symbol-tests: New file.
2552 * modules/unictype/property-dash-tests: New file.
2553 * modules/unictype/property-decimal-digit-tests: New file.
2554 * modules/unictype/property-default-ignorable-code-point-tests: New file.
2555 * modules/unictype/property-deprecated-tests: New file.
2556 * modules/unictype/property-diacritic-tests: New file.
2557 * modules/unictype/property-extender-tests: New file.
2558 * modules/unictype/property-format-control-tests: New file.
2559 * modules/unictype/property-grapheme-base-tests: New file.
2560 * modules/unictype/property-grapheme-extend-tests: New file.
2561 * modules/unictype/property-grapheme-link-tests: New file.
2562 * modules/unictype/property-hex-digit-tests: New file.
2563 * modules/unictype/property-hyphen-tests: New file.
2564 * modules/unictype/property-id-continue-tests: New file.
2565 * modules/unictype/property-id-start-tests: New file.
2566 * modules/unictype/property-ideographic-tests: New file.
2567 * modules/unictype/property-ids-binary-operator-tests: New file.
2568 * modules/unictype/property-ids-trinary-operator-tests: New file.
2569 * modules/unictype/property-ignorable-control-tests: New file.
2570 * modules/unictype/property-iso-control-tests: New file.
2571 * modules/unictype/property-join-control-tests: New file.
2572 * modules/unictype/property-left-of-pair-tests: New file.
2573 * modules/unictype/property-line-separator-tests: New file.
2574 * modules/unictype/property-logical-order-exception-tests: New file.
2575 * modules/unictype/property-lowercase-tests: New file.
2576 * modules/unictype/property-math-tests: New file.
2577 * modules/unictype/property-non-break-tests: New file.
2578 * modules/unictype/property-not-a-character-tests: New file.
2579 * modules/unictype/property-numeric-tests: New file.
2580 * modules/unictype/property-other-alphabetic-tests: New file.
2581 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
2582 * modules/unictype/property-other-grapheme-extend-tests: New file.
2583 * modules/unictype/property-other-id-continue-tests: New file.
2584 * modules/unictype/property-other-id-start-tests: New file.
2585 * modules/unictype/property-other-lowercase-tests: New file.
2586 * modules/unictype/property-other-math-tests: New file.
2587 * modules/unictype/property-other-uppercase-tests: New file.
2588 * modules/unictype/property-paired-punctuation-tests: New file.
2589 * modules/unictype/property-paragraph-separator-tests: New file.
2590 * modules/unictype/property-pattern-syntax-tests: New file.
2591 * modules/unictype/property-pattern-white-space-tests: New file.
2592 * modules/unictype/property-private-use-tests: New file.
2593 * modules/unictype/property-punctuation-tests: New file.
2594 * modules/unictype/property-quotation-mark-tests: New file.
2595 * modules/unictype/property-radical-tests: New file.
2596 * modules/unictype/property-sentence-terminal-tests: New file.
2597 * modules/unictype/property-soft-dotted-tests: New file.
2598 * modules/unictype/property-space-tests: New file.
2599 * modules/unictype/property-terminal-punctuation-tests: New file.
2600 * modules/unictype/property-test-tests: New file.
2601 * modules/unictype/property-titlecase-tests: New file.
2602 * modules/unictype/property-unassigned-code-value-tests: New file.
2603 * modules/unictype/property-unified-ideograph-tests: New file.
2604 * modules/unictype/property-uppercase-tests: New file.
2605 * modules/unictype/property-variation-selector-tests: New file.
2606 * modules/unictype/property-white-space-tests: New file.
2607 * modules/unictype/property-xid-continue-tests: New file.
2608 * modules/unictype/property-xid-start-tests: New file.
2609 * modules/unictype/property-zero-width-tests: New file.
2610 * modules/unictype/scripts-tests: New file.
2611 * modules/unictype/syntax-c-ident-tests: New file.
2612 * modules/unictype/syntax-c-whitespace-tests: New file.
2613 * modules/unictype/syntax-java-ident-tests: New file.
2614 * modules/unictype/syntax-java-whitespace-tests: New file.
2615 * tests/unictype/test-bidi_byname.c: New file.
2616 * tests/unictype/test-bidi_name.c: New file.
2617 * tests/unictype/test-bidi_of.c: New file.
2618 * tests/unictype/test-bidi_test.c: New file.
2619 * tests/unictype/test-block_list.c: New file.
2620 * tests/unictype/test-block_of.c: New file.
2621 * tests/unictype/test-block_test.c: New file.
2622 * tests/unictype/test-categ_and.c: New file.
2623 * tests/unictype/test-categ_and_not.c: New file.
2624 * tests/unictype/test-categ_byname.c: New file.
2625 * tests/unictype/test-categ_name.c: New file.
2626 * tests/unictype/test-categ_none.c: New file.
2627 * tests/unictype/test-categ_of.c: New file.
2628 * tests/unictype/test-categ_or.c: New file.
2629 * tests/unictype/test-categ_test_withtable.c: New file.
2630 * tests/unictype/test-combining.c: New file.
2631 * tests/unictype/test-decdigit.c: New file.
2632 * tests/unictype/test-digit.c: New file.
2633 * tests/unictype/test-mirror.c: New file.
2634 * tests/unictype/test-numeric.c: New file.
2635 * tests/unictype/test-pr_byname.c: New file.
2636 * tests/unictype/test-pr_test.c: New file.
2637 * tests/unictype/test-predicate-part1.h: New file.
2638 * tests/unictype/test-predicate-part2.h: New file.
2639 * tests/unictype/test-scripts.c: New file.
2640 * tests/unictype/test-sy_c_ident.c: New file.
2641 * tests/unictype/test-sy_java_ident.c: New file.
2643 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
2645 * tests/unictype/test-categ_Cc.c: Likewise.
2646 * tests/unictype/test-categ_Cf.c: Likewise.
2647 * tests/unictype/test-categ_Cn.c: Likewise.
2648 * tests/unictype/test-categ_Co.c: Likewise.
2649 * tests/unictype/test-categ_Cs.c: Likewise.
2650 * tests/unictype/test-categ_L.c: Likewise.
2651 * tests/unictype/test-categ_Ll.c: Likewise.
2652 * tests/unictype/test-categ_Lm.c: Likewise.
2653 * tests/unictype/test-categ_Lo.c: Likewise.
2654 * tests/unictype/test-categ_Lt.c: Likewise.
2655 * tests/unictype/test-categ_Lu.c: Likewise.
2656 * tests/unictype/test-categ_M.c: Likewise.
2657 * tests/unictype/test-categ_Mc.c: Likewise.
2658 * tests/unictype/test-categ_Me.c: Likewise.
2659 * tests/unictype/test-categ_Mn.c: Likewise.
2660 * tests/unictype/test-categ_N.c: Likewise.
2661 * tests/unictype/test-categ_Nd.c: Likewise.
2662 * tests/unictype/test-categ_Nl.c: Likewise.
2663 * tests/unictype/test-categ_No.c: Likewise.
2664 * tests/unictype/test-categ_P.c: Likewise.
2665 * tests/unictype/test-categ_Pc.c: Likewise.
2666 * tests/unictype/test-categ_Pd.c: Likewise.
2667 * tests/unictype/test-categ_Pe.c: Likewise.
2668 * tests/unictype/test-categ_Pf.c: Likewise.
2669 * tests/unictype/test-categ_Pi.c: Likewise.
2670 * tests/unictype/test-categ_Po.c: Likewise.
2671 * tests/unictype/test-categ_Ps.c: Likewise.
2672 * tests/unictype/test-categ_S.c: Likewise.
2673 * tests/unictype/test-categ_Sc.c: Likewise.
2674 * tests/unictype/test-categ_Sk.c: Likewise.
2675 * tests/unictype/test-categ_Sm.c: Likewise.
2676 * tests/unictype/test-categ_So.c: Likewise.
2677 * tests/unictype/test-categ_Z.c: Likewise.
2678 * tests/unictype/test-categ_Zl.c: Likewise.
2679 * tests/unictype/test-categ_Zp.c: Likewise.
2680 * tests/unictype/test-categ_Zs.c: Likewise.
2681 * tests/unictype/test-ctype_alnum.c: Likewise.
2682 * tests/unictype/test-ctype_alpha.c: Likewise.
2683 * tests/unictype/test-ctype_blank.c: Likewise.
2684 * tests/unictype/test-ctype_cntrl.c: Likewise.
2685 * tests/unictype/test-ctype_digit.c: Likewise.
2686 * tests/unictype/test-ctype_graph.c: Likewise.
2687 * tests/unictype/test-ctype_lower.c: Likewise.
2688 * tests/unictype/test-ctype_print.c: Likewise.
2689 * tests/unictype/test-ctype_punct.c: Likewise.
2690 * tests/unictype/test-ctype_space.c: Likewise.
2691 * tests/unictype/test-ctype_upper.c: Likewise.
2692 * tests/unictype/test-ctype_xdigit.c: Likewise.
2693 * tests/unictype/test-decdigit.h: Likewise.
2694 * tests/unictype/test-digit.h: Likewise.
2695 * tests/unictype/test-numeric.h: Likewise.
2696 * tests/unictype/test-pr_alphabetic.c: Likewise.
2697 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
2698 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
2699 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
2700 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
2701 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
2702 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
2703 * tests/unictype/test-pr_bidi_control.c: Likewise.
2704 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
2705 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
2706 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
2707 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
2708 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
2709 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
2710 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
2711 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
2712 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
2713 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
2714 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
2715 * tests/unictype/test-pr_combining.c: Likewise.
2716 * tests/unictype/test-pr_composite.c: Likewise.
2717 * tests/unictype/test-pr_currency_symbol.c: Likewise.
2718 * tests/unictype/test-pr_dash.c: Likewise.
2719 * tests/unictype/test-pr_decimal_digit.c: Likewise.
2720 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
2721 * tests/unictype/test-pr_deprecated.c: Likewise.
2722 * tests/unictype/test-pr_diacritic.c: Likewise.
2723 * tests/unictype/test-pr_extender.c: Likewise.
2724 * tests/unictype/test-pr_format_control.c: Likewise.
2725 * tests/unictype/test-pr_grapheme_base.c: Likewise.
2726 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
2727 * tests/unictype/test-pr_grapheme_link.c: Likewise.
2728 * tests/unictype/test-pr_hex_digit.c: Likewise.
2729 * tests/unictype/test-pr_hyphen.c: Likewise.
2730 * tests/unictype/test-pr_id_continue.c: Likewise.
2731 * tests/unictype/test-pr_id_start.c: Likewise.
2732 * tests/unictype/test-pr_ideographic.c: Likewise.
2733 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
2734 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
2735 * tests/unictype/test-pr_ignorable_control.c: Likewise.
2736 * tests/unictype/test-pr_iso_control.c: Likewise.
2737 * tests/unictype/test-pr_join_control.c: Likewise.
2738 * tests/unictype/test-pr_left_of_pair.c: Likewise.
2739 * tests/unictype/test-pr_line_separator.c: Likewise.
2740 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
2741 * tests/unictype/test-pr_lowercase.c: Likewise.
2742 * tests/unictype/test-pr_math.c: Likewise.
2743 * tests/unictype/test-pr_non_break.c: Likewise.
2744 * tests/unictype/test-pr_not_a_character.c: Likewise.
2745 * tests/unictype/test-pr_numeric.c: Likewise.
2746 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
2747 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
2748 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
2749 * tests/unictype/test-pr_other_id_continue.c: Likewise.
2750 * tests/unictype/test-pr_other_id_start.c: Likewise.
2751 * tests/unictype/test-pr_other_lowercase.c: Likewise.
2752 * tests/unictype/test-pr_other_math.c: Likewise.
2753 * tests/unictype/test-pr_other_uppercase.c: Likewise.
2754 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
2755 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
2756 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
2757 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
2758 * tests/unictype/test-pr_private_use.c: Likewise.
2759 * tests/unictype/test-pr_punctuation.c: Likewise.
2760 * tests/unictype/test-pr_quotation_mark.c: Likewise.
2761 * tests/unictype/test-pr_radical.c: Likewise.
2762 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
2763 * tests/unictype/test-pr_soft_dotted.c: Likewise.
2764 * tests/unictype/test-pr_space.c: Likewise.
2765 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
2766 * tests/unictype/test-pr_titlecase.c: Likewise.
2767 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
2768 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
2769 * tests/unictype/test-pr_uppercase.c: Likewise.
2770 * tests/unictype/test-pr_variation_selector.c: Likewise.
2771 * tests/unictype/test-pr_white_space.c: Likewise.
2772 * tests/unictype/test-pr_xid_continue.c: Likewise.
2773 * tests/unictype/test-pr_xid_start.c: Likewise.
2774 * tests/unictype/test-pr_zero_width.c: Likewise.
2775 * tests/unictype/test-sy_c_whitespace.c: Likewise.
2776 * tests/unictype/test-sy_java_whitespace.c: Likewise.
2778 2007-11-12 Bruno Haible <bruno@clisp.org>
2780 Unicode character classification functions.
2781 * lib/unictype.h: New file.
2782 * modules/unictype/base: New file.
2783 * modules/unictype/category-L: New file.
2784 * modules/unictype/category-Lu: New file.
2785 * modules/unictype/category-Ll: New file.
2786 * modules/unictype/category-Lt: New file.
2787 * modules/unictype/category-Lm: New file.
2788 * modules/unictype/category-Lo: New file.
2789 * modules/unictype/category-M: New file.
2790 * modules/unictype/category-Mn: New file.
2791 * modules/unictype/category-Mc: New file.
2792 * modules/unictype/category-Me: New file.
2793 * modules/unictype/category-N: New file.
2794 * modules/unictype/category-Nd: New file.
2795 * modules/unictype/category-Nl: New file.
2796 * modules/unictype/category-No: New file.
2797 * modules/unictype/category-P: New file.
2798 * modules/unictype/category-Pc: New file.
2799 * modules/unictype/category-Pd: New file.
2800 * modules/unictype/category-Ps: New file.
2801 * modules/unictype/category-Pe: New file.
2802 * modules/unictype/category-Pi: New file.
2803 * modules/unictype/category-Pf: New file.
2804 * modules/unictype/category-Po: New file.
2805 * modules/unictype/category-S: New file.
2806 * modules/unictype/category-Sm: New file.
2807 * modules/unictype/category-Sc: New file.
2808 * modules/unictype/category-Sk: New file.
2809 * modules/unictype/category-So: New file.
2810 * modules/unictype/category-Z: New file.
2811 * modules/unictype/category-Zs: New file.
2812 * modules/unictype/category-Zl: New file.
2813 * modules/unictype/category-Zp: New file.
2814 * modules/unictype/category-C: New file.
2815 * modules/unictype/category-Cc: New file.
2816 * modules/unictype/category-Cf: New file.
2817 * modules/unictype/category-Cs: New file.
2818 * modules/unictype/category-Co: New file.
2819 * modules/unictype/category-Cn: New file.
2820 * modules/unictype/category-or: New file.
2821 * modules/unictype/category-of: New file.
2822 * modules/unictype/category-test: New file.
2823 * modules/unictype/category-test-withtable: New file.
2824 * modules/unictype/category-byname: New file.
2825 * modules/unictype/category-none: New file.
2826 * modules/unictype/category-and: New file.
2827 * modules/unictype/category-and-not: New file.
2828 * modules/unictype/category-name: New file.
2829 * modules/unictype/combining-class: New file.
2830 * modules/unictype/category-all: New file.
2831 * modules/unictype/bidicategory-all: New file.
2832 * modules/unictype/bidicategory-byname: New file.
2833 * modules/unictype/bidicategory-name: New file.
2834 * modules/unictype/bidicategory-of: New file.
2835 * modules/unictype/bidicategory-test: New file.
2836 * modules/unictype/decimal-digit: New file.
2837 * modules/unictype/digit: New file.
2838 * modules/unictype/numeric: New file.
2839 * modules/unictype/mirror: New file.
2840 * modules/unictype/property-white-space: New file.
2841 * modules/unictype/property-alphabetic: New file.
2842 * modules/unictype/property-other-alphabetic: New file.
2843 * modules/unictype/property-not-a-character: New file.
2844 * modules/unictype/property-default-ignorable-code-point: New file.
2845 * modules/unictype/property-other-default-ignorable-code-point: New
2847 * modules/unictype/property-deprecated: New file.
2848 * modules/unictype/property-logical-order-exception: New file.
2849 * modules/unictype/property-variation-selector: New file.
2850 * modules/unictype/property-private-use: New file.
2851 * modules/unictype/property-unassigned-code-value: New file.
2852 * modules/unictype/property-uppercase: New file.
2853 * modules/unictype/property-other-uppercase: New file.
2854 * modules/unictype/property-lowercase: New file.
2855 * modules/unictype/property-other-lowercase: New file.
2856 * modules/unictype/property-titlecase: New file.
2857 * modules/unictype/property-soft-dotted: New file.
2858 * modules/unictype/property-id-start: New file.
2859 * modules/unictype/property-other-id-start: New file.
2860 * modules/unictype/property-id-continue: New file.
2861 * modules/unictype/property-other-id-continue: New file.
2862 * modules/unictype/property-xid-start: New file.
2863 * modules/unictype/property-xid-continue: New file.
2864 * modules/unictype/property-pattern-white-space: New file.
2865 * modules/unictype/property-pattern-syntax: New file.
2866 * modules/unictype/property-join-control: New file.
2867 * modules/unictype/property-grapheme-base: New file.
2868 * modules/unictype/property-grapheme-extend: New file.
2869 * modules/unictype/property-other-grapheme-extend: New file.
2870 * modules/unictype/property-grapheme-link: New file.
2871 * modules/unictype/property-bidi-control: New file.
2872 * modules/unictype/property-bidi-left-to-right: New file.
2873 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
2874 * modules/unictype/property-bidi-arabic-right-to-left: New file.
2875 * modules/unictype/property-bidi-european-digit: New file.
2876 * modules/unictype/property-bidi-eur-num-separator: New file.
2877 * modules/unictype/property-bidi-eur-num-terminator: New file.
2878 * modules/unictype/property-bidi-arabic-digit: New file.
2879 * modules/unictype/property-bidi-common-separator: New file.
2880 * modules/unictype/property-bidi-block-separator: New file.
2881 * modules/unictype/property-bidi-segment-separator: New file.
2882 * modules/unictype/property-bidi-whitespace: New file.
2883 * modules/unictype/property-bidi-non-spacing-mark: New file.
2884 * modules/unictype/property-bidi-boundary-neutral: New file.
2885 * modules/unictype/property-bidi-pdf: New file.
2886 * modules/unictype/property-bidi-embedding-or-override: New file.
2887 * modules/unictype/property-bidi-other-neutral: New file.
2888 * modules/unictype/property-hex-digit: New file.
2889 * modules/unictype/property-ascii-hex-digit: New file.
2890 * modules/unictype/property-ideographic: New file.
2891 * modules/unictype/property-unified-ideograph: New file.
2892 * modules/unictype/property-radical: New file.
2893 * modules/unictype/property-ids-binary-operator: New file.
2894 * modules/unictype/property-ids-trinary-operator: New file.
2895 * modules/unictype/property-zero-width: New file.
2896 * modules/unictype/property-space: New file.
2897 * modules/unictype/property-non-break: New file.
2898 * modules/unictype/property-iso-control: New file.
2899 * modules/unictype/property-format-control: New file.
2900 * modules/unictype/property-dash: New file.
2901 * modules/unictype/property-hyphen: New file.
2902 * modules/unictype/property-punctuation: New file.
2903 * modules/unictype/property-line-separator: New file.
2904 * modules/unictype/property-paragraph-separator: New file.
2905 * modules/unictype/property-quotation-mark: New file.
2906 * modules/unictype/property-sentence-terminal: New file.
2907 * modules/unictype/property-terminal-punctuation: New file.
2908 * modules/unictype/property-currency-symbol: New file.
2909 * modules/unictype/property-math: New file.
2910 * modules/unictype/property-other-math: New file.
2911 * modules/unictype/property-paired-punctuation: New file.
2912 * modules/unictype/property-left-of-pair: New file.
2913 * modules/unictype/property-combining: New file.
2914 * modules/unictype/property-composite: New file.
2915 * modules/unictype/property-decimal-digit: New file.
2916 * modules/unictype/property-numeric: New file.
2917 * modules/unictype/property-diacritic: New file.
2918 * modules/unictype/property-extender: New file.
2919 * modules/unictype/property-ignorable-control: New file.
2920 * modules/unictype/property-test: New file.
2921 * modules/unictype/property-byname: New file.
2922 * modules/unictype/property-all: New file.
2923 * modules/unictype/scripts: New file.
2924 * modules/unictype/scripts-all: New file.
2925 * modules/unictype/block-of: New file.
2926 * modules/unictype/block-test: New file.
2927 * modules/unictype/block-list: New file.
2928 * modules/unictype/block-all: New file.
2929 * modules/unictype/syntax-c-whitespace: New file.
2930 * modules/unictype/syntax-java-whitespace: New file.
2931 * modules/unictype/syntax-c-ident: New file.
2932 * modules/unictype/syntax-java-ident: New file.
2933 * modules/unictype/ctype-alnum: New file.
2934 * modules/unictype/ctype-alpha: New file.
2935 * modules/unictype/ctype-cntrl: New file.
2936 * modules/unictype/ctype-digit: New file.
2937 * modules/unictype/ctype-graph: New file.
2938 * modules/unictype/ctype-lower: New file.
2939 * modules/unictype/ctype-print: New file.
2940 * modules/unictype/ctype-punct: New file.
2941 * modules/unictype/ctype-space: New file.
2942 * modules/unictype/ctype-upper: New file.
2943 * modules/unictype/ctype-xdigit: New file.
2944 * modules/unictype/ctype-blank: New file.
2945 * lib/unictype/bidi_byname.c: New file.
2946 * lib/unictype/bidi_name.c: New file.
2947 * lib/unictype/bidi_of.c: New file.
2948 * lib/unictype/bidi_test.c: New file.
2949 * lib/unictype/bitmap.h: New file.
2950 * lib/unictype/block_test.c: New file.
2951 * lib/unictype/blocks.c: New file.
2952 * lib/unictype/categ_C.c: New file.
2953 * lib/unictype/categ_Cc.c: New file.
2954 * lib/unictype/categ_Cf.c: New file.
2955 * lib/unictype/categ_Cn.c: New file.
2956 * lib/unictype/categ_Co.c: New file.
2957 * lib/unictype/categ_Cs.c: New file.
2958 * lib/unictype/categ_L.c: New file.
2959 * lib/unictype/categ_Ll.c: New file.
2960 * lib/unictype/categ_Lm.c: New file.
2961 * lib/unictype/categ_Lo.c: New file.
2962 * lib/unictype/categ_Lt.c: New file.
2963 * lib/unictype/categ_Lu.c: New file.
2964 * lib/unictype/categ_M.c: New file.
2965 * lib/unictype/categ_Mc.c: New file.
2966 * lib/unictype/categ_Me.c: New file.
2967 * lib/unictype/categ_Mn.c: New file.
2968 * lib/unictype/categ_N.c: New file.
2969 * lib/unictype/categ_Nd.c: New file.
2970 * lib/unictype/categ_Nl.c: New file.
2971 * lib/unictype/categ_No.c: New file.
2972 * lib/unictype/categ_P.c: New file.
2973 * lib/unictype/categ_Pc.c: New file.
2974 * lib/unictype/categ_Pd.c: New file.
2975 * lib/unictype/categ_Pe.c: New file.
2976 * lib/unictype/categ_Pf.c: New file.
2977 * lib/unictype/categ_Pi.c: New file.
2978 * lib/unictype/categ_Po.c: New file.
2979 * lib/unictype/categ_Ps.c: New file.
2980 * lib/unictype/categ_S.c: New file.
2981 * lib/unictype/categ_Sc.c: New file.
2982 * lib/unictype/categ_Sk.c: New file.
2983 * lib/unictype/categ_Sm.c: New file.
2984 * lib/unictype/categ_So.c: New file.
2985 * lib/unictype/categ_Z.c: New file.
2986 * lib/unictype/categ_Zl.c: New file.
2987 * lib/unictype/categ_Zp.c: New file.
2988 * lib/unictype/categ_Zs.c: New file.
2989 * lib/unictype/categ_and.c: New file.
2990 * lib/unictype/categ_and_not.c: New file.
2991 * lib/unictype/categ_byname.c: New file.
2992 * lib/unictype/categ_name.c: New file.
2993 * lib/unictype/categ_none.c: New file.
2994 * lib/unictype/categ_of.c: New file.
2995 * lib/unictype/categ_or.c: New file.
2996 * lib/unictype/categ_test.c: New file.
2997 * lib/unictype/combining.c: New file.
2998 * lib/unictype/ctype_alnum.c: New file.
2999 * lib/unictype/ctype_alpha.c: New file.
3000 * lib/unictype/ctype_blank.c: New file.
3001 * lib/unictype/ctype_cntrl.c: New file.
3002 * lib/unictype/ctype_digit.c: New file.
3003 * lib/unictype/ctype_graph.c: New file.
3004 * lib/unictype/ctype_lower.c: New file.
3005 * lib/unictype/ctype_print.c: New file.
3006 * lib/unictype/ctype_punct.c: New file.
3007 * lib/unictype/ctype_space.c: New file.
3008 * lib/unictype/ctype_upper.c: New file.
3009 * lib/unictype/ctype_xdigit.c: New file.
3010 * lib/unictype/decdigit.c: New file.
3011 * lib/unictype/digit.c: New file.
3012 * lib/unictype/identsyntaxmap.h: New file.
3013 * lib/unictype/mirror.c: New file.
3014 * lib/unictype/numeric.c: New file.
3015 * lib/unictype/pr_alphabetic.c: New file.
3016 * lib/unictype/pr_ascii_hex_digit.c: New file.
3017 * lib/unictype/pr_bidi_arabic_digit.c: New file.
3018 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
3019 * lib/unictype/pr_bidi_block_separator.c: New file.
3020 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
3021 * lib/unictype/pr_bidi_common_separator.c: New file.
3022 * lib/unictype/pr_bidi_control.c: New file.
3023 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
3024 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
3025 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
3026 * lib/unictype/pr_bidi_european_digit.c: New file.
3027 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
3028 * lib/unictype/pr_bidi_left_to_right.c: New file.
3029 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
3030 * lib/unictype/pr_bidi_other_neutral.c: New file.
3031 * lib/unictype/pr_bidi_pdf.c: New file.
3032 * lib/unictype/pr_bidi_segment_separator.c: New file.
3033 * lib/unictype/pr_bidi_whitespace.c: New file.
3034 * lib/unictype/pr_byname.c: New file.
3035 * lib/unictype/pr_byname.gperf: New file.
3036 * lib/unictype/pr_combining.c: New file.
3037 * lib/unictype/pr_composite.c: New file.
3038 * lib/unictype/pr_currency_symbol.c: New file.
3039 * lib/unictype/pr_dash.c: New file.
3040 * lib/unictype/pr_decimal_digit.c: New file.
3041 * lib/unictype/pr_default_ignorable_code_point.c: New file.
3042 * lib/unictype/pr_deprecated.c: New file.
3043 * lib/unictype/pr_diacritic.c: New file.
3044 * lib/unictype/pr_extender.c: New file.
3045 * lib/unictype/pr_format_control.c: New file.
3046 * lib/unictype/pr_grapheme_base.c: New file.
3047 * lib/unictype/pr_grapheme_extend.c: New file.
3048 * lib/unictype/pr_grapheme_link.c: New file.
3049 * lib/unictype/pr_hex_digit.c: New file.
3050 * lib/unictype/pr_hyphen.c: New file.
3051 * lib/unictype/pr_id_continue.c: New file.
3052 * lib/unictype/pr_id_start.c: New file.
3053 * lib/unictype/pr_ideographic.c: New file.
3054 * lib/unictype/pr_ids_binary_operator.c: New file.
3055 * lib/unictype/pr_ids_trinary_operator.c: New file.
3056 * lib/unictype/pr_ignorable_control.c: New file.
3057 * lib/unictype/pr_iso_control.c: New file.
3058 * lib/unictype/pr_join_control.c: New file.
3059 * lib/unictype/pr_left_of_pair.c: New file.
3060 * lib/unictype/pr_line_separator.c: New file.
3061 * lib/unictype/pr_logical_order_exception.c: New file.
3062 * lib/unictype/pr_lowercase.c: New file.
3063 * lib/unictype/pr_math.c: New file.
3064 * lib/unictype/pr_non_break.c: New file.
3065 * lib/unictype/pr_not_a_character.c: New file.
3066 * lib/unictype/pr_numeric.c: New file.
3067 * lib/unictype/pr_other_alphabetic.c: New file.
3068 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
3069 * lib/unictype/pr_other_grapheme_extend.c: New file.
3070 * lib/unictype/pr_other_id_continue.c: New file.
3071 * lib/unictype/pr_other_id_start.c: New file.
3072 * lib/unictype/pr_other_lowercase.c: New file.
3073 * lib/unictype/pr_other_math.c: New file.
3074 * lib/unictype/pr_other_uppercase.c: New file.
3075 * lib/unictype/pr_paired_punctuation.c: New file.
3076 * lib/unictype/pr_paragraph_separator.c: New file.
3077 * lib/unictype/pr_pattern_syntax.c: New file.
3078 * lib/unictype/pr_pattern_white_space.c: New file.
3079 * lib/unictype/pr_private_use.c: New file.
3080 * lib/unictype/pr_punctuation.c: New file.
3081 * lib/unictype/pr_quotation_mark.c: New file.
3082 * lib/unictype/pr_radical.c: New file.
3083 * lib/unictype/pr_sentence_terminal.c: New file.
3084 * lib/unictype/pr_soft_dotted.c: New file.
3085 * lib/unictype/pr_space.c: New file.
3086 * lib/unictype/pr_terminal_punctuation.c: New file.
3087 * lib/unictype/pr_test.c: New file.
3088 * lib/unictype/pr_titlecase.c: New file.
3089 * lib/unictype/pr_unassigned_code_value.c: New file.
3090 * lib/unictype/pr_unified_ideograph.c: New file.
3091 * lib/unictype/pr_uppercase.c: New file.
3092 * lib/unictype/pr_variation_selector.c: New file.
3093 * lib/unictype/pr_white_space.c: New file.
3094 * lib/unictype/pr_xid_continue.c: New file.
3095 * lib/unictype/pr_xid_start.c: New file.
3096 * lib/unictype/pr_zero_width.c: New file.
3097 * lib/unictype/scripts.c: New file.
3098 * lib/unictype/sy_c_ident.c: New file.
3099 * lib/unictype/sy_c_whitespace.c: New file.
3100 * lib/unictype/sy_java_ident.c: New file.
3101 * lib/unictype/sy_java_whitespace.c: New file.
3103 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
3105 * lib/unictype/blocks.h: Likewise.
3106 * lib/unictype/categ_C.h: Likewise.
3107 * lib/unictype/categ_Cc.h: Likewise.
3108 * lib/unictype/categ_Cf.h: Likewise.
3109 * lib/unictype/categ_Cn.h: Likewise.
3110 * lib/unictype/categ_Co.h: Likewise.
3111 * lib/unictype/categ_Cs.h: Likewise.
3112 * lib/unictype/categ_L.h: Likewise.
3113 * lib/unictype/categ_Ll.h: Likewise.
3114 * lib/unictype/categ_Lm.h: Likewise.
3115 * lib/unictype/categ_Lo.h: Likewise.
3116 * lib/unictype/categ_Lt.h: Likewise.
3117 * lib/unictype/categ_Lu.h: Likewise.
3118 * lib/unictype/categ_M.h: Likewise.
3119 * lib/unictype/categ_Mc.h: Likewise.
3120 * lib/unictype/categ_Me.h: Likewise.
3121 * lib/unictype/categ_Mn.h: Likewise.
3122 * lib/unictype/categ_N.h: Likewise.
3123 * lib/unictype/categ_Nd.h: Likewise.
3124 * lib/unictype/categ_Nl.h: Likewise.
3125 * lib/unictype/categ_No.h: Likewise.
3126 * lib/unictype/categ_P.h: Likewise.
3127 * lib/unictype/categ_Pc.h: Likewise.
3128 * lib/unictype/categ_Pd.h: Likewise.
3129 * lib/unictype/categ_Pe.h: Likewise.
3130 * lib/unictype/categ_Pf.h: Likewise.
3131 * lib/unictype/categ_Pi.h: Likewise.
3132 * lib/unictype/categ_Po.h: Likewise.
3133 * lib/unictype/categ_Ps.h: Likewise.
3134 * lib/unictype/categ_S.h: Likewise.
3135 * lib/unictype/categ_Sc.h: Likewise.
3136 * lib/unictype/categ_Sk.h: Likewise.
3137 * lib/unictype/categ_Sm.h: Likewise.
3138 * lib/unictype/categ_So.h: Likewise.
3139 * lib/unictype/categ_Z.h: Likewise.
3140 * lib/unictype/categ_Zl.h: Likewise.
3141 * lib/unictype/categ_Zp.h: Likewise.
3142 * lib/unictype/categ_Zs.h: Likewise.
3143 * lib/unictype/categ_of.h: Likewise.
3144 * lib/unictype/combining.h: Likewise.
3145 * lib/unictype/ctype_alnum.h: Likewise.
3146 * lib/unictype/ctype_alpha.h: Likewise.
3147 * lib/unictype/ctype_blank.h: Likewise.
3148 * lib/unictype/ctype_cntrl.h: Likewise.
3149 * lib/unictype/ctype_digit.h: Likewise.
3150 * lib/unictype/ctype_graph.h: Likewise.
3151 * lib/unictype/ctype_lower.h: Likewise.
3152 * lib/unictype/ctype_print.h: Likewise.
3153 * lib/unictype/ctype_punct.h: Likewise.
3154 * lib/unictype/ctype_space.h: Likewise.
3155 * lib/unictype/ctype_upper.h: Likewise.
3156 * lib/unictype/ctype_xdigit.h: Likewise.
3157 * lib/unictype/decdigit.h: Likewise.
3158 * lib/unictype/digit.h: Likewise.
3159 * lib/unictype/mirror.h: Likewise.
3160 * lib/unictype/numeric.h: Likewise.
3161 * lib/unictype/pr_alphabetic.h: Likewise.
3162 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3163 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3164 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3165 * lib/unictype/pr_bidi_block_separator.h: Likewise.
3166 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3167 * lib/unictype/pr_bidi_common_separator.h: Likewise.
3168 * lib/unictype/pr_bidi_control.h: Likewise.
3169 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3170 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3171 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3172 * lib/unictype/pr_bidi_european_digit.h: Likewise.
3173 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3174 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3175 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3176 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3177 * lib/unictype/pr_bidi_pdf.h: Likewise.
3178 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3179 * lib/unictype/pr_bidi_whitespace.h: Likewise.
3180 * lib/unictype/pr_combining.h: Likewise.
3181 * lib/unictype/pr_composite.h: Likewise.
3182 * lib/unictype/pr_currency_symbol.h: Likewise.
3183 * lib/unictype/pr_dash.h: Likewise.
3184 * lib/unictype/pr_decimal_digit.h: Likewise.
3185 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3186 * lib/unictype/pr_deprecated.h: Likewise.
3187 * lib/unictype/pr_diacritic.h: Likewise.
3188 * lib/unictype/pr_extender.h: Likewise.
3189 * lib/unictype/pr_format_control.h: Likewise.
3190 * lib/unictype/pr_grapheme_base.h: Likewise.
3191 * lib/unictype/pr_grapheme_extend.h: Likewise.
3192 * lib/unictype/pr_grapheme_link.h: Likewise.
3193 * lib/unictype/pr_hex_digit.h: Likewise.
3194 * lib/unictype/pr_hyphen.h: Likewise.
3195 * lib/unictype/pr_id_continue.h: Likewise.
3196 * lib/unictype/pr_id_start.h: Likewise.
3197 * lib/unictype/pr_ideographic.h: Likewise.
3198 * lib/unictype/pr_ids_binary_operator.h: Likewise.
3199 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3200 * lib/unictype/pr_ignorable_control.h: Likewise.
3201 * lib/unictype/pr_iso_control.h: Likewise.
3202 * lib/unictype/pr_join_control.h: Likewise.
3203 * lib/unictype/pr_left_of_pair.h: Likewise.
3204 * lib/unictype/pr_line_separator.h: Likewise.
3205 * lib/unictype/pr_logical_order_exception.h: Likewise.
3206 * lib/unictype/pr_lowercase.h: Likewise.
3207 * lib/unictype/pr_math.h: Likewise.
3208 * lib/unictype/pr_non_break.h: Likewise.
3209 * lib/unictype/pr_not_a_character.h: Likewise.
3210 * lib/unictype/pr_numeric.h: Likewise.
3211 * lib/unictype/pr_other_alphabetic.h: Likewise.
3212 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3213 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3214 * lib/unictype/pr_other_id_continue.h: Likewise.
3215 * lib/unictype/pr_other_id_start.h: Likewise.
3216 * lib/unictype/pr_other_lowercase.h: Likewise.
3217 * lib/unictype/pr_other_math.h: Likewise.
3218 * lib/unictype/pr_other_uppercase.h: Likewise.
3219 * lib/unictype/pr_paired_punctuation.h: Likewise.
3220 * lib/unictype/pr_paragraph_separator.h: Likewise.
3221 * lib/unictype/pr_pattern_syntax.h: Likewise.
3222 * lib/unictype/pr_pattern_white_space.h: Likewise.
3223 * lib/unictype/pr_private_use.h: Likewise.
3224 * lib/unictype/pr_punctuation.h: Likewise.
3225 * lib/unictype/pr_quotation_mark.h: Likewise.
3226 * lib/unictype/pr_radical.h: Likewise.
3227 * lib/unictype/pr_sentence_terminal.h: Likewise.
3228 * lib/unictype/pr_soft_dotted.h: Likewise.
3229 * lib/unictype/pr_space.h: Likewise.
3230 * lib/unictype/pr_terminal_punctuation.h: Likewise.
3231 * lib/unictype/pr_titlecase.h: Likewise.
3232 * lib/unictype/pr_unassigned_code_value.h: Likewise.
3233 * lib/unictype/pr_unified_ideograph.h: Likewise.
3234 * lib/unictype/pr_uppercase.h: Likewise.
3235 * lib/unictype/pr_variation_selector.h: Likewise.
3236 * lib/unictype/pr_white_space.h: Likewise.
3237 * lib/unictype/pr_xid_continue.h: Likewise.
3238 * lib/unictype/pr_xid_start.h: Likewise.
3239 * lib/unictype/pr_zero_width.h: Likewise.
3240 * lib/unictype/scripts.h: Likewise.
3241 * lib/unictype/scripts_byname.gperf: Likewise.
3242 * lib/unictype/sy_c_ident.h: Likewise.
3243 * lib/unictype/sy_c_whitespace.h: Likewise.
3244 * lib/unictype/sy_java_ident.h: Likewise.
3245 * lib/unictype/sy_java_whitespace.h: Likewise.
3247 * lib/unictype/Makefile: New file.
3248 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
3250 * lib/unictype/3level.h: New file, copied from glibc.
3251 * lib/unictype/3levelbit.h: New file.
3253 2007-11-11 Bruno Haible <bruno@clisp.org>
3255 * modules/gperf: New file.
3256 * modules/iconv_open (Depends-on): Add it.
3257 (Makefile.am): Remove the GPERF definition.
3259 2007-11-11 Bruno Haible <bruno@clisp.org>
3261 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
3262 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
3264 2007-11-11 Bruno Haible <bruno@clisp.org>
3266 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
3267 (usage): Remove function.
3269 2007-11-11 Bruno Haible <bruno@clisp.org>
3271 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
3273 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
3275 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
3277 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
3278 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
3279 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
3281 2007-11-11 Bruno Haible <bruno@clisp.org>
3283 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
3284 roundf were declared but do not exist on functions.
3285 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
3286 roundl were declared but do not exist on functions.
3287 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
3288 HAVE_FLOORL_AND_CEILL, respectively.
3289 Needed for Sun C on Solaris 10.
3291 2007-11-11 Bruno Haible <bruno@clisp.org>
3293 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
3294 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
3295 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
3296 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
3297 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
3298 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
3299 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
3301 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
3302 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
3303 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
3304 of HAVE_DECL_ROUND*.
3305 * modules/math (Makefile.am): Update.
3307 2007-11-10 Bruno Haible <bruno@clisp.org>
3309 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
3310 ptrdiff_t as m4/intl.m4.
3312 2007-11-10 Jim Meyering <meyering@redhat.com>
3314 Avoid link failure for the argmatch test.
3315 * tests/test-argmatch.c (usage): Define function to avoid a link
3316 failure: argmatch_die requires a usage function.
3318 2007-11-09 Bruno Haible <bruno@clisp.org>
3320 * doc/functions/snprintf.texi: Mention BeOS deficiency.
3321 * doc/functions/vsnprintf.texi: Likewise.
3322 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
3323 with a size argument < 2.
3325 2007-11-09 Bruno Haible <bruno@clisp.org>
3327 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
3328 buffer. Fixes an inefficiency introduced on 2007-11-03.
3330 2007-11-09 Bruno Haible <bruno@clisp.org>
3332 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
3333 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
3335 2007-11-08 Jim Meyering <meyering@redhat.com>
3337 Change cache variable name prefix "jm_" to "gl_" everywhere.
3338 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
3339 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
3340 * m4/uptime.m4: s/gl_/jm_/
3342 2007-11-07 Bruno Haible <bruno@clisp.org>
3344 Update to GNU gettext 0.17.
3345 * m4/intl.m4: Update to GNU gettext 0.17.
3346 * m4/po.m4: Likewise.
3347 * modules/gettext (Files): Remove m4/ulonglong.m4.
3348 (configure.ac): Require gettext infrastructure from version 0.17.
3350 2007-11-06 Bruno Haible <bruno@clisp.org>
3352 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
3353 symbolic values are not defined in a public header.
3354 * lib/freadable.c (freadable) [QNX]: Likewise.
3355 * lib/freadahead.c (freadahead) [QNX]: Likewise.
3356 * lib/freading.c (freading) [QNX]: Likewise.
3357 * lib/fseterr.c (fseterr) [QNX]: Likewise.
3358 * lib/fwritable.c (fwritable) [QNX]: Likewise.
3359 * lib/fwriting.c (fwriting) [QNX]: Likewise.
3360 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
3361 Reported by Alain Magloire.
3363 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
3365 2007-11-05 Bruno Haible <bruno@clisp.org>
3367 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
3368 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
3369 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
3370 Reported by Eric Blake.
3372 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3373 Bruno Haible <bruno@clisp.org>
3375 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
3376 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
3377 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
3378 (malloc): Undefine also before including <stdlib.h>.
3379 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
3380 Needed on OSF/1 4.0.
3382 2007-11-05 Jim Meyering <meyering@redhat.com>
3384 git-version-gen: sync from coreutils.
3385 * build-aux/git-version-gen: Add comments.
3386 Change the first '-' to '.' in the snapshot version string,
3387 e.g., 6.9-377-08144 -> 6.9.377-08144
3388 Remove first parameter.
3389 Don't declare a version "-dirty" merely because a time
3392 2007-11-04 Bruno Haible <bruno@clisp.org>
3394 * lib/lock.h: Protect all macro definitions containing an 'if'
3395 statement through a "do { ... } while (0)".
3396 * lib/tls.h: Likewise.
3398 2007-11-04 Bruno Haible <bruno@clisp.org>
3400 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
3402 2007-11-04 Bruno Haible <bruno@clisp.org>
3404 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
3405 * modules/fprintf-posix (Depends-on): Add nocrash.
3406 * modules/snprintf-posix (Depends-on): Likewise.
3407 * modules/sprintf-posix (Depends-on): Likewise.
3408 * modules/vasnprintf-posix (Depends-on): Likewise.
3409 * modules/vasprintf-posix (Depends-on): Likewise.
3410 * modules/vfprintf-posix (Depends-on): Likewise.
3411 * modules/vsnprintf-posix (Depends-on): Likewise.
3412 * modules/vsprintf-posix (Depends-on): Likewise.
3413 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3414 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3415 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3416 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3417 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3418 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3419 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3421 2007-11-04 Bruno Haible <bruno@clisp.org>
3423 * modules/nocrash: New file.
3424 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
3425 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
3427 2007-11-04 Bruno Haible <bruno@clisp.org>
3429 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
3431 * tests/test-vasprintf-posix.c (test_function): Likewise.
3432 * tests/test-snprintf-posix.h (test_function): Likewise.
3433 * tests/test-sprintf-posix.h (test_function): Likewise.
3435 Fix *printf behaviour for large precisions on mingw and BeOS.
3436 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
3437 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
3438 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
3439 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3440 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3441 gl_PRINTF_PRECISION and test its result. Invoke
3442 gl_PREREQ_VASNPRINTF_PRECISION.
3443 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3444 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3445 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3446 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3447 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3448 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3449 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3450 * doc/functions/fprintf.texi: Update.
3451 * doc/functions/printf.texi: Update.
3452 * doc/functions/snprintf.texi: Update.
3453 * doc/functions/sprintf.texi: Update.
3454 * doc/functions/vfprintf.texi: Update.
3455 * doc/functions/vprintf.texi: Update.
3456 * doc/functions/vsnprintf.texi: Update.
3457 * doc/functions/vsprintf.texi: Update.
3459 2007-11-04 Bruno Haible <bruno@clisp.org>
3461 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
3463 2007-11-04 Bruno Haible <bruno@clisp.org>
3465 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
3466 Reported by Sylvain Beucler <beuc@gnu.org>.
3468 2007-11-03 Bruno Haible <bruno@clisp.org>
3470 * tests/test-fprintf-posix2.sh: New file.
3471 * tests/test-fprintf-posix2.c: New file.
3472 * modules/fprintf-posix-tests (Files): Add them.
3473 (TESTS): Add test-fprintf-posix2.sh.
3474 (configure.ac): Check for getrlimit and setrlimit.
3475 (check_PROGRAMS): Add test-fprintf-posix2.
3477 * tests/test-printf-posix2.sh: New file.
3478 * tests/test-printf-posix2.c: New file.
3479 * modules/printf-posix-tests (Files): Add them.
3480 (TESTS): Add test-printf-posix2.sh.
3481 (configure.ac): Check for getrlimit and setrlimit.
3482 (check_PROGRAMS): Add test-printf-posix2.
3484 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
3485 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
3486 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
3487 (decode_double): New function, copied from decode_long_double.
3488 (scale10_round_decimal_decoded): New function, extracted from
3489 scale10_round_decimal_long_double.
3490 (scale10_round_decimal_long_double): Use it.
3491 (scale10_round_decimal_double): New function.
3492 (floorlog10): New function.
3493 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
3494 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
3495 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3496 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3497 gl_PRINTF_ENOMEM and test its result. Invoke
3498 gl_PREREQ_VASNPRINTF_ENOMEM.
3499 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3500 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3501 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3502 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3503 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3504 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3505 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3506 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
3507 * modules/snprintf-posix (Depends-on): Likewise.
3508 * modules/sprintf-posix (Depends-on): Likewise.
3509 * modules/vasnprintf-posix (Depends-on): Likewise.
3510 * modules/vasprintf-posix (Depends-on): Likewise.
3511 * modules/vfprintf-posix (Depends-on): Likewise.
3512 * modules/vsnprintf-posix (Depends-on): Likewise.
3513 * modules/vsprintf-posix (Depends-on): Likewise.
3514 * doc/functions/fprintf.texi: Update.
3515 * doc/functions/printf.texi: Update.
3516 * doc/functions/snprintf.texi: Update.
3517 * doc/functions/sprintf.texi: Update.
3518 * doc/functions/vfprintf.texi: Update.
3519 * doc/functions/vprintf.texi: Update.
3520 * doc/functions/vsnprintf.texi: Update.
3521 * doc/functions/vsprintf.texi: Update.
3523 2007-11-03 Bruno Haible <bruno@clisp.org>
3525 * modules/frexp-nolibm-tests: New file.
3527 * modules/frexp-nolibm: New file.
3528 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
3530 2007-11-03 Bruno Haible <bruno@clisp.org>
3532 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
3533 value is C99 compliant.
3534 Needed for OSF/1 5.1.
3536 2007-11-03 Bruno Haible <bruno@clisp.org>
3538 Fix out-of-memory handling of vasnprintf.
3539 * lib/printf-parse.c: Include <errno.h>.
3540 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
3541 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
3544 2007-11-02 Eric Blake <ebb9@byu.net>
3546 Fix tests on cygwin.
3547 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
3549 2007-11-01 Bruno Haible <bruno@clisp.org>
3551 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
3553 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
3554 needed for POSIX compatibility.
3556 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
3558 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
3559 for compatibility with GNU.
3561 2007-11-01 Bruno Haible <bruno@clisp.org>
3563 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
3564 (putenv): Renamed from rpl_putenv. Change argument type from
3565 'const char *' to 'char *'.
3566 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
3567 of defining putenv in config.h, just set REPLACE_PUTENV.
3568 * modules/putenv (Depends-on): Add stdlib.
3569 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3570 (Include): Use <stdlib.h>.
3571 * lib/stdlib.in.h (putenv): New declaration.
3572 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
3574 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
3576 Needed for MacOS X 10.5.0.
3577 Reported by Peter O'Gorman <peter@pogma.com>.
3579 2007-11-01 Jim Meyering <meyering@redhat.com>
3581 Treat an empty date string exactly like "0".
3582 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
3583 if the remaining date string (to be parsed) is empty, use "0".
3584 Reported by Mischa Molhoek and discussed in this thread:
3585 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
3587 2007-10-31 Bruno Haible <bruno@clisp.org>
3589 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
3590 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
3591 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
3592 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
3593 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
3594 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
3596 2007-10-31 Bruno Haible <bruno@clisp.org>
3598 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
3599 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
3600 (AC_TYPE_LONG_LONG_INT): Use it.
3601 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
3603 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
3605 * modules/stdint (Files): Remove m4/ulonglong.m4.
3606 * modules/strtoull (Files): Use m4/longlong.m4 instead of
3608 * modules/strtoumax (Files): Likewise.
3610 2007-10-30 Bruno Haible <bruno@clisp.org>
3612 * modules/xvasprintf-posix: New file.
3613 Suggested by Eric Blake.
3615 2007-10-30 Bruno Haible <bruno@clisp.org>
3617 * modules/xprintf-posix-tests: New file.
3618 * tests/test-xprintf-posix.sh: New file.
3619 * tests/test-xprintf-posix.c: New file.
3620 * tests/test-xfprintf-posix.c: New file.
3622 * modules/xprintf-posix: New file.
3624 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3626 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
3627 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
3628 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
3630 2007-10-29 Bruno Haible <bruno@clisp.org>
3632 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
3633 contain the special marker '_cv_'.
3634 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3635 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3636 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3637 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
3638 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3639 Reported by Ralf Wildenhues.
3641 2007-10-29 Bruno Haible <bruno@clisp.org>
3643 * gnulib-tool (func_import): When --lgpl is not specified, set
3644 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
3646 Reported by Simon Josefsson.
3648 2007-10-28 Bruno Haible <bruno@clisp.org>
3650 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
3651 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
3653 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
3654 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
3657 2007-10-28 Bruno Haible <bruno@clisp.org>
3659 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
3660 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
3662 2007-10-28 Bruno Haible <bruno@clisp.org>
3664 Fix link errors with Sun C 5.0 on Solaris 10.
3665 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
3666 function is declared but not present in the compiler's libm.
3667 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3668 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3669 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
3670 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
3671 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
3672 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
3673 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
3674 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
3675 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
3676 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
3677 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
3680 2007-10-28 Bruno Haible <bruno@clisp.org>
3682 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
3683 gl_FUNC_FLOORL. Cache the result.
3684 (gl_FUNC_FLOORL): Use it.
3685 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
3686 gl_FUNC_CEILL. Cache the result.
3687 (gl_FUNC_CEILL): Use it.
3689 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
3690 gl_FUNC_FLOOR. Cache the result.
3691 (gl_FUNC_FLOOR): Use it.
3692 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
3693 gl_FUNC_CEIL. Cache the result.
3694 (gl_FUNC_CEIL): Use it.
3696 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
3697 gl_FUNC_FLOORF. Cache the result.
3698 (gl_FUNC_FLOORF): Use it.
3699 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
3700 gl_FUNC_CEILF. Cache the result.
3701 (gl_FUNC_CEILF): Use it.
3703 2007-10-28 Bruno Haible <bruno@clisp.org>
3705 * gnulib-tool: Allow specifying the LGPL version number through
3706 --lgpl=2 or --lgpl=3.
3707 (func_usage): Document --lgpl with argument.
3708 Handle --lgpl=... arguments.
3709 (func_import): Recognize also gl_LGPL calls with an argument. When
3710 --lgpl=2 is used and the module's license is just LGPL, report an
3711 error. Set sed_transform_lib_file according to the lgpl variable. In
3712 the generated files, use --lgpl or gl_LGPL invocations with argument,
3714 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
3716 * doc/gnulib-tool.texi (Modified imports): Update explanation of
3719 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3720 Bruno Haible <bruno@clisp.org>
3722 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
3723 (u16_uctomb_aux): Likewise.
3724 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
3726 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
3728 2007-10-28 Bruno Haible <bruno@clisp.org>
3730 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
3731 Invoke AM_GETTEXT_OPTION if it exists.
3732 * modules/vasprintf: Likewise.
3733 * modules/verror: Likewise.
3734 * modules/xprintf: Likewise.
3735 * modules/xvasprintf: Likewise.
3737 2007-10-27 Ben Pfaff <blp@gnu.org>
3739 * lib/math.in.h: Define isfinite macro and prototypes for
3740 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
3742 * m4/math_h.m4: New substitutions for isfinite module.
3743 * lib/isfinite.c: New file.
3744 * m4/isfinite.m4: New file.
3745 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
3746 * modules/isfinite: New file.
3747 * modules/isfinite-tests: New file.
3748 * tests/tests-isfinite.c: New file.
3749 * doc/functions/isfinite.texi: Mention isfinite module.
3750 * MODULES.html.sh: Mention new module.
3752 2007-10-27 Ben Pfaff <blp@gnu.org>
3754 Ralf Wildenhues reported that Tru64 4.0D declares the round
3755 functions but does not have definitions.
3756 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
3757 cannot be found in any library, set the output variable to
3758 "missing" instead of "".
3759 * m4/round.m4: Also use our substitute if we cannot find round in
3760 any library, even if it is declared.
3761 * m4/roundf.m4: Likewise for roundf.
3762 * m4/roundl.m4: Likewise for roundl.
3763 * lib/math.in.h: Undefine roundf, round, roundl before defining
3764 their replacements, to allow for hypothetical systems where these
3765 may be defined as macros but not available in libraries.
3767 2007-10-27 Bruno Haible <bruno@clisp.org>
3769 * doc/gnulib.texi: Invoke @firstparagraphindent.
3770 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
3772 (Source changes): New section.
3774 2007-10-26 Bruno Haible <bruno@clisp.org>
3776 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
3777 borrowed from autoconf.
3779 2007-10-26 Bruno Haible <bruno@clisp.org>
3781 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
3782 strerror returned the empty string. Needed on HP-UX 11.00.
3784 2007-10-24 Micah Cowan <micah@cowan.name>
3786 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
3787 * build-aux/bootstrap: Remove support for now-unnecessary option,
3788 --cvs-user, and envvars CVS_USER, CVS_RSH.
3790 2007-10-24 Jim Meyering <meyering@redhat.com>
3792 Avoid diagnostics from sha1sum when there is no cached checksum.
3793 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
3794 if the po.s1 file hasn't been created yet.
3796 * build-aux/bootstrap: Sync from coreutils:
3797 2007-10-24 Jim Meyering <meyering@redhat.com>
3798 Get gnulib from the git repository, not from an obsolete cvs one.
3799 * build-aux/bootstrap: Suggestion from Micah Cowan.
3800 2007-10-04 Jim Meyering <jim@meyering.net>
3801 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
3802 (update_po_files): Work also when there are no .po files in po/.
3804 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
3806 * README: Append ".git" to git and cg examples.
3807 Problem reported by Benoit Sigoure.
3809 2007-10-23 Micah Cowan <micah@cowan.name>
3811 * users.txt: Add wget.
3813 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3815 Fix linking of some unistdio tests on FreeBSD.
3816 * modules/unistdio/u16-vsnprintf-tests
3817 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
3818 * modules/unistdio/u16-vsprintf-tests
3819 (test_u16_vsnprintf1_LDADD): Likewise.
3820 * modules/unistdio/u32-vsnprintf-tests
3821 (test_u32_vsnprintf1_LDADD): Likewise.
3822 * modules/unistdio/u32-vsprintf-tests
3823 (test_u32_vsprintf1_LDADD): Likewise.
3824 * modules/unistdio/u8-vsnprintf-tests
3825 (test_u8_vsnprintf1_LDADD): Likewise.
3826 * modules/unistdio/u8-vsprintf-tests
3827 (test_u8_vsprintf1_LDADD): Likewise.
3828 * modules/unistdio/ulc-vsnprintf-tests
3829 (test_ulc_vsnprintf1_LDADD): Likewise.
3830 * modules/unistdio/ulc-vsprintf-tests
3831 (test_ulc_vsprintf1_LDADD): Likewise.
3833 Fix linking of some uniconv tests on FreeBSD.
3834 * modules/uniconv/u16-conv-from-enc-tests
3835 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
3836 * modules/uniconv/u16-conv-to-enc-tests
3837 (test_u16_conv_to_enc_LDADD): Likewise.
3838 * modules/uniconv/u16-strconv-from-enc-tests
3839 (test_u16_strconv_from_enc_LDADD): Likewise.
3840 * modules/uniconv/u16-strconv-to-enc-tests
3841 (test_u16_strconv_to_enc_LDADD): Likewise.
3842 * modules/uniconv/u32-conv-from-enc-tests
3843 (test_u32_conv_from_enc_LDADD): Likewise.
3844 * modules/uniconv/u32-conv-to-enc-tests
3845 (test_u32_conv_to_enc_LDADD): Likewise.
3846 * modules/uniconv/u32-strconv-from-enc-tests
3847 (test_u32_strconv_from_enc_LDADD): Likewise.
3848 * modules/uniconv/u32-strconv-to-enc-tests
3849 (test_u32_strconv_to_enc_LDADD): Likewise.
3850 * modules/uniconv/u8-conv-from-enc-tests
3851 (test_u8_conv_from_enc_LDADD): Likewise.
3852 * modules/uniconv/u8-conv-to-enc-tests
3853 (test_u8_conv_to_enc_LDADD): Likewise.
3854 * modules/uniconv/u8-strconv-from-enc-tests
3855 (test_u8_strconv_from_enc_LDADD): Likewise.
3856 * modules/uniconv/u8-strconv-to-enc-tests
3857 (test_u8_strconv_to_enc_LDADD): Likewise.
3859 2007-10-22 Bruno Haible <bruno@clisp.org>
3861 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
3864 2007-10-22 Eric Blake <ebb9@byu.net>
3866 Tweak x*printf documentation.
3867 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
3868 variable name and comments.
3869 Suggested by Bruno Haible.
3871 2007-10-22 Bruno Haible <bruno@clisp.org>
3873 * lib/acl.c (copy_acl): Fix file name in comment.
3875 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
3877 Fix Tru64 problem with stdbool.h.
3878 * lib/stdbool.in.h (false, true):
3879 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
3880 Don't declare as an enum in this situation; it runs afoul of Tru64.
3881 Problem reported by Steven M. Schweda in
3882 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
3884 2007-10-22 Eric Blake <ebb9@byu.net>
3886 Also wrap vf?printf.
3887 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
3888 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
3889 (xvprintf, xvfprintf): New functions.
3891 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3893 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
3894 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
3896 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
3897 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
3899 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
3901 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
3904 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3907 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
3908 Undef `sys' after including sys/table.h, for Tru64 4.0D.
3910 * tests/test-i-ring.c: Work for C89.
3912 2007-10-22 Bruno Haible <bruno@clisp.org>
3914 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
3915 -1u, in preprocessor expression, so that we don't test for the bug
3916 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
3917 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
3919 2007-10-22 Eric Blake <ebb9@byu.net>
3921 * tests/test-yesno.sh: Silence stderr during test.
3923 2007-10-22 Simon Josefsson <simon@josefsson.org>
3925 * modules/crypto/gc-camellia: New file.
3927 * m4/gc-camellia.m4: New file.
3929 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
3931 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
3933 2007-10-22 Simon Josefsson <simon@josefsson.org>
3935 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
3936 --help to stdout. Reported by sms@antinode.org (Steven
3939 2007-10-22 Simon Josefsson <simon@josefsson.org>
3941 * users.txt: Fix link to libksba.
3943 2007-10-21 Ben Pfaff <blp@gnu.org>
3945 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
3946 round.c roundf implementation that depends on floorf and ceilf to
3947 be tested unconditionally.
3949 2007-10-21 Ben Pfaff <blp@gnu.org>
3951 * m4/check-libm-func.m4: Removed.
3952 * m4/check-math-lib.m4: New file.
3953 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
3954 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
3955 definition and lack of AC_LIBOBJ([roundf]).
3956 * m4/roundl.m4: Ditto, and similarly for roundl.
3957 * modules/round: Reference new m4 file.
3958 * modules/roundf: Ditto.
3959 * modules/roundl: Ditto.
3960 * tests/test-round2.c (main): Use ROUND instead of round.
3961 Bug report from Bruno Haible.
3963 2007-10-21 Bruno Haible <bruno@clisp.org>
3965 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
3968 2007-10-21 Bruno Haible <bruno@clisp.org>
3970 * tests/test-wcwidth.c (main): Allow negative result for some control
3973 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
3974 Needed on OSF/1 5.1.
3976 2007-10-21 Bruno Haible <bruno@clisp.org>
3978 * tests/test-floorf1.c: Include isnanf.h.
3979 (main): Use isnanf() instead of isnan().
3980 * tests/test-ceilf1.c: Include isnanf.h.
3981 (main): Use isnanf() instead of isnan().
3982 * tests/test-truncf1.c: Include isnanf.h.
3983 (main): Use isnanf() instead of isnan().
3984 * tests/test-roundf1.c: Include isnanf.h.
3985 (main): Use isnanf() instead of isnan().
3987 2007-10-21 Eric Blake <ebb9@byu.net>
3989 * users.txt: Update URL for m4.
3991 2007-10-21 Bruno Haible <bruno@clisp.org>
3993 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
3995 2007-10-21 Bruno Haible <bruno@clisp.org>
3997 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
3998 Git's management files if the CVS files are not present.
4000 2007-10-20 Bruno Haible <bruno@clisp.org>
4002 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
4005 2007-10-20 Ben Pfaff <blp@gnu.org>
4007 * lib/math.in.h: Declare round, roundf, roundl if we are providing
4009 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
4010 * lib/round.c: New file.
4011 * lib/roundf.c: New file.
4012 * lib/roundl.c: New file.
4013 * m4/round.m4: New file.
4014 * m4/roundf.m4: New file.
4015 * m4/roundl.m4: New file.
4016 * m4/check-libm-func-m4: New file.
4017 * modules/math: Replace round, roundf, roundl related @VARS@ in
4019 * modules/round: New file.
4020 * modules/round-tests: New file.
4021 * modules/roundf: New file.
4022 * modules/roundf-tests: New file.
4023 * modules/roundl: New file.
4024 * modules/roundl-tests: New file.
4025 * tests/test-round1.c: New file.
4026 * tests/test-round2.c: New file.
4027 * tests/test-roundf1.c: New file.
4028 * tests/test-roundf2.c: New file.
4029 * tests/test-roundl.c: New file.
4030 * doc/functions/round.texi: Mention round module.
4031 * doc/functions/roundf.texi: Mention roundf module.
4032 * doc/functions/roundl.texi: Mention roundl module.
4033 * MODULES.html.sh: Mention new modules.
4034 Thanks to Bruno Haible for suggestions.
4036 2007-10-20 Jim Meyering <meyering@redhat.com>
4038 * lib/xprintf.c: Include <config.h> unconditionally.
4040 Change xprintf's license to GPL.
4041 * modules/xprintf (License): s/LGPL/GPL/, since this module
4042 depends on modules (exit and exitfail) which are GPL.
4043 Suggestion from Bruno Haible.
4046 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
4047 Use a clearer diagnostic.
4048 Patch from Bruno Haible.
4050 2007-10-20 Bruno Haible <bruno@clisp.org>
4052 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
4053 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
4054 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4056 2007-10-20 Bruno Haible <bruno@clisp.org>
4058 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
4059 precision in the comparison result > x - 1 or similar.
4060 * tests/test-ceilf2.c (correct_result_p): Likewise.
4061 * tests/test-truncf2.c (correct_result_p): Likewise.
4062 * tests/test-trunc2.c (correct_result_p): Likewise.
4063 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4065 2007-10-20 Bruno Haible <bruno@clisp.org>
4067 * modules/ceil: New file.
4068 * m4/ceil.m4: New file.
4069 * doc/functions/ceil.texi: Mention the 'ceil' module.
4071 2007-10-20 Bruno Haible <bruno@clisp.org>
4073 * modules/floor: New file.
4074 * m4/floor.m4: New file.
4075 * doc/functions/floor.texi: Mention the 'floor' module.
4077 2007-10-20 Bruno Haible <bruno@clisp.org>
4079 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
4081 * modules/floorf-tests (Depends-on): Likewise.
4082 * modules/truncf-tests (Depends-on): Likewise.
4083 * modules/trunc-tests (Depends-on): Likewise.
4084 Reported by Ben Pfaff.
4086 2007-10-19 Jim Meyering <meyering@redhat.com>
4088 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
4089 Don't bother testing specific errno values. Just test ferror.
4092 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
4094 2007-10-19 Bruno Haible <bruno@clisp.org>
4096 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
4098 * modules/javaexec (Makefile.am): Likewise.
4099 * modules/relocatable-prog (Makefile.am): Likewise.
4100 Suggested by Jim Meyering.
4102 2007-10-18 Bruno Haible <bruno@clisp.org>
4104 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
4105 Reported by Jim Meyering.
4107 2007-10-18 Eric Blake <ebb9@byu.net>
4109 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
4111 2007-10-18 Bruno Haible <bruno@clisp.org>
4113 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
4114 the format string into writable memory. Needed in Fortify conditions.
4116 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
4117 Bruno Haible <bruno@clisp.org>
4119 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
4120 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
4121 * modules/trim (Depends-on): Add mbchar.
4122 (configure.ac): Add gl_FUNC_MBRTOWC.
4123 (Makefile.am): Augment lib_SOURCES.
4125 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
4127 Modify glob.c to use fstatat and dirfd, to simplify it.
4128 Suggested by Eric Blake.
4129 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
4130 Don't include <stdbool.h>; not used.
4131 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
4132 (link_exists_p): Simplify implementation, since we can now assume
4134 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
4136 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4138 * gnulib-tool (func_get_dependencies): Fix sed script to
4141 2007-10-17 Bruno Haible <bruno@clisp.org>
4143 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
4144 allow locale names without encoding suffix.
4145 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4146 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4148 2007-10-16 Bruno Haible <bruno@clisp.org>
4150 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
4151 * lib/getgroups.c (getgroups): Likewise.
4152 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
4154 2007-10-16 Bruno Haible <bruno@clisp.org>
4156 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
4157 * modules/malloc-posix (License): Likewise.
4158 * modules/realloc-posix (License): Likewise.
4159 * modules/calloc-posix (License): Likewise.
4160 * modules/intprops (License): Change from GPL to LGPL, with
4161 Paul Eggert's approval.
4163 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
4165 Merge glibc changes into lib/glob.c.
4167 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
4168 2007-10-15 04:59:03 UTC. Here are the changes:
4170 2007-10-14 Ulrich Drepper <drepper@redhat.com>
4172 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
4174 * lib/glob.c: Add some branch prediction throughout.
4176 2007-10-07 Ulrich Drepper <drepper@redhat.com>
4179 * lib/glob.c (glob): Recognize patterns starting \/.
4181 2007-02-14 Jakub Jelinek <jakub@redhat.com>
4184 * lib/glob.c (attribute_hidden): Define if not defined.
4185 (glob): Unescape dirname, filename or username when needed and not
4186 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
4187 is NULL. Handle unescaped [ in pattern without closing ].
4188 Don't pass GLOB_CHECK down to recursive glob for directories.
4189 (__glob_pattern_type): New function.
4190 (__glob_pattern_p): Implement using __glob_pattern_type.
4191 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
4192 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
4193 Remove unreachable code.
4195 2006-09-30 Ulrich Drepper <drepper@redhat.com>
4197 * lib/glob.c (glob_in_dir): Add some comments and asserts to
4198 explain why there are no leaks.
4200 2006-09-25 Jakub Jelinek <jakub@redhat.com>
4203 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
4204 time, rather allocate increasingly bigger arrays of pointers, if
4205 possible with alloca, if too large with malloc.
4207 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
4209 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
4210 Problem reported by H.Merijn Brand in
4211 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
4212 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
4213 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
4215 2007-10-15 Bruno Haible <bruno@clisp.org>
4217 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
4218 with explicit rpl_ prefix.
4219 * lib/fopen.c (fopen): Likewise.
4220 * lib/freopen.c (freopen): Likewise.
4221 * lib/iconv.c (iconv): Likewise.
4222 * lib/iconv_close.c (iconv_close): Likewise.
4224 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4226 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
4228 2007-10-15 Bruno Haible <bruno@clisp.org>
4230 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
4231 <stddef.h> instead of <stdlib.h> since we only need NULL.
4232 Reported by Ben Pfaff <blp@cs.stanford.edu>.
4234 2007-10-15 Bruno Haible <bruno@clisp.org>
4236 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
4237 Replace paragraph talking about LIBOBJS.
4238 Reported by Colin Watson <cjwatson@debian.org>.
4240 2007-10-15 Bruno Haible <bruno@clisp.org>
4242 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
4243 <stdlib.h> before using NULL.
4245 2007-10-15 Simon Josefsson <simon@josefsson.org>
4247 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
4248 Reported by Albert Chin <china@thewrittenword.com>.
4250 2007-10-14 Bruno Haible <bruno@clisp.org>
4252 * modules/iconv_open-utf-tests: New file.
4253 * tests/test-iconv-utf.c: New file.
4255 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
4256 * modules/iconv_open-utf: New file.
4257 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
4258 (iconv, iconv_close): New declarations.
4259 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
4261 (iconv_open): Add special handling of conversion between UTF-8 and
4263 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
4264 * lib/iconv_close.c: New file.
4265 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
4267 (gl_FUNC_ICONV_OPEN): Use it.
4268 (gl_FUNC_ICONV_OPEN_UTF): New macro.
4269 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
4270 and REPLACE_ICONV_UTF.
4271 * modules/iconv_open (Depends-on): Add c-strcase.
4272 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
4274 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
4276 2007-10-13 Albert Chin <china@thewrittenword.com>
4277 Bruno Haible <bruno@clisp.org>
4279 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
4280 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
4282 2007-10-13 Bruno Haible <bruno@clisp.org>
4284 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
4285 defined, use the ISO C99 inline semantics.
4286 * lib/argp.h (ARGP_EI): Likewise.
4288 2007-10-13 Bruno Haible <bruno@clisp.org>
4290 Handle 'inline' change in gcc 4.3.0.
4291 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
4292 argp_fmtstream_write, argp_fmtstream_set_lmargin,
4293 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
4294 argp_fmtstream_point): Disable 'extern' declaration if the function
4295 definition is going to be provided inline.
4296 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
4297 semantics, not the ISO C99 inline semantics.
4298 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
4299 'extern' declaration if the function definition is going to be provided
4301 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
4302 the GNU C inline semantics, not the ISO C99 inline semantics. With
4303 GCC 4.2, avoid a warning.
4305 2007-10-13 Bruno Haible <bruno@clisp.org>
4307 * lib/freading.h (freading): Enable the use of __freading for
4309 * lib/freading.c (freading): Likewise.
4311 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
4313 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
4314 "warning: C99 inline functions are not supported; using GNU89".
4316 2007-10-12 Bruno Haible <bruno@clisp.org>
4318 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
4320 * tests/test-ceilf2.c: New file.
4321 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
4323 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
4324 * modules/ceilf-tests: Update.
4326 2007-10-12 Bruno Haible <bruno@clisp.org>
4328 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
4330 * tests/test-floorf2.c: New file.
4331 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
4333 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
4334 * modules/floorf-tests: Update.
4336 2007-10-12 Bruno Haible <bruno@clisp.org>
4338 * tests/test-trunc2.c: New file.
4339 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
4341 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
4342 * modules/trunc-tests: Update.
4344 2007-10-12 Bruno Haible <bruno@clisp.org>
4346 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
4348 * tests/test-truncf2.c: New file.
4349 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
4351 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
4352 * modules/truncf-tests: Update.
4354 2007-10-11 Eric Blake <ebb9@byu.net>
4356 Don't claim strerror is broken on Interix.
4357 * doc/functions/strerror.texi (strerror): Known broken systems are
4358 now Solaris 8, and not Interix.
4359 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
4360 Interix on cross-compile.
4361 Reported by Martin Koeppe in
4362 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
4364 2007-10-11 Bruno Haible <bruno@clisp.org>
4366 * modules/i-ring-tests: New file.
4367 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
4370 2007-10-11 Bruno Haible <bruno@clisp.org>
4372 * modules/filenamecat-tests: New file.
4373 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
4374 * lib/filenamecat.c: Remove test code.
4376 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
4378 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
4380 * lib/strerror.c: Include <string.h> always, to test interface,
4381 and to remove the need for the dummy.
4382 Include intprops.h to compute width instead of doing it ourselves
4383 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
4384 (strerror): Define it to return NULL if there's no system strerror.
4385 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
4386 Omit !HAVE_STRERROR code. We don't need to worry about supporting
4387 ancient pre-strerror Unix systems well any more. Saying "unknown
4388 system error" is enough.
4389 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
4390 simpler strerror.c implementation.
4391 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
4392 Simplify the tests to reflect the simpler strerror implementation.
4393 * modules/strerror (Depends-on): Add intprops.
4395 2007-10-09 Eric Blake <ebb9@byu.net>
4397 Silence test-fpending.
4398 * modules/fpending-tests (Files): Add wrapper script.
4399 * tests/test-fpending.sh: New file.
4401 2007-10-09 Bruno Haible <bruno@clisp.org>
4403 * MODULES.html.sh (func_module): Don't create a hyperlink for
4404 function names like 'printf_frexp'.
4405 (Misc): Add crc, memxor.
4406 (Characteristics of floating types): New section.
4407 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
4408 isnanf-nolibm, signbit, trunc, truncf, truncl.
4409 (Enhancements for ISO C 99 functions): New subsection Input/output.
4410 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
4411 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
4412 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
4413 (Compatibility checks for POSIX:2001 functions): Add clock-time.
4414 (Enhancements for POSIX:2001 functions): Add chdir-long.
4415 (File system functions): Add areadlink, chdir-safer, read-file.
4417 (File system as inode set): New section.
4418 (Date and time): Add gethrxtime.
4419 (Multithreading): Add openmp.
4420 (Internationalization functions): Add localename.
4421 (Unicode string functions): Add unistr/u*-mbsnlen.
4422 (Support for maintaining and releasing projects): Add git-version-gen.
4423 (Lone files): Remove directories.
4425 2007-10-08 Ben Pfaff <blp@gnu.org>
4427 * lib/xmalloca.h: Fix typo in comment.
4429 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
4431 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
4432 when avoiding problems with integer overflow. Use a portable test
4435 2007-10-08 Simon Josefsson <simon@josefsson.org>
4437 * modules/dummy (License): Change to LGPLv2+.
4438 * modules/float (License): Likewise
4439 * modules/realloc (License): Likewise
4440 * modules/stdlib (License): Likewise
4442 2007-10-07 Bruno Haible <bruno@clisp.org>
4444 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
4445 * floor.c (TWO_MANT_DIG): Likewise.
4446 * ceil.c (TWO_MANT_DIG): Likewise.
4447 Reported by Ben Pfaff.
4449 2007-10-07 Bruno Haible <bruno@clisp.org>
4451 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
4452 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
4453 * lib/frexp.c (FUNC): Likewise.
4454 * lib/printf-frexp.h (printf_frexp): Likewise.
4455 * lib/printf-frexpl.h (printf_frexpl): Likewise.
4456 * lib/printf-frexp.c (FUNC): Likewise.
4457 Suggested by Jim Meyering.
4459 2007-10-07 Jim Meyering <meyering@redhat.com>
4461 Make xnanosleep's integer overflow test more robust.
4462 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
4463 so that gcc-4.3.0 doesn't optimize away this test for overflow.
4465 2007-10-07 Bruno Haible <bruno@clisp.org>
4467 * NEWS: Mention the license change.
4469 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
4470 abbreviations in the modules files.
4472 Change copyright notice from GPLv2+ to GPLv3+.
4473 * README: Change copyright notice.
4474 * MODULES.html.sh: Likewise.
4475 * build-aux/bootstrap.conf: Likewise.
4476 * build-aux/config.libpath: Likewise.
4477 * build-aux/csharpcomp.sh.in: Likewise.
4478 * build-aux/csharpexec.sh.in: Likewise.
4479 * build-aux/install-reloc: Likewise.
4480 * build-aux/javacomp.sh.in: Likewise.
4481 * build-aux/javaexec.sh.in: Likewise.
4482 * build-aux/ldd.sh.in: Likewise.
4483 * build-aux/reloc-ldflags: Likewise.
4484 * build-aux/relocatable.sh.in: Likewise.
4485 * build-aux/x-to-1.in: Likewise.
4486 * check-module: Likewise.
4487 * config/srclistvars.sh: Likewise.
4488 * gnulib-tool: Likewise.
4489 * lib/acl-internal.h: Likewise.
4490 * lib/acl.c: Likewise.
4491 * lib/acl.h: Likewise.
4492 * lib/acl_entries.c: Likewise.
4493 * lib/areadlink-with-size.c: Likewise.
4494 * lib/areadlink.c: Likewise.
4495 * lib/areadlink.h: Likewise.
4496 * lib/argmatch.c: Likewise.
4497 * lib/argmatch.h: Likewise.
4498 * lib/argp-ba.c: Likewise.
4499 * lib/argp-eexst.c: Likewise.
4500 * lib/argp-fmtstream.c: Likewise.
4501 * lib/argp-fmtstream.h: Likewise.
4502 * lib/argp-fs-xinl.c: Likewise.
4503 * lib/argp-help.c: Likewise.
4504 * lib/argp-namefrob.h: Likewise.
4505 * lib/argp-parse.c: Likewise.
4506 * lib/argp-pin.c: Likewise.
4507 * lib/argp-pv.c: Likewise.
4508 * lib/argp-pvh.c: Likewise.
4509 * lib/argp-xinl.c: Likewise.
4510 * lib/argp.h: Likewise.
4511 * lib/at-func.c: Likewise.
4512 * lib/atanl.c: Likewise.
4513 * lib/backupfile.c: Likewise.
4514 * lib/backupfile.h: Likewise.
4515 * lib/basename.c: Likewise.
4516 * lib/binary-io.h: Likewise.
4517 * lib/byteswap.in.h: Likewise.
4518 * lib/c-stack.c: Likewise.
4519 * lib/c-stack.h: Likewise.
4520 * lib/c-strcasestr.c: Likewise.
4521 * lib/c-strcasestr.h: Likewise.
4522 * lib/c-strstr.c: Likewise.
4523 * lib/c-strstr.h: Likewise.
4524 * lib/c-strtod.c: Likewise.
4525 * lib/calloc.c: Likewise.
4526 * lib/canon-host.c: Likewise.
4527 * lib/canon-host.h: Likewise.
4528 * lib/canonicalize-lgpl.c: Likewise.
4529 * lib/canonicalize.c: Likewise.
4530 * lib/canonicalize.h: Likewise.
4531 * lib/ceil.c: Likewise.
4532 * lib/ceilf.c: Likewise.
4533 * lib/ceill.c: Likewise.
4534 * lib/chdir-long.c: Likewise.
4535 * lib/chdir-long.h: Likewise.
4536 * lib/chdir-safer.c: Likewise.
4537 * lib/chdir-safer.h: Likewise.
4538 * lib/chown.c: Likewise.
4539 * lib/classpath.c: Likewise.
4540 * lib/classpath.h: Likewise.
4541 * lib/clean-temp.c: Likewise.
4542 * lib/clean-temp.h: Likewise.
4543 * lib/cloexec.c: Likewise.
4544 * lib/close-stream.c: Likewise.
4545 * lib/closein.c: Likewise.
4546 * lib/closein.h: Likewise.
4547 * lib/closeout.c: Likewise.
4548 * lib/closeout.h: Likewise.
4549 * lib/concat-filename.c: Likewise.
4550 * lib/copy-file.c: Likewise.
4551 * lib/copy-file.h: Likewise.
4552 * lib/count-one-bits.h: Likewise.
4553 * lib/crc.c: Likewise.
4554 * lib/crc.h: Likewise.
4555 * lib/creat-safer.c: Likewise.
4556 * lib/csharpcomp.c: Likewise.
4557 * lib/csharpcomp.h: Likewise.
4558 * lib/csharpexec.c: Likewise.
4559 * lib/csharpexec.h: Likewise.
4560 * lib/cycle-check.c: Likewise.
4561 * lib/cycle-check.h: Likewise.
4562 * lib/diacrit.c: Likewise.
4563 * lib/diacrit.h: Likewise.
4564 * lib/diffseq.h: Likewise.
4565 * lib/dirchownmod.c: Likewise.
4566 * lib/dirent.in.h: Likewise.
4567 * lib/dirfd.c: Likewise.
4568 * lib/dirfd.h: Likewise.
4569 * lib/dirname.c: Likewise.
4570 * lib/dirname.h: Likewise.
4571 * lib/dummy.c: Likewise.
4572 * lib/dup-safer.c: Likewise.
4573 * lib/dup2.c: Likewise.
4574 * lib/eealloc.h: Likewise.
4575 * lib/error.c: Likewise.
4576 * lib/error.h: Likewise.
4577 * lib/euidaccess.c: Likewise.
4578 * lib/exclude.c: Likewise.
4579 * lib/exclude.h: Likewise.
4580 * lib/execute.c: Likewise.
4581 * lib/execute.h: Likewise.
4582 * lib/exitfail.c: Likewise.
4583 * lib/exitfail.h: Likewise.
4584 * lib/expl.c: Likewise.
4585 * lib/fatal-signal.c: Likewise.
4586 * lib/fatal-signal.h: Likewise.
4587 * lib/fbufmode.c: Likewise.
4588 * lib/fbufmode.h: Likewise.
4589 * lib/fchdir.c: Likewise.
4590 * lib/fchmodat.c: Likewise.
4591 * lib/fchownat.c: Likewise.
4592 * lib/fcntl--.h: Likewise.
4593 * lib/fcntl-safer.h: Likewise.
4594 * lib/fcntl.in.h: Likewise.
4595 * lib/fd-safer.c: Likewise.
4596 * lib/fflush.c: Likewise.
4597 * lib/file-has-acl.c: Likewise.
4598 * lib/file-set.c: Likewise.
4599 * lib/file-type.c: Likewise.
4600 * lib/file-type.h: Likewise.
4601 * lib/fileblocks.c: Likewise.
4602 * lib/filemode.c: Likewise.
4603 * lib/filemode.h: Likewise.
4604 * lib/filename.h: Likewise.
4605 * lib/filenamecat.c: Likewise.
4606 * lib/filenamecat.h: Likewise.
4607 * lib/findprog.c: Likewise.
4608 * lib/findprog.h: Likewise.
4609 * lib/float.in.h: Likewise.
4610 * lib/floor.c: Likewise.
4611 * lib/floorf.c: Likewise.
4612 * lib/floorl.c: Likewise.
4613 * lib/fopen-safer.c: Likewise.
4614 * lib/fopen.c: Likewise.
4615 * lib/fpending.c: Likewise.
4616 * lib/fpending.h: Likewise.
4617 * lib/fprintf.c: Likewise.
4618 * lib/fprintftime.h: Likewise.
4619 * lib/fpucw.h: Likewise.
4620 * lib/fpurge.c: Likewise.
4621 * lib/fpurge.h: Likewise.
4622 * lib/freadable.c: Likewise.
4623 * lib/freadable.h: Likewise.
4624 * lib/freadahead.c: Likewise.
4625 * lib/freadahead.h: Likewise.
4626 * lib/freading.c: Likewise.
4627 * lib/freading.h: Likewise.
4628 * lib/free.c: Likewise.
4629 * lib/freopen.c: Likewise.
4630 * lib/frexp.c: Likewise.
4631 * lib/frexpl.c: Likewise.
4632 * lib/fseek.c: Likewise.
4633 * lib/fseterr.c: Likewise.
4634 * lib/fseterr.h: Likewise.
4635 * lib/fstatat.c: Likewise.
4636 * lib/fstrcmp.c: Likewise.
4637 * lib/fstrcmp.h: Likewise.
4638 * lib/fsusage.c: Likewise.
4639 * lib/fsusage.h: Likewise.
4640 * lib/ftell.c: Likewise.
4641 * lib/ftello.c: Likewise.
4642 * lib/fts-cycle.c: Likewise.
4643 * lib/fts.c: Likewise.
4644 * lib/fts_.h: Likewise.
4645 * lib/full-read.c: Likewise.
4646 * lib/full-read.h: Likewise.
4647 * lib/full-write.c: Likewise.
4648 * lib/full-write.h: Likewise.
4649 * lib/fwritable.c: Likewise.
4650 * lib/fwritable.h: Likewise.
4651 * lib/fwriteerror.c: Likewise.
4652 * lib/fwriteerror.h: Likewise.
4653 * lib/fwriting.c: Likewise.
4654 * lib/fwriting.h: Likewise.
4655 * lib/gcd.c: Likewise.
4656 * lib/gcd.h: Likewise.
4657 * lib/getcwd.c: Likewise.
4658 * lib/getdate.h: Likewise.
4659 * lib/getdate.y: Likewise.
4660 * lib/getdomainname.c: Likewise.
4661 * lib/getdomainname.h: Likewise.
4662 * lib/getgroups.c: Likewise.
4663 * lib/gethostname.c: Likewise.
4664 * lib/gethrxtime.c: Likewise.
4665 * lib/gethrxtime.h: Likewise.
4666 * lib/getloadavg.c: Likewise.
4667 * lib/getndelim2.c: Likewise.
4668 * lib/getndelim2.h: Likewise.
4669 * lib/getnline.c: Likewise.
4670 * lib/getnline.h: Likewise.
4671 * lib/getopt.c: Likewise.
4672 * lib/getopt.in.h: Likewise.
4673 * lib/getopt1.c: Likewise.
4674 * lib/getopt_int.h: Likewise.
4675 * lib/getpagesize.h: Likewise.
4676 * lib/getsubopt.c: Likewise.
4677 * lib/gettime.c: Likewise.
4678 * lib/getugroups.c: Likewise.
4679 * lib/getugroups.h: Likewise.
4680 * lib/getusershell.c: Likewise.
4681 * lib/gl_anyavltree_list1.h: Likewise.
4682 * lib/gl_anyavltree_list2.h: Likewise.
4683 * lib/gl_anyhash_list1.h: Likewise.
4684 * lib/gl_anyhash_list2.h: Likewise.
4685 * lib/gl_anylinked_list1.h: Likewise.
4686 * lib/gl_anylinked_list2.h: Likewise.
4687 * lib/gl_anyrbtree_list1.h: Likewise.
4688 * lib/gl_anyrbtree_list2.h: Likewise.
4689 * lib/gl_anytree_list1.h: Likewise.
4690 * lib/gl_anytree_list2.h: Likewise.
4691 * lib/gl_anytree_oset.h: Likewise.
4692 * lib/gl_anytreehash_list1.h: Likewise.
4693 * lib/gl_anytreehash_list2.h: Likewise.
4694 * lib/gl_array_list.c: Likewise.
4695 * lib/gl_array_list.h: Likewise.
4696 * lib/gl_array_oset.c: Likewise.
4697 * lib/gl_array_oset.h: Likewise.
4698 * lib/gl_avltree_list.c: Likewise.
4699 * lib/gl_avltree_list.h: Likewise.
4700 * lib/gl_avltree_oset.c: Likewise.
4701 * lib/gl_avltree_oset.h: Likewise.
4702 * lib/gl_avltreehash_list.c: Likewise.
4703 * lib/gl_avltreehash_list.h: Likewise.
4704 * lib/gl_carray_list.c: Likewise.
4705 * lib/gl_carray_list.h: Likewise.
4706 * lib/gl_linked_list.c: Likewise.
4707 * lib/gl_linked_list.h: Likewise.
4708 * lib/gl_linkedhash_list.c: Likewise.
4709 * lib/gl_linkedhash_list.h: Likewise.
4710 * lib/gl_list.c: Likewise.
4711 * lib/gl_list.h: Likewise.
4712 * lib/gl_oset.c: Likewise.
4713 * lib/gl_oset.h: Likewise.
4714 * lib/gl_rbtree_list.c: Likewise.
4715 * lib/gl_rbtree_list.h: Likewise.
4716 * lib/gl_rbtree_oset.c: Likewise.
4717 * lib/gl_rbtree_oset.h: Likewise.
4718 * lib/gl_rbtreehash_list.c: Likewise.
4719 * lib/gl_rbtreehash_list.h: Likewise.
4720 * lib/gl_sublist.c: Likewise.
4721 * lib/gl_sublist.h: Likewise.
4722 * lib/group-member.c: Likewise.
4723 * lib/group-member.h: Likewise.
4724 * lib/hard-locale.c: Likewise.
4725 * lib/hard-locale.h: Likewise.
4726 * lib/hash-pjw.c: Likewise.
4727 * lib/hash-pjw.h: Likewise.
4728 * lib/hash-triple.c: Likewise.
4729 * lib/hash.c: Likewise.
4730 * lib/hash.h: Likewise.
4731 * lib/human.c: Likewise.
4732 * lib/human.h: Likewise.
4733 * lib/i-ring.c: Likewise.
4734 * lib/i-ring.h: Likewise.
4735 * lib/idcache.c: Likewise.
4736 * lib/imaxabs.c: Likewise.
4737 * lib/imaxdiv.c: Likewise.
4738 * lib/inet_pton.c: Likewise.
4739 * lib/inet_pton.h: Likewise.
4740 * lib/intprops.h: Likewise.
4741 * lib/inttostr.c: Likewise.
4742 * lib/inttostr.h: Likewise.
4743 * lib/inttypes.in.h: Likewise.
4744 * lib/isapipe.c: Likewise.
4745 * lib/isdir.c: Likewise.
4746 * lib/isnan.c: Likewise.
4747 * lib/isnan.h: Likewise.
4748 * lib/isnanf.c: Likewise.
4749 * lib/isnanf.h: Likewise.
4750 * lib/isnanl-nolibm.h: Likewise.
4751 * lib/isnanl.c: Likewise.
4752 * lib/isnanl.h: Likewise.
4753 * lib/javacomp.c: Likewise.
4754 * lib/javacomp.h: Likewise.
4755 * lib/javaexec.c: Likewise.
4756 * lib/javaexec.h: Likewise.
4757 * lib/javaversion.c: Likewise.
4758 * lib/javaversion.h: Likewise.
4759 * lib/javaversion.java: Likewise.
4760 * lib/lbrkprop.h: Likewise.
4761 * lib/lchmod.h: Likewise.
4762 * lib/lchown.c: Likewise.
4763 * lib/ldexpl.c: Likewise.
4764 * lib/linebreak.c: Likewise.
4765 * lib/linebreak.h: Likewise.
4766 * lib/linebuffer.c: Likewise.
4767 * lib/linebuffer.h: Likewise.
4768 * lib/locale.in.h: Likewise.
4769 * lib/logl.c: Likewise.
4770 * lib/long-options.c: Likewise.
4771 * lib/long-options.h: Likewise.
4772 * lib/lstat.c: Likewise.
4773 * lib/lstat.h: Likewise.
4774 * lib/math.in.h: Likewise.
4775 * lib/mbchar.c: Likewise.
4776 * lib/mbchar.h: Likewise.
4777 * lib/mbfile.h: Likewise.
4778 * lib/mbiter.h: Likewise.
4779 * lib/mbscasecmp.c: Likewise.
4780 * lib/mbscasestr.c: Likewise.
4781 * lib/mbschr.c: Likewise.
4782 * lib/mbscspn.c: Likewise.
4783 * lib/mbslen.c: Likewise.
4784 * lib/mbsncasecmp.c: Likewise.
4785 * lib/mbsnlen.c: Likewise.
4786 * lib/mbspbrk.c: Likewise.
4787 * lib/mbspcasecmp.c: Likewise.
4788 * lib/mbsrchr.c: Likewise.
4789 * lib/mbssep.c: Likewise.
4790 * lib/mbsspn.c: Likewise.
4791 * lib/mbsstr.c: Likewise.
4792 * lib/mbstok_r.c: Likewise.
4793 * lib/mbswidth.c: Likewise.
4794 * lib/mbswidth.h: Likewise.
4795 * lib/mbuiter.h: Likewise.
4796 * lib/memcasecmp.c: Likewise.
4797 * lib/memcasecmp.h: Likewise.
4798 * lib/memchr.c: Likewise.
4799 * lib/memcmp.c: Likewise.
4800 * lib/memcoll.c: Likewise.
4801 * lib/memcoll.h: Likewise.
4802 * lib/memcpy.c: Likewise.
4803 * lib/memrchr.c: Likewise.
4804 * lib/mkancesdirs.c: Likewise.
4805 * lib/mkdir-p.c: Likewise.
4806 * lib/mkdir-p.h: Likewise.
4807 * lib/mkdir.c: Likewise.
4808 * lib/mkdirat.c: Likewise.
4809 * lib/mkdtemp.c: Likewise.
4810 * lib/mkstemp-safer.c: Likewise.
4811 * lib/mkstemp.c: Likewise.
4812 * lib/modechange.c: Likewise.
4813 * lib/modechange.h: Likewise.
4814 * lib/mountlist.c: Likewise.
4815 * lib/mountlist.h: Likewise.
4816 * lib/mpsort.c: Likewise.
4817 * lib/nanosleep.c: Likewise.
4818 * lib/obstack.c: Likewise.
4819 * lib/obstack.h: Likewise.
4820 * lib/open-safer.c: Likewise.
4821 * lib/open.c: Likewise.
4822 * lib/openat-die.c: Likewise.
4823 * lib/openat-priv.h: Likewise.
4824 * lib/openat-proc.c: Likewise.
4825 * lib/openat.c: Likewise.
4826 * lib/openat.h: Likewise.
4827 * lib/pagealign_alloc.c: Likewise.
4828 * lib/pagealign_alloc.h: Likewise.
4829 * lib/physmem.c: Likewise.
4830 * lib/physmem.h: Likewise.
4831 * lib/pipe-safer.c: Likewise.
4832 * lib/pipe.c: Likewise.
4833 * lib/pipe.h: Likewise.
4834 * lib/posixtm.c: Likewise.
4835 * lib/posixtm.h: Likewise.
4836 * lib/posixver.c: Likewise.
4837 * lib/printf-frexp.c: Likewise.
4838 * lib/printf-frexp.h: Likewise.
4839 * lib/printf-frexpl.c: Likewise.
4840 * lib/printf-frexpl.h: Likewise.
4841 * lib/printf.c: Likewise.
4842 * lib/progname.c: Likewise.
4843 * lib/progname.h: Likewise.
4844 * lib/progreloc.c: Likewise.
4845 * lib/putenv.c: Likewise.
4846 * lib/quote.c: Likewise.
4847 * lib/quote.h: Likewise.
4848 * lib/quotearg.c: Likewise.
4849 * lib/quotearg.h: Likewise.
4850 * lib/raise.c: Likewise.
4851 * lib/readline.c: Likewise.
4852 * lib/readline.h: Likewise.
4853 * lib/readlink.c: Likewise.
4854 * lib/readtokens.c: Likewise.
4855 * lib/readtokens.h: Likewise.
4856 * lib/readtokens0.c: Likewise.
4857 * lib/readtokens0.h: Likewise.
4858 * lib/readutmp.c: Likewise.
4859 * lib/readutmp.h: Likewise.
4860 * lib/realloc.c: Likewise.
4861 * lib/relocwrapper.c: Likewise.
4862 * lib/rename-dest-slash.c: Likewise.
4863 * lib/rename.c: Likewise.
4864 * lib/rmdir.c: Likewise.
4865 * lib/rpmatch.c: Likewise.
4866 * lib/safe-read.c: Likewise.
4867 * lib/safe-read.h: Likewise.
4868 * lib/safe-write.c: Likewise.
4869 * lib/safe-write.h: Likewise.
4870 * lib/same-inode.h: Likewise.
4871 * lib/same.c: Likewise.
4872 * lib/same.h: Likewise.
4873 * lib/save-cwd.c: Likewise.
4874 * lib/save-cwd.h: Likewise.
4875 * lib/savedir.c: Likewise.
4876 * lib/savedir.h: Likewise.
4877 * lib/savewd.c: Likewise.
4878 * lib/savewd.h: Likewise.
4879 * lib/search.in.h: Likewise.
4880 * lib/setenv.c: Likewise.
4881 * lib/setenv.h: Likewise.
4882 * lib/settime.c: Likewise.
4883 * lib/sh-quote.c: Likewise.
4884 * lib/sh-quote.h: Likewise.
4885 * lib/sig2str.c: Likewise.
4886 * lib/sig2str.h: Likewise.
4887 * lib/signal.in.h: Likewise.
4888 * lib/signbitd.c: Likewise.
4889 * lib/signbitf.c: Likewise.
4890 * lib/signbitl.c: Likewise.
4891 * lib/sigprocmask.c: Likewise.
4892 * lib/sincosl.c: Likewise.
4893 * lib/sleep.c: Likewise.
4894 * lib/sprintf.c: Likewise.
4895 * lib/sqrtl.c: Likewise.
4896 * lib/stat-time.h: Likewise.
4897 * lib/stdio--.h: Likewise.
4898 * lib/stdio-safer.h: Likewise.
4899 * lib/stdlib--.h: Likewise.
4900 * lib/stdlib-safer.h: Likewise.
4901 * lib/stdlib.in.h: Likewise.
4902 * lib/stpcpy.c: Likewise.
4903 * lib/stpncpy.c: Likewise.
4904 * lib/strchrnul.c: Likewise.
4905 * lib/strcspn.c: Likewise.
4906 * lib/strerror.c: Likewise.
4907 * lib/strftime.c: Likewise.
4908 * lib/strftime.h: Likewise.
4909 * lib/striconveh.c: Likewise.
4910 * lib/striconveh.h: Likewise.
4911 * lib/striconveha.c: Likewise.
4912 * lib/striconveha.h: Likewise.
4913 * lib/stripslash.c: Likewise.
4914 * lib/strnlen1.c: Likewise.
4915 * lib/strnlen1.h: Likewise.
4916 * lib/strtod.c: Likewise.
4917 * lib/strtoimax.c: Likewise.
4918 * lib/strtok_r.c: Likewise.
4919 * lib/strtol.c: Likewise.
4920 * lib/strtoll.c: Likewise.
4921 * lib/strtoul.c: Likewise.
4922 * lib/strtoull.c: Likewise.
4923 * lib/sysexits.in.h: Likewise.
4924 * lib/tempname.c: Likewise.
4925 * lib/tempname.h: Likewise.
4926 * lib/timespec.h: Likewise.
4927 * lib/tls.c: Likewise.
4928 * lib/tls.h: Likewise.
4929 * lib/tmpdir.c: Likewise.
4930 * lib/tmpdir.h: Likewise.
4931 * lib/tmpfile-safer.c: Likewise.
4932 * lib/tmpfile.c: Likewise.
4933 * lib/trigl.c: Likewise.
4934 * lib/trigl.h: Likewise.
4935 * lib/trim.c: Likewise.
4936 * lib/trim.h: Likewise.
4937 * lib/trunc.c: Likewise.
4938 * lib/truncf.c: Likewise.
4939 * lib/truncl.c: Likewise.
4940 * lib/tsearch.c: Likewise.
4941 * lib/unicodeio.c: Likewise.
4942 * lib/unicodeio.h: Likewise.
4943 * lib/unistd--.h: Likewise.
4944 * lib/unistd-safer.h: Likewise.
4945 * lib/unistdio/ulc-fprintf.c: Likewise.
4946 * lib/unistdio/ulc-vfprintf.c: Likewise.
4947 * lib/unlinkdir.c: Likewise.
4948 * lib/unlinkdir.h: Likewise.
4949 * lib/unlocked-io.h: Likewise.
4950 * lib/unsetenv.c: Likewise.
4951 * lib/userspec.c: Likewise.
4952 * lib/utime.c: Likewise.
4953 * lib/utimecmp.c: Likewise.
4954 * lib/utimecmp.h: Likewise.
4955 * lib/utimens.c: Likewise.
4956 * lib/verify.h: Likewise.
4957 * lib/verror.c: Likewise.
4958 * lib/verror.h: Likewise.
4959 * lib/version-etc-fsf.c: Likewise.
4960 * lib/version-etc.c: Likewise.
4961 * lib/version-etc.h: Likewise.
4962 * lib/vfprintf.c: Likewise.
4963 * lib/vprintf.c: Likewise.
4964 * lib/vsprintf.c: Likewise.
4965 * lib/w32spawn.h: Likewise.
4966 * lib/wait-process.c: Likewise.
4967 * lib/wait-process.h: Likewise.
4968 * lib/wcwidth.c: Likewise.
4969 * lib/write-any-file.c: Likewise.
4970 * lib/xalloc-die.c: Likewise.
4971 * lib/xalloc.h: Likewise.
4972 * lib/xasprintf.c: Likewise.
4973 * lib/xgetcwd.c: Likewise.
4974 * lib/xgetcwd.h: Likewise.
4975 * lib/xgetdomainname.c: Likewise.
4976 * lib/xgetdomainname.h: Likewise.
4977 * lib/xgethostname.c: Likewise.
4978 * lib/xmalloc.c: Likewise.
4979 * lib/xmalloca.c: Likewise.
4980 * lib/xmalloca.h: Likewise.
4981 * lib/xmemcoll.c: Likewise.
4982 * lib/xnanosleep.c: Likewise.
4983 * lib/xreadlink.c: Likewise.
4984 * lib/xreadlink.h: Likewise.
4985 * lib/xsetenv.c: Likewise.
4986 * lib/xsetenv.h: Likewise.
4987 * lib/xstriconv.c: Likewise.
4988 * lib/xstriconv.h: Likewise.
4989 * lib/xstrndup.c: Likewise.
4990 * lib/xstrndup.h: Likewise.
4991 * lib/xstrtod.c: Likewise.
4992 * lib/xstrtod.h: Likewise.
4993 * lib/xstrtol-error.c: Likewise.
4994 * lib/xstrtol.c: Likewise.
4995 * lib/xstrtol.h: Likewise.
4996 * lib/xtime.h: Likewise.
4997 * lib/xvasprintf.c: Likewise.
4998 * lib/xvasprintf.h: Likewise.
4999 * lib/yesno.c: Likewise.
5000 * lib/yesno.h: Likewise.
5001 * posix-modules: Likewise.
5002 * tests/test-alloca-opt.c: Likewise.
5003 * tests/test-arcfour.c: Likewise.
5004 * tests/test-arctwo.c: Likewise.
5005 * tests/test-argmatch.c: Likewise.
5006 * tests/test-argp-2.sh: Likewise.
5007 * tests/test-argp.c: Likewise.
5008 * tests/test-arpa_inet.c: Likewise.
5009 * tests/test-array_list.c: Likewise.
5010 * tests/test-array_oset.c: Likewise.
5011 * tests/test-atexit.c: Likewise.
5012 * tests/test-avltree_list.c: Likewise.
5013 * tests/test-avltree_oset.c: Likewise.
5014 * tests/test-avltreehash_list.c: Likewise.
5015 * tests/test-base64.c: Likewise.
5016 * tests/test-binary-io.c: Likewise.
5017 * tests/test-byteswap.c: Likewise.
5018 * tests/test-c-ctype.c: Likewise.
5019 * tests/test-c-strcasecmp.c: Likewise.
5020 * tests/test-c-strcasestr.c: Likewise.
5021 * tests/test-c-strncasecmp.c: Likewise.
5022 * tests/test-c-strstr.c: Likewise.
5023 * tests/test-canonicalize-lgpl.c: Likewise.
5024 * tests/test-canonicalize.c: Likewise.
5025 * tests/test-carray_list.c: Likewise.
5026 * tests/test-ceilf.c: Likewise.
5027 * tests/test-ceill.c: Likewise.
5028 * tests/test-count-one-bits.c: Likewise.
5029 * tests/test-crc.c: Likewise.
5030 * tests/test-dirname.c: Likewise.
5031 * tests/test-fbufmode.c: Likewise.
5032 * tests/test-fcntl.c: Likewise.
5033 * tests/test-fflush.c: Likewise.
5034 * tests/test-floorf.c: Likewise.
5035 * tests/test-floorl.c: Likewise.
5036 * tests/test-fopen.c: Likewise.
5037 * tests/test-fprintf-posix.c: Likewise.
5038 * tests/test-fprintf-posix.h: Likewise.
5039 * tests/test-fpurge.c: Likewise.
5040 * tests/test-freadable.c: Likewise.
5041 * tests/test-freadahead.c: Likewise.
5042 * tests/test-freading.c: Likewise.
5043 * tests/test-freopen.c: Likewise.
5044 * tests/test-frexp.c: Likewise.
5045 * tests/test-frexpl.c: Likewise.
5046 * tests/test-fseek.c: Likewise.
5047 * tests/test-fseeko.c: Likewise.
5048 * tests/test-fseterr.c: Likewise.
5049 * tests/test-fstrcmp.c: Likewise.
5050 * tests/test-ftell.c: Likewise.
5051 * tests/test-ftello.c: Likewise.
5052 * tests/test-fwritable.c: Likewise.
5053 * tests/test-fwriting.c: Likewise.
5054 * tests/test-getaddrinfo.c: Likewise.
5055 * tests/test-getpass.c: Likewise.
5056 * tests/test-gettimeofday.c: Likewise.
5057 * tests/test-hmac-md5.c: Likewise.
5058 * tests/test-hmac-sha1.c: Likewise.
5059 * tests/test-iconv.c: Likewise.
5060 * tests/test-iconvme.c: Likewise.
5061 * tests/test-inttypes.c: Likewise.
5062 * tests/test-isnan.c: Likewise.
5063 * tests/test-isnanf.c: Likewise.
5064 * tests/test-isnanl-nolibm.c: Likewise.
5065 * tests/test-isnanl.c: Likewise.
5066 * tests/test-isnanl.h: Likewise.
5067 * tests/test-ldexpl.c: Likewise.
5068 * tests/test-linked_list.c: Likewise.
5069 * tests/test-linkedhash_list.c: Likewise.
5070 * tests/test-locale.c: Likewise.
5071 * tests/test-localename.c: Likewise.
5072 * tests/test-lock.c: Likewise.
5073 * tests/test-lseek.c: Likewise.
5074 * tests/test-malloca.c: Likewise.
5075 * tests/test-math.c: Likewise.
5076 * tests/test-mbscasecmp.c: Likewise.
5077 * tests/test-mbscasestr1.c: Likewise.
5078 * tests/test-mbscasestr2.c: Likewise.
5079 * tests/test-mbscasestr3.c: Likewise.
5080 * tests/test-mbscasestr4.c: Likewise.
5081 * tests/test-mbschr.c: Likewise.
5082 * tests/test-mbscspn.c: Likewise.
5083 * tests/test-mbsncasecmp.c: Likewise.
5084 * tests/test-mbspbrk.c: Likewise.
5085 * tests/test-mbspcasecmp.c: Likewise.
5086 * tests/test-mbsrchr.c: Likewise.
5087 * tests/test-mbsspn.c: Likewise.
5088 * tests/test-mbsstr1.c: Likewise.
5089 * tests/test-mbsstr2.c: Likewise.
5090 * tests/test-mbsstr3.c: Likewise.
5091 * tests/test-md5.c: Likewise.
5092 * tests/test-memmem.c: Likewise.
5093 * tests/test-netinet_in.c: Likewise.
5094 * tests/test-open.c: Likewise.
5095 * tests/test-printf-frexp.c: Likewise.
5096 * tests/test-printf-frexpl.c: Likewise.
5097 * tests/test-printf-posix.c: Likewise.
5098 * tests/test-printf-posix.h: Likewise.
5099 * tests/test-rbtree_list.c: Likewise.
5100 * tests/test-rbtree_oset.c: Likewise.
5101 * tests/test-rbtreehash_list.c: Likewise.
5102 * tests/test-read-file.c: Likewise.
5103 * tests/test-rijndael.c: Likewise.
5104 * tests/test-search.c: Likewise.
5105 * tests/test-signbit.c: Likewise.
5106 * tests/test-sleep.c: Likewise.
5107 * tests/test-snprintf-posix.c: Likewise.
5108 * tests/test-snprintf-posix.h: Likewise.
5109 * tests/test-snprintf.c: Likewise.
5110 * tests/test-sprintf-posix.c: Likewise.
5111 * tests/test-sprintf-posix.h: Likewise.
5112 * tests/test-stat-time.c: Likewise.
5113 * tests/test-stdbool.c: Likewise.
5114 * tests/test-stdint.c: Likewise.
5115 * tests/test-stdio.c: Likewise.
5116 * tests/test-stdlib.c: Likewise.
5117 * tests/test-stpncpy.c: Likewise.
5118 * tests/test-strcasestr.c: Likewise.
5119 * tests/test-striconv.c: Likewise.
5120 * tests/test-striconveh.c: Likewise.
5121 * tests/test-striconveha.c: Likewise.
5122 * tests/test-string.c: Likewise.
5123 * tests/test-sys_select.c: Likewise.
5124 * tests/test-sys_socket.c: Likewise.
5125 * tests/test-sys_stat.c: Likewise.
5126 * tests/test-sys_time.c: Likewise.
5127 * tests/test-sysexits.c: Likewise.
5128 * tests/test-time.c: Likewise.
5129 * tests/test-tls.c: Likewise.
5130 * tests/test-trunc.c: Likewise.
5131 * tests/test-truncf.c: Likewise.
5132 * tests/test-truncl.c: Likewise.
5133 * tests/test-unistd.c: Likewise.
5134 * tests/test-vasnprintf-posix.c: Likewise.
5135 * tests/test-vasnprintf-posix2.c: Likewise.
5136 * tests/test-vasnprintf.c: Likewise.
5137 * tests/test-vasprintf-posix.c: Likewise.
5138 * tests/test-vasprintf.c: Likewise.
5139 * tests/test-verify.c: Likewise.
5140 * tests/test-vfprintf-posix.c: Likewise.
5141 * tests/test-vprintf-posix.c: Likewise.
5142 * tests/test-vsnprintf-posix.c: Likewise.
5143 * tests/test-vsnprintf.c: Likewise.
5144 * tests/test-vsprintf-posix.c: Likewise.
5145 * tests/test-wchar.c: Likewise.
5146 * tests/test-wctype.c: Likewise.
5147 * tests/test-wcwidth.c: Likewise.
5148 * tests/test-xstrtol.c: Likewise.
5149 * tests/test-xvasprintf.c: Likewise.
5150 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5151 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5152 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5153 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5154 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5155 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5156 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5157 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5158 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5159 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5160 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5161 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5162 * tests/uniname/test-uninames.c: Likewise.
5163 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5164 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
5165 * tests/unistdio/test-u16-printf1.h: Likewise.
5166 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5167 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5168 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5169 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5170 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5171 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5172 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5173 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
5174 * tests/unistdio/test-u32-printf1.h: Likewise.
5175 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5176 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5177 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5178 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5179 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5180 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5181 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5182 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
5183 * tests/unistdio/test-u8-printf1.h: Likewise.
5184 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5185 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5186 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5187 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5188 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5189 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5190 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5191 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
5192 * tests/unistdio/test-ulc-printf1.h: Likewise.
5193 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5194 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5195 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5196 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5197 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5198 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5199 * tests/uniwidth/test-u16-strwidth.c: Likewise.
5200 * tests/uniwidth/test-u16-width.c: Likewise.
5201 * tests/uniwidth/test-u32-strwidth.c: Likewise.
5202 * tests/uniwidth/test-u32-width.c: Likewise.
5203 * tests/uniwidth/test-u8-strwidth.c: Likewise.
5204 * tests/uniwidth/test-u8-width.c: Likewise.
5205 * tests/uniwidth/test-uc_width.c: Likewise.
5206 * config/srclist-update: Likewise.
5207 (fixlicense): Update to GPLv3+.
5209 Change copyright notice from LGPLv2.1+ to LGPLv3+.
5210 * tests/test-tsearch.c: Change copyright notice.
5212 Change copyright notice from LGPLv2.0+ to LGPLv3+.
5213 * lib/c-strcaseeq.h: Change copyright notice.
5214 * lib/streq.h: Likewise.
5215 * lib/uniconv.h: Likewise.
5216 * lib/uniconv/u-conv-from-enc.h: Likewise.
5217 * lib/uniconv/u-conv-to-enc.h: Likewise.
5218 * lib/uniconv/u-strconv-from-enc.h: Likewise.
5219 * lib/uniconv/u-strconv-to-enc.h: Likewise.
5220 * lib/uniconv/u16-conv-from-enc.c: Likewise.
5221 * lib/uniconv/u16-conv-to-enc.c: Likewise.
5222 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
5223 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
5224 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
5225 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
5226 * lib/uniconv/u32-conv-from-enc.c: Likewise.
5227 * lib/uniconv/u32-conv-to-enc.c: Likewise.
5228 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
5229 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
5230 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
5231 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
5232 * lib/uniconv/u8-conv-from-enc.c: Likewise.
5233 * lib/uniconv/u8-conv-to-enc.c: Likewise.
5234 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
5235 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
5236 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
5237 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
5238 * lib/uniname.h: Likewise.
5239 * lib/uniname/uniname.c: Likewise.
5240 * lib/unistdio.h: Likewise.
5241 * lib/unistdio/u-asnprintf.h: Likewise.
5242 * lib/unistdio/u-asprintf.h: Likewise.
5243 * lib/unistdio/u-printf-args.c: Likewise.
5244 * lib/unistdio/u-printf-args.h: Likewise.
5245 * lib/unistdio/u-printf-parse.h: Likewise.
5246 * lib/unistdio/u-snprintf.h: Likewise.
5247 * lib/unistdio/u-sprintf.h: Likewise.
5248 * lib/unistdio/u-vasprintf.h: Likewise.
5249 * lib/unistdio/u-vsnprintf.h: Likewise.
5250 * lib/unistdio/u-vsprintf.h: Likewise.
5251 * lib/unistdio/u16-asnprintf.c: Likewise.
5252 * lib/unistdio/u16-asprintf.c: Likewise.
5253 * lib/unistdio/u16-printf-parse.c: Likewise.
5254 * lib/unistdio/u16-snprintf.c: Likewise.
5255 * lib/unistdio/u16-sprintf.c: Likewise.
5256 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
5257 * lib/unistdio/u16-u16-asprintf.c: Likewise.
5258 * lib/unistdio/u16-u16-snprintf.c: Likewise.
5259 * lib/unistdio/u16-u16-sprintf.c: Likewise.
5260 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
5261 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
5262 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
5263 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
5264 * lib/unistdio/u16-vasnprintf.c: Likewise.
5265 * lib/unistdio/u16-vasprintf.c: Likewise.
5266 * lib/unistdio/u16-vsnprintf.c: Likewise.
5267 * lib/unistdio/u16-vsprintf.c: Likewise.
5268 * lib/unistdio/u32-asnprintf.c: Likewise.
5269 * lib/unistdio/u32-asprintf.c: Likewise.
5270 * lib/unistdio/u32-printf-parse.c: Likewise.
5271 * lib/unistdio/u32-snprintf.c: Likewise.
5272 * lib/unistdio/u32-sprintf.c: Likewise.
5273 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
5274 * lib/unistdio/u32-u32-asprintf.c: Likewise.
5275 * lib/unistdio/u32-u32-snprintf.c: Likewise.
5276 * lib/unistdio/u32-u32-sprintf.c: Likewise.
5277 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
5278 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
5279 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
5280 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
5281 * lib/unistdio/u32-vasnprintf.c: Likewise.
5282 * lib/unistdio/u32-vasprintf.c: Likewise.
5283 * lib/unistdio/u32-vsnprintf.c: Likewise.
5284 * lib/unistdio/u32-vsprintf.c: Likewise.
5285 * lib/unistdio/u8-asnprintf.c: Likewise.
5286 * lib/unistdio/u8-asprintf.c: Likewise.
5287 * lib/unistdio/u8-printf-parse.c: Likewise.
5288 * lib/unistdio/u8-snprintf.c: Likewise.
5289 * lib/unistdio/u8-sprintf.c: Likewise.
5290 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
5291 * lib/unistdio/u8-u8-asprintf.c: Likewise.
5292 * lib/unistdio/u8-u8-snprintf.c: Likewise.
5293 * lib/unistdio/u8-u8-sprintf.c: Likewise.
5294 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
5295 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
5296 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
5297 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
5298 * lib/unistdio/u8-vasnprintf.c: Likewise.
5299 * lib/unistdio/u8-vasprintf.c: Likewise.
5300 * lib/unistdio/u8-vsnprintf.c: Likewise.
5301 * lib/unistdio/u8-vsprintf.c: Likewise.
5302 * lib/unistdio/ulc-asnprintf.c: Likewise.
5303 * lib/unistdio/ulc-asprintf.c: Likewise.
5304 * lib/unistdio/ulc-printf-parse.c: Likewise.
5305 * lib/unistdio/ulc-snprintf.c: Likewise.
5306 * lib/unistdio/ulc-sprintf.c: Likewise.
5307 * lib/unistdio/ulc-vasnprintf.c: Likewise.
5308 * lib/unistdio/ulc-vasprintf.c: Likewise.
5309 * lib/unistdio/ulc-vsnprintf.c: Likewise.
5310 * lib/unistdio/ulc-vsprintf.c: Likewise.
5311 * lib/unistr.h: Likewise.
5312 * lib/unistr/u-cpy-alloc.h: Likewise.
5313 * lib/unistr/u-cpy.h: Likewise.
5314 * lib/unistr/u-endswith.h: Likewise.
5315 * lib/unistr/u-move.h: Likewise.
5316 * lib/unistr/u-set.h: Likewise.
5317 * lib/unistr/u-startswith.h: Likewise.
5318 * lib/unistr/u-stpcpy.h: Likewise.
5319 * lib/unistr/u-stpncpy.h: Likewise.
5320 * lib/unistr/u-strcat.h: Likewise.
5321 * lib/unistr/u-strcpy.h: Likewise.
5322 * lib/unistr/u-strcspn.h: Likewise.
5323 * lib/unistr/u-strdup.h: Likewise.
5324 * lib/unistr/u-strlen.h: Likewise.
5325 * lib/unistr/u-strncat.h: Likewise.
5326 * lib/unistr/u-strncpy.h: Likewise.
5327 * lib/unistr/u-strnlen.h: Likewise.
5328 * lib/unistr/u-strpbrk.h: Likewise.
5329 * lib/unistr/u-strspn.h: Likewise.
5330 * lib/unistr/u-strstr.h: Likewise.
5331 * lib/unistr/u-strtok.h: Likewise.
5332 * lib/unistr/u16-check.c: Likewise.
5333 * lib/unistr/u16-chr.c: Likewise.
5334 * lib/unistr/u16-cmp.c: Likewise.
5335 * lib/unistr/u16-cpy-alloc.c: Likewise.
5336 * lib/unistr/u16-cpy.c: Likewise.
5337 * lib/unistr/u16-endswith.c: Likewise.
5338 * lib/unistr/u16-mblen.c: Likewise.
5339 * lib/unistr/u16-mbsnlen.c: Likewise.
5340 * lib/unistr/u16-mbtouc-aux.c: Likewise.
5341 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
5342 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
5343 * lib/unistr/u16-mbtouc.c: Likewise.
5344 * lib/unistr/u16-mbtoucr.c: Likewise.
5345 * lib/unistr/u16-move.c: Likewise.
5346 * lib/unistr/u16-next.c: Likewise.
5347 * lib/unistr/u16-prev.c: Likewise.
5348 * lib/unistr/u16-set.c: Likewise.
5349 * lib/unistr/u16-startswith.c: Likewise.
5350 * lib/unistr/u16-stpcpy.c: Likewise.
5351 * lib/unistr/u16-stpncpy.c: Likewise.
5352 * lib/unistr/u16-strcat.c: Likewise.
5353 * lib/unistr/u16-strchr.c: Likewise.
5354 * lib/unistr/u16-strcmp.c: Likewise.
5355 * lib/unistr/u16-strcpy.c: Likewise.
5356 * lib/unistr/u16-strcspn.c: Likewise.
5357 * lib/unistr/u16-strdup.c: Likewise.
5358 * lib/unistr/u16-strlen.c: Likewise.
5359 * lib/unistr/u16-strmblen.c: Likewise.
5360 * lib/unistr/u16-strmbtouc.c: Likewise.
5361 * lib/unistr/u16-strncat.c: Likewise.
5362 * lib/unistr/u16-strncmp.c: Likewise.
5363 * lib/unistr/u16-strncpy.c: Likewise.
5364 * lib/unistr/u16-strnlen.c: Likewise.
5365 * lib/unistr/u16-strpbrk.c: Likewise.
5366 * lib/unistr/u16-strrchr.c: Likewise.
5367 * lib/unistr/u16-strspn.c: Likewise.
5368 * lib/unistr/u16-strstr.c: Likewise.
5369 * lib/unistr/u16-strtok.c: Likewise.
5370 * lib/unistr/u16-to-u32.c: Likewise.
5371 * lib/unistr/u16-to-u8.c: Likewise.
5372 * lib/unistr/u16-uctomb-aux.c: Likewise.
5373 * lib/unistr/u16-uctomb.c: Likewise.
5374 * lib/unistr/u32-check.c: Likewise.
5375 * lib/unistr/u32-chr.c: Likewise.
5376 * lib/unistr/u32-cmp.c: Likewise.
5377 * lib/unistr/u32-cpy-alloc.c: Likewise.
5378 * lib/unistr/u32-cpy.c: Likewise.
5379 * lib/unistr/u32-endswith.c: Likewise.
5380 * lib/unistr/u32-mblen.c: Likewise.
5381 * lib/unistr/u32-mbsnlen.c: Likewise.
5382 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
5383 * lib/unistr/u32-mbtouc.c: Likewise.
5384 * lib/unistr/u32-mbtoucr.c: Likewise.
5385 * lib/unistr/u32-move.c: Likewise.
5386 * lib/unistr/u32-next.c: Likewise.
5387 * lib/unistr/u32-prev.c: Likewise.
5388 * lib/unistr/u32-set.c: Likewise.
5389 * lib/unistr/u32-startswith.c: Likewise.
5390 * lib/unistr/u32-stpcpy.c: Likewise.
5391 * lib/unistr/u32-stpncpy.c: Likewise.
5392 * lib/unistr/u32-strcat.c: Likewise.
5393 * lib/unistr/u32-strchr.c: Likewise.
5394 * lib/unistr/u32-strcmp.c: Likewise.
5395 * lib/unistr/u32-strcpy.c: Likewise.
5396 * lib/unistr/u32-strcspn.c: Likewise.
5397 * lib/unistr/u32-strdup.c: Likewise.
5398 * lib/unistr/u32-strlen.c: Likewise.
5399 * lib/unistr/u32-strmblen.c: Likewise.
5400 * lib/unistr/u32-strmbtouc.c: Likewise.
5401 * lib/unistr/u32-strncat.c: Likewise.
5402 * lib/unistr/u32-strncmp.c: Likewise.
5403 * lib/unistr/u32-strncpy.c: Likewise.
5404 * lib/unistr/u32-strnlen.c: Likewise.
5405 * lib/unistr/u32-strpbrk.c: Likewise.
5406 * lib/unistr/u32-strrchr.c: Likewise.
5407 * lib/unistr/u32-strspn.c: Likewise.
5408 * lib/unistr/u32-strstr.c: Likewise.
5409 * lib/unistr/u32-strtok.c: Likewise.
5410 * lib/unistr/u32-to-u16.c: Likewise.
5411 * lib/unistr/u32-to-u8.c: Likewise.
5412 * lib/unistr/u32-uctomb.c: Likewise.
5413 * lib/unistr/u8-check.c: Likewise.
5414 * lib/unistr/u8-chr.c: Likewise.
5415 * lib/unistr/u8-cmp.c: Likewise.
5416 * lib/unistr/u8-cpy-alloc.c: Likewise.
5417 * lib/unistr/u8-cpy.c: Likewise.
5418 * lib/unistr/u8-endswith.c: Likewise.
5419 * lib/unistr/u8-mblen.c: Likewise.
5420 * lib/unistr/u8-mbsnlen.c: Likewise.
5421 * lib/unistr/u8-mbtouc-aux.c: Likewise.
5422 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
5423 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
5424 * lib/unistr/u8-mbtouc.c: Likewise.
5425 * lib/unistr/u8-mbtoucr.c: Likewise.
5426 * lib/unistr/u8-move.c: Likewise.
5427 * lib/unistr/u8-next.c: Likewise.
5428 * lib/unistr/u8-prev.c: Likewise.
5429 * lib/unistr/u8-set.c: Likewise.
5430 * lib/unistr/u8-startswith.c: Likewise.
5431 * lib/unistr/u8-stpcpy.c: Likewise.
5432 * lib/unistr/u8-stpncpy.c: Likewise.
5433 * lib/unistr/u8-strcat.c: Likewise.
5434 * lib/unistr/u8-strchr.c: Likewise.
5435 * lib/unistr/u8-strcmp.c: Likewise.
5436 * lib/unistr/u8-strcpy.c: Likewise.
5437 * lib/unistr/u8-strcspn.c: Likewise.
5438 * lib/unistr/u8-strdup.c: Likewise.
5439 * lib/unistr/u8-strlen.c: Likewise.
5440 * lib/unistr/u8-strmblen.c: Likewise.
5441 * lib/unistr/u8-strmbtouc.c: Likewise.
5442 * lib/unistr/u8-strncat.c: Likewise.
5443 * lib/unistr/u8-strncmp.c: Likewise.
5444 * lib/unistr/u8-strncpy.c: Likewise.
5445 * lib/unistr/u8-strnlen.c: Likewise.
5446 * lib/unistr/u8-strpbrk.c: Likewise.
5447 * lib/unistr/u8-strrchr.c: Likewise.
5448 * lib/unistr/u8-strspn.c: Likewise.
5449 * lib/unistr/u8-strstr.c: Likewise.
5450 * lib/unistr/u8-strtok.c: Likewise.
5451 * lib/unistr/u8-to-u16.c: Likewise.
5452 * lib/unistr/u8-to-u32.c: Likewise.
5453 * lib/unistr/u8-uctomb-aux.c: Likewise.
5454 * lib/unistr/u8-uctomb.c: Likewise.
5455 * lib/unitypes.h: Likewise.
5456 * lib/uniwidth.h: Likewise.
5457 * lib/uniwidth/cjk.h: Likewise.
5458 * lib/uniwidth/u16-strwidth.c: Likewise.
5459 * lib/uniwidth/u16-width.c: Likewise.
5460 * lib/uniwidth/u32-strwidth.c: Likewise.
5461 * lib/uniwidth/u32-width.c: Likewise.
5462 * lib/uniwidth/u8-strwidth.c: Likewise.
5463 * lib/uniwidth/u8-width.c: Likewise.
5464 * lib/uniwidth/width.c: Likewise.
5466 2007-10-07 Bruno Haible <bruno@clisp.org>
5468 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
5469 The file is still under LGPL (see modules/inttypes).
5471 2007-10-06 Bruno Haible <bruno@clisp.org>
5473 * modules/trunc (Dependencies): Add 'extensions'.
5474 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
5475 Reported by Ben Pfaff <blp@gnu.org>.
5477 2007-10-06 Bruno Haible <bruno@clisp.org>
5479 * modules/freopen-tests: New file.
5480 * tests/test-freopen.c: New file.
5482 * modules/fopen-tests: New file.
5483 * tests/test-fopen.c: New file.
5485 * modules/fopen: New file.
5486 * lib/fopen.c: New file.
5487 * m4/fopen.m4: New file.
5488 * modules/freopen: New file.
5489 * lib/freopen.c: New file.
5490 * m4/freopen.m4: New file.
5491 * lib/stdio.in.h (fopen, freopen): New declarations.
5492 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
5493 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
5494 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
5495 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
5496 * doc/functions/fopen.texi: Mention the 'fopen' module.
5497 * doc/functions/freopen.texi: Mention the 'freopen' module.
5499 2007-10-06 Bruno Haible <bruno@clisp.org>
5501 * modules/open-tests: New file.
5502 * tests/test-open.c: New file.
5504 * modules/open: New file.
5505 * lib/open.c: New file.
5506 * m4/open.m4: New file.
5507 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
5509 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
5510 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
5512 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
5513 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
5515 * doc/functions/open.texi: Mention the 'open' module.
5517 2007-10-04 Bruno Haible <bruno@clisp.org>
5519 * modules/ceill-tests: New file.
5520 * tests/test-ceill.c: New file.
5522 * modules/ceill: New file.
5523 * lib/ceill.c: Replace entire file.
5524 * m4/ceill.m4: New file.
5525 * lib/math.in.h (ceill): Replace declaration.
5526 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
5527 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
5528 * doc/functions/ceill.texi: Mention the 'ceill' module.
5529 * modules/mathl (Files): Remove lib/ceill.c.
5530 (Depends-on): Add ceill.
5532 2007-10-04 Bruno Haible <bruno@clisp.org>
5534 * modules/ceilf-tests: New file.
5535 * tests/test-ceilf.c: New file.
5537 * modules/ceilf: New file.
5538 * lib/ceil.c: New file.
5539 * lib/ceilf.c: New file.
5540 * m4/ceilf.m4: New file.
5541 * lib/math.in.h (ceilf): New declaration.
5542 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
5544 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
5546 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
5548 2007-10-04 Bruno Haible <bruno@clisp.org>
5550 * modules/floorl-tests: New file.
5551 * tests/test-floorl.c: New file.
5553 * modules/floorl: New file.
5554 * lib/floorl.c: Replace entire file.
5555 * m4/floorl.m4: New file.
5556 * lib/math.in.h (floorl): Replace declaration.
5557 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
5558 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
5559 * doc/functions/floorl.texi: Mention the 'floorl' module.
5560 * modules/mathl (Files): Remove lib/floorl.c.
5561 (Depends-on): Add floorl.
5563 2007-10-04 Bruno Haible <bruno@clisp.org>
5565 * modules/floorf-tests: New file.
5566 * tests/test-floorf.c: New file.
5568 * modules/floorf: New file.
5569 * lib/floor.c: New file.
5570 * lib/floorf.c: New file.
5571 * m4/floorf.m4: New file.
5572 * lib/math.in.h (floorf): New declaration.
5573 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
5575 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
5577 * doc/functions/floorf.texi: Mention the 'floorf' module.
5579 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
5580 Bruno Haible <bruno@clisp.org>
5582 Advertise for the Git server instead of the CVS server.
5583 * doc/gnulib-intro.texi (Steady Development): Mention the Git
5584 repository instead of the CVS one.
5585 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
5586 about all VCS systems generically.
5587 * doc/gnulib.texi (Introduction): Capitalize `Git'.
5589 2007-10-04 Bruno Haible <bruno@clisp.org>
5591 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
5593 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
5595 2007-10-04 Bruno Haible <bruno@clisp.org>
5597 * modules/truncl-tests: New file.
5598 * tests/test-truncl.c: New file.
5600 * modules/truncl: New file.
5601 * lib/truncl.c: New file.
5602 * m4/truncl.m4: New file.
5603 * lib/math.in.h (truncl): New declaration.
5604 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
5606 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
5608 * doc/functions/truncl.texi: Mention the 'truncl' module.
5610 2007-10-04 Bruno Haible <bruno@clisp.org>
5612 * modules/truncf-tests: New file.
5613 * tests/test-truncf.c: New file.
5615 * modules/truncf: New file.
5616 * lib/trunc.c: Make paramerizable through USE_* macros.
5617 * lib/truncf.c: New file.
5618 * m4/truncf.m4: New file.
5619 * lib/math.in.h (truncf): New declaration.
5620 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
5622 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
5624 * doc/functions/truncf.texi: Mention the 'truncf' module.
5626 2007-10-03 Bruno Haible <bruno@clisp.org>
5628 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
5629 augmentation also for tests modules.
5630 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
5631 * modules/atexit-tests (Makefile.am): Likewise.
5632 * modules/binary-io-tests (Makefile.am): Likewise.
5633 * modules/c-strcase-tests (Makefile.am): Likewise.
5634 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
5635 * modules/canonicalize-tests (Makefile.am): Likewise.
5636 * modules/closein-tests (Makefile.am): Likewise.
5637 * modules/fprintf-posix-tests (Makefile.am): Likewise.
5638 * modules/freadahead-tests (Makefile.am): Likewise.
5639 * modules/fseek-tests (Makefile.am): Likewise.
5640 * modules/fseeko-tests (Makefile.am): Likewise.
5641 * modules/ftell-tests (Makefile.am): Likewise.
5642 * modules/ftello-tests (Makefile.am): Likewise.
5643 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
5644 * modules/isnanl-tests (Makefile.am): Likewise.
5645 * modules/lseek-tests (Makefile.am): Likewise.
5646 * modules/mbscasecmp-tests (Makefile.am): Likewise.
5647 * modules/mbscasestr-tests (Makefile.am): Likewise.
5648 * modules/mbschr-tests (Makefile.am): Likewise.
5649 * modules/mbscspn-tests (Makefile.am): Likewise.
5650 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5651 * modules/mbspbrk-tests (Makefile.am): Likewise.
5652 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5653 * modules/mbsrchr-tests (Makefile.am): Likewise.
5654 * modules/mbsspn-tests (Makefile.am): Likewise.
5655 * modules/mbsstr-tests (Makefile.am): Likewise.
5656 * modules/printf-posix-tests (Makefile.am): Likewise.
5657 * modules/snprintf-posix-tests (Makefile.am): Likewise.
5658 * modules/sprintf-posix-tests (Makefile.am): Likewise.
5659 * modules/tsearch-tests (Makefile.am): Likewise.
5660 * modules/uniname/uniname-tests (Makefile.am): Likewise.
5661 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
5662 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
5663 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
5664 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5665 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
5666 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
5667 * modules/vprintf-posix-tests (Makefile.am): Likewise.
5668 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
5669 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
5670 * modules/xstrtoimax-tests (Makefile.am): Likewise.
5671 * modules/xstrtol-tests (Makefile.am): Likewise.
5672 * modules/xstrtoumax-tests (Makefile.am): Likewise.
5673 * modules/yesno-tests (Makefile.am): Likewise.
5675 2007-10-03 Bruno Haible <bruno@clisp.org>
5677 * modules/trunc-tests: New file.
5678 * tests/test-trunc.c: New file.
5680 * modules/trunc: New file.
5681 * lib/trunc.c: New file.
5682 * m4/trunc.m4: New file.
5683 * lib/math.in.h (trunc): New declaration.
5684 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
5686 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
5688 * doc/functions/trunc.texi: Mention the 'trunc' module.
5690 2007-10-03 Bruno Haible <bruno@clisp.org>
5692 * tests/test-fpending.c: New file, mostly copied
5693 from coreutils/lib/t-fpending.c.
5694 * modules/fpending-tests: New file.
5696 2007-10-03 Bruno Haible <bruno@clisp.org>
5698 Port the stdio extensions to QNX (untested).
5699 * lib/fseterr.c (fseterr): Add support for QNX.
5700 * lib/fbufmode.c (fbufmode): Likewise.
5701 * lib/freadable.c (freadable): Likewise.
5702 * lib/fwritable.c (fwritable): Likewise.
5703 * lib/freading.c (freading): Likewise.
5704 * lib/fwriting.c (fwriting): Likewise.
5705 * lib/freadahead.c (freadahed): Likewise.
5706 * lib/fpurge.c (fpurge): Likewise.
5707 * lib/fseeko.c (rpl_fseeko): Likewise.
5709 2007-10-03 Bruno Haible <bruno@clisp.org>
5710 Jim Meyering <jim@meyering.net>
5711 Eric Blake <ebb9@byu.net>
5713 * doc/relocatable.texi: Use @command instead of @program.
5715 2007-10-02 Jim Meyering <jim@meyering.net>
5717 Perform one more "_.h" -> ".in.h" substitution.
5718 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
5719 instead of unistd_.h here, too.
5721 2007-10-01 Bruno Haible <bruno@clisp.org>
5723 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
5724 Needed for the alloca-opt module.
5726 2007-09-30 Bruno Haible <bruno@clisp.org>
5728 * lib/alloca.in.h: Renamed from lib/alloca_.h.
5729 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
5731 * lib/argz.in.h: Renamed from lib/argz_.h.
5732 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
5733 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
5734 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
5736 * lib/dirent.in.h: Renamed from lib/dirent_.h.
5737 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
5739 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
5740 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
5742 * lib/float.in.h: Renamed from lib/float_.h.
5743 * modules/float (Files, Makefile.am): Use float.in.h instead of
5745 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
5746 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
5748 * lib/getopt.in.h: Renamed from lib/getopt_.h.
5749 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
5751 * lib/glob.in.h: Renamed from lib/glob_.h.
5752 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
5753 * lib/iconv.in.h: Renamed from lib/iconv_.h.
5754 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
5756 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
5757 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
5759 * lib/locale.in.h: Renamed from lib/locale_.h.
5760 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
5762 * lib/math.in.h: Renamed from lib/math_.h.
5763 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
5764 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
5765 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
5766 of netinet_in_.h. Add dependency.
5767 * lib/poll.in.h: Renamed from lib/poll_.h.
5768 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
5769 * lib/search.in.h: Renamed from lib/search_.h.
5770 * modules/search (Files, Makefile.am): Use search.in.h instead of
5772 * lib/signal.in.h: Renamed from lib/signal_.h.
5773 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
5775 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
5776 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
5778 * lib/stdint.in.h: Renamed from lib/stdint_.h.
5779 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
5781 * lib/stdio.in.h: Renamed from lib/stdio_.h.
5782 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
5784 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
5785 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
5787 * lib/string.in.h: Renamed from lib/string_.h.
5788 * modules/string (Files, Makefile.am): Use string.in.h instead of
5790 * doc/gnulib-tool.texi (Initial import): Update.
5791 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
5792 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
5793 of sys_select_.h. Add dependency.
5794 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
5795 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
5797 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
5798 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
5800 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
5801 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
5803 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
5804 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
5806 * lib/time.in.h: Renamed from lib/time_.h.
5807 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
5808 * lib/unistd.in.h: Renamed from lib/unistd_.h.
5809 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
5811 * lib/wchar.in.h: Renamed from lib/wchar_.h.
5812 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
5814 * lib/wctype.in.h: Renamed from lib/wctype_.h.
5815 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
5817 * build-aux/bootstrap (slurp): Update.
5818 * lib/.cppi-disable: Update.
5820 2007-09-30 Bruno Haible <bruno@clisp.org>
5822 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
5825 2007-09-30 Bruno Haible <bruno@clisp.org>
5827 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
5829 2007-09-29 Bruno Haible <bruno@clisp.org>
5831 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
5833 2007-09-29 Bruno Haible <bruno@clisp.org>
5835 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
5836 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
5837 * build-aux/install-reloc: Compile also areadlink.c.
5838 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
5840 2007-09-29 Bruno Haible <bruno@clisp.org>
5842 * gnulib-tool (func_emit_initmacro_done): Indentation.
5844 2007-09-29 Bruno Haible <bruno@clisp.org>
5846 * README: Add CVS checkout update instructions.
5847 Info from Bob Proulx <bob@proulx.com>.
5849 2007-09-28 Eric Blake <ebb9@byu.net>
5851 Provide move-if-change.
5852 * build-aux/move-if-change: New file, based on best practice
5853 rather than any canonical upstream location.
5855 2007-09-28 Jim Meyering <jim@meyering.net>
5857 Fix canonicalize loop-detection corner case.
5858 Do not attempt to stat the symlink values stored via seen_triple.
5859 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
5860 on linux-2.6.18, (but not 2.6.22).
5861 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
5862 triple_compare. The former compares dev,ino,filename, while the latter
5863 would actually stat dirname(filename) when dev and ino were equal.
5864 * lib/hash-triple.c: Install <string.h>.
5866 (triple_compare_ino_str): New function.
5867 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
5869 2007-09-28 Eric Blake <ebb9@byu.net>
5871 Enforce that AC_REPLACE_FUNCS files exist.
5872 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
5873 override check for typos.
5875 Fix test-closein on Solaris 10.
5876 * tests/test-closein.c (main): Don't assume stdin can be inherited
5877 closed on all systems.
5878 * tests/test-closein.sh: Likewise.
5879 Reported by Piotr Tarnowski.
5881 2007-09-28 Jim Meyering <jim@meyering.net>
5883 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
5885 2007-09-27 Jim Meyering <jim@meyering.net>
5887 canonicalize: Avoid a false-positive cycle failure.
5888 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
5889 Sort. Remove cycle-check.
5890 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
5892 (seen_triple): New function.
5893 (canonicalize_filename_mode): Use it instead of cycle-check.
5894 * tests/test-canonicalize.c: Add a test for this bug.
5895 * tests/test-canonicalize.sh: Set up and run the test.
5897 New module, file-set, from coreutils.
5898 * modules/file-set: Define it.
5899 * lib/file-set.c, lib/file-set.h: Implement.
5901 New module, hash-triple, from coreutils.
5902 * modules/hash-triple: Define it.
5903 * lib/hash-triple.c, lib/hash-triple.h: Implement.
5905 2007-09-25 Eric Blake <ebb9@byu.net>
5907 Fix strerror on Interix.
5908 * lib/string_.h (strerror): Declare replacement.
5909 * doc/functions/strerror.texi (strerror): Document the Interix
5911 * modules/string (Makefile.am): Support new hooks.
5912 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
5913 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
5914 gl_FUNC_STRERROR_SEPARATE.
5915 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
5916 * lib/strerror.c (rpl_strerror): Provide replacement.
5917 * modules/strerror (Depends-on): Add string.
5918 (configure.ac): Detect use of module.
5919 * tests/test-strerror.c: New file.
5920 * modules/strerror-tests: New test module.
5921 * modules/argp (Depends-on): Add strerror.
5922 * modules/error (Depends-on): Likewise.
5923 Reported by Martin Koeppe.
5925 2007-09-24 Bruno Haible <bruno@clisp.org>
5927 * README: Update git instructions.
5929 2007-09-24 Eric Blake <ebb9@byu.net>
5931 Revert fpending breakage from 2007-09-08.
5932 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
5935 2007-09-24 Jim Meyering <jim@meyering.net>
5937 filenamecat.c: Add a test.
5938 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
5939 showing how the function works when DIR is the empty string.
5941 2007-09-21 Simon Josefsson <simon@josefsson.org>
5943 * tests/test-canonicalize.sh: Turn on executable bit.
5945 2007-09-19 Eric Blake <ebb9@byu.net>
5947 * README: Update CVS instructions.
5949 2007-09-18 Bruno Haible <bruno@clisp.org>
5951 * modules/areadlink: New file.
5952 * lib/areadlink.h (areadlink): New declaration.
5953 * lib/areadlink.c: New file, based on lib/xreadlink.c.
5955 2007-09-17 Jim Meyering <jim@meyering.net>
5957 * lib/savewd.c (ESTALE) [!defined]: Define.
5958 Reported to be required on Interix by Martin Koeppe.
5960 2007-09-17 Bruno Haible <bruno@clisp.org>
5962 * gnulib-tool (func_version): Use $version.
5964 2007-09-16 Bruno Haible <bruno@clisp.org>
5966 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
5967 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
5968 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
5969 Reported by Greg Schafer <gschafer@zip.com.au>.
5971 2007-09-15 Bruno Haible <bruno@clisp.org>
5973 * gnulib-tool (sed): Try a little harder to make bash understand the
5975 Reported by Bruce Korb <bruce.korb@gmail.com>.
5977 2007-09-13 Eric Blake <ebb9@byu.net>
5979 * ChangeLog: Remove conflict markers.
5981 2007-09-13 Simon Josefsson <simon@josefsson.org>
5983 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
5984 Reported by Bruno Haible <bruno@clisp.org>.
5986 2007-09-12 Bruno Haible <bruno@clisp.org>
5988 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
5989 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
5992 2007-09-12 Eric Blake <ebb9@byu.net>
5994 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
5995 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
5996 Autoconf definition.
5997 * modules/euidaccess (Depends-on): Add extensions, for
5998 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
5999 * modules/fnmatch (Depends-on): Likewise.
6000 * modules/getaddrinfo (Depends-on): Likewise.
6001 * modules/getdelim (Depends-on): Likewise.
6002 * modules/getline (Depends-on): Likewise.
6003 * modules/getsubopt (Depends-on): Likewise.
6004 * modules/gettext (Depends-on): Likewise.
6005 * modules/group-member (Depends-on): Likewise.
6006 * modules/mbchar (Depends-on): Likewise.
6007 * modules/memmem (Depends-on): Likewise.
6008 * modules/mempcpy (Depends-on): Likewise.
6009 * modules/memrchr (Depends-on): Likewise.
6010 * modules/pagealign_alloc (Depends-on): Likewise.
6011 * modules/readutmp (Depends-on): Likewise.
6012 * modules/stpcpy (Depends-on): Likewise.
6013 * modules/stpncpy (Depends-on): Likewise.
6014 * modules/strchrnul (Depends-on): Likewise.
6015 * modules/strndup (Depends-on): Likewise.
6016 * modules/strsep (Depends-on): Likewise.
6017 * modules/strverscmp (Depends-on): Likewise.
6018 * modules/vasprintf (Depends-on): Likewise.
6019 * modules/wcwidth (Depends-on): Likewise.
6020 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
6021 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
6022 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
6023 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
6024 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6025 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6026 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
6027 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6028 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
6029 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
6030 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6031 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
6032 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
6033 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6034 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
6035 * m4/readutmp.m4 (gl_READUTMP): Likewise.
6036 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6037 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
6038 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6039 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
6040 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6041 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
6042 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
6043 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
6044 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
6045 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6046 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
6047 so that lock.m4 can be used in gettext without extensions module.
6049 2007-09-11 Bruno Haible <bruno@clisp.org>
6051 * m4/isc-posix.m4: Remove file.
6052 Suggested by Eric Blake.
6054 2007-09-11 Eric Blake <ebb9@byu.net>
6056 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
6058 2007-09-10 Bruno Haible <bruno@clisp.org>
6060 * posix-modules: Fix typo in error message.
6061 Reported by Matt <mkraai@beckman.com>.
6063 2007-09-09 Bruno Haible <bruno@clisp.org>
6065 * doc/functions/getdelim.texi: Update list of platforms lacking the
6067 * doc/functions/getline.texi: Likewise.
6069 2007-09-09 Jim Meyering <jim@meyering.net>
6071 * lib/hash.c (hash_initialize): Detect calloc failure.
6072 Reported by Bruno Haible.
6074 2007-09-09 Bruno Haible <bruno@clisp.org>
6076 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
6077 malloc or realloc fails.
6079 2007-09-09 Bruno Haible <bruno@clisp.org>
6081 * modules/getcwd (Depends-on): Add malloc-posix.
6082 * modules/glob (Depends-on): Likewise.
6083 * modules/putenv (Depends-on): Likewise.
6084 * modules/strdup (Depends-on): Likewise.
6085 * modules/getdelim (Depends-on): Add realloc-posix.
6086 * modules/read-file (Depends-on): Likewise.
6088 2007-09-09 Bruno Haible <bruno@clisp.org>
6090 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
6091 (gl_FUNC_MALLOC_POSIX): Require it.
6092 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
6093 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
6094 * modules/realloc (Files): Add m4/malloc.m4.
6095 * modules/calloc (Files): Likewise.
6097 2007-09-09 Bruno Haible <bruno@clisp.org>
6099 * modules/malloc-posix: New file.
6100 * modules/malloc (Depends-on): Add malloc-posix.
6101 * lib/malloc.c: Include errno.h.
6102 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
6103 and a POSIX-compatible malloc into a single function. Set ENOMEM
6104 when returning NULL.
6105 * m4/malloc.m4: New file.
6106 * doc/functions/malloc.texi: Mention the malloc-posix module.
6107 * lib/stdlib_.h (malloc): New declaration.
6108 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6109 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
6110 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
6111 and HAVE_MALLOC_POSIX.
6113 2007-09-09 Bruno Haible <bruno@clisp.org>
6115 * modules/realloc-posix: New file.
6116 * modules/realloc (Depends-on): Add realloc-posix.
6117 * lib/realloc.c: Include errno.h.
6118 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
6119 and a POSIX-compatible realloc into a single function. Set ENOMEM
6120 when returning NULL.
6121 * m4/realloc.m4: New file.
6122 * doc/functions/realloc.texi: Mention the realloc-posix module.
6123 * lib/stdlib_.h (realloc): New declaration.
6124 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6125 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
6126 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
6127 and HAVE_REALLOC_POSIX.
6129 2007-09-09 Bruno Haible <bruno@clisp.org>
6131 * modules/calloc-posix: New file.
6132 * modules/calloc (Depends-on): Add calloc-posix.
6133 * lib/calloc.c: Include errno.h.
6134 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
6135 and a POSIX-compatible calloc into a single function. Set ENOMEM
6136 when returning NULL.
6137 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
6138 * doc/functions/calloc.texi: Mention the calloc-posix module.
6139 * lib/stdlib_.h (calloc): New declaration.
6140 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6141 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
6142 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
6143 and HAVE_CALLOC_POSIX.
6145 2007-09-09 Bruno Haible <bruno@clisp.org>
6147 Allow for modules to show an arbitrary notice.
6148 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
6149 * gnulib-tool: New option --extract-notice.
6150 (func_usage): Document it.
6151 (sed_extract_prog): Update.
6152 (func_get_notice): New function.
6153 (func_modules_notice): New function.
6154 (func_import, func_create_testdir): Invoke it.
6155 Suggested by Jim Meyering.
6157 2007-09-09 Bruno Haible <bruno@clisp.org>
6159 * gnulib-tool: New options --verbose, --quiet.
6160 (func_usage): Document them.
6161 (verbose): New variable.
6162 (func_execute_command): New function.
6163 (func_import): Don't show the module list and the file list if
6165 (func_create_testdir): Likewise. Use func_execute_command.
6166 (func_create_megatestdir): Use func_execute_command.
6168 2007-09-08 Bruno Haible <bruno@clisp.org>
6170 * gnulib-tool (func_import): Prefer rsync over wget when available,
6171 for fetching the PO files.
6173 2007-09-08 Bruno Haible <bruno@clisp.org>
6175 * posix-modules: New file. Portions copied from gnulib-tool.
6176 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
6178 2007-09-08 Jim Meyering <jim@meyering.net>
6180 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
6181 * lib/fpending.h: Rename from __fpending.h.
6182 * lib/fpending.c: Rename from __fpending.c.
6183 Include "fpending.h", not "__fpending.h".
6184 * lib/__fpending.h, lib/__fpending.c: Remove files.
6185 * modules/fpending (Files): Reflect new file names.
6186 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
6188 2007-09-08 Bruno Haible <bruno@clisp.org>
6190 * m4/inttypes-h.m4: Remove stub file.
6192 2007-09-07 Simon Josefsson <simon@josefsson.org>
6194 * doc/headers/stdint.texi: Discuss #include_next issue.
6196 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
6198 * build-aux/bootstrap: Remove obsolete comment about wget --help.
6200 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6202 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
6205 2007-09-03 Jim Meyering <jim@meyering.net>
6207 New module: git-version-gen.
6208 * modules/git-version-gen: New file.
6210 Import changes from coreutils for bootstrap script.
6212 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
6214 bootstrap: uses rsync to download the .po files
6215 * build-aux/bootstrap (po_download_command_format): New global.
6216 (download_po_files): Use rsync.
6217 (update_po_files): Don't remove .po files after download,
6218 so future rsync runs can take advantage of the copies.
6220 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
6222 Solve the unnecessary-.po-file-regeneration problem once and for all.
6223 * build-aux/bootstrap (download_po_files): New function, renamed from
6224 get_translations. Now, downloads, but doesn't update LINGUAS.
6225 (update_po_files): New function.
6227 bootstrap: Ignore more.
6228 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
6229 uniwidth to e.g., lib/.gitignore.
6230 (slurp): Handle the sys_stat_.h -> sys mapping, too.
6232 * build-aux/bootstrap: New setting: vc_ignore.
6233 (insert_sorted_if_absent): Create $file if absent.
6234 Adapt to new, possibly empty, list: $vc_ignore.
6236 bootstrap: generate more ignorable names
6237 * build-aux/bootstrap (slurp): When generating ignorable names,
6238 also map .sin to .sed, .gperf to .c, and .y to .c.
6240 2007-09-03 Jim Meyering <jim@meyering.net>
6242 * build-aux/git-version-gen: New file, from coreutils. For details, see
6243 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
6245 2007-09-02 Bruno Haible <bruno@clisp.org>
6247 Fix mis-recognition of 'mcs' on QNX 6.
6248 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
6249 output contains the string "Mono".
6250 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
6251 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
6253 2007-09-01 Bruno Haible <bruno@clisp.org>
6255 Fix collision between uniwidth/* and linebreak modules.
6256 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
6257 u32_width): Remove declarations.
6258 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
6259 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
6260 streq3, streq2, streq1, streq0): Remove functions.
6261 (STREQ): Remove macro.
6262 (is_cjk_encoding): Remove function.
6263 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
6264 (uc_width, u8_width, u16_width, u32_width): Remove functions.
6265 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
6266 * NEWS: Document the change.
6268 2007-09-01 Bruno Haible <bruno@clisp.org>
6270 * lib/streq.h: Add double-inclusion guard.
6272 2007-09-01 Karl Berry <karl@gnu.org>
6274 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
6276 2007-08-28 Jim Meyering <jim@meyering.net>
6278 Rename mreadlink_with_size to areadlink_with_size.
6279 * NEWS: Document the change.
6280 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
6281 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
6282 * lib/mreadlink.h: Rename this to...
6283 * lib/areadlink.h: ...this.
6284 * modules/mreadlink-with-size: Rename this to...
6285 * modules/areadlink-with-size: ...this.
6286 * lib/canonicalize.c: Reflect the renaming.
6287 * modules/canonicalize: Likewise.
6289 2007-08-26 Bruno Haible <bruno@clisp.org>
6291 * gnulib-tool (func_import): When deciding which files to remove,
6292 consider also dangling symbolic links.
6293 Reported by Eric Blake.
6295 2007-08-26 Bruno Haible <bruno@clisp.org>
6297 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
6299 2007-08-23 Simon Josefsson <simon@josefsson.org>
6301 * lib/readline.c: Don't include getline.h, the prototype is now
6304 2007-08-23 Jim Meyering <jim@meyering.net>
6307 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
6308 around the funlockfile call, since funlockfile never sets errno.
6309 Don't set errno upon failed realloc.
6311 2007-08-22 Eric Blake <ebb9@byu.net>
6314 * lib/getdelim.c (getdelim): Revert regression that required *n to
6315 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
6316 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
6317 getdelim, rather than whether implementation is missing.
6318 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
6319 * lib/stdio_.h (getline): Also declare if replacement is
6321 * doc/functions/getdelim.texi: New file.
6322 * doc/functions/getline.texi: Likewise.
6323 * doc/gnulib.texi (Function Substitutes): Add new files.
6324 Reported by Bruno Haible.
6326 2007-08-22 Ludovic Courtès <ludo@gnu.org>
6328 * users.txt: Add Guile.
6330 2007-08-22 Eric Blake <ebb9@byu.net>
6332 * tests/test-getdelim.c (main): Use remove, not unlink.
6333 * tests/test-getline.c (main): Likewise.
6335 Move getline and getdelim into stdio.h, per POSIX 200x.
6336 * modules/getline (Files): Remove getline.h.
6337 (Depends-on): Add stdio.
6338 (configure.ac): Add module indicator.
6339 * modules/getdelim (Files): Remove getdelim.h.
6340 (Depends-on): Add stdio.
6341 (configure.ac): Add module indicator.
6342 * modules/stdio (Makefile.am): Work with new indicators.
6343 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
6344 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
6345 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6346 * lib/getdelim.h: Delete.
6347 * lib/getline.h: Delete.
6348 * lib/stdio_.h (getdelim, getline): Declare.
6349 * modules/getdelim-tests: New module.
6350 * modules/getline-tests: Likewise.
6351 * tests/test-getdelim.c: New file.
6352 * tests/test-getline.c: Likewise.
6353 * NEWS: Document the change.
6354 * lib/getline.c: Update choice of header.
6355 * lib/csharpcomp.c: Likewise.
6356 * lib/getpass.c: Likewise.
6357 * lib/javacomp.c: Likewise.
6358 * lib/javaversion.c: Likewise.
6359 * lib/yesno.c: Likewise.
6360 * lib/getdelim.c: Likewise.
6361 (getdelim): Set errno on failure, and avoid memory leak.
6363 2007-08-19 Bruno Haible <bruno@clisp.org>
6365 * modules/closein (Depends-on): Add freadahead.
6366 * lib/closein.c: Include freadahead.h.
6367 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
6370 2007-08-19 Bruno Haible <bruno@clisp.org>
6372 * modules/freadahead-tests: New file.
6373 * tests/test-freadahead.sh: New file.
6374 * tests/test-freadahead.c: New file.
6376 * modules/freadahead: New file.
6377 * lib/freadahead.h: New file.
6378 * lib/freadahead.c: New file.
6379 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
6380 fbufmode, fpurge, freadable, fwritable.
6382 2007-08-19 Eric Blake <ebb9@byu.net>
6384 Test yesno in combination with closein.
6385 * lib/yesno.c (yesno): Document use of stdin.
6386 * modules/yesno-tests (Files): New module.
6387 * tests/test-yesno.c (main): New file.
6388 * tests/test-yesno.sh: Likewise.
6390 2007-08-19 Bruno Haible <bruno@clisp.org>
6392 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
6393 * lib/fseeko.c (rpl_fseeko): Likewise.
6394 * lib/fseterr.c (fseterr): Likewise.
6396 2007-08-19 Bruno Haible <bruno@clisp.org>
6398 * tests/test-lseek.c (main): Disable a test for BeOS.
6399 * doc/functions/lseek.texi: Document the BeOS bug.
6401 2007-08-19 Bruno Haible <bruno@clisp.org>
6402 Eric Blake <ebb9@byu.net>
6404 * lib/lseek.c: Include <sys/stat.h>.
6405 (rpl_lseek): Add workaround code also for Unix platforms.
6407 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
6408 * doc/functions/lseek.texi: Document BeOS definiency.
6410 2007-08-18 Bruno Haible <bruno@clisp.org>
6412 * modules/fstrcmp-tests: New file.
6413 * tests/test-fstrcmp.c: New file.
6415 2007-08-18 Bruno Haible <bruno@clisp.org>
6417 * modules/fstrcmp: New file, from GNU gettext with modifications.
6418 * lib/fstrcmp.h: New file, from GNU gettext.
6419 * lib/fstrcmp.c: New file, from GNU gettext.
6420 * MODULES.html.sh (String handling): Add fstrcmp.
6422 2007-08-18 Bruno Haible <bruno@clisp.org>
6424 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
6426 (diag, compareseq): Remove const from the ctxt argument.
6427 (USE_HEURISTIC): Undefine at the end.
6429 2007-08-18 Jim Meyering <jim@meyering.net>
6431 New file: lib/idcache.h
6432 * NEWS: Mention the addition.
6433 * modules/idcache (Files): Add lib/idcache.h
6434 * lib/idcache.c: Include "idcache.h".
6435 Don't include <sys/types.h>.
6436 Add a FIXME comment.
6437 Move file-scoped "static" declarations to the top.
6438 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
6440 2007-08-17 Bruno Haible <bruno@clisp.org>
6441 and Paul Eggert <eggert@cs.ucla.edu>
6443 * MODULES.html.sh: Add diffseq.
6444 * modules/diffseq: New file.
6445 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
6446 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
6448 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
6450 Import changes from coreutils for bootstrap script.
6452 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
6454 * build-aux/bootstrap (slurp): Work even in environments where
6455 "ls" defaults to "ls -A". Put in a FIXME, though, since the
6456 current code does not slurp files whose names start with ".", and
6457 this looks like it might be a troublesome area.
6459 2007-07-11 Jim Meyering <jim@meyering.net>
6461 If there's a GPL vN copyright comment, require that N == 3.
6463 2007-07-08 Jim Meyering <jim@meyering.net>
6465 Run the coreutils-specific code only if tests/Makefile.am.in exists.
6466 * build-aux/bootstrap (mam_template): Move definition out of loop.
6468 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
6470 * build-aux/bootstrap (symlink_to_dir): Rename function from
6471 symlink_to_gnulib. Add a directory parameter. Update all
6473 (cp_mark_as_generated): Also check for -- and link to -- files in
6476 2007-07-08 Jim Meyering <jim@meyering.net>
6478 Adapt to deeper hierarchy in gnulib.
6479 * build-aux/bootstrap (symlink_to_dir): If the destination
6480 directory doesn't exist, create it. This is required at least for
6481 "lib/uniwidth/cjk.h".
6483 2007-05-15 Jim Meyering <jim@meyering.net>
6485 * build-aux/bootstrap: Now that generated Makefile.am files
6486 are no longer under version control, they must be created at
6489 2007-08-14 Ben Pfaff <blp@gnu.org>
6491 * lib/count-one-bits.h: Add comments. From Bruno Haible.
6493 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
6495 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
6496 given the changes below.
6497 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
6498 even on hosts that have padding bits beyond the supported 64.
6500 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
6502 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
6503 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
6504 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
6506 (xstrtol_error): Remove.
6507 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
6508 but with a different signature.
6509 (ATTRIBUTE_NORETURN, __attribute__): New macros.
6510 * lib/xstrtol-error.c: Include exitfail.h.
6511 (xstrtol_fatal): New function, with a different signature from the
6512 old xstrtol_error, so that the caller need not worry about passing
6513 in an exit status, or about storage management of the option argument.
6514 (xstrtol_error): Now a static function. Redo signature to
6515 implement xstrtol_fatal. Output the correct number of hyphens in
6516 front of the option so that the caller need not worry about
6519 (_): Remove; not used now.
6520 * modules/xstrtol: Depend on getopt.
6521 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
6522 of old STRTOL_FATAL_ERROR macro.
6523 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
6525 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
6526 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
6528 2007-08-08 Eric Blake <ebb9@byu.net>
6530 * lib/xstrtol-error.c: Add missing include.
6532 Move xstrtol messages into gnulib domain, when --pobase is used.
6533 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
6534 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
6535 * modules/xstrtol (Files): Distribute new file.
6536 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
6537 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
6538 * tests/test-xstrtol.c: ...into new file.
6539 * tests/test-xstrtoul.c: Also test xstrtoul.
6540 * tests/test-xstrtoimax.c: Also test xstrtoimax.
6541 * tests/test-xstrtoumax.c: Also test xstrtoumax.
6542 * tests/test-xstrtol.sh: Drive the tests.
6543 * tests/test-xstrtoimax.sh: Likewise.
6544 * tests/test-xstrtoumax.sh: Likewise.
6545 * modules/xstrtol-tests: New module.
6546 * modules/xstrtoimax-tests: Likewise.
6547 * modules/xstrtoumax-tests: Likewise.
6549 2007-08-08 Jim Meyering <jim@meyering.net>
6551 New function: mfile_name_concat.
6552 * lib/filenamecat.c (mfile_name_concat): New function, just like
6553 file_name_concat, but return NULL upon failure rather than exiting
6555 * lib/filenamecat.h: Declare it.
6557 2007-08-07 Bruno Haible <bruno@clisp.org>
6559 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
6560 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
6562 Reported by Eric Blake.
6564 2007-08-07 Simon Josefsson <simon@josefsson.org>
6566 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
6567 * modules/crypto/arcfour (License): Likewise.
6568 * modules/crypto/des-tests (License): Likewise.
6569 * modules/crypto/gc-arctwo-tests (License): Likewise.
6570 * modules/crypto/gc-des-tests (License): Likewise.
6571 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
6572 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
6573 * modules/crypto/gc-md2-tests (License): Likewise.
6574 * modules/crypto/gc-md4-tests (License): Likewise.
6575 * modules/crypto/gc-md5-tests (License): Likewise.
6576 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
6577 * modules/crypto/gc-rijndael-tests (License): Likewise.
6578 * modules/crypto/gc-sha1-tests (License): Likewise.
6579 * modules/crypto/gc-tests (License): Likewise.
6580 * modules/crypto/hmac-md5 (License): Likewise.
6581 * modules/crypto/hmac-sha1 (License): Likewise.
6582 * modules/crypto/md2-tests (License): Likewise.
6583 * modules/crypto/md4-tests (License): Likewise.
6584 * modules/crypto/md5 (License): Likewise.
6585 * modules/crypto/rijndael (License): Likewise.
6586 * modules/crypto/sha1 (License): Likewise.
6587 * modules/memxor (License): Likewise.
6589 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
6590 and Bruno Haible <bruno@clisp.org>
6592 * NEWS: Describe interface changes to human, xstrtol.
6593 * lib/human.h: Include <xstrtol.h>.
6594 (human_options): Return enum strtol_error, not int. Remove
6595 bool arg; take int * instead.
6596 * lib/human.c: Don't include "gettext.h".
6597 (_): Remove; no longer used.
6598 Don't include <xstrtol.h>, since human.h does it.
6599 (human_options): Adjust to abovementioned interface changes.
6600 Do not report error to stderr; that's now the caller's
6602 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
6604 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
6605 Str, Argument_type_string. All uses changed. Put " argument"
6606 in diagnostics to make them clearer. Change wording of suffix
6607 message for clarity.
6608 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
6609 Argument_type_string.
6610 (STRTOL_FATAL_WARN): Remove; no longer used.
6611 * modules/human (Depends-on): Remove gettext-h.
6613 2007-08-06 Simon Josefsson <simon@josefsson.org>
6615 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
6617 2007-07-31 Bruno Haible <bruno@clisp.org>
6619 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
6620 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
6621 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
6623 2007-07-31 Bruno Haible <bruno@clisp.org>
6625 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
6626 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
6628 2007-07-30 Bruno Haible <bruno@clisp.org>
6630 * modules/base64 (License): Use the synonymous term "LGPLv2+".
6631 * modules/c-ctype (License): Likewise.
6632 * modules/c-strcase (License): Likewise.
6633 * modules/check-version (License): Likewise.
6634 * modules/iconv (License): Likewise.
6635 * modules/iconv_open (License): Likewise.
6636 * modules/read-file (License): Likewise.
6637 * modules/striconv (License): Likewise.
6638 * modules/strverscmp (License): Likewise.
6639 * modules/vasprintf (License): Likewise.
6640 * modules/crypto/des (License): Likewise.
6641 * modules/crypto/gc (License): Likewise.
6642 * modules/crypto/gc-arcfour (License): Likewise.
6643 * modules/crypto/gc-arctwo (License): Likewise.
6644 * modules/crypto/gc-des (License): Likewise.
6645 * modules/crypto/gc-hmac-md5 (License): Likewise.
6646 * modules/crypto/gc-hmac-sha1 (License): Likewise.
6647 * modules/crypto/gc-md2 (License): Likewise.
6648 * modules/crypto/gc-md4 (License): Likewise.
6649 * modules/crypto/gc-md5 (License): Likewise.
6650 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
6651 * modules/crypto/gc-random (License): Likewise.
6652 * modules/crypto/gc-rijndael (License): Likewise.
6653 * modules/crypto/gc-sha1 (License): Likewise.
6654 * modules/crypto/md2 (License): Likewise.
6655 * modules/crypto/md4 (License): Likewise.
6657 2007-07-30 Jim Meyering <jim@meyering.net>
6659 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
6660 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
6661 it has valid stat data. This bug would cause du not to count the
6662 sizes of inaccessible directories.
6663 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
6664 in <http://bugzilla.redhat.com/250077>.
6666 2007-07-25 Peter O'Gorman <peter@pogma.com>
6667 Bruno Haible <bruno@clisp.org>
6669 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
6670 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
6671 #include_next, gives a diagnostic about it, but reports no error in
6673 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
6675 2007-07-24 Ben Pfaff <blp@gnu.org>
6677 Improve name: "count-one-bits" is better than "popcount".
6678 * MODULES.html.sh: Update name.
6679 * lib/popcount.h: Renamed lib/count-one-bits.h.
6680 (popcount): Renamed count_one_bits.
6681 (popcountl): Renamed count_one_bits_l.
6682 (popcountll): Renamed count_one_bits_ll.
6683 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
6684 * modules/popcount: Renamed module/count-one-bits.
6685 * modules/popcount-tests: Renamed module/count-one-bits-tests.
6686 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
6688 2007-07-23 Ben Pfaff <blp@gnu.org>
6690 * lib/popcount.h (popcount32): Reduce size of constants, to allow
6691 better code generation, and add U to large constants to avoid
6692 warnings, in non-GCC case.
6693 Suggested by Bruno Haible.
6695 2007-07-23 Ben Pfaff <blp@gnu.org>
6697 * lib/popcount.h: Use verify_true instead of if...abort.
6698 * modules/popcount: Depend on verify module.
6699 Suggested by Jim Meyering.
6701 2007-07-23 Bruno Haible <bruno@clisp.org>
6703 * gnulib-tool (func_import): Create a .cvsignore file also when the
6704 directory is not yet in CVS but the toplevel directory is. When
6705 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
6706 Reported by Karl Berry.
6708 2007-07-22 Ben Pfaff <blp@gnu.org>
6710 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
6712 Suggested by Eric Blake.
6714 2007-07-22 Ben Pfaff <blp@gnu.org>
6716 New module: popcount.
6717 * MODULES.html.sh: Add popcount.
6718 * modules/popcount: New file.
6719 * modules/popcount-tests: New file.
6720 * tests/test-popcount.c: New file.
6721 * lib/popcount.h: New file.
6722 * m4/popcount.m4: New file.
6724 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
6726 * build-aux/announce-gen: Update to GPLv3.
6728 * build-aux/config.guess: Update from config.
6730 2007-07-21 Bruno Haible <bruno@clisp.org>
6732 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
6733 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
6735 2007-07-20 Jim Meyering <jim@meyering.net>
6737 * check-module: Diagnose a self-dependency.
6739 2007-07-19 Bruno Haible <bruno@clisp.org>
6741 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
6743 Reported by Eric Blake.
6745 2007-07-18 Bruno Haible <bruno@clisp.org>
6747 * gnulib-tool: New options --po-base, --po-domain.
6748 (func_usage): Document them.
6749 (pobase, po_domain): New variables.
6750 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
6751 DEFAULT_TEXT_DOMAIN.
6752 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
6753 (func_import): Consider pobase and po_domain. Create a po/ directory.
6754 (func_create_testdir): Set pobase and po_domain to empty.
6755 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
6756 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
6758 2007-07-18 Bruno Haible <bruno@clisp.org>
6760 * gnulib-tool (func_get_automake_snippet): Synthesize also an
6761 EXTRA_DIST augmentation for files in build-aux/.
6763 2007-07-16 Bruno Haible <bruno@clisp.org>
6765 * modules/lseek (License): Use the synonymous term "LGPLv2+".
6766 * modules/getdelim (License): Likewise.
6768 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6770 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
6771 * modules/d-type (License): Likewise.
6772 * modules/extensions (License): Likewise.
6773 * modules/fnmatch (License): Likewise.
6774 * modules/fseeko (License): Likewise.
6775 * modules/getaddrinfo (License): Likewise.
6776 * modules/getline (License): Likewise.
6777 * modules/getlogin_r (License): Likewise.
6778 * modules/getpass (License): Likewise.
6779 * modules/gettimeofday (License): Likewise.
6780 * modules/glob (License): Likewise.
6781 * modules/inet_ntop (License): Likewise.
6782 * modules/malloc (License): Likewise.
6783 * modules/malloca (License): Likewise.
6784 * modules/memmem (License): Likewise.
6785 * modules/mempcpy (License): Likewise.
6786 * modules/memset (License): Likewise.
6787 * modules/minmax (License): Likewise.
6788 * modules/mktime (License): Likewise.
6789 * modules/netinet_in (License): Likewise.
6790 * modules/pathmax (License): Likewise.
6791 * modules/poll (License): Likewise.
6792 * modules/regex (License): Likewise.
6793 * modules/snprintf (License): Likewise.
6794 * modules/stdbool (License): Likewise.
6795 * modules/stdint (License): Likewise.
6796 * modules/stdio (License): Likewise.
6797 * modules/strcase (License): Likewise.
6798 * modules/strcasestr (License): Likewise.
6799 * modules/strdup (License): Likewise.
6800 * modules/string (License): Likewise.
6801 * modules/strndup (License): Likewise.
6802 * modules/strnlen (License): Likewise.
6803 * modules/strpbrk (License): Likewise.
6804 * modules/strptime (License): Likewise.
6805 * modules/strsep (License): Likewise.
6806 * modules/sys_select (License): Likewise.
6807 * modules/sys_socket (License): Likewise.
6808 * modules/sys_stat (License): Likewise.
6809 * modules/sys_time (License): Likewise.
6810 * modules/time (License): Likewise.
6811 * modules/time_r (License): Likewise.
6812 * modules/timegm (License): Likewise.
6813 * modules/unistd (License): Likewise.
6814 * modules/vsnprintf (License): Likewise.
6815 * modules/wctype (License): Likewise.
6817 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6819 * modules/argz (License): LGPLv2+.
6821 2007-07-15 Karl Berry <karl@gnu.org>
6823 * doc/gnulib.texi: revise node structure per new fdl.texi.
6825 2007-07-14 Bruno Haible <bruno@clisp.org>
6827 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
6829 * lib/uniname/uninames.h: Regenerated.
6831 2007-07-14 Karl Berry <karl@gnu.org>
6833 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
6834 omitting sectioning and index commands.
6836 2007-07-13 Bruno Haible <bruno@clisp.org>
6838 New gnulib-tool option --more-symlinks.
6839 * gnulib-tool (func_usage): Document --more-symlinks.
6840 (do_copyrights): New variable.
6841 Recognize option --more-symlinks.
6842 (func_import): Don't add a copyright notice transform to
6843 sed_transform_lib_file if do_copyrights is empty.
6845 2007-07-13 Bruno Haible <bruno@clisp.org>
6847 * lib/vasnprintf.c (decimal_point_char): Define also if
6848 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
6849 && !NEED_PRINTF_DIRECTIVE_A.
6850 Reported by Clemens Koller <clemens.koller@anagramm.de> via
6851 Gary V. Vaughan <gary@gnu.org>.
6853 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
6855 * lib/inttypes_.h: Undo previous change, since it was fixed
6856 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
6858 2007-07-13 Bruno Haible <bruno@clisp.org>
6860 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
6861 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
6863 2007-07-13 Jim Meyering <jim@meyering.net>
6865 df: Don't fail for Tru64's "file-on-file mount".
6866 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
6867 so we fall through and use statfs instead. Details here:
6868 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
6869 Reported by Albert Chin.
6871 2007-07-13 Bruno Haible <bruno@clisp.org>
6873 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
6874 * modules/configmake (License): Likewise.
6875 * modules/gettext (License): Likewise.
6876 * modules/gettext-h (License): Likewise.
6877 * modules/include_next (License): Likewise.
6878 * modules/link-warning (License): Likewise.
6879 * modules/localcharset (License): Likewise.
6880 * modules/localename (License): Likewise.
6881 * modules/lock (License): Likewise.
6882 * modules/relocatable-lib-lgpl (License): Likewise.
6883 * modules/size_max (License): Likewise.
6884 * modules/vasnprintf (License): Likewise.
6885 * modules/wchar (License): Likewise.
6886 * modules/xsize (License): Likewise.
6888 2007-07-13 Bruno Haible <bruno@clisp.org>
6890 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
6891 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
6893 2007-07-12 Bruno Haible <bruno@clisp.org>
6895 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
6896 in the modules files.
6898 2007-07-11 Karl Berry <karl@gnu.org>
6900 * MODULES.html.sh (func_module): use
6901 sed -e '\|^'"${includefile}"'$|d'
6902 instead of /.../d, to avoid errors on $includefile's containing /.
6904 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
6906 * gnulib-tool (func_import): Avoid duplication of --avoid
6908 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
6909 names to `_' in variable names.
6911 2007-07-10 Eric Blake <ebb9@byu.net>
6913 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
6914 * NEWS: Document this change.
6916 2007-07-08 Bruno Haible <bruno@clisp.org>
6918 Update to Unicode 5.0.
6919 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
6920 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
6921 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
6922 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
6923 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
6924 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
6925 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
6926 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
6927 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
6928 U+10A3F, U+1D242..U+1D244.
6929 (nonspacing_table_ind): Update.
6930 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
6931 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
6933 2007-07-08 Bruno Haible <bruno@clisp.org>
6935 Update to Unicode 5.0.
6936 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
6937 code transform. Extend the name index field of unicode_name_to_code and
6938 unicode_code_to_name from 16 to 24 bits.
6939 * lib/uniname/uniname.c (unicode_character_name,
6940 unicode_name_character): Add the range 0x12xxx to the code transform.
6941 * lib/uniname/uninames.h: Regenerated.
6942 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
6944 2007-07-07 Bruno Haible <bruno@clisp.org>
6946 * modules/wcwidth-tests: New file.
6947 * tests/test-wcwidth.c: New file.
6949 Work around MacOS X wcwidth() bug.
6950 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
6951 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
6952 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
6953 original wcwidth in non-UTF-8 locales.
6954 * modules/wcwidth (Depends-on): Add localcharset, streq,
6956 * doc/functions/wcwidth.texi: Update.
6958 2007-07-07 Bruno Haible <bruno@clisp.org>
6960 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
6961 (wcwidth): New declaration.
6962 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
6964 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
6965 here. Prepare for creating <wchar.h> unconditionally.
6966 * modules/wchar (Depends-on): Add link-warning.
6967 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
6968 REPLACE_WCWIDTH, and GL_LINK_WARNING.
6969 * lib/wcwidth.h: Remove file.
6970 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
6971 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
6972 * modules/wcwidth (Files): Remove lib/wcwidth.h.
6973 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
6974 (Include): Replace wcwidth.h with <wchar.h>.
6975 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
6976 * lib/mbchar.h: Don't include wcwidth.h.
6977 * lib/mbswidth.c: Likewise.
6978 * NEWS: Mention the change.
6980 2007-07-07 Bruno Haible <bruno@clisp.org>
6982 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
6983 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
6984 definition with an external declaration.
6985 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
6986 defined as a function. Remove AC_C_INLINE requirement.
6987 * modules/wcwidth (Files): Add lib/wcwidth.c.
6988 (Makefile.am): Remove redundant statement.
6990 2007-07-07 Bruno Haible <bruno@clisp.org>
6992 * MODULES.html.sh (Unicode string functions): Add the new modules.
6994 * tests/uniwidth/test-u32-strwidth.c: New file.
6995 * modules/uniwidth/u32-strwidth-tests: New file.
6997 * lib/uniwidth/u32-strwidth.c: New file.
6998 * modules/uniwidth/u32-strwidth: New file.
7000 * tests/uniwidth/test-u16-strwidth.c: New file.
7001 * modules/uniwidth/u16-strwidth-tests: New file.
7003 * lib/uniwidth/u16-strwidth.c: New file.
7004 * modules/uniwidth/u16-strwidth: New file.
7006 * tests/uniwidth/test-u8-strwidth.c: New file.
7007 * modules/uniwidth/u8-strwidth-tests: New file.
7009 * lib/uniwidth/u8-strwidth.c: New file.
7010 * modules/uniwidth/u8-strwidth: New file.
7012 * tests/uniwidth/test-u32-width.c: New file.
7013 * modules/uniwidth/u32-width-tests: New file.
7015 * lib/uniwidth/u32-width.c: New file.
7016 * modules/uniwidth/u32-width: New file.
7018 * tests/uniwidth/test-u16-width.c: New file.
7019 * modules/uniwidth/u16-width-tests: New file.
7021 * lib/uniwidth/u16-width.c: New file.
7022 * modules/uniwidth/u16-width: New file.
7024 * tests/uniwidth/test-u8-width.c: New file.
7025 * modules/uniwidth/u8-width-tests: New file.
7027 * lib/uniwidth/u8-width.c: New file.
7028 * modules/uniwidth/u8-width: New file.
7030 * tests/uniwidth/test-uc_width.c: New file.
7031 * modules/uniwidth/width-tests: New file.
7033 * lib/uniwidth/width.c: New file, from GNU libiconv.
7034 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
7035 * modules/uniwidth/width: New file.
7037 * lib/uniwidth.h: New file, from GNU libiconv.
7038 * modules/uniwidth/base: New file.
7040 2007-07-07 Bruno Haible <bruno@clisp.org>
7042 * lib/uniname.h: New file, from GNU gettext.
7043 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
7044 * lib/uniname/uninames.h: New file, from GNU gettext.
7045 * lib/uniname/uniname.c: New file, from GNU gettext.
7046 * tests/uniname/test-uninames.sh: New file.
7047 * tests/uniname/test-uninames.c: New file, from GNU gettext.
7048 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
7049 * modules/uniname/base: New file.
7050 * modules/uniname/uniname: New file.
7051 * modules/uniname/uniname-tests: New file.
7052 * MODULES.html.sh (Unicode string functions): Add the new modules.
7054 2007-07-06 Bruno Haible <bruno@clisp.org>
7056 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
7058 2007-07-06 Bruno Haible <bruno@clisp.org>
7060 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
7061 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
7062 includes <cygwin/sys_time.h> which includes <sys/select.h> which
7063 include <sys/time.h>.
7064 Reported by Eric Blake.
7066 2007-07-06 Eric Blake <ebb9@byu.net>
7068 Fix testing canonicalize on cygwin.
7069 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
7070 Revert patch from 2007-06-19.
7071 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
7072 canonicalize module is also in use.
7073 * tests/test-canonicalize.c: New file.
7074 * tests/test-canonicalize.sh: Likewise.
7075 * modules/canonicalize-tests: Likewise.
7077 2007-07-06 Jim Meyering <jim@meyering.net>
7079 * lib/getugroups.c (getugroups): Detect getgrent failure.
7080 Adjust comment to reflect reality: this function may return -1.
7082 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
7084 * build-aux/bootstrap (TP_URL,get_translations): Update to use
7087 (gnulib_mk): New variable.
7089 2007-07-05 Jim Meyering <jim@meyering.net>
7091 Don't let endgrent clobber errno, no matter how improbable.
7092 * lib/getugroups.c (getugroups): Save and restore errno around
7095 Close the group DB even when failing with 2^31 or more members.
7096 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
7098 2007-07-04 Jim Meyering <jim@meyering.net>
7100 * lib/getugroups.h: New file.
7101 * lib/getugroups.c: Include "getugroups.h".
7102 Remove uses of "register" keyword.
7103 Move local variable, "cp", down into scope where used.
7104 Give "username" parameter the "const" attribute.
7105 * modules/getugroups (Files): Add lib/getugroups.h
7107 2007-07-04 Karl Berry <karl@gnu.org>
7109 * MODULES.html.sh (func_all_modules): Complete rename of
7110 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
7112 2007-07-02 Bruno Haible <bruno@clisp.org>
7114 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
7115 mode, when inttypes.h comes from gnulib.
7116 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
7118 2007-07-02 Simon Josefsson <simon@josefsson.org>
7120 * NEWS: Mention lgpl module name change.
7122 * modules/lgpl-2.1: Renamed from lgpl.
7124 * NEWS: Mention gpl module name change.
7126 * modules/gpl-3.0: New file, based on gpl-2.0.
7128 * modules/gpl-2.0: Renamed from gpl.
7130 * modules/gpl: Fix filename, doc/gpl.texi is now found at
7133 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
7135 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
7136 #define __STDC_LIMIT_MACROS temporarily while including
7137 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
7138 Problem reported by Joel E. Denny in
7139 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
7141 2007-07-01 Bruno Haible <bruno@clisp.org>
7143 * lib/unistdio.h: New file.
7144 * lib/unistdio/u-asnprintf.h: New file.
7145 * lib/unistdio/u-asprintf.h: New file.
7146 * lib/unistdio/u-printf-args.c: New file.
7147 * lib/unistdio/u-printf-args.h: New file.
7148 * lib/unistdio/u-printf-parse.h: New file.
7149 * lib/unistdio/u-snprintf.h: New file.
7150 * lib/unistdio/u-sprintf.h: New file.
7151 * lib/unistdio/u-vasprintf.h: New file.
7152 * lib/unistdio/u-vsnprintf.h: New file.
7153 * lib/unistdio/u-vsprintf.h: New file.
7154 * lib/unistdio/ulc-asnprintf.c: New file.
7155 * lib/unistdio/ulc-asprintf.c: New file.
7156 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
7157 * lib/unistdio/ulc-printf-parse.c: New file.
7158 * lib/unistdio/ulc-snprintf.c: New file.
7159 * lib/unistdio/ulc-sprintf.c: New file.
7160 * lib/unistdio/ulc-vasnprintf.c: New file.
7161 * lib/unistdio/ulc-vasprintf.c: New file.
7162 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
7163 * lib/unistdio/ulc-vsnprintf.c: New file.
7164 * lib/unistdio/ulc-vsprintf.c: New file.
7165 * lib/unistdio/u8-asnprintf.c: New file.
7166 * lib/unistdio/u8-asprintf.c: New file.
7167 * lib/unistdio/u8-printf-parse.c: New file.
7168 * lib/unistdio/u8-snprintf.c: New file.
7169 * lib/unistdio/u8-sprintf.c: New file.
7170 * lib/unistdio/u8-vasnprintf.c: New file.
7171 * lib/unistdio/u8-vasprintf.c: New file.
7172 * lib/unistdio/u8-vsnprintf.c: New file.
7173 * lib/unistdio/u8-vsprintf.c: New file.
7174 * lib/unistdio/u8-u8-asnprintf.c: New file.
7175 * lib/unistdio/u8-u8-asprintf.c: New file.
7176 * lib/unistdio/u8-u8-snprintf.c: New file.
7177 * lib/unistdio/u8-u8-sprintf.c: New file.
7178 * lib/unistdio/u8-u8-vasnprintf.c: New file.
7179 * lib/unistdio/u8-u8-vasprintf.c: New file.
7180 * lib/unistdio/u8-u8-vsnprintf.c: New file.
7181 * lib/unistdio/u8-u8-vsprintf.c: New file.
7182 * lib/unistdio/u16-asnprintf.c: New file.
7183 * lib/unistdio/u16-asprintf.c: New file.
7184 * lib/unistdio/u16-printf-parse.c: New file.
7185 * lib/unistdio/u16-snprintf.c: New file.
7186 * lib/unistdio/u16-sprintf.c: New file.
7187 * lib/unistdio/u16-vasnprintf.c: New file.
7188 * lib/unistdio/u16-vasprintf.c: New file.
7189 * lib/unistdio/u16-vsnprintf.c: New file.
7190 * lib/unistdio/u16-vsprintf.c: New file.
7191 * lib/unistdio/u16-u16-asnprintf.c: New file.
7192 * lib/unistdio/u16-u16-asprintf.c: New file.
7193 * lib/unistdio/u16-u16-snprintf.c: New file.
7194 * lib/unistdio/u16-u16-sprintf.c: New file.
7195 * lib/unistdio/u16-u16-vasnprintf.c: New file.
7196 * lib/unistdio/u16-u16-vasprintf.c: New file.
7197 * lib/unistdio/u16-u16-vsnprintf.c: New file.
7198 * lib/unistdio/u16-u16-vsprintf.c: New file.
7199 * lib/unistdio/u32-asnprintf.c: New file.
7200 * lib/unistdio/u32-asprintf.c: New file.
7201 * lib/unistdio/u32-printf-parse.c: New file.
7202 * lib/unistdio/u32-snprintf.c: New file.
7203 * lib/unistdio/u32-sprintf.c: New file.
7204 * lib/unistdio/u32-vasnprintf.c: New file.
7205 * lib/unistdio/u32-vasprintf.c: New file.
7206 * lib/unistdio/u32-vsnprintf.c: New file.
7207 * lib/unistdio/u32-vsprintf.c: New file.
7208 * lib/unistdio/u32-u32-asnprintf.c: New file.
7209 * lib/unistdio/u32-u32-asprintf.c: New file.
7210 * lib/unistdio/u32-u32-snprintf.c: New file.
7211 * lib/unistdio/u32-u32-sprintf.c: New file.
7212 * lib/unistdio/u32-u32-vasnprintf.c: New file.
7213 * lib/unistdio/u32-u32-vasprintf.c: New file.
7214 * lib/unistdio/u32-u32-vsnprintf.c: New file.
7215 * lib/unistdio/u32-u32-vsprintf.c: New file.
7216 * tests/unistdio/test-ulc-asnprintf1.c: New file.
7217 * tests/unistdio/test-ulc-asnprintf1.h: New file.
7218 * tests/unistdio/test-ulc-printf1.h: New file.
7219 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
7220 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
7221 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
7222 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
7223 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
7224 * tests/unistdio/test-ulc-vasprintf1.c: New file.
7225 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
7226 * tests/unistdio/test-ulc-vsprintf1.c: New file.
7227 * tests/unistdio/test-u8-asnprintf1.c: New file.
7228 * tests/unistdio/test-u8-asnprintf1.h: New file.
7229 * tests/unistdio/test-u8-printf1.h: New file.
7230 * tests/unistdio/test-u8-vasnprintf1.c: New file.
7231 * tests/unistdio/test-u8-vasnprintf2.c: New file.
7232 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
7233 * tests/unistdio/test-u8-vasnprintf3.c: New file.
7234 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
7235 * tests/unistdio/test-u8-vasprintf1.c: New file.
7236 * tests/unistdio/test-u8-vsnprintf1.c: New file.
7237 * tests/unistdio/test-u8-vsprintf1.c: New file.
7238 * tests/unistdio/test-u16-asnprintf1.c: New file.
7239 * tests/unistdio/test-u16-asnprintf1.h: New file.
7240 * tests/unistdio/test-u16-printf1.h: New file.
7241 * tests/unistdio/test-u16-vasnprintf1.c: New file.
7242 * tests/unistdio/test-u16-vasnprintf2.c: New file.
7243 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
7244 * tests/unistdio/test-u16-vasnprintf3.c: New file.
7245 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
7246 * tests/unistdio/test-u16-vasprintf1.c: New file.
7247 * tests/unistdio/test-u16-vsnprintf1.c: New file.
7248 * tests/unistdio/test-u16-vsprintf1.c: New file.
7249 * tests/unistdio/test-u32-asnprintf1.c: New file.
7250 * tests/unistdio/test-u32-asnprintf1.h: New file.
7251 * tests/unistdio/test-u32-printf1.h: New file.
7252 * tests/unistdio/test-u32-vasnprintf1.c: New file.
7253 * tests/unistdio/test-u32-vasnprintf2.c: New file.
7254 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
7255 * tests/unistdio/test-u32-vasnprintf3.c: New file.
7256 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
7257 * tests/unistdio/test-u32-vasprintf1.c: New file.
7258 * tests/unistdio/test-u32-vsnprintf1.c: New file.
7259 * tests/unistdio/test-u32-vsprintf1.c: New file.
7260 * modules/unistdio/base: New file.
7261 * modules/unistdio/u-printf-args: New file.
7262 * modules/unistdio/ulc-asnprintf: New file.
7263 * modules/unistdio/ulc-asprintf: New file.
7264 * modules/unistdio/ulc-fprintf: New file.
7265 * modules/unistdio/ulc-printf-parse: New file.
7266 * modules/unistdio/ulc-snprintf: New file.
7267 * modules/unistdio/ulc-sprintf: New file.
7268 * modules/unistdio/ulc-vasnprintf: New file.
7269 * modules/unistdio/ulc-vasprintf: New file.
7270 * modules/unistdio/ulc-vfprintf: New file.
7271 * modules/unistdio/ulc-vsnprintf: New file.
7272 * modules/unistdio/ulc-vsprintf: New file.
7273 * modules/unistdio/u8-asnprintf: New file.
7274 * modules/unistdio/u8-asprintf: New file.
7275 * modules/unistdio/u8-printf-parse: New file.
7276 * modules/unistdio/u8-snprintf: New file.
7277 * modules/unistdio/u8-sprintf: New file.
7278 * modules/unistdio/u8-vasnprintf: New file.
7279 * modules/unistdio/u8-vasprintf: New file.
7280 * modules/unistdio/u8-vsnprintf: New file.
7281 * modules/unistdio/u8-vsprintf: New file.
7282 * modules/unistdio/u8-u8-asnprintf: New file.
7283 * modules/unistdio/u8-u8-asprintf: New file.
7284 * modules/unistdio/u8-u8-snprintf: New file.
7285 * modules/unistdio/u8-u8-sprintf: New file.
7286 * modules/unistdio/u8-u8-vasnprintf: New file.
7287 * modules/unistdio/u8-u8-vasprintf: New file.
7288 * modules/unistdio/u8-u8-vsnprintf: New file.
7289 * modules/unistdio/u8-u8-vsprintf: New file.
7290 * modules/unistdio/u16-asnprintf: New file.
7291 * modules/unistdio/u16-asprintf: New file.
7292 * modules/unistdio/u16-printf-parse: New file.
7293 * modules/unistdio/u16-snprintf: New file.
7294 * modules/unistdio/u16-sprintf: New file.
7295 * modules/unistdio/u16-vasnprintf: New file.
7296 * modules/unistdio/u16-vasprintf: New file.
7297 * modules/unistdio/u16-vsnprintf: New file.
7298 * modules/unistdio/u16-vsprintf: New file.
7299 * modules/unistdio/u16-u16-asnprintf: New file.
7300 * modules/unistdio/u16-u16-asprintf: New file.
7301 * modules/unistdio/u16-u16-snprintf: New file.
7302 * modules/unistdio/u16-u16-sprintf: New file.
7303 * modules/unistdio/u16-u16-vasnprintf: New file.
7304 * modules/unistdio/u16-u16-vasprintf: New file.
7305 * modules/unistdio/u16-u16-vsnprintf: New file.
7306 * modules/unistdio/u16-u16-vsprintf: New file.
7307 * modules/unistdio/u32-asnprintf: New file.
7308 * modules/unistdio/u32-asprintf: New file.
7309 * modules/unistdio/u32-printf-parse: New file.
7310 * modules/unistdio/u32-snprintf: New file.
7311 * modules/unistdio/u32-sprintf: New file.
7312 * modules/unistdio/u32-vasnprintf: New file.
7313 * modules/unistdio/u32-vasprintf: New file.
7314 * modules/unistdio/u32-vsnprintf: New file.
7315 * modules/unistdio/u32-vsprintf: New file.
7316 * modules/unistdio/u32-u32-asnprintf: New file.
7317 * modules/unistdio/u32-u32-asprintf: New file.
7318 * modules/unistdio/u32-u32-snprintf: New file.
7319 * modules/unistdio/u32-u32-sprintf: New file.
7320 * modules/unistdio/u32-u32-vasnprintf: New file.
7321 * modules/unistdio/u32-u32-vasprintf: New file.
7322 * modules/unistdio/u32-u32-vsnprintf: New file.
7323 * modules/unistdio/u32-u32-vsprintf: New file.
7324 * modules/unistdio/ulc-asnprintf-tests: New file.
7325 * modules/unistdio/ulc-vasnprintf-tests: New file.
7326 * modules/unistdio/ulc-vasprintf-tests: New file.
7327 * modules/unistdio/ulc-vsnprintf-tests: New file.
7328 * modules/unistdio/ulc-vsprintf-tests: New file.
7329 * modules/unistdio/u8-asnprintf-tests: New file.
7330 * modules/unistdio/u8-vasnprintf-tests: New file.
7331 * modules/unistdio/u8-vasprintf-tests: New file.
7332 * modules/unistdio/u8-vsnprintf-tests: New file.
7333 * modules/unistdio/u8-vsprintf-tests: New file.
7334 * modules/unistdio/u16-asnprintf-tests: New file.
7335 * modules/unistdio/u16-vasnprintf-tests: New file.
7336 * modules/unistdio/u16-vasprintf-tests: New file.
7337 * modules/unistdio/u16-vsnprintf-tests: New file.
7338 * modules/unistdio/u16-vsprintf-tests: New file.
7339 * modules/unistdio/u32-asnprintf-tests: New file.
7340 * modules/unistdio/u32-vasnprintf-tests: New file.
7341 * modules/unistdio/u32-vasprintf-tests: New file.
7342 * modules/unistdio/u32-vsnprintf-tests: New file.
7343 * modules/unistdio/u32-vsprintf-tests: New file.
7344 * MODULES.html.sh (Unicode string functions): Add the new modules.
7346 2007-07-01 Bruno Haible <bruno@clisp.org>
7348 * lib/sprintf.c (sprintf): Limit the available length estimation,
7349 to avoid address wraparound.
7350 * lib/vsprintf.c (vsprintf): Likewise.
7351 * modules/sprintf-posix (Dependencies): Add stdint.
7352 * modules/vsprintf-posix (Dependencies): Likewise.
7354 2007-07-01 Bruno Haible <bruno@clisp.org>
7356 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
7357 Windows PATH as well. Conservative double-quoting. Comments.
7359 2007-07-01 Bruno Haible <bruno@clisp.org>
7360 Eric Blake <ebb9@byu.net>
7361 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7363 * gnulib-tool (self_abspathname): Fix algorithm to cope with
7364 empty components in $PATH, denoting '.'.
7366 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7368 * gnulib-tool: Fix indentation.
7369 (func_create_megatestdir): Likewise.
7370 Report by Bruno Haible.
7372 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7375 * build-aux/gnupload: Fix shell portability issues with for loops.
7376 Report by Karl Berry.
7378 2007-06-29 Simon Josefsson <simon@josefsson.org>
7380 * build-aux/maint.mk (POURL): Use translationproject.org.
7382 2007-06-27 Simon Josefsson <simon@josefsson.org>
7383 Bruno Haible <bruno@clisp.org>
7385 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
7386 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
7387 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
7388 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
7389 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
7391 2007-06-27 Bruno Haible <bruno@clisp.org>
7393 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
7394 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
7396 2007-06-26 Karl Berry <karl@gnu.org>
7398 * MODULES.html.sh: remove xreadlink-with-size.
7400 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
7402 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
7403 method that I hope also handles the double-include problem noted
7405 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
7407 2007-06-23 Bruno Haible <bruno@clisp.org>
7409 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7410 Don't let the 'mostlyclean' target fail if the last subdirectory could
7412 Reported by Karl Berry.
7414 2007-06-23 Bruno Haible <bruno@clisp.org>
7416 * gnulib-tool (echo): Add a speedier workaround for ksh.
7417 * tests/test-echo.sh: Likewise.
7419 2007-06-23 Bruno Haible <bruno@clisp.org>
7421 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
7422 * tests/test-echo.sh: Likewise.
7424 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7426 * gnulib-tool (IFS): Initialize early, so we don't set it to
7428 (self_abspathname): Rewrite algorithm to set it, reindent.
7429 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
7430 (func_create_megatestdir): Merge some sed scripts.
7432 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
7434 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
7435 exposed by Sun Studio 11 cc on Solaris 8.
7437 2007-06-22 Bruno Haible <bruno@clisp.org>
7439 * gnulib-tool (echo): Ensure the echo primitive does not interpret
7441 * tests/test-echo.sh: New file.
7443 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7445 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
7446 simplify `sed_replace_build_aux' scripts, they are portable but
7447 echoing them with `echo' is not.
7448 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
7450 2007-06-21 Karl Berry <karl@gnu.org>
7452 * config/srclist.txt: guess we can't handle the licenses via
7453 srclist at the moment.
7455 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
7457 * MODULES.html.sh: Add include_next.
7458 * modules/include_next: New file.
7460 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
7462 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
7464 (gl_CHECK_NEXT_HEADERS): New macro.
7465 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
7466 the obsolescent gl_ABSOLUTE_HEADER.
7467 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
7468 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
7469 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7470 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7471 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7472 * m4/math_h.m4 (gl_MATH_H): Likewise.
7473 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
7474 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7475 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7476 * m4/stdint.m4 (gl_STDINT_H): Likewise.
7477 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7478 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7479 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
7480 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7481 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7482 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7483 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7484 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
7485 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
7486 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7487 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7488 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7489 * m4/inttypes.m4 (gl_INTTYPES_H): Define
7490 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
7491 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
7492 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
7493 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
7494 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
7495 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
7496 * lib/float_.h: Likewise.
7497 * lib/inttypes_.h: Likewise.
7498 * lib/math_.h: Likewise.
7499 * lib/search_.h: Likewise.
7500 * lib/signal_.h: Likewise.
7501 * lib/stdint_.h: Likewise.
7502 * lib/stdio_.h: Likewise.
7503 * lib/stdlib_.h: Likewise.
7504 * lib/string_.h: Likewise.
7505 * lib/sys_stat_.h: Likewise.
7506 * lib/sys_time_.h: Likewise.
7507 * lib/time_.h: Likewise.
7508 * lib/unistd_.h: Likewise.
7509 * lib/wchar_.h: Likewise.
7510 * lib/wctype_.h: Likewise.
7511 * lib/dirent_.h: Likewise.
7512 * lib/iconv_.h: Likewise.
7513 * lib/locale_.h: Likewise.
7514 * lib/netinet_in_.h: Likewise.
7515 * lib/sys_select_.h: Likewise.
7516 * lib/sys_socket_.h: Likewise.
7517 * lib/sysexits_.h: Likewise.
7518 * modules/fcntl (Depends-on): Depend on include_next, not
7520 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
7521 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
7522 * modules/fchdir: Likewise.
7523 * modules/float: Likewise.
7524 * modules/iconv_open: Likewise.
7525 * modules/inttypes: Likewise.
7526 * modules/locale: Likewise.
7527 * modules/math: Likewise.
7528 * modules/netinet_in: Likewise.
7529 * modules/search: Likewise.
7530 * modules/signal: Likewise.
7531 * modules/stdint: Likewise.
7532 * modules/stdio: Likewise.
7533 * modules/stdlib: Likewise.
7534 * modules/string: Likewise.
7535 * modules/sys_select: Likewise.
7536 * modules/sys_socket: Likewise.
7537 * modules/sys_stat: Likewise.
7538 * modules/sys_time: Likewise.
7539 * modules/sysexits: Likewise.
7540 * modules/time: Likewise.
7541 * modules/unistd: Likewise.
7542 * modules/wchar: Likewise.
7543 * modules/wctype: Likewise.
7544 * modules/sys_stat: Change maintainer to "all".
7545 * modules/unistd: Likewise.
7547 2007-06-20 Karl Berry <karl@gnu.org>
7549 * config/srclist.txt: track www changes in license files.
7551 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
7553 * build-aux/bootstrap: Remove stray dot.
7554 Make sure build_aux settings are honored when linking
7557 2007-06-19 Eric Blake <ebb9@byu.net>
7559 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
7560 Allow compilation on cygwin.
7562 2007-06-19 Jim Meyering <jim@meyering.net>
7564 xreadlink-with-size: Remove module. No longer used.
7565 Ex-callers now use xreadlink or mreadlink-with-size.
7566 * modules/xreadlink-with-size: Remove module.
7567 * lib/xreadlink-with-size.c: Remove file.
7568 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
7569 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
7570 just before the function definition *is* accurate.
7572 Eliminate one way canonicalize_filename_mode could exit.
7573 * lib/canonicalize.c (canonicalize_filename_mode):
7574 Use mreadlink_with_size, not xreadlink_with_size.
7576 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
7578 Detect porting problems to FreeBSD/arm, which has time_t wider than
7579 long int. Original problem reported for GNU diff by Xin Li in
7580 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
7581 * modules/getdate (Depends-on): Add intprops, verify.
7582 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
7583 is an integer type no wider than long int.
7585 2007-06-18 Jim Meyering <jim@meyering.net>
7587 New module: mreadlink-with-size.
7588 * MODULES.html.sh: Add mreadlink-with-size.
7589 * modules/mreadlink-with-size: New module
7590 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
7591 not xreadlink-with-size.
7592 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
7594 2007-06-16 Bruno Haible <bruno@clisp.org>
7596 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
7597 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
7598 Reported by Gary V. Vaughan <gary@gnu.org>.
7600 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
7602 Revamp lchown so that it lives in unistd.h where it belongs.
7603 * lib/lchown.h: Remove.
7604 * lib/dirchownmod.c: Don't include lib/lchown.h.
7605 * lib/fchownat.c: Likewise.
7606 * lib/openat.c: Likewise.
7607 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
7608 does not follow symlinks.
7609 (EOPNOTSUPP): Define if not defined.
7610 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
7613 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
7614 Do not check for lchown decl.
7616 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
7618 * modules/chown: Make it clear it follows symlinks.
7619 * modules/lchown: Make it clear it doesn't follow symlinks.
7620 (Files): Remove lib/lchown.h
7621 (Depends-on): Add unistd.
7622 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
7623 (Include): Include <unistd.h>, not "lchown.h".
7624 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
7627 2007-06-15 Jim Meyering <jim@meyering.net>
7629 Change license (GPL to LGPL) of fsusage and dependents.
7630 * modules/fsusage (License): Change to LGPL.
7631 * modules/full-read (License): Likewise.
7632 * modules/full-write (License): Likewise.
7633 * modules/safe-read (License): Likewise.
7634 * modules/safe-write (License): Likewise.
7636 2007-06-14 Ben Pfaff <blp@gnu.org>
7638 Missing part of allocsa -> malloca transition.
7639 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
7642 2007-06-12 Bruno Haible <bruno@clisp.org>
7644 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
7645 to ia64, x86_64, i386.
7646 Reported by Eric Blake.
7648 2007-06-12 Bruno Haible <bruno@clisp.org>
7650 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
7651 cross-compiling to x86_64.
7653 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
7655 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
7656 glitch reported by Ralf Wildenhues in
7657 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
7659 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
7662 2007-06-11 Bruno Haible <bruno@clisp.org>
7664 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
7666 Reported by Eric Blake.
7668 2007-06-10 Bruno Haible <bruno@clisp.org>
7670 Prepare vasnprintf code for use with Unicode strings.
7671 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
7672 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
7674 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
7675 a_u32_string variants.
7676 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
7677 * lib/printf-args.c: Don't include config.h and the specification
7678 header if PRINTF_FETCHARGS is already defined.
7679 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
7680 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
7681 TYPE_U16_STRING, TYPE_U32_STRING.
7682 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
7683 u16_directive, u16_directives, u32_directive, u32_directives): New
7685 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
7687 * lib/printf-parse.c: Don't include config.h and the specification
7688 header if PRINTF_PARSE is already defined. Eliminate the set of
7689 parameters for WIDE_CHAR_VERSION; the user of this file must provide
7690 them now. Include c-ctype.h.
7691 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
7692 directive and CHAR_T_ONLY_ASCII.
7693 * lib/vasnprintf.c: Don't include config.h and the specification header
7694 if VASNPRINTF is already defined.
7695 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
7696 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
7697 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
7698 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
7699 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
7700 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
7702 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
7703 pad_ourselves also in this case, with the 'c' and 's' directives, and
7704 with a different notion of "width".
7705 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
7707 2007-06-10 Bruno Haible <bruno@clisp.org>
7709 * modules/unistr/u32-mbsnlen: New file.
7710 * lib/unistr/u32-mbsnlen.c: New file.
7712 * modules/unistr/u16-mbsnlen: New file.
7713 * lib/unistr/u16-mbsnlen.c: New file.
7715 * modules/unistr/u8-mbsnlen: New file.
7716 * lib/unistr/u8-mbsnlen.c: New file.
7718 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
7721 2007-06-10 Bruno Haible <bruno@clisp.org>
7723 * lib/string_.h (mbsnlen): New declaration.
7724 * lib/mbsnlen.c: New file.
7725 * m4/mbsnlen.m4: New file.
7726 * modules/mbsnlen: New file.
7727 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
7728 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
7729 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
7731 2007-06-10 Bruno Haible <bruno@clisp.org>
7733 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
7735 2007-06-10 Bruno Haible <bruno@clisp.org>
7737 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
7738 * lib/mbuiter.h: Likewise.
7740 2007-06-10 Bruno Haible <bruno@clisp.org>
7742 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
7745 2007-06-10 Karl Berry <karl@gnu.org>
7747 * config/srclist.txt: remove gettext entries, Bruno prefers
7748 to update individually.
7750 2007-06-10 Bruno Haible <bruno@clisp.org>
7752 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
7753 'maxlen'. Ensure only length + width bytes are allocated, not
7756 2007-06-09 Bruno Haible <bruno@clisp.org>
7758 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
7759 (CHAR_T): Remove macro.
7760 (VASNPRINTF): Update.
7762 2007-06-09 Bruno Haible <bruno@clisp.org>
7764 * MODULES.html.sh (Unicode string functions): Add the new modules.
7766 * modules/uniconv/u32-conv-to-enc: New file.
7767 * lib/uniconv/u32-conv-to-enc.c: New file.
7768 * modules/uniconv/u32-conv-to-enc-tests: New file.
7769 * tests/uniconv/test-u32-conv-to-enc.c: New file.
7771 * modules/uniconv/u16-conv-to-enc: New file.
7772 * lib/uniconv/u16-conv-to-enc.c: New file.
7773 * lib/uniconv/u-conv-to-enc.h: New file.
7774 * modules/uniconv/u16-conv-to-enc-tests: New file.
7775 * tests/uniconv/test-u16-conv-to-enc.c: New file.
7777 * modules/uniconv/u8-conv-to-enc: New file.
7778 * lib/uniconv/u8-conv-to-enc.c: New file.
7779 * modules/uniconv/u8-conv-to-enc-tests: New file.
7780 * tests/uniconv/test-u8-conv-to-enc.c: New file.
7782 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
7783 u32_conv_to_encoding): New declarations.
7785 2007-06-09 Bruno Haible <bruno@clisp.org>
7787 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
7789 2007-06-09 Bruno Haible <bruno@clisp.org>
7791 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
7792 * modules/malloca: Renamed from modules/allocsa, updated.
7793 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
7794 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
7795 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
7796 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
7797 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
7798 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
7799 * modules/xmalloca: Renamed from modules/xallocsa, updated.
7800 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
7801 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
7802 * modules/c-strcasestr (Depends-on): Update.
7803 * lib/c-strcasestr.c: Update.
7804 * modules/c-strstr (Depends-on): Update.
7805 * lib/c-strstr.c: Update.
7806 * modules/canonicalize-lgpl (Depends-on): Update.
7807 * lib/canonicalize-lgpl.c: Update.
7808 * modules/clean-temp (Depends-on): Update.
7809 * lib/clean-temp.c: Update.
7810 * modules/csharpcomp (Depends-on): Update.
7811 * lib/csharpcomp.c: Update.
7812 * modules/csharpexec (Depends-on): Update.
7813 * lib/csharpexec.c: Update.
7814 * modules/javacomp (Depends-on): Update.
7815 * lib/javacomp.c: Update.
7816 * modules/javaexec (Depends-on): Update.
7817 * lib/javaexec.c: Update.
7818 * modules/mbscasestr (Depends-on): Update.
7819 * lib/mbscasestr.c: Update.
7820 * modules/mbsstr (Depends-on): Update.
7821 * lib/mbsstr.c: Update.
7822 * modules/setenv (Depends-on): Update.
7823 * lib/setenv.c: Update.
7824 * modules/strcasestr (Depends-on): Update.
7825 * lib/strcasestr.c: Update.
7826 * modules/striconveha (Depends-on): Update.
7827 * lib/striconveha.c: Update.
7828 * modules/relocatable-prog-wrapper (Files): Update.
7829 * lib/relocwrapper.c: Update.
7830 * build-aux/install-reloc: Update.
7831 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
7833 2007-06-08 Bruno Haible <bruno@clisp.org>
7836 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
7837 * lib/fpurge.c (fpurge): Likewise.
7838 * lib/freading.c (freading): Likewise.
7839 * lib/fseeko.c (rpl_fseeko): Likewise.
7840 * lib/fseterr.c (fseterr): Likewise.
7841 * lib/fwriting.c (fwriting): Likewise.
7842 * tests/test-fflush.c (main): Avoid a failure on uClibc.
7844 2007-06-08 Bruno Haible <bruno@clisp.org>
7846 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
7847 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
7848 * modules/gettext (Files): Add m4/intlmacosx.m4.
7850 2007-06-07 Bruno Haible <bruno@clisp.org>
7852 * modules/localename-tests: New file.
7853 * tests/test-localename.c: New file.
7855 New module 'localename'.
7856 * lib/localename.h: New file.
7857 * lib/localename.c: New file, from GNU gettext.
7858 * m4/localename.m4: New file.
7859 * modules/localename: New file.
7861 2007-06-07 Bruno Haible <bruno@clisp.org>
7863 Work around the lack of <wchar.h> on some builds of uClibc.
7864 * doc/headers/wchar.texi: Update.
7865 * lib/wchar_.h: Include <wchar.h> only if it exists.
7866 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
7867 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
7868 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
7870 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
7871 * modules/mbfile (Depends-on): Add wchar.
7872 * modules/mbiter (Depends-on): Likewise.
7873 * modules/mbuiter (Depends-on): Likewise.
7874 Reported by Simon Josefsson.
7876 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
7878 Work around problem reported by Steven M. Schweda in
7879 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
7880 Tru64 5.1B with the Compaq compiler environment installed declares
7881 an 'isblank' function but does not define it in the C library.
7882 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
7883 * lib/regex_internal.h (isblank): Likewise.
7884 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
7885 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7887 2007-06-05 Bruno Haible <bruno@clisp.org>
7889 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
7891 * modules/printf-safe: New file.
7892 * modules/fprintf-posix (Depends-on): Add printf-safe.
7893 * modules/printf-posix (Depends-on): Likewise.
7894 * modules/snprintf-posix (Depends-on): Likewise.
7895 * modules/sprintf-posix (Depends-on): Likewise.
7896 * modules/vasnprintf-posix (Depends-on): Likewise.
7897 * modules/vasprintf-posix (Depends-on): Likewise.
7898 * modules/vfprintf-posix (Depends-on): Likewise.
7899 * modules/vprintf-posix (Depends-on): Likewise.
7900 * modules/vsnprintf-posix (Depends-on): Likewise.
7901 * modules/vsprintf-posix (Depends-on): Likewise.
7902 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7903 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
7904 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
7905 "no" on i386, x86_64, ia64.
7906 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
7907 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7908 on i386, x86_64, ia64.
7909 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
7910 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7911 on i386, x86_64, ia64.
7912 * tests/test-vasnprintf-posix.c: Include float.h.
7913 (LDBL80_WORDS): New macro.
7914 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7915 on i386, x86_64, ia64.
7916 * tests/test-vasprintf-posix.c: Include float.h.
7917 (LDBL80_WORDS): New macro.
7918 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
7919 on i386, x86_64, ia64.
7920 * tests/test-snprintf-posix.c: Include float.h.
7921 * tests/test-sprintf-posix.c: Likewise.
7922 * tests/test-vsnprintf-posix.c: Likewise.
7923 * tests/test-vsprintf-posix.c: Likewise.
7925 2007-06-05 Bruno Haible <bruno@clisp.org>
7927 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
7928 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
7929 non-IEEE numbers on i386, x86_64, ia64.
7930 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
7931 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
7932 * tests/test-isnanl.h: Include float.h.
7933 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
7935 2007-06-05 Bruno Haible <bruno@clisp.org>
7937 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
7938 also the %a / %A. Handle the %a / %A code before this extra handling.
7940 2007-06-05 Bruno Haible <bruno@clisp.org>
7942 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
7943 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
7945 2007-06-05 Bruno Haible <bruno@clisp.org>
7947 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
7948 typo in variable name.
7950 2007-06-05 Eric Blake <ebb9@byu.net>
7952 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
7953 Reported by Simon Josefsson.
7955 2007-06-04 Bruno Haible <bruno@clisp.org>
7957 Avoid test failures on some PowerPC platforms.
7958 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
7959 Define differently for PowerPC.
7960 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
7961 Reported by Gary V. Vaughan <gary@gnu.org>.
7963 2007-06-02 Bruno Haible <bruno@clisp.org>
7965 Fix test-stdint failure on FreeBSD/ia64.
7966 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
7967 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
7968 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
7969 * doc/headers/stdint.texi: Update.
7971 2007-06-01 Bruno Haible <bruno@clisp.org>
7973 * tests/test-binary-io.c (main): Pass a third argument to open().
7974 Reported by Gary V. Vaughan <gary@gnu.org>.
7976 2007-06-01 Bruno Haible <bruno@clisp.org>
7978 * doc/functions/frexpl.texi: Update for mingw.
7980 2007-06-01 Bruno Haible <bruno@clisp.org>
7982 * tests/test-lseek.c (main): Disable test of errno for invalid third
7984 * doc/functions/lseek.texi: Update.
7985 Reported by Gary V. Vaughan <gary@gnu.org>.
7987 2007-05-28 Bruno Haible <bruno@clisp.org>
7989 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
7991 2007-05-31 Eric Blake <ebb9@byu.net>
7993 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
7996 2007-05-30 Eric Blake <ebb9@byu.net>
7997 and Bruno Haible <bruno@clisp.org>
7999 Work around mingw test failures exposed by m4-1.4.9b.
8000 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
8001 * tests/test-unistd.c: Disable uid_t and git_t tests for the
8004 2007-05-30 Bruno Haible <bruno@clisp.org>
8006 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
8007 assuming that they are closed. Needed on HP-UX 11.
8009 2007-05-29 Bruno Haible <bruno@clisp.org>
8011 Fix a problem with #include_next.
8012 * lib/dirent_.h: Split the double-inclusion guard.
8013 * lib/fcntl_.h: Likewise.
8014 * lib/float_.h: Likewise.
8015 * lib/iconv_.h: Likewise.
8016 * lib/inttypes_.h: Likewise.
8017 * lib/locale_.h: Likewise.
8018 * lib/math_.h: Likewise.
8019 * lib/netinet_in_.h: Likewise.
8020 * lib/search_.h: Likewise.
8021 * lib/signal_.h: Likewise.
8022 * lib/stdint_.h: Likewise.
8023 * lib/stdio_.h: Likewise.
8024 * lib/stdlib_.h: Likewise.
8025 * lib/string_.h: Likewise.
8026 * lib/sys_select_.h: Likewise.
8027 * lib/sys_socket_.h: Likewise.
8028 * lib/sys_stat_.h: Likewise.
8029 * lib/sys_time_.h: Likewise.
8030 * lib/sysexits_.h: Likewise.
8031 * lib/time_.h: Likewise.
8032 * lib/unistd_.h: Likewise.
8033 * lib/wchar_.h: Likewise.
8034 * lib/wctype_.h: Likewise.
8036 2007-05-29 Bruno Haible <bruno@clisp.org>
8038 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
8041 2007-05-29 Bruno Haible <bruno@clisp.org>
8043 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
8045 Reported by Eric Blake.
8047 2007-05-29 Bruno Haible <bruno@clisp.org>
8049 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
8052 2007-05-29 Eric Blake <ebb9@byu.net>
8053 Bruno Haible <bruno@clisp.org>
8055 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
8058 2007-05-28 Eric Blake <ebb9@byu.net>
8060 * modules/closein-tests (test_closein_LDADD): Support test on
8061 cygwin with libtool.
8063 2007-05-28 Bruno Haible <bruno@clisp.org>
8065 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
8066 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8067 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8068 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8069 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8070 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8071 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8072 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8073 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8075 2007-05-28 Eric Blake <ebb9@byu.net>
8077 Unconditionally include <config.h> in unit tests.
8078 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
8079 * tests/test-allocsa.c, tests/test-arcfour.c,
8080 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
8081 tests/test-array_list.c, tests/test-array_oset.c,
8082 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
8083 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
8084 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
8085 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
8086 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
8087 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
8088 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
8089 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
8090 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
8091 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
8092 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
8093 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
8094 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
8095 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
8096 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
8097 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
8098 test-md5.c, test-memmem.c, test-printf-posix.c,
8099 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
8100 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
8101 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
8102 test-strcasestr.c, test-striconv.c, test-striconveh.c,
8103 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
8104 test-vasnprintf-posix2.c, test-vasnprintf.c,
8105 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
8106 test-vfprintf-posix.c, test-vprintf-posix.c,
8107 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
8108 test-xvasprintf.c: Likewise.
8110 2007-05-28 Bruno Haible <bruno@clisp.org>
8112 * gnulib-tool (func_import): Remember the --with-tests command-line
8113 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
8114 Reported by Eric Blake.
8116 2007-05-28 Bruno Haible <bruno@clisp.org>
8118 * modules/ftell-tests: New file.
8119 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
8120 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
8122 * lib/ftell.c: New file.
8123 * modules/ftell: New file.
8124 * m4/ftell.m4: New file.
8125 * doc/functions/ftell.texi: Update.
8126 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
8128 * lib/stdio_.h (rpl_ftell): New declaration.
8129 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
8132 2007-05-28 Eric Blake <ebb9@byu.net>
8134 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
8136 2007-05-28 Bruno Haible <bruno@clisp.org>
8138 * modules/fseek-tests: New file.
8139 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
8140 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
8142 * lib/fseek.c: New file.
8143 * modules/fseek: New file.
8144 * m4/fseek.m4: New file.
8145 * doc/functions/fseek.texi: Update.
8146 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
8148 * lib/stdio_.h (rpl_fseek): New declaration.
8149 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
8152 2007-05-28 Bruno Haible <bruno@clisp.org>
8154 * lib/stdio_.h (fflush): More comments.
8156 2007-05-28 Bruno Haible <bruno@clisp.org>
8158 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
8161 2007-05-28 Eric Blake <ebb9@byu.net>
8163 Improve lseek module.
8164 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
8165 * lib/unistd_.h (lseek): Scale back link warning message.
8166 * tests/test-lseek.c: Beef up test.
8167 * tests/test-lseek.sh: Exercise more facets of lseek.
8168 Reported by Bruno Haible.
8170 2007-05-28 Bruno Haible <bruno@clisp.org>
8172 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
8175 2007-05-27 Bruno Haible <bruno@clisp.org>
8177 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
8179 2007-05-27 Bruno Haible <bruno@clisp.org>
8181 * modules/openmp: New file.
8182 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
8185 2007-05-26 Bruno Haible <bruno@clisp.org>
8187 * modules/chdir-long (Depends-on): Add fchdir.
8188 * modules/chdir-safer (Depends-on): Likewise.
8189 * modules/fts (Depends-on): Likewise.
8190 * modules/fts-lgpl (Depends-on): Likewise.
8191 * modules/openat (Depends-on): Likewise.
8192 * modules/savewd (Depends-on): Likewise.
8194 2007-05-24 Eric Blake <ebb9@byu.net>
8197 * modules/lseek: New module.
8198 * m4/lseek.m4: New file.
8199 * lib/lseek.c: New file.
8200 * modules/lseek-tests: New file.
8201 * tests/test-lseek.c: New file.
8202 * tests/test-lseek.sh: New file.
8203 * MODULES.html.sh: Document lseek module.
8204 * modules/fflush (Depends-on): Add lseek, fseeko.
8205 * modules/fseeko (Depends-on): Likewise.
8206 * modules/ftello (Depends-on): Likewise.
8207 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
8209 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
8211 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
8212 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
8213 * lib/ftello.c (rpl_ftello): Likewise.
8214 * tests/test-fseeko.c (main): Test this.
8215 * tests/test-fseeko.sh: Likewise.
8216 * tests/test-ftello.c (main): Likewise.
8217 * tests/test-ftello.sh: Likewise.
8218 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
8219 implies replacing fseek.
8220 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
8222 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
8223 * modules/unistd (Makefile.am): Likewise.
8224 * lib/unistd_.h (lseek): Declare a replacement.
8225 * doc/functions/lseek.texi (lseek): Document this fix.
8226 * doc/functions/fseek.texi (fseek): Likewise.
8227 * doc/functions/ftell.texi (ftell): Likewise.
8229 2007-05-24 Bruno Haible <bruno@clisp.org>
8231 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
8232 in the printed representation of a NaN.
8233 * tests/test-vasprintf-posix.c (test_function): Likewise.
8234 * tests/test-snprintf-posix.h (test_function): Likewise.
8235 * tests/test-sprintf-posix.h (test_function): Likewise.
8236 Reported by Eric Blake.
8238 2007-05-23 Eric Blake <ebb9@byu.net>
8240 Fix fseeko/ftello on cygwin 1.5.24.
8241 * doc/functions/fseeko.texi (fseeko): Document the fix.
8242 * doc/functions/ftello.texi (ftello): Document the fix.
8243 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
8244 * doc/functions/stdout.text (stdout): New file.
8245 * doc/functions/stderr.text (stderr): New file.
8246 * doc/gnulib.texi (Function Substitutes): Use new files.
8247 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
8249 * tests/test-ftello.c (main): Likewise for ftello.
8250 * tests/test-fseeko.sh: New file.
8251 * tests/test-ftello.sh: New file.
8252 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
8253 with seekable stdin.
8254 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
8255 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
8256 (gl_REPLACE_FSEEKO): New macro.
8257 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
8258 * modules/fseeko (Files): Distribute fseeko.c.
8259 * modules/ftello (Files): Distribute ftello.c.
8260 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
8262 * lib/ftello.c (rpl_ftello): New file.
8263 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
8265 (gl_STDIN_LARGE_OFFSET): New macro.
8266 * modules/stdio (Makefile.am): Perform the replacement.
8267 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
8269 2007-05-23 Bruno Haible <bruno@clisp.org>
8271 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
8272 GNULIB_POSIXCHECK is defined.
8274 2007-05-21 Bruno Haible <bruno@clisp.org>
8276 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
8277 Check also the output for NaN arguments. When cross-compiling, guess
8279 * lib/vasnprintf.c: Update comments.
8280 * tests/test-vasnprintf-posix.c (strisnan): New function.
8281 (test_function): Use it.
8282 * tests/test-vasprintf-posix.c (strisnan): New function.
8283 (test_function): Use it.
8284 * tests/test-snprintf-posix.h (strisnan): New function.
8285 (test_function): Use it.
8286 * tests/test-sprintf-posix.h (strisnan): New function.
8287 (test_function): Use it.
8288 Reported by Eric Blake.
8290 2007-05-20 Bruno Haible <bruno@clisp.org>
8292 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
8293 numbers that fails on BeOS.
8294 * doc/functions/frexpl.texi: Update.
8296 2007-05-20 Jim Meyering <jim@meyering.net>
8298 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
8299 forced upon us by glibc-2.6.
8301 2007-05-20 Bruno Haible <bruno@clisp.org>
8303 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
8304 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
8305 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
8306 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
8307 NEED_PRINTF_INFINITE.
8308 (is_infinitel): New function.
8309 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
8310 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
8311 gl_PREREQ_VASNPRINTF_INFINITE.
8312 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
8313 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8314 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
8315 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
8316 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
8317 gl_PREREQ_VASNPRINTF_INFINITE.
8318 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8319 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8320 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8321 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8322 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8323 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8324 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8325 * doc/functions/fprintf.texi: Update.
8326 * doc/functions/printf.texi: Update.
8327 * doc/functions/snprintf.texi: Update.
8328 * doc/functions/sprintf.texi: Update.
8329 * doc/functions/vfprintf.texi: Update.
8330 * doc/functions/vprintf.texi: Update.
8331 * doc/functions/vsnprintf.texi: Update.
8332 * doc/functions/vsprintf.texi: Update.
8334 2007-05-20 Bruno Haible <bruno@clisp.org>
8336 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
8337 was not found in libc.
8338 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8340 2007-05-20 Bruno Haible <bruno@clisp.org>
8342 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
8343 printed as "-nan" instead of "nan".
8344 * tests/test-vasprintf-posix.c (test_function): Likewise.
8345 * tests/test-snprintf-posix.h (test_function): Likewise.
8346 * tests/test-sprintf-posix.h (test_function): Likewise.
8347 Needed for HP-UX 11.
8349 2007-05-20 Jim Meyering <jim@meyering.net>
8351 Fix buggy test for the fchownat-deref bug.
8352 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
8353 symlink required for the run-test. Without it, this test would
8354 always declare that fchownat doesn't work, and client code would
8355 unnecessarily use the replacement function with fixed libc.
8356 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
8357 Reported by Greg Schafer.
8359 2007-05-19 Bruno Haible <bruno@clisp.org>
8361 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
8362 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
8363 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
8364 Needed for IRIX 6.5 and Solaris 2.5.1.
8366 2007-05-19 Bruno Haible <bruno@clisp.org>
8368 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
8369 (test_function): Skip tests involving -0.0 on platforms where
8371 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
8372 (test_function): Skip tests involving -0.0 on platforms where
8374 * tests/test-snprintf-posix.h (have_minus_zero): New function.
8375 (test_function): Skip tests involving -0.0 on platforms where
8377 * tests/test-sprintf-posix.h (have_minus_zero): New function.
8378 (test_function): Skip tests involving -0.0 on platforms where
8380 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
8382 * tests/test-printf-posix.h (test_function): Likewise.
8383 * tests/test-printf-posix.output: Remove all -0.0 related results.
8384 Needed for IRIX 6.5.
8386 2007-05-19 Bruno Haible <bruno@clisp.org>
8388 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
8389 printed as "nan0x7fffffff" instead of "nan".
8390 * tests/test-vasprintf-posix.c (test_function): Likewise.
8391 * tests/test-snprintf-posix.h (test_function): Likewise.
8392 * tests/test-sprintf-posix.h (test_function): Likewise.
8393 * tests/test-fprintf-posix.h (NaN): Remove macro.
8394 (test_function): Remove all NaN related tests.
8395 * tests/test-printf-posix.h (NaN): Remove macro.
8396 (test_function): Remove all NaN related tests.
8397 * tests/test-printf-posix.output: Remove all NaN related results.
8398 Needed for IRIX 6.5.
8400 2007-05-19 Bruno Haible <bruno@clisp.org>
8402 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
8403 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8405 2007-05-19 Bruno Haible <bruno@clisp.org>
8407 * lib/float_.h: New file.
8408 * m4/float_h.m4: New file.
8409 * modules/float: New file.
8410 * modules/isnanl (Dependencies): Add float.
8411 * modules/isnanl-nolibm (Dependencies): Likewise.
8412 * modules/mathl (Dependencies): Likewise.
8413 * modules/printf-frexpl (Dependencies): Likewise.
8414 * modules/signbit (Dependencies): Likewise.
8415 * modules/vasnprintf (Dependencies): Likewise.
8416 * doc/headers/float.texi: Update.
8418 2007-05-19 Jim Meyering <jim@meyering.net>
8420 * lib/utimens.c (gl_futimens): Rename from futimens,
8421 now that glibc-2.6 declares futimens.
8422 * lib/utimens.h: Likewise.
8424 2007-05-19 Bruno Haible <bruno@clisp.org>
8426 Avoid test failures on mingw.
8427 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
8428 * tests/test-printf-posix.sh: Likewise.
8429 * tests/test-vfprintf-posix.sh: Likewise.
8430 * tests/test-vprintf-posix.sh: Likewise.
8432 2007-05-19 Bruno Haible <bruno@clisp.org>
8434 Fix *printf result for NaN, Inf, -0.0 on mingw.
8435 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
8436 * lib/vasnprintf.c: Include math.h and isnan.h.
8437 (is_infinite_or_zero): New function.
8438 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
8439 values in the %f, %F, %e, %E, %g, %G directives.
8440 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
8441 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8442 gl_PRINTF_INFINITE and test its result. Invoke
8443 gl_PREREQ_VASNPRINTF_INFINITE.
8444 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8445 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8446 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8447 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8448 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8449 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8450 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8451 * doc/functions/fprintf.texi: Update.
8452 * doc/functions/printf.texi: Update.
8453 * doc/functions/snprintf.texi: Update.
8454 * doc/functions/sprintf.texi: Update.
8455 * doc/functions/vfprintf.texi: Update.
8456 * doc/functions/vprintf.texi: Update.
8457 * doc/functions/vsnprintf.texi: Update.
8458 * doc/functions/vsprintf.texi: Update.
8460 2007-05-19 Bruno Haible <bruno@clisp.org>
8462 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
8463 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
8464 Instead of multiplying with 10^k, set extra_zeroes to k.
8465 (scale10_round_long_double): Remove function.
8467 2007-05-18 Bruno Haible <bruno@clisp.org>
8469 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
8470 introduced on 2007-05-06.
8472 2007-05-18 Bruno Haible <bruno@clisp.org>
8474 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
8476 * tests/test-vasprintf-posix.c (test_function): Likewise.
8477 * tests/test-snprintf-posix.h (test_function): Likewise.
8478 * tests/test-sprintf-posix.h (test_function): Likewise.
8480 2007-05-18 Bruno Haible <bruno@clisp.org>
8482 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
8483 (strmatch): New function.
8484 (test_function): Test the %f directive on numbers of various exponents.
8485 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
8486 (strmatch): New function.
8487 (test_function): Test the %f directive on numbers of various exponents.
8488 * tests/test-snprintf-posix.h (strmatch): New function.
8489 (test_function): Test the %f directive on numbers of various exponents.
8490 * tests/test-sprintf-posix.h (strmatch): New function.
8491 (test_function): Test the %f directive on numbers of various exponents.
8492 * tests/test-snprintf-posix.c (SIZEOF): New macro.
8493 * tests/test-sprintf-posix.c (SIZEOF): New macro.
8494 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
8495 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
8497 2007-05-18 Bruno Haible <bruno@clisp.org>
8499 Add support for 'long double' number output.
8500 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
8501 * lib/vasnprintf.c: Include math.h and float+.h.
8502 (mp_limb_t): New type.
8503 (GMP_LIMB_BITS): New macro.
8504 (mp_twolimb_t): New type.
8505 (GMP_TWOLIMB_BITS): New macro.
8507 (multiply, divide, convert_to_decimal, decode_long_double,
8508 scale10_round_long_double, scale10_round_decimal_long_double,
8509 floorlog10l): New functions.
8510 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
8511 for the %f, %F, %e, %E, %g, %G directives.
8512 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
8513 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8514 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
8515 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
8516 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8517 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8518 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8519 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8520 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8521 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8522 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8523 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
8524 * modules/snprintf-posix (Depends-on): Likewise.
8525 * modules/sprintf-posix (Depends-on): Likewise.
8526 * modules/vasnprintf-posix (Depends-on): Likewise.
8527 * modules/vasprintf-posix (Depends-on): Likewise.
8528 * modules/vfprintf-posix (Depends-on): Likewise.
8529 * modules/vsnprintf-posix (Depends-on): Likewise.
8530 * modules/vsprintf-posix (Depends-on): Likewise.
8531 * modules/vasnprintf (Files): Add lib/float+.h.
8532 * doc/functions/fprintf.texi: Update.
8533 * doc/functions/printf.texi: Update.
8534 * doc/functions/snprintf.texi: Update.
8535 * doc/functions/sprintf.texi: Update.
8536 * doc/functions/vfprintf.texi: Update.
8537 * doc/functions/vprintf.texi: Update.
8538 * doc/functions/vsnprintf.texi: Update.
8539 * doc/functions/vsprintf.texi: Update.
8541 2007-05-18 Bruno Haible <bruno@clisp.org>
8543 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
8545 2007-05-18 Bruno Haible <bruno@clisp.org>
8547 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
8548 for printing 64-bit integers. Needed for mingw.
8550 2007-05-18 Bruno Haible <bruno@clisp.org>
8552 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
8553 gl_FUNC_FREXPL_WORKS.
8554 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
8556 2007-05-18 Bruno Haible <bruno@clisp.org>
8558 * modules/frexpl-nolibm-tests: New file.
8560 * modules/frexpl-nolibm: New file.
8561 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
8563 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
8565 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
8566 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
8567 GCC 4.2, which otherwise issues a lot of warnings.
8568 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
8569 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
8571 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
8572 * modules/iconv_open (iconv.h): Likewise.
8573 * modules/locale (locale.h): Likewise.
8574 * modules/netinet_in (netinet/in.h): Likewise.
8575 * modules/sys_select (sys_select.h): Likewise.
8576 * modules/sys_socket (sys/socket.h): Likewise.
8577 * modules/sys_stat (sys/stat.h): Likewise.
8578 * modules/sysexits (sysexits.h): Likewise.
8579 * modules/unistd (unistd.h): Likewise.
8581 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8583 * modules/closein-tests (Makefile.am): Distribute
8586 2007-05-17 Bruno Haible <bruno@clisp.org>
8588 * tests/test-printf-posix.output: Renamed from
8589 tests/test-fprintf-posix.out.
8590 * modules/fprintf-posix-tests: Update.
8591 * modules/printf-posix-tests: Update.
8592 * modules/vfprintf-posix-tests: Update.
8593 * modules/vprintf-posix-tests: Update.
8594 * tests/test-fprintf-posix.sh: Update.
8595 * tests/test-printf-posix.sh: Update.
8596 * tests/test-vfprintf-posix.sh: Update.
8597 * tests/test-vprintf-posix.sh: Update.
8598 Reported by Ralf Wildenhues.
8600 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
8602 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
8603 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
8604 GCC 4.2, which otherwise issues a lot of warnings.
8605 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
8606 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
8607 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
8608 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
8609 it should no longer be needed.
8610 * lib/string_.h: Likewise.
8611 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
8612 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
8613 * modules/inttypes (inttypes.h): Likewise.
8614 * modules/math (math.h): Likewise.
8615 * modules/search (search.h): Likewise.
8616 * modules/signal (signal.h): Likewise.
8617 * modules/stdint (stdint.h): Likewise.
8618 * modules/stdio (stdio.h): Likewise.
8619 * modules/stdlib (stdlib.h): Likewise.
8620 * modules/string (string.h): Likewise.
8621 * modules/sys_time (sys/time.h): Likewise.
8622 * modules/time (time.h): Likewise.
8623 * modules/wchar (wchar.h): Likewise.
8624 * modules/wctype (wtype.h): Likewise.
8626 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
8628 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
8630 2007-05-13 Bruno Haible <bruno@clisp.org>
8632 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
8633 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8634 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
8635 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
8636 (gl_PREREQ_STRTOK_R): Don't require it here.
8638 2007-05-13 Bruno Haible <bruno@clisp.org>
8640 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
8641 when used in C++ mode.
8643 2007-05-12 Bruno Haible <bruno@clisp.org>
8645 * lib/linebuffer.h: Tweak doc.
8646 * lib/linebuffer.c: Likewise.
8648 2007-05-12 James Youngman <jay@gnu.org>
8650 * lib/linebuffer.c (readlinebuffer_delim): New function,
8651 like readlinebuffer, but use a caller-specified delimiter.
8652 (readlinebuffer): Just call readlinebuffer_delim with '\n'
8654 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
8656 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
8658 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
8659 * modules/openat (Files): Remove openat-die.c.
8660 (Depends-on): Add openat-die.
8661 * modules/openat-die: New module.
8663 2007-05-06 Bruno Haible <bruno@clisp.org>
8665 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
8666 Update with info about Cygwin.
8667 * doc/functions/fprintf.texi: Update.
8668 * doc/functions/printf.texi: Update.
8669 * doc/functions/snprintf.texi: Update.
8670 * doc/functions/sprintf.texi: Update.
8671 * doc/functions/vfprintf.texi: Update.
8672 * doc/functions/vprintf.texi: Update.
8673 * doc/functions/vsnprintf.texi: Update.
8674 * doc/functions/vsprintf.texi: Update.
8675 Reported by Eric Blake.
8677 2007-05-06 Bruno Haible <bruno@clisp.org>
8679 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
8680 padding ourselves for the floating-point directives.
8681 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
8682 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
8683 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8684 gl_PRINTF_FLAG_ZERO and test its result. Invoke
8685 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
8686 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8687 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
8688 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8689 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8690 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8691 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8692 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8693 * tests/test-snprintf-posix.h (test_function): Also check the width
8694 and some flags in the %f directive.
8695 * tests/test-sprintf-posix.h (test_function): Likewise.
8696 * tests/test-vasnprintf-posix.c (test_function): Likewise.
8697 * tests/test-vasprintf-posix.c (test_function): Likewise.
8698 * doc/functions/fprintf.texi: Update.
8699 * doc/functions/printf.texi: Update.
8700 * doc/functions/snprintf.texi: Update.
8701 * doc/functions/sprintf.texi: Update.
8702 * doc/functions/vfprintf.texi: Update.
8703 * doc/functions/vprintf.texi: Update.
8704 * doc/functions/vsnprintf.texi: Update.
8705 * doc/functions/vsprintf.texi: Update.
8707 2007-05-06 Bruno Haible <bruno@clisp.org>
8709 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
8710 pass the ' flag character to sprintf or snprintf.
8711 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
8712 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
8713 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8714 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
8715 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
8716 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8717 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
8718 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8719 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8720 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8721 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8722 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8723 * tests/test-snprintf-posix.h (test_function): Also check the grouping
8725 * tests/test-sprintf-posix.h (test_function): Likewise.
8726 * tests/test-vasnprintf-posix.c (test_function): Likewise.
8727 * tests/test-vasprintf-posix.c (test_function): Likewise.
8728 * doc/functions/fprintf.texi: Update.
8729 * doc/functions/printf.texi: Update.
8730 * doc/functions/snprintf.texi: Update.
8731 * doc/functions/sprintf.texi: Update.
8732 * doc/functions/vfprintf.texi: Update.
8733 * doc/functions/vprintf.texi: Update.
8734 * doc/functions/vsnprintf.texi: Update.
8735 * doc/functions/vsprintf.texi: Update.
8737 2007-05-01 Bruno Haible <bruno@clisp.org>
8739 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
8741 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
8743 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
8744 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
8746 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
8748 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
8749 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
8750 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
8752 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
8754 * lib/argp-help.c (struct hol_entry): New member `ord'.
8755 (HOL_ENTRY_PTRCMP): Use ord for comparison
8756 (hol_sort): Initialize ord.
8758 2007-05-01 Bruno Haible <bruno@clisp.org>
8760 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
8761 Reported by Eric Blake.
8762 * doc/gnulib.texi (Function Substitutes): Update.
8764 2007-05-01 Bruno Haible <bruno@clisp.org>
8766 * doc/functions.texi: Remove file, now redundant through
8767 doc/functions/*.texi.
8769 2007-05-01 Bruno Haible <bruno@clisp.org>
8771 * modules/argp (Depends-on): Add sleep.
8773 2007-05-01 Bruno Haible <bruno@clisp.org>
8775 * modules/sleep-tests: New file.
8776 * tests/test-sleep.c: New file.
8778 * modules/sleep: New file.
8779 * lib/sleep.c: New file.
8780 * m4/sleep.m4: New file.
8781 * lib/unistd_.h (sleep): New declaration.
8782 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
8784 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
8785 * doc/functions/sleep.texi: Document the sleep module.
8787 2007-05-01 Bruno Haible <bruno@clisp.org>
8789 * lib/sigprocmask.h: Remove file.
8790 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
8791 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
8792 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
8793 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
8794 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8795 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
8796 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
8797 HAVE_SIGSET_T as a shell variable.
8798 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
8799 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
8800 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
8801 (Depends-on): Add signal. Remove verify.
8802 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
8803 (Include): Mention <signal.h> instead of sigprocmask.h.
8804 * NEWS: Mention the change.
8805 * lib/fatal-signal.c: Don't include sigprocmask.h.
8807 2007-05-01 Bruno Haible <bruno@clisp.org>
8809 * modules/signal: New file.
8810 * lib/signal_.h: New file.
8811 * m4/signal_h.m4: New file.
8813 2007-05-01 Bruno Haible <bruno@clisp.org>
8815 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
8816 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
8817 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
8818 HAVE_WCTYPE_CTMP_BUG into wctype.h.
8820 2007-05-01 Bruno Haible <bruno@clisp.org>
8822 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
8824 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
8825 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
8826 * modules/sys_stat (Makefile.am): Substitute their values into
8829 2007-05-01 Bruno Haible <bruno@clisp.org>
8831 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
8832 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
8833 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
8835 2007-05-01 Bruno Haible <bruno@clisp.org>
8837 * doc/header/assert.texi: Undo last change: don't mention the gnulib
8838 'assert' module here.
8840 2007-05-01 Bruno Haible <bruno@clisp.org>
8842 * doc/functions/*.texi: New files.
8843 * doc/functions/google-ranking.txt: New file.
8844 * doc/gnulib.texi (Function Substitutes): New chapter.
8845 (ctime, inet_ntoa): Remove sections.
8846 * doc/ctime.texi: Remove file.
8847 * doc/inet_ntoa.texi: Remove file.
8848 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
8850 (%.info): New rule, specifying a --reference-limit.
8852 2007-05-01 Bruno Haible <bruno@clisp.org>
8854 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
8856 2007-05-01 Bruno Haible <bruno@clisp.org>
8858 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
8859 the portability of 'mkdir' to mingw systems.
8861 2007-05-01 Bruno Haible <bruno@clisp.org>
8863 * doc/headers/google-ranking.txt: New file.
8865 2007-04-30 Eric Blake <ebb9@byu.net>
8867 Prefer fseeko to fseek.
8868 * modules/getpass (Depends-on): Add fseeko.
8869 * lib/getpass.c (getpass): Use fseeko, not fseek.
8871 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
8873 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
8874 assumes the sorting is stable, while most qsort implementations
8875 are not. Use argument addresses to ensure they never compare as
8878 * tests/test-argp-2.sh (usage-indent test): Fix output
8879 (func_compare): Restore diff options
8880 * tests/test-argp.c: Restore #include "progname.h"
8882 2007-04-29 Bruno Haible <bruno@clisp.org>
8884 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
8885 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
8886 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
8887 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8888 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
8889 (configure.ac): Define CHECK_SNPRINTF_POSIX.
8890 (TESTS, check_PROGRAMS): Add test-snprintf.
8891 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
8892 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
8893 (TESTS, check_PROGRAMS): Add test-vsnprintf.
8894 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
8895 assertions that fail on HP-UX, OSF/1, or IRIX.
8896 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
8898 2007-04-29 Bruno Haible <bruno@clisp.org>
8900 * MODULES.html.sh (posix_functions): Remove 'contents'.
8902 2007-04-29 Karl Berry <karl@gnu.org>
8904 * config/srclist.txt (gendocs_template_min): new entry.
8906 2007-04-29 Bruno Haible <bruno@clisp.org>
8908 Work around fpurge bug on BSD systems.
8909 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
8910 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
8911 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
8912 fpurge to rpl_fpurge if the system already has this function.
8913 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
8914 the case where the system already has this function. Correct invariants
8916 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
8919 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
8921 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
8922 proposed by Sven Verdoolaege.
8924 * tests/test-argp.c: Fix option ordering. Test deeply clustered
8926 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
8927 (usage and help tests): Update
8929 2007-04-29 Bruno Haible <bruno@clisp.org>
8931 * tests/test-fflush.c (main): Use a file of size 17, not 10.
8932 Print more information in case of failure. Disable a test on BeOS.
8934 2007-04-29 Bruno Haible <bruno@clisp.org>
8936 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
8937 This helps debugging on systems on which no gdb is available.
8939 2007-04-29 Bruno Haible <bruno@clisp.org>
8941 * lib/freading.h: Improve comments.
8942 * lib/fwriting.h: Likewise.
8943 * tests/test-freading.c (main): Don't check freading immediately after
8944 repositioning. Needed for glibc.
8946 2007-04-29 Bruno Haible <bruno@clisp.org>
8948 * lib/freading.c (freading): Trivial simplification.
8950 2007-04-28 Bruno Haible <bruno@clisp.org>
8952 * tests/test-fwriting.c (main): Also test the interaction between
8953 fflush and fwriting.
8954 * modules/fwriting-tests (Depends-on): Add fflush.
8956 * tests/test-freading.c (main): Also test the interaction between
8957 fflush and freading.
8958 * modules/freading-tests (Depends-on): Add fflush.
8960 2007-04-28 Bruno Haible <bruno@clisp.org>
8962 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
8964 Suggested by Eric Blake.
8966 2007-04-28 Jim Meyering <jim@meyering.net>
8968 Avoid false-negative in gl_STDINT_H's C99 conformance test.
8969 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
8970 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
8972 2007-04-27 Eric Blake <ebb9@byu.net>
8974 * doc/headers/assert.texi (assert.h): Document assert module use.
8976 2007-04-27 Bruno Haible <bruno@clisp.org>
8978 * doc/headers/*.texi: New files.
8979 * doc/gnulib.texi (Header File Substitutes): New chapter.
8980 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
8982 (standards.info ,standards.html, standards.dvi): Update dependencies.
8983 (mostlyclean, clean): New targets.
8985 2007-04-27 Bruno Haible <bruno@clisp.org>
8987 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
8988 * modules/sysexits (Files, Makefile.am): Update.
8990 * lib/sys_socket_.h: Renamed from lib/socket_.h.
8991 * modules/sys_socket (Files, Makefile.am): Update.
8993 * lib/sys_stat_.h: Renamed from lib/stat_.h.
8994 * modules/sys_stat (Files, Makefile.am): Update.
8996 2007-04-27 Eric Blake <ebb9@byu.net>
8998 * lib/freading.h: Improve comments.
8999 * lib/fwriting.h: Likewise.
9000 * lib/fflush.c: Likewise.
9002 Fix closein for mingw.
9003 * modules/closein-tests: Add tests for closein.
9004 * tests/test-closein.c: New file.
9005 * tests/test-closein.sh: Likewise.
9006 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
9007 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
9009 2007-04-27 Bruno Haible <bruno@clisp.org>
9011 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
9013 * lib/math_.h [__DECC]: Likewise.
9014 * lib/stdio_.h [__DECC]: Likewise.
9015 * lib/stdlib_.h [__DECC]: Likewise.
9016 * lib/string_.h [__DECC]: Likewise.
9017 * lib/time_.h [__DECC]: Likewise.
9018 * lib/wchar_.h [__DECC]: Likewise.
9019 * lib/wctype_.h [__DECC]: Likewise.
9021 2007-04-27 Bruno Haible <bruno@clisp.org>
9023 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
9025 2007-04-27 Bruno Haible <bruno@clisp.org>
9027 * lib/fflush.c: Add comments.
9028 * modules/fpurge-tests (Depends-on): Add fflush.
9029 * modules/freadable-tests (Depends-on): Likewise.
9030 * modules/fwritable-tests (Depends-on): Likewise.
9032 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
9034 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
9035 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
9036 Report by Bruno Haible <bruno@clisp.org>.
9038 2007-04-26 Eric Blake <ebb9@byu.net>
9040 Fix fflush on mingw.
9041 * modules/fflush (Depends-on): Add freading.
9042 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
9045 2007-04-26 Eric Blake <ebb9@byu.net>
9046 and Bruno Haible <bruno@clisp.org>
9048 Implement freading and fwriting.
9049 * lib/freading.c: New file.
9050 * lib/freading.h: Likewise.
9051 * m4/freading.m4: Likewise.
9052 * modules/freading: Likewise.
9053 * modules/freading-tests: Likewise.
9054 * tests/test-freading.c: Likewise.
9055 * lib/fwriting.c: New file.
9056 * lib/fwriting.h: Likewise.
9057 * m4/fwriting.m4: Likewise.
9058 * modules/fwriting: Likewise.
9059 * modules/fwriting-tests: Likewise.
9060 * tests/test-fwriting.c: Likewise.
9061 * MODULES.html.sh (File stream based Input/Output): Mention them.
9063 2007-04-26 Bruno Haible <bruno@clisp.org>
9065 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
9066 'long' when we assume it.
9067 Suggested by Eric Blake.
9069 2007-04-26 Bruno Haible <bruno@clisp.org>
9071 Ensure fseeko, ftello are declared on glibc systems.
9072 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
9073 * modules/fseeko (configure.ac-early): Likewise.
9074 * modules/ftello (configure.ac-early): Likewise.
9075 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
9076 AC_FUNC_FSEEKO for this.
9077 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
9078 (gl_CHECK_FSEEKO): Remove macro.
9080 2007-04-26 Bruno Haible <bruno@clisp.org>
9082 * tests/test-fflush.c (main): Also check the ftell result after
9083 fflush and fseek/fseeko.
9084 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
9085 file descriptor position cache in the stream.
9086 * lib/fseeko.c (rpl_fseeko): Likewise.
9088 2007-04-26 Bruno Haible <bruno@clisp.org>
9090 * modules/fflush-tests (Depends-on): Add fseeko.
9092 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
9093 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9095 * lib/argz_.h: ensure error_t definition is obtained in same
9096 mechanism system argz.h would have.
9097 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
9098 argz facilities are known bad. Err on the side of caution if
9101 2007-04-25 Eric Blake <ebb9@byu.net>
9103 * lib/fpurge.c (includes): Use stdlib.h for free.
9104 * tests/test-fflush.c (main): Also test fflush-fseeko.
9106 2007-04-25 Bruno Haible <bruno@clisp.org>
9108 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
9109 * lib/fseeko.c: New file.
9110 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
9111 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
9112 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
9114 (gl_FUNC_FSEEKO): Invoke it.
9115 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
9116 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
9117 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
9119 2007-04-25 Bruno Haible <bruno@clisp.org>
9121 * modules/fflush (Depends-on): Add ftello.
9123 2007-04-25 Bruno Haible <bruno@clisp.org>
9125 * modules/ftello-tests: New file.
9126 * tests/test-ftello.c: New file.
9128 * modules/ftello: New file.
9129 * m4/ftello.m4: New file.
9130 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
9132 * lib/stdio_.h (ftello): New declaration.
9133 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
9136 2007-04-25 Bruno Haible <bruno@clisp.org>
9138 * modules/fseeko-tests: New file.
9139 * tests/test-fseeko.c: New file.
9141 * modules/fseeko: New file.
9142 * m4/fseeko.m4: New file.
9143 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
9145 * lib/stdio_.h (fseeko): New declaration.
9146 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
9149 2007-04-25 Bruno Haible <bruno@clisp.org>
9151 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
9153 2007-04-25 Bruno Haible <bruno@clisp.org>
9155 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
9156 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
9157 * tests/test-unistd.c: Likewise.
9158 * tests/test-fcntl.c: Likewise.
9160 2007-04-23 Eric Blake <ebb9@byu.net>
9162 * lib/fflush.c: Fix missing include.
9163 Reported by Bruno Haible.
9165 2007-04-23 Bruno Haible <bruno@clisp.org>
9167 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
9168 Reported by Eric Blake.
9170 2007-04-23 Bruno Haible <bruno@clisp.org>
9172 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
9174 2007-04-23 Bruno Haible <bruno@clisp.org>
9176 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
9178 2007-04-23 Bruno Haible <bruno@clisp.org>
9180 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
9183 2007-04-16 Eric Blake <ebb9@byu.net>
9185 Make fflush rely on fpurge.
9186 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
9187 open coding all variants.
9188 * modules/fflush (Depends-on): Add fpurge and unistd.
9189 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
9190 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
9192 Fix --with-tests compilation on cygwin.
9193 * modules/argmatch-tests (Makefile.am): List gnulib library first
9195 * modules/argp-tests (Makefile.am): Likewise.
9196 * modules/array-list-tests (Makefile.am): Likewise.
9197 * modules/array-oset-tests (Makefile.am): Likewise.
9198 * modules/avltree-list-tests (Makefile.am): Likewise.
9199 * modules/avltree-oset-tests (Makefile.am): Likewise.
9200 * modules/avltreehash-list-tests (Makefile.am): Likewise.
9201 * modules/carray-list-tests (Makefile.am): Likewise.
9202 * modules/dirname-tests (Makefile.am): Likewise.
9203 * modules/frexp-tests (Makefile.am): Likewise.
9204 * modules/isnanl-tests (Makefile.am): Likewise.
9205 * modules/linked-list-tests (Makefile.am): Likewise.
9206 * modules/linkedhash-list-tests (Makefile.am): Likewise.
9207 * modules/lock-tests (Makefile.am): Likewise.
9208 * modules/rbtree-list-tests (Makefile.am): Likewise.
9209 * modules/rbtree-oset-tests (Makefile.am): Likewise.
9210 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
9211 * modules/tls-tests (Makefile.am): Likewise.
9212 * modules/tsearch-tests (Makefile.am): Likewise.
9213 * modules/xvasprintf-tests (Makefile.am): Likewise.
9215 Fix fpurge for cygwin.
9216 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
9218 * modules/fpurge-tests (Depends-on): Clean up trash.
9220 2007-04-16 Simon Josefsson <simon@josefsson.org>
9222 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
9224 * m4/autobuild.m4: Re-indent.
9226 2007-04-13 Bruno Haible <bruno@clisp.org>
9228 * modules/fpurge-tests: New file.
9229 * tests/test-fpurge.c: New file.
9231 * modules/fpurge: New file.
9232 * lib/fpurge.h: New file.
9233 * lib/fpurge.c: New file.
9234 * m4/fpurge.m4: New file.
9236 2007-04-13 Bruno Haible <bruno@clisp.org>
9238 * modules/fbufmode-tests: New file.
9239 * tests/test-fbufmode.c: New file.
9241 * modules/fbufmode: New file.
9242 * lib/fbufmode.h: New file.
9243 * lib/fbufmode.c: New file.
9244 * m4/fbufmode.m4: New file.
9246 2007-04-13 Bruno Haible <bruno@clisp.org>
9248 * modules/fwritable-tests: New file.
9249 * tests/test-fwritable.c: New file.
9251 * modules/fwritable: New file.
9252 * lib/fwritable.h: New file.
9253 * lib/fwritable.c: New file.
9254 * m4/fwritable.m4: New file.
9256 2007-04-13 Bruno Haible <bruno@clisp.org>
9258 * modules/freadable-tests: New file.
9259 * tests/test-freadable.c: New file.
9261 * modules/freadable: New file.
9262 * lib/freadable.h: New file.
9263 * lib/freadable.c: New file.
9264 * m4/freadable.m4: New file.
9266 2007-04-13 Bruno Haible <bruno@clisp.org>
9268 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
9271 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
9273 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
9274 gzip bootstrap.conf to avoid dragging in i18n machinery.
9275 (gnulib_tool_option): Use it.
9277 2007-04-13 Bruno Haible <bruno@clisp.org>
9279 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
9281 * tests/test-vasprintf-posix.c (test_function): Likewise.
9282 * tests/test-snprintf-posix.h (test_function): Likewise.
9283 * tests/test-sprintf-posix.h (test_function): Likewise.
9284 * tests/test-fprintf-posix.h (test_function): Likewise.
9285 * tests/test-printf-posix.h (test_function): Likewise.
9286 * tests/test-fprintf-posix.out: Likewise.
9288 2007-04-13 Bruno Haible <bruno@clisp.org>
9290 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
9291 * modules/tls-tests (configure.ac): Likewise.
9292 Reported by Arto C. Nirkko <anirkko@insel.ch>.
9294 2007-04-13 Bruno Haible <bruno@clisp.org>
9296 * lib/tls.c (glthread_tls_get): Fix return type.
9297 Patch by Arto C. Nirkko <anirkko@insel.ch>.
9299 2007-04-12 Eric Blake <ebb9@byu.net>
9301 * modules/gettime (Depends-on): Remove gettime.
9302 Reported by Dmitry V. Levin.
9304 2007-04-12 Bruno Haible <bruno@clisp.org>
9306 * modules/fflush (Include): Mention <stdio.h>.
9307 * modules/strtoimax (Include): Mention <inttypes.h>.
9308 * modules/strtoumax (Include): Likewise.
9310 2007-04-12 Eric Blake <ebb9@byu.net>
9312 * .cvsignore: New file.
9313 * .gitignore: Likewise.
9315 2007-04-12 Bruno Haible <bruno@clisp.org>
9317 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
9318 not before, since $(LDADD) often contains libgnu.a.
9319 * modules/striconv-tests (test_striconv_LDADD): Likewise.
9320 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
9321 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
9324 2007-04-12 Eric Blake <ebb9@byu.net>
9326 Work around glibc's failure to flush stdin on fclose.
9327 * lib/closein.c (close_stdin): Flush stdin before closing.
9329 Work around glibc's failure to reset seekable stdin on exit.
9330 * modules/closein: New module.
9331 * lib/closein.c: New file.
9332 * lib/closein.h: Likewise.
9333 * m4/closein.m4: Likewise.
9334 * MODULES.html.sh (File stream based Input/Output): Document it.
9336 2007-04-12 Simon Josefsson <simon@josefsson.org>
9338 * gnulib-tool: Rename generated 'autobuild' script to
9339 'do-autobuild' in --create-megatestdir output.
9341 * doc/gnulib.texi (Build robot for gnulib): Fix.
9343 2007-04-12 Simon Josefsson <simon@josefsson.org>
9345 * modules/sysexits (Depends-on): Add absolute-header.
9347 2007-04-12 Eric Blake <ebb9@byu.net>
9349 No need to preserve errno on success.
9350 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
9351 Reported by Bruno Haible.
9353 2007-04-12 Simon Josefsson <simon@josefsson.org>
9355 * MODULES.html.sh (Support for maintaining and releasing
9356 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
9358 2007-04-12 Simon Josefsson <simon@josefsson.org>
9360 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
9362 2007-04-12 Simon Josefsson <simon@josefsson.org>
9364 * modules/autobuild: New module.
9366 * m4/autobuild.m4: New file.
9368 2007-04-11 Bruno Haible <bruno@clisp.org>
9370 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
9371 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
9372 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
9373 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
9374 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9375 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9376 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9377 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9378 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9379 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9380 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
9381 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9382 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9383 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
9384 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9385 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9386 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
9387 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9388 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9389 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
9390 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9391 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9392 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
9393 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9394 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9395 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
9396 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9397 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9398 Reported by Eric Blake.
9400 2007-04-11 Bruno Haible <bruno@clisp.org>
9402 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
9404 2007-04-10 Bruno Haible <bruno@clisp.org>
9406 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
9407 for NaN and Infinity. Needed on FreeBSD 6.1.
9408 * tests/test-vasnprintf-posix.c (test_function): Undo last change
9409 regarding results for "%010a" of Infinity and NaN.
9410 * tests/test-vasprintf-posix.c (test_function): Likewise.
9411 * tests/test-snprintf-posix.h (test_function): Likewise.
9412 * tests/test-sprintf-posix.h (test_function): Likewise.
9413 * tests/test-fprintf-posix.h (test_function): Likewise.
9414 * tests/test-printf-posix.h (test_function): Likewise.
9415 * tests/test-fprintf-posix.out: Likewise.
9417 2007-04-10 Bruno Haible <bruno@clisp.org>
9419 * modules/locale-tests: New file.
9420 * tests/test-locale.c: New file.
9422 * modules/locale: New file.
9423 * lib/locale_.h: New file.
9424 * m4/locale_h.m4: New file.
9426 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
9427 Bruno Haible <bruno@clisp.org>
9429 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
9430 be determined, test for availability of the copysignf, copysign,
9431 copysignl functions.
9432 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
9433 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
9434 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
9436 2007-04-09 Eric Blake <ebb9@byu.net>
9438 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
9439 * modules/stdio (Makefile.am): Support fflush.
9440 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9441 * modules/fflush: New file.
9442 * lib/fflush.c: Likewise.
9443 * m4/fflush.m4: Likewise.
9444 * modules/fflush-tests: New test.
9445 * tests/test-fflush.c: Likewise.
9446 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
9448 2007-04-06 Bruno Haible <bruno@clisp.org>
9450 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
9451 (VASNPRINTF): Use signbit for faster determination whether to print a
9453 * modules/vasnprintf (Files): Remove lib/float+.h.
9454 * modules/fprintf-posix (Depends-on): Add signbit.
9455 * modules/snprintf-posix (Depends-on): Likewise.
9456 * modules/sprintf-posix (Depends-on): Likewise.
9457 * modules/vasnprintf-posix (Depends-on): Likewise.
9458 * modules/vasprintf-posix (Depends-on): Likewise.
9459 * modules/vfprintf-posix (Depends-on): Likewise.
9460 * modules/vsnprintf-posix (Depends-on): Likewise.
9461 * modules/vsprintf-posix (Depends-on): Likewise.
9463 2007-04-06 Bruno Haible <bruno@clisp.org>
9465 * tests/test-frexp.c (main): Test also the sign bit of zero results.
9466 * tests/test-frexpl.c (main): Likewise.
9467 * tests/test-ldexpl.c (main): Likewise.
9468 * modules/frexp-tests (Depends-on): Add signbit.
9469 * modules/frexpl-tests (Depdends-on): Likewise.
9470 * modules/ldexpl-tests (Depdends-on): Likewise.
9472 2007-04-06 Bruno Haible <bruno@clisp.org>
9474 * modules/signbit-tests: New file.
9475 * tests/test-signbit.c: New file.
9477 * modules/signbit: New file.
9478 * lib/signbitf.c: New file.
9479 * lib/signbitd.c: New file.
9480 * lib/signbitl.c: New file.
9481 * m4/signbit.m4: New file.
9482 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
9483 (signbit): New macro.
9484 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
9486 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
9487 REPLACE_FREXPL into math.h.
9489 2007-04-06 Bruno Haible <bruno@clisp.org>
9491 * modules/isnanf-nolibm-tests: New file.
9492 * tests/test-isnanf.c: New file.
9494 * modules/isnanf-nolibm: New file.
9495 * lib/isnanf.h: New file.
9496 * lib/isnanf.c: New file.
9497 * lib/isnan.c: Consider the USE_FLOAT macro.
9498 * m4/isnanf.m4: New file.
9500 2007-04-06 Bruno Haible <bruno@clisp.org>
9502 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
9503 (Link): New section.
9505 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
9507 2007-04-06 Bruno Haible <bruno@clisp.org>
9509 Assume the 'long double' type.
9510 * m4/longdouble.m4: Remove file.
9511 * config/srclist.txt: Don't mention longdouble.m4.
9512 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
9513 * lib/float+.h: Likewise.
9514 * lib/frexp.c: Likewise.
9515 * lib/printf-args.h: Likewise.
9516 * lib/printf-args.c: Likewise.
9517 * lib/printf-frexp.c: Likewise.
9518 * lib/printf-parse.c: Likewise.
9519 * lib/vasnprintf.c: Likewise.
9520 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
9521 * m4/intl.m4: Likewise.
9522 * m4/isnanl.m4: Likewise.
9523 * m4/printf.m4: Likewise.
9524 * m4/printf-frexpl.m4: Likewise.
9525 * m4/vasnprintf.m4: Likewise.
9526 * modules/allocsa (Files): Remove m4/longdouble.m4.
9527 * modules/gettext (Files): Likewise.
9528 * modules/relocatable-prog-wrapper (Files): Likewise.
9529 * modules/vasnprintf (Files): Likewise.
9530 * modules/isnanl (Files): Likewise.
9531 (Include): Simplify.
9532 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
9533 (Include): Simplify.
9534 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
9535 (Include): Simplify.
9536 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
9537 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9538 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
9539 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9540 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
9541 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9542 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
9543 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9544 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
9545 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9546 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
9547 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9548 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
9549 * tests/test-isnanl.c: Likewise.
9550 * tests/test-snprintf-posix.h: Likewise.
9551 * tests/test-sprintf-posix.h: Likewise.
9552 * tests/test-vasnprintf-posix.c: Likewise.
9553 * tests/test-vasnprintf-posix2.c: Likewise.
9554 * tests/test-vasprintf-posix.c: Likewise.
9556 2007-04-06 Bruno Haible <bruno@clisp.org>
9558 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
9559 * lib/math_.h [__DECC]: Include the overridden include file through
9560 #include_next, outside the double-inclusion guard.
9561 * lib/stdio_.h [__DECC]: Likewise.
9562 * lib/stdlib_.h [__DECC]: Likewise.
9563 * lib/string_.h [__DECC]: Likewise.
9564 * lib/time_.h [__DECC]: Likewise.
9565 * lib/wchar_.h [__DECC]: Likewise.
9566 * lib/wctype_.h [__DECC]: Likewise.
9567 * lib/inttypes_.h [__DECC]: Likewise.
9568 Reported by Albert Chin <china@thewrittenword.com> in
9569 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
9571 2007-04-04 Eric Blake <ebb9@byu.net>
9573 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
9576 2007-04-04 Bruno Haible <bruno@clisp.org>
9578 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
9579 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
9581 2007-04-04 Bruno Haible <bruno@clisp.org>
9583 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
9584 results for "%010a" of Infinity and NaN.
9585 * tests/test-vasprintf-posix.c (test_function): Likewise.
9586 * tests/test-snprintf-posix.h (test_function): Likewise.
9587 * tests/test-sprintf-posix.h (test_function): Likewise.
9588 * tests/test-fprintf-posix.h (test_function): Remove these tests.
9589 * tests/test-printf-posix.h (test_function): Likewise.
9590 * tests/test-fprintf-posix.out: Update.
9591 Needed for FreeBSD 6.1.
9593 2007-04-04 Bruno Haible <bruno@clisp.org>
9595 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
9596 directly used by the gnulib modules nor by gnulib-tool.
9598 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
9600 * DEPENDENCIES: Give overall description of version dependency
9601 desirability. Use more-typical names for apps.
9602 Add shell, coreutils, diffutils, grep, tar, gzip.
9604 2007-04-04 Simon Josefsson <simon@josefsson.org>
9606 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
9608 2007-04-04 Karl Berry <karl@gnu.org>
9610 * MODULES.html.sh (func_module): missing '.
9612 2007-04-03 Bruno Haible <bruno@clisp.org>
9614 * modules/argmatch-tests (Makefile.am): New variable
9615 test_argmatch_LDADD.
9616 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
9617 * modules/array-list-tests (Makefile.am): New variable
9618 test_array_list_LDADD.
9619 * modules/array-oset-tests (Makefile.am): New variable
9620 test_array_oset_LDADD.
9621 * modules/avltree-list-tests (Makefile.am): New variable
9622 test_avltree_list_LDADD.
9623 * modules/avltree-oset-tests (Makefile.am): New variable
9624 test_avltree_oset_LDADD.
9625 * modules/avltreehash-list-tests (Makefile.am): New variable
9626 test_avltreehash_list_LDADD.
9627 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
9628 test_canonicalize_lgpl_LDADD.
9629 * modules/carray-list-tests (Makefile.am): New variable
9630 test_carray_list_LDADD.
9631 * modules/dirname-tests (Makefile.am): New variable
9633 * modules/linked-list-tests (Makefile.am): New variable
9634 test_linked_list_LDADD.
9635 * modules/linkedhash-list-tests (Makefile.am): New variable
9636 test_linkedhash_list_LDADD.
9637 * modules/rbtree-list-tests (Makefile.am): New variable
9638 test_rbtree_list_LDADD.
9639 * modules/rbtree-oset-tests (Makefile.am): New variable
9640 test_rbtree_oset_LDADD.
9641 * modules/rbtreehash-list-tests (Makefile.am): New variable
9642 test_rbtreehash_list_LDADD.
9643 * modules/xvasprintf-tests (Makefile.am): New variable
9644 test_xvasprintf_LDADD.
9645 Reported by Eric Blake.
9647 2007-04-03 Eric Blake <ebb9@byu.net>
9649 * DEPENDENCIES: Weaken m4 requirements.
9651 2007-04-03 Bruno Haible <bruno@clisp.org>
9653 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
9654 * modules/isnanl-tests (configure.ac): Likewise.
9656 2007-04-03 Ben Pfaff <blp@gnu.org>
9658 * modules/iconv_open: Add $(srcdir)/ to source directory
9659 references in Makefile fragments that call gperf, to fix VPATH
9662 2007-04-03 Bruno Haible <bruno@clisp.org>
9664 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
9665 * lib/ldexpl.c: Undo last change.
9667 2007-04-03 Bruno Haible <bruno@clisp.org>
9669 * modules/printf-frexpl (Depends-on): Undo last change.
9670 (Files): Add m4/ldexpl.m4.
9672 2007-04-03 Bruno Haible <bruno@clisp.org>
9674 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
9675 * modules/isnanl (Link): New section.
9677 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
9678 * modules/frexp (Link): New section.
9680 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
9681 * modules/frexpl (Link): New section.
9683 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
9684 * modules/ldexpl (Link): New section.
9686 2007-04-03 Bruno Haible <bruno@clisp.org>
9688 * modules/TEMPLATE-EXTENDED: New file.
9689 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
9691 2007-04-03 Bruno Haible <bruno@clisp.org>
9693 * DEPENDENCIES: New file.
9694 Suggested by Simon Josefsson.
9696 2007-04-03 Bruno Haible <bruno@clisp.org>
9698 * doc/gnulib.texi: Escape @.
9700 2007-04-03 James Youngman <jay@gnu.org>
9701 and Paul Eggert <eggert@cs.ucla.edu>
9703 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
9704 birthtime on all systems that have birthtime, not just those which
9705 use st_birthtimensec rather than st_birthtim. Putting zero in
9706 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
9707 that the birth time is not available for files on an NFS mount.
9709 2007-04-03 Simon Josefsson <simon@josefsson.org>
9711 * modules/memxor: Move back from crypto/, suggested by Bruno.
9712 * modules/crypto/hmac-sha1: Fix memxor dependency.
9714 * modules/crypto/gc: Moved from ../.
9716 2007-04-02 Eric Blake <ebb9@byu.net>
9718 * lib/ldexpl.c (includes): Avoid libm.
9720 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
9722 2007-04-02 Bruno Haible <bruno@clisp.org>
9724 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
9727 2007-04-02 Bruno Haible <bruno@clisp.org>
9729 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
9730 x86 or x86_64 platforms running MacOS X.
9731 Reported by Ryan Schmidt <@ryandesign.com>.
9733 2007-04-02 Bruno Haible <bruno@clisp.org>
9735 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
9738 2007-04-01 Simon Josefsson <simon@josefsson.org>
9740 * modules/crypto/arcfour: Moved from ../.
9741 * modules/crypto/arcfour-tests: Moved from ../.
9742 * modules/crypto/arctwo: Moved from ../.
9743 * modules/crypto/arctwo-tests: Moved from ../.
9744 * modules/crypto/des: Moved from ../.
9745 * modules/crypto/des-tests: Moved from ../.
9746 * modules/crypto/gc-arcfour: Moved from ../.
9747 * modules/crypto/gc-arcfour-tests: Moved from ../.
9748 * modules/crypto/gc-arctwo: Moved from ../.
9749 * modules/crypto/gc-arctwo-tests: Moved from ../.
9750 * modules/crypto/gc-des: Moved from ../.
9751 * modules/crypto/gc-des-tests: Moved from ../.
9752 * modules/crypto/gc-hmac-md5: Moved from ../.
9753 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
9754 * modules/crypto/gc-hmac-sha1: Moved from ../.
9755 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
9756 * modules/crypto/gc-md2: Moved from ../.
9757 * modules/crypto/gc-md2-tests: Moved from ../.
9758 * modules/crypto/gc-md4: Moved from ../.
9759 * modules/crypto/gc-md4-tests: Moved from ../.
9760 * modules/crypto/gc-md5: Moved from ../.
9761 * modules/crypto/gc-md5-tests: Moved from ../.
9762 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
9763 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
9764 * modules/crypto/gc-random: Moved from ../.
9765 * modules/crypto/gc-rijndael: Moved from ../.
9766 * modules/crypto/gc-rijndael-tests: Moved from ../.
9767 * modules/crypto/gc-sha1: Moved from ../.
9768 * modules/crypto/gc-sha1-tests: Moved from ../.
9769 * modules/crypto/gc-tests: Moved from ../.
9770 * modules/crypto/hmac-md5: Moved from ../.
9771 * modules/crypto/hmac-md5-tests: Moved from ../.
9772 * modules/crypto/hmac-sha1: Moved from ../.
9773 * modules/crypto/hmac-sha1-tests: Moved from ../.
9774 * modules/crypto/md2: Moved from ../.
9775 * modules/crypto/md2-tests: Moved from ../.
9776 * modules/crypto/md4: Moved from ../.
9777 * modules/crypto/md4-tests: Moved from ../.
9778 * modules/crypto/md5: Moved from ../.
9779 * modules/crypto/md5-tests: Moved from ../.
9780 * modules/crypto/memxor: Moved from ../.
9781 * modules/crypto/rijndael: Moved from ../.
9782 * modules/crypto/rijndael-tests: Moved from ../.
9783 * modules/crypto/sha1: Moved from ../.
9785 2007-03-30 James Youngman <jay@gnu.org>
9787 * tests/test-stat-time.c (prepare_test): use chmod() rather than
9788 rename() to change the ctime of a file (because ctime is unaffected
9789 by rename on jfs2 on AIX 5.1).
9790 (main): Start by doing cleanup, in case a previous run failed leaving
9793 2007-03-31 Bruno Haible <bruno@clisp.org>
9795 Support old proprietary implementations of iconv.
9796 * modules/iconv_open: New file.
9797 * lib/iconv_.h: New file.
9798 * m4/iconv_h.m4: New file.
9799 * lib/iconv_open.c: New file.
9800 * lib/iconv_open-aix.gperf: New file.
9801 * lib/iconv_open-hpux.gperf: New file.
9802 * lib/iconv_open-irix.gperf: New file.
9803 * lib/iconv_open-osf.gperf: New file.
9804 * m4/iconv_open.m4: New file.
9805 * modules/linebreak (Depends-on): Add iconv_open.
9806 * modules/striconv (Depends-on): Likewise.
9807 * modules/striconveh (Depends-on): Likewise.
9808 * modules/unicodeio (Depends-on): Likewise.
9809 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
9811 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
9812 conversion if cd is (iconv_t)(-1).
9813 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
9816 2007-03-31 Bruno Haible <bruno@clisp.org>
9818 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
9819 work on Solaris either. Protect also second use of "autodetect_jp".
9821 2007-03-31 Bruno Haible <bruno@clisp.org>
9823 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
9824 the function is not present.
9826 2007-03-31 Bruno Haible <bruno@clisp.org>
9828 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
9829 the function is not present.
9831 2007-03-31 Bruno Haible <bruno@clisp.org>
9833 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
9834 a bug in HP-UX iconv_open().
9836 2007-03-31 Bruno Haible <bruno@clisp.org>
9838 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
9839 (Mathematics <math.h>): New section, add fpieee.
9840 (Input/output <stdio.h>): Add fseterr.
9841 (Mathematics <math.h>): New section, add printf-frexp.
9842 (Container data structures): Add sublist.
9843 (Core language properties): Add fpucw, inline.
9844 (Functions for greatest-width integer types <inttypes.h>): Add
9845 imaxabs, imaxdiv, inttypes.
9846 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
9847 isnanl-nolibm, ldexp.
9848 (Mathematics <math.h>): New section, add printf-frexpl.
9849 (Support for systems lacking POSIX:2001): Add fprintf-posix,
9850 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
9851 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
9852 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
9853 (Unicode string functions): Add unistr/u*-mbtoucr.
9854 (Java): Add javacomp-script, javaexec-script.
9855 (C#): Add csharpcomp-script, csharpexec-script.
9856 (Support for building libraries and executables): Add havelib,
9858 (Support for maintaining and releasing projects): Renamed from
9859 'Support for maintaining and release projects'. Add announce-gen.
9861 2007-03-31 Bruno Haible <bruno@clisp.org>
9863 * README: Talk primarily about git.
9864 (git and CVS): Renamed from CVS.
9865 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
9866 gnulib is available through git.
9867 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
9869 2007-03-30 Bruno Haible <bruno@clisp.org>
9871 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
9872 * lib/poll_.h: Likewise.
9873 * lib/stat_.h: Likewise.
9874 * lib/sys_time_.h: Likewise.
9875 * lib/sysexit_.h: Likewise.
9876 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
9877 * lib/stdbool_.h: Likewise.
9878 * lib/byteswap_.h: Add double-inclusion guard.
9880 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
9882 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
9884 2007-03-30 Karl Berry <karl@gnu.org>
9886 * config/srclist-update: double space after USA in the license
9887 substitution, since that's how it's usually (?) written.
9889 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
9891 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
9892 reported by Bruno Haible.
9894 2007-03-29 Bruno Haible <bruno@clisp.org>
9896 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
9897 a bug in AIX iconv().
9899 2007-03-29 Bruno Haible <bruno@clisp.org>
9901 * modules/ldexpl-tests: New file.
9902 * tests/test-ldexpl.c: New file.
9904 2007-03-29 Bruno Haible <bruno@clisp.org>
9906 * lib/ldexpl.c: Include fpucw.h.
9907 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
9909 * modules/ldexpl (Depends-on): Add fpucw.
9911 2007-03-29 Bruno Haible <bruno@clisp.org>
9913 * modules/ldexpl: New file.
9914 * m4/ldexpl.m4: New file.
9915 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
9917 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
9919 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
9921 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
9922 gl_FUNC_LDEXPL_WORKS.
9923 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
9924 * modules/mathl (Files): Remove lib/ldexpl.c.
9925 (Depends-on): Add ldexpl.
9927 2007-03-29 Bruno Haible <bruno@clisp.org>
9929 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
9931 2007-03-29 Bruno Haible <bruno@clisp.org>
9933 * tests/test-striconveh.c (main): Don't assume that a direct conversion
9934 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
9935 and possibly also HP-UX.
9936 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
9937 work on AIX, IRIX, HP-UX, OSF/1.
9938 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9939 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9940 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9941 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9942 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
9943 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9945 2007-03-29 Bruno Haible <bruno@clisp.org>
9947 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
9949 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
9951 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
9952 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
9954 2007-03-29 Eric Blake <ebb9@byu.net>
9956 * lib/acl-internal.h: Remove redundant include.
9957 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
9958 Cygwin when a file is locked.
9960 2007-03-29 Bruno Haible <bruno@clisp.org>
9962 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
9964 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
9966 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
9968 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
9969 try to remove a parent directory if the child couldn't be removed
9970 (except for the first rmdir, which could fail because the child
9971 doesn't exist). Problem reported by Jeff Blaine in
9972 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
9974 2007-03-28 Bruno Haible <bruno@clisp.org>
9976 * lib/striconveh.c (utf8conv_carefully): New function.
9977 (mem_cd_iconveh_internal): Invoke it.
9979 2007-03-28 Bruno Haible <bruno@clisp.org>
9981 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
9982 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
9984 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
9985 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
9988 2007-03-28 Bruno Haible <bruno@clisp.org>
9990 * modules/unistr/u8-mbtoucr: New file.
9991 * lib/unistr/u8-mbtoucr.c: New file.
9992 * modules/unistr/u16-mbtoucr: New file.
9993 * lib/unistr/u16-mbtoucr.c: New file.
9994 * modules/unistr/u16-mbtoucr: New file.
9995 * lib/unistr/u16-mbtoucr.c: New file.
9996 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
9998 2007-03-27 Simon Josefsson <simon@josefsson.org>
9999 Bruno Haible <bruno@clisp.org>
10001 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
10002 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
10003 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
10005 * m4/stdio_h.m4: Add stubs for vasprintf too.
10007 * modules/stdio: Support vasprintf in sed command.
10009 * modules/vasprintf: Depend on stdio for prototypes. Remove
10010 vasprintf.h. Add stdio module indicator.
10012 * lib/stdio_.h: Declare asprintf and vasprintf, based on
10015 * lib/vasprintf.h: File removed.
10017 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
10018 * lib/vasprintf.c: Ditto.
10019 * lib/xvasprintf.c: Ditto.
10020 * tests/test-vasprintf-posix.c: Ditto.
10021 * tests/test-vasprintf.c: Ditto.
10023 2007-03-27 Bruno Haible <bruno@clisp.org>
10025 Make vasnprintf multithread-safe.
10026 * lib/vasnprintf.c (decimal_point_char): New function.
10027 (VASNPRINTF): Use it.
10028 Suggested by Simon Josefsson.
10030 2007-03-27 Eric Blake <ebb9@byu.net>
10032 Support sub-second birthtime on cygwin.
10033 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
10034 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
10035 (get_stat_birthtime): Also work with st_birthtim.
10037 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
10039 * lib/stat-time.h (USE_BIRTHTIME): Remove.
10040 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
10041 (get_stat_birthtime_ns): Do not try to use "spare" fields.
10042 (get_stat_birthtime_ns): Simplify compile-time tests.
10043 (get_stat_birthtime): Change the API to look like
10044 get_stat_mtime etc., except return a negative tv_nsec on error.
10045 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
10046 Don't check for "spare" fields.
10047 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
10048 or for struct stat.st_birthtime, as these tests aren't used.
10049 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
10051 2007-03-27 Bruno Haible <bruno@clisp.org>
10053 * lib/stat-time.h: Include <sys/stat.h>.
10055 2007-03-27 James Youngman <jay@gnu.org>
10057 * lib/stat-time.h (get_stat_birthtime): New function for
10058 retrieving st_birthtime as provided by UFS2 (hence *BSD).
10059 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
10061 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
10062 * modules/stat-time-test: New file.
10063 * tests/test-stat-time.c: New test, devised by Bruno Haible.
10065 2007-03-26 Bruno Haible <bruno@clisp.org>
10067 Better support of signalling NaNs.
10068 * lib/atanl.c: Include isnanl.h.
10069 (atanl): Perform test for NaN at the beginning of the function and
10070 through a call to isnanl.
10071 * lib/cosl.c: Include isnanl.h.
10072 (cosl): Perform test for NaN at the beginning of the function and
10073 through a call to isnanl.
10074 * lib/ldexpl.c: Include isnanl.h.
10075 (ldexpl): Perform test for NaN through a call to isnanl.
10076 * lib/logl.c: Include isnanl.h.
10077 (logl): Perform test for NaN at the beginning of the function and
10078 through a call to isnanl.
10079 * lib/sinl.c: Include isnanl.h.
10080 (sinl): Perform test for NaN at the beginning of the function and
10081 through a call to isnanl.
10082 * lib/sqrtl.c: Include isnanl.h.
10083 (sqrtl): Perform test for NaN at the beginning of the function and
10084 through a call to isnanl.
10085 * lib/tanl.c: Include isnanl.h.
10086 (tanl): Perform test for NaN at the beginning of the function and
10087 through a call to isnanl.
10088 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
10089 * modules/mathl (Depends-on): Add isnanl.
10091 2007-03-26 Eric Blake <ebb9@byu.net>
10093 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
10094 regression in logic sense of previous patch.
10096 2007-03-26 Bruno Haible <bruno@clisp.org>
10098 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
10099 unportable shell command "if ! ...".
10100 Reported by Ralf Wildenhues.
10102 2007-03-25 Bruno Haible <bruno@clisp.org>
10104 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
10105 <sysexits.h> file, and only add EX_CONFIG.
10106 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
10107 absolute file name and whether it is sufficient. Substitute also
10108 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
10109 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
10110 ABSOLUTE_SYSEXITS_H into sysexits.h.
10112 2007-03-25 Bruno Haible <bruno@clisp.org>
10114 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
10117 2007-03-25 Bruno Haible <bruno@clisp.org>
10119 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
10120 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10122 2007-03-25 Bruno Haible <bruno@clisp.org>
10124 * lib/vasnprintf.c: Include langinfo.h.
10125 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
10127 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
10128 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
10129 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10130 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10131 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10132 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10133 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10134 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
10135 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10136 Reported by Simon Josefsson.
10138 2007-03-25 Bruno Haible <bruno@clisp.org>
10140 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
10141 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
10142 * modules/vasnprintf (Depends-on): Add stdint.
10144 2007-03-25 Bruno Haible <bruno@clisp.org>
10146 * modules/fpieee: New file.
10147 * m4/fpieee.m4: New file.
10148 * modules/isnan-nolibm (Depends-on): Add fpieee.
10149 * modules/isnanl-nolibm (Depends-on): Add fpieee.
10150 * modules/isnanl (Depends-on): Add fpieee.
10152 2007-03-25 Bruno Haible <bruno@clisp.org>
10154 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
10156 2007-03-25 Bruno Haible <bruno@clisp.org>
10158 Avoid test failures on IRIX 6.5.
10159 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
10161 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
10165 2007-03-25 Bruno Haible <bruno@clisp.org>
10167 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
10168 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
10169 exists but doesn't work.
10170 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
10171 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
10172 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
10173 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
10175 2007-03-25 Bruno Haible <bruno@clisp.org>
10177 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
10178 returns inf. Needed on IRIX 6.5.
10180 2007-03-25 Bruno Haible <bruno@clisp.org>
10182 * tests/test-frexpl.c: Include isnanl-nolibm.h.
10183 (main): Use isnanl instead of x != x idiom.
10184 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
10186 * tests/test-frexp.c: Include isnan.h.
10187 (main): Use isnan instead of x != x idiom.
10188 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
10190 2007-03-25 Bruno Haible <bruno@clisp.org>
10192 * tests/test-frexp.c (NaN): New function/macro.
10193 (main): Use it instead of 0.0 / 0.0.
10194 * tests/test-isnan.c (NaN): New function/macro.
10195 (main): Use it instead of 0.0 / 0.0.
10196 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
10197 (test_function): Use it instead of 0.0 / 0.0.
10198 * tests/test-vasprintf-posix.c (NaN): New function/macro.
10199 (test_function): Use it instead of 0.0 / 0.0.
10200 * tests/test-snprintf-posix.h (NaN): New function/macro.
10201 (test_function): Use it instead of 0.0 / 0.0.
10202 * tests/test-sprintf-posix.h (NaN): New function/macro.
10203 (test_function): Use it instead of 0.0 / 0.0.
10204 * tests/test-fprintf-posix.h (NaN): New function/macro.
10205 (test_function): Use it instead of 0.0 / 0.0.
10206 * tests/test-printf-posix.h (NaN): New function/macro.
10207 (test_function): Use it instead of 0.0 / 0.0.
10209 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
10211 2007-03-25 Bruno Haible <bruno@clisp.org>
10213 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
10215 2007-03-25 Bruno Haible <bruno@clisp.org>
10217 * lib/regexec.c (merge_state_with_log): Make static.
10219 2007-03-25 Bruno Haible <bruno@clisp.org>
10221 * lib/trigl.c (kernel_rem_pio2): Make static.
10223 2007-03-25 Bruno Haible <bruno@clisp.org>
10225 * lib/sincosl.c (sincosl_table): Make static.
10227 2007-03-25 Bruno Haible <bruno@clisp.org>
10229 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
10230 if the compiler does not support C99.
10232 2007-03-25 Bruno Haible <bruno@clisp.org>
10234 * modules/time (Makefile.am): Ensure all rule action lines start with a
10237 2007-03-24 Bruno Haible <bruno@clisp.org>
10239 * modules/tsearch-tests: New file.
10240 * tests/test-tsearch.sh: New file.
10241 * tests/test-tsearch.c: New file, mostly copied from glibc.
10243 * modules/search-tests: New file.
10244 * tests/test-search.c: New file.
10246 * modules/search: New file.
10247 * lib/search_.h: New file, incorporating lib/tsearch.h.
10248 * m4/search_h.m4: New file.
10249 * lib/tsearch.h: Remove file.
10250 * lib/tsearch.c: Include search.h instead of tsearch.h.
10251 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
10253 * modules/tsearch (Files): Remove lib/tsearch.h.
10254 (Depends-on): Add search.
10255 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
10256 (Include): Change tsearch.h into search.h.
10258 2007-03-24 Bruno Haible <bruno@clisp.org>
10260 * modules/fpucw: New file.
10261 * lib/fpucw.h: New file.
10262 * lib/frexp.c: Include fpucw.h.
10263 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
10265 * lib/printf-frexp.c: Include fpucw.h.
10266 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
10268 * lib/vasnprintf.c: Include fpucw.h.
10269 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
10270 'long double' calculations.
10271 * tests/test-frexpl.c: Include fpucw.h.
10272 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
10273 * tests/test-printf-frexpl.c: Include fpucw.h.
10274 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
10275 * modules/frexpl (Depends-on): Add fpucw.
10276 * modules/printf-frexpl (Depends-on): Likewise.
10277 * modules/fprintf-posix (Depends-on): Likewise.
10278 * modules/snprintf-posix (Depends-on): Likewise.
10279 * modules/sprintf-posix (Depends-on): Likewise.
10280 * modules/vasnprintf-posix (Depends-on): Likewise.
10281 * modules/vasprintf-posix (Depends-on): Likewise.
10282 * modules/vfprintf-posix (Depends-on): Likewise.
10283 * modules/vsnprintf-posix (Depends-on): Likewise.
10284 * modules/vsprintf-posix (Depends-on): Likewise.
10285 * modules/frexpl-tests (Depends-on): Likewise.
10286 * modules/printf-frexpl-tests (Depends-on): Likewise.
10288 2007-03-24 Bruno Haible <bruno@clisp.org>
10290 * lib/float+.h: New file.
10291 * lib/isnan.c: Include float+.h.
10293 (FUNC): Compare only SIZE bytes of the value.
10294 * lib/vasnprintf.c: Include float+.h.
10295 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
10296 SIZEOF_LDBL or SIZEOF_DBL bytes.
10297 * modules/isnan-nolibm (Files): Add lib/float+.h.
10298 * modules/isnanl-nolibm (Files): Add lib/float+.h.
10299 * modules/isnanl (Files): Add lib/float+.h.
10300 * modules/vasnprintf (Files): Add lib/float+.h.
10302 2007-03-24 Bruno Haible <bruno@clisp.org>
10304 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
10305 include isnanl-nolibm.h.
10307 2007-03-24 Bruno Haible <bruno@clisp.org>
10309 * tests/test-read-file.c (main): Don't produce spurious output for
10310 expected situations. Make the test fail if it encountered unexpected
10313 2007-03-24 Bruno Haible <bruno@clisp.org>
10315 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
10316 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
10318 2007-03-24 Bruno Haible <bruno@clisp.org>
10320 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
10322 2007-03-24 Bruno Haible <bruno@clisp.org>
10324 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
10325 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
10327 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
10328 * modules/utf8-ucs4: Turn into a symbolic link to module
10331 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
10333 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
10334 unistr/u8-mbtouc-unsafe.
10336 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
10337 * modules/utf16-ucs4: Turn into a symbolic link to module
10340 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
10342 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
10343 unistr/u16-mbtouc-unsafe.
10345 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
10346 * modules/ucs4-utf8: Turn into a symbolic link to module
10349 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
10350 * modules/ucs4-utf16: Turn into a symbolic link to module
10353 2007-03-24 Bruno Haible <bruno@clisp.org>
10355 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
10356 Enable the function only if HAVE_INLINE.
10357 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
10358 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
10359 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
10360 Enable the function only if HAVE_INLINE.
10361 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
10362 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
10363 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
10364 Enable the function only if HAVE_INLINE.
10365 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
10366 Enable the function only if HAVE_INLINE.
10367 * modules/utf8-ucs4: Update.
10368 * modules/utf8-ucs4-unsafe: Update.
10369 * modules/utf16-ucs4: Update.
10370 * modules/utf16-ucs4-unsafe: Update.
10371 * modules/ucs4-utf8: Update.
10372 * modules/ucs4-utf16: Update.
10374 2007-03-24 Bruno Haible <bruno@clisp.org>
10376 * lib/utf8-ucs4.h: Remove file.
10377 * lib/utf8-ucs4-unsafe.h: Remove file.
10378 * lib/utf16-ucs4.h: Remove file.
10379 * lib/utf16-ucs4-unsafe.h: Remove file.
10380 * lib/ucs4-utf8.h: Remove file.
10381 * lib/ucs4-utf16.h: Remove file.
10382 * lib/unistr.h: Include their previous contents.
10383 * m4/utf-ucs4.m4: Remove file.
10384 * m4/ucs4-utf.m4: Remove file.
10385 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
10386 (Depends-on): Add unistr/base.
10387 (configure.ac): Remove gl_UTF_UCS4.
10388 (Makefile.am): Update.
10389 (Include): Change to unistr.h.
10390 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
10391 (Depends-on): Add unistr/base.
10392 (configure.ac): Remove gl_UTF_UCS4.
10393 (Makefile.am): Update.
10394 (Include): Change to unistr.h.
10395 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
10396 (Depends-on): Add unistr/base.
10397 (configure.ac): Remove gl_UTF_UCS4.
10398 (Makefile.am): Update.
10399 (Include): Change to unistr.h.
10400 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
10401 (Depends-on): Add unistr/base.
10402 (configure.ac): Remove gl_UTF_UCS4.
10403 (Makefile.am): Update.
10404 (Include): Change to unistr.h.
10405 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
10406 (Depends-on): Add unistr/base.
10407 (configure.ac): Remove gl_UCS4_UTF.
10408 (Makefile.am): Update.
10409 (Include): Change to unistr.h.
10410 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
10411 (Depends-on): Add unistr/base.
10412 (configure.ac): Remove gl_UCS4_UTF.
10413 (Makefile.am): Update.
10414 (Include): Change to unistr.h.
10415 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
10416 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
10417 utf8-ucs4-unsafe.h.
10418 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
10419 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
10420 utf16-ucs4-unsafe.h.
10421 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
10422 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
10423 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
10424 * lib/unistr/u8-strchr.c: Likewise.
10425 * lib/unistr/u8-strrchr.c: Likewise.
10426 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
10427 * lib/unistr/u16-strchr.c: Likewise.
10428 * lib/unistr/u16-strrchr.c: Likewise.
10429 * lib/striconveh.c: Update.
10430 * lib/linebreak.c: Update.
10432 2007-03-24 Bruno Haible <bruno@clisp.org>
10434 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
10435 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
10437 2007-03-22 Bruno Haible <bruno@clisp.org>
10439 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
10441 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
10443 * MODULES.html.sh (File system functions): New module write-any-file.
10444 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
10445 * m4/write-any-file.m4: New files.
10447 2007-03-23 Eric Blake <ebb9@byu.net>
10449 * gnulib-tool: Rearrange space-tab sequences, since some editors
10452 2007-03-23 Eric Blake <ebb9@byu.net>
10454 * lib/version-etc.c (version_etc_va): Update license wording to
10455 be more concise. Recommended by Richard Stallman.
10457 2007-03-22 Bruno Haible <bruno@clisp.org>
10459 * lib/poll.c (MSG_PEEK): New fallback definition.
10461 2007-03-22 Bruno Haible <bruno@clisp.org>
10463 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
10464 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
10466 Fixes a compilation error on BeOS.
10468 2007-03-22 Bruno Haible <bruno@clisp.org>
10470 * modules/frexpl-tests: New file.
10471 * tests/test-frexpl.c: New file.
10473 * modules/frexpl: New file.
10474 * m4/frexpl.m4: New file.
10475 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
10476 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
10477 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
10478 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
10479 (Depends-on): Add frexpl. Remove isnanl-nolibm.
10480 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
10482 2007-03-22 Bruno Haible <bruno@clisp.org>
10484 * lib/frexpl.c: Share code with lib/frexp.c.
10485 * modules/mathl (Files): Add lib/frexp.c.
10486 (Depends-on): Add isnanl-nolibm.
10488 2007-03-22 Bruno Haible <bruno@clisp.org>
10490 * modules/printf-frexp (Files): Add m4/frexp.m4.
10491 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
10492 only if the found frexp function actually works.
10494 2007-03-22 Bruno Haible <bruno@clisp.org>
10496 * lib/frexp.c: Remove older implementation that uses divisions.
10498 2007-03-21 Bruno Haible <bruno@clisp.org>
10500 * modules/frexp-tests: New file.
10501 * tests/test-frexp.c: New file.
10503 * modules/frexp: New file.
10504 * lib/frexp.c: New file.
10505 * m4/frexp.m4: New file.
10506 * lib/math_.h (frexp): New declaration.
10507 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
10509 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
10511 2007-03-21 Bruno Haible <bruno@clisp.org>
10513 * modules/isnanl-tests: New file.
10514 * tests/test-isnanl.c: New file.
10516 * modules/isnanl: New file.
10517 * lib/isnanl.h: New file.
10518 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
10519 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
10520 gl_FUNC_ISNANL_WORKS.
10521 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
10524 2007-03-21 Bruno Haible <bruno@clisp.org>
10526 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
10529 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
10530 * lib/vasnprintf.c: Update.
10531 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
10532 tests/test-isnanl.h, remove tests/test-isnanl.c.
10533 (Makefile.am): Update.
10534 * tests/test-isnanl-nolibm.c: New file.
10535 * tests/test-isnanl.h: New file.
10536 * tests/test-isnanl.c: Remove file.
10538 2007-03-21 Jim Meyering <jim@meyering.net>
10540 When trying to open ".", treat ESTALE like EACCES.
10541 * lib/savewd.c (savewd_save): Resort to forking not just upon
10542 failure with EACCES, but also when errno is ESTALE.
10544 2007-03-20 Bruno Haible <bruno@clisp.org>
10546 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
10547 Needed on AIX 5.1. Reported by Matthew Woehlke.
10549 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
10551 Suggestions by Bruno Haible:
10552 * lib/acl-internal.h: Include "gettext.h" rather than rolling
10554 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
10555 * modules/acl (Depends-on): Add gettext.
10557 2007-03-19 Bruno Haible <bruno@clisp.org>
10559 * modules/iconvme: Remove file.
10560 * lib/iconvme.h: Remove file.
10561 * lib/iconvme.c: Remove file.
10562 * m4/iconvme.m4: Remove file.
10564 2007-03-19 Bruno Haible <bruno@clisp.org>
10566 * doc/relocatable-maint.texi: Break long shell script line.
10567 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
10569 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
10571 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
10572 handle file_has_acl.
10573 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
10574 * lib/acl.c: Move header inclusions and related macro defns into
10575 lib/acl-internal.h.
10576 (S_ISLNK): Remove defn, since that's now done for us.
10577 (file_has_acl): Move to lib/file-has-acl.c.
10578 Call acl_trivial if available. This is the crucial part of the fix.
10579 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
10580 shared within the library. Rewrite a bit, partly to make it compatible
10581 with the GNU coding style.
10582 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
10583 Remove unnecessary double-quotes.
10584 Don't test for acl_to_text; the build will catch that.
10585 Replace acl_entries if it doesn't exist and it is needed.
10586 Check for -lsec and acl_trivial (as used on Solaris 10).
10587 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
10588 lib/file-has-acl.c.
10589 (Depends-on): Add sys_stat, for S_ISLNK.
10591 2007-03-19 Ben Pfaff <blp@gnu.org>
10593 * doc/gnulib.texi: Fix typos.
10594 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
10596 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
10598 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
10599 If size is zero here, buf must be zero.
10601 2007-03-19 Simon Josefsson <simon@josefsson.org>
10603 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
10606 2007-03-18 Bruno Haible <bruno@clisp.org>
10608 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
10609 Suggested by Eric Blake.
10611 2007-03-18 Ben Pfaff <blp@gnu.org>
10613 * doc/relocatable.texi: Recommend using as prefix a directory
10614 that does not exist and will never be created. Based on
10615 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
10618 2007-03-17 Bruno Haible <bruno@clisp.org>
10620 * lib/fchownat.c: Include lchown.h.
10622 2007-03-17 Bruno Haible <bruno@clisp.org>
10624 Fix endless loop when the given allocated size was > INT_MAX.
10625 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
10626 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
10627 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
10628 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
10629 * lib/sprintf.c (sprintf): Likewise.
10631 2007-03-17 Bruno Haible <bruno@clisp.org>
10633 * tests/test-argp-2.sh (func_compare): Output a context diff.
10635 2007-03-17 Bruno Haible <bruno@clisp.org>
10637 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
10638 locale's decimal-point character.
10640 2007-03-17 Bruno Haible <bruno@clisp.org>
10642 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
10643 before comparing it. Needed because on some platforms (e.g. x86) a
10644 'long double' occupies less bytes than sizeof (long double).
10646 2007-03-17 Bruno Haible <bruno@clisp.org>
10648 * tests/test-crc.c (main): Make printf statements 64-bit clean.
10649 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
10650 * tests/test-getaddrinfo.c (simple): Likewise.
10651 * tests/test-read-file.c (main): Likewise.
10653 2007-03-17 Bruno Haible <bruno@clisp.org>
10655 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
10657 2007-03-17 Bruno Haible <bruno@clisp.org>
10659 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
10662 2007-03-17 Bruno Haible <bruno@clisp.org>
10664 * tests/test-c-strcasecmp.c: Include c-strcase.h.
10665 * tests/test-c-strncasecmp.c: Likewise.
10667 2007-03-17 Bruno Haible <bruno@clisp.org>
10669 * modules/stdlib (Depends-on): Add unistd.
10670 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
10671 Needed for MacOS X 10.3.
10673 2007-03-17 Bruno Haible <bruno@clisp.org>
10675 * lib/unistr/u-strdup.h: Include <stdlib.h>.
10677 2007-03-17 Bruno Haible <bruno@clisp.org>
10679 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
10681 2007-03-17 Bruno Haible <bruno@clisp.org>
10683 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
10684 to reflect files copied from gnulib (with or without modifications).
10685 Suggested by Jim Meyering.
10687 2007-03-17 Eric Blake <ebb9@byu.net>
10689 * NEWS: Document stdlib change from 2007-02-18.
10691 2007-03-17 Jim Meyering <jim@meyering.net>
10693 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
10694 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
10695 someone uses a name containing shell meta-characters.
10696 Reported by Alfred M. Szmidt.
10698 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
10700 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
10702 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
10703 and copy gettext configuration files only if configure.ac contains
10704 a use of AM_GNU_GETTEXT_VERSION.
10706 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
10708 * build-aux/bootstrap (gnulib_name): New variable.
10709 (gnulib_tool_options): Use it.
10711 2007-03-13 Simon Josefsson <simon@josefsson.org>
10713 * tests/test-des.c: Use new namespace.
10715 2007-03-15 Bruno Haible <bruno@clisp.org>
10717 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
10718 Reported by James Youngman <jay@gnu.org>.
10720 2007-03-15 Bruno Haible <bruno@clisp.org>
10722 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
10723 declared prototype. Needed with cc on OSF/1 5.1.
10725 2007-03-15 Bruno Haible <bruno@clisp.org>
10727 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
10728 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
10729 (struct gl_list_implementation): Add dispose_fn argument to the
10730 'create_empty', 'create' methods.
10731 (struct gl_list_impl_base): Add field 'dispose_fn'.
10732 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
10734 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
10735 dispose_fn argument.
10736 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
10737 dispose_fn on the dropped values.
10738 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
10739 dispose_fn argument.
10740 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
10742 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
10743 (gl_tree_remove_node): Call dispose_fn on the dropped value.
10744 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
10745 (gl_tree_remove_node): Call dispose_fn on the dropped value.
10746 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
10748 (gl_tree_list_free): Call dispose_fn on the dropped values.
10749 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
10750 the dropped values.
10751 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
10752 Add dispose_fn argument.
10753 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
10754 Call dispose_fn on the dropped values.
10755 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
10756 Add dispose_fn argument.
10757 (gl_sublist_create): Initialize the 'dispose_fn' field.
10758 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
10759 * tests/test-array_list.c (main): Update.
10760 * tests/test-carray_list.c (main): Update.
10761 * tests/test-avltree_list.c (main): Update.
10762 * tests/test-rbtree_list.c (main): Update.
10763 * tests/test-avltreehash_list.c (main): Update.
10764 * tests/test-rbtreehash_list.c (main): Update.
10765 * tests/test-linked_list.c (main): Update.
10766 * tests/test-linkedhash_list.c (main): Update.
10767 * tests/test-array_oset.c (main): Update.
10769 2007-03-15 Bruno Haible <bruno@clisp.org>
10771 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
10772 (gl_oset_create_empty): Add dispose_fn argument.
10773 (struct gl_oset_implementation): Add dispose_fn argument to
10774 'create_empty' method.
10775 (struct gl_oset_impl_base): Add dispose_fn field.
10776 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
10777 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
10778 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
10780 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
10781 (gl_tree_oset_free): Call dispose_fn on the dropped values.
10782 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
10784 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
10786 * tests/test-array_oset.c (main): Update.
10787 * tests/test-avltree_oset.c (main): Update.
10788 * tests/test-rbtree_oset.c (main): Update.
10789 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
10791 2007-03-13 Bruno Haible <bruno@clisp.org>
10793 * tests/test-stdbool.c (i): Update after last patch.
10795 2007-03-12 Bruno Haible <bruno@clisp.org>
10797 * lib/quotearg.c: Include <wctype.h> early, before the definition of
10798 the iswprint macro. Needed on Solaris 2.5.1.
10800 2007-03-12 Bruno Haible <bruno@clisp.org>
10802 * tests/test-printf-frexp.c (main): Declare x as volatile.
10804 2007-03-12 Simon Josefsson <simon@josefsson.org>
10806 * doc/gnulib.texi (Build robot for gnulib): New section.
10808 2007-03-12 Jim Meyering <jim@meyering.net>
10810 * build-aux/bootstrap: New file.
10811 * build-aux/bootstrap.conf: New file, from coreutils.
10813 2007-03-11 Bruno Haible <bruno@clisp.org>
10815 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
10817 2007-03-12 Simon Josefsson <simon@josefsson.org>
10819 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
10820 avoid collisions with 'des_setkey'. Reported by Bruno Haible
10821 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
10823 2007-03-11 Bruno Haible <bruno@clisp.org>
10825 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
10826 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
10828 2007-03-11 Bruno Haible <bruno@clisp.org>
10830 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
10831 formula. Needed for SunPRO C 5.0.
10833 2007-03-11 Bruno Haible <bruno@clisp.org>
10835 * modules/long-options (Depends-on): Add getopt.
10837 2007-03-11 Bruno Haible <bruno@clisp.org>
10839 * modules/modechange (Depends-on): Add stdbool.
10841 2007-03-11 Bruno Haible <bruno@clisp.org>
10843 * modules/i-ring (Depends-on): Add stdbool.
10845 2007-03-11 Bruno Haible <bruno@clisp.org>
10847 * modules/gc-des (Depends-on): Add stdbool.
10849 2007-03-11 Bruno Haible <bruno@clisp.org>
10851 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
10853 2007-03-11 Bruno Haible <bruno@clisp.org>
10855 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
10857 2007-03-11 Bruno Haible <bruno@clisp.org>
10859 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
10861 2007-03-11 Bruno Haible <bruno@clisp.org>
10863 * lib/vasnprintf.c (sprintf): Undefine.
10865 2007-03-11 Bruno Haible <bruno@clisp.org>
10867 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
10868 initializers in SunPRO C and Compaq C compilers.
10870 2007-03-11 Bruno Haible <bruno@clisp.org>
10872 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
10873 decrementing code ANSI C compliant.
10875 2007-03-11 Bruno Haible <bruno@clisp.org>
10877 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
10878 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
10880 2007-03-11 Bruno Haible <bruno@clisp.org>
10882 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
10883 <stdbool.h> substitute doesn't pass.
10885 2007-03-11 Bruno Haible <bruno@clisp.org>
10887 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
10889 2007-03-11 Bruno Haible <bruno@clisp.org>
10891 * gnulib-tool (func_create_megatestdir): Create also an autobuild
10892 script, for submission to autobuild.josefsson.org.
10894 2007-03-10 Bruno Haible <bruno@clisp.org>
10896 * modules/canonicalize-lgpl-tests: New file.
10897 * tests/test-canonicalize-lgpl.sh: New file.
10898 * tests/test-canonicalize-lgpl.c: New file.
10900 * modules/c-strcase-tests: New file.
10901 * tests/test-c-strcase.sh: New file.
10902 * tests/test-c-strcasecmp.c: New file.
10903 * tests/test-c-strncasecmp.c: New file.
10905 * modules/atexit-tests: New file.
10906 * tests/test-atexit.sh: New file.
10907 * tests/test-atexit.c: New file.
10909 2007-03-10 Bruno Haible <bruno@clisp.org>
10911 * tests/test-binary-io.sh: Use temporary filenames that are not so
10912 likely to clash with those of other tests (in a parallel make).
10913 * tests/test-binary-io.c: Likewise.
10915 2007-03-10 Bruno Haible <bruno@clisp.org>
10917 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
10918 fallback; use #error instead.
10919 Suggested by Simon Josefsson.
10921 2007-03-10 Bruno Haible <bruno@clisp.org>
10923 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
10924 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
10925 first and the last.
10927 2007-03-10 Bruno Haible <bruno@clisp.org>
10929 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
10931 2007-03-10 Bruno Haible <bruno@clisp.org>
10933 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
10935 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
10936 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
10937 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
10939 2007-03-10 Bruno Haible <bruno@clisp.org>
10941 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
10943 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
10946 2007-03-09 Eric Blake <ebb9@byu.net>
10947 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
10949 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
10950 types are not being provided by gnulib.
10951 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
10952 types are supported.
10954 2007-03-10 Bruno Haible <bruno@clisp.org>
10956 * lib/stdio_.h (__attribute__): New macro.
10957 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
10958 vsprintf): Specify __attribute__ __format__ for GCC.
10959 Suggested by Eric Blake.
10961 2007-03-09 Bruno Haible <bruno@clisp.org>
10963 * modules/printf-posix-tests: New file.
10964 * tests/test-printf-posix.sh: New file.
10965 * tests/test-printf-posix.c: New file.
10967 * modules/printf-posix: New file.
10968 * lib/printf.c: New file.
10969 * m4/printf-posix-rpl.m4: New file.
10970 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
10972 * lib/stdio_.h (printf): New declaration.
10973 (format, __format__, ____printf____, ____scanf____, ____strftime____,
10974 ____strfmon____): New macros.
10975 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
10978 2007-03-09 Bruno Haible <bruno@clisp.org>
10980 * tests/test-vasnprintf-posix2.sh: New file.
10981 * tests/test-vasnprintf-posix2.c: New file.
10982 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
10983 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
10984 (Makefile.am): Activate test-vasnprintf-posix2.sh.
10986 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
10987 a locale dependent decimal point, rather than always '.'.
10989 2007-03-09 Eric Blake <ebb9@byu.net>
10991 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
10992 spite of platforms like Tandem/NSK that define it to -1.
10994 2007-03-08 Bruno Haible <bruno@clisp.org>
10996 * modules/vprintf-posix-tests: New file.
10997 * tests/test-vprintf-posix.sh: New file.
10998 * tests/test-vprintf-posix.c: New file.
10999 * tests/test-printf-posix.h: New file.
11001 * modules/vprintf-posix: New file.
11002 * lib/vprintf.c: New file.
11003 * m4/vprintf-posix.m4: New file.
11004 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
11006 * lib/stdio_.h (vprintf): New declaration.
11007 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
11010 2007-03-08 Bruno Haible <bruno@clisp.org>
11012 * modules/fprintf-posix-tests: New file.
11013 * tests/test-fprintf-posix.sh: New file.
11014 * tests/test-fprintf-posix.c: New file.
11016 * modules/fprintf-posix: New file.
11017 * lib/fprintf.c: New file.
11018 * m4/fprintf-posix.m4: New file.
11019 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
11021 * lib/stdio_.h (fprintf): New declaration.
11022 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
11025 2007-03-08 Bruno Haible <bruno@clisp.org>
11027 * modules/vfprintf-posix-tests: New file.
11028 * tests/test-vfprintf-posix.sh: New file.
11029 * tests/test-vfprintf-posix.c: New file.
11030 * tests/test-fprintf-posix.h: New file.
11031 * tests/test-fprintf-posix.out: New file.
11033 * modules/vfprintf-posix: New file.
11034 * lib/vfprintf.c: New file.
11035 * m4/vfprintf-posix.m4: New file.
11036 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
11038 * lib/stdio_.h (vfprintf): New declaration.
11039 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
11042 2007-03-08 Bruno Haible <bruno@clisp.org>
11044 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
11046 2007-03-08 Bruno Haible <bruno@clisp.org>
11048 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
11049 instead of 'expr' invocations.
11050 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11051 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11052 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11053 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11054 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11055 Suggested by Paul Eggert.
11057 2007-03-08 Bruno Haible <bruno@clisp.org>
11059 * modules/fseterr-tests: New file.
11060 * tests/test-fseterr.c: New file.
11062 * modules/fseterr: New file.
11063 * lib/fseterr.h: New file.
11064 * lib/fseterr.c: New file.
11066 2007-03-08 Bruno Haible <bruno@clisp.org>
11068 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
11069 * lib/getopt_.h: Likewise.
11070 * lib/mbswidth.h: Likewise.
11071 * lib/setenv.h: Likewise.
11072 * lib/vasnprintf.h: Likewise.
11073 * lib/vasprintf.h: Likewise.
11074 * lib/verror.h: Likewise.
11075 * lib/xsetenv.h: Likewise.
11076 * lib/xvasprintf.h: Likewise.
11078 2007-03-08 Jim Meyering <jim@meyering.net>
11080 * users.txt: Add parted.
11082 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
11084 2007-03-07 Bruno Haible <bruno@clisp.org>
11086 * m4/printf.m4: Make the shell script snippets copy&pastable.
11088 2007-03-02 Bruno Haible <bruno@clisp.org>
11090 * lib/netinet_in_.h: New file.
11091 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
11092 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
11093 * modules/netinet_in (Files): Add lib/netinet_in_.h.
11094 (Depends-on): Add absolute-header.
11095 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
11098 2007-03-03 Bruno Haible <bruno@clisp.org>
11100 * lib/sys_select_.h: New file.
11101 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
11102 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
11103 * modules/sys_select (Files): Add lib/sys_select_.h.
11104 (Depends-on): Add absolute-header.
11105 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
11108 2007-03-02 Bruno Haible <bruno@clisp.org>
11110 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
11111 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
11113 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
11114 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
11115 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
11116 * modules/sys_socket (Depends-on): Add absolute-header.
11117 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
11118 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
11119 (Include): Remove requirement of inclusion of <sys/types.h>.
11121 2007-03-02 Bruno Haible <bruno@clisp.org>
11123 * lib/byteswap_.h (bswap_32): Fix formula.
11125 2007-03-06 Bruno Haible <bruno@clisp.org>
11127 * modules/sprintf-posix-tests: New file.
11128 * tests/test-sprintf-posix.c: New file.
11130 * modules/sprintf-posix: New file.
11131 * lib/sprintf.c: New file.
11132 * m4/sprintf-posix.m4: New file.
11133 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
11135 * lib/stdio_.h (sprintf): New declaration.
11136 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
11139 2007-03-06 Bruno Haible <bruno@clisp.org>
11141 * modules/vsprintf-posix-tests: New file.
11142 * tests/test-vsprintf-posix.c: New file.
11143 * tests/test-sprintf-posix.h: New file.
11145 * modules/vsprintf-posix: New file.
11146 * lib/vsprintf.c: New file.
11147 * m4/vsprintf-posix.m4: New file.
11148 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
11150 * lib/stdio_.h (vsprintf): New declaration.
11151 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
11154 2007-03-06 Bruno Haible <bruno@clisp.org>
11156 * modules/vsnprintf (Depend-on): Remove minmax.
11158 2007-03-06 Bruno Haible <bruno@clisp.org>
11160 * modules/snprintf-posix-tests: New file.
11161 * tests/test-snprintf-posix.c: New file.
11163 * modules/snprintf-posix: New file.
11164 * m4/snprintf-posix.m4: New file.
11165 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
11167 (gl_FUNC_SNPRINTF): Invoke it.
11168 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
11169 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
11171 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
11173 2007-03-06 Bruno Haible <bruno@clisp.org>
11175 * modules/vsnprintf-posix-tests: New file.
11176 * tests/test-vsnprintf-posix.c: New file.
11177 * tests/test-snprintf-posix.h: New file.
11179 * modules/vsnprintf-posix: New file.
11180 * m4/vsnprintf-posix.m4: New file.
11181 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
11183 (gl_FUNC_VSNPRINTF): Invoke it.
11184 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
11185 * lib/stdio_.h (vsnprintf): Define as a replacement if
11186 REPLACE_VSNPRINTF is set.
11187 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
11189 2007-03-06 Bruno Haible <bruno@clisp.org>
11191 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
11192 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
11194 2007-03-06 Bruno Haible <bruno@clisp.org>
11196 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
11197 (asinl): Declare also if HAVE_DECL_ASINL is set.
11198 (atanl): Declare also if HAVE_DECL_ATANL is set.
11199 (ceill): Declare also if HAVE_DECL_CEILL is set.
11200 (cosl): Declare also if HAVE_DECL_COSL is set.
11201 (expl): Declare also if HAVE_DECL_EXPL is set.
11202 (floorl): Declare also if HAVE_DECL_FLOORL is set.
11203 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
11204 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
11205 (logl): Declare also if HAVE_DECL_LOGL is set.
11206 (sinl): Declare also if HAVE_DECL_SINL is set.
11207 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
11208 (tanl): Declare also if HAVE_DECL_TANL is set.
11209 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
11210 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
11211 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
11212 declaration of frexpl, ldexpl.
11213 * modules/printf-frexpl (Depends-on): Add math.
11214 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
11216 2007-03-05 Bruno Haible <bruno@clisp.org>
11218 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
11219 frexpl and ldexpl are declared.
11220 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
11222 2007-03-05 Bruno Haible <bruno@clisp.org>
11224 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
11225 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
11227 2007-03-05 Bruno Haible <bruno@clisp.org>
11229 * lib/stdio_.h: Include <stddef.h>.
11231 2007-03-05 Bruno Haible <bruno@clisp.org>
11233 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
11235 2007-03-05 Bruno Haible <bruno@clisp.org>
11237 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
11238 NetBSD 4, from Ralf Wildenhues.
11240 2007-03-04 Bruno Haible <bruno@clisp.org>
11242 * lib/vasprintf.h: Update #if logic for the case when the functions
11243 exist but are overridden.
11245 2007-03-04 Bruno Haible <bruno@clisp.org>
11247 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
11248 implementations: glibc-2.4 and MacOS X 10.3.
11249 * tests/test-vasnprintf-posix.c (test_function): Test also the case
11250 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
11251 * tests/test-vasprintf-posix.c (test_function): Likewise.
11253 2007-03-04 Bruno Haible <bruno@clisp.org>
11255 * modules/vasprintf-posix-tests: New file.
11256 * tests/test-vasprintf-posix.c: New file.
11258 * modules/vasprintf-posix: New file.
11259 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
11261 * m4/vasprintf-posix.m4: New file.
11262 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
11264 (gl_FUNC_VASPRINTF): Invoke it.
11265 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
11267 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
11269 2007-03-04 Bruno Haible <bruno@clisp.org>
11271 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
11272 REPLACE_GETTIMEOFDAY.
11273 * modules/sys_time (Makefile.am): Likewise.
11274 * m4/sys_time_h.m4: Likewise.
11275 * m4/gettimeofday.m4: Likewise.
11277 2007-03-04 Bruno Haible <bruno@clisp.org>
11279 * modules/vasnprintf-posix-tests: New file.
11280 * tests/test-vasnprintf-posix.c: New file.
11282 * modules/vasnprintf-posix: New file.
11283 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
11285 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
11286 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
11287 REPLACE_VASNPRINTF is defined.
11288 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
11289 gl_FUNC_VASNPRINTF.
11290 (gl_FUNC_VASNPRINTF): Invoke it.
11291 * m4/vasnprintf-posix.m4: New file.
11292 * m4/printf.m4: New file.
11294 2007-03-04 Bruno Haible <bruno@clisp.org>
11296 Compile progreloc.c only if --enable-relocatable is specified.
11297 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
11298 if --enable-relocatable was specified.
11299 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
11302 2007-03-04 Jim Meyering <jim@meyering.net>
11304 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
11305 Use it consistently, rather than enumerating errno constants.
11307 2007-03-04 Bruno Haible <bruno@clisp.org>
11309 * modules/xvasprintf-tests: New file.
11310 * tests/test-xvasprintf.c: New file.
11312 * modules/vasprintf-tests: New file.
11313 * tests/test-vasprintf.c: New file.
11315 * modules/vasnprintf-tests: New file.
11316 * tests/test-vasnprintf.c: New file.
11318 * modules/vsnprintf-tests: New file.
11319 * tests/test-vsnprintf.c: New file.
11321 * modules/snprintf-tests: New file.
11322 * tests/test-snprintf.c: New file.
11324 2007-03-04 Bruno Haible <bruno@clisp.org>
11326 Compile relocatable.c only if --enable-relocatable is specified.
11327 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
11328 gl_RELOCATABLE_LIBRARY.
11329 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
11330 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
11331 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
11332 gl_RELOCATABLE_LIBRARY.
11333 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
11334 (Makefile.am): Remove lib_SOURCES.
11335 * modules/relocatable-lib-lgpl (configure.ac): Invoke
11336 gl_RELOCATABLE_LIBRARY.
11337 (Makefile.am): Remove lib_SOURCES.
11338 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
11340 * modules/relocatable-prog-wrapper (configure.ac): Invoke
11341 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
11343 2007-03-04 Bruno Haible <bruno@clisp.org>
11345 * modules/argmatch-tests: New file.
11346 * tests/test-argmatch.c: New file.
11348 * tests/test-allocsa.c (main): Halve the number of loop runs.
11350 * modules/alloca-opt-tests: New file.
11351 * tests/test-alloca-opt.c: New file.
11353 2007-03-04 Jim Meyering <jim@meyering.net>
11355 Work around difference between Linux ACLs and Solaris 10 ZFS.
11356 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
11359 2007-03-03 Bruno Haible <bruno@clisp.org>
11361 * modules/relocatable-prog (Depends-on): Add back progreloc's
11362 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
11364 2007-03-03 Bruno Haible <bruno@clisp.org>
11366 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
11367 * modules/relocatable-lib: New file.
11369 2007-03-03 Bruno Haible <bruno@clisp.org>
11371 * modules/relocatable-prog: Renamed from modules/relocatable.
11372 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
11374 2007-03-03 Bruno Haible <bruno@clisp.org>
11376 * modules/relocatable-script (Files): Add doc/relocatable.texi,
11377 m4/relocatable-lib.m4.
11378 (Depends-on): Remove 'relocatable'.
11379 (configure.ac): Add gl_RELOCATABLE_NOP.
11381 2007-03-03 Bruno Haible <bruno@clisp.org>
11383 * modules/relocatable-prog-wrapper: New file.
11384 * modules/relocatable (Depends-on): Add it. Remove all other
11385 dependencies except progname.
11386 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
11388 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
11389 (gl_FUNC_STRERROR): Nop.
11390 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
11392 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
11393 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
11395 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
11396 (gl_FUNC_READLINK): Update.
11398 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
11400 2007-03-03 Bruno Haible <bruno@clisp.org>
11402 * lib/xreadlink.c: Include <unistd.h> unconditionally.
11403 * modules/xreadlink (Depends-on): Add unistd.
11404 * modules/xreadlink-with-size (Depends-on): Likewise.
11406 2007-03-03 Bruno Haible <bruno@clisp.org>
11408 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
11409 extracted from gt_FUNC_SETENV.
11410 (gt_FUNC_SETENV): Remove macro.
11411 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
11412 remove gt_FUNC_SETENV.
11414 2007-03-03 Bruno Haible <bruno@clisp.org>
11416 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
11417 ENABLE_RELOCATABLE here.
11418 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
11420 2007-03-03 Bruno Haible <bruno@clisp.org>
11422 * modules/rbtreehash-list-tests (Depends-on): Add progname.
11423 * tests/test-rbtreehash_list.c: Include progname.h.
11424 (main): Call set_program_name.
11426 * modules/rbtree-oset-tests (Depends-on): Add progname.
11427 * tests/test-rbtree_oset.c: Include progname.h.
11428 (main): Call set_program_name.
11430 * modules/rbtree-list-tests (Depends-on): Add progname.
11431 * tests/test-rbtree_list.c: Include progname.h.
11432 (main): Call set_program_name.
11434 * modules/linked-list-tests (Depends-on): Add progname.
11435 * tests/test-linked_list.c: Include progname.h.
11436 (main): Call set_program_name.
11438 2007-03-03 Bruno Haible <bruno@clisp.org>
11440 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
11441 All uses of __restrict changed to _Restrict_.
11442 * lib/glob_.h (__restrict): Remove macro.
11444 2007-03-02 Bruno Haible <bruno@clisp.org>
11446 * modules/gettext (configure.ac): Require gettext infrastructure
11447 from version 0.16.1.
11449 2007-03-02 Bruno Haible <bruno@clisp.org>
11451 * modules/linkedhash-list-tests (Depends-on): Add progname.
11452 * tests/test-linkedhash_list.c: Include progname.h.
11453 (main): Call set_program_name.
11455 * modules/carray-list-tests (Depends-on): Add progname.
11456 * tests/test-carray_list.c: Include progname.h.
11457 (main): Call set_program_name.
11459 * modules/avltreehash-list-tests (Depends-on): Add progname.
11460 * tests/test-avltreehash_list.c: Include progname.h.
11461 (main): Call set_program_name.
11463 * modules/avltree-oset-tests (Depends-on): Add progname.
11464 * tests/test-avltree_oset.c: Include progname.h.
11465 (main): Call set_program_name.
11467 * modules/avltree-list-tests (Depends-on): Add progname.
11468 * tests/test-avltree_list.c: Include progname.h.
11469 (main): Call set_program_name.
11471 * modules/array-oset-tests (Depends-on): Add progname.
11472 * tests/test-array_oset.c: Include progname.h.
11473 (main): Call set_program_name.
11475 * modules/array-list-tests (Depends-on): Add progname.
11476 * tests/test-array_list.c: Include progname.h.
11477 (main): Call set_program_name.
11479 * modules/argp-tests (Depends-on): Add progname.
11480 * tests/test-argp.c: Include argp.h first. Include progname.h.
11481 (main): Call set_program_name.
11483 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
11485 * doc/gnulib-tool.texi (Initial import): Reword description of
11486 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
11487 limited effect even if defined after the first system include.
11489 2007-03-01 Bruno Haible <bruno@clisp.org>
11491 * build-aux/config.libpath: Update to libtool-1.5.22.
11492 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11494 2007-03-01 Bruno Haible <bruno@clisp.org>
11496 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
11498 Reported by Ralf Wildenhues.
11500 2007-03-01 Bruno Haible <bruno@clisp.org>
11502 * build-aux/install-reloc: Remove object files left over by some
11504 Reported by Ralf Wildenhues.
11506 2007-03-01 Bruno Haible <bruno@clisp.org>
11508 * build-aux/install-reloc: Break long lines.
11510 2007-03-01 Bruno Haible <bruno@clisp.org>
11512 * doc/relocatable.texi: Document that it may not work on OpenBSD.
11513 Reported by Ralf Wildenhues.
11515 2007-03-01 Bruno Haible <bruno@clisp.org>
11517 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
11518 include ordering constraints.
11520 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
11522 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
11523 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
11524 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
11525 as another example.
11526 * lib/time_.h: Fix misspelling.
11527 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
11528 Require gl_HEADER_TIME_H_DEFAULTS.
11529 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
11530 * m4/time_r.m4 (gl_TIME_R): Likewise.
11531 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
11533 2007-03-01 Bruno Haible <bruno@clisp.org>
11535 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
11536 * m4/utimens.m4 (gl_UTIMENS): Likewise.
11538 2007-03-01 Jim Meyering <jim@meyering.net>
11540 * modules/xreadlink (Maintainer): Add my name.
11541 * modules/xreadlink-with-size (Depends-on): Alphabetize.
11543 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
11544 Bruno Haible <bruno@clisp.org>
11546 * build-aux/install-reloc: Compile also c-ctype.c.
11547 * build-aux/relocatable.sh.in: New file.
11548 * doc/relocatable.texi: New file.
11549 * doc/relocatable-maint.texi: New file.
11550 * doc/gnulib.texi: Include relocatable-maint.texi.
11551 * lib/progreloc.c: Include unistd.h unconditionally.
11552 * lib/relocwrapper.c: Include unistd.h unconditionally.
11554 (add_dotbin): Use c_tolower.
11555 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
11556 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
11557 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
11558 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
11559 to m4/relocatable-lib.m4.
11560 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
11561 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
11562 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
11563 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
11564 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
11565 * modules/relocatable: New file.
11566 * modules/relocatable-lib: New file.
11567 * modules/relocatable-script: New file.
11569 2007-02-28 Bruno Haible <bruno@clisp.org>
11571 Import --enable-relocatable infrastructure.
11572 * build-aux/config.libpath: New file, from GNU gettext.
11573 * build-aux/install-reloc: New file, from GNU gettext.
11574 * build-aux/reloc-ldflags: New file, from GNU gettext.
11575 * lib/relocatable.h: New file, from GNU gettext.
11576 * lib/relocatable.c: New file, from GNU gettext.
11577 * lib/relocwrapper.c: New file, from GNU gettext.
11578 * m4/relocatable.m4: New file, from GNU gettext.
11580 2007-02-28 Bruno Haible <bruno@clisp.org>
11582 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
11584 * modules/xreadlink: New file, from GNU gettext with modifications.
11585 * lib/xreadlink.c: New file, from GNU gettext.
11586 * lib/xreadlink.h: Add comments.
11587 (xreadlink): New declaration.
11589 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
11590 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
11591 lib/xreadlink-with-size.c.
11592 (configure.ac): Remove gl_XREADLINK invocation.
11593 (Makefile.am): Augment lib_SOURCES.
11594 * m4/xreadlink.m4: Remove file.
11595 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
11596 (xreadlink_with_size): Renamed from xreadink.
11597 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
11598 * modules/canonicalize (Depends-on): Replace xreadlink with
11599 xreadlink-with-size.
11600 * lib/canonicalize.c (canonicalize_filename_mode): Update.
11602 2007-02-25 Jim Meyering <jim@meyering.net>
11604 * build-aux/announce-gen: When complaining about excess arguments,
11607 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
11609 * README: Document signed integer overflow situation more
11612 2007-02-25 Bruno Haible <bruno@clisp.org>
11614 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
11615 'a' or 'A' conversion.
11617 2007-02-25 Bruno Haible <bruno@clisp.org>
11619 * modules/filename: Renamed from modules/pathname.
11620 (Files): Replace lib/pathname.h with lib/filename.h. Replace
11621 lib/concatpath.c with lib/concat-filename.c.
11622 (Makefile.am): Update.
11623 (Include): Replace pathname.h with filename.h.
11624 * lib/filename.h: Renamed from lib/pathname.h.
11625 (concatenated_filename): Renamed from concatenated_pathname.
11626 * lib/concat-filename.c: Renamed from lib/concatpath.c.
11627 (concatenated_filename): Renamed from concatenated_pathname.
11628 * lib/findprog.c: Include filename.h instead of pathname.h.
11629 (find_in_path): Update.
11630 * lib/javacomp.c: Include filename.h instead of pathname.h.
11631 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
11632 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
11633 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
11634 is_oldgcj_14_13_usable, is_javac_usable): Update.
11635 * lib/javaexec.c: Include filename.h instead of pathname.h.
11636 (execute_java_class): Update.
11637 * modules/findprog: Update.
11638 * modules/javacomp: Update.
11639 * modules/javaexec: Update.
11640 * MODULES.html.sh (File system functions): Add 'filename', remove
11643 2007-02-25 Bruno Haible <bruno@clisp.org>
11645 * modules/printf-frexpl-tests: New file.
11646 * tests/test-printf-frexpl.c: New file.
11648 * modules/printf-frexpl: New file.
11649 * lib/printf-frexpl.h: New file.
11650 * lib/printf-frexpl.c: New file.
11651 * m4/printf-frexpl.m4: New file.
11653 2007-02-25 Bruno Haible <bruno@clisp.org>
11655 * modules/printf-frexp-tests: New file.
11656 * tests/test-printf-frexp.c: New file.
11658 * modules/printf-frexp: New file.
11659 * lib/printf-frexp.h: New file.
11660 * lib/printf-frexp.c: New file.
11661 * m4/printf-frexp.m4: New file.
11663 2007-02-25 Bruno Haible <bruno@clisp.org>
11665 Assume automake >= 1.10 for the tests.
11666 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
11667 * modules/arctwo-tests: Likewise.
11668 * modules/argp-tests: Likewise.
11669 * modules/avltree-list-tests: Likewise.
11670 * modules/avltree-oset-tests: Likewise.
11671 * modules/avltreehash-list-tests: Likewise.
11672 * modules/carray-list-tests: Likewise.
11673 * modules/crc-tests: Likewise.
11674 * modules/des-tests: Likewise.
11675 * modules/gc-arcfour-tests: Likewise.
11676 * modules/gc-arctwo-tests: Likewise.
11677 * modules/gc-des-tests: Likewise.
11678 * modules/gc-hmac-md5-tests: Likewise.
11679 * modules/gc-hmac-sha1-tests: Likewise.
11680 * modules/gc-md2-tests: Likewise.
11681 * modules/gc-md4-tests: Likewise.
11682 * modules/gc-md5-tests: Likewise.
11683 * modules/gc-pbkdf2-sha1-tests: Likewise.
11684 * modules/gc-rijndael-tests: Likewise.
11685 * modules/gc-sha1-tests: Likewise.
11686 * modules/gc-tests: Likewise.
11687 * modules/getaddrinfo-tests: Likewise.
11688 * modules/hmac-md5-tests: Likewise.
11689 * modules/hmac-sha1-tests: Likewise.
11690 * modules/linked-list-tests: Likewise.
11691 * modules/linkedhash-list-tests: Likewise.
11692 * modules/lock-tests: Likewise.
11693 * modules/md2-tests: Likewise.
11694 * modules/md4-tests: Likewise.
11695 * modules/md5-tests: Likewise.
11696 * modules/rbtree-list-tests: Likewise.
11697 * modules/rbtree-oset-tests: Likewise.
11698 * modules/rbtreehash-list-tests: Likewise.
11699 * modules/read-file-tests: Likewise.
11700 * modules/rijndael-tests: Likewise.
11701 * modules/stdint-tests: Likewise.
11702 * modules/tls-tests: Likewise.
11704 2007-02-24 Bruno Haible <bruno@clisp.org>
11706 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
11707 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
11708 function; instead check whether isnan with a double argument links.
11709 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
11710 function; instead check whether isnan with a 'long double' argument
11712 Reported by Eric Blake <ebb9@byu.net>.
11714 2007-02-24 Bruno Haible <bruno@clisp.org>
11716 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
11718 * lib/isnanl.c: Remove all code. Just include isnan.c.
11719 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
11721 2007-02-25 Jim Meyering <jim@meyering.net>
11723 Avoid conflicting types for 'unsetenv' on FreeBSD.
11724 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
11725 conflicting with FreeBSD's (5.0 and 6.1) function declaration
11728 2007-02-24 Bruno Haible <bruno@clisp.org>
11730 * modules/isnanl-nolibm-tests: New file.
11731 * tests/test-isnanl.c: New file.
11733 * modules/isnanl-nolibm: New file.
11734 * lib/isnanl.h: New file.
11735 * lib/isnanl.c: New file.
11736 * m4/isnanl.m4: New file.
11738 2007-02-24 Bruno Haible <bruno@clisp.org>
11740 * modules/isnan-nolibm-tests: New file.
11741 * tests/test-isnan.c: New file.
11743 * modules/isnan-nolibm: New file.
11744 * lib/isnan.h: New file.
11745 * lib/isnan.c: New file.
11746 * m4/isnan.m4: New file.
11748 2007-02-24 Bruno Haible <bruno@clisp.org>
11750 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
11751 assume that an exponent fits in 20 bits.
11753 2007-02-24 Jim Meyering <jim@meyering.net>
11755 * m4/regex.m4: Update the description of the configure-time option,
11756 --without-included-regex, to state accurately what the defaults are,
11757 and perhaps to give people an idea why using this option is risky.
11759 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
11761 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
11762 loops on small arguments. This attempts to avoid the problem
11763 Bruno Haible reported for AIX 4.3.2 in
11764 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
11766 2007-02-23 Bruno Haible <bruno@clisp.org>
11768 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
11769 Needed for help2man.
11771 2007-02-23 Karl Berry <karl@gnu.org>
11773 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
11774 exists, foo.h should be cvs-ignored, not committed.
11776 2007-02-23 Eric Blake <ebb9@byu.net>
11778 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
11779 * lib/stat-time.h (includes): Likewise.
11780 * lib/utimecmp.c (includes): Likewise.
11781 * lib/utimens.h (includes): Likewise.
11782 * lib/getdate.y (includes): Also include "timespec.h" for use
11783 internal to the module.
11784 * modules/utimens (Depends-on): Revert yesterday's patch.
11785 * modules/nanosleep (Depends-on): Add missing dependency.
11787 2007-02-22 Bruno Haible <bruno@clisp.org>
11789 * lib/glob.c: Don't include getlogin_r.h.
11791 2007-02-22 Jim Meyering <jim@meyering.net>
11793 * modules/utimens (Depends-on): Add timespec, required for
11794 utimens.h's inclusion of timespec.h.
11796 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
11798 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
11799 long unreadable paths in GNU/Linux. Problem reported by Andreas
11801 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
11802 I'll try to think of a better way to fix the Solaris problem.
11804 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
11805 like glibc; on Solaris 10, it fails with errno == EINVAL.
11806 POSIX says the behavior is unspecified if the first argument is NULL,
11807 so play it safe and never pass NULL to the system getcwd.
11809 2007-02-21 Jim Meyering <jim@meyering.net>
11811 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
11812 of gettimeofday. It would conflict with the one now always
11813 provided via sys_time_.h. Reported by Matthew Woehlke, as
11814 an IRIX 6.5 build failure.
11816 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
11818 Minor fixups to port to Solaris 10 with Sun C 5.8.
11819 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
11820 * modules/getcwd (Depends-on): Add dirfd.
11821 * lib/putenv.c (putenv): #undef it.
11822 (rpl_putenv): New decl.
11823 (malloc, free): Include <stdlib.h> rather than prototyping separately.
11825 2007-02-20 Bruno Haible <bruno@clisp.org>
11827 * modules/stdio-tests: New file.
11828 * tests/test-stdio.c: New file.
11830 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
11831 (Depends-on): Add stdio.
11832 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
11833 (Include): Use <stdio.h> instead of vsnprintf.h.
11834 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
11835 HAVE_DECL_VSNPRINTF.
11836 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
11838 * modules/snprintf (Files): Remove lib/snprintf.h.
11839 (Depends-on): Add stdio.
11840 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
11841 (Include): Use <stdio.h> instead of snprintf.h.
11842 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
11843 HAVE_DECL_SNPRINTF.
11844 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
11845 * lib/getaddrinfo.c: Likewise.
11847 * modules/stdio: New file.
11848 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
11849 * lib/snprintf.h: Remove file.
11850 * lib/vsnprintf.h: Remove file.
11851 * lib/.cppi-disable: Remove snprintf.h.
11852 * m4/stdio_h.m4: New file.
11853 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
11855 2007-02-20 Jim Meyering <jim@meyering.net>
11857 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
11858 used by e.g., mingw. From Bruno Haible.
11860 2007-02-19 Bruno Haible <bruno@clisp.org>
11862 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
11864 Reported by Ben Pfaff <blp@cs.stanford.edu>.
11866 2007-02-19 Bruno Haible <bruno@clisp.org>
11868 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
11871 2007-02-19 Bruno Haible <bruno@clisp.org>
11873 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
11875 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
11877 2007-02-19 Jim Meyering <jim@meyering.net>
11879 Don't use FD after a successful "fdopendir (fd)".
11880 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
11881 Reset it by calling dirfd on the just-obtained DIR*.
11883 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
11884 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
11886 2007-02-18 Bruno Haible <bruno@clisp.org>
11888 * lib/readlink.c: Include <unistd.h>.
11889 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
11891 * modules/readlink (Depends-on): Add unistd.
11892 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11893 (Include): Add <unistd.h>.
11895 * lib/getlogin_r.h: Remove file.
11896 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
11897 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
11898 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
11899 HAVE_DECL_GETLOGIN_R.
11900 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
11901 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11902 (Include): Use <unistd.h> instead of getlogin_r.h.
11904 * lib/getcwd.h: Remove file.
11905 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
11906 * lib/xgetcwd.c: Likewise.
11907 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
11908 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
11909 * modules/getcwd (Files): Remove lib/getcwd.h.
11910 (Depends-on): Add unistd.
11911 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11912 (Include): Use <unistd.h> instad of getcwd.h.
11914 * lib/ftruncate.c: Include <unistd.h> first.
11915 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
11916 Set HAVE_FTRUNCATE.
11917 * modules/ftruncate (Depends-on): Add unistd.
11918 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11920 * lib/fchdir.c: Include <unistd.h> first.
11921 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
11922 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
11923 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
11924 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11925 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
11927 * lib/dup2.c: Include <unistd.h> first.
11928 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
11930 * modules/dup2 (Depends-on): Add unistd.
11931 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11933 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
11934 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
11935 REPLACE_CHOWN. Don't define chown as a macro here.
11936 * modules/chown (Depends-on): Add unistd.
11937 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11939 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
11940 Add definition for GL_LINK_WARNING.
11941 (chown, dup2): New declarations.
11942 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
11944 (ftruncate): New declaration.
11945 (getcwd): New declaration, taken from old getcwd.h.
11946 (getlogin_r): New declaration, taken from old getlogin_r.h.
11947 (readlink): New declaration.
11948 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
11949 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
11950 (gl_PREREQ_UNISTD): Remove macro.
11951 (gl_UNISTD_MODULE_INDICATOR): New macro.
11952 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
11953 many new variables. Don't set UNISTD_H.
11954 * modules/unistd (Description): Change.
11955 (Depends-on): Add link-warning.
11956 (configure.ac): Update.
11957 (Makefile.am): Create unistd.h always. Substitute many new variables
11960 2007-02-18 Bruno Haible <bruno@clisp.org>
11962 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
11963 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
11965 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
11966 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
11967 * lib/getsubopt.h: Remove file.
11968 * modules/getsubopt (Files): Remove lib/getsubopt.h.
11969 (Depends-on): Add stdlib.
11970 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11971 (Includes): Use <stdlib.h> instead of getsubopt.h.
11972 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
11973 Set HAVE_GETSUBOPT.
11974 * lib/getsubopt.c: Don't include getsubopt.h.
11976 2007-02-18 Bruno Haible <bruno@clisp.org>
11978 * modules/fchdir (Depends-on): Add dup2.
11980 2007-02-18 Bruno Haible <bruno@clisp.org>
11982 * lib/stdlib_.h: Handle glibc's special invocation convention
11985 2007-02-18 Bruno Haible <bruno@clisp.org>
11987 * modules/stdlib-tests: New file.
11988 * tests/test-stdlib.c: New file.
11990 * modules/mkstemp (Files): Remove lib/mkstemp.h.
11991 (Depends-on): Add stdlib.
11992 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11993 (Includes): Use <stdlib.h> instead of mkstemp.h.
11994 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
11995 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
11996 * lib/mkstemp.c: Don't include mkstemp.h.
11997 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
11998 * lib/stdlib--.h: Don't include mkstemp.h.
12000 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
12001 (Depends-on): Add stdlib.
12002 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12003 (Includes): Use <stdlib.h> instead of mkdtemp.h.
12004 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
12006 * lib/mkdtemp.c: Don't include mkdtemp.h.
12007 * lib/clean-temp.c: Don't include mkdtemp.h.
12009 * modules/exit (Files): Remove lib/exit.h.
12010 (Depends-on): Add stdlib.
12011 (Makefile.am): Remove lib_SOURCES.
12012 (Include): Use <stdlib.h> instead of exit.h.
12013 * lib/argmatch.c: Don't include exit.h.
12014 * lib/execute.c: Likewise.
12015 * lib/pagealign_alloc.c: Likewise.
12016 * lib/pipe.c: Likewise.
12017 * lib/wait-process.c: Likewise.
12018 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
12019 * lib/exitfail.c: Likewise.
12020 * lib/savewd.c: Likewise.
12021 * lib/xsetenv.c: Likewise.
12023 * modules/stdlib: New file.
12024 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
12025 and extra comments about mkstemp().
12026 * lib/exit.h: Remove file.
12027 * lib/mkdtemp.h: Remove file.
12028 * lib/mkstemp.h: Remove file.
12029 * m4/stdlib_h.m4: New file.
12030 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
12032 2007-02-18 Bruno Haible <bruno@clisp.org>
12034 * modules/math-tests: New file.
12035 * tests/test-math.c: New file.
12037 * modules/math: New file.
12038 * modules/mathl (Files): Remove lib/mathl.h.
12039 (Depends-on): Add math.
12040 (Makefile.am): Don't mention mathl.h.
12041 (Include): Use <math.h> instead of mathl.h.
12042 * lib/math_.h: New file.
12043 * lib/mathl.h: Remove file.
12044 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
12046 * lib/asinl.c: Likewise.
12047 * lib/atanl.c: Likewise.
12048 * lib/ceill.c: Likewise.
12049 * lib/cosl.c: Likewise.
12050 * lib/expl.c: Likewise.
12051 * lib/floorl.c: Likewise.
12052 * lib/frexpl.c: Likewise.
12053 * lib/ldexpl.c: Likewise.
12054 * lib/logl.c: Likewise.
12055 * lib/sincosl.c: Likewise.
12056 * lib/sinl.c: Likewise.
12057 * lib/sqrtl.c: Likewise.
12058 * lib/tanl.c: Likewise.
12059 * lib/trigl.c: Likewise.
12060 * m4/math_h.m4: New file.
12061 * MODULES.html.sh (Mathematics): Add math.
12063 2007-02-17 Bruno Haible <bruno@clisp.org>
12065 * modules/wctype-tests: New file.
12066 * tests/test-wctype.c: New file.
12068 * modules/wchar-tests: New file.
12069 * tests/test-wchar.c: New file.
12071 * modules/unistd-tests: New file.
12072 * tests/test-unistd.c: New file.
12074 * modules/time-tests: New file.
12075 * tests/test-time.c: New file.
12077 * modules/sysexits-tests: New file.
12078 * tests/test-sysexits.c: New file.
12080 * modules/sys_time-tests: New file.
12081 * tests/test-sys_time.c: New file.
12083 * modules/sys_stat-tests: New file.
12084 * tests/test-sys_stat.c: New file.
12086 * modules/sys_socket-tests: New file.
12087 * tests/test-sys_socket.c: New file.
12089 * modules/sys_select-tests: New file.
12090 * tests/test-sys_select.c: New file.
12092 * modules/string-tests: New file.
12093 * tests/test-string.c: New file.
12095 * modules/stdbool-tests: New file.
12096 * tests/test-stdbool.c: New file.
12098 * modules/netinet_in-tests: New file.
12099 * tests/test-netinet_in.c: New file.
12101 * modules/inttypes-tests: New file.
12102 * tests/test-inttypes.c: New file.
12104 * modules/fcntl-tests: New file.
12105 * tests/test-fcntl.c: New file.
12107 * modules/byteswap-tests: New file.
12108 * tests/test-byteswap.c: New file.
12110 * modules/arpa_inet-tests: New file.
12111 * tests/test-arpa_inet.c: New file.
12113 2007-02-17 Bruno Haible <bruno@clisp.org>
12115 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
12116 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
12117 if the corresponding module is not enabled. Emit link warnings if
12118 the function is used nevertheless.
12119 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
12120 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
12121 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
12122 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
12123 * modules/inttypes (Depends-on): Add link-warning.
12124 (Makefile.am): Copy the contents of build-aux/link-warning.h into
12125 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
12126 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
12127 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
12128 * modules/imaxdiv (configure.ac): Likewise.
12129 * modules/strtoimax (configure.ac): Likewise.
12130 * modules/strtoumax (configure.ac): Likewise.
12132 2007-02-17 Bruno Haible <bruno@clisp.org>
12134 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
12135 gl_STRING_MODULE_INDICATOR_DEFAULTS.
12136 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
12137 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
12139 2007-02-17 Bruno Haible <bruno@clisp.org>
12141 * modules/link-warning: New file.
12142 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
12143 * lib/string_.h (GL_LINK_WARNING): Remove definition.
12144 * modules/string (Depends-on): Add link-warning.
12145 (Makefile.am): Copy the contents of build-aux/link-warning.h into
12147 * MODULES.html.sh (Support for building libraries and executables): Add
12150 2007-02-17 Bruno Haible <bruno@clisp.org>
12152 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
12153 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
12154 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
12157 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
12158 Bruno Haible <bruno@clisp.org>
12160 * modules/tmpfile: New file.
12161 * lib/tmpfile.c: New file.
12162 * m4/tmpfile.m4: New file.
12163 * MODULES.html.sh (func_all_modules): New section "Input/output".
12165 2007-02-15 Bruno Haible <bruno@clisp.org>
12167 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
12168 (supports_delete_on_close): New function.
12169 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
12171 2007-02-14 Bruno Haible <bruno@clisp.org>
12173 * modules/mbspcasecmp-tests: New file.
12174 * tests/test-mbspcasecmp.sh: New file.
12175 * tests/test-mbspcasecmp.c: New file.
12177 New module mbspcasecmp.
12178 * modules/mbspcasecmp: New file.
12179 * lib/mbspcasecmp.c: New file.
12180 * lib/string_.h (strncasecmp): Change warning message.
12181 (mbspcasecmp): New declaration.
12182 * m4/mbspcasecmp.m4: New file.
12183 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12184 GNULIB_MBSPCASECMP.
12185 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
12186 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
12188 2007-02-14 Bruno Haible <bruno@clisp.org>
12190 * modules/mbsncasecmp-tests: New file.
12191 * tests/test-mbsncasecmp.sh: New file.
12192 * tests/test-mbsncasecmp.c: New file.
12194 New module mbsncasecmp.
12195 * modules/mbsncasecmp: New file.
12196 * lib/mbsncasecmp.c: New file.
12197 * lib/string_.h (mbsncasecmp): New declaration.
12198 * m4/mbsncasecmp.m4: New file.
12199 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12200 GNULIB_MBSNCASECMP.
12201 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
12202 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
12204 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
12206 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
12207 Verify that it doesn't overlap with our flags.
12208 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
12209 do not have the desired effect in multibyte locales; instead, use
12211 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
12212 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
12213 we don't require GNU fnmatch ourselves (if our users require it, they
12214 should do so explicitly).
12216 Fix regex code so it doesn't rely on strcasecmp.
12217 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
12218 Otherwise, include gnulib's langinfo.h.
12219 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
12220 undesirable behavior in non-C locales. Instead, rely on localecharset.
12221 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
12222 * modules/regex (FILES): Remove m4/codeset.m4.
12223 (Depends-on): Add localcharset. Remove strcase.
12225 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12227 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
12228 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12230 2007-02-13 Bruno Haible <bruno@clisp.org>
12232 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
12233 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12235 2007-02-12 Bruno Haible <bruno@clisp.org>
12237 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
12238 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
12239 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
12240 time warning rather than a link error.
12242 2007-02-12 Bruno Haible <bruno@clisp.org>
12244 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
12245 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12246 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12248 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
12250 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
12253 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
12255 New module 'time', so that apps can include <time.h> as per
12256 POSIX and GNU instead of separate include files like time_r.h
12257 and timegm.h. This implementation tries out a simpler approach
12258 for replacing decls in standard include files (as compared to
12259 the string module), somewhat as an experiment.
12261 * config/srclist.txt: Comment out mktime.c for now.
12262 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
12263 since it doesn't apply any more. Use generic wording instead.
12264 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
12266 * lib/time_.h, m4/time_h.m4, modules/time: New files.
12267 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
12268 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
12269 Don't include <sys/types.h>; no longer needed since we assume C89.
12270 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
12271 * lib/strftime.c: Likewise.
12272 * lib/time_r.c: Likewise.
12273 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
12274 * lib/nanosleep.c: Include <time.h> first, to check interface.
12275 * lib/strptime.c: Likewise.
12276 * lib/time_r.c: Likewise.
12277 * lib/timegm.c: Likewise.
12278 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
12280 * lib/timegm.c: Don't include timegm.h; no longer needed.
12281 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
12282 time.h now handles any problems in that area.
12283 (struct timespec, nanosleep): Remove; time.h now arranges for these.
12284 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
12285 that time.h defines struct timespec.
12286 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
12287 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
12289 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
12290 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
12291 needed. Set REPLACE_LOCALTIME.
12292 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
12293 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
12294 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
12295 nanosleep; time_h.m4 now does that. Don't require
12296 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
12297 module handles this now.
12298 * modules/getdate (Depends-on): Remove timespec. Add time.
12299 * modules/nanosleep (Depends-on): Likewise.
12300 * modules/stat-time (Depends-on): Likewise.
12301 * modules/nanosleep (Include): Include time.h, not timespec.h.
12302 * modules/strptime (Files): Remove lib/strptime.h.
12303 (Depends-on): Add extensions, time.
12304 (Include): Include time.h, not strptime.h.
12305 * modules/time_r (Files): Remove lib/time_r.h.
12306 (Depends-on): Add time.
12307 (Include): Include time.h, not time_r.h.
12308 * modules/timegm: Likewise.
12309 * modules/timespec (Description): Now does timespec-related decls
12310 of our own, instead of struct timespec itself.
12311 (Depends-on): Add time; remove extensions.
12312 (Maintainer): Add self.
12313 * modules/utimecmp (Depends-on): Add time; remove timespec.
12314 * modules/utimens (Depends-on): Likewise.
12315 * modules/xnanosleep (Depends-on): Likewise.
12317 2007-02-11 Bruno Haible <bruno@clisp.org>
12319 * lib/c-strstr.c: Include allocsa.h.
12320 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12321 * lib/c-strcasestr.c: Include allocsa.h.
12322 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12323 * lib/strcasestr.c: Include allocsa.h.
12324 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12325 * lib/mbsstr.c: Include allocsa.h.
12326 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
12327 allocsa/freesa instead of malloc/free.
12328 * lib/mbscasestr.c: Include allocsa.h.
12329 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
12330 allocsa/freesa instead of malloc/free.
12331 * modules/c-strstr (Depends-on): Add allocsa.
12332 * modules/c-strcasestr (Depends-on): Likewise.
12333 * modules/strcasestr (Depends-on): Likewise.
12334 * modules/mbsstr (Depends-on): Likewise.
12335 * modules/mbscasestr (Depends-on): Likewise.
12337 2007-02-11 Bruno Haible <bruno@clisp.org>
12339 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
12341 * modules/mbsspn-tests: New file.
12342 * tests/test-mbsspn.sh: New file.
12343 * tests/test-mbsspn.c: New file.
12345 2007-02-11 Bruno Haible <bruno@clisp.org>
12347 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
12349 * modules/mbspbrk-tests: New file.
12350 * tests/test-mbspbrk.sh: New file.
12351 * tests/test-mbspbrk.c: New file.
12353 2007-02-11 Bruno Haible <bruno@clisp.org>
12355 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
12358 * modules/mbscspn-tests: New file.
12359 * tests/test-mbscspn.sh: New file.
12360 * tests/test-mbscspn.c: New file.
12362 2007-02-11 Bruno Haible <bruno@clisp.org>
12364 * modules/mbscasecmp-tests: New file.
12365 * tests/test-mbscasecmp.sh: New file.
12366 * tests/test-mbscasecmp.c: New file.
12368 2007-02-11 Bruno Haible <bruno@clisp.org>
12370 Ensure O(n) worst-case complexity of mbscasestr.
12371 * lib/mbscasestr.c: Include stdbool.h.
12372 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
12374 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
12375 the bookkeeping indicates that it's worth it.
12376 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
12378 * modules/mbscasestr-tests: New file.
12379 * tests/test-mbscasestr1.c: New file.
12380 * tests/test-mbscasestr2.sh: New file.
12381 * tests/test-mbscasestr2.c: New file.
12382 * tests/test-mbscasestr3.sh: New file.
12383 * tests/test-mbscasestr3.c: New file.
12384 * tests/test-mbscasestr4.sh: New file.
12385 * tests/test-mbscasestr4.c: New file.
12386 * m4/locale-tr.m4: New file.
12388 2007-02-11 Bruno Haible <bruno@clisp.org>
12390 Ensure O(n) worst-case complexity of mbsstr.
12391 * lib/mbsstr.c: Include stdbool.h.
12392 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
12394 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
12395 bookkeeping indicates that it's worth it.
12396 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
12398 * modules/mbsstr-tests: New file.
12399 * tests/test-mbsstr1.c: New file.
12400 * tests/test-mbsstr2.sh: New file.
12401 * tests/test-mbsstr2.c: New file.
12402 * tests/test-mbsstr3.sh: New file.
12403 * tests/test-mbsstr3.c: New file.
12404 * m4/locale-fr.m4: New file.
12406 2007-02-11 Bruno Haible <bruno@clisp.org>
12408 * lib/mbsrchr.c (mbsrchr): Fix bug.
12410 * modules/mbsrchr-tests: New file.
12411 * tests/test-mbsrchr.sh: New file.
12412 * tests/test-mbsrchr.c: New file.
12414 2007-02-11 Bruno Haible <bruno@clisp.org>
12416 * lib/mbschr.c (mbschr): Fix bug.
12418 * modules/mbschr-tests: New file.
12419 * tests/test-mbschr.sh: New file.
12420 * tests/test-mbschr.c: New file.
12421 * m4/locale-zh.m4: New file.
12423 2007-02-11 Bruno Haible <bruno@clisp.org>
12425 Support for copying multibyte string iterators.
12426 * lib/mbiter.h: Include <string.h>.
12427 (mbiter_multi_copy): New function.
12428 (mbi_copy): New macro.
12429 * lib/mbuiter.h: Include <string.h>.
12430 (mbuiter_multi_copy): New function.
12431 (mbui_copy): New macro.
12433 2007-02-11 Bruno Haible <bruno@clisp.org>
12436 * modules/mbslen: New file.
12437 * lib/mbslen.c: New file.
12438 * lib/string_.h (mbslen): New declaration.
12439 * m4/mbslen.m4: New file.
12440 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12442 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
12443 * MODULES.html.sh (Internationalization functions): Add mbslen.
12445 2007-02-11 Bruno Haible <bruno@clisp.org>
12447 Ensure O(n) worst-case complexity of strcasestr substitute.
12448 * lib/strcasestr.c: Include stdbool.h.
12449 (knuth_morris_pratt): New function.
12450 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
12451 bookkeeping indicates that it's worth it.
12452 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
12454 * modules/strcasestr-tests: New file.
12455 * tests/test-strcasestr.c: New file.
12457 2007-02-11 Bruno Haible <bruno@clisp.org>
12459 Ensure O(n) worst-case complexity of c_strcasestr.
12460 * lib/c-strcasestr.c: Include stdbool.h, string.h.
12461 (knuth_morris_pratt): New function.
12462 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
12463 the bookkeeping indicates that it's worth it.
12464 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
12466 * modules/c-strcasestr-tests: New file.
12467 * tests/test-c-strcasestr.c: New file.
12469 2007-02-11 Bruno Haible <bruno@clisp.org>
12471 Ensure O(n) worst-case complexity of c_strstr.
12472 * lib/c-strstr.c: Include stdbool.h, string.h.
12473 (knuth_morris_pratt): New function.
12474 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
12475 bookkeeping indicates that it's worth it.
12476 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
12478 * lib/c-strstr.c: Complete rewrite for maintainability.
12480 * modules/c-strstr-tests: New file.
12481 * tests/test-c-strstr.c: New file.
12483 2007-02-11 Bruno Haible <bruno@clisp.org>
12485 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
12486 5.2.1 and earlier, whereby \055 was treated just like the range
12488 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12490 2007-02-08 Bruno Haible <bruno@clisp.org>
12492 * modules/regex (Depends-on): Add stdbool.
12493 Reported by Dalibor Topic <robilad@kaffe.org>.
12495 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
12497 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
12498 Prefer returning from main to exiting from it.
12499 Remove unnecessary parens after sizeof.
12501 2007-02-05 Bruno Haible <bruno@clisp.org>
12504 * modules/mbssep: New file.
12505 * lib/mbssep.c: New file.
12506 * lib/string_.h (strsep): Add a conditional link warning.
12507 (mbssep): New declaration.
12508 * m4/mbssep.m4: New file.
12509 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12511 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
12512 * MODULES.html.sh (Internationalization functions): Add mbssep.
12514 2007-02-05 Bruno Haible <bruno@clisp.org>
12516 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
12517 Optimize search in case of 1 delimiter.
12519 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
12521 * lib/acl.h: Include sys/types.h before sys/acl.h.
12523 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
12525 Merge upstream fix for glibc bugzilla #3957:
12527 2007-02-05 Jakub Jelinek <jakub@redhat.com>
12529 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12530 bit for RE_HAT_LISTS_NOT_NEWLINE.
12531 (build_charclass_op): Remove bogus comment.
12533 2007-02-05 Simon Josefsson <simon@josefsson.org>
12535 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
12537 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
12539 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
12540 * lib/memmem.c [!defined _LIBC]: Include config.h.
12542 2007-02-04 Bruno Haible <bruno@clisp.org>
12544 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
12547 2007-02-04 Bruno Haible <bruno@clisp.org>
12549 New module mbstok_r.
12550 * modules/mbstok_r: New file.
12551 * lib/mbstok_r.c: New file.
12552 * lib/string_.h (strtok_r): Change argument names to match the
12553 comments. Add a conditional link warning.
12554 (mbstok_r): New declaration.
12555 * m4/mbstok_r.m4: New file.
12556 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12558 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
12559 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
12561 2007-02-04 Bruno Haible <bruno@clisp.org>
12564 * modules/mbsspn: New file.
12565 * lib/mbsspn.c: New file.
12566 * lib/string_.h (strspn): Add a conditional link warning.
12567 (mbsspn): New declaration.
12568 * m4/mbsspn.m4: New file.
12569 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12571 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
12572 * MODULES.html.sh (Internationalization functions): Add mbsspn.
12574 2007-02-04 Bruno Haible <bruno@clisp.org>
12576 New module mbspbrk.
12577 * modules/mbspbrk: New file.
12578 * lib/mbspbrk.c: New file.
12579 * lib/string_.h (strpbrk): Add a conditional link warning.
12580 (mbspbrk): New declaration.
12581 * m4/mbspbrk.m4: New file.
12582 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12584 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
12585 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
12587 2007-02-04 Bruno Haible <bruno@clisp.org>
12589 New module mbscspn.
12590 * modules/mbscspn: New file.
12591 * lib/mbscspn.c: New file.
12592 * lib/string_.h (strcspn): Add a conditional link warning.
12593 (mbscspn): New declaration.
12594 * m4/mbscspn.m4: New file.
12595 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12597 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
12598 * MODULES.html.sh (Internationalization functions): Add mbscspn.
12600 2007-02-04 Bruno Haible <bruno@clisp.org>
12602 New module mbscasestr, reduced goal of strcasestr.
12603 * modules/mbscasestr: New file.
12604 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
12605 (mbscasestr): Renamed from strcasestr.
12606 * lib/strcasestr.c: Don't include mbuiter.h.
12607 (strcasestr): Remove support for multibyte locales.
12608 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
12609 Change the conditional link warning.
12610 (mbscasestr): New declaration.
12611 * m4/mbscasestr.m4: New file.
12612 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
12613 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
12614 REPLACE_STRCASESTR.
12615 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
12616 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12617 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
12618 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
12619 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
12620 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
12621 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
12622 (Depends-on): Remove mbuiter.
12623 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
12625 2007-02-04 Bruno Haible <bruno@clisp.org>
12627 Simplify handling of strncasecmp.
12628 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
12629 the conditional link warning.
12630 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12631 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
12632 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
12633 * modules/strcase (configure.ac): Don't invoke
12634 gl_STRING_MODULE_INDICATOR.
12635 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
12637 2007-02-04 Bruno Haible <bruno@clisp.org>
12639 New module mbscasecmp, reduced goal of strcasecmp.
12640 * modules/mbscasecmp: New file.
12641 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
12642 (mbscasecmp): Renamed from strcasecmp.
12643 * lib/strcasecmp.c: Don't include mbuiter.h.
12644 (strcasecmp): Remove support for multibyte locales.
12645 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
12646 Change the conditional link warning.
12647 (mbscasecmp): New declaration.
12648 * m4/mbscasecmp.m4: New file.
12649 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
12650 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
12651 REPLACE_STRCASECMP.
12652 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
12653 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12655 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
12656 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
12657 * modules/strcase (Files): Remove m4/mbrtowc.m4.
12658 (Depends-on): Remove mbuiter.
12659 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
12661 2007-02-04 Bruno Haible <bruno@clisp.org>
12663 New module mbsstr. Remove module strstr.
12664 * modules/mbsstr: New file.
12665 * modules/strstr: Remove file.
12666 * lib/mbsstr.c: Renamed from lib/strstr.c.
12667 (mbsstr): Renamed from strstr.
12668 * lib/string_.h (strstr): Remove declaration. Change the conditional
12670 (mbsstr): New declaration.
12671 * m4/mbsstr.m4: New file.
12672 * m4/strstr.m4: Remove file.
12673 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
12675 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
12676 Don't initialize GNULIB_STRSTR.
12677 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
12678 substitute GNULIB_STRSTR and REPLACE_STRSTR.
12679 * MODULES.html.sh (Internationalization functions): Add mbsstr.
12680 (Support for systems lacking ANSI C 89): Remove strstr.
12682 2007-02-04 Bruno Haible <bruno@clisp.org>
12684 New module mbsrchr.
12685 * modules/mbsrchr: New file.
12686 * lib/mbsrchr.c: New file.
12687 * lib/string_.h (strrchr): Add a conditional link warning.
12688 (mbsrchr): New declaration.
12689 * m4/mbsrchr.m4: New file.
12690 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12692 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
12693 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
12695 2007-02-04 Bruno Haible <bruno@clisp.org>
12698 * modules/mbschr: New file.
12699 * lib/mbschr.c: New file.
12700 * lib/string_.h (strchr): Add a conditional link warning.
12701 (mbschr): New declaration.
12702 * m4/mbschr.m4: New file.
12703 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12705 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
12706 * MODULES.html.sh (Internationalization functions): Add mbschr.
12708 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
12710 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
12712 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
12714 2007-02-04 Bruno Haible <bruno@clisp.org>
12716 New module description section 'configure.ac-early'.
12717 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
12718 (func_get_autoconf_early_snippet): New function.
12719 (func_import, func_create_testdir): Use it. Remove special cases for
12720 modules 'extensions' and 'lock'.
12721 * modules/extensions (configure.ac-early): Require
12722 gl_USE_SYSTEM_EXTENSIONS.
12723 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
12725 2007-02-04 Bruno Haible <bruno@clisp.org>
12727 Make use of gcj-4.3's -fsource and -ftarget option.
12728 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
12729 and if so try the options -fsource and -ftarget.
12730 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
12731 source_version, ftarget_option, target_version arguments.
12732 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
12733 (is_envjavac_oldgcj_14_14_usable): Renamed from
12734 is_envjavac_gcj_14_14_usable.
12735 (is_envjavac_oldgcj_14_13_usable): Renamed from
12736 is_envjavac_gcj_14_13_usable.
12737 (is_gcj_present): Update.
12738 (is_gcj_43, is_gcj43_usable): New functions.
12739 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
12740 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
12741 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
12742 try the options -fsource and -ftarget.
12744 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
12746 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
12747 checking code. Set N = ceil (1.5 * N) rather than to a slightly
12750 2007-02-03 Jim Meyering <jim@meyering.net>
12752 Give tools a better chance to allocate space for very large buffers.
12753 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
12755 Make pwd and readlink work also when run with an unreadable parent dir
12756 on systems with openat support.
12757 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
12758 provided getcwd function, even when we have openat support.
12759 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
12761 2007-02-02 Bruno Haible <bruno@clisp.org>
12763 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
12764 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
12765 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
12766 portability problems if one of these functions is only used on specific
12768 Reported by Paul Eggert.
12770 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
12772 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
12773 is causing more trouble than it's curing.
12774 * lib/regex_internal.h (__mempcpy): Remove.
12775 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
12776 (and make the code a tad smaller to boot).
12777 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
12779 2007-02-02 Jim Meyering <jim@meyering.net>
12781 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
12782 section, not in the Makefile.am: one.
12784 2007-02-02 Eric Blake <ebb9@byu.net>
12786 * lib/strchrnul.c: Always include config.h first.
12788 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
12789 gnulib strstr is not necessary here.
12791 2007-02-02 Simon Josefsson <simon@josefsson.org>
12793 * m4/socklen.m4: Fix typo.
12795 2007-02-02 Eric Blake <ebb9@byu.net>
12797 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
12798 * modules/netinet_in (Makefile.am): Likewise.
12800 2007-02-01 Bruno Haible <bruno@clisp.org>
12802 * lib/string_.h (GL_LINK_WARNING): New macro.
12803 (strcasecmp, strstr, strcasestr): If provided by the system,
12804 conditionally define as a macro that leads to a warning instead of to
12806 (strncasecmp): Conditionally define as a macro that leads to a warning.
12808 2007-02-01 Karl Berry <karl@gnu.org>
12810 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
12812 2007-02-01 Bruno Haible <bruno@clisp.org>
12814 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
12817 2007-02-01 Eric Blake <ebb9@byu.net>
12819 * modules/regex (Depends-on): Revert dependence on mempcpy.
12820 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
12821 module's definition of mempcpy.
12822 Reported by Paul Eggert.
12824 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
12826 * lib/string_.h: If the gnulib module XYZ is not present, undefine
12827 the symbol XYZ before redefining it. This fixes a problem with
12828 programs that don't use XYZ, when compiled on systems that define
12829 XYZ to something else.
12831 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
12833 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
12834 occurs when "mkdir -m foo" creates a setgid directory that is (1)
12835 writeable to group or other and (2) is intended to have a special
12836 mode bit that is set or cleared. In such a case, the directory
12837 should be neither group- nor other-writeable until the special
12838 mode bits are right.
12840 2007-01-31 Eric Blake <ebb9@byu.net>
12842 * modules/mountlist (Depends-on): Add strstr.
12844 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
12846 * modules/string (Makefile.am): Remove redundant replacement.
12847 * modules/regex (Depends-on): Add mempcpy.
12849 2007-01-31 Bruno Haible <bruno@clisp.org>
12851 New module description field 'Link'.
12852 * gnulib-tool (func_usage): Document --extract-link-directive.
12853 (sed_extract_prog): Recognize 'Link' directive.
12854 (func_get_link_directive): New function.
12855 (func_import): Show summary of link directives.
12856 Handle --extract-link-directive option.
12857 * modules/acl (Link): New section.
12858 * modules/clock-time (Link): New section.
12859 * modules/euidaccess (Link): New section.
12860 * modules/gettext (Link): New section.
12861 * modules/iconv (Link): New section.
12862 * modules/lock (Link): New section.
12863 * modules/nanosleep (Link): New section.
12864 * modules/readline (Link): New section.
12866 2007-01-27 Bruno Haible <bruno@clisp.org>
12868 Enforce the use of gnulib modules for unportable <string.h> functions.
12869 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
12870 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
12871 (gl_HEADER_STRING_H_BODY): Require it.
12872 * lib/string_.h: If the gnulib module XYZ is not present, redefine
12873 the symbol XYZ to one that gives a link error.
12874 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
12875 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
12876 * modules/mempcpy (configure.ac): Likewise.
12877 * modules/memrchr (configure.ac): Likewise.
12878 * modules/stpcpy (configure.ac): Likewise.
12879 * modules/stpncpy (configure.ac): Likewise.
12880 * modules/strcase (configure.ac): Likewise.
12881 * modules/strcasestr (configure.ac): Likewise.
12882 * modules/strchrnul (configure.ac): Likewise.
12883 * modules/strdup (configure.ac): Likewise.
12884 * modules/strndup (configure.ac): Likewise.
12885 * modules/strnlen (configure.ac): Likewise.
12886 * modules/strpbrk (configure.ac): Likewise.
12887 * modules/strsep (configure.ac): Likewise.
12888 * modules/strstr (configure.ac): Likewise.
12889 * modules/strtok_r (configure.ac): Likewise.
12891 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
12893 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
12895 2007-01-30 Jim Meyering <jim@meyering.net>
12897 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
12899 2007-01-29 Bruno Haible <bruno@clisp.org>
12901 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
12902 * lib/execute.c: Likewise.
12903 * lib/pipe.c: Likewise.
12904 * lib/printf-args.h: Likewise.
12905 * lib/printf-args.c: Likewise.
12906 * lib/printf-parse.c: Likewise.
12907 * lib/vasnprintf.c: Likewise.
12909 2007-01-29 Eric Blake <ebb9@byu.net>
12911 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
12914 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
12916 * lib/strptime.h (strptime): Use 'restrict' for args where
12917 POSIX requires this.
12918 * lib/strptime.c (strptime): Likewise.
12919 Change license notice from LGPL to GPL, since gnulib-tool will
12920 change this as needed.
12921 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
12923 Include "strptime.h" first, to check interface.
12924 Do not #undef _LIBC and _NL_CURRENT.
12925 Do not include <stdlib.h>; no longer needed.
12926 Include "time_r.h" and declare ptime_locale_status
12927 only if _LIBC is not defined.
12928 (__P): Remove unused macro.
12929 (match_string): Bring back glibc version, but use it only if _LIBC
12931 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
12932 Remove unnecessary assertion and abort() call.
12933 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
12934 * m4/strptime.m4: Fix serial number comment.
12935 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
12936 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
12937 (Depends-on): Add time_r.
12939 2007-01-29 Bruno Haible <bruno@clisp.org>
12941 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12943 * modules/strptime (Depends-on): Add stdbool.
12944 * lib/strptime.h: Include <time.h> always. Add comments.
12946 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
12948 * modules/strptime: New file.
12949 * lib/strptime.h: New file.
12950 * lib/strptime.c: New file.
12951 * m4/strptime.m4: New file.
12953 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
12955 * MODULES.html.sh: New module mpsort.
12956 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
12958 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
12959 a circularity problem with HP-UX ia64 reported by Bob Proulx in
12960 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
12962 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
12964 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
12966 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
12967 the parameter matches the prototype.
12969 2007-01-28 Jim Meyering <jim@meyering.net>
12971 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
12972 sys/time.h here, reverting that part of the previous patch:
12973 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
12975 2007-01-28 Bruno Haible <bruno@clisp.org>
12977 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
12978 value of $(SYS_TIME_H).
12979 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
12980 remove it conditionally, too. [added by Jim Meyering]
12981 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
12982 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
12983 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
12984 GETTIMEOFDAY_REPLACEMENT to 1.
12986 2007-01-28 Bruno Haible <bruno@clisp.org>
12988 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
12989 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
12990 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
12991 Set UNISTD_H instead of UNISTD_H2.
12992 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
12994 2007-01-28 Bruno Haible <bruno@clisp.org>
12996 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
12997 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
12999 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13001 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
13002 (func_create_testdir): Ensure C locale for `grep' and `tr'
13004 (func_create_megatestdir): Avoid one `grep'. Fix bug in
13005 ACLOCAL_AMFLAGS parsing state machine.
13007 2007-01-27 Bruno Haible <bruno@clisp.org>
13009 * modules/unistr/base: Update.
13011 2007-01-27 Bruno Haible <bruno@clisp.org>
13013 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
13014 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
13015 * modules/unistr/u32-mbtouc-unsafe: Renamed from
13016 modules/unistr/u32-mbtouc.
13017 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
13018 * lib/unistr.h: Update.
13019 * lib/linebreak.c: Update.
13020 * modules/unistr/u32-mbtouc: Renamed from
13021 modules/unistr/u32-mbtouc-safe.
13022 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
13023 * lib/unistr.h: Update.
13024 * lib/unistr/u32-to-u8.c: Update.
13025 * lib/unistr/u32-to-u16.c: Update.
13027 2007-01-27 Bruno Haible <bruno@clisp.org>
13029 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
13030 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
13031 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
13032 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
13033 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
13034 * modules/unistr/u16-mbtouc-unsafe: Renamed from
13035 modules/unistr/u16-mbtouc.
13036 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
13037 * lib/unistr.h: Update.
13038 * lib/linebreak.c: Update.
13039 * modules/linebreak: Update.
13040 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
13041 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
13042 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
13043 * modules/unistr/u16-mbtouc: Renamed from
13044 modules/unistr/u16-mbtouc-safe.
13045 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
13046 * lib/unistr.h: Update.
13047 * lib/unistr/u16-to-u8.c: Update.
13048 * modules/unistr/u16-to-u8: Update.
13049 * lib/unistr/u16-to-u32.c: Update.
13050 * modules/unistr/u16-to-u32: Update.
13052 2007-01-27 Bruno Haible <bruno@clisp.org>
13054 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
13055 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
13056 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
13057 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
13058 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
13059 * modules/unistr/u8-mbtouc-unsafe: Renamed from
13060 modules/unistr/u8-mbtouc.
13061 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
13062 * lib/unistr.h: Update.
13063 * lib/striconveh.c: Update.
13064 * modules/striconveh: Update.
13065 * lib/linebreak.c: Update.
13066 * modules/linebreak: Update.
13067 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
13068 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
13069 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
13070 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
13071 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
13072 * lib/unistr.h: Update.
13073 * lib/striconveh.c: Update.
13074 * modules/striconveh: Update.
13075 * lib/unistr/u8-to-u16.c: Update.
13076 * modules/unistr/u8-to-u16: Update.
13077 * lib/unistr/u8-to-u32.c: Update.
13078 * modules/unistr/u8-to-u32: Update.
13080 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13083 * lib/argz.c: Do not include strings.h nor memory.h, include
13084 string.h unconditionally. Patch by Simon Josefsson.
13086 2007-01-27 Bruno Haible <bruno@clisp.org>
13088 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
13089 from gl_HEADER_STRING_H_BODY.
13090 (gl_HEADER_STRING_H_BODY): Require it.
13091 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
13092 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
13093 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
13094 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
13095 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13096 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
13097 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13098 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
13099 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
13100 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
13101 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
13102 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
13103 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
13104 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13105 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13107 2007-01-27 Bruno Haible <bruno@clisp.org>
13109 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
13110 check_PROGRAMS into noinst_PROGRAMS.
13111 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
13112 check_PROGRAMS in this case.
13113 (func_import): Set for_test to false.
13114 (func_create_testdir): Set for_test to true.
13116 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13117 Bruno Haible <bruno@clisp.org>
13119 * modules/strcasestr (Files): Remove lib/strcasestr.h.
13120 (Depends-on): Add string.
13121 (Includes): Use <string.h> instead of strcasestr.h.
13122 * modules/string (Makefile.am): Also substitute the value of
13123 REPLACE_STRCASESTR.
13124 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
13125 assume strcasestr is declared in <string.h> not <strings.h>. Also
13126 set REPLACE_STRCASESTR.
13127 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
13128 REPLACE_STRCASESTR.
13129 * lib/strcasestr.h: Remove file.
13130 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
13131 * lib/string_.h (strcasestr): New declaration.
13133 2007-01-27 Bruno Haible <bruno@clisp.org>
13135 * lib/string_.h: Use 'extern'.
13137 2007-01-27 Jim Meyering <jim@meyering.net>
13139 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
13140 of set-but-not-used local, "q".
13142 * lib/mempcpy.c: Include <config.h> before <string.h>.
13143 This fixes a compilation error on HP-UX, due to the system's
13144 "restrict"-using mempcpy prototype.
13146 2007-01-26 Bruno Haible <bruno@clisp.org>
13148 Small optimization.
13149 * lib/javacomp.c: Include c-strstr.h.
13150 (is_envjavac_gcj): Use c_strstr instead of strstr.
13151 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
13153 2007-01-26 Bruno Haible <bruno@clisp.org>
13155 * MODULES.html.sh (Unicode string functions): Add the new modules.
13157 * modules/uniconv/u32-strconv-to-locale: New file.
13158 * lib/uniconv/u32-strconv-to-locale.c: New file.
13160 * modules/uniconv/u16-strconv-to-locale: New file.
13161 * lib/uniconv/u16-strconv-to-locale.c: New file.
13163 * modules/uniconv/u8-strconv-to-locale: New file.
13164 * lib/uniconv/u8-strconv-to-locale.c: New file.
13166 * modules/uniconv/u32-strconv-from-locale: New file.
13167 * lib/uniconv/u32-strconv-from-locale.c: New file.
13169 * modules/uniconv/u16-strconv-from-locale: New file.
13170 * lib/uniconv/u16-strconv-from-locale.c: New file.
13172 * modules/uniconv/u8-strconv-from-locale: New file.
13173 * lib/uniconv/u8-strconv-from-locale.c: New file.
13175 * modules/uniconv/u32-strconv-to-enc: New file.
13176 * lib/uniconv/u32-strconv-to-enc.c: New file.
13177 * modules/uniconv/u32-strconv-to-enc-tests: New file.
13178 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
13180 * modules/uniconv/u16-strconv-to-enc: New file.
13181 * lib/uniconv/u16-strconv-to-enc.c: New file.
13182 * lib/uniconv/u-strconv-to-enc.h: New file.
13183 * modules/uniconv/u16-strconv-to-enc-tests: New file.
13184 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
13186 * modules/uniconv/u8-strconv-to-enc: New file.
13187 * lib/uniconv/u8-strconv-to-enc.c: New file.
13188 * modules/uniconv/u8-strconv-to-enc-tests: New file.
13189 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
13191 * modules/uniconv/u32-strconv-from-enc: New file.
13192 * lib/uniconv/u32-strconv-from-enc.c: New file.
13193 * modules/uniconv/u32-strconv-from-enc-tests: New file.
13194 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
13196 * modules/uniconv/u16-strconv-from-enc: New file.
13197 * lib/uniconv/u16-strconv-from-enc.c: New file.
13198 * modules/uniconv/u16-strconv-from-enc-tests: New file.
13199 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
13201 * modules/uniconv/u8-strconv-from-enc: New file.
13202 * lib/uniconv/u8-strconv-from-enc.c: New file.
13203 * lib/uniconv/u-strconv-from-enc.h: New file.
13204 * modules/uniconv/u8-strconv-from-enc-tests: New file.
13205 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
13207 * modules/uniconv/u32-conv-from-enc: New file.
13208 * lib/uniconv/u32-conv-from-enc.c: New file.
13209 * modules/uniconv/u32-conv-from-enc-tests: New file.
13210 * tests/uniconv/test-u32-conv-from-enc.c: New file.
13212 * modules/uniconv/u16-conv-from-enc: New file.
13213 * lib/uniconv/u16-conv-from-enc.c: New file.
13214 * lib/uniconv/u-conv-from-enc.h: New file.
13215 * modules/uniconv/u16-conv-from-enc-tests: New file.
13216 * tests/uniconv/test-u16-conv-from-enc.c: New file.
13218 * modules/uniconv/u8-conv-from-enc: New file.
13219 * lib/uniconv/u8-conv-from-enc.c: New file.
13220 * modules/uniconv/u8-conv-from-enc-tests: New file.
13221 * tests/uniconv/test-u8-conv-from-enc.c: New file.
13223 * modules/uniconv/base: New file.
13224 * lib/uniconv.h: New file.
13226 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
13228 * doc/gnulib-tool.texi (Initial import): Update to match current
13229 behavior with strdup module.
13230 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
13231 * lib/memmem.h: Remove; all uses removed. This is now done
13233 * lib/mempcpy.h: Likewise.
13234 * lib/memrchr.h: Likewise.
13235 * lib/stpcpy.h: Likewise.
13236 * lib/stpncpy.h: Likewise.
13237 * lib/strcase.h: Likewise.
13238 * lib/strchrnul.h: Likewise.
13239 * lib/strdup.h: Likewise.
13240 * lib/strndup.h: Likewise.
13241 * lib/strnlen.h: Likewise.
13242 * lib/strpbrk.h: Likewise.
13243 * lib/strsep.h: Likewise.
13244 * lib/strstr.h: Likewise.
13245 * lib/strtok_r.h: Likewise.
13246 * lib/string_.h: New file.
13247 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
13248 Rely on <string.h> instead.
13249 * lib/canon-host.c: Likewise.
13250 * lib/chdir-long.c: Likewise.
13251 * lib/concatpath.c: Likewise.
13252 * lib/exclude.c: Likewise.
13253 * lib/fchdir.c: Likewise.
13254 * lib/getaddrinfo.c: Likewise.
13255 * lib/getcwd.c: Likewise.
13256 * lib/getsubopt.c: Likewise.
13257 * lib/glob.c: Likewise.
13258 * lib/hard-locale.c: Likewise.
13259 * lib/iconvme.c: Likewise.
13260 * lib/javacomp.c: Likewise.
13261 * lib/mempcpy.c: Likewise.
13262 * lib/memrchr.c: Likewise.
13263 * lib/regex_internal.h: Likewise.
13264 * lib/stpncpy.c: Likewise.
13265 * lib/strcasecmp.c: Likewise.
13266 * lib/strchrnul.c: Likewise.
13267 * lib/strdup.c: Likewise.
13268 * lib/striconv.c: Likewise.
13269 * lib/striconveh.c: Likewise.
13270 * lib/striconveha.c: Likewise.
13271 * lib/strncasecmp.c: Likewise.
13272 * lib/strndup.c: Likewise.
13273 * lib/strnlen.c: Likewise.
13274 * lib/strsep.c: Likewise.
13275 * lib/strstr.c: Likewise.
13276 * lib/strtok_r.c: Likewise.
13277 * lib/userspec.c: Likewise.
13278 * lib/w32spawn.h: Likewise.
13279 * lib/xstrndup.c: Likewise.
13280 * lib/mountlist.c (strstr): Remove decl.
13281 * m4/string_h.m4: New file.
13282 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
13283 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
13284 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
13285 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
13286 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
13287 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
13288 Set REPLACE_STRCASECMP if necessary.
13289 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
13290 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
13291 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
13292 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
13293 HAVE_DECL_STRDUP if necessary.
13294 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
13295 since gl_FUNC_STRNDUP does that now.
13296 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
13297 Check for decl here...
13298 (gl_PREREQ_STRNLEN): ... not here.
13299 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
13300 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
13301 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
13302 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
13304 * modules/string: New file.
13305 * modules/memmem (Files): Remove special-purpose include file.
13306 (Depends-on): Add string.
13307 (Include): Include <string.h>, not the removed file.
13308 * modules/mempcpy: Likewise.
13309 * modules/memrchr: Likewise.
13310 * modules/stpcpy: Likewise.
13311 * modules/stpncpy: Likewise.
13312 * modules/strcase: Likewise.
13313 * modules/strchrnul: Likewise.
13314 * modules/strdup: Likewise.
13315 * modules/strndup: Likewise.
13316 * modules/strnlen: Likewise.
13317 * modules/strpbrk: Likewise.
13318 * modules/strsep: Likewise.
13319 * modules/strstr: Likewise.
13320 * modules/strtok_r: Likewise.
13321 * tests/test-dirname.c: Don't include "strdup.h", since
13322 <string.h> now suffices.
13323 * tests/test-memmem.c: Don't include "memmem.h", since
13324 <string.h> now suffices.
13326 2007-01-25 Bruno Haible <bruno@clisp.org>
13328 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
13331 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
13332 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
13333 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
13334 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
13336 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
13337 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
13338 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
13339 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
13340 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
13341 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
13343 2007-01-24 Bruno Haible <bruno@clisp.org>
13345 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
13346 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
13347 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
13348 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
13350 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
13351 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
13352 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13353 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
13354 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
13355 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
13357 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
13359 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
13360 Reported by Ralf Wildenhues.
13362 2007-01-24 Bruno Haible <bruno@clisp.org>
13364 Drop AC_REQUIRE calls that are redundant with the module dependencies.
13365 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
13367 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
13368 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
13369 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
13371 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
13373 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
13374 Don't use 'exit'; just return from 'main'.
13375 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
13377 * lib/fnmatch_.h: Readjust white space and comments to match
13378 glibc, to avoid spurious diffs.
13380 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
13382 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
13383 2004-12-01 change by Jakub Jelinek, since this code won't compile
13384 if !LIBC. Problem reported by Bob Proulx.
13386 2007-01-23 Bruno Haible <bruno@clisp.org>
13388 * lib/striconveh.c: Include c-strcaseeq.h.
13389 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
13390 * modules/striconveh (Depends-on): Add c-strcaseeq.
13392 2007-01-23 Bruno Haible <bruno@clisp.org>
13394 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
13396 * modules/c-strcaseeq: New file.
13397 * lib/c-strcaseeq.h: New file.
13399 * modules/streq: New file.
13400 * lib/streq.h: New file.
13402 2007-01-23 Bruno Haible <bruno@clisp.org>
13404 * modules/striconveha-tests: New file.
13405 * tests/test-striconveha.c: New file.
13407 * lib/striconveha.h: Include <stdbool.h>.
13408 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
13409 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
13410 (mem_iconveha_notranslit): Renamed from mem_iconveha.
13411 (mem_iconveha): New function.
13412 (str_iconveha_notranslit): Renamed from str_iconveha.
13413 (str_iconveha): New function.
13414 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
13417 2007-01-23 Bruno Haible <bruno@clisp.org>
13419 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
13420 encodings without forgiving before trying any encoding with handler.
13421 (str_iconveha): Try all encodings without forgiving before trying any
13422 encoding with handler.
13424 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
13426 Import the following changes from libc.
13428 2005-10-14 Ulrich Drepper <drepper@redhat.com>
13430 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
13432 2004-12-01 Jakub Jelinek <jakub@redhat.com>
13434 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
13435 normal_bracket label.
13437 2004-09-01 Jakub Jelinek <jakub@redhat.com>
13440 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
13441 to normal_bracket after fetching the next character.
13443 2007-01-22 Bruno Haible <bruno@clisp.org>
13445 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
13447 * lib/striconveh.c (iconv_carefully_1): New function.
13448 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
13450 (str_cd_iconveh): Update.
13451 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
13452 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
13453 * tests/test-striconveh.c (MAGIC): New macro.
13454 (new_offsets): New function.
13455 (main): Test call with and without offsets.
13457 2007-01-22 Bruno Haible <bruno@clisp.org>
13459 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
13460 * modules/sys_select (Makefile.am): Likewise.
13461 * modules/sys_socket (Makefile.am): Likewise.
13462 * modules/sys_time (Makefile.am): Likewise.
13464 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
13466 * modules/gettimeofday (License): Change from GPL to LGPL, since
13467 gettimeofday is a library function.
13469 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13471 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
13473 2007-01-21 Bruno Haible <bruno@clisp.org>
13475 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
13477 2007-01-21 Bruno Haible <bruno@clisp.org>
13479 * modules/striconveha: New file.
13480 * lib/striconveha.h: New file.
13481 * lib/striconveha.c: New file.
13482 * MODULES.html.sh (Internationalization functions): Add striconveha.
13483 * lib/striconv.c (str_iconv): Optimize the case of an empty input
13485 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
13487 2007-01-21 Bruno Haible <bruno@clisp.org>
13489 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
13490 * lib/striconveh.c (str_iconveh): Likewise.
13492 2007-01-21 Bruno Haible <bruno@clisp.org>
13494 * lib/striconveh.h (mem_iconveh): New declaration.
13495 * lib/striconveh.c (mem_iconveh): New function.
13496 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
13498 2007-01-21 Bruno Haible <bruno@clisp.org>
13500 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
13502 * lib/striconveh.h (mem_cd_iconveh): Change specification.
13503 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
13504 original result buffer.
13505 (str_cd_iconveh): Update.
13506 * tests/test-striconveh.c (main): Update.
13508 * lib/striconv.h (mem_cd_iconv): Change specification.
13509 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
13511 (str_cd_iconv): Update.
13512 * tests/test-striconv.c (main): Update.
13514 2007-01-21 Bruno Haible <bruno@clisp.org>
13516 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
13518 2007-01-20 Jim Meyering <jim@meyering.net>
13520 * lib/userspec.c (parse_with_separator): If a user or group string
13521 starts with "+", skip the corresponding name-to-ID look-up, since
13522 such a look-up must fail: user and group names may not include "+".
13524 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
13526 * lib/poll.c: Include sys/time.h and time.h unconditionally,
13527 since we now assume the sys_time module.
13528 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
13529 check for sys/time.h; no longer needed.
13530 * modules/poll (Depends-on): Depend on sys_time.
13532 2007-01-18 Bruno Haible <bruno@clisp.org>
13534 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
13535 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
13537 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
13540 * tests/test-gettimeofday.c: Include <time.h>.
13541 (dummy): Remove variable.
13543 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
13544 gl_HEADER_SYS_TIME_H.
13545 (gl_HEADER_SYS_TIME_H): New macro.
13547 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
13548 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13549 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13550 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
13551 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13552 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
13553 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
13554 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13555 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
13556 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
13557 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13559 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
13560 last change; it caused a compilation error when cross-compiling to
13563 2007-01-18 Jim Meyering <jim@meyering.net>
13565 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
13566 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
13567 than the race-prone "test -d sys || mkdir sys".
13568 (configure.ac): Use AC_PROG_MKDIR_P.
13569 * modules/sys_select: Likewise.
13570 * modules/sys_socket: Likewise.
13571 * modules/sys_time: Likewise.
13573 2007-01-18 Eric Blake <ebb9@byu.net>
13575 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
13576 replace gettimeofday.
13577 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
13578 name, to avoid infinite recursion.
13580 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
13582 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
13584 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
13585 assume timespec.h defines struct timeval.
13586 * lib/settime.c: Likewise.
13587 * lib/utimens.c: Likewise.
13588 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
13589 since we now assume the gettimeofday module.
13590 * lib/tempname.c (__gen_tempname): Likewise.
13591 * lib/gettimeofday.h: Remove.
13592 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
13593 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
13594 Include <time.h>, for 'time()'.
13595 (localtime_buffer_addr): Also use this workaround if
13596 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
13597 to simplify the uses. All uses changed.
13598 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
13599 that #undef is inside {}, and 'const' follows type name consistently.
13600 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
13601 (gettimeofday): Do not use the maximum possible value for
13602 tv->tv_usec, since that might break usages other than ls.c.
13603 Instead, we'll leave ls.c alone. This undoes today's patch
13604 by Bruno. Add a compile-time warning for 1s-clock resolution;
13605 we've never observed the problem but might as well keep the
13607 * lib/nanosleep.c: Include timespec.h first, for interface check.
13608 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
13609 now assume the sys_time module.
13610 * lib/tempname.c: Likewise.
13611 * lib/timespec.h: Likewise.
13612 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
13614 * lib/strftime.c: Likewise.
13615 * lib/timespec.h: Likewise.
13616 * lib/posixtm.c: Include posixtm.h first, for interface check.
13617 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
13618 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
13619 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
13620 * lib/sys_time_.h: New file.
13621 * lib/timespec.h (struct timespec): Use long int, not long.
13622 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
13623 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
13624 Remove obsolescent call to AC_HEADER_TIME.
13625 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13626 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13627 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
13628 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
13630 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
13631 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
13632 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
13633 into the sys_time module. Check for gettimeofday just once.
13634 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
13635 for gettimeofday signature to just check the signature. Merely
13636 compile it, since linking doesn't test signature. Improve test for
13637 whether gettimeofday.o is actually needed.
13638 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
13639 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
13640 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
13641 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13642 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
13643 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
13644 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
13645 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
13646 than worrying about sys/time.h.
13647 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13648 Don't bother worrying about TIME_WITH_SYS_TIME.
13649 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
13650 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
13651 * m4/sys_time_h.m4: New file.
13652 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
13653 Don't include sys/time.h. Return from main rather than exiting.
13654 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
13656 * modules/gethrxtime (Depends-on): Add sys_time.
13657 * modules/gettime (Depends-on): Likewise.
13658 * modules/gettimeofday (Depends-on): Likewise.
13659 * modules/nanosleep (Depends-on): Likewise.
13660 * modules/settime (Depends-on): Likewise.
13661 * modules/tempname (Depends-on): Likewise.
13662 * modules/utimens (Depends-on): Likewise.
13663 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
13664 (Include:) Change back to <sys/time.h>.
13665 (Maintainer:) Add self.
13666 * modules/sys_time: New file.
13667 * modules/tempname (Depends-on): Add gettimeofday.
13668 * tests/test-gettimeofday.c: Include <sys/time.h>
13669 rather than gettimeofday.h.
13671 2007-01-17 Bruno Haible <bruno@clisp.org>
13673 * gnulib-tool (func_get_license): Revert last patch. Instead, let
13674 the license default to GPL.
13675 (func_create_testdir): Don't complain if a module is LGPL and its
13676 tests module depends on GPLed modules.
13678 2007-01-17 Bruno Haible <bruno@clisp.org>
13680 * lib/gettimeofday.c (gettimeofday): Add code for the case
13681 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
13682 maximum possible value for tv->tv_usec, rather than the minimum one.
13684 2005-10-08 Martin Lambers <marlam@marlam.de>
13685 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
13686 2007-01-16 Bruno Haible <bruno@clisp.org>
13688 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
13689 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
13690 gl_FUNC_GETTIMEOFDAY.
13691 (Include): Add gettimeofday.h.
13692 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
13693 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
13694 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
13695 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
13696 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
13697 * lib/gettimeofday.h: New file.
13698 * lib/gettimeofday.c: Include <sys/timeb.h>.
13699 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
13700 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13701 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
13702 fall back on time().
13704 * tests/test-gettimeofday.c: New file.
13705 * modules/gettimeofday-tests: New file.
13707 2007-01-16 Eric Blake <ebb9@byu.net>
13709 * modules/fnmatch (Depends-on): Depend on wchar.
13710 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
13711 * m4/fnmatch.m4: Likewise.
13712 * modules/mbchar (Makefile.am): Assume <wchar.h>.
13713 * m4/mbchar.m4: Likewise.
13714 * modules/mbswidth (Depends-on): Depend on wchar.
13715 * lib/mbswidth.c: Assume <wchar.h>.
13716 * m4/mbswidth.m4: Likewise.
13717 * modules/quotearg (Depends-on): Depend on wchar.
13718 * lib/quotearg.c: Assume <wchar.h>.
13719 * m4/quotearg.m4: Likewise.
13720 * modules/regex (Depends-on): Depend on wchar.
13721 * lib/regex_internal.h: Assume <wchar.h>.
13722 * m4/regex.m4: Likewise.
13723 * modules/stdint (Depends-on): Depend on wchar.
13724 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
13725 * m4/stdint.m4: Likewise.
13726 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
13727 * modules/strftime (Depends-on): Depend on wchar.
13728 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
13729 * modules/strtol (Depends-on): Depend on wchar.
13730 * lib/strtol.c: Assume <wchar.h>.
13731 * modules/wcwidth (Depends-on): Depend on wchar.
13732 * lib/wcwidth.h: Assume <wchar.h>.
13733 * m4/wcwidth.m4: Likewise.
13735 2007-01-16 Bruno Haible <bruno@clisp.org>
13737 * modules/csharpexec-script: New, created from...
13738 * modules/csharpexec: ... this.
13740 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
13742 * modules/javaexec-script: New, created from...
13743 * modules/javaexec: ... this.
13745 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13747 * modules/poll (Dependencies): Add sys_select.
13749 2007-01-15 Jim Meyering <jim@meyering.net>
13751 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
13752 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
13753 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
13754 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
13756 2007-01-15 Bruno Haible <bruno@clisp.org>
13758 * modules/striconveh: New file.
13759 * lib/striconveh.h: New file.
13760 * lib/striconveh.c: New file.
13761 * MODULES.html.sh (Internationalization functions): Add striconveh.
13763 * modules/striconveh-tests: New file.
13764 * tests/test-striconveh.c: New file.
13766 2007-01-15 Bruno Haible <bruno@clisp.org>
13768 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
13769 not from GNU libiconv or GNU libc.
13771 2007-01-15 Bruno Haible <bruno@clisp.org>
13773 * doc/gnulib-intro.texi (Copyright): Explain the different license
13774 terms for module descriptions, autoconf macros, tests, documentation.
13776 2007-01-14 Bruno Haible <bruno@clisp.org>
13778 * modules/striconv-tests: New file.
13779 * tests/test-striconv.c: New file.
13781 2007-01-14 Bruno Haible <bruno@clisp.org>
13783 * modules/iconv-tests: New file.
13784 * tests/test-iconv.c: New file.
13786 2007-01-14 Bruno Haible <bruno@clisp.org>
13788 * gnulib-tool (func_get_license): For test modules, use the license of
13791 2007-01-14 Bruno Haible <bruno@clisp.org>
13793 * modules/iconv (Include): Clarify that <iconv.h> can only be included
13794 if iconv is found to exist.
13796 2007-01-14 Bruno Haible <bruno@clisp.org>
13798 * modules/c-ctype-tests: New file.
13799 * tests/test-c-ctype.c: New file.
13801 2007-01-14 Bruno Haible <bruno@clisp.org>
13803 * modules/binary-io-tests: New file.
13804 * tests/test-binary-io.sh: New file.
13805 * tests/test-binary-io.c: New file.
13807 2007-01-14 Bruno Haible <bruno@clisp.org>
13809 * modules/array-oset-tests: New file.
13810 * tests/test-array_oset.c: New file.
13812 2007-01-14 Bruno Haible <bruno@clisp.org>
13814 * modules/array-list-tests: New file.
13815 * tests/test-array_list.c: New file.
13817 2007-01-14 Bruno Haible <bruno@clisp.org>
13819 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
13821 Reported by Simon Josefsson in
13822 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
13824 2007-01-14 Bruno Haible <bruno@clisp.org>
13826 * modules/allocsa-tests: New file.
13827 * tests/test-allocsa.c: New file.
13829 2007-01-14 Bruno Haible <bruno@clisp.org>
13831 * modules/fchdir (Depends-on): Add absolute-header.
13832 * modules/unistd (Depends-on): Likewise.
13834 2006-12-30 Bruno Haible <bruno@clisp.org>
13836 * modules/fchdir: New file.
13837 * modules/unistd (Files): Add lib/unistd_.h.
13838 (Makefile.am): Generate unistd.h from unistd_.h.
13839 * lib/fchdir.c: New file.
13840 * lib/dirent_.h: New file.
13841 * lib/unistd_.h: New file.
13842 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
13843 * m4/fchdir.m4: New file.
13844 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
13845 (gl_HEADER_UNISTD): Invoke it.
13846 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
13848 * lib/backupfile.c (opendir, closedir): Undefine.
13849 * lib/chown.c (open, close): Undefine.
13850 * lib/clean-temp.c (open, close): Undefine.
13851 * lib/copy-file.c (open, close): Undefine.
13852 * lib/execute.c (open, close): Undefine.
13853 * lib/fsusage.c (open, close): Undefine.
13854 * lib/gc-gnulib.c (open, close): Undefine.
13855 * lib/getcwd.c (opendir, closedir): Undefine.
13856 * lib/glob.c (opendir, closedir): Undefine.
13857 * lib/javacomp.c (open, close): Undefine.
13858 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
13859 * lib/openat-proc.c (open, close): Undefine.
13860 * lib/pagealign_alloc.c (open, close): Undefine.
13861 * lib/pipe.c (open, close): Undefine.
13862 * lib/progreloc.c (open, close): Undefine.
13863 * lib/savedir.c (opendir, closedir): Undefine.
13864 * lib/utime.c (open, close): Undefine.
13865 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
13867 2007-01-10 Bruno Haible <bruno@clisp.org>
13869 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
13871 2007-01-12 Eric Blake <ebb9@byu.net>
13873 Provide a robust <wchar.h>. Further simplifications are now
13874 possible in other modules, but not included here.
13875 * modules/wchar: New module.
13876 * m4/wchar.m4: New file.
13877 * lib/wchar_.h: Likewise.
13878 * modules/mbchar (Depends-on): Depend on wchar, as the first use
13880 * MODULES.html.sh (Extended multibyte and wide character utilities):
13883 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
13885 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
13886 to a reasonable default for memory allocation.
13887 (xreadlink): Don't allocate a huge buffer, to work around a buggy
13888 file system that reports garbage st_size values for symlinks.
13889 Problem reported by Liyang Hu.
13891 2007-01-11 Simon Josefsson <simon@josefsson.org>
13893 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
13894 Emacs .#* auto-save files).
13896 2007-01-11 Bruno Haible <bruno@clisp.org>
13898 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
13901 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
13903 Use @...@ consistently in lib/wctype_.h.
13904 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
13905 on it being set to 1 or 0.
13906 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
13907 go back to AC_SUBSTing it.
13908 * modules/wctype (Makefile.am): Undo previous change.
13910 2007-01-10 Eric Blake <ebb9@byu.net>
13912 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
13913 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
13914 * modules/wctype (Makefile.am): Likewise.
13915 Reported by Chris McGuire.
13917 2007-01-10 Jim Meyering <jim@meyering.net>
13919 fts.c: a small readability/maintainability improvement
13920 * lib/fts.c (fts_read): Make this code slightly more readable and
13921 maintainable by hoisting the "sp->fts_cur = p" assignments to
13922 immediately follow the statements that set P. Derived from
13923 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
13925 2007-01-10 Eric Blake <ebb9@byu.net>
13927 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
13928 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
13929 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13930 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13931 Reported by Chris McGuire.
13933 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13935 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
13938 2007-01-09 Bruno Haible <bruno@clisp.org>
13940 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
13941 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
13943 (func_module): Use them.
13945 2007-01-09 Bruno Haible <bruno@clisp.org>
13947 * modules/unistr/base: New file.
13948 * lib/unistr.h: New file.
13950 * modules/unistr/u8-to-u16: New file.
13951 * lib/unistr/u8-to-u16.c: New file.
13953 * modules/unistr/u8-to-u32: New file.
13954 * lib/unistr/u8-to-u32.c: New file.
13956 * modules/unistr/u16-to-u8: New file.
13957 * lib/unistr/u16-to-u8.c: New file.
13959 * modules/unistr/u16-to-u32: New file.
13960 * lib/unistr/u16-to-u32.c: New file.
13962 * modules/unistr/u32-to-u8: New file.
13963 * lib/unistr/u32-to-u8.c: New file.
13965 * modules/unistr/u32-to-u16: New file.
13966 * lib/unistr/u32-to-u16.c: New file.
13968 * modules/unistr/u8-check: New file.
13969 * modules/unistr/u16-check: New file.
13970 * modules/unistr/u32-check: New file.
13971 * lib/unistr/u8-check.c: New file.
13972 * lib/unistr/u16-check.c: New file.
13973 * lib/unistr/u32-check.c: New file.
13975 * modules/unistr/u8-chr: New file.
13976 * modules/unistr/u16-chr: New file.
13977 * modules/unistr/u32-chr: New file.
13978 * lib/unistr/u8-chr.c: New file.
13979 * lib/unistr/u16-chr.c: New file.
13980 * lib/unistr/u32-chr.c: New file.
13982 * modules/unistr/u8-cmp: New file.
13983 * modules/unistr/u16-cmp: New file.
13984 * modules/unistr/u32-cmp: New file.
13985 * lib/unistr/u8-cmp.c: New file.
13986 * lib/unistr/u16-cmp.c: New file.
13987 * lib/unistr/u32-cmp.c: New file.
13989 * modules/unistr/u8-cpy: New file.
13990 * modules/unistr/u16-cpy: New file.
13991 * modules/unistr/u32-cpy: New file.
13992 * lib/unistr/u8-cpy.c: New file.
13993 * lib/unistr/u16-cpy.c: New file.
13994 * lib/unistr/u32-cpy.c: New file.
13995 * lib/unistr/u-cpy.h: New file.
13997 * modules/unistr/u8-cpy-alloc: New file.
13998 * modules/unistr/u16-cpy-alloc: New file.
13999 * modules/unistr/u32-cpy-alloc: New file.
14000 * lib/unistr/u8-cpy-alloc.c: New file.
14001 * lib/unistr/u16-cpy-alloc.c: New file.
14002 * lib/unistr/u32-cpy-alloc.c: New file.
14003 * lib/unistr/u-cpy-alloc.h: New file.
14005 * modules/unistr/u8-endswith: New file.
14006 * modules/unistr/u16-endswith: New file.
14007 * modules/unistr/u32-endswith: New file.
14008 * lib/unistr/u8-endswith.c: New file.
14009 * lib/unistr/u16-endswith.c: New file.
14010 * lib/unistr/u32-endswith.c: New file.
14011 * lib/unistr/u-endswith.h: New file.
14013 * modules/unistr/u8-mblen: New file.
14014 * modules/unistr/u16-mblen: New file.
14015 * modules/unistr/u32-mblen: New file.
14016 * lib/unistr/u8-mblen.c: New file.
14017 * lib/unistr/u16-mblen.c: New file.
14018 * lib/unistr/u32-mblen.c: New file.
14020 * modules/unistr/u8-mbtouc: New file.
14021 * modules/unistr/u16-mbtouc: New file.
14022 * modules/unistr/u32-mbtouc: New file.
14023 * lib/unistr/u8-mbtouc.c: New file.
14024 * lib/unistr/u16-mbtouc.c: New file.
14025 * lib/unistr/u32-mbtouc.c: New file.
14027 * modules/unistr/u8-mbtouc-safe: New file.
14028 * modules/unistr/u16-mbtouc-safe: New file.
14029 * modules/unistr/u32-mbtouc-safe: New file.
14030 * lib/unistr/u8-mbtouc-safe.c: New file.
14031 * lib/unistr/u16-mbtouc-safe.c: New file.
14032 * lib/unistr/u32-mbtouc-safe.c: New file.
14034 * modules/unistr/u8-move: New file.
14035 * modules/unistr/u16-move: New file.
14036 * modules/unistr/u32-move: New file.
14037 * lib/unistr/u8-move.c: New file.
14038 * lib/unistr/u16-move.c: New file.
14039 * lib/unistr/u32-move.c: New file.
14040 * lib/unistr/u-move.h: New file.
14042 * modules/unistr/u8-next: New file.
14043 * modules/unistr/u16-next: New file.
14044 * modules/unistr/u32-next: New file.
14045 * lib/unistr/u8-next.c: New file.
14046 * lib/unistr/u16-next.c: New file.
14047 * lib/unistr/u32-next.c: New file.
14049 * modules/unistr/u8-prev: New file.
14050 * modules/unistr/u16-prev: New file.
14051 * modules/unistr/u32-prev: New file.
14052 * lib/unistr/u8-prev.c: New file.
14053 * lib/unistr/u16-prev.c: New file.
14054 * lib/unistr/u32-prev.c: New file.
14056 * modules/unistr/u8-set: New file.
14057 * modules/unistr/u16-set: New file.
14058 * modules/unistr/u32-set: New file.
14059 * lib/unistr/u8-set.c: New file.
14060 * lib/unistr/u16-set.c: New file.
14061 * lib/unistr/u32-set.c: New file.
14062 * lib/unistr/u-set.h: New file.
14064 * modules/unistr/u8-startswith: New file.
14065 * modules/unistr/u16-startswith: New file.
14066 * modules/unistr/u32-startswith: New file.
14067 * lib/unistr/u8-startswith.c: New file.
14068 * lib/unistr/u16-startswith.c: New file.
14069 * lib/unistr/u32-startswith.c: New file.
14070 * lib/unistr/u-startswith.h: New file.
14072 * modules/unistr/u8-stpcpy: New file.
14073 * modules/unistr/u16-stpcpy: New file.
14074 * modules/unistr/u32-stpcpy: New file.
14075 * lib/unistr/u8-stpcpy.c: New file.
14076 * lib/unistr/u16-stpcpy.c: New file.
14077 * lib/unistr/u32-stpcpy.c: New file.
14078 * lib/unistr/u-stpcpy.h: New file.
14080 * modules/unistr/u8-stpncpy: New file.
14081 * modules/unistr/u16-stpncpy: New file.
14082 * modules/unistr/u32-stpncpy: New file.
14083 * lib/unistr/u8-stpncpy.c: New file.
14084 * lib/unistr/u16-stpncpy.c: New file.
14085 * lib/unistr/u32-stpncpy.c: New file.
14086 * lib/unistr/u-stpncpy.h: New file.
14088 * modules/unistr/u8-strcat: New file.
14089 * modules/unistr/u16-strcat: New file.
14090 * modules/unistr/u32-strcat: New file.
14091 * lib/unistr/u8-strcat.c: New file.
14092 * lib/unistr/u16-strcat.c: New file.
14093 * lib/unistr/u32-strcat.c: New file.
14094 * lib/unistr/u-strcat.h: New file.
14096 * modules/unistr/u8-strchr: New file.
14097 * modules/unistr/u16-strchr: New file.
14098 * modules/unistr/u32-strchr: New file.
14099 * lib/unistr/u8-strchr.c: New file.
14100 * lib/unistr/u16-strchr.c: New file.
14101 * lib/unistr/u32-strchr.c: New file.
14103 * modules/unistr/u8-strcmp: New file.
14104 * modules/unistr/u16-strcmp: New file.
14105 * modules/unistr/u32-strcmp: New file.
14106 * lib/unistr/u8-strcmp.c: New file.
14107 * lib/unistr/u16-strcmp.c: New file.
14108 * lib/unistr/u32-strcmp.c: New file.
14110 * modules/unistr/u8-strcpy: New file.
14111 * modules/unistr/u16-strcpy: New file.
14112 * modules/unistr/u32-strcpy: New file.
14113 * lib/unistr/u8-strcpy.c: New file.
14114 * lib/unistr/u16-strcpy.c: New file.
14115 * lib/unistr/u32-strcpy.c: New file.
14116 * lib/unistr/u-strcpy.h: New file.
14118 * modules/unistr/u8-strcspn: New file.
14119 * modules/unistr/u16-strcspn: New file.
14120 * modules/unistr/u32-strcspn: New file.
14121 * lib/unistr/u8-strcspn.c: New file.
14122 * lib/unistr/u16-strcspn.c: New file.
14123 * lib/unistr/u32-strcspn.c: New file.
14124 * lib/unistr/u-strcspn.h: New file.
14126 * modules/unistr/u8-strdup: New file.
14127 * modules/unistr/u16-strdup: New file.
14128 * modules/unistr/u32-strdup: New file.
14129 * lib/unistr/u8-strdup.c: New file.
14130 * lib/unistr/u16-strdup.c: New file.
14131 * lib/unistr/u32-strdup.c: New file.
14132 * lib/unistr/u-strdup.h: New file.
14134 * modules/unistr/u8-strlen: New file.
14135 * modules/unistr/u16-strlen: New file.
14136 * modules/unistr/u32-strlen: New file.
14137 * lib/unistr/u8-strlen.c: New file.
14138 * lib/unistr/u16-strlen.c: New file.
14139 * lib/unistr/u32-strlen.c: New file.
14140 * lib/unistr/u-strlen.h: New file.
14142 * modules/unistr/u8-strmblen: New file.
14143 * modules/unistr/u16-strmblen: New file.
14144 * modules/unistr/u32-strmblen: New file.
14145 * lib/unistr/u8-strmblen.c: New file.
14146 * lib/unistr/u16-strmblen.c: New file.
14147 * lib/unistr/u32-strmblen.c: New file.
14149 * modules/unistr/u8-strmbtouc: New file.
14150 * modules/unistr/u16-strmbtouc: New file.
14151 * modules/unistr/u32-strmbtouc: New file.
14152 * lib/unistr/u8-strmbtouc.c: New file.
14153 * lib/unistr/u16-strmbtouc.c: New file.
14154 * lib/unistr/u32-strmbtouc.c: New file.
14156 * modules/unistr/u8-strncat: New file.
14157 * modules/unistr/u16-strncat: New file.
14158 * modules/unistr/u32-strncat: New file.
14159 * lib/unistr/u8-strncat.c: New file.
14160 * lib/unistr/u16-strncat.c: New file.
14161 * lib/unistr/u32-strncat.c: New file.
14162 * lib/unistr/u-strncat.h: New file.
14164 * modules/unistr/u8-strncmp: New file.
14165 * modules/unistr/u16-strncmp: New file.
14166 * modules/unistr/u32-strncmp: New file.
14167 * lib/unistr/u8-strncmp.c: New file.
14168 * lib/unistr/u16-strncmp.c: New file.
14169 * lib/unistr/u32-strncmp.c: New file.
14171 * modules/unistr/u8-strncpy: New file.
14172 * modules/unistr/u16-strncpy: New file.
14173 * modules/unistr/u32-strncpy: New file.
14174 * lib/unistr/u8-strncpy.c: New file.
14175 * lib/unistr/u16-strncpy.c: New file.
14176 * lib/unistr/u32-strncpy.c: New file.
14177 * lib/unistr/u-strncpy.h: New file.
14179 * modules/unistr/u8-strnlen: New file.
14180 * modules/unistr/u16-strnlen: New file.
14181 * modules/unistr/u32-strnlen: New file.
14182 * lib/unistr/u8-strnlen.c: New file.
14183 * lib/unistr/u16-strnlen.c: New file.
14184 * lib/unistr/u32-strnlen.c: New file.
14185 * lib/unistr/u-strnlen.h: New file.
14187 * modules/unistr/u8-strpbrk: New file.
14188 * modules/unistr/u16-strpbrk: New file.
14189 * modules/unistr/u32-strpbrk: New file.
14190 * lib/unistr/u8-strpbrk.c: New file.
14191 * lib/unistr/u16-strpbrk.c: New file.
14192 * lib/unistr/u32-strpbrk.c: New file.
14193 * lib/unistr/u-strpbrk.h: New file.
14195 * modules/unistr/u8-strrchr: New file.
14196 * modules/unistr/u16-strrchr: New file.
14197 * modules/unistr/u32-strrchr: New file.
14198 * lib/unistr/u8-strrchr.c: New file.
14199 * lib/unistr/u16-strrchr.c: New file.
14200 * lib/unistr/u32-strrchr.c: New file.
14202 * modules/unistr/u8-strspn: New file.
14203 * modules/unistr/u16-strspn: New file.
14204 * modules/unistr/u32-strspn: New file.
14205 * lib/unistr/u8-strspn.c: New file.
14206 * lib/unistr/u16-strspn.c: New file.
14207 * lib/unistr/u32-strspn.c: New file.
14208 * lib/unistr/u-strspn.h: New file.
14210 * modules/unistr/u8-strstr: New file.
14211 * modules/unistr/u16-strstr: New file.
14212 * modules/unistr/u32-strstr: New file.
14213 * lib/unistr/u8-strstr.c: New file.
14214 * lib/unistr/u16-strstr.c: New file.
14215 * lib/unistr/u32-strstr.c: New file.
14216 * lib/unistr/u-strstr.h: New file.
14218 * modules/unistr/u8-strtok: New file.
14219 * modules/unistr/u16-strtok: New file.
14220 * modules/unistr/u32-strtok: New file.
14221 * lib/unistr/u8-strtok.c: New file.
14222 * lib/unistr/u16-strtok.c: New file.
14223 * lib/unistr/u32-strtok.c: New file.
14224 * lib/unistr/u-strtok.h: New file.
14226 * modules/unistr/u8-uctomb: New file.
14227 * modules/unistr/u16-uctomb: New file.
14228 * modules/unistr/u32-uctomb: New file.
14229 * lib/unistr/u8-uctomb.c: New file.
14230 * lib/unistr/u16-uctomb.c: New file.
14231 * lib/unistr/u32-uctomb.c: New file.
14233 * MODULES.html.sh (Unicode string functions): Add the new modules.
14235 2007-01-08 Bruno Haible <bruno@clisp.org>
14237 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
14238 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
14241 2007-01-08 Karl Berry <karl@gnu.org>
14243 * doc/error.texi: mention that main() fns must set program_name
14244 when progname is used.
14246 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
14248 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
14249 WCTYPE_H is empty, for the benefit of builds from non-distclean
14250 directories. Problem reported by Eric Blake in
14251 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
14253 2007-01-08 Bruno Haible <bruno@clisp.org>
14255 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
14256 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
14257 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
14258 PROVIDE_CANONICALIZE_FILENAME_MODE.
14259 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
14261 2007-01-08 Bruno Haible <bruno@clisp.org>
14263 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
14264 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
14265 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
14266 * lib/fts.c: Likewise.
14267 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
14269 2006-12-25 Bruno Haible <bruno@clisp.org>
14271 * modules/utf8-ucs4-safe: New file.
14272 * lib/utf8-ucs4-safe.h: New file.
14273 * lib/unistr/utf8-ucs4-safe.c: New file.
14275 * modules/utf16-ucs4-safe: New file.
14276 * lib/utf16-ucs4-safe.h: New file.
14277 * lib/unistr/utf16-ucs4-safe.c: New file.
14279 * MODULES.html.sh (Unicode string functions): Add the new modules.
14281 2007-01-08 Bruno Haible <bruno@clisp.org>
14283 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
14284 (Depends-on): Add unitypes.
14285 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
14286 (u8_mbtouc_aux): Move out to separate file.
14287 (u8_mbtouc): Use ucs4_t, uint8_t types.
14288 * lib/unistr/utf8-ucs4.c: New file.
14290 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
14291 (Depends-on): Add unitypes.
14292 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
14293 (u16_mbtouc_aux): Move out to separate file.
14294 (u16_mbtouc): Use ucs4_t, uint16_t types.
14295 * lib/unistr/utf16-ucs4.c: New file.
14297 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
14298 (Depends-on): Add unitypes.
14299 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
14300 (u8_uctomb_aux): Move out to separate file.
14301 (u8_uctomb): Use ucs4_t, uint8_t types.
14302 * lib/unistr/ucs4-utf8.c: New file.
14304 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
14305 (Depends-on): Add unitypes.
14306 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
14307 (u16_uctomb_aux): Move out to separate file.
14308 (u16_uctomb): Use ucs4_t, uint16_t types.
14309 * lib/unistr/ucs4-utf16.c: New file.
14311 2006-12-25 Bruno Haible <bruno@clisp.org>
14313 * modules/unitypes: New file.
14314 * lib/unitypes.h: New file.
14315 * MODULES.html.sh (func_all_modules): New section "Unicode string
14316 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
14317 this section. Add unitypes.
14319 2007-01-08 Bruno Haible <bruno@clisp.org>
14321 Avoid variable names that conflict with those from libtool.
14322 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
14323 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
14324 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
14325 library_names_spec to acl_library_names_spec, hardcode_* to
14327 Reported by Ralf Wildenhues.
14329 2007-01-08 Bruno Haible <bruno@clisp.org>
14331 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
14333 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
14335 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
14336 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
14338 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
14340 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
14341 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
14342 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
14343 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
14345 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
14347 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
14348 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
14349 GC_USE_<algorithm>.
14350 * lib/gc-libgcrypt.c: Likewise.
14351 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
14352 * modules/gc-arctwo (configure.ac): Likewise.
14353 * modules/gc-des (configure.ac): Likewise.
14354 * modules/gc-hmac-md5 (configure.ac): Likewise.
14355 * modules/gc-hmac-sha1 (configure.ac): Likewise.
14356 * modules/gc-md2 (configure.ac): Likewise.
14357 * modules/gc-md4 (configure.ac): Likewise.
14358 * modules/gc-md5 (configure.ac): Likewise.
14359 * modules/gc-random (configure.ac): Likewise.
14360 * modules/gc-rijndael (configure.ac): Likewise.
14361 * modules/gc-sha1 (configure.ac): Likewise.
14363 2007-01-08 Bruno Haible <bruno@clisp.org>
14365 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
14367 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
14369 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
14371 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
14372 * modules/fcntl-safer (configure.ac): Likewise.
14373 * modules/fopen-safer (configure.ac): Likewise.
14374 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
14375 GNULIB_FWRITEERROR macro definition.
14377 2007-01-08 Bruno Haible <bruno@clisp.org>
14379 * m4/gnulib-common.m4: New file.
14380 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
14381 (func_get_filelist): Add m4/gnulib-common.m4.
14383 2007-01-08 Bruno Haible <bruno@clisp.org>
14385 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
14388 2007-01-08 Jim Meyering <jim@meyering.net>
14390 Use a more robust test for a "can't happen" condition.
14391 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
14392 narrowed the st_size value. Presuming the "can't happen" condition
14393 is true, that narrowing could conceivably convert an invalid st_size
14394 value into a valid one. Instead, use a change based on Matthew
14395 Woehlke's original patch.
14397 Slight readability improvement: use an assert-like macro
14398 in place of literal "abort ()" uses.
14399 * lib/fts.c (fts_assert): Define.
14400 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
14401 Use this macro instead of a bare 'abort'.
14403 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
14405 Don't worry about using IRIX 5.3's wctype.h broken definitions;
14406 simply work around them.
14407 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
14408 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
14409 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
14411 Don't bother to define as macros, since the standard doesn't require it.
14412 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
14413 longer worry about IRIX 5.3.
14414 (HAVE_WCTYPE_CTMP_BUG): Remove.
14416 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
14418 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
14419 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
14420 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14421 Problems reported by Georg Schwarz for IRIX 5.3.
14423 * gnulib-tool (autoconf_minversion): Take the maximum version number
14424 found, not the minimum. Problem reported by James Youngman.
14426 2007-01-03 Karl Berry <karl@gnu.org>
14428 * doc/error.texi: new file, explaining interaction with progname.
14429 * doc/gnulib.texi: include it. Update copyright.
14431 2007-01-03 Simon Josefsson <simon@josefsson.org>
14433 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
14434 AC_CANONICAL_HOST, to improve autobuild outputs.
14436 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
14437 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14439 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
14440 sockets, server sockets, and other file descriptors. Count errors
14441 to compute the return value. Reorder the code a bit to be easier
14442 to follow. Don't set event bits that were not requested (except
14443 POLLERR and POLLHUP).
14445 2007-01-01 Bruno Haible <bruno@clisp.org>
14447 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
14449 2007-01-03 Jim Meyering <jim@meyering.net>
14451 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
14453 2007-01-02 Bruno Haible <bruno@clisp.org>
14455 * modules/settime (Include): Require timespec.h.
14456 * modules/nanosleep (Include): Likewise.
14458 2007-01-01 Bruno Haible <bruno@clisp.org>
14460 * gnulib-tool (func_emit_copyright_notice): Bump year.
14461 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
14463 2007-01-01 Bruno Haible <bruno@clisp.org>
14465 Improve support for OpenBSD.
14466 * build-aux/config.rpath (libname_spec): Export.
14467 (library_names_spec): New variable. Export.
14468 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
14469 library_names_spec from the config.rpath output. Locate shared library
14470 through the name pattern in library_names_spec.
14472 2007-01-01 Eric Blake <ebb9@byu.net>
14474 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
14476 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
14478 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
14479 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
14480 assume the C locale, and avoid an "eval" that could cause trouble.
14481 Problem with SORT reported by Bob Proulx.
14483 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
14484 Define. Trivial patch from Henning Nielsen Lund, originally
14485 sent to bug-grep@gnu.org today.
14487 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
14489 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
14490 struct stat. Problem reported by Henning Nielsen Lund.
14491 * lib/acl.c: Include acl.h first, to check interface. Don't
14492 bother to include sys/types.h and sys/stat.h again.
14494 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
14496 Import the following change from libc; problem reported by
14499 2005-10-13 Ulrich Drepper <drepper@redhat.com>
14502 * lib/argp.h: Remove __NTH for __argp_usage inline function.
14504 2006-12-28 Jim Meyering <jim@meyering.net>
14506 * build-aux/announce-gen: Do not assume that the package
14507 builds any of tar.gz, tar.bz2, and .xdelta files.
14508 Suggestion from Simon Josefsson.
14510 2006-12-28 Simon Josefsson <simon@josefsson.org>
14512 * modules/announce-gen: New file.
14514 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
14516 * lib/mbchar.h: Just include <wctype.h>; the wctype module
14517 handles its gotchas now.
14518 * lib/mbswidth.c: Likewise.
14519 * lib/wcwidth.h: Likewise.
14520 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
14521 and iswcntrl; the wctype module does this stuff now.
14522 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14523 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14524 * modules/mbchar (Depends-on): Add wctype.
14525 * modules/mbswidth (Depends-on): Likewise.
14526 * modules/wcwidth (Depends-on): Likewise.
14528 2006-12-27 Eric Blake <ebb9@byu.net>
14530 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
14531 module uses more than what <wctype.h> is required to provide.
14533 2006-12-26 Eric Blake <ebb9@byu.net>
14535 * gnulib-tool (sed_extract_prog): Avoid space-tab.
14537 2006-12-26 Eric Blake <ebb9@byu.net>
14539 * modules/absolute-header: New module.
14540 * modules/fcntl (Depends-on): Depend on it.
14541 * modules/inttypes (Depends-on): Likewise.
14542 * modules/stdint (Depends-on): Likewise.
14543 * modules/sys_stat (Depends-on): Likewise.
14544 * modules/wctype (Depends-on): Likewise.
14545 * MODULES.html.sh (Support for building libraries and
14546 executables): Document it.
14548 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
14550 * gnulib-tool (SED): Remove, undoing previous change.
14551 The problem was that it broke coreutils on Solaris, because
14552 "sed --posix" leaked into a makefile.
14553 (sed): New alias, if 'alias' and GNU sed.
14555 2006-12-24 Jim Meyering <jim@meyering.net>
14557 Work around an fchownat bug in glibc-2.4:
14558 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
14559 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
14560 in spite of the -P option.
14561 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
14563 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
14564 * modules/openat (Files): Add lib/fchownat.c.
14565 * lib/openat.c (fchownat): Don't define here. Move to...
14566 * lib/fchownat.c: ...this new file.
14568 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
14570 Fix bug reported by Bruno Haible in
14571 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
14572 where quotearg.c didn't compile on Mac OS X 10.2 because it
14573 lacks <wchar.h> and wint_t.
14574 * lib/wctype_.h (__wctype_wint_t): New type.
14575 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
14576 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
14577 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
14578 Arg is now of type __wctype_wint_t, not wint_t.
14579 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
14580 substitute HAVE_WINT_T.
14581 * modules/wctype (Files): Add m4/wint_t.m4.
14582 (wctype.h): Substitute HAVE_WINT_T.
14584 2006-12-23 Bruno Haible <bruno@clisp.org>
14586 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
14588 2006-12-23 Bruno Haible <bruno@clisp.org>
14590 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
14592 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
14595 2006-12-22 Bruno Haible <bruno@clisp.org>
14597 * lib/copy-file.c: Include acl.h.
14598 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
14599 Close the file descriptors only after being done with copy_acl.
14600 * modules/copy-file (Depends-on): Add acl.
14602 2006-12-22 Bruno Haible <bruno@clisp.org>
14604 * gnulib-tool (SED): New variable.
14605 Use $SED instead of sed everywhere.
14607 2006-12-22 Bruno Haible <bruno@clisp.org>
14609 * modules/no-c++: New file.
14610 * m4/no-c++.m4: New file.
14611 * MODULES.html.sh (Support for building libraries and executables):
14614 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
14616 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
14617 Include <limits.h>, and use its INT_MAX to rewrite the
14618 j loop so that it does not overflow 'int'. Problem reported by
14620 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
14621 Play it safe by shifting left by 1 rather than multiplying by 2,
14622 as GCC is less likely to optimize this away when the value
14623 is signed (when it assumes overflow leads to undefined behavior).
14624 Also, don't assume time_t uses two's complement.
14626 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
14628 * MODULES.html.sh: New module wctype.
14629 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
14630 * lib/fnmatch.c: Don't bother to include <wchar.h> before
14631 <wctype.h>, since the new wctype module should fix this.
14632 * lib/quotearg.c: Include <wctype.h> unconditionally, since
14633 the wctype module should arrange for it.
14634 * lib/regex_internal.h: Likewise.
14635 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
14636 since the wctype module should handle this now.
14637 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
14638 * modules/fnmatch (Depends-on): Add wctype.
14639 * modules/quotearg (Depends-on): Likewise.
14640 * modules/regex (Depends-on): Likewise.
14642 2006-12-19 Bruno Haible <bruno@clisp.org>
14644 * lib/strdup.h [C++]: Wrap definitions in extern "C".
14645 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
14647 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14649 * modules/savewd (Depends-on): Fix dependency on fcntl.
14651 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
14653 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
14654 conforms to C99, rather than relying on the user's environment
14655 setting of STDINT_H.
14657 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
14658 and Eric Blake <ebb9@byu.net>
14660 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
14661 This is more consistent with the other defines here.
14662 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
14663 Port to z/OS. Problem reported by Paul Gilmartin.
14664 Change local vars to use gl_ prefix rather than ac_.
14665 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
14666 with other defines.
14667 * modules/double-slash-root: New module.
14668 * modules/dirname (Files): Remove m4/double-slash-root.m4.
14669 (Depends-on): Add double-slash-root.
14670 * MODULES.html.sh (File system functions): Mention new module.
14672 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
14674 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
14675 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
14676 This is for the benefit of gzip, which doesn't do i18n.
14678 2006-12-12 Jim Meyering <jim@meyering.net>
14680 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
14681 Reported by Andreas Schwab <schwab@suse.de>.
14683 2006-12-12 Bruno Haible <bruno@clisp.org>
14685 Merge these changes.
14686 2006-09-05 Bruno Haible <bruno@clisp.org>
14687 * lib/iconvme.c (iconv_string): No need to save and restore errno when
14688 iconv_alloc succeeded.
14689 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
14690 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
14691 test for " && dest " at the end - dest is always != NULL there. Call
14692 iconv with 4xNULL arguments initially, to reset the state. Call iconv
14693 with 2xNULL arguments, also to flush the state storage. Handle the
14694 IRIX iconv behaviour. Realloc the final result, to throw away unused
14697 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
14699 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
14700 and fchmodat unconditionally, since glibc 2.4 has them.
14701 Problem reported by Arkadiusz Miskiewicz.
14703 2006-12-10 Bruno Haible <bruno@clisp.org>
14705 * gnulib-tool (func_import): Show the include files only for those
14706 modules that are copied and specified.
14707 Reported by Karl Berry.
14709 2006-12-08 Jim Meyering <jim@meyering.net>
14711 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
14712 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
14714 * build-aux/announce-gen: Add two new options, both optional:
14715 --bootstrap-tools=TOOL_LIST
14716 a comma-separated list of tools, e.g.,
14717 autoconf,automake,bison,gnulib
14718 --gnulib-snapshot-date=DATE
14719 if gnulib is in the bootstrap tool list,
14720 then report this as the snapshot date.
14721 If not specified, use the current date/time.
14722 If you specify a date here, be sure it's UTC.
14724 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14726 * tests/test-argp-2.sh: Fix test to match actual output.
14727 (func_compare): Fix sed script to be portable.
14729 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
14731 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
14732 workaround for this case. It is not autoconfigured now; offhand
14733 it's hard to see how to autoconfigure it.
14735 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
14737 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
14738 a directory that is about to be chowned. Such a directory's
14739 initial file permissions should permit the owner only and this
14740 should not be changed until after the chown, since the group and
14741 other bits would be incorrect if they granted permission before
14744 Fix porting problem for iswctype reported by Georg Schwarz in:
14745 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
14746 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
14747 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
14748 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
14749 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14751 2006-12-03 Jim Meyering <jim@meyering.net>
14753 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
14754 p->fts_statp may not yet be defined.
14755 (fts_read): Instead, set it in the caller, once p->fts_statp is
14756 sure to be defined, and corresponds to a top-level directory.
14757 This bug made du -x fail. Here's the coreutils test case:
14758 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
14759 Reported by Mike Frysinger.
14761 2006-12-01 Jim Meyering <jim@meyering.net>
14763 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
14764 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
14765 Reported by Simon Josefsson.
14767 2006-11-30 Jim Meyering <jim@meyering.net>
14769 * m4/warning.m4: Use the all-permissive copyright notice
14770 recommended by RMS (rather than LGPL).
14771 * m4/vararrays.m4: Likewise.
14772 * m4/flexmember.m4: Likewise.
14774 2006-11-29 Bruno Haible <bruno@clisp.org>
14776 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
14777 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
14779 Reported by Simon Josefsson <simon@josefsson.org>.
14781 2006-11-28 James Youngman <jay@gnu.org>
14783 * README: Advise users that they might find the bug-gnulib@gnu.org
14784 and autotools-announce@gnu.org mailing lists useful.
14786 2006-11-28 Bruno Haible <bruno@clisp.org>
14788 * m4/ptrdiff_max.m4: Remove file.
14790 2006-11-21 Bruno Haible <bruno@clisp.org>
14792 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
14794 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
14795 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
14797 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
14798 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
14800 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
14802 2006-11-28 Jim Meyering <jim@meyering.net>
14804 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
14805 warning from "gcc -Wshadow" about shadowing the builtin.
14807 2006-11-27 Bruno Haible <bruno@clisp.org>
14809 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
14811 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
14813 2006-11-27 Bruno Haible <bruno@clisp.org>
14814 Paul Eggert <eggert@cs.ucla.edu>
14816 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
14818 2006-11-26 Bruno Haible <bruno@clisp.org>
14820 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
14821 noinst_LTLIBRARIES.
14823 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
14824 Bruno Haible <bruno@clisp.org>
14826 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
14827 if compiling with "gcc -ansi".
14829 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
14831 Fix some incompatibilities with gcc -ansi -pedantic.
14832 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
14833 if compiling pedantically with GCC, unless it's C99 or later.
14834 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
14835 it mishandles gcc -ansi -pedantic as well.
14836 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
14838 * lib/regexec.c (check_node_accept_bytes): Don't use auto
14839 initializers for struct if -pedantic, unless it's C99 or later.
14841 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
14843 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
14844 Don't close an fd more than once. Identical atimes indicate
14845 success, not failure.
14847 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
14849 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
14851 2006-11-23 Jim Meyering <jim@meyering.net>
14853 * build-aux/announce-gen: New file. From coreutils.
14855 2006-11-22 Jim Meyering <jim@meyering.net>
14857 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
14858 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
14859 (fts_read): Use a temporary to narrow the overused st_size member
14860 before using it in a switch statement. Reported by Matthew Woehlke.
14862 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
14863 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14865 2006-11-20 Bruno Haible <bruno@clisp.org>
14867 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
14868 changequote instead of pairs of brackets.
14869 Reported by Andreas Schwab <schwab@suse.de>.
14871 2006-11-21 Jim Meyering <jim@meyering.net>
14873 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
14874 so as to remain compatible with older compilers.
14875 Patch from Michael Deutschmann.
14877 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
14879 * MODULES.html.sh (File system functions): Add openat.
14881 * lib/openat.h (rpl_fstatat): New macro, if
14882 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
14883 (fstatat): Define to rpl_fstatat under the same conditions,
14884 unless COMPILING_FSTATAT.
14885 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
14886 seems to have the bug.
14887 * lib/fstatat.c: New file.
14888 * modules/openat (Files): Add it.
14890 2006-11-20 Bruno Haible <bruno@clisp.org>
14892 * Makefile: New file.
14894 2006-11-20 Jim Meyering <jim@meyering.net>
14896 The beginnings of syntax-related checks for gnulib.
14897 * lib/Makefile: New file.
14898 * lib/t-idcache: New script. Ensure that the two halves of
14899 idcache.c stay in sync.
14901 * lib/idcache.c: Adjust comments in user- and group- portions to
14902 be more accurate, and to be consistent with one another.
14904 2006-11-20 Jim Meyering <jim@meyering.net>
14906 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
14907 continue using the flexible array member (thus, this module performs
14908 half as many malloc calls), with the addition that...
14909 (getgroup, getuser): Consistently record a non-match via an empty
14910 "name" string, and map an empty string match to a NULL return value.
14911 * modules/idcache (Depends-on): Re-add flexmember.
14913 * lib/idcache.c (getuser): Remove all uses of the register keyword.
14914 (getuidbyname, getgroup, getgidbyname): Likewise.
14916 Use cleaner syntax: NULL rather than 0.
14917 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
14919 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
14921 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
14922 It mishandled the case where the group was missing.
14923 Problem reported by Greg Schafer.
14924 * modules/idcache: Likewise.
14926 2006-11-18 Jim Meyering <jim@meyering.net>
14928 * check-module (%exempt_header): Add exception for some
14929 conditionally-included headers.
14931 * modules/i-ring (Depends-on): Add verify.
14932 (License): Change to LGPL.
14934 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
14936 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
14937 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
14938 and inttostr.h. Use snprintf rather than uinttostr, so that
14939 LGPLed code doesn't depend on GPLed.
14941 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
14943 * modules/inline (License): Change from GPL to LGPL.
14945 2006-11-17 Jim Meyering <jim@meyering.net>
14947 * modules/d-type (License): Switch to LGPL.
14949 2006-11-15 Bruno Haible <bruno@clisp.org>
14951 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
14953 2006-11-15 Eric Blake <ebb9@byu.net>
14955 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
14956 the module dependency.
14958 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14959 Bruno Haible <bruno@clisp.org>
14961 * gnulib-tool (func_create_testdir): Add license consistency check.
14963 2006-11-15 Eric Blake <ebb9@byu.net>
14965 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
14966 random "(cached)" in configure output.
14968 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14970 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
14971 test for conforming inttypes.h is both announced and cached.
14973 * MODULES.html.sh (seen_modules, seen_files): New variables.
14974 (func_module): Rewrite to use a few less gnulib-tool and sed
14975 invocations. Avoid a couple of quadratic algorithms for ...
14976 (missed_modules, missed_files): ... these, with ...
14977 (func_append, func_tmpdir): ... these new functions, from
14978 gnulib-tool. Analogously, install traps for cleanup.
14980 * tests/test-gc.c (main): Remove unused variables.
14981 * tests/test-read-file.c: Include stdlib.h, for 'free'.
14983 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
14985 * modules/inttostr (License): Change to LGPL.
14987 2006-11-14 Eric Blake <ebb9@byu.net>
14989 * modules/tempname (License): Change to LGPL.
14991 2006-11-14 Eric Blake <ebb9@byu.net>
14993 * doc/functions.texi (Function Portability): *printf functions on
14994 Cygwin now understand all POSIX size specifiers.
14996 2006-11-14 Bruno Haible <bruno@clisp.org>
14998 * modules/c-ctype (License): Change to LGPL.
15000 2006-11-12 Bruno Haible <bruno@clisp.org>
15002 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15003 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
15004 for GNOME libraries, for which the include files are installed in
15005 subdirectories of $prefix/include.
15007 2006-11-12 Bruno Haible <bruno@clisp.org>
15009 * m4/lib-link.m4: Require at least autoconf-2.54.
15010 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
15011 name to underscores for the --with option.
15013 2006-11-13 Bruno Haible <bruno@clisp.org>
15015 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
15016 the tests directory.
15017 Reported by Ralf Wildenhues.
15019 2006-11-13 Bruno Haible <bruno@clisp.org>
15021 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
15022 (func_emit_initmacro_end): Undo the override here.
15023 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
15024 Works around the famous automake error in coreutils.
15026 2006-11-13 Eric Blake <ebb9@byu.net>
15028 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
15029 element, not its node.
15031 2006-11-12 Bruno Haible <bruno@clisp.org>
15033 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
15034 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
15036 2006-11-12 Bruno Haible <bruno@clisp.org>
15038 * gnulib-tool: New option --local-symlink.
15039 (func_usage): Document it.
15040 (lsymbolic): New variable.
15041 (func_import, func_create_testdir): If --symlink was not specified,
15042 test whether --local-symlink was specified and the file comes from
15043 the local_gnulib_dir.
15045 2006-11-12 Bruno Haible <bruno@clisp.org>
15047 * gnulib-tool (func_ln): New function.
15048 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
15050 2006-11-12 Bruno Haible <bruno@clisp.org>
15052 Finish support for source files in subdirectories.
15053 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
15054 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
15056 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
15058 2006-11-12 Bruno Haible <bruno@clisp.org>
15060 * gnulib-tool (func_get_automake_snippet): Synthesize also an
15061 EXTRA_lib_SOURCES augmentation.
15062 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
15064 2006-11-12 Jim Meyering <jim@meyering.net>
15066 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
15067 file descriptors. This also averts a failure on systems with
15068 native openat support when a traversed directory lacks "x" access.
15069 * lib/fts_.h: Include "i-ring.h"
15070 (struct FTS) [fts_fd_ring]: New member.
15071 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
15072 (FCHDIR): Add parentheses.
15073 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
15074 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
15075 When descending, rather than simply closing the previous
15076 fts_cwd_fd value, push that file descriptor onto the ring.
15077 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
15078 (fts_open): Initialize the new fd_ring member.
15079 (fts_close): Clear the ring.
15080 (fts_safe_changedir): When possible, use our new fd_ring to skip
15081 the diropen and fstat and dev/ino comparison that would normally
15082 accompany a virtual `chdir ("..")'.
15084 * modules/fts (Depends-on): Add i-ring.
15085 * modules/i-ring: New module.
15086 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
15087 * m4/i-ring.m4: New file.
15089 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15091 * gnulib-tool (func_create_testdir): Fix replacement of
15092 `build-aux' in configure.ac. Run autotools in gltests
15094 (func_create_testdir, func_create_megatestdir, test): There is
15095 no need for '--force' in most autotool invocations in a new
15096 tree. Actually fail the whole test if any of the tools, or the
15097 configure or make stages fail.
15099 Sync from Automake.
15100 * build-aux/gnupload: Revert last change. Add pointer to upload
15101 instructions of the GNU Maintenance Instructions.
15102 Suggestion by Karl Berry.
15104 2006-11-10 Jim Meyering <jim@meyering.net>
15106 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
15108 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
15110 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
15111 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
15112 (bind_textdomain_codeset) [! ENABLE_NLS]:
15113 Evaluate all the arguments. That way, callers get compatible behavior
15114 if the arguments have side effects. Also, it avoids some GCC
15115 diagnostics in some cases; Joel E. Denny reported problems when Bison
15116 was configured with --enable-gcc-warnigs.
15118 2006-11-10 Jim Meyering <jim@meyering.net>
15120 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
15121 relevant options in CFLAGS (like -O, -fno-inline) are taken into
15124 2006-11-10 Jim Meyering <jim@meyering.net>
15126 * modules/inline: New file/module.
15127 * modules/xalloc (Files): Remove m4/inline.m4.
15128 (Depends-on): Add inline, instead.
15129 * modules/oset: Likewise.
15130 * modules/list: Likewise.
15132 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
15134 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
15135 Problem reported by Matthew Woehlke.
15137 2006-11-09 Bruno Haible <bruno@clisp.org>
15139 * lib/tempname.c (gen_tempname): Remove variant that invokes
15141 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
15144 2006-11-08 Bruno Haible <bruno@clisp.org>
15146 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
15147 to 'yes' instead of 'cross-compiling'.
15149 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
15151 * lib/quotearg.h (quotearg_free): New decl.
15152 * lib/quotearg.c (quotearg_free): New function.
15153 (slot0, nslots, slotvec0, slotvec):
15154 Now file-scope so that quotearg_free can get at them.
15156 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15158 Sync from Automake.
15159 * build-aux/gnupload: Add missing 'gnu' to example URL.
15160 Report by Karl Berry.
15162 2006-11-08 Bruno Haible <bruno@clisp.org>
15164 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
15165 Suggested by Paul Eggert.
15167 2006-11-08 Jim Meyering <jim@meyering.net>
15169 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
15170 It's already included if !_LIBC.
15171 (fts_safe_changedir): Add a comment.
15173 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
15175 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
15176 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
15179 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
15180 definitions up, to avoid colliding with change below.
15181 (static_inline) [HAVE_INLINE]: New macro.
15182 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
15183 Provide extern decls when !HAVE_INLINE. Do not define unless
15184 static_inline is defined, either by us or by xmalloc.c. Use
15185 static_inline rather than static inline.
15186 (XCALLOC): Optimize sizeof(T) = 1 case.
15187 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
15189 2006-11-07 Bruno Haible <bruno@clisp.org>
15191 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
15192 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
15194 * modules/xalloc (Files): Add m4/inline.m4.
15196 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15198 * README: Fix typo.
15199 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
15200 (Miscellanous Notes): ...from this.
15202 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
15204 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
15205 Mention that offsetof should be used instead of sizeof.
15208 2006-11-07 Bruno Haible <bruno@clisp.org>
15210 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
15212 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
15214 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
15215 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
15216 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
15217 (gl_tree_add_before, gl_tree_add_after):
15218 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
15219 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
15220 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
15221 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
15222 (gl_linked_add_after, gl_linked_add_at): Likewise.
15223 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
15224 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
15225 (gl_tree_add_before, gl_tree_add_after): Likewise.
15226 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
15227 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
15228 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
15230 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15232 * lib/gl_oset.h: Use C comment style, not C++ comment style.
15234 2006-11-06 Bruno Haible <bruno@clisp.org>
15236 * m4/inline.m4: New file.
15237 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
15238 * modules/list (Files): Add m4/inline.m4.
15239 * modules/oset (Files): Likewise.
15241 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
15243 * lib/idcache.c: Include <stddef.h>, for offsetof.
15244 (struct userid.name): Change from char * to a flexible array member.
15246 * modules/idcache (Depends-on): Add flexmember.
15248 * MODULES.html.sh (Core language properties): New module flexmember.
15249 * modules/flexmember, m4/flexmember.m4: New files.
15251 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
15252 inline functions that are identical with the old xnmalloc_inline,
15253 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
15254 that we can avoid some unnecessary integer multiplications and
15255 divisions in the common case where the element size is known at
15257 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
15259 (xnboundedmalloc): Remove.
15260 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
15261 arguments, for consistency with rest of this header.
15262 (xcharalloc): Rewrite using XNMALLOC.
15263 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
15264 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
15265 versions have been moved to lib/xalloc.h and renamed to be the
15266 non-*_inline versions.
15267 (xmalloc, xrealloc): Implement without reference to the xnmalloc
15268 and xnrealloc functions, since those functions are now inline and
15270 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
15271 renaming described above.
15272 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
15273 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
15274 captures the dependency in AC_C_INLINE.
15276 New module canonicalize-lgpl, proposed by Charles Wilson in
15277 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
15278 with a few small changes afterwards.
15279 * MODULES.html.sh (File system functions): New module
15281 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
15282 and canonicalize_file_name.
15283 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
15284 * modules/canonicalize-lgpl: New files.
15286 2006-11-05 Bruno Haible <bruno@clisp.org>
15288 * gnulib-tool (func_import, func_create_testdir): Create directories
15289 also for files in subdirectories of lib/.
15291 2006-11-05 Bruno Haible <bruno@clisp.org>
15293 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
15296 2006-11-03 Bruno Haible <bruno@clisp.org>
15298 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
15299 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
15300 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
15301 (xnboundedmalloc): New inline function.
15302 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
15303 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
15305 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
15307 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
15308 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
15309 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
15311 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
15312 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
15314 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
15315 gl_tree_add_after): Use XMALLOC instead of xmalloc.
15316 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
15318 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
15319 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
15320 gl_tree_add_after): Use XMALLOC instead of xmalloc.
15321 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
15322 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
15323 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
15324 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
15326 2006-11-03 Bruno Haible <bruno@clisp.org>
15328 * lib/c-ctype.h [C++]: Define functions without name mangling.
15329 * lib/fwriteerror.h [C++]: Likewise.
15330 * lib/gcd.h [C++]: Likewise.
15331 * lib/linebreak.h [C++]: Likewise.
15333 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
15335 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
15336 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
15337 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
15338 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
15339 Check for functions and headers just once.
15340 Check for declaration of canonicalize_file_name.
15341 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
15343 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
15345 * gnulib-tool (func_import): Fix typo in actioncmd.
15347 2006-11-02 Bruno Haible <bruno@clisp.org>
15349 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
15350 newline sequence in the Makefile.am snippet as a space, like "make"
15352 Reported by Roger Persson <perrog@gmail.com>.
15354 2006-11-01 Bruno Haible <bruno@clisp.org>
15356 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
15357 already declared in <string.h>.
15358 * lib/strcase.h (strncasecmp): Don't declare it if yes.
15360 2006-11-01 Bruno Haible <bruno@clisp.org>
15362 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
15363 * lib/strcase.h: Include <string.h>.
15364 (strcasecmp): Define to rpl_strcasecmp here.
15366 2006-11-01 Bruno Haible <bruno@clisp.org>
15368 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
15370 2006-11-01 Eric Blake <ebb9@byu.net>
15372 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
15374 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
15376 2006-10-29 Bruno Haible <bruno@clisp.org>
15378 Make it compile in C++ mode.
15379 * lib/full-write.c (full_rw): Add a cast.
15381 2006-11-01 Bruno Haible <bruno@clisp.org>
15383 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
15384 be POSIX compliant.
15385 Reported by Roger Persson <perrog@gmail.com>.
15387 2006-11-01 Eric Blake <ebb9@byu.net>
15389 * lib/getopt_.h: Fix comments.
15391 2006-10-31 Eric Blake <ebb9@byu.net>
15393 * modules/tmpdir (Depends-on): Add sys_stat.
15394 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
15395 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
15396 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
15397 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
15400 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
15402 Avoid some C++ diagnostics reported by Bruno Haible.
15403 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
15405 (quotearg_alloc): Use xcharalloc rather than xmalloc.
15406 (struct slotvec): Move to top level.
15407 (quotearg_n_options): Rewrite to avoid xmalloc.
15408 * lib/xalloc.h (xcharalloc): New function.
15409 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
15410 [defined __cplusplus]: Add function template that provides result
15411 type propagation. This part of the change is from Bruno Haible.
15413 2006-10-29 Bruno Haible <bruno@clisp.org>
15415 Make it compile in C++ mode.
15416 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
15417 * lib/strnlen1.c (strnlen1): Cast memchr result.
15418 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
15419 * lib/clean-temp.c (string_equals, string_hash): Add casts.
15420 (create_temp_dir): Rename local variable 'template'.
15421 (compile_csharp_using_sscli): Add cast.
15422 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
15423 * lib/findprog.c (find_in_path): Likewise.
15424 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
15425 * lib/wait-process.c (register_slave_subprocess): Likewise.
15427 2006-10-22 Bruno Haible <bruno@clisp.org>
15429 * modules/tsearch: New file.
15430 * lib/tsearch.h: New file.
15431 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
15432 * m4/tsearch.m4: New file.
15433 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
15435 2006-10-29 Eric Blake <ebb9@byu.net>
15437 * lib/arcfour.c: Assume config.h.
15438 * lib/arctwo.c: Likewise.
15439 * lib/base64.c: Likewise.
15440 * lib/check-version.c: Likewise.
15441 * lib/crc.c: Likewise.
15442 * lib/des.c: Likewise.
15443 * lib/gc-gnulib.c: Likewise.
15444 * lib/gc-libgcrypt.c: Likewise.
15445 * lib/gc-pbkdf2-sha1.c: Likewise.
15446 * lib/getaddrinfo.c: Likewise.
15447 * lib/getdelim.c: Likewise.
15448 * lib/getline.c: Likewise.
15449 * lib/hmac-md5.c: Likewise.
15450 * lib/hmac-sha1.c: Likewise.
15451 * lib/iconvme.c: Likewise.
15452 * lib/md2.c: Likewise.
15453 * lib/md4.c: Likewise.
15454 * lib/memxor.c: Likewise.
15455 * lib/read-file.c: Likewise.
15456 * lib/readline.c: Likewise.
15457 * lib/rijndael-alg-fst.c: Likewise.
15458 * lib/rijndael-api-fst.c: Likewise.
15459 * lib/xgetdomainname.c: Likewise.
15461 2006-10-28 Eric Blake <ebb9@byu.net>
15463 * lib/xstrndup.c: Assume config.h.
15465 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
15467 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
15468 stat-macros.h is now for our own macros, whereas stat_h is for
15469 macros in the <sys/stat.h> name space.
15470 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
15471 (STAT_MACROS_H): Remove.
15472 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
15473 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
15474 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
15475 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
15476 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
15477 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
15478 Move these macros to ...
15479 * lib/stat_.h: here. Don't include stat-macros.h.
15480 * lib/canonicalize.c: Don't include stat-macros.h.
15481 * lib/chown.c: Likewise.
15482 * lib/euidaccess.c: Likewise.
15483 * lib/file-type.c: Likewise.
15484 * lib/filemode.c: Likewise.
15485 * lib/glob.c: Likewise.
15486 * lib/isapipe.c: Likewise.
15487 * lib/lchown.c: Likewise.
15488 * lib/lstat.c: Likewise.
15489 * lib/mkdir-p.c: Likewise.
15490 * lib/rmdir.c: Likewise.
15491 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
15492 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
15493 unless mkdir isn't declared, to speed up 'configure'.
15494 Always create sys/stat.h, since it's unlikely any real sys/stat.h
15495 would define all the S_* symbols.
15496 * modules/canonicalize (Depends-on):
15497 Depend on sys_stat, not stat-macros.
15498 * modules/chown: Likewise.
15499 * modules/euidaccess: Likewise.
15500 * modules/filemode: Likewise.
15501 * modules/file-type: Likewise.
15502 * modules/glob: Likewise.
15503 * modules/isapipe: Likewise.
15504 * modules/lchown: Likewise.
15505 * modules/lstat: Likewise.
15506 * modules/mkancesdirs: Likewise.
15507 * modules/rmdir: Likewise.
15508 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
15509 * modules/modechange: Likewise.
15510 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
15511 (configure.ac): Remove gl_STAT_MACROS.
15512 * modules/sys_stat (Depends-on): Remove stat-macros.
15514 2006-10-27 Bruno Haible <bruno@clisp.org>
15516 * m4/signed.m4: Remove file.
15517 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
15519 * modules/vasnprintf (Files): Remove m4/signed.m4.
15521 2006-10-27 Bruno Haible <bruno@clisp.org>
15523 Update to GNU gettext 0.16.
15524 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
15525 m4/inttypes-h.m4, m4/signed.m4.
15526 * m4/gettext.m4: Update to GNU gettext 0.16.
15527 * m4/intl.m4: New file, from GNU gettext.
15528 * m4/intldir.m4: New file, from GNU gettext.
15529 * config/srclist.txt: Update
15531 2006-10-27 Eric Blake <ebb9@byu.net>
15533 * MODULES.html.sh: Document tempname.
15534 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
15536 (Files): Move lib/tempname.c...
15537 * modules/tempname: ...to this new module.
15538 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
15539 (gl_PREREQ_TEMPNAME): Move...
15540 * m4/tempname.m4: ...to this new file.
15541 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
15542 * modules/sys_stat (Depends-on): Add stat-macros.
15543 * lib/stat_.h (includes): Pick up stat macros.
15544 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
15545 if stat macros are broken.
15546 * lib/tempname.c (includes): No need to include "stat-macros.h".
15547 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
15548 (direxists, __path_search) [!_LIBC]: Don't compile these in
15549 gnulib; the tmpdir module covers that.
15550 * lib/tempname.h: New file.
15552 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
15554 * COPYING: Explain how gnulib-tool converts licence headers.
15555 Almost all wording by Eric Blake.
15557 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
15559 * lib/mbchar.h (is_basic_table): Make read-only.
15560 * lib/mbchar.c (is_basic_table): Likewise.
15561 Reported by John Darrington.
15563 2006-10-25 Bruno Haible <bruno@clisp.org>
15565 * lib/progname.h (set_program_name): Undefine before defining.
15567 2006-10-25 Bruno Haible <bruno@clisp.org>
15569 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
15570 false for non-gcc C++ compilers.
15571 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
15573 2006-10-24 Bruno Haible <bruno@clisp.org>
15575 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
15576 iconv implementations like Irix iconv.
15578 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
15580 * modules/vararrays: New file.
15581 * m4/vararrays.m4: New file, taken from diffutils.
15582 * MODULES.html.sh: New module vararrays.
15584 2006-10-24 Karl Berry <karl@gnu.org>
15586 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
15587 Don't call GNU Unix.
15589 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15591 * users.txt: Add Libtool.
15595 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
15597 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
15598 to gnulib's policy of including config.h unconditionally.
15600 2006-10-24 Bruno Haible <bruno@clisp.org>
15602 * modules/wcwidth (Files): Add m4/wint_t.m4.
15603 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
15604 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
15606 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
15608 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
15609 to pacify GCC with some -W flags enabled. Problem reported by
15612 2006-10-24 Jim Meyering <jim@meyering.net>
15614 * MODULES.html.sh: Remove uinttostr. It's not a module.
15615 Reported by Karl Berry.
15617 2006-10-23 Bruno Haible <bruno@clisp.org>
15619 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
15621 2006-10-24 Bruno Haible <bruno@clisp.org>
15623 * lib/gl_list.h: Use C comment style, not C++ comment style.
15625 2006-10-23 Eric Blake <ebb9@byu.net>
15627 * lib/getaddrinfo.c (includes): Add missing include.
15629 2006-10-23 Bruno Haible <bruno@clisp.org>
15630 Paul Eggert <eggert@cs.ucla.edu>
15632 Ability to rename obstack_free.
15633 * lib/obstack.h (__obstack_free): New macro. Declare instead of
15635 (obstack_free): Invoke the __obstack_free macro.
15636 * lib/obstack.c (obstack_free): Use __obstack_free macro.
15638 2006-10-23 Bruno Haible <bruno@clisp.org>
15639 Paul Eggert <eggert@cs.ucla.edu>
15641 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
15642 __argc, __argv from the declaration. (They are defined as macros on
15645 2006-10-22 Bruno Haible <bruno@clisp.org>
15647 * doc/gnulib-intro.texi: New file.
15648 * doc/gnulib.texi: Include it.
15650 2006-10-21 Bruno Haible <bruno@clisp.org>
15652 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
15653 "Introduction", "Miscellanous Notes", "Particular Modules".
15655 2006-10-21 Bruno Haible <bruno@clisp.org>
15657 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15658 Change mostlyclean-local rule to avoid sh syntax error from bash
15659 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
15661 2006-10-23 Jim Meyering <jim@meyering.net>
15663 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
15664 in place of snprintf.
15666 * modules/inttostr (Files): Add lib/uinttostr.c.
15667 * lib/uinttostr.c (inttostr): New file/function.
15668 * lib/inttostr.h (uinttostr): Declare.
15669 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
15670 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
15672 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
15674 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
15676 * lib/canonicalize.c (ELOOP): Define if not already defined.
15677 Problem reported by Bruno Haible in
15678 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
15680 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
15682 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
15683 Problem reported by Perry Smith and Ville Laurikari.
15685 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
15688 2006-10-19 Bruno Haible <bruno@clisp.org>
15690 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
15693 2006-10-19 Bruno Haible <bruno@clisp.org>
15695 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
15698 2006-10-19 Bruno Haible <bruno@clisp.org>
15700 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
15702 2006-10-19 Bruno Haible <bruno@clisp.org>
15704 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
15707 2006-10-19 Bruno Haible <bruno@clisp.org>
15709 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
15712 2006-10-19 Bruno Haible <bruno@clisp.org>
15714 * gnulib-tool (func_create_testdir): Don't include ftruncate and
15715 mountlist by default.
15717 2006-10-16 Bruno Haible <bruno@clisp.org>
15719 * lib/c-strstr.c: Include c-strstr.h.
15721 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
15723 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
15726 2006-10-18 Bruno Haible <bruno@clisp.org>
15728 * lib/lock.h [C++]: Wrap definitions in extern "C".
15730 2006-10-18 Bruno Haible <bruno@clisp.org>
15732 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
15735 2006-10-18 Bruno Haible <bruno@clisp.org>
15737 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
15739 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
15741 * lib/xstrtol.h: Include gettext.h.
15742 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
15743 Problem reported by Eric Blake.
15744 * modules/xstrtol (Depends-on): Add gettext-h.
15746 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
15748 * lib/strftime.c (advance): New macro.
15749 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
15750 incomplete type, so you can't add 0 to it. Problem and patch
15751 reported by Eelco Dolstra for dietlibc.
15753 2006-10-18 Jim Meyering <jim@meyering.net>
15755 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
15756 type for a local, and rename it: s/up/user_proc/.
15758 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
15760 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
15761 READ_UTMP_USER_PROCESS.
15762 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
15764 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
15766 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
15767 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
15769 2006-10-17 Eric Blake <ebb9@byu.net>
15771 * lib/sigprocmask.c (sigprocmask): Fix typo.
15773 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
15775 * modules/clean-temp (Makefile.am): Don't add to make output...
15776 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
15779 2006-10-17 Bruno Haible <bruno@clisp.org>
15781 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
15782 differently if DEFAULT_TEXT_DOMAIN is set.
15784 2006-10-16 Bruno Haible <bruno@clisp.org>
15786 * lib/clean-temp.c: Include fwriteerror.h.
15788 2006-10-16 Bruno Haible <bruno@clisp.org>
15790 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
15792 2006-10-16 Bruno Haible <bruno@clisp.org>
15794 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
15795 * lib/sigprocmask.h: Include <sys/types.h>.
15796 (sigset_t): Use the system's definition if present.
15798 2006-10-17 Eric Blake <ebb9@byu.net>
15800 * lib/xvasprintf.c (includes): Assume config.h.
15801 * lib/xasprintf.c (includes): Likewise.
15803 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
15805 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
15806 at least as wide as intmax_t.
15808 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
15810 (Imported from Automake.)
15811 * build-aux/gnupload: Update to version 1.1 of directive file.
15813 2006-10-16 Eric Blake <ebb9@byu.net>
15815 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
15816 match Automake 1.10a.
15818 2006-10-14 Bruno Haible <bruno@clisp.org>
15820 * modules/sigprocmask: New file.
15821 * lib/sigprocmask.h: New file.
15822 * lib/sigprocmask.c: New file.
15823 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
15824 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
15825 request sigprocmask.o.
15826 (gl_PREREQ_SIGPROCMASK): New macro.
15827 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
15828 (Depends-on): Add sigprocmask.
15829 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
15830 gt_SIGNALBLOCKING. Test for 'raise' only once.
15831 * lib/fatal-signal.c: Include sigprocmask.h.
15832 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
15833 unblock_fatal_signals): Define always.
15834 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15837 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
15839 Sync from Automake.
15840 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
15841 which incorrectly sets the mode of an existing destination
15842 directory. In some cases the unpatched install-sh could do the
15843 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
15844 system. We hope this is rare in practice, but it's clearly worth
15845 fixing. Problem reported by Alex Unleashed in
15846 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
15847 Also, don't bother to check for -m bugs unless we're using -m;
15848 suggested by Stepan Kasal.
15850 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15852 Sync from Automake.
15853 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
15854 `-c' flag, so they appear at the same position as in %FASTDEP%
15855 mode in depend2.am. Fixes build failure for FreeBSD's c89,
15856 which ignores unknown options only after the first non-option.
15857 Bug report against M4 by Nelson H. F. Beebe.
15859 2006-10-13 Jim Meyering <jim@meyering.net>
15861 Fix a bug in yesterday's change.
15862 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
15863 p->fts_statp->st_dev would be used uninitialized.
15864 Ensures that we always call fts_stat on the very first entry.
15865 Miklos Szeredi reported that find -xdev stopped working.
15867 2006-10-12 Bruno Haible <bruno@clisp.org>
15869 * gnulib-tool (func_get_automake_snippet): Append an automatically
15870 computed EXTRA_DIST augmentation.
15871 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
15872 * modules/alloca-opt (Makefile.am): Likewise.
15873 * modules/allocsa (Makefile.am): Likewise.
15874 * modules/arcfour (Makefile.am): Likewise.
15875 * modules/arctwo (Makefile.am): Likewise.
15876 * modules/argmatch (Makefile.am): Likewise.
15877 * modules/argz (Makefile.am): Likewise.
15878 * modules/atexit (Makefile.am): Likewise.
15879 * modules/backupfile (Makefile.am): Likewise.
15880 * modules/byteswap (Makefile.am): Likewise.
15881 * modules/c-strtod (Makefile.am): Likewise.
15882 * modules/c-strtold (Makefile.am): Likewise.
15883 * modules/calloc (Makefile.am): Likewise.
15884 * modules/canon-host (Makefile.am): Likewise.
15885 * modules/canonicalize (Makefile.am): Likewise.
15886 * modules/chdir-long (Makefile.am): Likewise.
15887 * modules/chdir-safer (Makefile.am): Likewise.
15888 * modules/check-version (Makefile.am): Likewise.
15889 * modules/chown (Makefile.am): Likewise.
15890 * modules/cloexec (Makefile.am): Likewise.
15891 * modules/close-stream (Makefile.am): Likewise.
15892 * modules/closeout (Makefile.am): Likewise.
15893 * modules/crc (Makefile.am): Likewise.
15894 * modules/csharpexec (Makefile.am): Likewise.
15895 * modules/cycle-check (Makefile.am): Likewise.
15896 * modules/des (Makefile.am): Likewise.
15897 * modules/dev-ino (Makefile.am): Likewise.
15898 * modules/dirfd (Makefile.am): Likewise.
15899 * modules/dirname (Makefile.am): Likewise.
15900 * modules/dup2 (Makefile.am): Likewise.
15901 * modules/eealloc (Makefile.am): Likewise.
15902 * modules/error (Makefile.am): Likewise.
15903 * modules/euidaccess (Makefile.am): Likewise.
15904 * modules/exclude (Makefile.am): Likewise.
15905 * modules/exitfail (Makefile.am): Likewise.
15906 * modules/fcntl-safer (Makefile.am): Likewise.
15907 * modules/fcntl (Makefile.am): Likewise.
15908 * modules/file-type (Makefile.am): Likewise.
15909 * modules/fileblocks (Makefile.am): Likewise.
15910 * modules/filemode (Makefile.am): Likewise.
15911 * modules/filenamecat (Makefile.am): Likewise.
15912 * modules/fnmatch (Makefile.am): Likewise.
15913 * modules/fopen-safer (Makefile.am): Likewise.
15914 * modules/fpending (Makefile.am): Likewise.
15915 * modules/fprintftime (Makefile.am): Likewise.
15916 * modules/free (Makefile.am): Likewise.
15917 * modules/fsusage (Makefile.am): Likewise.
15918 * modules/ftruncate (Makefile.am): Likewise.
15919 * modules/fts (Makefile.am): Likewise.
15920 * modules/gc-arcfour (Makefile.am): Likewise.
15921 * modules/gc-des (Makefile.am): Likewise.
15922 * modules/gc-hmac-md5 (Makefile.am): Likewise.
15923 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
15924 * modules/gc-md4 (Makefile.am): Likewise.
15925 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
15926 * modules/gc-sha1 (Makefile.am): Likewise.
15927 * modules/gc (Makefile.am): Likewise.
15928 * modules/getaddrinfo (Makefile.am): Likewise.
15929 * modules/getcwd (Makefile.am): Likewise.
15930 * modules/getdelim (Makefile.am): Likewise.
15931 * modules/getdomainname (Makefile.am): Likewise.
15932 * modules/getgroups (Makefile.am): Likewise.
15933 * modules/gethostname (Makefile.am): Likewise.
15934 * modules/gethrxtime (Makefile.am): Likewise.
15935 * modules/getline (Makefile.am): Likewise.
15936 * modules/getloadavg (Makefile.am): Likewise.
15937 * modules/getlogin_r (Makefile.am): Likewise.
15938 * modules/getndelim2 (Makefile.am): Likewise.
15939 * modules/getopt (Makefile.am): Likewise.
15940 * modules/getpagesize (Makefile.am): Likewise.
15941 * modules/getpass-gnu (Makefile.am): Likewise.
15942 * modules/getpass (Makefile.am): Likewise.
15943 * modules/getsubopt (Makefile.am): Likewise.
15944 * modules/gettime (Makefile.am): Likewise.
15945 * modules/gettimeofday (Makefile.am): Likewise.
15946 * modules/getugroups (Makefile.am): Likewise.
15947 * modules/getusershell (Makefile.am): Likewise.
15948 * modules/glob (Makefile.am): Likewise.
15949 * modules/group-member (Makefile.am): Likewise.
15950 * modules/hard-locale (Makefile.am): Likewise.
15951 * modules/hash (Makefile.am): Likewise.
15952 * modules/hmac-md5 (Makefile.am): Likewise.
15953 * modules/hmac-sha1 (Makefile.am): Likewise.
15954 * modules/human (Makefile.am): Likewise.
15955 * modules/idcache (Makefile.am): Likewise.
15956 * modules/imaxabs (Makefile.am): Likewise.
15957 * modules/imaxdiv (Makefile.am): Likewise.
15958 * modules/inet_ntop (Makefile.am): Likewise.
15959 * modules/inet_pton (Makefile.am): Likewise.
15960 * modules/intprops (Makefile.am): Likewise.
15961 * modules/inttostr (Makefile.am): Likewise.
15962 * modules/inttypes (Makefile.am): Likewise.
15963 * modules/isapipe (Makefile.am): Likewise.
15964 * modules/javaversion (Makefile.am): Likewise.
15965 * modules/lchmod (Makefile.am): Likewise.
15966 * modules/lchown (Makefile.am): Likewise.
15967 * modules/localcharset (Makefile.am): Likewise.
15968 * modules/long-options (Makefile.am): Likewise.
15969 * modules/lstat (Makefile.am): Likewise.
15970 * modules/malloc (Makefile.am): Likewise.
15971 * modules/mathl (Makefile.am): Likewise.
15972 * modules/mbchar (Makefile.am): Likewise.
15973 * modules/md2 (Makefile.am): Likewise.
15974 * modules/md4 (Makefile.am): Likewise.
15975 * modules/md5 (Makefile.am): Likewise.
15976 * modules/memcasecmp (Makefile.am): Likewise.
15977 * modules/memchr (Makefile.am): Likewise.
15978 * modules/memcmp (Makefile.am): Likewise.
15979 * modules/memcoll (Makefile.am): Likewise.
15980 * modules/memcpy (Makefile.am): Likewise.
15981 * modules/memmem (Makefile.am): Likewise.
15982 * modules/memmove (Makefile.am): Likewise.
15983 * modules/mempcpy (Makefile.am): Likewise.
15984 * modules/memrchr (Makefile.am): Likewise.
15985 * modules/memset (Makefile.am): Likewise.
15986 * modules/memxor (Makefile.am): Likewise.
15987 * modules/mkancesdirs (Makefile.am): Likewise.
15988 * modules/mkdir-p (Makefile.am): Likewise.
15989 * modules/mkdir (Makefile.am): Likewise.
15990 * modules/mkdtemp (Makefile.am): Likewise.
15991 * modules/mkstemp (Makefile.am): Likewise.
15992 * modules/mktime (Makefile.am): Likewise.
15993 * modules/modechange (Makefile.am): Likewise.
15994 * modules/mountlist (Makefile.am): Likewise.
15995 * modules/nanosleep (Makefile.am): Likewise.
15996 * modules/obstack (Makefile.am): Likewise.
15997 * modules/openat (Makefile.am): Likewise.
15998 * modules/pagealign_alloc (Makefile.am): Likewise.
15999 * modules/pathmax (Makefile.am): Likewise.
16000 * modules/physmem (Makefile.am): Likewise.
16001 * modules/poll (Makefile.am): Likewise.
16002 * modules/posixtm (Makefile.am): Likewise.
16003 * modules/posixver (Makefile.am): Likewise.
16004 * modules/putenv (Makefile.am): Likewise.
16005 * modules/quote (Makefile.am): Likewise.
16006 * modules/quotearg (Makefile.am): Likewise.
16007 * modules/raise (Makefile.am): Likewise.
16008 * modules/read-file (Makefile.am): Likewise.
16009 * modules/readline (Makefile.am): Likewise.
16010 * modules/readlink (Makefile.am): Likewise.
16011 * modules/readtokens (Makefile.am): Likewise.
16012 * modules/readutmp (Makefile.am): Likewise.
16013 * modules/realloc (Makefile.am): Likewise.
16014 * modules/regex (Makefile.am): Likewise.
16015 * modules/rename-dest-slash (Makefile.am): Likewise.
16016 * modules/rename (Makefile.am): Likewise.
16017 * modules/rijndael (Makefile.am): Likewise.
16018 * modules/rmdir (Makefile.am): Likewise.
16019 * modules/rpmatch (Makefile.am): Likewise.
16020 * modules/safe-read (Makefile.am): Likewise.
16021 * modules/safe-write (Makefile.am): Likewise.
16022 * modules/same-inode (Makefile.am): Likewise.
16023 * modules/same (Makefile.am): Likewise.
16024 * modules/save-cwd (Makefile.am): Likewise.
16025 * modules/savedir (Makefile.am): Likewise.
16026 * modules/setenv (Makefile.am): Likewise.
16027 * modules/settime (Makefile.am): Likewise.
16028 * modules/sha1 (Makefile.am): Likewise.
16029 * modules/sig2str (Makefile.am): Likewise.
16030 * modules/snprintf (Makefile.am): Likewise.
16031 * modules/stat-macros (Makefile.am): Likewise.
16032 * modules/stat-time (Makefile.am): Likewise.
16033 * modules/stdbool (Makefile.am): Likewise.
16034 * modules/stdint (Makefile.am): Likewise.
16035 * modules/stdlib-safer (Makefile.am): Likewise.
16036 * modules/stpcpy (Makefile.am): Likewise.
16037 * modules/stpncpy (Makefile.am): Likewise.
16038 * modules/strcase (Makefile.am): Likewise.
16039 * modules/strcasestr (Makefile.am): Likewise.
16040 * modules/strchrnul (Makefile.am): Likewise.
16041 * modules/strcspn (Makefile.am): Likewise.
16042 * modules/strdup (Makefile.am): Likewise.
16043 * modules/strerror (Makefile.am): Likewise.
16044 * modules/strftime (Makefile.am): Likewise.
16045 * modules/strndup (Makefile.am): Likewise.
16046 * modules/strnlen (Makefile.am): Likewise.
16047 * modules/strpbrk (Makefile.am): Likewise.
16048 * modules/strsep (Makefile.am): Likewise.
16049 * modules/strstr (Makefile.am): Likewise.
16050 * modules/strtod (Makefile.am): Likewise.
16051 * modules/strtoimax (Makefile.am): Likewise.
16052 * modules/strtok_r (Makefile.am): Likewise.
16053 * modules/strtol (Makefile.am): Likewise.
16054 * modules/strtoll (Makefile.am): Likewise.
16055 * modules/strtoul (Makefile.am): Likewise.
16056 * modules/strtoull (Makefile.am): Likewise.
16057 * modules/strtoumax (Makefile.am): Likewise.
16058 * modules/strverscmp (Makefile.am): Likewise.
16059 * modules/sys_socket (Makefile.am): Likewise.
16060 * modules/sys_stat (Makefile.am): Likewise.
16061 * modules/sysexits (Makefile.am): Likewise.
16062 * modules/time_r (Makefile.am): Likewise.
16063 * modules/timegm (Makefile.am): Likewise.
16064 * modules/timespec (Makefile.am): Likewise.
16065 * modules/tmpfile-safer (Makefile.am): Likewise.
16066 * modules/trim (Makefile.am): Likewise.
16067 * modules/unistd-safer (Makefile.am): Likewise.
16068 * modules/unlinkdir (Makefile.am): Likewise.
16069 * modules/unlocked-io (Makefile.am): Likewise.
16070 * modules/userspec (Makefile.am): Likewise.
16071 * modules/utime (Makefile.am): Likewise.
16072 * modules/utimecmp (Makefile.am): Likewise.
16073 * modules/utimens (Makefile.am): Likewise.
16074 * modules/vasnprintf (Makefile.am): Likewise.
16075 * modules/vasprintf (Makefile.am): Likewise.
16076 * modules/vsnprintf (Makefile.am): Likewise.
16077 * modules/xalloc (Makefile.am): Likewise.
16078 * modules/xgetcwd (Makefile.am): Likewise.
16079 * modules/xnanosleep (Makefile.am): Likewise.
16080 * modules/xreadlink (Makefile.am): Likewise.
16081 * modules/xstrtod (Makefile.am): Likewise.
16082 * modules/xstrtol (Makefile.am): Likewise.
16083 * modules/xstrtold (Makefile.am): Likewise.
16084 * modules/yesno (Makefile.am): Likewise.
16085 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
16087 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
16089 * modules/error (Makefile.am): Distribute files through
16090 EXTRA_DIST, not lib_SOURCES.
16092 2006-10-12 Eric Blake <ebb9@byu.net>
16094 * modules/error (Makefile.am): Distribute files in /lib.
16095 * modules/obstack (Makefile.am): Likewise.
16097 2006-10-12 Bruno Haible <bruno@clisp.org>
16099 * modules/acl (Makefile.am): Distribute all files in lib/ through
16101 * modules/arcfour (Makefile.am): Likewise.
16102 * modules/arctwo (Makefile.am): Likewise.
16103 * modules/argmatch (Makefile.am): Likewise.
16104 * modules/argz (Makefile.am): Likewise.
16105 * modules/atexit (Makefile.am): Likewise.
16106 * modules/backupfile (Makefile.am): Likewise.
16107 * modules/c-strtod (Makefile.am): Likewise.
16108 * modules/c-strtold (Makefile.am): Likewise.
16109 * modules/calloc (Makefile.am): Likewise.
16110 * modules/canon-host (Makefile.am): Likewise.
16111 * modules/canonicalize (Makefile.am): Likewise.
16112 * modules/chdir-long (Makefile.am): Likewise.
16113 * modules/chdir-safer (Makefile.am): Likewise.
16114 * modules/check-version (Makefile.am): Likewise.
16115 * modules/chown (Makefile.am): Likewise.
16116 * modules/cloexec (Makefile.am): Likewise.
16117 * modules/close-stream (Makefile.am): Likewise.
16118 * modules/closeout (Makefile.am): Likewise.
16119 * modules/crc (Makefile.am): Likewise.
16120 * modules/cycle-check (Makefile.am): Likewise.
16121 * modules/des (Makefile.am): Likewise.
16122 * modules/dirfd (Makefile.am): Likewise.
16123 * modules/dirname (Makefile.am): Likewise.
16124 * modules/dup2 (Makefile.am): Likewise.
16125 * modules/euidaccess (Makefile.am): Likewise.
16126 * modules/exclude (Makefile.am): Likewise.
16127 * modules/exitfail (Makefile.am): Likewise.
16128 * modules/fcntl-safer (Makefile.am): Likewise.
16129 * modules/file-type (Makefile.am): Likewise.
16130 * modules/fileblocks (Makefile.am): Likewise.
16131 * modules/filemode (Makefile.am): Likewise.
16132 * modules/filenamecat (Makefile.am): Likewise.
16133 * modules/fnmatch (Makefile.am): Likewise.
16134 * modules/fopen-safer (Makefile.am): Likewise.
16135 * modules/fpending (Makefile.am): Likewise.
16136 * modules/fprintftime (Makefile.am): Likewise.
16137 * modules/free (Makefile.am): Likewise.
16138 * modules/fsusage (Makefile.am): Likewise.
16139 * modules/ftruncate (Makefile.am): Likewise.
16140 * modules/fts (Makefile.am): Likewise.
16141 * modules/gc (Makefile.am): Likewise.
16142 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
16143 * modules/getaddrinfo (Makefile.am): Likewise.
16144 * modules/getcwd (Makefile.am): Likewise.
16145 * modules/getdelim (Makefile.am): Likewise.
16146 * modules/getdomainname (Makefile.am): Likewise.
16147 * modules/getgroups (Makefile.am): Likewise.
16148 * modules/gethostname (Makefile.am): Likewise.
16149 * modules/gethrxtime (Makefile.am): Likewise.
16150 * modules/getline (Makefile.am): Likewise.
16151 * modules/getloadavg (Makefile.am): Likewise.
16152 * modules/getlogin_r (Makefile.am): Likewise.
16153 * modules/getopt (Makefile.am): Likewise.
16154 * modules/getpass (Makefile.am): Likewise.
16155 * modules/getpass-gnu (Makefile.am): Likewise.
16156 * modules/getsubopt (Makefile.am): Likewise.
16157 * modules/gettime (Makefile.am): Likewise.
16158 * modules/gettimeofday (Makefile.am): Likewise.
16159 * modules/getugroups (Makefile.am): Likewise.
16160 * modules/getusershell (Makefile.am): Likewise.
16161 * modules/glob (Makefile.am): Likewise.
16162 * modules/group-member (Makefile.am): Likewise.
16163 * modules/hard-locale (Makefile.am): Likewise.
16164 * modules/hash (Makefile.am): Likewise.
16165 * modules/hmac-md5 (Makefile.am): Likewise.
16166 * modules/hmac-sha1 (Makefile.am): Likewise.
16167 * modules/human (Makefile.am): Likewise.
16168 * modules/idcache (Makefile.am): Likewise.
16169 * modules/imaxabs (Makefile.am): Likewise.
16170 * modules/imaxdiv (Makefile.am): Likewise.
16171 * modules/inet_ntop (Makefile.am): Likewise.
16172 * modules/inet_pton (Makefile.am): Likewise.
16173 * modules/inttostr (Makefile.am): Likewise.
16174 * modules/isapipe (Makefile.am): Likewise.
16175 * modules/lchown (Makefile.am): Likewise.
16176 * modules/long-options (Makefile.am): Likewise.
16177 * modules/lstat (Makefile.am): Likewise.
16178 * modules/malloc (Makefile.am): Likewise.
16179 * modules/mathl (Makefile.am): Likewise.
16180 * modules/mbchar (Makefile.am): Likewise.
16181 * modules/md2 (Makefile.am): Likewise.
16182 * modules/md4 (Makefile.am): Likewise.
16183 * modules/md5 (Makefile.am): Likewise.
16184 * modules/memcasecmp (Makefile.am): Likewise.
16185 * modules/memchr (Makefile.am): Likewise.
16186 * modules/memcmp (Makefile.am): Likewise.
16187 * modules/memcoll (Makefile.am): Likewise.
16188 * modules/memcpy (Makefile.am): Likewise.
16189 * modules/memmem (Makefile.am): Likewise.
16190 * modules/memmove (Makefile.am): Likewise.
16191 * modules/mempcpy (Makefile.am): Likewise.
16192 * modules/memrchr (Makefile.am): Likewise.
16193 * modules/memset (Makefile.am): Likewise.
16194 * modules/memxor (Makefile.am): Likewise.
16195 * modules/mkancesdirs (Makefile.am): Likewise.
16196 * modules/mkdir (Makefile.am): Likewise.
16197 * modules/mkdir-p (Makefile.am): Likewise.
16198 * modules/mkdtemp (Makefile.am): Likewise.
16199 * modules/mkstemp (Makefile.am): Likewise.
16200 * modules/mktime (Makefile.am): Likewise.
16201 * modules/modechange (Makefile.am): Likewise.
16202 * modules/mountlist (Makefile.am): Likewise.
16203 * modules/nanosleep (Makefile.am): Likewise.
16204 * modules/openat (Makefile.am): Likewise.
16205 * modules/pagealign_alloc (Makefile.am): Likewise.
16206 * modules/physmem (Makefile.am): Likewise.
16207 * modules/poll (Makefile.am): Likewise.
16208 * modules/posixtm (Makefile.am): Likewise.
16209 * modules/posixver (Makefile.am): Likewise.
16210 * modules/putenv (Makefile.am): Likewise.
16211 * modules/quote (Makefile.am): Likewise.
16212 * modules/quotearg (Makefile.am): Likewise.
16213 * modules/raise (Makefile.am): Likewise.
16214 * modules/read-file (Makefile.am): Likewise.
16215 * modules/readline (Makefile.am): Likewise.
16216 * modules/readlink (Makefile.am): Likewise.
16217 * modules/readtokens (Makefile.am): Likewise.
16218 * modules/readutmp (Makefile.am): Likewise.
16219 * modules/realloc (Makefile.am): Likewise.
16220 * modules/regex (Makefile.am): Likewise.
16221 * modules/rename (Makefile.am): Likewise.
16222 * modules/rename-dest-slash (Makefile.am): Likewise.
16223 * modules/rijndael (Makefile.am): Likewise.
16224 * modules/rmdir (Makefile.am): Likewise.
16225 * modules/rpmatch (Makefile.am): Likewise.
16226 * modules/safe-read (Makefile.am): Likewise.
16227 * modules/safe-write (Makefile.am): Likewise.
16228 * modules/same (Makefile.am): Likewise.
16229 * modules/save-cwd (Makefile.am): Likewise.
16230 * modules/savedir (Makefile.am): Likewise.
16231 * modules/setenv (Makefile.am): Likewise.
16232 * modules/settime (Makefile.am): Likewise.
16233 * modules/sha1 (Makefile.am): Likewise.
16234 * modules/sig2str (Makefile.am): Likewise.
16235 * modules/snprintf (Makefile.am): Likewise.
16236 * modules/stdlib-safer (Makefile.am): Likewise.
16237 * modules/stpcpy (Makefile.am): Likewise.
16238 * modules/stpncpy (Makefile.am): Likewise.
16239 * modules/strcase (Makefile.am): Likewise.
16240 * modules/strcasestr (Makefile.am): Likewise.
16241 * modules/strchrnul (Makefile.am): Likewise.
16242 * modules/strcspn (Makefile.am): Likewise.
16243 * modules/strdup (Makefile.am): Likewise.
16244 * modules/strerror (Makefile.am): Likewise.
16245 * modules/strftime (Makefile.am): Likewise.
16246 * modules/strndup (Makefile.am): Likewise.
16247 * modules/strnlen (Makefile.am): Likewise.
16248 * modules/strpbrk (Makefile.am): Likewise.
16249 * modules/strsep (Makefile.am): Likewise.
16250 * modules/strstr (Makefile.am): Likewise.
16251 * modules/strtod (Makefile.am): Likewise.
16252 * modules/strtoimax (Makefile.am): Likewise.
16253 * modules/strtok_r (Makefile.am): Likewise.
16254 * modules/strtol (Makefile.am): Likewise.
16255 * modules/strtoll (Makefile.am): Likewise.
16256 * modules/strtoul (Makefile.am): Likewise.
16257 * modules/strtoull (Makefile.am): Likewise.
16258 * modules/strtoumax (Makefile.am): Likewise.
16259 * modules/strverscmp (Makefile.am): Likewise.
16260 * modules/time_r (Makefile.am): Likewise.
16261 * modules/timegm (Makefile.am): Likewise.
16262 * modules/tmpfile-safer (Makefile.am): Likewise.
16263 * modules/unistd-safer (Makefile.am): Likewise.
16264 * modules/unlinkdir (Makefile.am): Likewise.
16265 * modules/userspec (Makefile.am): Likewise.
16266 * modules/utime (Makefile.am): Likewise.
16267 * modules/utimecmp (Makefile.am): Likewise.
16268 * modules/utimens (Makefile.am): Likewise.
16269 * modules/vasnprintf (Makefile.am): Likewise.
16270 * modules/vasprintf (Makefile.am): Likewise.
16271 * modules/vsnprintf (Makefile.am): Likewise.
16272 * modules/xalloc (Makefile.am): Likewise.
16273 * modules/xgetcwd (Makefile.am): Likewise.
16274 * modules/xnanosleep (Makefile.am): Likewise.
16275 * modules/xreadlink (Makefile.am): Likewise.
16276 * modules/xstrtod (Makefile.am): Likewise.
16277 * modules/xstrtol (Makefile.am): Likewise.
16278 * modules/xstrtold (Makefile.am): Likewise.
16279 * modules/yesno (Makefile.am): Likewise.
16281 2006-10-12 Jim Meyering <jim@meyering.net>
16283 * m4/getloadavg.m4: Revert the change below.
16285 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
16286 lib/getloadavg.c using "ls -L", not "test -f". The latter would
16287 fail with a symlink, which is what coreutils' ./bootstrap now
16288 creates by default.
16290 2006-10-12 Bruno Haible <bruno@clisp.org>
16292 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
16294 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
16295 MSVC and mingw explicitly.
16297 2006-10-11 Simon Josefsson <jas@extundo.com>
16298 Bruno Haible <bruno@clisp.org>
16300 Add support for multiple gnulib-tool invocations in the scope of a
16301 single configure.ac file.
16302 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
16303 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
16304 with the same contents as the _LIBADD variable.
16305 (func_emit_initmacro_start, func_emit_initmacro_end,
16306 func_emit_initmacro_done): New functions.
16307 (func_import, func_create_testdir): Invoke them. Allow the identifiers
16308 gl_LIBOBJS and gl_LTLIBOBJS.
16310 2006-10-11 Bruno Haible <bruno@clisp.org>
16312 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
16313 (func_create_testdir): Don't create po/Makefile.am, don't invoke
16314 autoreconf. Instead, invoke autopoint explicitly but move back the
16315 *.m4 files from gnulib.
16317 2006-10-11 Bruno Haible <bruno@clisp.org>
16319 * gnulib-tool (func_usage): Make module names after --create-testdir
16321 (func_create_testdir): If no module was specified, use nearly all
16324 2006-10-12 Jim Meyering <jim@meyering.net>
16326 Big performance improvement for fts-based tools that use FTS_NOSTAT.
16327 Avoid spurious inode-mismatch problems on non-POSIX file systems.
16328 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
16329 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
16330 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
16331 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
16332 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
16333 (fts_set_stat_required): New function.
16334 (fts_open): Defer the calls to fts_stat, if possible or requested.
16335 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
16336 into fts_stat itself.
16337 (fts_read): Perform any required (deferred) fts_stat call.
16338 (fts_build): Likewise, for the directory we're about to open and read.
16339 In the readdir loop, carefully decide whether each entry will require
16340 an eventual call to fts_stat, using dirent.d_type info if available.
16341 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
16342 a command line argument into this function. Update all callers.
16343 Map a return value of FTS_DOT to FTS_D for a command line argument.
16344 * modules/fts (Depends-on): Add d-type. Alphabetize.
16345 Thanks to Miklos Szeredi for his tenacity and for the initial
16346 bug report about "find" failing on a FUSE-based file system.
16348 * lib/fts.c (fts_open): Use consistent indentation.
16350 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
16352 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
16353 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
16354 reported by Jim Meyering. All uses of cache variables renamed
16355 to match Autoconf's.
16356 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
16359 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16360 Fix misspelling in diagnostic.
16362 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
16364 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
16365 defined. Problem reported by Matthew Woehlke.
16367 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
16368 Add support for Tandem NonStop R series.
16369 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
16372 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
16373 (has_trailing_slash): Omit size arg; all callers changed.
16374 Omit 'inline', since it doesn't help performance and we'd
16375 need to configure it.
16376 Don't count //, ///, etc. as having a trailing slash.
16377 As a side effect, this removes a C99ism reported by Matthew Woehlke.
16378 (rpl_rename_dest_slash): On failure, use rename's errno rather
16379 than (in some cases) an incorrect or junk errno.
16380 Simplify code by removing need to compute length; this does
16381 cause it to make two passes instead of one over the file name,
16384 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
16385 change, since Autoconf's version may no longer be appropriate now
16386 that we are using CVS Autoconf's version. Add support for Tandem.
16388 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
16389 Bruno Haible <bruno@clisp.org>
16391 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
16392 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
16393 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
16394 gl_AC_TYPE_LONG_LONG.
16396 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
16397 instead of HAVE_LONG_LONG.
16398 * lib/printf-args.c (printf_fetchargs): Likewise.
16399 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
16400 * lib/vasnprintf.c (VASNPRINTF): Likewise.
16401 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
16402 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
16403 gl_AC_TYPE_LONG_LONG.
16405 2006-10-11 Bruno Haible <bruno@clisp.org>
16407 * m4/longlong.m4: Add comments.
16408 * m4/ulonglong.m4: Likewise.
16410 2006-10-10 Bruno Haible <bruno@clisp.org>
16412 Make it possible to #define stpcpy, strdup to aliases.
16413 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
16414 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
16416 2006-10-10 Bruno Haible <bruno@clisp.org>
16418 Make it possible to #define gcd to an alias.
16419 * lib/gcd.c: Include config.h.
16421 2006-10-10 Bruno Haible <bruno@clisp.org>
16423 Make it possible to #define c_isascii to an alias.
16424 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
16425 defined. Undefine the macros before defining them, to avoid gcc
16427 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
16428 define NO_C_CTYPE_MACROS early.
16430 2006-10-10 Bruno Haible <bruno@clisp.org>
16432 Make it possible to #define set_program_name to an alias.
16433 * lib/progname.c: Don't undefine set_program_name; instead, undefine
16434 ENABLE_RELOCATABLE early.
16436 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
16438 Port to Tandem NSK OSS, which has 64-bit signed int but at most
16439 32-bit unsigned int. Problem reported by Matthew Woehlke in:
16440 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
16441 More generally, don't assume that 64-bit signed int is available
16442 if unsigned int is, and vice versa.
16443 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
16444 unsigned symbols, not on their signed counterparts.
16445 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
16446 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
16447 (UINT64_C, UINTMAX_C):
16449 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
16450 unsigned counterparts.
16451 (Have_long_long, Unsigned): New macros.
16452 (Int): Renamed from INT.
16453 (strtoimax): Use the new macros.
16454 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
16455 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
16456 * modules/inttypes (inttypes.h): Substitute
16457 HAVE_UNSIGNED_LONG_LONG_INT.
16458 * modules/stdint (stdint.h): Likewise.
16459 (Files): Add m4/ulonglong.m4.
16461 2006-10-10 Bruno Haible <bruno@clisp.org>
16463 Fix a gcc -Wshadow warning.
16464 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
16466 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
16467 gl_linked_indexof_from_to): Likewise.
16468 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
16470 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
16472 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
16473 Reported by Eric Blake.
16475 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
16477 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
16478 for NetBSD. Problem reported by Bruno Haible.
16480 2006-10-09 Jim Meyering <jim@meyering.net>
16482 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
16483 Patch from Bruno Haible.
16485 2006-10-09 Jim Meyering <jim@meyering.net>
16487 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
16488 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
16489 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
16491 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
16493 Don't include <config.h> twice; this doesn't work in some cases,
16494 e.g., when config.h has "#define intmax_t long long int" and
16495 we include <config.h>, <inttypes.h>, <config.h> in that order.
16496 Problem reported by Matthew Woehlke in:
16497 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
16498 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
16499 * lib/fts-cycle.c: Don't include config.h.
16500 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
16501 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
16502 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
16503 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
16505 * lib/xstrtoumax.c: Likewise.
16506 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
16507 __strtol and the like, so that this module is more like its siblings.
16508 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
16509 Remove; no longer needed now that we assume gnulib inttypes.h.
16511 2006-10-08 Bruno Haible <bruno@clisp.org>
16513 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
16516 2006-10-07 Jim Meyering <jim@meyering.net>
16518 * modules/inttypes (inttypes.h): Revert what seems to have been
16519 an inadvertent part of today's change: use "|", not "/" in the
16520 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
16522 2006-10-07 Bruno Haible <bruno@clisp.org>
16524 * modules/sublist: New file.
16526 2006-10-07 Bruno Haible <bruno@clisp.org>
16528 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
16529 * modules/argz (argz.h): Likewise.
16530 * modules/arpa_inet (arpa/inet.h): Likewise.
16531 * modules/byteswap (byteswap.h): Likewise.
16532 * modules/configmake (configmake.h): Likewise.
16533 * modules/fcntl (fcntl.h): Likewise.
16534 * modules/fnmatch (fnmatch.h): Likewise.
16535 * modules/getopt (getopt.h): Likewise.
16536 * modules/glob (glob.h): Likewise.
16537 * modules/inttypes (inttypes.h): Likewise.
16538 * modules/netinet_in (netinet/in.h): Likewise.
16539 * modules/poll (poll.h): Likewise.
16540 * modules/stdbool (stdbool.h): Likewise.
16541 * modules/stdint (stdint.h): Likewise.
16542 * modules/sys_select (sys/select.h): Likewise.
16543 * modules/sys_socket (sys/socket.h): Likewise.
16544 * modules/sys_stat (sys/stat.h): Likewise.
16545 * modules/sysexits (sysexits.h): Likewise.
16546 * modules/unistd (unistd.h): Likewise.
16547 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16548 Add a "DO NOT EDIT" comment to the generated file.
16549 (func_import): Likewise for gnulib-comp.m4.
16551 2006-10-07 Bruno Haible <bruno@clisp.org>
16553 * lib/gl_sublist.h: New file.
16554 * lib/gl_sublist.c: New file.
16556 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
16558 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
16559 name (relative to the original working directory) and the file
16560 name component (relative to the temporary working directory). All
16562 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
16563 * lib/mkdir-p.c (make_dir_parents): Likewise.
16564 * lib/mkdir-p.h (make_dir_parents): Likewise.
16566 2006-10-06 Eric Blake <ebb9@byu.net>
16568 Define several macros for use by the clean-temp module.
16569 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
16570 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
16571 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
16573 * lib/clean-temp.h (close_stream_temp): New declaration.
16574 * lib/clean-temp.c (includes): Pull in headers according to what
16575 other modules are in use.
16576 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
16578 2006-10-06 Bruno Haible <bruno@clisp.org>
16580 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
16581 instead of fopen, fwriteerror.
16583 2006-10-06 Bruno Haible <bruno@clisp.org>
16585 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
16586 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
16588 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
16589 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
16590 Return an error indicator.
16591 Suggested by Eric Blake.
16593 2006-10-06 Bruno Haible <bruno@clisp.org>
16595 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
16596 Reported by Eric Blake.
16598 2006-10-06 Bruno Haible <bruno@clisp.org>
16600 * modules/closeout (Description): Mention stderr too.
16602 2006-10-06 Bruno Haible <bruno@clisp.org>
16603 and Paul Eggert <eggert@cs.ucla.edu>
16605 * lib/closeout.c (close_stdout): Also close stderr.
16606 * lib/closeout.h: Update comment.
16608 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
16610 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
16611 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
16612 * lib/dirchownmod.c: Include lchown.h.
16613 * lib/lchown.c: Don't include files that lchown.h now includes.
16614 Don't declare chown, since lchown.h now does that.
16615 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
16616 (lchown): Define to rpl_chown if lchown is declared but
16617 does not exist. Declare using a prototype if lchown is not
16618 declared. Add a copyright notice.
16619 * lib/mkstemp.h: Include <unistd.h>.
16620 * lib/openat.c: Include lchown.h.
16622 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
16623 we now test for that separately.
16624 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
16625 rather than O_NOFOLLOW, when testing whether it's possible to
16626 avoid a race condition reliably.
16627 * lib/savewd.c (savewd_chdir): Likewise.
16629 Remove macros that are no longer needed now that stdint.h is
16631 * lib/fsusage.c (UINTMAX_MAX): Remove.
16632 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
16633 * lib/utimecmp.c (SIZE_MAX): Remove.
16635 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
16637 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
16638 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
16641 2006-10-05 Bruno Haible <bruno@clisp.org>
16643 * lib/gl_list.h (gl_sortedlist_search_from_to,
16644 gl_sortedlist_indexof_from_to): New declarations.
16645 (gl_list_implementation): New fields sortedlist_search_from_to,
16646 sortedlist_indexof_from_to.
16647 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
16649 * lib/gl_list.c (gl_sortedlist_search_from_to,
16650 gl_sortedlist_indexof_from_to): New functions.
16651 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
16653 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
16654 (gl_array_sortedlist_search_from_to): New function.
16655 (gl_array_list_implementation): Update.
16656 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
16658 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
16659 (gl_carray_sortedlist_search_from_to): New function.
16660 (gl_carray_list_implementation): Update.
16661 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
16662 gl_linked_sortedlist_indexof_from_to): New functions.
16663 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
16664 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
16665 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
16666 gl_tree_sortedlist_indexof_from_to): New functions.
16667 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
16668 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
16670 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
16671 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
16674 2006-10-05 Bruno Haible <bruno@clisp.org>
16676 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
16677 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
16678 (struct gl_list_implementation): Add fields search_from_to,
16679 indexof_from_to. Remove fields search, indexof.
16680 (gl_list_search): Use the search_from_to method.
16681 (gl_list_search_from, gl_list_search_from_to): New functions.
16682 (gl_list_indexof): Use the indexof_from_to method.
16683 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
16684 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
16685 (gl_list_search_from, gl_list_search_from_to): New functions.
16686 (gl_list_indexof): Use the indexof_from_to method.
16687 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
16688 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
16689 gl_array_indexof. Add start_index, end_index arguments.
16690 (gl_array_search_from_to): Renamed from gl_array_search. Add
16691 start_index, end_index arguments.
16692 (gl_array_remove, gl_array_list_implementation): Update.
16693 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
16694 gl_carray_indexof. Add start_index, end_index arguments.
16695 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
16696 start_index, end_index arguments.
16697 (gl_carray_remove, gl_carray_list_implementation): Update.
16698 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
16699 gl_linked_search. Add start_index, end_index arguments.
16700 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
16701 start_index, end_index arguments.
16702 (gl_linked_remove): Update.
16703 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
16704 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
16705 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
16707 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
16708 gl_tree_search. Add start_index, end_index arguments.
16709 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
16710 start_index, end_index arguments.
16711 (gl_tree_remove): Update.
16712 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
16713 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
16714 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
16716 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
16717 gl_tree_search. Add start_index, end_index arguments.
16718 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
16719 start_index, end_index arguments.
16720 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
16722 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
16724 2006-10-05 Bruno Haible <bruno@clisp.org>
16726 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
16728 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
16729 fwriteerror_temp): New declarations.
16730 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
16731 (descriptors): New variable.
16732 (cleanup): First, close the descriptors.
16733 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
16734 fclose_temp, fwriteerror_temp): New functions.
16736 2006-10-04 Jim Meyering <jim@meyering.net>
16738 * lib/fts.c (fts_open): Tiny comment change.
16740 2006-10-04 Bruno Haible <bruno@clisp.org>
16742 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
16743 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
16745 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
16746 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
16747 gl_LOCK_EARLY_BODY.
16748 (gl_LOCK): Require gl_LOCK_BODY.
16750 2006-10-04 Bruno Haible <bruno@clisp.org>
16752 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
16753 (gl_oset_search_atleast): New declaration.
16754 (struct gl_oset_implementation): Add field 'search_atleast'.
16755 (gl_oset_search_atleast): New inline function.
16756 * lib/gl_oset.c (gl_oset_search_atleast): New function.
16757 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
16758 (gl_array_oset_implementation): Update.
16759 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
16760 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
16761 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
16763 2006-10-04 Bruno Haible <bruno@clisp.org>
16765 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
16767 2006-10-03 Bruno Haible <bruno@clisp.org>
16769 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
16770 from gl_avltreehash_list_implementation.
16772 2006-10-03 Bruno Haible <bruno@clisp.org>
16774 * lib/gl_oset.c (gl_oset_add): Fix return type.
16776 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
16778 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
16780 2006-10-02 Eric Blake <ebb9@byu.net>
16782 * modules/strnlen (Depends-on): Add extensions.
16784 2006-10-02 Eric Blake <ebb9@byu.net>
16786 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
16787 definition in 2.60+.
16789 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
16791 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
16794 2006-10-02 Bruno Haible <bruno@clisp.org>
16796 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
16797 to the AUTOMAKE_OPTIONS.
16798 Reported by Jim Meyering.
16800 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
16802 Work around bug in Solaris 10 /proc file system:
16803 /proc/self/fd/NNN/.. isn't the parent directory of
16804 the directory whose file descriptor is NNN. This needs to
16805 be worked around at run time, not compile time, since a
16806 program might be built on Solaris 8, where things work, and
16808 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
16809 to use the following interface instead:
16810 (OPENAT_BUFFER_SIZE): New macro.
16811 (openat_proc_name): New function.
16812 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
16813 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
16815 * lib/openat-proc.c: New file.
16816 * modules/openat (Files): Add lib/openat-proc.c.
16817 (Depends-on): Add same-inode, stdbool.
16818 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
16820 2006-09-29 Bruno Haible <bruno@clisp.org>
16822 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
16823 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
16824 argument. Set stdout_closed before testing for ferror, not after.
16825 (fwriteerror, fwriteerror_no_ebadf): New functions.
16827 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16829 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
16831 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
16833 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
16834 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
16836 2006-09-28 Jim Meyering <jim@meyering.net>
16838 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
16839 Include <unistd.h>.
16841 2006-09-28 Bruno Haible <bruno@clisp.org>
16843 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
16844 * modules/linkedhash-list (Depends-on): Likewise.
16845 * modules/rbtreehash-list (Depends-on): Likewise.
16847 2006-09-28 Bruno Haible <bruno@clisp.org>
16849 * lib/strndup.h: Simplify the redefinition of strndup.
16850 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
16851 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
16853 2006-09-28 Bruno Haible <bruno@clisp.org>
16855 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
16856 * lib/gl_linkedhash_list.c: Likewise.
16857 * lib/gl_rbtreehash_list.c: Likewise.
16859 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
16861 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
16864 * lib/__fpending.h: Don't include <stdio_ext.h> unless
16865 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
16866 it causes <stdio_ext.h> to cause a compile-time error.
16867 Problem reported by Nelson H. F. Beebe.
16868 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
16869 of HAVE_DECL___PENDING.
16871 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
16872 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
16875 2006-09-27 Jim Meyering <jim@meyering.net>
16877 This file could end up with a definition for a function
16878 named __strndup, rather than rpl_strndup on a system with
16879 incomplete weak_alias support.
16880 * lib/strndup.c (strndup): Rename from __strndup.
16881 Remove #defines that used to map __strndup to strndup.
16882 Don't use K&R prototypes.
16883 Remove LIBC-related code, since this file is not sync'd with glibc.
16884 * lib/strndup.h: Revamp, accordingly.
16885 * m4/strndup.m4: Modernize.
16887 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
16889 * modules/savewd (Depends-on): Add 'raise'.
16890 * lib/savewd.c: Include <signal.h>, for 'raise'.
16892 2006-09-26 Jim Meyering <jim@meyering.net>
16894 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
16895 when we detect Darwin 8.7.0's acl_get_file bug.
16896 Rearrange to perform the new (below) run-test while $LIBS
16897 contains any acl-related library. Set USE_ACL at the end.
16898 (gl_ACL_GET_FILE): New function.
16900 2006-09-26 Eric Blake <ebb9@byu.net>
16902 * lib/verror.c: Include <config.h> unconditionally.
16904 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
16906 * modules/clock-time (Maintainer): Add self.
16907 * modules/getlogin_r (Depends-on): Add extensions.
16909 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16911 * modules/clock-time: New module.
16912 * modules/nanosleep (Depends-on): Add clock-time.
16913 * modules/gethrxtime (Depends-on): Likewise.
16914 * modules/gettime (Depends-on): Likewise.
16915 * modules/settime (Depends-on): Likewise.
16917 * modules/fts-lgpl: Depend on openat.
16918 * modules/mkancesdirs: Depend on savewd.
16919 * modules/mkdir-p: Likewise.
16921 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16923 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
16925 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
16926 `gl_have_arbitrary_file_name_length_limit' to
16927 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
16928 actually works between configure runs.
16930 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16931 Bruno Haible <bruno@clisp.org>
16933 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
16935 2006-09-25 Jim Meyering <jim@meyering.net>
16937 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
16938 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
16940 2006-09-25 Eric Blake <ebb9@byu.net>
16942 * gnulib-tool (func_import, func_create_testdir): Fix typos in
16943 exec's in 2006-09-18 patch when shuffling fds.
16945 2006-09-25 Bruno Haible <bruno@clisp.org>
16947 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
16948 Reported by Jim Meyering.
16950 2006-09-24 Jim Meyering <jim@meyering.net>
16952 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
16953 compare a pointer against a literal "0". That caused failures with
16954 at least HP-UX's hpcc.
16956 2006-09-22 Simon Josefsson <jas@extundo.com>
16960 * modules/gc-hmac-sha1:
16961 * modules/gc-hmac-md5:
16963 * modules/gc-arcfour: Distribute more files.
16965 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16967 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
16968 (gl_linked_iterator_from_to): Initialize struct completely.
16969 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
16970 (gl_tree_iterator_from_to): Likewise
16971 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
16972 * lib/gl_array_list.c [lint] (gl_array_iterator)
16973 (gl_array_iterator_from_to): Likewise.
16974 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
16975 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
16976 (gl_carray_iterator_from_to): Likewise.
16978 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
16979 * lib/md4.c (md4_process_block): Remove unused variable.
16980 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
16981 parentheses for clarity.
16983 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16985 * modules/bison-i18n (Depends-on): Add gettext.
16987 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16989 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
16990 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
16991 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
16992 also add missing comma that caused broken test.
16993 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
16994 stdlib.h, for `abort'.
16995 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
16997 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
16998 include unistd.h if present, for `rmdir'.
16999 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
17001 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
17002 in the process include standard headers for prototypes.
17003 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
17004 gets declared on GNU/Linux.
17005 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
17006 unistd.h, for `rmdir'.
17007 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
17009 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
17011 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
17013 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
17015 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17017 * gnulib-tool (func_version): Create output all at once. This
17018 may help avoid triggering unnecessary SIGPIPEs, and at any
17019 rate it doesn't hurt.
17021 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17022 Bruno Haible <bruno@clisp.org>
17024 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
17025 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17026 * m4/signed.m4 (bh_C_SIGNED): Likewise.
17028 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
17029 (gl_FUNC_VASPRINTF): Invoke it.
17031 2006-09-22 Bruno Haible <bruno@clisp.org>
17033 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
17034 getloadavg.c as first argument.
17036 2006-09-22 Bruno Haible <bruno@clisp.org>
17038 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
17039 at the beginning of the gl_INIT macro.
17040 * modules/getloadavg (configure.ac): Pass $gl_source_base to
17043 2006-09-22 Bruno Haible <bruno@clisp.org>
17045 * gnulib-tool (func_create_megatestdir): Don't include the config-h
17047 Suggested by Ralf Wildenhues.
17049 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
17051 Import this patch from libc:
17053 2006-09-06 Jakub Jelinek <jakub@redhat.com>
17055 * lib/regex_internal.c (re_string_reconstruct): Handle
17056 offset < pstr->valid_raw_len && pstr->offsets_needed case.
17057 Ensure no bytes read before raw_mbs array. Pass a saved copy of
17058 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
17059 re_string_context_at.
17061 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
17063 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
17064 gl_REGEX now does it for us.
17065 (gl_REGEX): Add test taken from
17066 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
17068 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
17069 Check that large offsets work. Modernize Autoconf usages.
17070 Prefer "yes" to mean a good thing rather than a bad.
17071 Don't put "#define mkstemp" in config.h, as this might interfere
17072 with standard system headers that "#define mkstemp mkstemp64".
17074 * modules/mkstemp (Depends-on): Add extensions, so that
17075 mkstemp is visible on some platforms.
17076 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
17077 (Include): Change to "mkstemp.h" from <stdlib.h>.
17078 (Files): Add mkstemp.h.
17080 * lib/mkstemp.h: New file, since some standard headers
17082 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
17083 Include "mkstemp.h".
17084 Make the _LIBC code resemble glibc original more,
17085 e.g., use K&R style.
17086 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
17087 (mkstemp): Remove, since mkstemp.h does this for us.
17088 * lib/stdlib--.h: Include mkstemp.h.
17090 Import this patch from libc:
17092 2006-04-07 Ulrich Drepper <drepper@redhat.com>
17094 * lib/tempname.c (__gen_tempname): Change attempts_min
17095 into a macro. Use preprocessor to decide how to initialize
17096 attempts [Coverity CID 67].
17098 2006-09-20 Bruno Haible <bruno@clisp.org>
17100 * lib/mkdtemp.c: Import from libc.
17101 2006-04-07 Ulrich Drepper <drepper@redhat.com>
17102 * sysdeps/posix/tempname.c (__gen_tempname): Change
17103 attempts_min into a macro. Use preprocessor to decide how to
17104 initialize attempts [Coverity CID 67].
17105 2001-11-27 Paul Eggert <eggert@twinsun.com>
17106 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
17107 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
17109 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17111 * gnulib-tool (func_exit): New function, to allow to pass the
17112 exit status portably through the trap. Use everywhere.
17113 (--help, --version): Signal a write error.
17114 (trap): catch SIGPIPE, for write errors.
17115 Exit at the end of the trap, with the correct exit status.
17117 2006-09-19 Karl Berry <karl@gnu.org>
17119 * doc/gnulib.texi: note about the license texinfo files.
17121 2006-09-19 Eric Blake <ebb9@byu.net>
17123 * gnulib-tool: Avoid space-tab.
17125 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
17127 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
17128 that prevented coreutils 6.1 from building. Problem reported
17129 by Petter Reinholdtsen.
17131 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
17133 * gnulib-tool (avoidlist): Fix typo that broke options like
17134 --avoid=lock that are used by coreutils bootstrap.
17136 2006-09-18 Mark D. Baushke <mdb@gnu.org>
17138 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
17139 more systematically.
17141 2006-09-18 Jim Meyering <jim@meyering.net>
17143 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
17145 2006-09-18 Bruno Haible <bruno@clisp.org>
17147 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
17149 2006-09-18 Bruno Haible <bruno@clisp.org>
17151 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
17152 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
17153 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
17154 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
17155 * m4/gettext.m4: Require autoconf >= 2.52.
17156 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
17157 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
17158 of gl_cv_header_inttypes_h.
17160 2006-09-18 Bruno Haible <bruno@clisp.org>
17162 * lib/javaversion.c: Include configmake.h.
17164 2006-09-18 Bruno Haible <bruno@clisp.org>
17166 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
17167 avoid that the while loops be executed in a subshell.
17169 2006-09-18 Bruno Haible <bruno@clisp.org>
17171 * MODULES.html.sh (func_module): Break long lines.
17172 Suggested by Bruce Korb <bkorb@gnu.org>.
17174 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17176 Speed up by a factor of 1.12.
17177 * gnulib-tool (nl): New variable.
17178 (func_import): Rewrite include directive extraction to only read each
17181 2006-09-17 Bruno Haible <bruno@clisp.org>
17183 * modules/javaversion (Makefile.am): Remove DEFS setting.
17184 (Depends-on): Add configmake, for PKGDATADIR definition.
17186 2006-09-17 Bruno Haible <bruno@clisp.org>
17188 * gnulib-tool (func_create_testdir): Rewrite all files at once.
17190 2006-09-17 Bruno Haible <bruno@clisp.org>
17192 * gnulib-tool (func_append): New function, stolen from libtool.m4.
17193 (func_modules_transitive_closure, func_modules_add_dummy,
17194 func_modules_to_filelist, func_import, func_create_testdir,
17195 func_create_megatestdir, ...): Use it wherever possible.
17196 Suggested by Ralf Wildenhues.
17198 2006-09-16 Karl Berry <karl@gnu.org>
17200 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
17201 to avoid sectioning errors.
17202 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
17203 [ifinfo]: blank line after @center-ed titles.
17204 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
17205 Spell FSF address consistently with others.
17206 (These changes approved by rms.)
17208 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17210 Speed up by a factor of 1.61.
17211 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
17212 already checked module names again.
17214 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17216 Speed up by a factor of 1.13.
17217 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
17218 for new_files, and the input to func_add_or_update.
17220 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17222 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
17223 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
17225 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
17227 * modules/mkancesdirs (Depends-on): Add fcntl.
17228 * modules/savewd: New file.
17229 * MODULES.html.sh (File system functions): Add savewd.
17231 * modules/configmake (Makefile.am): Add support for the
17232 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
17234 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
17236 * m4/savewd.m4: New file.
17238 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
17240 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
17241 (dirchownmod): New arg FD. All callers changed.
17242 Use FD rather than opening the directory ourself, as opening is
17243 now the caller's responsibility.
17244 * lib/dirchownmod.h: Likewise.
17245 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
17246 hosts that require <sys/types.h> before <sys/stat.h>. Include
17247 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
17248 (test_dir): Remove.
17249 (mkancesdirs): Return length of prefix of FILE that has already
17250 been made, or -2 if there is a child doing the work. Redo
17251 algorithm so that it is O(N) rather than O(N**2). Optimize away
17252 ".", and treat ".." specially since it might stray back into
17253 already-created areas. Use a subprocess if necessary. New arg
17254 WD; all users changed. MAKE_DIR function should now return 1
17255 if it creates a directory that is not readable. Return -2 if
17256 a child process is spun off.
17257 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
17258 Adjust signature to match code.
17259 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
17260 (make_dir_parents): Use a subprocess if necessary. New arg WD;
17262 * lib/savewd.c, lib/savewd.h: New files.
17264 2006-09-15 Jim Meyering <jim@meyering.net>
17266 * modules/rename-dest-slash: New module.
17267 * MODULES.html.sh (posix_compat): Add it here.
17269 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
17271 2006-09-15 Jim Meyering <jim@meyering.net>
17273 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
17276 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
17278 2006-09-15 Jim Meyering <jim@meyering.net>
17280 * lib/rename-dest-slash.c (has_trailing_slash): Use
17281 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
17282 (rpl_rename_dest_slash): Perform the cheaper trailing slash
17283 test before testing whether SRC is a directory.
17284 Suggestions from Bruno Haible.
17286 Avoid a warning about an unused variable.
17287 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
17288 into the #ifdef block where it's used.
17290 * lib/rename-dest-slash.c: New file.
17292 2006-09-14 Bruno Haible <bruno@clisp.org>
17294 * lib/allocsa.c: Include <config.h> unconditionally.
17295 * lib/asnprintf.c: Likewise.
17296 * lib/asprintf.c: Likewise.
17297 * lib/c-strcasecmp.c: Likewise.
17298 * lib/c-strcasestr.c: Likewise.
17299 * lib/c-strncasecmp.c: Likewise.
17300 * lib/c-strstr.c: Likewise.
17301 * lib/classpath.c: Likewise.
17302 * lib/clean-temp.c: Likewise.
17303 * lib/concatpath.c: Likewise.
17304 * lib/copy-file.c: Likewise.
17305 * lib/csharpcomp.c: Likewise.
17306 * lib/csharpexec.c: Likewise.
17307 * lib/execute.c: Likewise.
17308 * lib/fatal-signal.c: Likewise.
17309 * lib/findprog.c: Likewise.
17310 * lib/fwriteerror.c: Likewise.
17311 * lib/gl_array_list.c: Likewise.
17312 * lib/gl_array_oset.c: Likewise.
17313 * lib/gl_avltree_list.c: Likewise.
17314 * lib/gl_avltree_oset.c: Likewise.
17315 * lib/gl_avltreehash_list.c: Likewise.
17316 * lib/gl_carray_list.c: Likewise.
17317 * lib/gl_linked_list.c: Likewise.
17318 * lib/gl_linkedhash_list.c: Likewise.
17319 * lib/gl_list.c: Likewise.
17320 * lib/gl_oset.c: Likewise.
17321 * lib/gl_rbtree_list.c: Likewise.
17322 * lib/gl_rbtree_oset.c: Likewise.
17323 * lib/gl_rbtreehash_list.c: Likewise.
17324 * lib/imaxabs.c: Likewise.
17325 * lib/imaxdiv.c: Likewise.
17326 * lib/javacomp.c: Likewise.
17327 * lib/javaexec.c: Likewise.
17328 * lib/javaversion.c: Likewise.
17329 * lib/linebreak.c: Likewise.
17330 * lib/localcharset.c: Likewise.
17331 * lib/lock.c: Likewise.
17332 * lib/mbchar.c: Likewise.
17333 * lib/mbswidth.c: Likewise.
17334 * lib/mkdtemp.c: Likewise.
17335 * lib/pipe.c: Likewise.
17336 * lib/printf-args.c: Likewise.
17337 * lib/printf-parse.c: Likewise.
17338 * lib/progname.c: Likewise.
17339 * lib/progreloc.c: Likewise.
17340 * lib/readlink.c: Likewise.
17341 * lib/sh-quote.c: Likewise.
17342 * lib/stpcpy.c: Likewise.
17343 * lib/stpncpy.c: Likewise.
17344 * lib/strcasecmp.c: Likewise.
17345 * lib/strcasestr.c: Likewise.
17346 * lib/strcspn.c: Likewise.
17347 * lib/striconv.c: Likewise.
17348 * lib/strncasecmp.c: Likewise.
17349 * lib/strnlen1.c: Likewise.
17350 * lib/strstr.c: Likewise.
17351 * lib/strtok_r.c: Likewise.
17352 * lib/tls.c: Likewise.
17353 * lib/tmpdir.c: Likewise.
17354 * lib/unicodeio.c: Likewise.
17355 * lib/unsetenv.c: Likewise.
17356 * lib/vasnprintf.c: Likewise.
17357 * lib/vasprintf.c: Likewise.
17358 * lib/wait-process.c: Likewise.
17359 * lib/xallocsa.c: Likewise.
17360 * lib/xsetenv.c: Likewise.
17361 * lib/xstriconv.c: Likewise.
17363 2006-09-13 Simon Josefsson <jas@extundo.com>
17365 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
17366 that internally, suggested by Ralf Wildenhues
17367 <Ralf.Wildenhues@gmx.de>.
17369 2006-09-13 Simon Josefsson <jas@extundo.com>
17371 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
17373 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17375 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
17377 * lib/_fpending.c: Include <config.h> unconditionally, since we no
17378 longer worry about uses that don't define HAVE_CONFIG_H.
17379 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
17380 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
17381 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
17382 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
17383 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
17384 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
17385 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
17386 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
17387 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
17388 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
17389 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
17390 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
17391 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
17392 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
17393 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
17394 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
17395 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
17396 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
17397 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
17398 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
17399 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
17400 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
17401 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
17402 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
17403 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
17404 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
17405 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
17406 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
17407 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
17408 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
17409 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
17410 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
17411 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
17412 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
17413 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
17414 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
17415 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
17416 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
17417 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
17418 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
17419 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
17422 2006-09-13 Eric Blake <ebb9@byu.net>
17424 * lib/getopt.c: Fix typo in last commit.
17426 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
17428 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
17431 2006-09-12 Jim Meyering <jim@meyering.net>
17433 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
17434 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
17435 Reported by Nelson H. F. Beebe.
17437 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
17439 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
17440 program_invocation_name and program_invocation_short_name are
17442 * lib/argp-namefrob.h: Move declarations of program_invocation_name
17443 and program_invocation_short_name to argp.h, so they are visible
17445 * lib/argp.h: Likewise
17447 2006-09-10 Bruno Haible <bruno@clisp.org>
17449 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
17450 m4/inttypes_h.m4, m4/uintmax_t.m4.
17452 2006-09-10 Bruno Haible <bruno@clisp.org>
17454 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
17455 gl_AC_TYPE_UINTMAX_T.
17457 2006-09-10 Bruno Haible <bruno@clisp.org>
17459 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
17461 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
17463 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
17464 convention. Text proposed by Bruno Haible.
17465 (struct argp_option): Document the use of N_() wrappers.
17467 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
17468 '\v', and translate the two parts separately, instead of feeding
17469 the whole string to gettext. This allows to exclude
17470 '\v' from the strings visible to the translator by writing doc
17471 strings as N_("..") "\v" N_("..").
17473 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
17475 * config/srclist.txt: Undo latest change; the bug was fixed.
17477 2006-09-09 Bruno Haible <bruno@clisp.org>
17479 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
17480 assignments if building a library without libtool.
17481 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
17482 in func_emit_lib_Makefile_am.
17483 (func_import): When building a static library libfoo.a, arrange to
17484 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
17485 (func_create_testdir): Likewise.
17486 * modules/gc (configure.ac, Makefile.am): If building statically,
17487 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
17488 * modules/iconvme (configure.ac, Makefile.am): Likewise.
17489 * modules/striconv (configure.ac, Makefile.am): Likewise.
17490 Based on a suggestion by Ralf Wildenhues.
17492 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
17494 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
17495 Check for unistd.h too, since Autoconf doesn't assume POSIX.
17498 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
17499 Add year_2050_test to catch glibc bug 2821
17500 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
17502 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
17503 Prefer #ifdef to #if.
17505 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
17506 Return from 'main' instead of calling 'exit'.
17508 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
17510 * lib/mktime.c (guess_time_tm): Fix bug where mktime
17511 returned the maximum time_t value rather than (time_t) -1.
17512 Problem originally reported by William Bardwell
17513 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
17515 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
17517 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
17520 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
17522 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
17525 2006-09-08 Jim Meyering <jim@meyering.net>
17527 Don't make generated files read-only. That would bother too many
17528 people. However, do retain the ability to work when targets are
17529 read-only: remove the destination and temporary files before writing
17530 them (when generated via sed or echo), or by using the -f option for
17531 both cp and mv commands. Suggestion to use -f from Paul Eggert.
17532 * modules/alloca-opt, modules/argz, modules/arpa_inet:
17533 * modules/byteswap, modules/configmake, modules/fcntl:
17534 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
17535 * modules/localcharset, modules/netinet_in, modules/poll:
17536 * modules/stdbool, modules/stdint, modules/sys_select:
17537 * modules/sys_socket, modules/sys_stat, modules/sysexits:
17539 2006-09-08 Jim Meyering <jim@meyering.net>
17541 Avoid new build failure on FreeBSD 6.0.
17542 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
17543 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
17544 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
17546 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17548 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
17550 2006-09-07 Jim Meyering <jim@meyering.net>
17552 Fix global typo in last change: use chmod u-w, not chmod u-x.
17553 Spotted by Paul Eggert and Bruce Korb.
17554 * modules/alloca-opt, modules/argz, modules/arpa_inet:
17555 * modules/byteswap, modules/configmake, modules/fcntl:
17556 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
17557 * modules/localcharset, modules/netinet_in, modules/poll:
17558 * modules/stdbool, modules/stdint, modules/sys_select:
17559 * modules/sys_socket, modules/sys_stat, modules/sysexits:
17561 2006-09-06 Jim Meyering <jim@meyering.net>
17563 Make generated files be read-only.
17564 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
17565 Ensure that each generated file is now read-only.
17566 * modules/argz: Likewise.
17567 * modules/arpa_inet: Likewise.
17568 * modules/byteswap: Likewise.
17569 * modules/configmake: Likewise.
17570 * modules/fcntl: Likewise.
17571 * modules/fnmatch: Likewise.
17572 * modules/getopt: Likewise.
17573 * modules/glob: Likewise.
17574 * modules/inttypes: Likewise.
17575 * modules/netinet_in: Likewise.
17576 * modules/poll: Likewise.
17577 * modules/stdbool: Likewise.
17578 * modules/stdint: Likewise.
17579 * modules/sys_select: Likewise.
17580 * modules/sys_socket: Likewise.
17581 * modules/sys_stat: Likewise.
17582 * modules/sysexits: Likewise.
17583 * modules/localcharset: Same as above, but continue using temporary
17584 file named "t-$@" (why different?) rather than the "$@-t" used
17587 * modules/sysexits (Makefile.am): Replace literal occurrences
17588 of "sysexit.h" more readable, and more consistent, "$@".
17590 2006-09-06 Bruno Haible <bruno@clisp.org>
17592 * modules/striconv: New file.
17593 * modules/xstriconv: New file.
17594 * MODULES.html.sh (Internationalization functions): Add striconv,
17597 2006-09-06 Bruno Haible <bruno@clisp.org>
17599 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
17600 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
17601 not using libtool correctly.
17603 2006-09-06 Bruno Haible <bruno@clisp.org>
17605 * lib/striconv.h: New file.
17606 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
17608 * lib/xstriconv.h: New file.
17609 * lib/xstriconv.c: New file.
17611 2006-09-06 Bruno Haible <bruno@clisp.org>
17613 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
17616 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17618 * lib/argz_.h: Sync from Libtool.
17620 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
17621 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17623 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
17625 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
17627 * modules/trim: New file.
17629 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
17631 * lib/trim.h: New file.
17632 * lib/trim.c: New file.
17634 2006-09-05 Bruno Haible <bruno@clisp.org>
17636 * MODULES.html.sh (String handling): Add trim.
17638 2006-09-04 Karl Berry <karl@gnu.org>
17640 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
17641 until next release.
17643 2006-09-03 Bruno Haible <bruno@clisp.org>
17645 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
17648 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
17650 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
17651 not gl_GETLOADAVG. Omit unneeded semicolons.
17652 Problems reported by Ralf Wildenhues in
17653 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
17654 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
17655 at the end, which is the usual gnulib style.
17657 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
17658 of doing all the work ourselves.
17659 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
17660 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
17662 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
17664 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
17665 Problem reported by Ralf Wildenhues in
17666 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
17668 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
17669 HAVE_STRUCT_STATFS_F_FSTYPENAME.
17671 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
17673 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
17674 yesterday's patch by changing test -n to test -z.
17676 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
17678 * modules/getloadavg (Files): Add m4/getloadavg.m4.
17679 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
17680 the former is now obsolescent.
17682 * modules/chdir-long (Depends-on): Add fcntl.
17684 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
17686 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
17687 obsolescent, and programs should use gnulib instead.
17688 * m4/getloadavg.m4: New file, with contents taken from Autoconf
17689 but with prefixes changed.
17691 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
17693 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
17694 or stdbool.h, because they might not exist while configuring.
17696 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
17697 Don't include unistd.h or limits.h; not needed, since chdir-long.h
17699 (O_DIRECTORY): Remove.
17701 2006-08-31 Eric Blake <ebb9@byu.net>
17703 * gnulib-tool: Don't let emacs change spaces to TAB.
17705 2006-08-31 Bruno Haible <bruno@clisp.org>
17707 * gnulib-tool: When calling func_import more than once, do it in a
17709 Reported by Eric Blake <ebb9@byu.net>.
17711 2006-08-31 Bruno Haible <bruno@clisp.org>
17713 * gnulib-tool (nl): Remove variable.
17714 (sed_transform_lib_file): Use more robust test for config-h module.
17715 (func_import): Fix typo in 2006-08-25 patch.
17717 2006-08-31 Bruno Haible <bruno@clisp.org>
17719 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
17720 specified, augment Makefile.am variables instead of assigning them.
17722 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
17724 Work around a bug in both the Linux and SunOS 64-bit kernels:
17725 nanosleep mishandles sleeps for longer than 2**31 seconds.
17726 Problem reported by Frank v Waveren in
17727 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
17728 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
17729 Check for nanosleep bug.
17730 (LIB_NANOSLEEP): Append clock_gettime library if needed.
17732 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
17734 Work around a bug in both the Linux and SunOS 64-bit kernels:
17735 nanosleep mishandles sleeps for longer than 2**31 seconds.
17736 Problem reported by Frank v Waveren in
17737 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
17738 * lib/nanosleep.c (BILLION): New constant.
17739 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
17740 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
17743 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
17745 * modules/nanosleep (Depends-on): Add gettime.
17747 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
17748 and Simon Josefsson <jas@extundo.com>
17749 and Oskar Liljeblad <oskar@osk.mine.nu>
17751 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
17752 * gnulib-tool (func_import): New license type 'unmodifiable license
17754 * modules/fdl: Use it. Longer description.
17755 * module/gpl, module/lgpl: New files.
17757 2006-08-30 Jim Meyering <jim@meyering.net>
17759 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
17760 shadowing the parameter.
17762 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17766 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17768 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
17769 sharing with gnulib. Report by Eric Blake.
17771 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
17773 * modules/isapipe: New file.
17774 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
17776 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
17778 * modules/configmake (Makefile.am): Add a comment, and omit
17779 the CONFIGMAKE_ prefix from generated macro names. Suggested
17782 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
17784 * m4/isapipe.m4: New file.
17786 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
17788 * lib/isapipe.c, lib/isapipe.h: New files.
17790 2006-08-29 Jim Meyering <jim@meyering.net>
17792 * modules/configmake (Makefile.am): Make configmake.h depend on
17793 Makefile. Otherwise, a stale configmake.h could hang around.
17795 2006-08-29 Eric Blake <ebb9@byu.net>
17797 * lib/error.c (error_at_line, print_errno_message): Match libc, after
17798 resolution of upstream bug 3044.
17800 2006-08-29 Bruno Haible <bruno@clisp.org>
17802 * modules/localcharset (Depends-on): Add configmake.
17803 (Makefile.am): Remove setting of LIBDIR through DEFS.
17805 2006-08-29 Bruno Haible <bruno@clisp.org>
17807 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
17810 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
17812 * modules/fcntl: New file.
17813 * modules/chdir-safer (Depends-on): Add fcntl.
17814 * modules/fts: Likewise.
17815 * modules/mkdir-p: Likewise.
17817 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
17818 This undoes the most recent change, since we're now addressing the
17819 problem in a different way.
17821 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
17822 into output, since the output might be called Makefile.am even
17823 if $makefile_name is something different.
17824 (func_import): Use $makefile_am rather than
17825 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
17828 * modules/inttypes (Files): Add m4/inttypes-h.m4.
17830 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
17832 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
17833 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
17834 recent change to stdint.m4, since we're now addressing the problem in a
17837 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
17839 * m4/fcntl_h.m4: New file.
17841 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
17843 * lib/fcntl_.h: New file.
17844 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
17846 * lib/dirchownmod.c: Likewise.
17847 * lib/fts.c: Likewise.
17849 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
17850 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
17851 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
17852 just before including <inttypes.h>, to avoid circular inclusion.
17854 2006-08-28 Jim Meyering <jim@meyering.net>
17856 * doc/visibility.texi: Actually read and correct the grammar of the
17857 sentence affected by yesterday's change.
17859 2006-08-28 Eric Blake <ebb9@byu.net>
17861 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
17864 2006-08-28 Eric Blake <ebb9@byu.net>
17866 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
17868 2006-08-28 Eric Blake <ebb9@byu.net>
17870 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
17872 2006-08-28 Bruno Haible <bruno@clisp.org>
17874 * modules/c-strstr: New file, from GNU gettext.
17875 * MODULES.html.sh (String handling): Add c-strstr.
17877 2006-08-28 Bruno Haible <bruno@clisp.org>
17879 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
17881 Reported by Eric Blake.
17883 2006-08-28 Bruno Haible <bruno@clisp.org>
17885 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
17886 (VASNPRINTF): Return a string of length > INT_MAX without failing.
17887 * lib/vasprintf.c: Include errno.h, limits.h.
17888 (EOVERFLOW): New fallback definition.
17889 (vasprintf): Test here whether the string length is > INT_MAX.
17890 * lib/vsnprintf.c: Include errno.h, limits.h.
17891 (EOVERFLOW): New fallback definition.
17892 (vsnprintf): Fix bug when generated string was too long for the buffer.
17893 Test here whether the string length is > INT_MAX.
17895 2006-08-28 Bruno Haible <bruno@clisp.org>
17897 * lib/inttypes_.h (SCNX*): Remove definitions.
17898 Reported by Eric Blake.
17900 2006-08-28 Bruno Haible <bruno@clisp.org>
17902 * lib/c-strstr.h: New file, from GNU gettext.
17903 * lib/c-strstr.c: New file, from GNU gettext.
17905 2006-08-28 Bruno Haible <bruno@clisp.org>
17907 * gnulib-tool: Reorder some statements.
17909 2006-08-28 Bruno Haible <bruno@clisp.org>
17911 * gnulib-tool: New option --makefile-name.
17912 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
17914 (func_import): Write $makefile_name to the cache file, and read it from
17915 there unless explicitly specified. Use $makefile_name as file name
17916 instead of Makefile.am. Adjust the recommendations accordingly.
17918 2006-08-28 Bruno Haible <bruno@clisp.org>
17920 * gnulib-tool (func_verify_module): Check against misapplying patch.
17922 2006-08-28 Bruno Haible <bruno@clisp.org>
17924 * gnulib-tool (func_relativize, func_relconcat): New functions.
17925 Give an error if --local-dir is given with --update.
17926 Remove trailing slashes from $local_gnulib_dir.
17927 (func_import): Store the relativized $local_gnulib_dir in
17928 gnulib-cache.m4, and read it from there if not specified explicitly.
17930 2006-08-28 Bruno Haible <bruno@clisp.org>
17932 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
17933 is the current directory. Respect also $local_gnulib_dir.
17935 2006-08-28 Bruno Haible <bruno@clisp.org>
17936 Simon Josefsson <jas@extundo.com>
17939 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
17941 2006-08-27 Jim Meyering <jim@meyering.net>
17943 * doc/visibility.texi: Remove duplicate word: "pointer".
17945 2006-08-26 Bruno Haible <bruno@clisp.org>
17947 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
17948 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
17949 (Makefile.am): Create inttypes.h from inttypes_.h.
17950 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
17952 * modules/imaxabs: New file.
17954 * modules/imaxdiv: New file.
17956 2006-08-26 Bruno Haible <bruno@clisp.org>
17958 * m4/inttypes.m4: New file.
17959 * m4/_inttypes_h.m4: Remove file.
17960 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
17962 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
17964 * m4/imaxabs.m4: New file.
17966 * m4/imaxdiv.m4: New file.
17968 2006-08-26 Bruno Haible <bruno@clisp.org>
17970 * lib/inttypes_.h: New file.
17971 * lib/inttypes.h: Remove file.
17972 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
17974 * lib/imaxabs.c: New file.
17976 * lib/imaxdiv.c: New file.
17978 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
17980 New config-h module, so that "make" output needn't be cluttered
17981 by -DHAVE_CONFIG_H.
17982 * MODULES.html.sh (Support for building libraries and executables):
17984 * modules/config-h: New file.
17985 * gnulib-tool (nl, sed_transform_lib_file): New vars.
17986 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
17987 the config-h module is used.
17989 New configmake module, so that "make" output needn't be cluttered
17990 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
17991 * MODULES.html.sh (Support for building libraries and executables):
17993 * modules/configmake: New file.
17995 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
17997 * m4/config-h.m4: New file.
17999 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
18001 * config/srclist.txt: Add elisp-comp.
18003 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
18005 * MODULES.html.sh (Support for building libraries and executables):
18007 * build-aux/elisp-comp: New file.
18008 * modules/elisp-comp: New file.
18010 2006-08-24 Bruno Haible <bruno@clisp.org>
18012 * gnulib-tool (func_create_testdir): Use non-default values of
18013 sourcebase and m4base.
18015 2006-08-24 Bruno Haible <bruno@clisp.org>
18017 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
18020 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
18022 * modules/openat (Depends-on): Add lchown.
18024 2006-08-23 Bruno Haible <bruno@clisp.org>
18026 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
18027 of gl_LOCK_EARLY instead of gl_LOCK.
18029 2006-08-23 Bruno Haible <bruno@clisp.org>
18031 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
18033 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
18035 2006-08-23 Bruno Haible <bruno@clisp.org>
18037 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
18040 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
18041 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
18042 (gl_LOCK): New macro.
18044 2006-08-22 Simon Josefsson <jas@extundo.com>
18046 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
18049 2006-08-22 Simon Josefsson <jas@extundo.com>
18051 * MODULES.html.sh: Add "Support for maintaining and release
18054 * build-aux/gnupload: New file, from coreutils.
18056 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
18058 Avoid the need for AC_LIBSOURCES in m4 macros.
18059 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
18060 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
18061 * modules/check-version (EXTRA_DIST): Add check-version.h.
18062 * modules/crc (EXTRA_DIST): Add crc.h.
18063 * modules/des (EXTRA_DIST): Add des.h.
18064 * modules/gc (EXTRA_DIST): Add gc.h.
18065 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
18066 * modules/getline (EXTRA_DIST): Add getline.h.
18067 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
18068 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
18069 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
18070 * modules/md2 (EXTRA_DIST): Add md2.h.
18071 * modules/md4 (EXTRA_DIST): Add md4.h.
18072 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
18073 * modules/read-file (EXTRA_DIST): Add read-file.h.
18074 * modules/readline (EXTRA_DIST): Add readline.h.
18075 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
18076 rijndael-api-fst.h.
18078 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
18080 * m4/rijndael.m4 (gl_ARCFOUR):
18081 * m4/arctwo.m4 (gl_ARCTWO):
18082 * m4/check-version.m4 (gl_CHECK_VERSION):
18083 * m4/crc.m4 (gl_CRC):
18084 * m4/des.m4 (gl_DES):
18085 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
18086 * m4/gc.m4 (gl_GC):
18087 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
18088 * m4/getline.m4 (gl_FUNC_GETLINE):
18089 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
18090 * m4/hmac-md5.m4 (gl_HMAC_MD5):
18091 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
18092 * m4/md2.m4 (gl_MD2):
18093 * m4/md4.m4 (gl_MD4):
18094 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
18095 * m4/read-file.m4 (gl_FUNC_READ_FILE):
18096 * m4/readline.m4 (gl_FUNC_READLINE):
18097 * m4/rijndael.m4 (gl_RIJNDAEL):
18098 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
18099 to get the necessary .h files and whatnot.
18101 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
18103 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
18104 gnulib rather than the other way around.
18105 * config/srclistvars.sh (COREUTILS): Remove.
18107 2006-08-22 Jim Meyering <jim@meyering.net>
18109 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
18111 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
18113 2006-08-22 Eric Blake <ebb9@byu.net>
18115 * modules/regexprops-generic: New file.
18116 * MODULES.html.sh (Support for building documentation): List it.
18118 2006-08-22 Eric Blake <ebb9@byu.net>
18120 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
18121 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18122 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
18123 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18125 2006-08-22 Bruno Haible <bruno@clisp.org>
18127 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
18128 and lib_LTLIBRARIES like the other lib_* variables.
18130 2006-08-22 Bruno Haible <bruno@clisp.org>
18132 * build-aux/x-to-1.in: New file, from GNU gettext.
18134 2006-08-22 Bruno Haible <bruno@clisp.org>
18136 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
18139 2006-08-22 Bruno Haible <bruno@clisp.org>
18141 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
18144 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
18147 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
18149 Problem reported by Bruno Haible.
18151 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
18153 Avoid the need for AC_LIBSOURCES in m4 macros.
18154 * modules/acl (EXTRA_DIST): Add acl.h.
18155 * modules/argmatch (Files): Add m4/argmatch.m4.
18156 (configure.ac): Add gl_ARGMATCH.
18157 (EXTRA_DIST): Renamed from lib_SOURCES, for
18158 consistency with the other modules. Remove argmatch.c.
18159 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
18160 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
18161 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
18162 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
18163 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
18164 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
18165 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
18166 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
18167 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
18168 * modules/closeout (EXTRA_DIST): Add closeout.h.
18169 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
18170 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
18171 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
18172 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
18173 dirname.h; remove basename.c and stripslash.c.
18174 * modules/exclude (EXTRA_DIST): Add exclude.h.
18175 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
18176 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
18177 * modules/file-type (EXTRA_DIST): Add file-type.h.
18178 * modules/filemode (EXTRA_DIST): Add filemode.h.
18179 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
18180 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
18181 * modules/fpending (EXTRA_DIST): Add __fpending.h.
18182 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
18183 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
18184 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
18185 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
18186 * modules/getdate (EXTRA_DIST): Add getdate.c.
18187 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
18188 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
18189 * modules/getpass (EXTRA_DIST): Add getpass.h.
18190 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
18191 * modules/group-member (EXTRA_DIST): Add group-member.h.
18192 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
18193 * modules/hash (EXTRA_DIST): Add hash.h.
18194 * modules/human (EXTRA_DIST): Add human.h.
18195 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
18196 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
18197 * modules/lchown (EXTRA_DIST): Add lchown.h.
18198 * modules/long-options (EXTRA_DIST): Add long-options.h.
18199 * modules/lstat (EXTRA_DIST): Add lstat.h.
18200 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
18201 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
18202 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
18203 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
18204 * modules/memxor (EXTRA_DIST): Add memxor.h.
18205 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
18206 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
18207 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
18208 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
18209 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
18210 * modules/physmem (EXTRA_DIST): Add physmem.h.
18211 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
18212 * modules/posixver (EXTRA_DIST): Add posixver.h.
18213 * modules/quote (EXTRA_DIST): Add quote.h.
18214 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
18215 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
18216 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
18217 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
18218 regex_internal.h regexec.c.
18219 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
18220 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
18221 * modules/same (EXTRA_DIST): Add same.h.
18222 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
18223 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
18224 * modules/savedir (EXTRA_DIST): Add savedir.h.
18225 * modules/sha1 (EXTRA_DIST): Add sha1.h.
18226 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
18227 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
18228 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
18229 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
18230 * modules/strdup (EXTRA_DIST): Add strdup.h.
18231 * modules/strftime (EXTRA_DIST): Add strftime.h.
18232 * modules/strndup (EXTRA_DIST): Add strndup.h.
18233 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
18234 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
18235 * modules/time_r (EXTRA_DIST): Add time_r.h.
18236 * modules/timespec (EXTRA_DIST): Add timespec.h.
18237 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
18238 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
18239 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
18240 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
18241 * modules/userspec (EXTRA_DIST): Add userspec.h.
18242 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
18243 * modules/utimens (EXTRA_DIST): Add utimens.h.
18244 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
18245 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
18246 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
18247 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
18248 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
18249 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
18250 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
18251 * modules/yesno (EXTRA_DIST): Add yesno.h.
18253 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
18255 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
18257 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
18258 * m4/dev-ino.m4, same-inode.m4: Remove.
18260 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
18261 * m4/acl.m4 (AC_FUNC_ACL):
18262 * m4/backupfile.m4 (gl_BACKUPFILE):
18263 * m4/c-strtod.m4 (gl_C99_STRTOLD):
18264 * m4/canon-host.m4 (gl_CANON_HOST):
18265 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
18266 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
18267 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
18268 * m4/cloexec.m4 (gl_CLOEXEC):
18269 * m4/close-stream.m4 (gl_CLOSE_STREAM):
18270 * m4/closeout.m4 (gl_CLOSEOUT):
18271 * m4/dirfd.m4 (gl_FUNC_DIRFD):
18272 * m4/dirname.m4 (gl_DIRNAME):
18273 * m4/exclude.m4 (gl_EXCLUDE):
18274 * m4/exitfail.m4 (gl_EXITFAIL):
18275 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
18276 * m4/file-type.m4 (gl_FILE_TYPE):
18277 * m4/filemode.m4 (gl_FILEMODE):
18278 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
18279 * m4/fpending.m4 (gl_FUNC_FPENDING):
18280 * m4/fprintftime.m4 (gl_FPRINTFTIME):
18281 * m4/fts.m4 (gl_FUNC_FTS):
18282 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
18283 * m4/getdate.m4 (gl_GETDATE):
18284 * m4/gethrxtime.m4 (gl_GETHRXTIME):
18285 * m4/getpagesize.m4 (gl_GETPAGESIZE):
18286 * m4/getpass.m4 (gl_FUNC_GETPASS):
18287 * m4/gettime.m4 (gl_GETTIME):
18288 * m4/getugroups.m4 (gl_GETUGROUPS):
18289 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
18290 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
18291 * m4/hard-locale.m4 (gl_HARD_LOCALE):
18292 * m4/hash.m4 (gl_HASH):
18293 * m4/idcache.m4 (gl_IDCACHE):
18294 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
18295 * m4/lchown.m4 (gl_FUNC_LCHOWN):
18296 * m4/long-options.m4 (gl_LONG_OPTIONS):
18297 * m4/lstat.m4 (gl_FUNC_LSTAT):
18298 * m4/md5.m4 (gl_MD5):
18299 * m4/memcasecmp.m4 (gl_MEMCASECMP):
18300 * m4/memcoll.m4 (gl_MEMCOLL):
18301 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
18302 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
18303 * m4/memxor.m4 (gl_MEMXOR):
18304 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
18305 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
18306 * m4/modechange.m4 (gl_MODECHANGE):
18307 * m4/mountlist.m4 (gl_MOUNTLIST):
18308 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18309 * m4/openat.m4 (gl_FUNC_OPENAT):
18310 * m4/pathmax.m4 (gl_PATHMAX):
18311 * m4/physmem.m4 (gl_PHYSMEM):
18312 * m4/posixtm.m4 (gl_POSIXTM):
18313 * m4/posixver.m4 (gl_POSIXVER):
18314 * m4/quote.m4 (gl_QUOTE):
18315 * m4/quotearg.m4 (gl_QUOTEARG):
18316 * m4/readtokens.m4 (gl_READTOKENS):
18317 * m4/readutmp.m4 (gl_READUTMP):
18318 * m4/regex.m4 (gl_REGEX):
18319 * m4/safe-read.m4 (gl_SAFE_READ):
18320 * m4/safe-write.m4 (gl_SAFE_WRITE):
18321 * m4/same.m4 (gl_SAME):
18322 * m4/save-cwd.m4 (gl_SAVE_CWD):
18323 * m4/savedir.m4 (gl_SAVEDIR):
18324 * m4/settime.m4 (gl_SETTIME):
18325 * m4/sha1.m4 (gl_SHA1):
18326 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
18327 * m4/stat-macros.m4 (gl_STAT_MACROS):
18328 * m4/stat-time.m4 (gl_STAT_TIME):
18329 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
18330 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
18331 * m4/strdup.m4 (gl_FUNC_STRDUP):
18332 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
18333 * m4/strndup.m4 (gl_FUNC_STRNDUP):
18334 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
18335 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
18336 * m4/time_r.m4 (gl_TIME_R):
18337 * m4/timespec.m4 (gl_TIMESPEC):
18338 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
18339 * m4/unlinkdir.m4 (gl_UNLINKDIR):
18340 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
18341 * m4/userspec.m4 (gl_USERSPEC):
18342 * m4/utimecmp.m4 (gl_UTIMECMP):
18343 * m4/utimens.m4 (gl_UTIMENS):
18344 * m4/xalloc.m4 (gl_XALLOC):
18345 * m4/xgetcwd.m4 (gl_XGETCWD):
18346 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
18347 * m4/xreadlink.m4 (gl_XREADLINK):
18348 * m4/xstrtod.m4 (gl_XSTRTOD):
18349 * m4/yesno.m4 (gl_YESNO):
18350 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
18351 to get the necessary .h files and whatnot.
18353 2006-08-21 Mark D. Baushke <mdb@gnu.org>
18354 Bruno Haible <bruno@clisp.org>
18356 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
18357 /bin/sh understanding of '!' conditional negation.
18359 2006-08-21 Jim Meyering <jim@meyering.net>
18361 * modules/openat (Depends-on): Really alphabetize.
18363 * modules/acl (Depends-on): Add error and quote.
18365 * check-module (find_included_lib_files): Add at-func.c to the
18366 ok-to-include-more-than-once white list.
18368 * modules/openat (Depends-on): Add lstat. Alphabetize.
18370 2006-08-21 Bruno Haible <bruno@clisp.org>
18372 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18373 Emit a pkgdata_DATA variable only if some snippets add contents to it.
18374 Reported by Martin Lambers <marlam@marlam.de>.
18376 2006-08-21 Bruno Haible <bruno@clisp.org>
18378 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
18379 specify an installation location, don't emit a noinst_LIBRARIES or
18380 noinst_LTLIBRARIES assignment.
18382 2006-08-21 Bruno Haible <bruno@clisp.org>
18385 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
18386 BeOS has mbrtowc() but no <wctype.h>.
18388 2006-08-21 Bruno Haible <bruno@clisp.org>
18391 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
18394 2006-08-21 Bruno Haible <bruno@clisp.org>
18397 * lib/mbchar.h: Include <wctype.h> only if it exists.
18399 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
18401 Remove files that are no longer needed by their respective modules.
18402 * m4/obstack.m4: Remove.
18403 * m4/strerror_r.m4: Remove.
18404 * m4/uint32_t.m4: Remove.
18405 * m4/uintptr_t.m4: Remove.
18406 * m4/ullong_max.m4: Remove.
18407 * m4/xstrtoimax.m4: Remove.
18408 * m4/xstrtoumax.m4: Remove.
18410 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
18411 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
18412 dependencies now capture this.
18414 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
18415 Do not use AC_LIBSOURCES, since gnulib modules now do this.
18416 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
18417 * m4/human.m4 (gl_HUMAN): Likewise.
18418 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
18419 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
18421 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
18423 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
18424 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
18426 * m4/human.m4 (gl_HUMAN): Likewise.
18427 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
18428 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
18429 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
18430 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
18431 * m4/xstrtol (gl_XSTRTOL): Likewise.
18433 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
18434 AC_TYPE_LONG_LONG_INT.
18435 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
18436 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
18437 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
18438 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
18440 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
18443 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
18444 (gl_PREREQ_XSTRTOUL): Remove.
18446 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
18448 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
18451 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
18453 Add and change modules to make it easier for coreutils to use
18455 * modules/backupfile (Files): Remove m4/d-ino.m4.
18456 (Depends-on): Add d-ino.
18457 * modules/cycle-check (Depends-on): Add stdint.
18458 (lib_SOURCES): Add cycle-check.h.
18459 * modules/d-ino: New module.
18460 * modules/d-type: New module.
18461 * modules/error (Files): Remove m4/strerror_r.m4.
18462 * modules/filemode (Files): Add m4/st_dm_mode.m4.
18463 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
18464 m4/inttypes_h.m4, m4/uintmax_t.m4.
18465 (Depends-on): Add stdint.
18466 (lib_SOURCES): Add fsusage.h.
18467 * modules/getcwd (Files): Remove d-ino.m4.
18468 (Depends-on): Add d-ino.
18469 * modules/getndelim2 (Depends-on): Add stdint.
18470 * modules/glob (Files): Remove m4/d-type.m4.
18471 (Depends-on): Add d-type.
18472 * modules/host-os: New module.
18473 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
18474 m4/inttypes_h.m4, m4/uintmax_t.m4.
18475 * Depends-on: Add stdint.
18476 (lib_SOURCES): Add human.h.
18477 * modules/inttostr (Files): Remove m4/intmax_t.m4,
18478 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
18479 m4/uintmax_t.m4, m4/ulonglong.m4.
18480 (Depends-on): Add stdint.
18481 (EXTRA_DIST): Add inttostr.h.
18482 * modules/lchmod: New module.
18483 * modules/link-follow: New module.
18484 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
18485 (Depends-on): Add lchmod.
18486 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
18487 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
18488 (Depends-on): Add stdint.
18489 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
18490 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
18491 (Depends-on): Add stdint.
18492 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
18493 * modules/perl: New module.
18494 * modules/regex (Depends-on): Add stdint.
18495 * modules/rmdir-errno: New module.
18496 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
18498 (Depends-on): Add stdint.
18499 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
18501 (Depends-on): Add stdint.
18502 * modules/unlink-busy: New module.
18503 * modules/utimecmp (Depends-on): Add stdint.
18504 * modules/uptime: New module.
18505 * modules/winsz-ioctl: New module.
18506 * modules/winsz-termios: New module.
18507 * modules/xnanosleep (Depends-on): Add nanosleep.
18508 * modules/ullong_max: Remove.
18509 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
18510 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
18511 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
18512 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
18513 (Depends-on): Add inttypes.
18514 (lib_SOURCES): Add xstrtol.h.
18515 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
18516 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
18517 * MODULES.html.sh: Move 'assert' into the assert section.
18518 Move 'dummy' into the linking section.
18520 Add section for compatibility checks for POSIX:2001 functions,
18521 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
18522 winsz-ioctl, and winsz-termios into it.
18524 Add top-level Misc section and put host-os, perl, and uptime
18527 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
18529 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
18530 now assume the stdint module. Do not include inttypes.h.
18531 * lib/fsusage.h: Likewise.
18532 * lib/getndelim2.c: Likewise.
18533 * lib/human.h: Likewise.
18534 * lib/inttostr.h: Likewise.
18535 * lib/obstack.c: Likewise.
18536 * lib/regex_internal.h: Likewise.
18537 * lib/tempname.c: Likewise.
18538 * lib/utimecmp.c: Likewise.
18539 * lib/xstrtol.h: Likewise.
18541 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
18543 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
18544 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
18545 * lib/xtime.h: Likewise.
18547 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
18549 * modules/openat (Files): Add lib/fchmodat.c.
18550 Fixes problem reported by Jay Youngman.
18552 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
18554 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
18555 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
18557 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
18558 Bruno Haible <bruno@clisp.org>
18560 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
18561 and is a script that invokes bison. Tighten the code. Add comments.
18563 2006-08-18 Jim Meyering <jim@meyering.net>
18565 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
18566 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
18567 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
18568 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
18570 2006-08-18 Bruno Haible <bruno@clisp.org>
18572 * modules/bison-i18n: New file.
18573 * MODULES.html.sh (Internationalization functions): Add it.
18575 2006-08-18 Bruno Haible <bruno@clisp.org>
18577 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
18578 sys/statvfs.h. When getmntinfo was found, check its declaration and
18579 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
18581 2006-08-18 Bruno Haible <bruno@clisp.org>
18583 * m4/bison-i18n.m4: New file, from bison.
18585 2006-08-18 Bruno Haible <bruno@clisp.org>
18587 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
18588 (ME_DUMMY): Treat "kernfs" as a dummy.
18589 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
18591 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
18593 Update from coreutils.
18595 2006-08-15 Jim Meyering <jim@meyering.net>
18597 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
18599 2006-01-17 Jim Meyering <jim@meyering.net>
18601 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
18603 2006-01-11 Jim Meyering <jim@meyering.net>
18605 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
18606 Check for the lchmod function.
18608 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
18610 Update from coreutils.
18612 * lib/__fpending.h: Add copyright notice.
18613 * lib/fprintftime.h: Likewise.
18614 * lib/savedir.c: Use (C) in copyright notice.
18615 * lib/savedir.h: Likewise.
18617 2006-08-15 Jim Meyering <jim@meyering.net>
18619 * lib/at-func.c: New file, with the logic of all emulated at-functions.
18620 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
18621 in support of the EXPECTED_ERRNO macro.
18622 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
18623 definitions. Instead, define the appropriate symbols and include
18625 * lib/mkdirat.c (mkdirat): Likewise.
18626 * lib/fchmodat.c (fchmodat): Likewise.
18627 (ENOSYS): Remove definition.
18628 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
18629 it. Don't include "unistd--.h" -- it wasn't ever used.
18631 2006-01-17 Jim Meyering <jim@meyering.net>
18633 Rewrite fts.c not to change the current working directory,
18634 by using openat, fstatat, fdopendir, etc..
18636 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
18637 (HAVE_OPENAT_SUPPORT): Define.
18638 [_LIBC] (fchdir): Don't undef or define; no longer used.
18639 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
18640 Now, this `function' always succeeds, and consumes its file descriptor
18641 parameter -- so callers must not close such FDs. Update callers.
18642 (diropen_fd, opendirat, cwd_advance_fd): New functions.
18643 (diropen): Add parameter, SP. Adjust all callers.
18644 Implement using diropen_fd, rather than open.
18645 (fts_open): Initialize new member, fts_cwd_fd.
18646 Remove fts_rft-setting code.
18647 (fts_close): Close fts_cwd_fd, if necessary.
18648 (__opendir2): Define in terms of opendir or opendirat,
18649 depending on whether the FST_NOCHDIR flag is set.
18650 (fts_build): Since fts_safe_changedir consumes its FD, and since
18651 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
18652 and close the dup'd file descriptor upon failure.
18653 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
18654 (fts_safe_changedir): Tweak semantics to reflect that this function
18655 now calls cwd_advance_fd and hence consumes its FD argument.
18656 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
18657 [struct FTS] (fts_rft): Remove now-unused member.
18658 [struct FTS] (fts_cycle.state): Improve comment.
18660 * lib/openat.c (openat_needs_fchdir): New function.
18661 * lib/openat.h (openat_needs_fchdir): Declare it.
18663 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
18665 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
18666 Problem and fix reported by Pádraig Brady in
18667 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
18669 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
18671 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
18673 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
18675 * lib/memcoll.c (memcoll): Optimize for the common case where the
18676 arguments are bytewise equal.
18678 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
18680 * doc/regexprops-generic.texi: Add a copyright notice.
18682 2006-08-15 Bruno Haible <bruno@clisp.org>
18684 * modules/tmpdir (License): Change to LGPL.
18686 2006-08-15 Bruno Haible <bruno@clisp.org>
18688 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
18691 2006-08-14 Simon Josefsson <jas@extundo.com>
18693 * config/srclist.txt: Add gnupload.
18695 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
18697 Change copyright notice from LGPL 2 to GPL 2, since that's the
18698 standard form used in the gnulib repository.
18699 * tests/test-lock.c: Likewise.
18700 * tests/test-stdint.c: Likewise.
18701 * tests/test-tls.c: Likewise.
18703 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
18704 prelude-manager. User shorter URLs for GNU projects, without '?'.
18705 Add copyright notice.
18707 * check-module: Add copyright notice. Output a copyright
18708 notice if "--version" is specified.
18709 * modules/COPYING: New file.
18710 * tests/test-getaddrinfo.c: Add copyright notice.
18711 * tests/test-verify.c: Likewise.
18713 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
18715 Change copyright notice from LGPL 2 to GPL 2, since that's the
18716 standard form used in the gnulib repository.
18717 * lib/lock.c: LGPL -> GPL.
18718 * lib/lock.h: Likewise.
18719 * lib/strnlen1.c: Likewise.
18720 * lib/strnlen1.h: Likewise.
18721 * lib/tls.c: Likewise.
18722 * lib/tls.h: Likewise.
18723 * lib/tmpdir.c: Likewise.
18725 * lib/TODO: Remove; this belongs only in coreutils.
18727 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
18729 Add copyright notices to long-enough files that lack them, since
18730 otherwise the files aren't clearly free. Use the same notice that
18731 getdate.texi already uses.
18732 * doc/alloca-opt.texi: Add copyright notice.
18733 * doc/alloca.texi: Likewise.
18734 * doc/ctime.texi: Likewise.
18735 * doc/functions.texi: Likewise.
18736 * doc/gcd.texi: Likewise.
18737 * doc/gnulib-tool.texi: Likewise.
18738 * doc/inet_ntoa.texi: Likewise.
18739 * doc/visibility.texi: Likewise.
18741 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
18742 * doc/quote.texi: Add copyright notice.
18744 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
18745 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
18746 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
18747 Mention SunOS 5.11. Mention that everything before SunOS 5.7
18748 is now obsolete, and give a pointer to the Sun list.
18749 Add copyright notice.
18751 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
18753 * config/srclistvars.sh: Add copyright notice.
18755 2006-08-14 Eric Blake <ebb9@byu.net>
18757 Import the following change from libc:
18759 2006-08-12 Ulrich Drepper <drepper@redhat.com>
18762 * lib/misc/error.c: Add space between program name and message if file
18765 2006-08-12 Karl Berry <karl@gnu.org>
18767 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
18768 remove, these originate in gnulib now.
18770 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18772 * doc/Makefile (standards.info standards.html standards.dvi):
18773 Also depend on make-stds.texi.
18775 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
18777 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
18778 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
18780 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
18781 in wchar_t. Problem reported by Eric Blake.
18783 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
18784 LEN is smaller than SIZE. Suggested by Bruno Haible.
18785 Also, help the compiler to keep LEN in a register.
18787 2006-08-11 Eric Blake <ebb9@byu.net>
18789 * users.txt: Sort. Add tar.
18791 2006-08-11 Bruno Haible <bruno@clisp.org>
18793 * users.txt: New file.
18795 2006-08-11 Bruno Haible <bruno@clisp.org>
18797 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
18798 before <wchar.h>. Needed for OSF/1 and BSD/OS.
18800 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
18802 * modules/snprintf (Depends-on): Remove minmax.
18803 (Maintainer): Add self and Bruno.
18805 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
18807 * lib/.cppi-disable: Add snprintf.h, socket_.h.
18808 * lib/snprintf.c: Include <errno.h> and <limits.h>.
18809 (EOVERFLOW): Define if the system does not.
18810 Do not include "minmax.h"; it wasn't used.
18811 (snprintf): Don't assume size_t promotes to an unsigned type.
18812 Fix bug when generated string was too long for the buffer: the
18813 buffer's contents are supposed to be the initial prefix of the
18814 output. Don't assume vasnprintf returns EOVERFLOW if the size
18815 exceeds INT_MAX; do the check ourselves.
18817 Import the following changes from libc:
18819 2006-06-02 Jakub Jelinek <jakub@redhat.com>
18821 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
18822 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
18823 set wc to the byte which couldn't be converted.
18824 (re_string_reconstruct): Don't clear valid_raw_len before calling
18825 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
18826 tip_context using re_string_context_at.
18828 2006-05-02 Ulrich Drepper <drepper@redhat.com>
18830 * lib/posix/regex.h: g++ still cannot handled [restrict].
18832 2006-04-21 Ulrich Drepper <drepper@redhat.com>
18834 * lib/posix/regex.h: Remove special handling for VMS.
18836 2006-08-10 Jim Meyering <jim@meyering.net>
18838 * modules/same-inode: New module.
18839 * modules/dev-ino: New module.
18840 * modules/cycle-check: Depend on these modules, rather than simply
18841 including their .h files.
18842 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
18843 required via m4/cycle-check.m4.
18844 * modules/same: Depend on new same-inode module, rather than
18845 including same-inode.h.
18846 * modules/chdir-safer: New file.
18848 * modules/chown (Depends-on): Add stat-macros.
18850 2006-08-10 Jim Meyering <jim@meyering.net>
18852 * m4/cycle-check.m4: New file.
18853 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
18854 * m4/dev-ino.m4, m4/same-inode.m4: New files.
18856 2006-08-10 Eric Blake <ebb9@byu.net>
18858 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
18859 in from original proposal.
18861 2006-08-10 Eric Blake <ebb9@byu.net>
18862 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18864 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
18867 2006-08-10 Bruno Haible <bruno@clisp.org>
18869 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
18872 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
18874 Sync from coreutils.
18876 2006-07-19 Mike Frysinger <vapier@gentoo.org>
18878 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
18879 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
18881 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
18883 * modules/restrict: Remove; no longer needed now that we assume
18884 Autoconf 2.59 or later.
18885 * MODULES.html.sh: Remove 'restrict'.
18886 * modules/argp (Depends-on): Remove 'restrict'.
18887 * modules/base64 (Depends-on): Likewise.
18888 * modules/gc (Depends-on): Likewise.
18889 * modules/getaddrinfo (Depends-on): Likewise.
18890 * modules/glob (Depends-on): Likewise.
18891 * modules/inet_ntop (Depends-on): Likewise.
18892 * modules/inet_pton (Depends-on): Likewise.
18893 * modules/memxor (Depends-on): Likewise.
18894 * modules/regex (Depends-on): Likewise.
18895 * modules/strtok_r (Depends-on): Likewise.
18896 * modules/time_r (Depends-on): Likewise.
18898 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
18900 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
18901 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
18902 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
18903 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
18904 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18905 * m4/memxor.m4 (gl_MEMXOR): Likewise.
18906 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
18907 gl_C_RESTRICT replaced by AC_C_RESTRICT.
18909 Merge from coreutils.
18910 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
18911 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
18912 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18913 * m4/time_r.m4 (gl_TIME_R): Likewise.
18915 2006-08-09 Karl Berry <karl@gnu.org>
18917 * config/srclist.txt: no more gettext-tools, per Bruno.
18919 2006-08-08 Eric Blake <ebb9@byu.net>
18921 * modules/verror: New module.
18922 * MODULES.html.sh: Document it.
18924 2006-08-08 Eric Blake <ebb9@byu.net>
18926 * lib/verror.h, lib/verror.c: New files.
18928 2006-08-08 Eric Blake <ebb9@byu.net>
18930 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
18931 verror_at_line output complies with GNU Coding Standards even when
18934 2006-08-07 Bruno Haible <bruno@clisp.org>
18936 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
18938 Reported by Ralf Wildenhues.
18940 2006-08-07 Bruno Haible <bruno@clisp.org>
18942 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
18943 in an AC_DEFUN. Needed so that the autoconf snippets can use
18946 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18948 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18949 Initialize pkgdata_DATA.
18950 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
18953 2006-08-06 Eric Blake <ebb9@byu.net>
18955 * lib/error.h: Fold in some upstream changes from glibc.
18956 * lib/error.c: Likewise.
18958 2006-08-04 Bruno Haible <bruno@clisp.org>
18960 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18961 Make the mostlyclean-local rule depend on mostlyclean-generic.
18962 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
18964 2006-07-31 Bruno Haible <bruno@clisp.org>
18966 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
18967 <stdlib.h>, <string.h>.
18969 2006-07-30 Bruno Haible <bruno@clisp.org>
18971 * modules/readlink (License): Change to LGPL.
18973 2006-07-30 Bruno Haible <bruno@clisp.org>
18975 * modules/javaversion (Makefile.am): Distribute javaversion.java and
18976 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
18977 set PKGDATADIR to point to it.
18979 2006-07-30 Bruno Haible <bruno@clisp.org>
18981 * modules/csharpexec (configure.ac): Comment out macro invocation.
18982 * modules/javaexec (configure.ac): Likewise.
18983 * modules/javacomp-script (configure.ac): Likewise.
18985 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
18987 2006-07-30 Bruno Haible <bruno@clisp.org>
18989 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
18992 2006-07-30 Bruno Haible <bruno@clisp.org>
18994 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
18996 2006-07-30 Bruno Haible <bruno@clisp.org>
18998 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18999 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
19002 2006-07-29 Bruno Haible <bruno@clisp.org>
19004 Make it possible for gnulib-tool to work with locally modified or
19005 augmented gnulib repositories.
19006 * gnulib-tool (func_usage): Document --local-dir option.
19007 (local_gnulib_dir): New variable.
19008 Handle --local-dir option.
19009 (func_lookup_file): New function.
19010 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
19011 (func_get_description, func_get_filelist, func_get_description,
19012 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
19013 func_get_automake_snippet, func_get_include_directive,
19014 func_get_license, func_get_maintainer): Use func_lookup_file.
19015 (func_import, func_create_testdir): Use func_lookup_file.
19017 2006-07-29 Bruno Haible <bruno@clisp.org>
19019 * modules/setenv (Depends-on): Add unistd.
19021 2006-07-29 Bruno Haible <bruno@clisp.org>
19023 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
19025 2006-07-29 Bruno Haible <bruno@clisp.org>
19027 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
19029 2006-07-29 Bruno Haible <bruno@clisp.org>
19031 * gnulib-tool (import, update): If there is no Makefile.am, look at
19032 aclocal.m4, instead of bailing out.
19034 2006-07-29 Bruno Haible <bruno@clisp.org>
19036 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
19037 Categorize the options by when they are useful.
19039 2006-07-29 Bruno Haible <bruno@clisp.org>
19041 * gnulib-tool (func_usage): Document option --no-libtool.
19042 Handle option --no-libtool.
19043 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
19044 for changed semantics of $libtool variable.
19045 (func_import): Likewise. If libtool is not used, show this through
19046 an option --no-libtool.
19047 (func_create_testdir): Update.
19049 2006-07-29 Bruno Haible <bruno@clisp.org>
19051 * gnulib-tool (func_import): Extend error message about missing
19054 2006-07-29 Bruno Haible <bruno@clisp.org>
19056 * gnulib-tool (func_import): Don't create the $docbase directory if
19057 there is no file to store there.
19059 2006-07-29 Bruno Haible <bruno@clisp.org>
19061 * gnulib-tool (autoconf_minversion): If a --dir option is given and
19062 relevant, look for configure.ac there, not in the current directory.
19063 Also use a simple search for AC_PREREQ, not "autoconf --trace".
19065 2006-07-29 Bruno Haible <bruno@clisp.org>
19067 * gnulib-tool (SORT): New variable.
19068 (func_usage): Undocument --assume-autoconf option.
19069 Remove --assume-autoconf option handling.
19070 (autoconf_minversion): Determine from the contents of configure.ac.
19071 (func_import): Remove autoconf_minversion handling.
19072 Suggested by Eric Blake.
19074 2006-07-29 Bruno Haible <bruno@clisp.org>
19076 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
19078 2006-07-29 Bruno Haible <bruno@clisp.org>
19080 * config/srclist.txt (*setenv.[ch]): Remove rules.
19082 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19084 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
19086 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19088 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
19091 2006-07-28 Simon Josefsson <jas@extundo.com>
19093 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
19094 * modules/inet_pton (Depends-on): Likewise.
19096 2006-07-28 Simon Josefsson <jas@extundo.com>
19098 * m4/netinet_in_h.m4: New file.
19100 2006-07-28 Simon Josefsson <jas@extundo.com>
19102 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
19105 2006-07-28 Simon Josefsson <jas@extundo.com>
19107 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
19110 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
19112 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
19113 setgid on directories only if they set these bits.
19114 * lib/modechange.h: Remove obsolete comment about masks.
19116 2006-07-28 Eric Blake <ebb9@byu.net>
19118 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
19121 2006-07-28 Bruno Haible <bruno@clisp.org>
19123 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
19125 2006-07-28 Bruno Haible <bruno@clisp.org>
19127 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
19129 2006-07-28 Bruno Haible <bruno@clisp.org>
19131 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19132 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
19134 Avoids link error on FreeBSD 4.x.
19135 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19137 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
19139 * lib/mbswidth.c (iswcntrl): Likewise.
19141 2006-07-27 Bruno Haible <bruno@clisp.org>
19143 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
19146 2006-07-27 Bruno Haible <bruno@clisp.org>
19148 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
19149 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
19152 2006-07-26 Eric Blake <ebb9@byu.net>
19154 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
19156 2006-07-26 Eric Blake <ebb9@byu.net>
19158 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
19159 like mingw that lack mkstemp.
19160 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
19161 avoid compilation warning on mingw.
19163 2006-07-26 Bruno Haible <bruno@clisp.org>
19165 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
19166 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
19167 INT_FAST*_MIN, INTPTR_MIN.
19169 2006-07-25 Bruno Haible <bruno@clisp.org>
19171 * modules/version-etc (Depends-on): Add stdarg.
19173 2006-07-25 Bruno Haible <bruno@clisp.org>
19175 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
19178 2006-07-25 Bruno Haible <bruno@clisp.org>
19180 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
19181 defined in <stdarg.h> or config.h.
19183 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
19185 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
19186 (gl_STDIO_SAFER): Remove.
19188 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
19190 * MODULES.html.sh (File stream based Input/Output):
19191 Add fopen-safer, tmpfile-safer; remove stdio-safer.
19192 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
19193 * modules/fopen-safer, modules/tmpfile-safer: New files.
19194 * modules/stdio-safer: Remove.
19196 2006-07-24 Bruno Haible <bruno@clisp.org>
19198 * modules/tmpdir: New file.
19199 * MODULES.html.sh (File system functions): Add it.
19201 2006-07-24 Bruno Haible <bruno@clisp.org>
19203 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
19204 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
19206 2006-07-24 Bruno Haible <bruno@clisp.org>
19208 * modules/clean-temp: New file.
19210 2006-07-24 Bruno Haible <bruno@clisp.org>
19212 * m4/tmpdir.m4: New file, from GNU gettext.
19214 2006-07-24 Bruno Haible <bruno@clisp.org>
19216 * lib/tmpdir.h: New file, from GNU gettext.
19217 * lib/tmpdir.c: New file, from GNU gettext.
19219 2006-07-24 Bruno Haible <bruno@clisp.org>
19221 * lib/clean-temp.h: New file, from GNU gettext.
19222 * lib/clean-temp.c: New file, from GNU gettext.
19224 2006-07-23 Eric Blake <ebb9@byu.net>
19226 * modules/stdio-safer (Files): Add tmpfile-safer.c.
19227 (Depends-on): Add binary-io.
19229 2006-07-23 Eric Blake <ebb9@byu.net>
19231 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
19233 2006-07-23 Eric Blake <ebb9@byu.net>
19235 * lib/tmpfile-safer.c: New file.
19236 * lib/stdio-safer.h (fopen_safer): Add prototype.
19237 * lib/stdio--.h (tmpfile): Make safer.
19239 2006-07-23 Bruno Haible <bruno@clisp.org>
19241 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
19242 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
19243 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
19244 gl_linked_remove_at): Use it.
19246 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19247 and Simon Josefsson <jas@extundo.com>
19249 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
19251 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
19253 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
19255 * modules/close-stream: New file.
19256 * modules/closeout (Description): Make it clear that it exits
19257 with a diagnostic on error.
19258 (Depends-on): Add close-stream. Remove fpending, stdbool.
19259 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
19261 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
19263 * m4/close-stream.m4: New file.
19265 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
19267 * lib/close-stream.c, lib/close-stream.h: New files.
19269 2006-07-22 Bruno Haible <bruno@clisp.org>
19271 Merge from GNU gettext 0.15.
19273 2006-05-01 Bruno Haible <bruno@clisp.org>
19275 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
19277 2006-07-22 Bruno Haible <bruno@clisp.org>
19279 * modules/javaversion: New file.
19280 * MODULES.html.sh (Java): Add javaversion.
19282 2006-03-12 Bruno Haible <bruno@clisp.org>
19284 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
19286 2005-12-04 Bruno Haible <bruno@clisp.org>
19288 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
19291 2006-06-21 Bruno Haible <bruno@clisp.org>
19293 Avoid warnings from recent versions of mcs.
19294 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
19295 -o, -L, -r any more. Use options documented since mcs-1.0
19296 instead. Similarly for -g.
19298 2005-12-04 Bruno Haible <bruno@clisp.org>
19300 * build-aux/csharpcomp.sh.in: Suffix for resources is
19301 .resources, not .resource.
19303 2005-07-09 Bruno Haible <bruno@clisp.org>
19305 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
19307 Reported by Mark Junker <mjscod@gmx.de>.
19309 2006-07-22 Bruno Haible <bruno@clisp.org>
19311 * modules/gettext: Upgrade to gettext-0.15.
19312 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
19314 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
19316 2006-07-22 Bruno Haible <bruno@clisp.org>
19318 Merge from GNU gettext 0.15.
19320 2006-03-25 Bruno Haible <bruno@clisp.org>
19322 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
19324 2006-07-21 Bruno Haible <bruno@clisp.org>
19326 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
19329 2006-05-09 Bruno Haible <bruno@clisp.org>
19331 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
19332 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
19333 for the conftestver execution.
19335 2006-05-01 Bruno Haible <bruno@clisp.org>
19337 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
19338 optional target-version argument. Verify that the compiler
19339 groks source of the specified source-version, or add -source
19340 option as necessary. Verify that the compiler produces
19341 bytecode in the specified target-version, or add -target and
19342 -source options as necessary. Make the result of the test
19343 available as variable CONF_JAVAC. Also log error output in
19346 2006-03-11 Bruno Haible <bruno@clisp.org>
19348 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
19350 2006-05-09 Bruno Haible <bruno@clisp.org>
19352 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
19353 CLASSPATH_SEPARATOR to a semicolon.
19355 2006-03-12 Bruno Haible <bruno@clisp.org>
19357 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
19358 available as variable CONF_JAVA, for subsequent autoconf
19359 tests. Also log error output in config.log.
19361 2006-07-19 Bruno Haible <bruno@clisp.org>
19363 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
19364 that getline works on glibc2 systems. Needed to avoid trouble
19366 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
19368 2005-12-04 Bruno Haible <bruno@clisp.org>
19370 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
19371 launcher (untested).
19373 2005-12-04 Bruno Haible <bruno@clisp.org>
19375 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
19377 2006-07-22 Bruno Haible <bruno@clisp.org>
19379 * gettext.m4: Update from GNU gettext-0.15.
19380 * nls.m4: Likewise.
19382 * inttypes-pri.m4: Likewise.
19383 * inttypes-h.m4: Renamed from inttypes.m4.
19384 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
19386 2006-07-22 Bruno Haible <bruno@clisp.org>
19388 Merge from GNU gettext 0.15.
19390 2005-07-05 Bruno Haible <bruno@clisp.org>
19392 * printf-args.c (printf_fetchargs): Work around broken
19393 definition of wint_t on mingw.
19395 2005-02-12 Bruno Haible <bruno@clisp.org>
19397 * xallocsa.h: Add extern "C" for C++.
19399 2006-05-17 Bruno Haible <bruno@clisp.org>
19401 Cygwin portability.
19402 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
19404 2006-04-30 Bruno Haible <bruno@clisp.org>
19406 * progreloc.c: Include <mach-o/dyld.h> if available.
19407 (find_executable): Use _NSGetExecutablePath when possible.
19409 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
19411 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
19414 2005-12-29 Bruno Haible <bruno@clisp.org>
19416 * progreloc.c (set_program_name_and_installdir): Fix
19419 2005-12-04 Bruno Haible <bruno@clisp.org>
19421 Cygwin portability.
19422 * progreloc.c: Include <windows.h> also on Cygwin.
19423 (find_executable): Add support for Cygwin.
19424 (set_program_name_and_installdir): Handle also platforms with
19427 2006-07-11 Bruno Haible <bruno@clisp.org>
19429 * javacomp.c: Fix a comment.
19430 Reported by Jim Meyering.
19432 2006-04-30 Bruno Haible <bruno@clisp.org>
19434 * javacomp.h (compile_java_class): Add source_version,
19435 target_version arguments.
19436 * javacomp.c: Rewritten to choose only a compiler that
19437 respects the specified source_version and target_version.
19439 2006-06-27 Bruno Haible <bruno@clisp.org>
19441 Assume correct S_ISDIR macro.
19442 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
19444 2006-07-22 Bruno Haible <bruno@clisp.org>
19446 * javaversion.h: New file, from GNU gettext.
19447 * javaversion.c: New file, from GNU gettext.
19448 * javaversion.java: New file, from GNU gettext.
19449 * javaversion.class: New file, from GNU gettext.
19451 2006-05-17 Bruno Haible <bruno@clisp.org>
19453 Cygwin portability.
19454 * javaexec.c (execute_java_class): Test for jview program
19457 2006-04-09 Bruno Haible <bruno@clisp.org>
19459 * fatal-signal.c: Don't include string.h.
19460 (at_fatal_signal): Use a copying loop instead of memcpy.
19462 2005-12-04 Bruno Haible <bruno@clisp.org>
19464 * csharpexec.c: Add support for 'clix' launcher (untested).
19465 (execute_csharp_using_sscli): New function.
19466 (execute_csharp_program): Call it.
19468 2006-06-21 Bruno Haible <bruno@clisp.org>
19470 Avoid warnings from recent versions of mcs.
19471 * csharpcomp.c (compile_csharp_using_mono): Don't use options
19472 -o, -L, -r any more. Use options documented since mcs-1.0
19473 instead. Similarly for -g.
19475 2005-07-09 Bruno Haible <bruno@clisp.org>
19477 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
19479 Reported by Mark Junker <mjscod@gmx.de>.
19481 2006-06-17 Bruno Haible <bruno@clisp.org>
19483 * config.charset: Update for NetBSD 3.0.
19485 2006-05-17 Bruno Haible <bruno@clisp.org>
19487 Cygwin portability.
19488 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
19490 2006-05-16 Bruno Haible <bruno@clisp.org>
19492 * localcharset.c [CYGWIN]: Include <windows.h>.
19493 (get_charset_aliases): For Cygwin, return the same CPxxx
19494 aliases list as under WIN32.
19495 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
19496 the environment variables. Fall back to GetACP().
19498 2006-04-05 Bruno Haible <bruno@clisp.org>
19500 * config.charset: Update Juan Manuel Guerrero's address.
19502 2005-02-12 Bruno Haible <bruno@clisp.org>
19504 * allocsa.h: Add extern "C" for C++.
19506 2005-02-10 Bruno Haible <bruno@clisp.org>
19508 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
19509 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
19511 2006-07-22 Bruno Haible <bruno@clisp.org>
19513 * gettext.h: Update to GNU gettext-0.15.
19515 2006-07-22 Bruno Haible <bruno@clisp.org>
19517 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
19518 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
19519 lib-prefix.m4, longdouble.m4, ssize_t.m4.
19521 2006-07-21 Eric Blake <ebb9@byu.net>
19523 * modules/stdlib-safer: New file.
19524 * MODULES.html.sh (File stream based Input/Output): Add
19527 2006-07-21 Eric Blake <ebb9@byu.net>
19529 * lib/stdlib-safer.h: New file from coreutils, required by
19532 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
19534 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
19536 2006-07-20 Bruno Haible <bruno@clisp.org>
19538 * gnulib-tool: Recognize new option --assume-autoconf.
19539 (autoconf_minversion): New variable.
19540 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
19542 2006-07-20 Bruno Haible <bruno@clisp.org>
19544 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
19546 2006-07-19 Derek R. Price <derek@ximbiot.com>
19548 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
19549 Reindent and repaginate.
19551 2006-07-19 Derek Price <derek@ximbiot.com>
19553 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
19556 2006-07-17 Bruno Haible <bruno@clisp.org>
19558 * modules/list: New file.
19559 * modules/array-list: New file.
19560 * modules/carray-list, modules/carray-list-tests: New files.
19561 * modules/linked-list, modules/linked-list-tests: New files.
19562 * modules/avltree-list, modules/avltree-list-tests: New files.
19563 * modules/rbtree-list, modules/rbtree-list-tests: New files.
19564 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
19565 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
19566 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
19567 * modules/oset: New file.
19568 * modules/array-oset: New file.
19569 * modules/avltree-oset, modules/avltree-oset-tests: New files.
19570 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
19571 * tests/test-carray_list.c: New file.
19572 * tests/test-linked_list.c: New file.
19573 * tests/test-avltree_list.c: New file.
19574 * tests/test-rbtree_list.c: New file.
19575 * tests/test-linkedhash_list.c: New file.
19576 * tests/test-avltreehash_list.c: New file.
19577 * tests/test-rbtreehash_list.c: New file.
19578 * tests/test-avltree_oset.c: New file.
19579 * tests/test-rbtree_oset.c: New file.
19580 * MODULES.html.sh (Container data structures): New section.
19582 2006-07-17 Bruno Haible <bruno@clisp.org>
19584 * m4/gl_list.m4: New file.
19586 2006-07-17 Bruno Haible <bruno@clisp.org>
19588 * lib/gl_list.h: New file.
19589 * lib/gl_list.c: New file.
19590 * lib/gl_array_list.h: New file.
19591 * lib/gl_array_list.c: New file.
19592 * lib/gl_carray_list.h: New file.
19593 * lib/gl_carray_list.c: New file.
19594 * lib/gl_linked_list.h: New file.
19595 * lib/gl_linked_list.c: New file.
19596 * lib/gl_anylinked_list1.h: New file.
19597 * lib/gl_anylinked_list2.h: New file.
19598 * lib/gl_avltree_list.h: New file.
19599 * lib/gl_avltree_list.c: New file.
19600 * lib/gl_anyavltree_list1.h: New file.
19601 * lib/gl_anyavltree_list2.h: New file.
19602 * lib/gl_rbtree_list.h: New file.
19603 * lib/gl_rbtree_list.c: New file.
19604 * lib/gl_anyrbtree_list1.h: New file.
19605 * lib/gl_anyrbtree_list2.h: New file.
19606 * lib/gl_anytree_list1.h: New file.
19607 * lib/gl_anytree_list2.h: New file.
19608 * lib/gl_linkedhash_list.h: New file.
19609 * lib/gl_linkedhash_list.c: New file.
19610 * lib/gl_anyhash_list1.h: New file.
19611 * lib/gl_anyhash_list2.h: New file.
19612 * lib/gl_avltreehash_list.h: New file.
19613 * lib/gl_avltreehash_list.c: New file.
19614 * lib/gl_rbtreehash_list.h: New file.
19615 * lib/gl_rbtreehash_list.c: New file.
19616 * lib/gl_anytreehash_list1.h: New file.
19617 * lib/gl_anytreehash_list2.h: New file.
19619 * lib/gl_oset.h: New file.
19620 * lib/gl_oset.c: New file.
19621 * lib/gl_array_oset.h: New file.
19622 * lib/gl_array_oset.c: New file.
19623 * lib/gl_avltree_oset.h: New file.
19624 * lib/gl_avltree_oset.c: New file.
19625 * lib/gl_rbtree_oset.h: New file.
19626 * lib/gl_rbtree_oset.c: New file.
19627 * lib/gl_anytree_oset.h: New file.
19629 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
19631 * m4/mkancesdirs.m4: New file.
19632 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
19633 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
19634 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
19637 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
19639 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
19640 * lib/mkancesdirs.h: New files.
19641 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
19642 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
19643 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
19644 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
19645 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
19646 callers changed. Revamp internals significantly, by not
19647 attempting to create directories that are temporarily more
19648 permissive than the final results. Do not attempt to use
19649 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
19650 This removes some race conditions, fixes some bugs, and simplifies
19651 things. Use new dirchownmod function to do owner and mode changes.
19652 * lib/mkdir-p.h: Likewise.
19653 * lib/modechange.c (octal_to_mode): New function.
19654 (struct mode_change): New member mentioned.
19655 (make_node_op_equals): New arg mentioned. All callers changed.
19656 (mode_compile): Keep track of which mode bits the user has explicitly
19658 (mode_adjust): New arg DIR, so that we implement the X op correctly.
19659 New arg PMODE_BITS, to keep track of which mode bits the user
19660 mentioned; it treats S_ISUID and S_ISGID speciall.
19661 All callers changed.
19662 * lib/modechange.h: Likewise.
19664 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
19666 * MODULES.html.sh: Add mkancestors.
19667 * modules/mkancesdirs: New module.
19668 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
19669 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
19670 The chdir-safer and afs files are now orphans; I'll remove them
19671 unless someone speaks up.
19672 Add lib/dirchownmod.c, lib/dirchownmod.h.
19673 (Depends-on): Remove alloca, chown, save-cwd, dirname.
19674 Add lchown, mkancesdirs.
19675 (Maintainer): Add self.
19677 2006-07-15 Karl Berry <karl@gnu.org>
19679 * gnulib-tool: help message wording/arrangement.
19681 2006-07-14 Simon Josefsson <jas@extundo.com>
19683 * doc/gnulib.texi (Libtool and Windows): New section.
19685 2006-07-12 Simon Josefsson <jas@extundo.com>
19687 * modules/gendocs (License): Fix license, approved by Karl.
19689 2006-07-12 Eric Blake <ebb9@byu.net>
19691 * MODULES.html.sh: Add gendocs.
19693 2006-07-11 Eric Blake <ebb9@byu.net>
19695 * modules/fdl: New module, to install doc/fdl.texi.
19696 * MODULES.html.sh: Add new section for documentation modules.
19697 * gnulib-tool: Avoid space-tab.
19698 (--doc-base): New option, to manage files from doc.
19700 2006-07-11 Eric Blake <ebb9@byu.net>
19702 * m4/absolute-header.m4: Fix comments to match recent change.
19704 2006-07-11 Eric Blake <ebb9@byu.net>
19706 * gnulib-tool: List --doc-base before --tests-base.
19708 2006-07-11 Derek R. Price <derek@ximbiot.com>
19710 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
19712 2006-07-11 Bruno Haible <bruno@clisp.org>
19714 * README: Mention where to put documentation.
19716 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19718 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
19720 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
19722 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
19725 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
19727 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
19728 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
19729 "no/such/file/stdint.h" when there is no such file, so that
19730 the resulting C code can be parsed by dodgy compilers.
19731 Problems reported by Bob Proulx.
19733 2006-07-10 Derek R. Price <derek@ximbiot.com>
19735 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
19736 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
19737 macros into the GNU _D_EXACT_NAMLEN.
19738 * lib/savedir.c: Likewise.
19739 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
19741 2006-07-10 Derek R. Price <derek@ximbiot.com>
19742 and Paul Eggert <eggert@cs.ucla.edu>
19744 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
19746 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
19747 macros into the GNU _D_EXACT_NAMLEN.
19749 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
19751 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
19752 around the absolute name, to work around a problem with the HP-UX
19753 11.23 native C compiler, reported by Bob Proulx.
19755 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
19757 * doc/maintain.texi, make-stds.texi: Sync from
19758 <http://savannah.gnu.org/projects/gnustandards>.
19760 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
19762 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
19764 2006-07-09 Jim Meyering <jim@meyering.net>
19766 * m4/glob.m4: Remove a doubled word in a comment.
19768 2006-07-09 Jim Meyering <jim@meyering.net>
19770 * lib/argp-pv.c: Remove a doubled word in a comment.
19771 * lib/check-version.c (check_version): Likewise.
19772 * lib/javacomp.c (compile_java_class): Likewise.
19774 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
19776 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
19777 for the benefit of people using Autoconf 2.60. If you want to
19778 support older Autoconf versions you can copy m4/onceonly_2_57.m4
19779 (or m4/onceonly.m4, if pre-2.57) manually.
19781 2006-07-08 Jim Meyering <jim@meyering.net>
19783 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
19785 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
19786 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
19789 2006-07-08 Jim Meyering <jim@meyering.net>
19791 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
19793 2006-07-07 Simon Josefsson <jas@extundo.com>
19795 * tests/test-crc.c: Change expected crc value, the test vector
19796 were probably computed using the old broken crc.c?
19798 2006-07-06 Simon Josefsson <jas@extundo.com>
19800 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
19801 now the canonical place for the M4 file).
19803 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
19804 from the sys_socket dependency now.
19806 * modules/inet_pton (Files): Ditto.
19808 * modules/inet_ntop (Files): Ditto.
19810 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
19812 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
19813 not gl_PREREQ_GETUSERSHELL.
19815 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19817 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
19818 with only one argument, for Autoconf 2.60.
19819 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
19820 expand to nothing, so add a shell command to avoid syntax error.
19821 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
19823 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19825 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
19827 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
19829 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
19830 no longer needed. Check for isblank decl.
19831 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
19832 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
19835 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
19837 * lib/getloadavg.c: Use __VMS, not VMS.
19838 * lib/getopt.c: Likewise.
19839 * lib/getpagesize.h: Likewise.
19840 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
19841 and probably does not work.
19843 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
19845 * lib/.cppi-disable: Add wcwidth.
19846 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
19847 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
19848 (ISGRAPH): Remove. All uses changed to isgraph.
19849 (FOLD) [!defined _LIBC]: Remove special case.
19850 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
19851 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
19853 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
19856 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
19858 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
19859 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
19860 brackets. Other minor changes to suppress some compiler
19863 2006-07-06 Derek R. Price <derek@ximbiot.com>
19864 and Paul Eggert <eggert@cs.ucla.edu>
19866 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
19867 of invoking obsolescent AC_HEADER_DIRENT macro.
19868 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19869 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
19870 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19871 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19872 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
19873 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
19874 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
19875 * m4/readdir.m4: Remove; no longer needed.
19877 2006-07-06 Derek R. Price <derek@ximbiot.com>
19878 and Paul Eggert <eggert@cs.ucla.edu>
19880 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
19881 Don't worry about this obsolete case any more.
19882 (HAVE_DIR): Remove. All uses removed; we now assume you can read
19884 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
19885 worry about this obsolete case any more.
19886 * lib/fts.c: Likewise.
19887 * lib/getcwd.c: Likewise.
19888 * lib/glob.h: Likewise.
19889 * lib/savedir.c: Likewise.
19891 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
19893 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
19894 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
19895 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
19898 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19899 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
19900 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
19902 * m4/getdate.m4 (gl_GETDATE): Likewise.
19903 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
19904 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
19905 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19906 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19907 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
19908 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19909 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
19912 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
19914 * lib/memcasecmp.c: Include <limits.h>.
19915 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
19916 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
19917 Don't assume isdigit succeeds only on '0' through '9'.
19919 2006-07-05 Eric Blake <ebb9@byu.net>
19921 * modules/getaddrinfo (Depends-on): Add snprintf.
19923 2006-07-05 Eric Blake <ebb9@byu.net>
19925 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
19926 to avoid 'header present but could not be compiled' on cygwin.
19928 2006-07-05 Eric Blake <ebb9@byu.net>
19930 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
19931 missing from netdb.h.
19932 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
19934 2006-07-05 Derek R. Price <derek@ximbiot.com>
19936 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
19938 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
19939 * m4/getdate.m4 (gl_GETDATE): Likewise.
19940 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
19941 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
19942 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19943 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
19944 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19946 2006-07-05 Derek R. Price <derek@ximbiot.com>
19948 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
19949 All uses of is_space replaced by isspace.
19950 * lib/exit.h: Don't talk about STDC_HEADERS.
19951 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
19952 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
19953 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
19954 replaced by isprint etc.
19955 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
19956 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
19957 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
19958 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
19959 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
19960 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
19962 2006-07-05 Bruno Haible <bruno@clisp.org>
19964 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
19965 the function exists, before testing against AIX.
19966 Reported by Martin Lambers <marlam@marlam.de>.
19968 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
19970 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
19971 From Mark D. Baushke.
19973 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
19975 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
19976 to the absolute name, not just one, to bypass Sun C 5.8's
19977 "warning: #include of /usr/include/... may be non-portable".
19979 2006-07-04 Eric Blake <ebb9@byu.net>
19981 * modules/dirname-tests: New test module.
19982 * tests/test-dirname.c: New file, replacing dirname.c
19983 TEST_DIRNAME section that was recently deleted.
19985 2006-07-04 Bruno Haible <bruno@clisp.org>
19987 Assume ANSI C header files and <ctype.h> functions.
19988 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
19989 (mbsnwidth): Use isprint, iscntrl instead.
19991 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
19993 Merge from coreutils.
19994 * MODULES.html.sh: Add xstrtold.
19995 * modules/xstrtold: New file.
19996 * modules/cycle-check (Files): Add lib/same-inode.h.
19997 * modules/dirname (Files): Add m4/double-slash-root.m4.
19998 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
19999 * modules/mkdir-p (Files): Add lib/same-inode.h.
20000 * modules/same (Files): Add lib/same-inode.h.
20002 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
20004 * m4/absolute-header.m4: Renamed from full-header-path.m4.
20005 This is to keep the terminology clean; POSIX talks about
20006 "absolute pathnames", not "full pathnames", but the GNU
20007 Coding Standards say to use "path" for something else;
20008 so use "absolute" to keep both sides happy.
20009 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
20010 Set gl_absolute_header, not gl_full_header_path.
20011 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
20012 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
20015 Merge from coreutils.
20017 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
20019 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
20020 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
20021 want to require the building of c-strtod.o.
20022 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
20023 needs -lm directly.
20024 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
20026 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
20028 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
20029 --as-needed option if available. Problem reported by Albert Chin in
20030 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
20031 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
20032 cc merely issues a bunch of annoying warnings for --as-needed
20033 (this problem was reported by Bob Proulx). Also, try linking with
20034 -lm to detect a bug in binutils 2.16 (this problem was reported
20035 by Ralf Wildenhues).
20037 2006-06-18 Jim Meyering <jim@meyering.net>
20039 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
20040 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
20042 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
20043 also check for glibc-2.4's abort-inducing bug.
20045 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
20046 Low-probability clean-up should be to use rmdir to get rid of
20047 the just-created directory, not unlink.
20049 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
20050 configure fail, and request a bug report to inform us about it.
20051 Add a comment that, barring reports to the contrary, in 2007 we'll
20052 assume ftruncate is universally available.
20054 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
20056 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
20058 2006-03-12 Jim Meyering <jim@meyering.net>
20060 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
20061 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
20062 * m4/same.m4 (gl_SAME): Likewise.
20063 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
20065 2006-03-11 Eric Blake <ebb9@byu.net>
20067 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
20068 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
20069 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
20070 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
20072 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
20074 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
20075 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
20076 reported by Mark D. Baushke, one in
20077 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
20079 Merge from coreutils.
20081 * lib/.cppi-disable: Add stdint_.h.
20082 * lib/.cvsignore: Add stdint.h.
20084 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
20086 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
20087 both double and long double versions.
20088 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
20089 * lib/xstrtold.c: New file.
20090 * lib/xstrtod.h (xstrtold): New decl.
20092 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
20094 * lib/filemode.c (setst): Remove.
20095 (strmode): Rewrite to avoid setst. This makes the code shorter,
20096 (arguably) clearer, and the generated code is a bit smaller on my
20097 Debian GNU/Linux stable x86 host.
20099 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
20101 * lib/filemode.c: Include "filemode.h" first, to test the interface.
20102 Assume that filemode.h includes sys/types.h and sys/stat.h.
20103 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
20104 (ftypelet): Reorder to put common cases first, for efficiency.
20105 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
20107 (strmode): Renamed from mode_string, and now stores 12 bytes instead
20108 of 10, for compatibility with FreeBSD. All callers changed.
20109 (filemodestring): Now stores 12 bytes instead of 10, and sets file
20110 types that can't be deduced solely from st_mode. First arg is now a
20112 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
20113 (strmode): Renamed from mode_string.
20114 (filemodestring): New decl.
20115 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
20116 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
20118 (S_ISPORT, S_ISWHT): New macros, if not already defined.
20120 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
20122 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
20123 fsusage.h now does that. Include fsusage.h first, to test interface.
20124 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
20125 at most one method (the old code could have generated decls that
20126 didn't conform to C89, not that this was ever exercised).
20127 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
20129 2006-03-19 Jim Meyering <jim@meyering.net>
20131 Work even in a chroot where d_ino values for entries in "/"
20132 don't match the stat.st_ino values for the same names.
20133 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
20134 number, iterate through all entries again, using lstat instead.
20135 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
20136 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
20138 * lib/getcwd.c (__getcwd): Clarify a comment.
20139 Use memcpy in place of a call to strcpy.
20141 2006-03-12 Jim Meyering <jim@meyering.net>
20143 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
20144 matches that of the current directory (which we're about to chdir ".."
20145 out of), then save the dev-ino of the parent, instead.
20147 * lib/same-inode.h (SAME_INODE): New file/macro.
20148 * lib/chdir-safer.c (SAME_INODE): Remove definition.
20149 Include "same-inode.h", instead.
20150 * lib/same.c: Likewise.
20151 * lib/cycle-check.h: Include "same-inode.h".
20152 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
20153 * lib/cycle-check.c (SAME_INODE): Remove definition.
20154 * lib/root-dev-ino.h: Include "same-inode.h".
20156 2006-03-11 Eric Blake <ebb9@byu.net>
20158 * lib/same.c (same_name): s/base_name/last_component/
20159 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
20160 * lib/filenamecat.c (file_name_concat): Likewise.
20162 2006-03-11 Eric Blake <ebb9@byu.net>,
20163 Paul Eggert <eggert@cs.ucla.edu>
20165 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
20166 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
20168 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
20169 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
20170 (last_component): New method.
20171 * lib/dirname.c (dir_len): Determine when drive letters need a
20172 subsequent slash. Preserve // when it is special.
20173 (dir_name): Don't append dot when drive letter is absolute.
20174 [TEST_DIRNAME]: Move into a full-blown gnulib test.
20175 * lib/basename.c (base_name): New semantics - malloc the result.
20176 Preserve // when it is special. Preserve relative files that look
20177 like drive letters.
20178 (base_len): Preserve // when it is special.
20179 (last_component): New method, similar to old base_name semantics.
20180 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
20181 base_name. Strip redundant slashes from ///.
20183 2006-07-03 Jim Meyering <jim@meyering.net>
20185 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
20186 macro is used before the first cycle_check call.
20188 2006-07-03 Eric Blake <ebb9@byu.net>
20190 * modules/dirname (Depends-on): Add xstrndup.
20192 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
20194 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
20195 test cases, so that config.log is a bit easier to follow.
20197 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
20199 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
20200 both are 64 bits, since this seems to be the tradition, and this
20201 prevents gcc -Wformat from warning about usages with PRIuMAX. If
20202 we ever run into a host that prefers long long to long in this
20203 case, we'll need another configure-time test. Problem reported by
20206 2006-07-02 Eric Blake <ebb9@byu.net>
20208 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
20210 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
20212 * modules/inttypes (Depends-on): No longer depends on stdint.
20213 * modules/stdint (Description): Say more about assumptions.
20214 Say that the fast types might differ. Say macros are used.
20215 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
20216 (Makefile.am): Revise list of substituted symbols to match
20218 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
20219 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
20220 * tests/test-stdint.c (verify_same_types)
20221 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
20222 the code conforms to C99/C89.
20223 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
20224 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
20226 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
20228 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
20229 but fix a bug, by requiring at least 64 bits.
20230 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
20231 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
20232 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
20233 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
20235 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
20236 changes. Make 2.59 a prerequisite. Check and substitute for
20237 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
20238 inttypes.h. Do not use special include files; just use the
20239 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
20240 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
20241 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
20242 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
20243 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
20244 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
20245 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
20246 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
20247 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
20248 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
20249 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
20250 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
20251 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
20252 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
20253 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
20254 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
20255 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
20256 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
20257 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
20258 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
20259 WINT_MAX. Check for C99 conformance more strictly, by detecting
20260 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
20261 not check for things that C99 does not require, e.g., int8_t. If
20262 a test isn't needed unless <stdint.h> isn't working, and is
20263 unlikely to be needed for any other reason, then don't do it
20264 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
20265 size_t, since we assume C89 freestanding at least. Do not check
20266 for sig_atomic_t, wchar_t, or wint_t, since the code now does
20267 the right thing even if the types are not defined. Instead use:
20268 (gl_STDINT_TYPE_PROPERTIES): New macro.
20269 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
20270 testing whether <sys/types.h> clashes, as Autoconf does this for
20271 us now. All uses removed.
20272 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
20273 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
20274 (gl_CHECK_TYPE_SAME):
20275 Remove; no longer needed.
20276 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
20277 exists, since we'll return 0 anyway in that case.
20278 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
20280 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
20282 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
20283 possible collision with system files.
20284 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
20285 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
20286 WCHAR_MIN and WCHAR_MAX in this case.
20287 (<stddef.h>): Do not include; no longer needed.
20288 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
20289 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
20290 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
20291 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
20292 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
20293 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
20294 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
20295 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
20296 !defined(__c99))]: Include in this case too, since it's harmless
20298 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
20299 dangerous to do so.
20300 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
20301 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
20302 (_STDINT_MIN, _STDINT_MAX): New macros.
20303 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
20304 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
20305 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
20306 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
20307 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
20308 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
20309 macros, not typedefs; this simplifies things quite a bit.
20310 Use long int for all types narrower than int64_t.
20311 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
20312 Define in terms of long long int or int64_t or long int,
20313 not int64_t or int32_t. This saves some compile-time testing.
20314 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
20315 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
20316 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
20317 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
20318 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
20319 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
20320 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
20321 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
20322 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
20323 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
20324 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
20325 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
20326 undef any previous version and define our own version, for
20327 simplicity and consistency with the new macros for types.
20328 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
20329 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
20330 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
20331 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
20332 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
20333 @WINT_T_SUFFIX@ to keep things simple here.
20334 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
20335 Simplify by assuming typical 8/16/32/64 host, since we're
20336 already doing that elsewhere anyway.
20337 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
20338 and assume long long int is 64 bits if available. This
20339 speeds up 'configure'.
20341 2006-07-01 Eric Blake <ebb9@byu.net>
20343 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
20344 Reported by Andreas Buening.
20346 2006-07-01 Eric Blake <ebb9@byu.net>
20348 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
20350 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
20352 * lib/getaddrinfo.c: fixed typo
20354 2006-06-29 Jim Meyering <jim@meyering.net>
20356 * modules/strftime (Maintainer): Add my name, since with the
20357 FPRINTFTIME changes strftime.c has forked from glibc.
20359 2006-06-29 Eric Blake <ebb9@byu.net>
20361 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
20363 2006-06-29 Eric Blake <ebb9@byu.net>
20365 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
20367 2006-06-29 Eric Blake <ebb9@byu.net>
20369 * lib/stat_.h: New file.
20371 2006-06-29 Eric Blake <ebb9@byu.net>
20373 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
20374 unused static function.
20376 2006-06-29 Eric Blake <ebb9@byu.net>
20378 * doc/functions.texi (Function Portability): Document missing lstat
20381 2006-06-29 Eric Blake <ebb9@byu.net>
20383 * MODULES.html.sh: Add sys_stat.
20384 * modules/sys_stat: New module.
20385 * modules/mkstemp (Depends-on): Add sys_stat.
20387 2006-06-29 Derek R. Price <derek@ximbiot.com>
20389 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
20391 2006-06-29 Derek R. Price <derek@ximbiot.com>
20393 * m4/c-bs-a.m4: Removed.
20395 2006-06-29 Derek R. Price <derek@ximbiot.com>
20397 * lib/strftime.c: Assume strftime() exists.
20399 2006-06-29 Derek Price <derek@ximbiot.com>
20401 * modules/c-bs-a: Removed - \a is C89.
20402 * MODULES.html.sh: Remove c-bs-a.
20404 2006-06-29 Bruno Haible <bruno@clisp.org>
20406 * modules/wcwidth (License): Change to LGPL.
20408 2006-06-28 Simon Josefsson <jas@extundo.com>
20410 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
20413 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
20416 2006-06-28 Simon Josefsson <jas@extundo.com>
20418 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
20420 2006-06-28 Simon Josefsson <jas@extundo.com>
20422 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
20423 functions there. It will succeed on Windows XP, but on Windows
20424 2000 and (presumably) earlier, it will fail, and use the internal
20426 (use_win32_p): New function.
20427 (getaddrinfo): Use strtoul on servname, to support numeric ports.
20428 Support AI_NUMERICSERV to disable getservbyname.
20429 (getnameinfo): New function, only supports
20430 NI_NUMERICHOST|NI_NUMERICSERV for now.
20432 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
20433 only have some of them. Add AI_NUMERICSERV. Add prototype for
20436 2006-06-28 Eric Blake <ebb9@byu.net>
20438 * modules/wcwidth: New file.
20439 * modules/mbchar (Depends-on): Add wcwidth.
20440 * modules/mbswidth (Depends-on): Add wcwidth.
20441 * MODULES.html.sh: Add wcwidth.
20443 2006-06-28 Eric Blake <ebb9@byu.net>
20445 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
20446 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
20448 2006-06-28 Eric Blake <ebb9@byu.net>
20450 * lib/xvasprintf.h: Fix comments.
20452 2006-06-28 Eric Blake <ebb9@byu.net>
20454 * lib/mbchar.h (wcwidth): Include wcwidth.h.
20455 * lib/mbswidth.c (wcwidth): Move from here...
20456 * lib/wcwidth.h: ...to this new file.
20458 2006-06-28 Derek R. Price <derek@ximbiot.com>
20460 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
20462 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
20464 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
20466 2006-06-28 Derek R. Price <derek@ximbiot.com>
20468 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
20469 Autoconf 2.60 says this stuff was obsolete.
20471 2006-06-28 Bruno Haible <bruno@clisp.org>
20473 * modules/wcwidth (Files): Add m4/wchar_t.m4.
20475 2006-06-28 Bruno Haible <bruno@clisp.org>
20477 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
20480 2006-06-28 Bruno Haible <bruno@clisp.org>
20482 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
20483 declaration for wcwidth.
20484 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
20486 2006-06-28 Bruno Haible <bruno@clisp.org>
20488 * lib/mkdtemp.c [MINGW]: Include <io.h>.
20489 (mkdir): Define using _mkdir.
20491 2006-06-28 Bruno Haible <bruno@clisp.org>
20493 * lib/getaddrinfo.h: Fix POSIX URL.
20494 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
20496 (use_win32_p): Make static.
20497 (getaddrinfo): Reject service name if it is empty or does not consist
20498 solely of decimal digits, or if its value is > 65535.
20499 (getnameinfo): Remove useless casts.
20501 2006-06-27 Simon Josefsson <jas@extundo.com>
20503 * modules/sys_select: New file, suggested by Bruno Haible, Paul
20504 Eggert and Martin Lambers.
20506 2006-06-27 Simon Josefsson <jas@extundo.com>
20508 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
20509 Eggert and Martin Lambers.
20511 2006-06-27 Bruno Haible <bruno@clisp.org>
20513 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
20514 result to 0, not to empty.
20515 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
20517 2006-06-27 Bruno Haible <bruno@clisp.org>
20519 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
20521 2006-06-26 Simon Josefsson <jas@extundo.com>
20523 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
20526 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
20528 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
20529 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
20530 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
20532 2006-06-26 Mark D. Baushke <mdb@gnu.org>
20534 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
20536 2006-06-26 Bruno Haible <bruno@clisp.org>
20538 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
20540 2006-06-26 Bruno Haible <bruno@clisp.org>
20542 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
20544 2006-06-26 Bruno Haible <bruno@clisp.org>
20546 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
20547 SGI C compiler in pre-C99 mode.
20548 Suggested by Mark D. Baushke and Larry Jones.
20550 2006-06-26 Bruno Haible <bruno@clisp.org>
20552 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
20554 Reported by Mark D. Baushke and Larry Jones.
20556 2006-06-26 Bruno Haible <bruno@clisp.org>
20558 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
20560 Suggested by Mark D. Baushke and Larry Jones.
20562 2006-06-23 Simon Josefsson <jas@extundo.com>
20563 Bruno Haible <bruno@clisp.org>
20565 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
20566 Emit mostlyclean-local rule.
20567 (func_emit_tests_Makefile_am): Likewise.
20568 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
20570 2006-06-23 Mark D. Baushke <mdb@gnu.org>
20572 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
20574 2006-06-23 Bruno Haible <bruno@clisp.org>
20576 * tests/test-stdint.c: Update to match ISO C 99 Technical
20579 2006-06-23 Bruno Haible <bruno@clisp.org>
20581 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
20583 2006-06-23 Bruno Haible <bruno@clisp.org>
20585 * lib/stdint_.h: Treat IRIX like OpenBSD.
20587 2006-06-23 Bruno Haible <bruno@clisp.org>
20589 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
20590 ISO C 99 Technical Corrigendum 1.
20592 2006-06-22 Simon Josefsson <jas@extundo.com>
20594 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
20597 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
20599 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
20600 needed. Some compiler complained about some of them. Problem reported
20602 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
20604 2006-06-21 Simon Josefsson <jas@extundo.com>
20606 * tests/test-getaddrinfo.c: New file.
20608 * modules/getaddrinfo-tests: New file.
20610 * MODULES.html.sh: Add inet_pton.
20612 * modules/inet_pton: New file.
20614 2006-06-21 Simon Josefsson <jas@extundo.com>
20616 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
20617 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
20618 of using the (limited) gnulib implementation on Windows XP.
20620 * m4/inet_pton.m4: New file.
20622 2006-06-21 Simon Josefsson <jas@extundo.com>
20624 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
20627 * lib/socket_.h: Don't define WINVER.
20629 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
20630 slightly modified to work in gnulib.
20632 2006-06-21 Simon Josefsson <jas@extundo.com>
20634 * doc/gnulib.texi (Windows sockets): Add.
20636 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
20638 * lib/read-file.c (fread_file): Start with buffer allocation of
20639 0 bytes rather than 1 byte; this simplifies the code.
20640 Don't invoke feof; it's not needed. Refactor to avoid duplicate
20641 code to free buffer and save/restore errno.
20642 (internal_read_file): Remove unused local.
20644 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
20646 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
20647 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
20648 Problem reported by Denis Excoffier in
20649 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
20651 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20653 * modules/sys_socket, modules/socklen: Include sys/types since
20654 FreeBSD 4.x's sys/socket.h needs it.
20656 2006-06-19 Simon Josefsson <jas@extundo.com>
20658 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
20660 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
20662 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
20664 2006-06-19 Bruno Haible <bruno@clisp.org>
20666 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
20667 and FULL_PATH_INTTYPES_H in angle brackets.
20668 Reported by Mark D. Baushke <mdb@gnu.org>.
20670 2006-06-17 Eric Blake <ebb9@byu.net>
20672 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
20675 2006-06-17 Bruno Haible <bruno@clisp.org>
20677 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
20680 2006-06-17 Bruno Haible <bruno@clisp.org>
20682 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
20683 whether errno is declared. Assume <errno.h> declares errno.
20685 2006-06-17 Bruno Haible <bruno@clisp.org>
20687 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
20689 2006-06-17 Bruno Haible <bruno@clisp.org>
20691 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
20692 problem on Solaris 2.5.1.
20694 2006-06-16 Eric Blake <ebb9@byu.net>
20696 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
20697 * lib/unicodeio.c [!defined errno]: Likewise.
20698 * lib/strtol.c [!defined errno]: Likewise.
20699 * lib/strtod.c [!defined errno]: Likewise.
20701 2006-06-15 Eric Blake <ebb9@byu.net>
20703 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
20705 2006-06-15 Eric Blake <ebb9@byu.net>
20707 * config/srclist.txt (ssize_t.m4): Lose sync.
20709 2006-06-15 Bruno Haible <bruno@clisp.org>
20711 * modules/stdint (Files): Include m4/full-header-path.m4,
20712 m4/size_max.m4, m4/wchar_t.m4.
20713 (Makefile.am): Many more substitutions.
20714 * modules/stdint-tests: New file.
20715 * tests/test-stdint.c: New file.
20717 2006-06-15 Bruno Haible <bruno@clisp.org>
20719 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
20720 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
20721 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
20722 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
20723 gl_CHECK_TYPE_SAME): New macros.
20725 2006-06-15 Bruno Haible <bruno@clisp.org>
20727 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
20729 2006-06-15 Bruno Haible <bruno@clisp.org>
20731 * lib/stdint_.h: Rewritten to be fully auto-configured.
20732 Fixes bug on HP-UX/IA64.
20734 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
20736 * lib/getdate.y (__attribute__): Don't define if already defined.
20737 Problem reported by Larry Jones.
20738 * lib/utimens.c (__attribute__): Likewise.
20740 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
20742 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
20743 reported by Andreas Schwab.
20745 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20746 Bruno Haible <bruno@clisp.org>
20748 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
20749 check for the declaration of strnlen and a run test that exposes the
20750 AIX 5.1 strnlen bug. In the failure case, #define strndup to
20753 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20754 Bruno Haible <bruno@clisp.org>
20756 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
20758 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20760 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
20761 compile test, for Tru64 4.0D.
20763 2006-05-28 Karl Berry <karl@gnu.org>
20765 * config/srclist.txt (printf-args.c): lose sync.
20767 2006-05-26 Martin Lambers <marlam@marlam.de>
20769 * lib/getpass.c: Updates the test for the native W32 API, and adds
20770 missing includes, thus fixing compilation warnings.
20772 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
20774 * lib/exclude.c (exclude_fnmatch): New function.
20775 (excluded_file_name): Call exclude_fnmatch.
20776 * lib/exclude.h (excluded_file_name): New prototype
20778 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
20780 * lib/tempname.c (small_open, large_open): New macros.
20781 (__open, __open64) [!_LIBC]: Remove.
20782 (__gen_tempname): Use small_open and large_open instead of __open
20783 and __open64. This fixes a portability bug on HP-UX 11.11i
20784 reported by Simon Wing-Tang in
20785 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
20787 2006-05-24 Bruno Haible <bruno@clisp.org>
20789 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
20790 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
20791 Reported by Thorsten Maerz <torte@netztorte.de> via
20792 Aaron Stone <aaron@serendipity.cx>.
20794 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
20796 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
20797 gl_ rather than jm_. Link, don't run, so that cross-compiles are
20798 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
20799 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
20800 not really conditional on the cache.
20801 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
20803 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
20805 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
20806 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
20807 (my_usleep): Don't mishandle maximum value.
20809 2006-05-19 Jim Meyering <jim@meyering.net>
20811 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
20813 2006-05-17 Bruno Haible <bruno@clisp.org>
20815 Cygwin portability.
20816 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
20818 2006-05-17 Bruno Haible <bruno@clisp.org>
20820 * lib/stdint_.h: Fix recognition of Cygwin.
20822 2006-05-15 Bruno Haible <bruno@clisp.org>
20824 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
20825 on libtool patch by Ralf Wildenhues.
20827 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
20829 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
20830 test for C99 conformance; (bool) 0.5 is an integer constant
20831 expression, but (bool) -0.5 is not. Problem reported by Fedor
20832 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
20834 2006-05-11 Simon Josefsson <jas@extundo.com>
20836 * m4/xvasprintf.m4: Fix obvious typo.
20838 2006-05-11 Jim Meyering <jim@meyering.net>
20840 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
20843 2006-05-10 Simon Josefsson <jas@extundo.com>
20845 * lib/md4.c: Typo fix, update copyright years.
20846 (K1, K2): Don't use L because it turn computations into 64-bit on
20849 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
20851 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
20852 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
20853 unwanted sign propagation, e.g., on hosts with 64-bit int.
20854 There still are some problems with reeelly weird theoretical hosts
20855 (e.g., 33-bit int) but it's not worth worrying about now.
20856 * lib/sha1.c (rol): Likewise.
20857 (K1, K2, K3, K4): Remove unnecessary L suffix.
20859 2006-05-10 Bruno Haible <bruno@clisp.org>
20861 * lib/des.c: Cast to avoid warnings.
20863 2006-05-09 Bruno Haible <bruno@clisp.org>
20865 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
20866 (Depends-on): Depend also on xsize, stdarg.
20867 (configure.ac): Add gl_XVASPRINTF.
20869 2006-05-09 Bruno Haible <bruno@clisp.org>
20871 * m4/xvasprintf.m4: New file.
20873 2006-05-09 Bruno Haible <bruno@clisp.org>
20875 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
20876 (EOVERFLOW): Define fallback value.
20877 (xstrcat): New function.
20878 (xvasprintf): Recognize the special case of a string concatenation.
20880 2006-05-08 Eric Blake <ebb9@byu.net>
20882 * gnulib-tool (func_version): Base copyright year on CVS date.
20883 (func_emit_copyright_notice): New function.
20884 (func_emit_lib_Makefile_am): Use it.
20885 (func_emit_tests_Makefile_am): Likewise.
20886 (func_import): Likewise.
20888 2006-05-08 Bruno Haible <bruno@clisp.org>
20890 * modules/stdarg: New file.
20891 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
20893 2006-05-08 Bruno Haible <bruno@clisp.org>
20895 * m4/stdarg.m4: New file, from GNU gettext.
20897 2006-05-08 Bruno Haible <bruno@clisp.org>
20899 * config/srclist.txt (build-aux/config.rpath): different from latest
20902 2006-05-08 Bruno Haible <bruno@clisp.org>
20904 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
20906 2006-05-05 Jim Meyering <jim@meyering.net>
20908 * m4/warning.m4: New file, derived from bison's file by the same name.
20910 2006-05-03 Bruno Haible <bruno@clisp.org>
20912 * lib/stdint_.h: Shorter URL.
20913 * lib/inttypes.h: Likewise.
20915 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
20917 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
20919 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
20921 * lib/verify.h: Document the internals better. Most of this change
20922 was written by Bruno Haible.
20924 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
20926 * doc/verify.texi: New file, partly based on a proposal by
20929 2006-05-02 Bruno Haible <bruno@clisp.org>
20931 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
20933 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
20935 2006-04-29 Bruno Haible <bruno@clisp.org>
20937 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
20938 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
20940 2006-04-29 Bruno Haible <bruno@clisp.org>
20942 * gnulib-tool: Make --update option actually work.
20944 2006-04-29 Bruno Haible <bruno@clisp.org>
20946 * doc/gcd.texi: New file.
20947 * doc/gnulib.texi: Include it.
20949 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
20951 * lib/getdate.y (get_date): When adding relative date, start with the
20952 initial time, not with the result of the first mktime call.
20954 2006-04-25 Bruno Haible <bruno@clisp.org>
20956 * gnulib-tool (func_import): Output the include directives in three
20957 blocks, sorted separately.
20958 Reported by Ben Pfaff <blp@cs.stanford.edu>.
20960 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
20962 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
20963 to define main with arguments, for C++. Reported by Eric Blake.
20964 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
20965 Prefer 'int main ()' to 'int main (void)', for C++.
20966 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20967 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
20968 for 'main', for C99 and C++.
20970 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
20972 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
20973 Don't assume that exit status -1 is valid.
20974 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20975 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20976 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20977 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
20978 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
20979 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
20980 not AC_TRY_RUN. Use return, not exit. Don't assume that
20981 functions can be used without declaring them, or that you can
20982 exit with status -1.
20983 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
20985 2006-04-24 Karl Berry <karl@gnu.org>
20987 * config/srclist.txt (longdouble.m4): sync lost.
20989 2006-04-24 Eric Blake <ebb9@byu.net>
20991 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
20993 2006-04-24 Bruno Haible <bruno@clisp.org>
20995 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
20996 poll() implementation in AIX.
20997 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20999 2006-04-24 Bruno Haible <bruno@clisp.org>
21001 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
21002 assigned exactly once.
21004 2006-04-23 Claudio Fontana <claudio@gnu.org>
21005 Bruno Haible <bruno@clisp.org>
21007 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
21008 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
21011 2006-04-23 Bruno Haible <bruno@clisp.org>
21013 * modules/copy-file: Depend on unistd.
21014 * modules/execute: Likewise.
21015 * modules/fatal-signal: Likewise.
21016 * modules/findprog: Likewise.
21017 * modules/mkdtemp : Likewise.
21018 * modules/pipe: Likewise.
21019 * modules/wait-process: Likewise.
21021 2006-04-23 Bruno Haible <bruno@clisp.org>
21023 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
21024 condition was already detected.
21025 Reported by Ben Pfaff <blp@cs.stanford.edu>.
21027 2006-04-23 Bruno Haible <bruno@clisp.org>
21029 * lib/copy-file.c: Include <unistd.h> unconditionally.
21030 * lib/execute.c: Likewise.
21031 * lib/fatal-signal.c: Likewise.
21032 * lib/findprog.c: Likewise.
21033 * lib/mkdtemp.c: Likewise.
21034 * lib/pipe.h: Likewise.
21035 * lib/pipe.c: Likewise.
21036 * lib/wait-process.h: Likewise.
21038 2006-04-23 Bruno Haible <bruno@clisp.org>
21040 * gnulib-tool (func_usage): Fix --import description. Document
21042 (func_import): Create temporary file in a temporary directory, if
21043 --dry-run is specified. Silence errors from 'grep' when there are no
21044 m4 files in $m4dir.
21045 (func_create_testdir): Silence errors from 'grep' when there are no
21046 m4 files in $m4dir.
21047 Reported by Karl Berry <karl@freefriends.org>.
21049 2006-04-20 Bruno Haible <bruno@clisp.org>
21051 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
21052 one argument, so that the code will be portable to Autoconf 2.60.
21053 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
21054 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
21055 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
21057 2006-04-19 Derek Price <derek@ximbiot.com>
21058 Eric Blake <ebb9@byu.net>
21060 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
21061 rather than "/full/path.h". Update comment to match. Shorten &
21062 generalize m4_translit call via AS_TR_CPP.
21064 2006-04-19 Derek Price <derek@ximbiot.com>
21065 Eric Blake <ebb9@byu.net>
21067 * lib/inttypes.h: Correct grammar in comment.
21069 2006-04-18 Derek Price <derek@ximbiot.com>
21070 Paul Eggert <eggert@cs.ucla.edu>
21072 * modules/inttypes: New file.
21073 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
21075 2006-04-18 Derek Price <derek@ximbiot.com>
21076 Paul Eggert <eggert@cs.ucla.edu>
21078 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
21081 2006-04-18 Derek Price <derek@ximbiot.com>
21082 Paul Eggert <eggert@cs.ucla.edu>
21084 * lib/inttypes.h: New file.
21085 * lib/strtoimax.c: Assume <inttypes.h>.
21087 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
21089 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
21090 isn't mounted. Problem reported by Kir Kolyshkin.
21092 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
21094 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
21095 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
21097 * lib/regex.h (RE_DUP_MAX): Update comment to match current
21100 2006-04-12 Eric Blake <ebb9@byu.net>
21102 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
21103 is now done automatically by the corresponding Autoconf macro.
21105 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
21107 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
21110 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
21112 Merge regex changes from libc, removing some of our
21113 POSIX-conformance changes that were rejected and redoing them in a
21114 less-intrusive way.
21116 * lib/regcomp.c (re_compile_internal, init_dfa):
21117 Length arg is now size_t, not Idx. All uses changed.
21118 (peek_token): Forward decl now says internal_function.
21119 (__re_error_msgid, __re_error_msgid_idx):
21120 Now static rather than extern with attribute_hidden.
21121 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
21122 For some reason libc prefers K&R style defns for external functions.
21123 (regerror) [!defined _LIBC]: Likewise.
21124 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
21125 (seek_collating_symbol_entry, lookup_collation_sequence_value):
21126 (build_range_exp, build_collating_symbol):
21127 Use K&R-style defn.
21128 (re_compile_fastmap): Use '\0' to memset, not 0.
21129 (utf8_sb_map): Make the calculations more obvious.
21130 (init_dfa, parse_bracket_exp, build_charclass_op):
21131 Call calloc and cast result, as glibc does.
21132 (init_word_char, fetch_token, peek_token, peek_token_bracket):
21133 (build_range_exp, build_collating_symbol):
21134 Now internal functions.
21136 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
21138 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
21139 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
21140 Don't depend on VMS; depend on __VMS instead, for POSIX
21141 namespace cleanness.
21142 (regoff_t): Define to ssize_t, not long int.
21144 Remove the REG_ macros named below. Instead, make the old names
21145 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
21147 (REG_BACKSLASH_ESCAPE_IN_LISTS):
21148 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
21149 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
21150 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
21151 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
21152 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
21153 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
21154 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
21155 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
21156 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
21157 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
21158 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
21159 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
21160 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
21161 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
21162 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
21163 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
21165 Remove. All uses replaced by the old RE_* names.
21166 (RE_BACKSLASH_ESCAPE_IN_LISTS):
21167 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
21168 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
21169 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
21170 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
21171 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
21172 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
21173 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
21174 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
21175 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
21176 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
21177 Don't bother having these macros be independent of each others'
21178 values, since they no longer exist in the POSIX name space.
21180 Rename the following member names back to their old names,
21181 unless !__USE_GNU_REGEX. All uses changed back.
21182 (buffer): Renamed from re_buffer.
21183 (allocated): Renamed from re_allocated.
21184 (used): Renamed from re_used.
21185 (syntax): Renamed from re_syntax.
21186 (fastmap): Renamed from re_fastmap.
21187 (translate): Renamed from re_translate.
21188 (can_be_null): Renamed from re_can_be_null.
21189 (regs_allocated): Renamed from re_regs_allocated.
21190 (fastmap_accurate): Renamed from re_fastmap_accurate.
21191 (no_sub): Renamed from re_no_sub.
21192 (not_bol): Renamed from re_not_bol.
21193 (not_eol): Renamed from re_not_eol.
21194 (newline_anchor): Renamed from re_newline_anchor.
21195 (num_regs): Renamed from rm_num_regs.
21196 (start): Renamed from rm_start.
21197 (end): Renamed from rm_end.
21199 (free_state): Move up a bit.
21201 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
21202 #define to be empty.
21203 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
21204 when that is what is intended.
21205 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
21206 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
21208 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
21209 All uses changed back to re_malloc, etc. It's now the caller's
21210 responsibility to check for overflow; all callers changed.
21211 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
21212 (re_x2nrealloc): Remove.
21213 (free_state): Remove decl.
21215 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
21216 (re_set_registers, re_exec):
21217 Use K&R-style defn.
21219 2006-01-31 Roland McGrath <roland@redhat.com>
21221 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
21222 Reported by Mike Frysinger <vapier@gentoo.org>.
21224 2006-01-15 Andreas Jaeger <aj@suse.de>
21227 * lib/regex_internal.c (re_string_reconstruct): Adjust for
21228 build_wcs_upper_buffer change.
21229 (build_wcs_upper_buffer): Change return type.
21231 2005-12-10 Ulrich Drepper <drepper@redhat.com>
21233 * lib/regex_internal.h: Include <stdint.h> if available.
21235 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
21237 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
21239 2005-10-14 Ulrich Drepper <drepper@redhat.com>
21241 * lib/regcomp.c: Adjust for changed secondary hash function.
21243 2005-09-30 Ulrich Drepper <drepper@redhat.com>
21245 * lib/regex.h: Pretty printing.
21246 Clean up namespace a bit.
21248 2005-09-30 Jakub Jelinek <jakub@redhat.com>
21250 * lib/regexec.c (update_cur_sifted_state, check_arrival,
21251 check_arrival_add_next_nodes): Avoid using uninitialized variable.
21253 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
21254 Ulrich Drepper <drepper@redhat.com>
21257 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
21259 (bitset_word_t): Renamed from bitset_word. All uses changed.
21261 2005-09-22 Ulrich Drepper <drepper@redhat.com>
21264 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
21265 * lib/regcomp.c: Remove unnecessary uses of
21266 unsigned RE_TRANSLATE_TYPE.
21267 * lib/regex_internal.h: Likewise.
21268 * lib/regex_internal.c: Likewise.
21269 * lib/regexec.c: Likewise.
21270 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
21272 2005-09-07 Ulrich Drepper <drepper@redhat.com>
21274 * lib/regexec.c (find_recover_state): Remove unnecessary
21276 (transit_state_bkref): Make DFA a const pointer.
21277 (get_subexp): Likewise.
21278 (check_arrival): Likewise.
21279 (update_cur_sifted_state): Likewise.
21280 (re_search_internal): Likewise.
21281 (prune_impossible_nodes): Likewise.
21282 (acquire_init_state_context): Likewise.
21283 (proceed_next_node): Likewise.
21284 (set_regs): Likewise.
21285 (free_fail_stack_return): Likewise.
21286 (check_arrival_expand_ecl): Mark DFA parameter as const.
21287 (check_arrival_expand_ecl_sub): Likewise.
21288 (check_subexp_limits): Likewise.
21289 (sub_epsilon_src_nodes): Likewise.
21290 (add_epsilon_src_nodes): Likewise.
21291 (merge_state_array): Likewise.
21292 (update_regs): Likewise.
21293 (build_trtable): Likewise.
21294 (sift_states_backward): Mark MCTX parameter as const.
21295 (build_sifted_states): Likewise.
21296 (update_cur_sifted_state): Likewise.
21297 (sift_states_mkref): Likewise.
21298 (check_arrival_expand_ecl): Mark eclosure as const.
21299 (check_dst_limits_calc_pos_1): Likewise.
21300 * lib/regex_internal.h (re_match_context_t): Make dfa a const
21303 2005-09-06 Ulrich Drepper <drepper@redhat.com>
21305 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
21306 (transit_state_sb): Likewise.
21307 (transit_state_mb): Likewise.
21308 (sift_states_iter_mb): Likewise.
21309 (check_arrival_add_next_nodes): Likewise.
21310 (check_node_accept_bytes): Change first parameter to pointer-to-const.
21311 [_LIBC] (re_search_2_stub): Use mempcpy.
21313 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
21314 mbrtowc for very simple UTF-8 case.
21316 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
21317 a pointer-to-const.
21318 (re_acquire_state_context): Likewise.
21319 * lib/regex_internal.h: Adjust prototypes.
21321 * lib/regex.c: Prevent using C++ compilers.
21323 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
21324 (re_acquire_state_context): Likewise.
21326 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
21328 * modules/regex (Depends-on): Add ssize_t.
21330 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
21332 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
21335 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
21337 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
21339 2006-03-29 Mark D. Baushke <mdb@gnu.org>
21340 Bruno Haible <bruno@clisp.org>
21342 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
21343 <sys/types.h> and <inttypes.h>.
21345 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21347 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
21348 `__error_t_defined', so argp.h will not typedef the former.
21350 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
21352 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
21353 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
21354 glibc names. Even if glibc is changed to conform to POSIX, the
21355 traditional names will be available anyway, since regex depends on
21356 the extensions module. Also, fix a longstanding typo in the
21357 implementation of Spencer ERE test #75 from grep 2.3. Problems
21358 reported by Emanuele Giaquinta. Also, change sense of cached
21359 variable, so that the message makes sense.
21361 2006-03-24 Simon Josefsson <jas@extundo.com>
21363 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
21364 including some doc fixes.
21365 (base64_encode_alloc): Fix +1 bug on allocation failures.
21367 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21369 * lib/base64.c (base64_encode): Do not read past end of array with
21370 unsanitized input on systems with CHAR_BIT > 8.
21372 2006-03-24 Eric Blake <ebb9@byu.net>
21374 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
21376 2006-03-22 Karl Berry <karl@gnu.org>
21378 * config/srclist.txt (*setenv.[ch]): get from coreutils.
21379 * config/srclistvars.sh (COREUTILS): new var.
21381 2006-03-17 Jim Meyering <jim@meyering.net>
21383 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
21384 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
21386 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
21388 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
21389 no longer needs it. Instead, check that regoff_t is as least
21390 as wide as ptrdiff_t.
21392 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
21393 so that our regex.h stays compatible with the installed regex.
21394 This is helpful for installers who configure --without-included-regex.
21395 Problem reported by Emanuele Giaquinta.
21397 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
21399 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
21400 Typedef to long int, not to off_, as POSIX will likely change
21403 2006-03-15 Eric Blake <ebb9@byu.net>
21405 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
21407 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
21409 * lib/argp-help.c (validate_uparams): Fix typo
21410 * lib/argp-parse.c (argp_default_options): Consistently begin help
21411 messages with a lowercase letter.
21413 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
21415 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
21416 overrun buffers and shouldn't be used (much as gets shouldn't be
21418 * lib/time_r.c (asctime_r, ctime_r): Likewise.
21420 2006-03-08 Simon Josefsson <jas@extundo.com>
21422 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
21423 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21425 2006-03-08 Simon Josefsson <jas@extundo.com>
21427 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
21428 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21430 2006-03-08 Simon Josefsson <jas@extundo.com>
21432 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
21433 signal that configure disabled the device.
21435 2006-03-08 Simon Josefsson <jas@extundo.com>
21437 * build-aux/maint.mk: Fix refresh-po, to handle no translated
21440 2006-03-07 Simon Josefsson <jas@extundo.com>
21442 * modules/getopt (Depends-on): Add unistd.
21444 * modules/unistd: New file.
21446 2006-03-07 Simon Josefsson <jas@extundo.com>
21448 * modules/gc-random: New file.
21450 2006-03-07 Simon Josefsson <jas@extundo.com>
21452 * m4/unistd_h.m4: New file.
21454 2006-03-07 Simon Josefsson <jas@extundo.com>
21456 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
21457 test to be side-effect free by storing the result in the cache
21458 variable gl_cv_lib_readline, and moving the assignment of
21459 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
21460 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21462 2006-03-07 Simon Josefsson <jas@extundo.com>
21464 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
21465 error on missing devices (the functions will return an error).
21467 * m4/gc.m4: Move random stuff to gc-random.m4
21469 2006-03-07 Simon Josefsson <jas@extundo.com>
21471 * lib/unistd_.h: New file.
21473 2006-03-07 Simon Josefsson <jas@extundo.com>
21475 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
21477 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
21479 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
21480 Problem reported by Juan Manuel Guerrero.
21482 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
21484 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
21486 * lib/getlogin_r.c: Likewise.
21487 * lib/getlogin_r.h: Likewise.
21488 * lib/glob.c: Likewise.
21489 * lib/pagealign_alloc.c: Likewise.
21490 * lib/unistd_.h: Remove; no longer needed.
21492 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
21494 * MODULES.html.sh (Support for systems lacking POSIX:2001):
21496 * modules/c-stack (Depends-on): Add unistd.
21497 * modules/getlogin_r: Likewise.
21498 * modules/glob: Likewise.
21499 * modules/pagealign_alloc: Likewise.
21500 * modules/unistd (Files): Remove lib/unistd_.h.
21501 (EXTRA_DIST): Remove.
21502 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
21504 (MOSTLYCLEANFILES): Remove unistd.h-t.
21506 2006-03-03 Simon Josefsson <jas@extundo.com>
21508 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
21510 2006-03-03 Simon Josefsson <jas@extundo.com>
21512 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
21515 2006-03-03 Simon Josefsson <jas@extundo.com>
21517 * build-aux/maint.mk: Add indent target.
21519 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
21521 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
21522 our replacement poll.h in any case, to avoid a differing
21523 declaration from a system header. Seen on AIX.
21525 2006-03-01 Simon Josefsson <jas@extundo.com>
21527 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
21530 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
21532 * modules/gettime (Depends-on): Add extensions module.
21533 * modules/nanosleep (Depends-on): Likewise.
21534 * modules/settime (Depends-on): Likewise.
21536 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
21538 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
21539 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
21541 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21542 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
21544 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
21545 not "==". Reported by Ralf Wildenhues.
21547 2006-03-01 Karl Berry <karl@gnu.org>
21549 * doc/Copyright/request-*: new files, synced from gnuorg.
21551 2006-03-01 Karl Berry <karl@gnu.org>
21553 * config/srclist.txt (Copyright/*): new entries.
21555 2006-02-28 Simon Josefsson <jas@extundo.com>
21557 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
21559 2006-02-27 Simon Josefsson <jas@extundo.com>
21561 * lib/base64.h: Indent #define's. From Jim Meyering
21562 <jim@meyering.net>.
21564 2006-02-27 Jim Meyering <jim@meyering.net>
21566 Revert the change of 2006-02-24, so these files can continue
21567 to be sync'd from gettext.
21568 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
21571 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
21573 * modules/intprops: New file.
21574 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21576 * modules/getloadavg (Files): Remove lib/intprops.h.
21577 (Depends-on): Add intprops.
21578 * modules/human: Likewise.
21579 * modules/inttostr: Likewise.
21580 * modules/openat: Likewise.
21581 * modules/sig2str: Likewise.
21582 * modules/userspec: Likewise.
21583 * modules/utimecmp: Likewise.
21584 * modules/xnanosleep: Likewise.
21585 * modules/xstrtol: Likewise.
21587 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
21589 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
21590 * modules/lock-tests (TESTS): Use $(EXEEXT).
21591 * modules/tls-tests: Likewise.
21592 * modules/argp-tests: Likewise.
21593 (check_PROGRAMS): New var, replacing...
21594 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
21596 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21598 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
21601 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
21603 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
21605 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21607 Sync from coreutils.
21608 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
21611 2006-02-22 Jim Meyering <jim@meyering.net>
21613 Sync from coreutils.
21614 * m4/chdir-safer.m4: New file.
21616 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
21618 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
21619 AT_FDCWD exceeds INT_MAX.
21620 * lib/openat.h (AT_FDCWD): Likewise.
21622 2006-02-17 Eric Blake <address@hidden>
21624 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
21626 2006-02-16 Simon Josefsson <jas@extundo.com>
21628 * modules/getaddrinfo (Depends-on): Add sys_socket.
21630 2006-02-15 Simon Josefsson <jas@extundo.com>
21632 * build-aux/maint.mk: Add dsyntax-check rule.
21634 2006-02-15 Eric Blake <ebb9@byu.net>
21636 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
21637 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
21638 'present but cannot compile' warnings on cygwin.
21639 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
21640 use ws2tcpip.h if sys/socket.h works.
21641 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
21642 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
21644 2006-02-14 Simon Josefsson <jas@extundo.com>
21646 * modules/maintainer-makefile (Files): Rename.
21648 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
21649 and (the local) Makefile.cfg to maint-cfg.mk.
21651 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
21654 * modules/maintainer-makefile: New module.
21656 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
21657 severaly stripped to make it possible to build it up from scratch
21658 with reliable tests.
21660 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
21661 fixes to permit overriding the default actions when configure and
21662 makefile are not available.
21664 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
21666 Sync from coreutils.
21667 * modules/lstat (Depends-on): Don't depend on xalloc.
21668 (License): Change from GPL to LGPL, since this is now simply a
21669 replacement for a libc function.
21671 2006-02-14 Jim Meyering <jim@meyering.net>
21673 Sync from coreutils.
21675 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
21676 failure on deficient systems, and simplify gnulib lgpl dependencies.
21677 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
21678 xmalloc/lstat combination. Based on a patch from Bruno Haible.
21680 * lib/xalloc-die.c: Remove unused definition of N_.
21682 2006-02-14 Jim Meyering <jim@meyering.net>
21684 Sync from coreutils.
21685 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
21686 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
21687 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
21688 double-quote uses of that variable, to accommodate the rare case in
21689 which getmntent is available in none of the libraries checked. This
21690 happens at least on FreeBSD 5.0.
21692 2006-02-13 Simon Josefsson <jas@extundo.com>
21694 * gnulib-tool (Usage): Fix --import, from
21695 karl@freefriends.org (Karl Berry).
21697 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
21699 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
21701 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
21703 * lib/argp-namefrob.h: Restore changes accidentally lost during the
21704 "autoupdate" on 2005-12-12.
21706 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
21708 * modules/closeout (Depends-on): Remove atexit.
21710 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
21712 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
21713 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
21715 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
21717 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
21718 __EXTENSIONS__ if this causes compilation to fail. Problem
21719 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
21720 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
21722 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
21724 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
21725 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
21726 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
21729 2006-01-26 Simon Josefsson <jas@extundo.com>
21731 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
21732 prototype is visible on mingw32.
21734 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
21737 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
21740 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
21742 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
21743 attempt to open for write; this always fails, at least on POSIX
21744 hosts. This reinstates the 2006-01-09 change, which was
21745 inadvertently removed.
21747 2006-01-26 Bruno Haible <bruno@clisp.org>
21749 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
21750 Reported by Paul Eggert.
21752 2006-01-26 Bruno Haible <bruno@clisp.org>
21753 Paul Eggert <eggert@cs.ucla.edu>
21755 * lib/stdbool_.h (_Bool)
21756 [(! (defined __cplusplus || defined __BEOS__)
21757 && !defined __GNUC__
21758 && !(defined __HP_cc || defined __xlc__
21759 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
21760 || defined __sgi))]:
21761 #define to signed char in these cases too; this simplifies
21762 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
21763 etc., separately) and makes it more conservative.
21765 2006-01-25 Simon Josefsson <jas@extundo.com>
21767 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
21768 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
21769 ws2tcpip.h with WINVER=0x0501. All for mingw32.
21771 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
21773 * lib/argp-namefrob.h: Bugfix. Remove stray #
21775 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
21777 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
21778 so that we test the test.
21779 Check for yet another HP-UX cc bug involving *bool |= bool.
21781 2006-01-25 Karl Berry <karl@gnu.org>
21783 * config/srclist.txt (vasnprintf.c): sync lost.
21785 2006-01-25 Jim Meyering <jim@meyering.net>
21787 Sync from the stable (b5) branch of coreutils:
21789 * lib/fts.c (fts_children): Don't let close() clobber errno from
21792 * lib/fts.c (fts_stat): When following a symlink-to-directory,
21793 don't necessarily interpret stat-fails+lstat-succeeds as indicating
21794 a dangling symlink. That can also happen at least for ELOOP.
21795 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
21796 FYI, this bug predates the inclusion of fts.c in coreutils.
21798 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
21799 in their own block, so pre-c99 compilers don't object.
21801 Avoid the double-free (first in fts_read, second in fts_close) that
21802 would occur when an `active' directory is made inaccessible (e.g.,
21803 via chmod a-x) during a traversal.
21804 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
21805 before returning. Reproduce this failure by
21806 mkdir -p a/b; cd a; chmod a-x . b
21807 Reported by Stavros Passas.
21809 2006-01-25 Jim Meyering <jim@meyering.net>
21811 * lib/fileblocks.c: Remove more useless parentheses.
21812 * lib/readutmp.h: Likewise.
21814 2006-01-25 Bruno Haible <bruno@clisp.org>
21816 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
21818 Reported by Paul Eggert.
21820 2006-01-25 Bruno Haible <bruno@clisp.org>
21822 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
21823 rid of a trap command. For Solaris sh.
21824 Reported by Mark D. Baushke <mdb@gnu.org>.
21826 2006-01-24 Simon Josefsson <jas@extundo.com>
21828 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
21831 2006-01-24 Karl Berry <karl@gnu.org>
21833 * config/srclist.txt (argp-namefrob.h): sync lost.
21835 2006-01-24 Jim Meyering <jim@meyering.net>
21837 * modules/openat (Files): Add lib/intprops.h.
21838 From Mark D. Baushke.
21840 2006-01-24 Jim Meyering <jim@meyering.net>
21842 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
21843 Reported by Mark D. Baushke.
21845 2006-01-24 Jim Meyering <jim@meyering.net>
21847 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
21849 2006-01-24 Bruno Haible <bruno@clisp.org>
21851 * modules/strnlen (Maintainer): Change from glibc to all.
21853 2006-01-24 Bruno Haible <bruno@clisp.org>
21855 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
21856 Patch by Paul Eggert.
21858 2006-01-24 Bruno Haible <bruno@clisp.org>
21860 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
21862 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
21865 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
21866 'signed char' to avoid problems with the built-in _Bool type.
21867 Reported by Paul Eggert on 2005-11-26.
21869 2006-01-24 Bruno Haible <bruno@clisp.org>
21871 * gnulib-tool (func_import): Avoid constructing complicated sed
21872 expressions inside backquote.
21873 Report and solution by Mark D. Baushke <mdb@gnu.org>.
21875 2006-01-23 Ulrich Drepper <drepper@redhat.com>
21877 These changes imported from libc.
21878 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
21879 test and two separate function calls.
21880 * lib/strndup.c (__strndup): Add libc_hidden_def.
21882 2006-01-23 Simon Josefsson <jas@extundo.com>
21884 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
21885 Remove the test_*_SOURCES variable: automake infers it by default.
21886 * modules/tls-tests: Likewise.
21888 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
21890 Work around porting bugs reported by Dieter in
21891 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
21892 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
21893 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
21894 Include "getopt.h" first, to check interface.
21895 (getenv): Declare only if defined HAVE_DECL_GETENV &&
21897 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
21898 (__strndup): Revert to K&R-style function dfns, the glibc style.
21899 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
21900 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
21901 Include strnlen.h first, to get prototype properly.
21902 (strnlen): Renamed from __strnlen.
21905 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
21907 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
21909 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
21911 * config/srclist.txt: Adjust to reflect glibc reorganization.
21912 This affects only comments.
21914 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
21916 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
21917 Reported by Bruce Korb <bkorb@gnu.org>.
21919 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
21921 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
21922 to pacify gcc -Wswitch-default.
21924 2006-01-22 Bruno Haible <bruno@clisp.org>
21926 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
21927 temporary buffer for sprintf, take into account the precision also
21928 for 'd', 'i', 'u', 'o', 'x', 'X'.
21930 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
21932 * modules/argp-tests: New module
21933 * tests/test-argp.c: New file
21934 * tests/test-argp-2.sh: New file
21936 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
21938 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
21939 (__argp_base_name): Removed
21940 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
21942 (__argp_base_name): Provide macro definition or extern declaration
21943 depending on the configuration
21945 2006-01-20 Simon Josefsson <jas@extundo.com>
21947 * modules/inet_ntop (Depends-on): Depend on sys_socket.
21949 2006-01-20 Simon Josefsson <jas@extundo.com>
21951 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
21953 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
21955 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
21956 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
21957 Suggested by Bruno Haible.
21959 2006-01-20 Karl Berry <karl@gnu.org>
21961 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
21962 until changes propagate, I guess.
21964 2006-01-19 Simon Josefsson <jas@extundo.com>
21966 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
21968 2006-01-19 Simon Josefsson <jas@extundo.com>
21970 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
21972 2006-01-19 Simon Josefsson <jas@extundo.com>
21974 * gnulib-tool: Set check_PROGRAMS.
21976 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
21977 modules/des-tests, modules/gc-arcfour-tests,
21978 modules/gc-arctwo-tests, modules/gc-des-tests,
21979 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
21980 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
21981 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
21982 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
21983 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
21984 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
21985 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
21988 2006-01-18 Simon Josefsson <jas@extundo.com>
21990 * modules/socklen (Depends-on): Depend on sys_socket.
21992 2006-01-18 Simon Josefsson <jas@extundo.com>
21994 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
21995 modules/des-tests, modules/gc-arcfour-tests,
21996 modules/gc-arctwo-tests, modules/gc-des-tests,
21997 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
21998 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
21999 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
22000 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
22001 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
22002 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
22003 $(EXEEXT) to automake TESTS variable, for mingw32.
22005 2006-01-17 Simon Josefsson <jas@extundo.com>
22007 * modules/socklen (Include): Need sys/socket.h.
22009 2006-01-17 Bruno Haible <bruno@clisp.org>
22011 * modules/ssize_t (Include): Add <sys/types.h>.
22013 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
22015 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
22016 it's not portable and it doesn't work with cross-compiles.
22017 Problem reported by Bruno Haible. Fix missing-$ typo in
22018 'test "gl_cv_ignore_unused_libraries" ...' that prevented
22019 -zignore from being used with Sun's C compiler.
22021 2006-01-12 Simon Josefsson <jas@extundo.com>
22023 * lib/base64.c: Fix warning, reported by Bruno Haible
22024 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
22026 2006-01-12 Bruno Haible <bruno@clisp.org>
22028 * modules/ldd: New file.
22029 * build-aux/ldd.sh.in: New file.
22030 * MODULES.html.sh (Support for building libraries and executables): Add
22033 2006-01-12 Bruno Haible <bruno@clisp.org>
22035 * m4/ldd.m4: New file.
22037 2006-01-12 Bruno Haible <bruno@clisp.org>
22039 * gnulib-tool (func_import, func_create_testdir): Don't go into an
22040 endless loop while replacing $auxdir with build-aux.
22042 2006-01-11 Simon Josefsson <jas@extundo.com>
22044 * lib/stdint_.h (SIZE_MAX): Add missing (.
22046 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
22048 Sync from coreutils.
22049 * lib/md5.c: Fix commentary typos.
22050 (alignof, UNALIGNED_P): No need for a GCC-specific version.
22051 * lib/md5.h (__attribute__): Remove; unused.
22052 * lib/sha1.c: Fix commentary to match md5 better.
22053 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
22054 so that we don't need to worry about alignment. All uses changed.
22055 This merges the 2005-10-28 md5 change into sha1.
22057 2006-01-11 Jim Meyering <jim@meyering.net>
22059 Sync from coreutils.
22060 * lib/md5.c (OP): Fix spacing.
22062 2006-01-11 Bruno Haible <bruno@clisp.org>
22064 Ensure automatic ordering between gl_LOCK and gl_ARGP.
22065 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
22066 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
22068 2006-01-11 Bruno Haible <bruno@clisp.org>
22070 Ensure automatic ordering between gl_LOCK and gl_ARGP.
22071 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
22072 the "early" section as well.
22074 2006-01-11 Bruno Haible <bruno@clisp.org>
22076 Avoid "ar: no archive members specified" error on MacOS X.
22077 * gnulib-tool (func_modules_add_dummy): New function.
22078 (func_import, func_create_testdir): Invoke it.
22080 2006-01-11 Bruno Haible <bruno@clisp.org>
22082 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
22083 with $auxdir in AC_CONFIG_FILES statements.
22085 2006-01-11 Bruno Haible <bruno@clisp.org>
22087 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22088 Initialize also noinst_HEADERS to empty.
22090 2006-01-11 Bruno Haible <bruno@clisp.org>
22092 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
22094 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
22097 2006-01-11 Bruno Haible <bruno@clisp.org>
22099 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
22100 overridable by the user.
22101 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22103 2006-01-10 Simon Josefsson <jas@extundo.com>
22105 * modules/sys_socket: New file.
22107 2006-01-10 Simon Josefsson <jas@extundo.com>
22109 * m4/sys_socket_h.m4: New file.
22111 2006-01-10 Simon Josefsson <jas@extundo.com>
22113 * lib/socket_.h: New file.
22115 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
22117 * modules/readutmp (Maintainer): Add myself.
22119 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
22121 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
22122 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
22123 People who are still concerned with buggy memcmp implementations
22124 can invoke gl_FUNC_MEMCMP themselves.
22126 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
22128 * lib/regex_internal.h (BITSET_WORD_BITS):
22129 Work around a bug in 64-bit PGC (before version 6.1-2), where the
22130 preprocessor mishandles large unsigned values as if they were signed.
22131 Problem reported by Claudio Fontana in
22132 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
22134 2006-01-10 Jim Meyering <jim@meyering.net>
22136 Avoid the double-free (first in fts_read, second in fts_close) that
22137 would occur when an `active' directory is made inaccessible (e.g.,
22138 via chmod a-x) during a traversal.
22139 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
22140 before returning. Reproduce this failure by
22141 mkdir -p a/b; cd a; chmod a-x . b
22142 Reported by Stavros Passas.
22144 Sync from coreutils.
22145 * lib/sha1.c: Tweak grammar in a comment.
22147 2006-01-10 Jim Meyering <jim@meyering.net>
22149 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
22150 Patch by Joerg Sonnenberger.
22152 2006-01-10 Bruno Haible <bruno@clisp.org>
22154 * modules/readutmp: Depend on module free.
22155 * modules/strtok_r: Depend on module restrict.
22157 2006-01-10 Bruno Haible <bruno@clisp.org>
22159 * modules/gettext (configure.ac): Add an invocation of
22160 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
22162 2006-01-10 Bruno Haible <bruno@clisp.org>
22164 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
22165 Reported by Werner Lemberg <wl@gnu.org>.
22167 2006-01-10 Bruno Haible <bruno@clisp.org>
22169 * lib/localcharset.c: Update from GNU gettext.
22171 2006-01-10 Bruno Haible <bruno@clisp.org>
22173 * lib/argp.h (__const): Remove macro. Use const instead.
22174 * lib/argp-fmtstream.h (__const): Likewise.
22175 * lib/glob_.h (__const): Remove macro.
22176 * lib/glob-libc.h: Use const instead of __const.
22178 2006-01-10 Bruno Haible <bruno@clisp.org>
22180 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
22182 Needed to avoid an automake error regarding the 'gettext' module.
22184 2006-01-09 Simon Josefsson <jas@extundo.com>
22186 * modules/inet_ntop (Depends-on): Add restrict.
22188 2006-01-09 Simon Josefsson <jas@extundo.com>
22190 * modules/gc-rijndael-tests (License): Put under LGPL.
22192 * modules/gc-des-tests (License): Likewise.
22194 * modules/gc-arcfour-tests (License): Likewise.
22196 * modules/gc-arctwo-tests (License): Likewise.
22198 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
22200 * modules/gc-hmac-sha1-tests (Files): Likewise.
22202 * modules/gc-hmac-md5-tests (License): Likewise.
22204 * modules/gc-sha1-tests (License): Likewise.
22206 * modules/gc-md5-tests (License): Likewise.
22208 * modules/gc-md4-tests (License): Likewise.
22210 * modules/gc-md2-tests (License): Likewise.
22212 * modules/gc-tests (License): Likewise.
22214 * modules/des-tests (License): Likewise.
22216 * modules/md4-tests (License): Likewise.
22218 * modules/md2-tests (License): Likewise.
22220 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
22222 Sync from coreutils:
22224 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
22225 * modules/lib-ignore: New file.
22226 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
22227 chdir-safer.m4, lchmod.m4.
22228 * modules/openat: Add mkdirat.c, openat-priv.h.
22230 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
22232 Sync from coreutils.
22233 * m4/lib-ignore.m4: New file.
22234 * m4/lchmod.m4: New file.
22236 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
22238 Sync from coreutils.
22239 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
22240 for write access: POSIX says that must fail.
22241 * lib/fts.c (diropen): Likewise.
22242 * lib/save-cwd.c (save_cwd): Likewise.
22243 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
22244 well, for minor improvements on hosts that lack O_DIRECTORY.
22245 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
22246 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
22247 Fall back on chown if open failed with EACCES.
22249 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
22250 Report an error at compile-time if only a 1-second nominal clock
22251 resolution is found.
22253 * lib/lchmod.h: New file.
22254 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
22255 (make_dir_parents): Use lchown rather than chown, and
22256 lchmod rather than chmod.
22258 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
22259 dummies too. Problem with "none" reported by Bob Proulx. Problem with
22260 "proc" reported by n0dalus.
22262 * lib/mountlist.c: Include <limits.h>.
22263 (dev_from_mount_options)
22264 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
22265 New function. It no longer assumes "dev=" has the System V meaning
22266 on Linux (since it doesn't). It also parses "dev=" more carefully.
22267 (read_file_system_list)
22268 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
22269 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
22272 * lib/posixtm.h (PDS_PRE_2000): New macro.
22273 * lib/posixtm.c (year): Arg is now syntax_bits rather than
22274 allow_century. All usages changed. Reject dates outside the range
22275 1969-1999 if PDS_PRE_2000 is used.
22277 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
22279 Sync from coreutils.
22280 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
22281 (Time of day items): Mention the possibility of leap seconds.
22282 Problem reported by Dr. David Alan Gilbert.
22284 2006-01-09 Jim Meyering <jim@meyering.net>
22286 Sync from coreutils.
22288 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
22290 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
22292 * lib/modechange.c (mode_compile): Reject an invalid mode string
22293 that starts with an octal digit. From Andreas Gruenbacher.
22295 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
22296 and dup to open_safer and dup_safer, respectively.
22297 (openat_permissive): Fix typo in comment.
22299 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
22300 "gettext.h"; either no longer needed or are guaranteed by openat.h.
22301 (_): Remove; no longer needed.
22302 (openat): Renamed from rpl_openat; no need for rpl_openat
22303 since openat.h renames openat for us.
22304 Replace most of the body with a call to openat_permissive,
22305 to avoid duplicate code.
22306 Port to (probably hypothetical) environments were mode_t is
22308 (openat_permissive): Require mode arg, so that we can check
22309 types better. Put it just after flags. Change cwd failure
22310 indicator from pointer-to-bool to pointer-to-errno-value.
22311 All callers changed.
22312 Invoke openat_save_fail and/or openat_restore_fail if
22313 cwd_errno is null, so that openat can call us.
22314 (openat_permissive, fdopendir, fstatat, unlinkat):
22315 Simplify errno handling to avoid some duplicate code,
22316 as it's OK to set errno on success.
22317 * lib/openat.h: Revamp code so that function macros depend on
22318 __OPENAT_PREFIX only, not also on AT_FDCWD.
22319 (openat_ro): Remove. Caller changed to use openat_permissive.
22320 (openat_permissive): Now a macro, if not a function.
22321 (openat_restore_fail, openat_save_fail): Now always functions,
22322 since mkdirat needs them even if __OPENAT_PREFIX is defined.
22324 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
22326 * lib/mkdirat.c: Include openat-priv.h.
22327 Remove definitions of macros defined therein.
22328 * lib/openat.c: Likewise.
22330 * lib/mkdirat.c (mkdirat): New file and function.
22331 * lib/openat.h (mkdirat): Declare.
22333 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
22335 * lib/openat.h (openat_permissive): Declare.
22336 (openat_ro): Define.
22338 * lib/openat.c (EXPECTED_ERRNO): New macro.
22339 (openat_permissive): New function -- used in remove.c rewrite.
22340 (all functions): Set errno just before returning, only if there
22341 was an actual failure.
22342 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
22344 Emulate openat-family functions using Linux's procfs, if possible.
22345 Idea and some code based on Ulrich Drepper's glibc changes.
22347 * lib/openat.c: (BUILD_PROC_NAME): New macro.
22348 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
22349 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
22350 before falling back on save_cwd and restore_cwd.
22351 (fdopendir, fstatat, unlinkat): Likewise.
22353 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
22354 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
22356 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
22357 as second argument to va_arg. Otherwise, some versions of gcc
22358 warn that `if this code is reached, the program will abort'.
22360 2006-01-09 Jim Meyering <jim@meyering.net>
22362 Sync from coreutils.
22363 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
22364 Require openat-priv.h.
22366 2006-01-09 Bruno Haible <bruno@clisp.org>
22368 * modules/strnlen (Include): Use strnlen.h.
22370 2006-01-09 Bruno Haible <bruno@clisp.org>
22372 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
22374 2006-01-09 Bruno Haible <bruno@clisp.org>
22376 * lib/sysexit_.h (EX_OK): New macro.
22377 Suggested by Martin Lambers <marlam@marlam.de>.
22379 2006-01-09 Bruno Haible <bruno@clisp.org>
22381 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
22382 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
22384 2006-01-09 Bruno Haible <bruno@clisp.org>
22386 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
22389 2006-01-09 Bruno Haible <bruno@clisp.org>
22391 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
22392 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
22393 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
22394 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
22396 2006-01-09 Bruno Haible <bruno@clisp.org>
22398 * build-aux/javacomp.sh.in: New file, moved from lib/.
22399 * modules/javacomp-script (Files): Update.
22400 (configure.ac): Add AC_CONFIG_FILES invocation.
22401 (EXTRA_DIST): Remove variable.
22403 * build-aux/javaexec.sh.in: New file, moved from lib/.
22404 * modules/javaexec (Files): Update.
22405 (configure.ac): Add AC_CONFIG_FILES invocation.
22406 (EXTRA_DIST): Remove javaexec.sh.in.
22408 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
22409 * modules/csharpcomp-script (Files): Update.
22410 (configure.ac): Add AC_CONFIG_FILES invocation.
22411 (EXTRA_DIST): Remove variable.
22413 * build-aux/csharpexec.sh.in: New file, moved from lib/.
22414 * modules/csharpexec (Files): Update.
22415 (configure.ac): Add AC_CONFIG_FILES invocation.
22416 (EXTRA_DIST): Remove csharpexec.sh.in.
22418 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
22420 Sync from coreutils.
22422 Add POSIX ACL support
22423 * lib/acl.h (copy_acl, set_acl): Add declarations.
22424 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
22425 systems other than Linux.
22426 (chmod_or_fchmod): New function: use fchmod when possible,
22427 and chmod otherwise.
22428 (file_has_acl): Add a POSIX ACL implementation, with a
22429 Linux-specific subcase.
22430 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
22431 S_ISVTX from one file to another. Fall back to fchmod/chmod when
22432 acls are unsupported.
22433 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
22434 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
22437 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
22439 Sync from coreutils.
22440 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
22442 2006-01-07 Bruno Haible <bruno@clisp.org>
22444 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
22447 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
22449 * lib/strftime.c (tzname): Don't declare if it is already #defined.
22450 Problem reported for Mingw by Mark Junker.
22452 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
22454 * README: Gnulib normally doesn't generate a tarball.
22456 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
22458 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
22459 long int, not int, for nanosecond counts, so that people who are
22460 used to POSIX struct timespec won't be surprised. Reported by Jim
22463 2005-12-28 Bruno Haible <bruno@clisp.org>
22465 * build-aux/config.rpath: Update from GNU gettext.
22467 2005-12-16 Jim Meyering <jim@meyering.net>
22469 * modules/fprintftime: New module.
22470 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
22472 2005-12-16 Jim Meyering <jim@meyering.net>
22474 * m4/fprintftime.m4: New file.
22476 2005-12-16 Jim Meyering <jim@meyering.net>
22478 * lib/fprintftime.c, lib/fprintftime.h: New files.
22480 2005-12-15 Simon Josefsson <jas@extundo.com>
22482 * modules/socklen (configure.ac): Fix M4 macro name, to align with
22485 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
22487 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
22488 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
22490 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
22492 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
22493 * lib/argp-help.c (fill_in_uparams): Check if the constructed
22494 struct uparams is valid. Fall back to the default values if it is
22497 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
22499 * modules/argp (Files): Add argp-pin.c
22500 (Depends-on): dirname
22501 (lib_SOURCES): Add argp-pin.c
22503 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
22505 * m4/argp.m4: Check if program_invocation_name and
22506 program_invocation_short_name are declared and define appropriate
22507 macros if they are not.
22509 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
22511 * lib/argp-help.c (__argp_base_name): New function
22512 (__argp_short_program_name): Rewrite using __argp_base_name
22513 * lib/argp-namefrob.h: Define program_invocation_name and
22514 program_invocation_short_name if requested
22515 (__argp_base_name): Add prototype
22516 * lib/argp-parse.c (argp_def): Use gettext wrappers
22517 (argp_default_parser): Use __argp_base_name
22518 * lib/argp-pin.c: New file. Defines program_invocation_name and
22519 program_invocation_short_name on systems that lack them.
22521 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
22523 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
22524 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
22525 porting problem reported by Georg Schwarz in
22526 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
22528 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
22530 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
22531 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
22532 porting problem reported by Georg Schwarz in
22533 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
22535 2005-12-05 Bruno Haible <bruno@clisp.org>
22537 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
22538 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
22539 Reported by Mark Junker <mjscod@gmx.de>.
22541 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
22543 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
22544 Use implementation from Albert Chin, with some
22545 comments/corrections by Stepan Kasal and myself.
22547 2005-12-02 Bruno Haible <bruno@clisp.org>
22549 * gnulib-tool (func_import): Accept GPLed build tool modules when
22551 * modules/csharpcomp-script: New file.
22552 * modules/csharpcomp: Depend on it.
22553 * modules/javacomp-script: New file.
22554 * modules/javacomp: Depend on it.
22555 Suggested by Simon Josefsson.
22557 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
22559 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
22560 statement, to work around an HP-UX 10.20 compiler bug reported by
22563 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
22565 * modules/savedir (Depends-on): Add openat.
22567 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
22569 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
22570 (uintmax_t) [defined uintmax_t]: Do not declare.
22571 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
22572 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
22573 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
22574 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
22575 sake of portability to weird hosts that C allows (though we don't
22576 know of any practical examples).
22578 * lib/savedir.h (fdsavedir): New decl.
22579 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
22580 contains most of the former guts of savedir.
22581 (savedir): Use savedirstream.
22582 Include "openat.h".
22584 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
22586 * modules/obstack (Files): Add m4/ulonglong.m4.
22587 Problem reported by Davide Angelocola.
22589 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
22591 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
22592 coreutils no longer futzes with rounding modes.
22594 2005-11-14 Jim Meyering <jim@meyering.net>
22596 * lib/mkstemp-safer.c: Include <config.h>, required for possible
22597 replacement of mkstemp.
22599 2005-11-10 Simon Josefsson <jas@extundo.com>
22601 * lib/readline.c: Remove EOL.
22603 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
22605 * modules/gethrxtime (Depends-on): Add gettime.
22607 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
22609 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
22610 or gettimeofday; no longer needed.
22612 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
22614 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
22616 (gethrxtime) [! (HAVE_NANOUPTIME
22617 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
22618 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
22619 our own approximation.
22621 2005-11-08 Eric Blake <ebb9@byu.net>
22623 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
22625 2005-11-08 Eric Blake <ebb9@byu.net>
22627 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
22629 2005-11-04 Bruno Haible <bruno@clisp.org>
22631 * gnulib-tool: Implement --update mode.
22633 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
22635 Fix porting problem reported by Theodoros V. Kalamatianos.
22636 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
22637 Don't assume that futimes failing means we must fail.
22639 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
22641 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
22642 variables to suggest the intended function of the PATH_MAX check.
22644 2005-10-30 Kean Johnston <jkj@sco.com>
22646 Trivial changes to support SCO systems.
22647 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
22649 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
22650 where __ptr is null when no I/O is pending.
22652 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
22654 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
22655 leave errno alone. Problem reported by Dmitry V. Levin.
22657 2005-10-28 Simon Josefsson <jas@extundo.com>
22659 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
22662 * tests/test-gc-md2.c, tests/test-md2.c: New files.
22664 * modules/md2, modules/md2-tests: New files.
22666 2005-10-28 Simon Josefsson <jas@extundo.com>
22668 * m4/inet_ntop.m4: More tests.
22670 * m4/gc-md2.m4, md2.m4: New file.
22672 2005-10-28 Simon Josefsson <jas@extundo.com>
22674 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
22675 "restrict" keywords, as per POSIX. Protect the function
22676 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
22677 Don't use K&R prototypes. Check the sprintf return values.
22678 Re-define EAFNOSUPPORT if not present. Indent.
22680 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
22681 suggested by Bruno Haible <bruno@clisp.org>.
22683 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
22685 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
22687 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
22690 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
22692 * lib/md2.h, lib/md2.c: New files.
22694 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
22696 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
22697 errno alone. Problem reported by Frederic Jolliton.
22699 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
22701 * modules/verify (License): Change from GPL to LGPL. This is a
22702 tiny module and there are apparently near-equivalents that are
22703 under the BSD license.
22705 2005-10-24 Simon Josefsson <jas@extundo.com>
22707 * modules/sha1: Relicense to LGPL.
22709 2005-10-24 Simon Josefsson <jas@extundo.com>
22711 * lib/md4.h: Shrink buffer size, now that we changed the type.
22713 2005-10-23 Simon Josefsson <jas@extundo.com>
22715 * gnulib-tool (func_import): Fix --tests-base.
22717 2005-10-22 Simon Josefsson <jas@extundo.com>
22719 * modules/arcfour (Depends-on): Need stdint.
22721 2005-10-22 Simon Josefsson <jas@extundo.com>
22723 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
22724 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
22726 2005-10-22 Simon Josefsson <jas@extundo.com>
22728 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
22729 suggested by Bruno Haible <bruno@clisp.org>.
22731 2005-10-22 Simon Josefsson <jas@extundo.com>
22733 * lib/crc.h: Include stddef.h, for size_t.
22735 2005-10-22 Simon Josefsson <jas@extundo.com>
22737 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
22738 arcfour_context struct (simplify test vector testing in GNU
22741 2005-10-21 Simon Josefsson <jas@extundo.com>
22743 * modules/des, modules/des-tests: New files.
22745 * modules/gc-des, modules/gc-des-tests: New files.
22747 * tests/test-des.c, tests/test-gc-des.c: New file.
22749 2005-10-21 Simon Josefsson <jas@extundo.com>
22751 * modules/arctwo, modules/arctwo-tests: New files.
22753 * tests/test-arctwo.c: New file.
22755 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
22757 * tests/test-gc-arctwo.c: New file.
22759 2005-10-21 Simon Josefsson <jas@extundo.com>
22761 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
22762 Bruno Haible <bruno@clisp.org>.
22764 * m4/gc-des.m4: New file.
22766 2005-10-21 Simon Josefsson <jas@extundo.com>
22768 * m4/arctwo.m4: New file.
22770 * m4/gc-arctwo.m4: New file.
22772 2005-10-21 Simon Josefsson <jas@extundo.com>
22774 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
22777 2005-10-21 Simon Josefsson <jas@extundo.com>
22779 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
22782 * lib/hmac-sha1.c (hmac_sha1): Likewise.
22784 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
22785 Bruno Haible <bruno@clisp.org>.
22787 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
22790 2005-10-21 Simon Josefsson <jas@extundo.com>
22792 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
22794 2005-10-21 Simon Josefsson <jas@extundo.com>
22796 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
22798 2005-10-21 Simon Josefsson <jas@extundo.com>
22800 * lib/des.h, lib/des.c: New files.
22802 * lib/gc-gnulib.c: Support DES.c
22804 2005-10-21 Simon Josefsson <jas@extundo.com>
22806 * lib/arctwo.h, lib/arctwo.c: New files.
22808 * lib/gc-gnulib.c: Support ARCTWO.
22810 2005-10-21 Simon Josefsson <jas@extundo.com>
22812 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
22813 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22815 2005-10-21 Simon Josefsson <jas@extundo.com>
22817 * gnulib-tool (func_import, func_create_testdir): Define automake
22818 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
22819 Makefile.am snippet),
22820 suggested by Bruno Haible <bruno@clisp.org>.
22822 * modules/gc (Makefile.am): Use it.
22824 2005-10-21 Bruno Haible <bruno@clisp.org>
22826 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
22829 2005-10-19 Simon Josefsson <jas@extundo.com>
22831 * tests/test-gc-rijndael.c: New file.
22833 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
22835 2005-10-19 Simon Josefsson <jas@extundo.com>
22837 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
22840 2005-10-19 Simon Josefsson <jas@extundo.com>
22842 * tests/test-gc-arcfour.c: New file.
22844 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
22846 2005-10-19 Simon Josefsson <jas@extundo.com>
22848 * modules/gc-md4, modules/gc-md4-tests: New file.
22850 * tests/test-gc-md4.c: New file.
22852 2005-10-19 Simon Josefsson <jas@extundo.com>
22854 * m4/gc-md4.m4: New file.
22856 2005-10-19 Simon Josefsson <jas@extundo.com>
22858 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
22859 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
22862 2005-10-19 Simon Josefsson <jas@extundo.com>
22864 * m4/gc-arcfour.m4: New file.
22866 * m4/gc-rijndael.m4: New file.
22868 2005-10-19 Simon Josefsson <jas@extundo.com>
22870 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
22872 2005-10-19 Simon Josefsson <jas@extundo.com>
22874 * lib/gc-gnulib.c: Support ARCFOUR.
22876 2005-10-19 Simon Josefsson <jas@extundo.com>
22878 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
22881 * lib/gc.h: Add ECB enum type.
22883 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
22885 2005-10-18 Simon Josefsson <jas@extundo.com>
22887 * tests/test-md5.c: New file.
22889 * modules/md5-tests: New file.
22891 2005-10-18 Simon Josefsson <jas@extundo.com>
22893 * tests/test-md4.c: New file.
22895 * modules/md4, modules/md4-tests: New files.
22897 2005-10-18 Simon Josefsson <jas@extundo.com>
22899 * m4/md4.m4: New file.
22901 2005-10-18 Simon Josefsson <jas@extundo.com>
22903 * lib/md4.h, lib/md4.c: New files, based on md5.?.
22905 2005-10-17 Stepan Kasal <kasal@ucw.cz>
22907 * gnulib-tool (func_create_testdir): Omit the second check whether
22908 BUILT_SOURCES in nonempty.
22910 2005-10-17 Simon Josefsson <jas@extundo.com>
22912 * tests/test-rijndael.c: New file.
22914 2005-10-17 Simon Josefsson <jas@extundo.com>
22916 * modules/sha1: Depend on stdint instead of md5.
22918 * modules/md5: Depend on stdint, remove uint32_t.
22920 2005-10-17 Simon Josefsson <jas@extundo.com>
22922 * modules/gc-sha1-tests: New file.
22924 * tests/test-gc-sha1.c: New file.
22926 2005-10-17 Simon Josefsson <jas@extundo.com>
22928 * m4/md5.m4: Remove call to uint32_t.m4.
22930 2005-10-17 Simon Josefsson <jas@extundo.com>
22932 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
22934 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
22937 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
22939 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
22941 2005-10-17 Simon Josefsson <jas@extundo.com>
22943 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
22945 2005-10-17 Simon Josefsson <jas@extundo.com>
22947 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
22949 2005-10-17 Simon Josefsson <jas@extundo.com>
22951 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
22953 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
22955 2005-10-17 Bruno Haible <bruno@clisp.org>
22957 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
22958 that it can also be used in a test.
22960 2005-10-16 Bruno Haible <bruno@clisp.org>
22962 * gnulib-tool (func_emit_tests_Makefile_am): Also define
22963 TESTS_ENVIRONMENT, so that individual tests can augment it.
22965 * gnulib-tool (func_create_testdir): Use an intermediate target for
22966 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
22967 macros, like $(ALLOCA_H), which cannot be passed through the command
22970 2005-10-15 Simon Josefsson <jas@extundo.com>
22972 * modules/rijndael-tests: New file.
22974 * modules/rijndael: New file.
22976 2005-10-15 Simon Josefsson <jas@extundo.com>
22978 * m4/rijndael.m4: New file.
22980 2005-10-15 Simon Josefsson <jas@extundo.com>
22982 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
22984 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
22986 2005-10-14 Simon Josefsson <jas@extundo.com>
22988 * tests/test-arcfour.c: New file.
22990 * modules/arcfour, modules/arcfour-tests: New files.
22992 2005-10-14 Simon Josefsson <jas@extundo.com>
22994 * m4/arcfour.m4: New file.
22996 2005-10-14 Simon Josefsson <jas@extundo.com>
22998 * lib/arcfour.h, lib/arcfour.c: New files.
23000 2005-10-14 Roland McGrath <roland@redhat.com>
23002 Import from libc. [BZ #1331]
23003 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
23005 Reported by Matej Vela <vela@debian.org>.
23007 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
23009 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
23010 include <wchar.h>; no longer needed.
23012 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
23014 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
23016 2005-10-14 Jakub Jelinek <jakub@redhat.com>
23017 and Ulrich Drepper <drepper@redhat.com>
23020 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
23021 instead of inline stream orientation test and two separate
23022 function calls. Pay no attention to USE_IN_LIBIO.
23024 2005-10-13 Simon Josefsson <jas@extundo.com>
23026 * modules/gc-hmac-md5-tests: New file.
23028 * tests/test-gc-hmac-sha1.c: New file.
23030 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
23032 * modules/gc-hmac-md5-tests: New file.
23034 * tests/test-gc-md5.c: New file.
23036 * modules/gc-md5-tests: New file.
23038 2005-10-13 Simon Josefsson <jas@extundo.com>
23040 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
23041 Move memory allocation outside of loop.
23043 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
23045 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
23046 intermediate directory is in a read-only file system. Problem
23047 reported by Eric Blake.
23049 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
23051 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
23053 2005-10-12 Simon Josefsson <jas@extundo.com>
23055 * tests/test-hmac-sha1.c: New file.
23057 * modules/hmac-sha1-tests: New file.
23059 * modules/hmac-sha1: New file.
23061 2005-10-12 Simon Josefsson <jas@extundo.com>
23063 * modules/gc-sha1: New file.
23065 2005-10-12 Simon Josefsson <jas@extundo.com>
23067 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
23069 * tests/test-gc-pbkdf2-sha1.c: New file.
23071 2005-10-12 Simon Josefsson <jas@extundo.com>
23073 * modules/gc-md5, modules/gc-hmac-md5: New files.
23075 * modules/gc (Files): Remove md5, memxor and hmac files.
23077 2005-10-12 Simon Josefsson <jas@extundo.com>
23079 * m4/gc-pbkdf2-sha1.m4: New file.
23081 * m4/gc-hmac-sha1.m4: New file.
23083 * m4/gc-sha1: New file.
23085 * m4/hmac-sha1.m4: New file.
23087 2005-10-12 Simon Josefsson <jas@extundo.com>
23089 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
23091 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
23093 2005-10-12 Simon Josefsson <jas@extundo.com>
23095 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
23096 suggested by Bruno Haible <bruno@clisp.org>.
23098 2005-10-12 Simon Josefsson <jas@extundo.com>
23100 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
23102 2005-10-12 Simon Josefsson <jas@extundo.com>
23104 * lib/gc-pbkdf2-sha1.c: New file.
23106 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
23108 2005-10-12 Simon Josefsson <jas@extundo.com>
23110 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
23112 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
23114 2005-10-12 Simon Josefsson <jas@extundo.com>
23116 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
23117 GC_USE_HMAC_MD5, respectively.
23119 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
23120 (gc_md5): Fix typo.
23122 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
23124 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
23126 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
23128 2005-10-12 Bruno Haible <bruno@clisp.org>
23130 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
23131 Reported by Stepan Kasal <kasal@ucw.cz>.
23133 2005-10-11 Simon Josefsson <jas@extundo.com>
23135 * tests/test-crc.c: New file.
23137 * modules/crc, modules/crc-tests: New files.
23139 2005-10-11 Simon Josefsson <jas@extundo.com>
23141 * m4/crc.m4: New file.
23143 2005-10-11 Simon Josefsson <jas@extundo.com>
23145 * lib/gc.h: Add gc_hash and gc_hash_buffer.
23147 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
23149 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
23151 2005-10-11 Simon Josefsson <jas@extundo.com>
23153 * lib/crc.h, lib/crc.c: New files.
23155 * lib/gc.h (gc_hash_buffer): Add doc.
23157 2005-10-11 Bruno Haible <bruno@clisp.org>
23159 * modules/c-strcasestr: New file.
23160 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
23162 2005-10-11 Bruno Haible <bruno@clisp.org>
23164 * modules/c-strcase: New file.
23165 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
23167 2005-10-11 Bruno Haible <bruno@clisp.org>
23169 * lib/strcasecmp.c: Include limits.h.
23170 (strcasecmp): Avoid integer overflow on exotic platforms.
23171 * lib/strncasecmp.c: Include limits.h.
23172 (strncasecmp): Avoid integer overflow on exotic platforms.
23173 Reported by Paul Eggert.
23175 2005-10-11 Bruno Haible <bruno@clisp.org>
23177 * lib/c-strcasestr.h: New file, from GNU gettext.
23178 * lib/c-strcasestr.c: New file, from GNU gettext.
23180 2005-10-11 Bruno Haible <bruno@clisp.org>
23182 * lib/c-strcase.h: New file, from GNU gettext.
23183 * lib/c-strcasecmp.c: New file, from GNU gettext.
23184 * lib/c-strncasecmp.c: New file, from GNU gettext.
23186 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
23188 * modules/mempcpy (License): GPL -> LGPL.
23189 * modules/strchrnul (License): Likewise.
23190 * modules/sysexits (License): Likewise.
23192 2005-10-08 Simon Josefsson <jas@extundo.com>
23194 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
23196 2005-10-07 Simon Josefsson <jas@extundo.com>
23198 * m4/memxor.m4: Remove gl_C_RESTRICT call.
23200 2005-10-06 Simon Josefsson <jas@extundo.com>
23202 * tests/test-hmac-md5.c: New file.
23204 * modules/hmac-md5-tests: New file.
23206 * modules/hmac-md5: New file.
23208 2005-10-06 Simon Josefsson <jas@extundo.com>
23210 * m4/hmac-md5.m4: New file.
23212 * m4/memxor.m4: Require gl_C_RESTRICT.
23214 2005-10-06 Simon Josefsson <jas@extundo.com>
23216 * lib/memxor.c (memxor): Avoid casts and warnings.
23218 2005-10-06 Simon Josefsson <jas@extundo.com>
23220 * lib/hmac-md5.c: New file.
23222 * lib/hmac.h: New file.
23224 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
23226 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
23227 promotes to int, not unsigned int, to catch the AIX 5.3
23230 2005-10-05 Simon Josefsson <jas@extundo.com>
23232 * modules/memxor: New file.
23234 * modules/iconv (Files): Move config.rpath to havelib, it is used
23237 * modules/havelib (Files): Add config.rpath.
23239 2005-10-05 Simon Josefsson <jas@extundo.com>
23241 * m4/memxor.m4: New file.
23243 2005-10-05 Simon Josefsson <jas@extundo.com>
23245 * lib/memxor.c (memxor): Fix compiler error.
23247 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
23248 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
23250 * lib/memxor.h, lib/memxor.c: New files.
23252 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
23253 we assume all systems have it, suggested by Jim Meyering
23254 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
23255 any systems lack sys/socket.h; mingw32 is known to lack it, but we
23256 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
23259 2005-10-05 Simon Josefsson <jas@extundo.com>
23261 * config/srclist.txt: Add glibc bug 1423 for md5.h.
23263 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
23265 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
23266 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
23267 needed, since the source code now assumes these .h files.
23269 2005-10-05 Derek Price <derek@ximbiot.com>
23271 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
23273 2005-10-05 Bruno Haible <bruno@clisp.org>
23275 * modules/stdint (License): Change to LGPL.
23277 2005-10-04 Simon Josefsson <jas@extundo.com>
23279 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
23280 D. Baushke" <mdb@gnu.org>.
23282 2005-10-04 Bruno Haible <bruno@clisp.org>
23284 * lib/verify.h (verify_true): Provide alternative definition for C++.
23286 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
23288 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
23289 (SSIZE_MAX): New macro, if not already defined.
23290 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
23293 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
23295 Sync from coreutils.
23296 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
23297 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
23298 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
23299 ULLONG_MAX doesn't work with 2.7.2.1.
23301 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
23303 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
23306 * modules/exclude (Depends-on): Depend on verify.
23307 * modules/strtoimax (Depends-on): Likewise.
23308 * modules/utimecmp (Depends-on): Likewise.
23310 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
23312 * lib/exclude.c: Include verify.h.
23313 (verify): Remove. All callers changed to use verify.h's version.
23314 * lib/strtoimax.c: Likewise.
23315 * lib/utimecmp.c: Likewis.e
23317 Sync from coreutils.
23318 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
23319 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
23320 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
23321 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
23322 bother returning ENOSYS if settimeofday or stime fails; just let
23323 them return whatever errno they want to return.
23324 * lib/utimens.c: Include unistd.h, for dup2.
23325 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
23326 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
23328 2005-10-02 Jim Meyering <jim@meyering.net>
23330 Sync from coreutils.
23331 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
23332 from glibc-2.2.5 that fails for read-only files.
23334 2005-10-02 Jim Meyering <jim@meyering.net>
23336 Sync from coreutils.
23337 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
23338 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
23339 `#if HAVE_CONFIG_H'.
23340 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
23341 Remove AT_FDCWD test.
23342 Do not consume the fd unless successful.
23343 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
23344 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
23345 block, so that we don't even try to compile it if settimeofday is
23346 available. This works around a compilation failure on OSF1 V5.1,
23347 due to stime requiring a `long int*' while tv_sec is `int'.
23349 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
23351 Sync from coreutils.
23352 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
23353 against `yes', rather than just testing for nonempty.
23355 2005-10-01 Simon Josefsson <jas@extundo.com>
23357 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
23360 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
23361 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
23362 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
23363 freeaddrinfo and gai_strerror are declared by the POSIX headers.
23364 Check if struct addrinfo is declared.
23366 2005-10-01 Simon Josefsson <jas@extundo.com>
23368 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
23369 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
23370 AI_* and EAI_* definitions. Protect function declarations.
23372 2005-10-01 Jim Meyering <jim@meyering.net>
23374 Sync from coreutils.
23376 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
23377 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
23378 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
23379 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
23380 in the inet and nsl libraries. Required on Solaris 5.7.
23382 2005-10-01 Jim Meyering <jim@meyering.net>
23384 Sync from coreutils.
23385 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
23386 in the inet and nsl libraries. Required on Solaris 5.7.
23388 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
23390 * lib/getdelim.c (getdelim): Remove unused variables.
23392 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
23394 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
23395 so that the code works even with ancient cpp. Portability problem
23396 with GCC 2.7.2.1 reported by Thomas M.Ott.
23398 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
23400 * modules/regex (Depends-on): Add strcase.
23402 * modules/gethostname (Licence): Change from GPL to LGPL, since
23403 gethostname.c is a trivial implementation of a standard library
23405 * modules/poll (License): Change from GPL to LGPL, since it's
23406 derived from LGPL code.
23408 2005-09-27 Jim Meyering <jim@meyering.net>
23410 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
23413 * lib/intprops.h (signed_type_or_expr__): Define.
23414 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
23415 for unsigned types.
23417 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
23419 * lib/verify.h (verify_expr): Remove, replacing with:
23420 (verify_true): New macro that returns true instead of void.
23421 (verify_type__): Remove.
23422 (verify): Use verify_true rather than verify_type__.
23424 2005-09-26 Bruno Haible <bruno@clisp.org>
23426 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
23428 (lib_SOURCES): Remove mbchar.c.
23429 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
23430 (Files): Add m4/mbrtowc.m4.
23431 * modules/mbiter: Likewise.
23432 * modules/mbuiter: Likewise.
23434 2005-09-26 Bruno Haible <bruno@clisp.org>
23436 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
23437 compile mbchar.c if they are not both present.
23438 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
23439 * m4/mbiter.m4 (gl_MBITER): Likewise.
23440 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
23441 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
23442 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
23444 2005-09-25 Jim Meyering <jim@meyering.net>
23446 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
23447 also uses socklen_t.
23449 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
23451 * lib/utimens.c (ENOSYS): Define if not already defined.
23452 (futimens): Support having a null PATH if the file descriptor
23455 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
23457 (__attribute): Define to empty unless GCC 3.1 or later.
23458 This works around a core dump on OpenBSD 3.4, which has GCC
23459 2.95.3, which dumps core when given __attribute__(()). It also
23460 simplifies other tests, since we really don't want to bother with
23461 worrying about which ancient version of GCC supported what.
23462 Original problem reported by Yoann Vandoorselaere, with part of
23463 the fix suggested by Derek Price.
23465 2005-09-24 Jim Meyering <jim@meyering.net>
23467 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
23468 so we can once again use a positive bitfield width of 1 -- now we
23469 don't have to explain why we were using a bitfield width of 2.
23471 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
23473 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
23474 and similarly for the other external symbols. Problem reported
23477 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
23478 bug reported by Jim Meyering.
23480 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
23481 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
23482 not needed, since socklen is a prerequisite module.
23484 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
23486 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
23487 Problem reported by Eric Blake.
23488 (getaddrinfo): Initialize se so that it's not garbage.
23489 Redo internal storage allocation so that it doesn't make unportable
23490 assumptions about alignment.
23493 * lib/utimens.c (futimens): Use futimesat if available.
23494 Prefer it to futimes since it doesn't have the futimes bug.
23496 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
23497 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
23498 Instead, declare a function that returns a pointer to an array,
23499 and use verify_type__ to declare the size of the array.
23500 Problem and germ of a solution reported by Bruno Haible.
23501 (verify_type__): Use 2, not 1, for bitfield size, to avoid
23502 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
23504 2005-09-23 Jim Meyering <jim@meyering.net>
23506 Sync from coreutils.
23507 Correct build failure (socklen_t not defined) on at least
23508 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
23509 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
23511 2005-09-23 Jim Meyering <jim@meyering.net>
23513 * modules/getaddrinfo (Depends-on): Add socklen.
23515 2005-09-23 Bruno Haible <bruno@clisp.org>
23517 * tests/test-verify.c: New file.
23519 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
23521 Sync from coreutils.
23523 * modules/argmatch (Depends-on): Add verify.
23524 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
23526 * modules/save-cwd (Depends-on): Likewise.
23528 * modules/openat (Files): Add lib/openat-die.c.
23529 (Depends-on): Remove error, exitfail.
23532 * modules/verify: New file.
23533 * MODULES.html.sh (Diagnostics <assert.h>): New section,
23534 with "verify" module.
23536 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
23538 Sync from coreutils.
23540 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
23541 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
23542 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
23543 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
23544 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
23545 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
23546 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
23547 Don't bother checking for string.h, stdlib.h, unistd.h.
23548 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
23549 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
23551 * m4/jm-macros.m4 (gl_MACROS): Likewise.
23552 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
23554 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
23555 (gl_GETDATE): Use it.
23557 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
23559 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
23561 Sync from coreutils.
23563 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
23565 * lib/argmatch.h: Include verify.h
23566 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
23567 (ARGMATCH_ASSERT): Remove; unused.
23568 * lib/canonicalize.c: Assume STDC_HEADERS.
23569 * lib/exclude.c: Include "strcase.h".
23570 * lib/regex_internal.h [!defined _LIBC]: Likewise.
23571 * lib/getusershell.c: Include stdio--.h rather than stdio.h
23573 (getusershell): Call fopen, not fopen_safer.
23574 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
23575 Do not include unistd-safer.h.
23576 (save_cwd): Don't call fd_safer; no longer needed
23577 now that we include fcntl--.h.
23579 * lib/getdate.y (relative_time): New type.
23580 (RELATIVE_TIME_0): New constant.
23581 (parser_control): Use relative_time instead of doing it ourselves.
23582 (%union): Add new relative_time rel member.
23583 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
23585 (relunit, relunit_snumber): Now of type rel.
23586 (zone, rel, relunit, get_date): Adjust to above changes.
23588 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
23589 Do not include unistd-safer.h.
23590 (getloadavg): Don't call fd_safer; no longer needed
23591 now that we include fcntl--.h.
23593 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
23594 (make_dir_parents): Treat ENOSYS like EEXIST.
23596 Improve quality of diagnostics on restore_cwd failure.
23597 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
23598 (make_dir_parents): Last arg is now int * (for errno), not bool *.
23599 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
23600 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
23601 each time through the loop. Do not diagnose restore_cwd failure;
23602 that is the caller's job (and perhaps the caller does not care).
23604 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
23605 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
23606 If the file already exists but is not a directory, don't bother
23607 to try to make its parents.
23608 Close potential file descriptor leak if we can't chdir("/") (!).
23609 Don't always return true if chdir($PWD) fails; return true only
23610 if the requested action was done successfully (except for the
23612 Don't log final directory unless we actually made it.
23613 Refactor to avoid duplicate code to fix up permissions.
23614 Don't attempt to fix up parent permissions if chdir($PWD) fails.
23616 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
23617 to make it a bit faster and (I hope) clearer.
23618 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
23619 Fix bug in formats like %2N.
23621 * lib/verify.h: New file.
23623 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
23625 Sync from coreutils.
23626 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
23628 2005-09-22 Jim Meyering <jim@meyering.net>
23630 Sync from coreutils.
23632 * m4/lstat.m4 (gl_FUNC_LSTAT):
23633 Use AC_LIBSOURCES to require lstat.c and lstat.h.
23634 Remove obsolete comment.
23635 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
23636 * m4/xstrtod.m4: Likewise.
23638 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
23640 2005-09-22 Jim Meyering <jim@meyering.net>
23642 Sync from coreutils.
23644 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
23646 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
23647 the .tm_year member, since otherwise gcc-4.0 would now warn about
23648 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
23650 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
23651 order to avoid an unsuppressible warning from gcc on 64-bit systems.
23653 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
23654 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
23655 when run in a time zone for which daylight savings time is in effect
23656 for the starting date.
23658 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
23659 stop us from restricting permissions of just-created absolute-named
23661 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
23662 to restore initial working directory.
23663 * lib/mkdir-p.c (make_dir_parents): New parameter:
23664 different_working_dir, to tell caller if/when we change the working
23665 directory and are unable to return to the initial one.
23666 * lib/mkdir-p.h (make_dir_parents): Update prototype.
23667 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
23668 `return false'. This fixes a bug introduced on 2004-07-30.
23670 * lib/openat.c (fdopendir): Be sure to close the supplied
23671 file descriptor before returning. This makes our replacement
23672 implementation a little closer to Solaris's, where fdopendir
23673 ties the file descriptor to the returned DIR* pointer.
23674 * lib/openat.c (unlinkat): New function.
23675 * lib/openat.h (unlinkat): Add prototype.
23676 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
23677 (openat_restore_fail): Rename from openat_restore_die.
23678 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
23680 Provide an alternative to exiting immediately upon save_cwd or
23681 restore_cwd failure. Now, an application can arrange e.g.,
23682 to perform a longjump in that case.
23683 * lib/openat.c: Include dirname.h.
23684 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
23685 (rpl_openat, fdopendir, fstatat): Call openat_save_die
23686 and openat_restore_die rather than calling error directly.
23687 Don't include "error.h" or "exitfail.h"; they're no longer needed.
23689 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
23690 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
23693 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
23694 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
23695 int utc, int nanoseconds);
23697 date should not have to allocate a megabyte of virtual memory to
23698 handle a format argument like +%1048575T. When implemented with
23699 strftime, it must allocate such a buffer, use strftime to fill it
23700 in, print it, then free it.
23701 With fprintftime, it simply prints everything and exits.
23702 With no need for memory allocation, that's one fewer way to fail.
23703 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
23704 optional field width, not before, so we accept %9:z, not %:9z.
23705 (my_strftime): Be sure to use L_('x') for literals.
23707 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
23708 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
23709 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
23710 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
23711 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
23712 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
23713 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
23714 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
23715 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
23716 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
23717 * lib/xgethostname.c, lib/xreadlink.c:
23718 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
23720 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
23721 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
23722 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
23723 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
23724 and don't include <sys/file.h>).
23726 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
23728 Sync from coreutils.
23730 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
23731 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
23732 [!LDAV_DONE]: Avoid unused variable warning.
23734 2005-09-21 Bruno Haible <bruno@clisp.org>
23736 * lib/unicodeio.h (unicode_to_mb): New declaration.
23738 2005-09-20 Derek Price <derek@ximbiot.com>
23740 * lib/getaddrinfo.c: Don't include <netdb.h> included from
23743 2005-09-20 Bruno Haible <bruno@clisp.org>
23745 * gnulib-tool: Remove trailing slashes from the values specified for
23746 --source-base, --m4-base, --tests-base, --aux-dir.
23747 Suggested by Simon Josefsson <jas@extundo.com>.
23749 2005-09-20 Bruno Haible <bruno@clisp.org>
23751 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
23752 func_modules_to_filelist, func_import, func_create_testdir): Make all
23753 sorting results locale-independent, so that gnulib-cache.m4 doesn't
23754 change when gnulib-tool is invoked in a different locale.
23756 2005-09-19 Simon Josefsson <jas@extundo.com>
23758 * m4/socklen.m4: Fix typo.
23760 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23762 Use a consistent style for including <config.h>.
23763 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
23764 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
23765 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
23766 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
23767 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
23768 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
23769 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
23770 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
23771 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
23772 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
23773 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
23774 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
23775 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
23776 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
23777 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
23778 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
23779 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
23780 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
23781 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
23782 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
23783 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
23784 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
23785 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
23786 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
23787 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
23788 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
23789 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
23790 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
23791 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
23792 lib/xstrtoumax.c, lib/yesno.c:
23793 Standardize inclusion of config.h.
23794 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
23795 lib/inttostr.h: Removed inclusion of config.h from header files.
23796 * lib/inttostr.c: Adjusted in-tree users.
23797 * lib/timespec.h: Remove superfluous warning to include config.h.
23798 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
23799 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
23800 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
23801 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
23802 config.h with HAVE_CONFIG_H.
23804 2005-09-19 Jim Meyering <jim@meyering.net>
23806 * modules/pathmax (License): Change to LGPL.
23808 2005-09-19 Derek Price <derek@ximbiot.com>
23810 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
23812 2005-09-19 Bruno Haible <bruno@clisp.org>
23814 * gnulib-tool (import): Provide default for --tests-base.
23816 2005-09-19 Bruno Haible <bruno@clisp.org>
23818 * doc/quote.texi: New file, extracted from gnulib.texi.
23819 * doc/ctime.texi: New file, extracted from gnulib.texi.
23820 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
23821 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
23822 * doc/gnulib.texi: Include them.
23824 2005-09-18 Bruno Haible <bruno@clisp.org>
23827 * gnulib-tool (func_readlink): New function.
23828 (func_ln_if_changed): Use it.
23830 2005-09-18 Bruno Haible <bruno@clisp.org>
23832 * gnulib-tool: Support --with-tests also with --import.
23833 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
23834 (func_import): Use variables $testsbase and $inctests. Emit a
23835 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
23836 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
23837 SUBDIRS += $testsdir.
23838 (func_create_testdir): Update.
23840 2005-09-18 Bruno Haible <bruno@clisp.org>
23842 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
23843 instead of $dry_run.
23844 (func_cp_if_changed, func_mv_if_changed): Remove functions.
23845 (func_ln_if_changed): Don't handle dry-run here.
23846 (func_import): In dry-run mode, detect more precisely which actions
23847 would be performed, and don't use "...ing" verbs.
23849 2005-09-18 Bruno Haible <bruno@clisp.org>
23851 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
23852 (func_import): Use join on two temporary files instead of three nested
23853 loops, in order to determine which files are new or old.
23855 2005-09-18 Bruno Haible <bruno@clisp.org>
23857 * gnulib-tool (func_import): Comment out code that spits out the
23858 new files with --dry-run.
23860 2005-09-18 Bruno Haible <bruno@clisp.org>
23862 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
23864 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
23866 * lib/stat-time.h: New file.
23867 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
23868 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
23869 in a different way.
23870 (timespec_cmp): New function.
23871 * lib/utimecmp.c: Include stat-time.h.
23872 (SYSCALL_RESOLUTION): Depend on whether various struct stat
23873 members exist, not on the obsolescent ST_MTIM_NSEC.
23874 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
23876 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
23878 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
23880 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
23882 * MODULES.html.sh (File system functions): Add stat-time.
23883 * modules/stat-time: New file.
23884 * modules/timespec (Files): Remove m4/st_mtim.m4; this
23885 is now done in a different way, by the stat-time module.
23886 * modules/utimecmp (Depends-on): Add stat-time.
23888 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
23890 * m4/st_mtim.m4: Remove. Superseded by...
23891 * m4/stat-time.m4: New file.
23892 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
23893 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
23895 2005-09-15 Derek Price <derek@ximbiot.com>
23897 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
23899 2005-09-15 Derek Price <derek@ximbiot.com>
23901 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
23902 * lib/regex_internal.c: Ditto, using this...
23903 (__GNUC_PREREQ): ...new macro.
23904 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
23906 (__GNUC_PREREQ): ...this new macro.
23908 * lib/strstr.h: Include string.h. Define strstr as a macro here.
23910 2005-09-15 Derek Price <derek@ximbiot.com>
23911 Paul Eggert <eggert@cs.ucla.edu>
23913 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
23914 changes, consolidating in...
23915 * lib/regex_internal.h: ...this file.
23917 2005-09-13 Jim Meyering <jim@meyering.net>
23919 * lib/canon-host.c: Filter through gnu indent and reword comments
23921 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
23923 2005-09-13 Derek Price <derek@ximbiot.com>
23925 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
23927 Reported by Jim Meyering <jim@meyering.net>.
23929 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
23931 * lib/base64.c: Typo.
23932 (base64_encode): Put b64str in initialized data section.
23934 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
23936 Merge glibc and coreutils changes into gnulib, plus a few
23938 * lib/md5.c: Use #error rather than a string.
23939 (CYCLIC): New macro, from glibc source. Use it instead of rol.
23940 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
23941 (__attribute__): Define to empty for non recent-GCC.
23942 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
23943 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
23944 Renamed from their non-__ counterparts, with new macros replacing
23945 them if not _LIBC. Add __THROW attribute.
23947 (struct md5_ctx): Align buffer if using GCC.
23948 * lib/sha1.h (struct sha1_ctx): Likewise.
23949 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
23950 The old name was backwards.
23951 (NOTSWAP): Remove; not used.
23952 (rol): New macro, moved here from md5.h.
23953 (sha1_process_block): Remove a FIXME that doesn't make sense.
23955 2005-09-12 Derek Price <derek@ximbiot.com>
23957 Return usable errors from canon-host.
23958 * lib/canon-host.h: New file.
23959 * lib/canon-host.c (canon_host): Wrap...
23960 (canon_host_r): ...this new function, which now relies exclusively on
23962 (ch_strerror): New function.
23963 (last_cherror): New global.
23964 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
23966 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
23968 (freeaddrinfo): Free ai->ai_canonname when set.
23970 2005-09-12 Derek Price <derek@ximbiot.com>
23972 Make canon-host require getaddrinfo.
23973 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
23974 AC_LIBSOURCE canon-host.h. Call...
23975 (gl_PREREQ_CANON_HOST): ...this new function, which requires
23977 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
23979 2005-09-12 Derek Price <derek@ximbiot.com>
23981 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
23983 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
23985 2005-09-12 Derek Price <derek@ximbiot.com>
23987 * lib/gai_strerror.c: Include config.h when available. Include
23988 getaddrinfo.h before other headers to test interface.
23989 Reported by Larry Jones <lawrence.jones@ugs.com>.
23991 2005-09-12 Derek Price <derek@ximbiot.com>
23992 Paul Eggert <eggert@cs.ucla.edu>
23994 * modules/glob (Files): Add glob-libc.h.
23996 2005-09-12 Derek Price <derek@ximbiot.com>
23997 Paul Eggert <eggert@cs.ucla.edu>
23999 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
24000 glob_.h, glob-libc.h.
24001 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
24003 2005-09-12 Derek Price <derek@ximbiot.com>
24004 Paul Eggert <eggert@cs.ucla.edu>
24006 * lib/glob-libc.h: Renamed from glob_.h. The new version is
24007 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
24008 protecting things that should be done only in gnulib contexts.
24009 * lib/glob_.h: New file, containing only the glob things needed for
24011 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
24012 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
24013 (glob, globfree, glob_pattern_p): Now defined simply in terms of
24014 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
24015 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
24016 and to respect the namespace rules better.
24018 2005-09-08 Simon Josefsson <jas@extundo.com>
24020 * modules/socklen: New file.
24022 2005-09-08 Simon Josefsson <jas@extundo.com>
24024 * m4/socklen.m4: New file.
24026 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
24028 * modules/utimens (Files): Add m4/utimbuf.m4, since
24029 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
24030 Reported by Sergey Poznyakoff.
24032 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
24034 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
24035 definitions, since that's the preferred style in glibc.
24036 Fix a minor spacing issue, and update copyright notice to match
24039 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
24041 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
24043 2005-09-06 Simon Josefsson <jas@extundo.com>
24045 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
24046 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
24048 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
24050 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
24053 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
24055 * config/srclist.txt: Add glibc bug 1302.
24057 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
24059 Change bitset word type from unsigned int to unsigned long int,
24060 as this has better performance on typical 64-bit hosts.
24061 Port bitset code to hosts with unusual word sizes.
24062 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
24063 (build_collating_symbol):
24064 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
24065 argument is a bitset. This is merely a style issue, but it makes
24066 it clearer that an entire array is expected.
24067 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
24068 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
24069 Port to the case where bitset_word is not the same as unsigned int.
24070 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
24071 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
24073 * lib/regexec.c (check_dst_limits_calc_pos_1,
24074 check_subexp_matching_top):
24075 (build_trtable, group_nodes_into_DFAstates):
24077 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
24078 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
24079 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
24080 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
24081 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
24082 * lib/regcomp.c (optimize_subexps, lower_subexp):
24083 Work even if bitset_word has holes in its bitwise representation.
24084 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
24085 * lib/regexec.c (check_dst_limits_calc_pos_1,
24086 check_subexp_matching_top):
24088 * lib/regex_internal.c (re_string_reconstruct):
24089 Don't assume UCHAR_MAX == 255.
24090 * lib/regex_internal.h (bitset_set_all): Likewise.
24091 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
24093 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
24094 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
24096 (BITSET_WORD_MAX): New macro.
24097 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
24098 (bitset_set_all, bitset_copy): Now inline functions, not macros.
24099 (bitset_empty, bitset_copy):
24100 Prefer sizeof (bitset) to multiplying it out ourselves.
24101 (bitset_not_merge): Remove; unused.
24102 (bitset_contain): Return bool, not unsigned int with one bit on.
24103 All callers changed.
24104 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
24105 alignment than re_node_set; do this by defining a new internal
24106 type struct dests_alloc and using it to allocate memory.
24108 2005-09-05 Bruno Haible <bruno@clisp.org>
24110 * gnulib-tool (func_import): Fix comparison in handling of symbolic
24113 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
24115 * modules/size_max (Makefile.am): Add size_max.h
24117 2005-09-04 Derek Price <derek@ximbiot.com>
24119 * gnulib-tool (func_import): Fix reversed $symbolic logic.
24121 2005-09-03 Simon Josefsson <jas@extundo.com>
24123 * gnulib-tool: Fix typo.
24125 2005-09-03 Simon Josefsson <jas@extundo.com>
24127 * config/srclist.txt: Add glibc bug 1293.
24129 2005-09-03 Derek Price <derek@ximbiot.com>
24131 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
24132 From Larry Jones <lawrence.jones@ugs.com>.
24134 2005-09-02 Simon Josefsson <jas@extundo.com>
24136 * modules/socklen: New file.
24138 2005-09-02 Simon Josefsson <jas@extundo.com>
24140 * modules/havelib: New module.
24142 * modules/gettext, modules/iconv, modules/lock, modules/readline:
24145 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
24147 Check for arithmetic overflow when calculating sizes, to prevent
24148 some buffer-overflow issues. These patches are conservative, in the
24149 sense that when I couldn't determine whether an overflow was possible,
24150 I inserted a run-time check.
24151 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
24153 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
24154 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
24155 (re_xnrealloc, re_x2nrealloc): New inline functions.
24156 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
24157 parse_bracket_exp):
24158 (build_equiv_class, build_charclass): Check for arithmetic overflow
24159 in size expression calculations.
24160 * lib/regex_internal.c (re_string_realloc_buffers):
24161 (build_wcs_upper_buffer, re_node_set_add_intersect):
24162 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
24163 (re_dfa_add_node, register_state): Likewise.
24164 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
24165 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
24166 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
24167 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
24169 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
24171 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
24172 m4/ulonglong.m4. Problem reported by Martin Lambers.
24174 2005-09-02 Bruno Haible <bruno@clisp.org>
24176 Support for lib vs. lib64 distinction on biarch platforms.
24177 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
24178 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
24179 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
24181 2005-09-02 Bruno Haible <bruno@clisp.org>
24183 * gnulib-tool (import): In the other first-use case, provide defaults
24186 2005-09-02 Bruno Haible <bruno@clisp.org>
24188 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
24189 patches not yet found in the latest gettext release.
24191 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
24193 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
24194 to avoid a collision with bits/local_lim.h in glibc.
24195 All uses changed. Problem reported by Dmitry V. Levin in
24196 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
24198 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
24199 bugs in int versus size_t comparisons.
24200 (re_string_context_at): Fix bug where the code assumed that
24203 Use bool where appropriate.
24204 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
24205 All callers changed.
24206 (calc_eclosure_iter): Likewise, for ROOT arg.
24207 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
24208 (build_charclass_op): Likewise, for NON_MATCH arg.
24209 * lib/regex_internal.c (re_string_allocate, re_string_construct):
24210 (re_string_construct_common): Likewise, for ICASE arg.
24211 * lib/regexec.c (re_search_2_stub, re_search_stub):
24212 Likewise, for RET_LEN arg.
24213 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
24214 (set_regs): Likewise, for FL_BACKTRACK arg.
24215 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
24216 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
24217 (calc_eclosure_iter, parse_bracket_exp):
24218 Use bool for internal variables that are booleans.
24219 * lib/regexec.c (re_search_internal, check_matching,
24220 proceed_next_node):
24221 (set_regs, build_sifted_states, sift_states_bkref):
24222 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
24223 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
24224 (find_collation_sequence_value):
24226 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
24227 (re_node_set_compare):
24228 Return bool, not int. All callers changed.
24229 * lib/regexec.c (check_halt_node_context, check_dst_limits):
24230 (build_trtable, check_node_accept): Likewise.
24231 * lib/regex_internal.h: Include stdbool.h.
24233 Fix bugs uncovered when converting to bool.
24234 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
24235 failure instead of charging ahead blindly.
24236 * lib/regex_internal.c (register_state): Likewise.
24237 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
24238 for freeing internal storage.
24239 (group_nodes_into_DFA_states): Use unsigned int, not int, for
24240 bitset pieces used as boolean, to avoid undefined behavior
24241 on hosts that do int overflow checking.
24243 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
24245 * config/srclist.txt: Add glibc bugs 1285-1287.
24247 2005-09-01 Jim Meyering <jim@meyering.net>
24249 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
24250 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
24251 Require gl_STAT_MACROS, too.
24253 2005-09-01 Bruno Haible <bruno@clisp.org>
24255 * gnulib-tool (import): In the first-use case, provide defaults.
24257 2005-09-01 Bruno Haible <bruno@clisp.org>
24259 * gnulib-tool (func_import): Remove the .tmp files.
24261 2005-09-01 Bruno Haible <bruno@clisp.org>
24263 * gnulib-tool (func_import): Fix handling of symbolic links.
24265 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
24267 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
24268 old glibc regex code mishandles strings longer than 2**31 bytes.
24269 This patch fixes this when the regex code is used in gnulib
24270 (i.e., outside glibc).
24272 This patch should not affect the use of the regex code inside
24273 glibc. No doubt this problem also needs to be handled for glibc
24274 as well, but the result will be an incompatible change to the
24275 glibc ABI, and the old ABI will have to be supported too. That
24276 can be the the subject for another patch.
24278 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
24279 governing whether the rest of this patch is active. By default,
24280 the macro is disabled and the patch has no effect.
24281 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
24282 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
24283 (struct re_pattern_buffer, re_search, re_search_2, re_match):
24284 (re_match_2, re_set_registers): Use the new types.
24285 * lib/regex_internal.h (Idx, re_hashval_t): New types.
24286 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
24288 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
24289 (re_string_context_at, bin_tree_t, re_dfastate_t):
24290 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
24291 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
24292 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
24293 (re_string_char_size_at, re_string_wchar_at):
24294 (re_string_elem_size_at):
24295 Use the new types and macros to port to 64-bit hosts.
24296 Use unsigned types for internal values, so that the code
24297 mostly works even for arrays larger than SSIZE_MAX.
24298 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
24299 (search_duplicated_node, calc_eclosure_iter, fetch_number):
24300 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
24301 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
24302 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
24303 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
24304 (calc_inveclosure, parse_dup_op, build_range_exp):
24305 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
24306 (fetch_number, create_token_tree, mark_opt_subexp):
24308 * lib/regex_internal.c (re_string_construct_common,
24309 create_ci_newstate):
24310 (create_cd_newstate, re_string_allocate, re_string_construct):
24311 (re_string_realloc_buffers, build_wcs_upper_buffer):
24312 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
24313 (re_string_reconstruct, re_string_peek_byte_case):
24314 (re_string_fetch_byte_case, re_string_context_at):
24315 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
24316 (re_node_set_init_copy, re_node_set_add_intersect):
24317 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
24318 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
24319 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
24320 (re_acquire_state, re_acquire_state_context, register_state):
24322 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
24323 search_cur_bkref_entry):
24324 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
24325 (re_search_internal, re_search_2_stub, re_search_stub)
24326 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
24327 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
24328 (update_cur_sifted_state, check_dst_limits):
24329 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
24330 (check_subexp_limits, sift_states_bkref, merge_state_array):
24331 (check_subexp_matching_top, get_subexp, get_subexp_sub):
24332 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
24333 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
24334 (expand_bkref_cache, check_node_accept_bytes):
24335 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
24336 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
24337 (acquire_init_state_context, check_halt_node_context):
24338 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
24339 (sift_states_backward, clean_state_log_if_needed):
24340 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
24341 (find_recover_state, transit_state_sb, transit_state_mb):
24342 (transit_state_bkref, build_trtable, match_ctx_clean):
24344 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
24345 to work around an assumption that REG_MISSING is negative.
24347 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
24348 (seek_collating_symbol_entry) [defined _LIBC]:
24349 (lookup_collation_sequence_value) [defined _LIBC]:
24350 (build_range_exp, build_collating_symbol) [defined _LIBC]:
24351 Use prototypes rather than old-style function definitions.
24352 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
24353 (transit_state_sb) [0]:
24354 (find_collation_sequence_value) [defined _LIBC]: Likewise.
24356 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
24359 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
24360 (optimize_subexps, lower_subexp):
24361 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
24362 since the signed shift might overflow. Use 1u<<31 instead.
24363 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
24365 * lib/regexec.c (check_dst_limits_calc_pos_1,
24366 check_subexp_matching_top): Likewise.
24368 * lib/regcomp.c (optimize_subexps, lower_subexp):
24369 Use CHAR_BIT rather than 8, for clarity.
24370 * lib/regexec.c (check_dst_limits_calc_pos_1):
24371 (check_subexp_matching_top): Likewise.
24372 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
24373 have to worry about portability issues when shifting it left.
24374 Remove no-longer-needed test for table_size > 0.
24375 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
24376 in a word, as the resulting behavior is undefined.
24377 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
24378 in one case, a <= should have been an <, and in another case the
24379 whole test was missing.
24380 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
24381 the standard name CHAR_BIT.
24382 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
24383 this is not true on one's complement and signed-magnitude hosts.
24385 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
24387 (struct re_dfa_t): Remove unused member states_alloc.
24388 * lib/regcomp.c (init_dfa): Don't initialize unused members.
24390 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
24392 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
24393 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
24394 and large-file glibc and in 32-bit large-file Solaris.
24396 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
24398 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
24399 lengths fit in regoff_t; this isn't true if regoff_t is the same
24401 * lib/regex.c (re_search_internal): 5th arg is LAST_START
24402 (= START + RANGE) instead of RANGE. This avoids overflow
24403 problems when regoff_t is the same width as size_t.
24404 All callers changed.
24405 (re_search_2_stub): Check for overflow when adding the
24406 sizes of the two strings.
24407 (re_search_stub): Check for overflow when adding START
24408 to RANGE; if it occurs, substitute the extreme value.
24410 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
24412 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
24414 2005-08-31 Jim Meyering <jim@meyering.net>
24416 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
24417 a pointer-to-const.
24418 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
24419 (register_state): Likewise.
24420 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
24421 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
24422 (group_nodes_into_DFAstates): Likewise.
24424 2005-08-31 Jim Meyering <jim@meyering.net>
24426 * check-module: Add a FIXME comment.
24428 2005-08-31 Eric Blake <ebb9@byu.net>
24430 * modules/unistd-safer (Files): Add unistd--.h.
24431 * modules/stdio-safer (Files): Add stdio--.h.
24433 2005-08-31 Derek Price <derek@ximbiot.com>
24435 * lib/getdelim.c (getdelim): Return EOF on EOF.
24436 Reported by Larry Jones <lawrence.jones@ugs.com>.
24438 2005-08-31 Bruno Haible <bruno@clisp.org>
24440 Avoid unnecessary diffs in the generated lib/Makefile.am.
24441 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
24442 the generated files.
24443 (func_import): Don't set cmd.
24445 2005-08-31 Bruno Haible <bruno@clisp.org>
24447 * lib/strstr.c: Include <stddef.h>, for NULL.
24448 * lib/strcasestr.c: Likewise.
24449 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24451 2005-08-31 Bruno Haible <bruno@clisp.org>
24453 * gnulib-tool: New option --macro-prefix.
24454 (func_import): Use macro_prefix.
24455 (import): Handle option --macro-prefix.
24457 2005-08-31 Bruno Haible <bruno@clisp.org>
24459 * gnulib-tool (import): Rename most ac_* variables to cached_*.
24460 Also use new variables cached_lgpl, cached_libtool.
24462 2005-08-31 Bruno Haible <bruno@clisp.org>
24464 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
24465 always instantiating them.
24467 2005-08-31 Bruno Haible <bruno@clisp.org>
24469 * gnulib-tool (func_import): Read the previous cached settings
24470 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
24471 earlier added by gnulib but are now dropped. Warn when a gnulib file
24472 overwrites a non-gnulib file.
24474 2005-08-31 Bruno Haible <bruno@clisp.org>
24476 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
24477 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
24478 projects that don't keep autogenerated files in CVS. Put into
24479 actioncmd only the specified modules, not the transitive closure.
24481 2005-08-31 Bruno Haible <bruno@clisp.org>
24483 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
24484 Create directories that shall be filled.
24485 (import): Don't look for gl_* macros in configure.ac. Recurse across
24486 all directories containing a gnulib-cache.m4 files, if meaningful.
24488 2005-08-31 Bruno Haible <bruno@clisp.org>
24490 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
24491 (import): Set seen_libtool when we see gl_LIBTOOL.
24493 2005-08-31 Bruno Haible <bruno@clisp.org>
24495 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
24496 declaration macro definitions from generated gnulib.m4.
24498 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
24500 * lib/iconvme.h: Add prototype for iconv_alloc.
24502 2005-08-29 Simon Josefsson <jas@extundo.com>
24504 * lib/iconvme.c: Fix errno.
24506 2005-08-29 Bruno Haible <bruno@clisp.org>
24508 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
24509 that it works when the directory contains spaces.
24511 2005-08-29 Bruno Haible <bruno@clisp.org>
24513 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
24515 2005-08-29 Bruno Haible <bruno@clisp.org>
24517 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
24520 2005-08-29 Bruno Haible <bruno@clisp.org>
24521 and Stepan Kasal <kasal@ucw.cz>
24523 * check-module: If more parameters are given, check each of them
24524 separately; add more exceptions, as noted by Jim Meyering.
24525 (check_module): New procedure.
24526 (%exempt_header): Now contains all exceptions.
24528 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
24530 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
24532 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
24534 * lib/iconvme.c: Split iconv_string into iconv_alloc.
24536 2005-08-28 Bruno Haible <bruno@clisp.org>
24538 * m4/gnulib-tool.m4: New file.
24540 2005-08-27 Jim Meyering <jim@meyering.net>
24542 * modules/unistd-safer (Files): Add pipe-safer.c.
24543 * modules/fcntl-safer (Files): Add creat-safer.c.
24545 2005-08-27 Jim Meyering <jim@meyering.net>
24547 * m4/stdlib-safer.m4: New file. From coreutils.
24548 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
24549 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
24550 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
24551 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
24552 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
24554 2005-08-27 Jim Meyering <jim@meyering.net>
24556 * lib/fopen-safer.c: Merge minor changes from coreutils.
24557 * lib/dup-safer.c: Likewise.
24558 * lib/fd-safer.c: Likewise.
24560 Merge from coreutils.
24561 * lib/stdio--.h: New file.
24562 * lib/stdlib--.h: New file.
24563 * lib/mkstemp-safer.c: New file.
24565 GNU tar needs these.
24566 * lib/pipe-safer.c: New file.
24567 * lib/creat-safer.c: New file.
24568 * lib/fcntl--.h (creat): Define to creat_safer.
24569 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
24570 * lib/unistd--.h (pipe): Define to pipe_safer.
24571 * lib/unistd-safer.h: Declare pipe_safer.
24573 2005-08-26 Simon Josefsson <jas@extundo.com>
24575 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
24576 Haible <bruno@clisp.org>.
24578 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
24580 * lib/regex_internal.h: Remove all references to
24581 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
24583 (bitset_not, bitset_merge, bitset_not_merge):
24584 (bitset_mask, re_string_allocate, re_string_construct):
24585 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
24586 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
24587 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
24588 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
24589 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
24590 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
24591 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
24592 (re_acquire_state_context):
24593 Remove unnecessary forward decls.
24594 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
24595 Put __attribute at function definition,
24596 now that the function decl has been removed.
24597 * lib/regex_internal.c (re_string_peek_byte_case):
24598 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
24601 2005-08-25 Stepan Kasal <kasal@ucw.cz>
24603 * m4/regex.m4: Add AC_PREREQ(2.50).
24604 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
24606 2005-08-25 Simon Josefsson <jas@extundo.com>
24608 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
24611 2005-08-25 Simon Josefsson <jas@extundo.com>
24613 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
24614 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
24615 GLIBC specific code.
24617 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
24619 Make regex safe for g++. This fixes one real bug (an "err"
24620 that should have been "*err"). g++ problem reported by
24622 * lib/regex_internal.h (re_calloc): New macro, consistent with
24623 re_malloc etc. All callers of calloc changed to use re_calloc.
24624 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
24625 not int. All callers changed.
24626 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
24627 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
24628 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
24629 (find_recover_state): Change "err" to "*err"; this fixes what
24630 appears to be a real bug.
24631 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
24634 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
24636 * modules/regex (Depends-on): Add malloc, since the code
24637 assumes that !malloc(0) means failure.
24639 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
24641 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
24643 alloca modernization/simplification for regex.
24644 * lib/regex.c: Remove portability cruft for alloca. This no longer
24645 needs to be at the start of the file, and can be moved into
24646 regex_internal.h and simplified.
24647 * lib/regex_internal.h: Include <alloca.h>.
24648 (__libc_use_alloca) [!defined _LIBC]: New macro.
24649 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
24650 now works outside glibc.
24652 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
24654 * config/srclist.txt: Add glibc bugs 1241, 1245.
24656 2005-08-25 Jim Meyering <jim@meyering.net>
24658 * lib/open-safer.c: Include <config.h>.
24659 Otherwise, we'd lose LARGEFILE support in any file using
24662 2005-08-25 Bruno Haible <bruno@clisp.org>
24664 * m4/minmax.m4: Require autoconf 2.52.
24665 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
24666 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
24667 alternatives of translit over the alphabet.
24668 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
24670 2005-08-24 Simon Josefsson <jas@extundo.com>
24672 * tests/test-getpass.c: New file.
24674 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
24676 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
24677 for GNU regex features.
24679 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
24681 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
24682 * lib/regex.h (regerror): Likewise.
24684 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
24685 requires this. (The code never needed it.)
24687 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
24688 All uses of recently-renamed identifiers changed to use the new,
24689 POSIX-compliant names. The code will build and run just fine
24690 without these changes, but it's better to eat our own dog food
24691 and use the standard-conforming names.
24693 * lib/regex.h: Fix a multitude of POSIX name space violations.
24694 These changes have an effect only for programs that define
24695 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
24696 do not change anything for programs compiled in the normal way.
24697 Also, there is no effect on the ABI.
24699 (_REGEX_SOURCE): New macro.
24700 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
24701 defined and _GNU_SOURCE is not; this fixes a name space violation.
24703 Rename the following macros to obey POSIX requirements.
24704 The old names are still visible as macros if _REGEX_SOURCE is defined.
24705 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
24706 RE_BACKSLASH_ESCAPE_IN_LISTS.
24707 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
24708 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
24709 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
24710 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
24711 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
24712 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
24713 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
24714 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
24715 (REG_INTERVALS): renamed from RE_INTERVALS.
24716 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
24717 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
24718 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
24719 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
24720 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
24721 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
24722 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
24723 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
24724 RE_UNMATCHED_RIGHT_PAREN_ORD.
24725 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
24726 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
24727 (REG_DEBUG): renamed from RE_DEBUG.
24728 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
24729 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
24730 unusual, since we can't clash with the POSIX REG_ICASE.
24731 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
24732 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
24733 (REG_NO_SUB): renamed from RE_NO_SUB.
24734 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
24735 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
24736 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
24737 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
24738 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
24739 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
24740 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
24741 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
24742 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
24743 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
24744 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
24745 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
24746 RE_SYNTAX_POSIX_MINIMAL_BASIC.
24747 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
24748 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
24749 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
24750 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
24751 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
24752 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
24753 (REG_FIXED): Renamed from REGS_FIXED.
24754 (REG_NREGS): Renamed from RE_NREGS.
24756 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
24757 of other REG_* macros, since POSIX says the user is allowed to
24758 #undef these macros selectively.
24760 (reg_errcode_t): Update comment stating what other tables need
24763 Rename the following enum values to obey POSIX requirements.
24764 The old names are still visible as macros.
24765 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
24766 is not defined, since GNU is supposed to be a superset of POSIX as
24767 much as possible, and since we want reg_errcode_t to be a signed
24768 type for implementation consistency.
24769 (_REG_NOERROR): Renamed from REG_NOERROR.
24770 (_REG_NOMATCH): Renamed from REG_NOMATCH.
24771 (_REG_BADPAT): Renamed from REG_BADPAT.
24772 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
24773 (_REG_ECTYPE): Renamed from REG_ECTYPE.
24774 (_REG_EESCAPE): Renamed from REG_EESCAPE.
24775 (_REG_ESUBREG): Renamed from REG_ESUBREG.
24776 (_REG_EBRACK): Renamed from REG_EBRACK.
24777 (_REG_EPAREN): Renamed from REG_EPAREN.
24778 (_REG_EBRACE): Renamed from REG_EBRACE.
24779 (_REG_BADBR): Renamed from REG_BADBR.
24780 (_REG_ERANGE): Renamed from REG_ERANGE.
24781 (_REG_ESPACE): Renamed from REG_ESPACE.
24782 (_REG_BADRPT): Renamed from REG_BADRPT.
24783 (_REG_EEND): Renamed from REG_EEND.
24784 (_REG_ESIZE): Renamed from REG_ESIZE.
24785 (_REG_ERPAREN): Renamed from REG_ERPAREN.
24786 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
24787 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
24788 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
24789 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
24791 (_REG_RE_NAME, _REG_RM_NAME): New macros.
24792 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
24793 changed. But support the old name if the new one is not defined
24794 and if _REGEX_SOURCE.
24796 Change the following member names in struct re_pattern_buffer.
24797 The old names are still supported if !_REGEX_SOURCE.
24798 The new names are always supported, regardless of _REGEX_SOURCE.
24799 (re_buffer): Renamed from buffer.
24800 (re_allocated): Renamed from allocated.
24801 (re_used): Renamed from used.
24802 (re_syntax): Renamed from syntax.
24803 (re_fastmap): Renamed from fastmap.
24804 (re_translate): Renamed from translate.
24805 (re_can_be_null): Renamed from can_be_null.
24806 (re_regs_allocated): Renamed from regs_allocated.
24807 (re_fastmap_accurate): Renamed from fastmap_accurate.
24808 (re_no_sub): Renamed from no_sub.
24809 (re_not_bol): Renamed from not_bol.
24810 (re_not_eol): Renamed from not_eol.
24811 (re_newline_anchor): Renamed from newline_anchor.
24813 Change the following member names in struct re_registers.
24814 The old names are still supported if !_REGEX_SOURCE.
24815 The new names are always supported, regardless of _REGEX_SOURCE.
24816 (rm_num_regs): Renamed from num_regs.
24817 (rm_start): Renamed from start.
24818 (rm_end): Renamed from end.
24820 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
24821 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
24822 Prepend __ to parameter names.
24824 Undo yesterday's changes.
24826 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
24828 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
24829 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
24832 2005-08-24 Jim Meyering <jim@meyering.net>
24834 Sync from coreutils.
24835 * m4/fcntl-safer.m4: New file.
24837 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
24838 and object files for this module.
24840 2005-08-24 Jim Meyering <jim@meyering.net>
24842 Sync from coreutils.
24843 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
24845 2005-08-24 Jim Meyering <jim@meyering.net>
24847 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
24848 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
24850 2005-08-24 Jim Meyering <jim@meyering.net>
24852 * modules/fcntl-safer: New module.
24853 * modules/fts (Depends-on): Add fcntl-safer.
24854 * MODULES.html.sh (File descriptor based Input/Output):
24857 2005-08-24 Bruno Haible <bruno@clisp.org>
24859 Support for unit test modules.
24860 * modules/README: Mention tests modules.
24861 * modules/TEMPLATE-TESTS: New file.
24862 * gnulib-tool: New options --extract-tests-module, --with-tests and
24863 --tests-base (unused for the moment).
24864 (testsbase, inctests): New variables.
24865 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
24866 (func_verify_module): Exclude TEMPLATE-TESTS.
24867 (func_verify_nontests_module, func_verify_tests_module): New functions.
24868 (func_get_dependencies): Add implicit dependency for tests modules.
24869 (func_get_tests_module): New function.
24870 (func_modules_transitive_closure): When --with-tests was specified,
24871 include the unit tests as well, unless explicitly avoided.
24872 (func_emit_lib_Makefile_am): Ignore the tests modules here.
24873 (func_emit_tests_Makefile_am): New function.
24874 (func_create_testdir): When --with-tests was specified, emit a
24876 * MODULES.html.sh (Future developments): Update.
24878 2005-08-24 Bruno Haible <bruno@clisp.org>
24880 * modules/tls-tests: New file.
24881 * tests/test-tls.c: New file, from GNU gettext.
24883 2005-08-24 Bruno Haible <bruno@clisp.org>
24885 * modules/lock-tests: New file.
24886 * tests/test-lock.c: New file, from GNU gettext.
24888 2005-08-24 Bruno Haible <bruno@clisp.org>
24890 * lib/lock.h: Add multiple inclusion guard.
24891 * lib/tls.h: Add multiple inclusion guard.
24893 2005-08-24 Bruno Haible <bruno@clisp.org>
24895 * gnulib-tool: Add support for the --aux-dir option to
24896 --create-testdir, --create-megatestdir, --test, --megatest.
24897 (func_create_testdir, func_create_megatestdir): Optionally emit a
24898 AC_CONFIG_AUX_DIR directive.
24899 (create-testdir, create-megatestdir, test, megatest): Provide a
24900 default value for $auxdir.
24902 2005-08-24 Bruno Haible <bruno@clisp.org>
24904 * gnulib-tool (import): Use compound statement instead of subshell
24907 2005-08-24 Bruno Haible <bruno@clisp.org>
24909 * gnulib-tool (import): Change --aux-dir default to "build-aux".
24911 2005-08-24 Bruno Haible <bruno@clisp.org>
24913 * gnulib-tool (func_version): Update.
24915 2005-08-24 Bruno Haible <bruno@clisp.org>
24917 * gnulib-tool (func_import, func_create_testdir,
24918 func_create_megatestdir): Quote all autoconf macro arguments.
24920 2005-08-24 Bruno Haible <bruno@clisp.org>
24922 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
24923 option --force, because --force causes the aclocal.m4 of each
24924 subdirectory to be newer than the corresponding config.h.in.
24926 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
24928 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
24929 All contents moved to gl_REGEX.
24930 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
24931 assume that it does.
24933 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
24935 * lib/regex.h (REG_NOSYS)
24936 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
24937 Define, since POSIX requires it as of 2001.
24939 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
24940 New private symbol, used to keep the enum signed in all cases.
24941 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
24943 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
24945 * lib/regex_internal.c (re_string_skip_chars, register_state):
24947 Remove forward decls; no longer needed now that we use prototypes.
24948 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
24949 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
24950 (clean_state_log_if_needed): Likewise.
24952 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
24954 * config/srclist.txt: Add glibc bugs 1231-1233.
24956 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
24958 Fix problems reported by Sam Steingold in
24959 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
24960 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
24961 assumed that reg_errcode_t is a signed type, which is not
24962 necessarily true if _XOPEN_SOURCE is not defined.
24963 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
24964 since some compilers warn about it otherwise.
24966 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
24968 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
24969 (init_word_char, create_initial_state, duplicate_node_closure):
24970 (fetch_token, peek_token_bracket, build_range_exp):
24971 (build_collating_symbol): Remove forward decls; no longer needed
24972 now that we use prototypes.
24975 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
24976 (re_compile_fastmap_iter, regcomp, regerror, regfree):
24977 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
24978 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
24979 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
24980 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
24981 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
24982 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
24983 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
24984 (build_range_exp, build_collating_symbol, parse_bracket_exp):
24985 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
24986 (build_charclass, build_charclass_op, fetch_number, create_tree):
24987 (create_token_tree, mark_opt_subexp, duplicate_tree):
24988 Use prototypes rather than old-style definitions.
24990 * lib/regex_internal.c:
24991 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
24992 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
24993 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
24994 (re_string_reconstruct, re_string_peek_byte_case):
24995 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
24996 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
24997 (re_node_set_init_copy, re_node_set_add_intersect):
24998 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
24999 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
25000 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
25001 (re_acquire_state, re_acquire_state_context, register_state):
25002 (create_ci_newstate, create_cd_newstate, free_state):
25004 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
25006 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
25007 (re_search_internal, prune_impossible_nodes):
25008 (acquire_init_state_context, check_matching, static):
25009 (check_halt_node_context, check_halt_state_context, proceed_next_node):
25010 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
25011 (update_regs, sift_states_backward, build_sifted_states):
25012 (clean_state_log_if_needed, merge_state_array):
25013 (update_cur_sifted_state, add_epsilon_src_nodes):
25014 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
25015 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
25016 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
25017 (find_recover_state, check_subexp_matching_top, transit_state_mb):
25018 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
25019 (check_arrival, check_arrival_add_next_nodes):
25020 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
25021 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
25022 (check_node_accept_bytes, check_node_accept, extend_buffers):
25023 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
25024 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
25028 * lib/regex_internal.h:
25029 (re_string_allocate, re_string_construct, re_string_reconstruct):
25030 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
25031 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
25032 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
25033 (re_string_context_at, re_string_peek_byte_case):
25034 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
25035 is defined, since we now use prototypes always.
25037 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
25038 C89 or better. All uses removed.
25040 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
25042 * config/srclist.txt: Add glibc bugs 1220-1227.
25044 2005-08-20 Jim Meyering <jim@meyering.net>
25046 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
25047 of unused local, dfa.
25049 2005-08-20 Bruno Haible <bruno@clisp.org>
25051 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
25053 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
25055 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
25056 (re_node_set_insert_last, re_dfa_add_node):
25057 Rename local variables to avoid GCC shadowing warnings.
25059 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
25061 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
25062 [defined lint]: Suppress bogus uninitialized-variable warnings.
25064 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
25065 and let the caller return REG_ESPACE if out of space. This
25066 removes an uninitialied-variable warning with GCC 4.0.1, and also
25067 avoids taking the address of a local variable. All callers
25070 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
25072 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
25073 $LIBCSRC/posix/regexec.c.
25074 Add glibc bug 1217 for regcomp.c.
25076 2005-08-19 Jim Meyering <jim@meyering.net>
25078 * lib/regexec.c (proceed_next_node): Redo local variables to
25079 avoid GCC shadowing warnings.
25081 2005-08-18 Bruno Haible <bruno@clisp.org>
25083 * lib/strstr.c (strstr): Fix return value in multibyte case.
25084 * lib/strcasestr.c (strcasestr): Likewise.
25086 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
25088 * lib/regex.h: Remove useless space-before-tab. From coreutils.
25090 2005-08-17 Jim Meyering <jim@meyering.net>
25092 Make the %s format (seconds since the epoch) work for a negative
25093 number and when used with a zero-padded field width, e.g. %015s.
25095 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
25096 label so that it precedes the code to set `digits'. Otherwise,
25097 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
25098 print `00-22'. Now, it prints `-0022', as it should.
25100 2005-08-17 Bruno Haible <bruno@clisp.org>
25102 * modules/strstr (Files): Add m4/mbrtowc.m4.
25103 (Depends-on): Add mbuiter.
25105 2005-08-17 Bruno Haible <bruno@clisp.org>
25107 * modules/strcasestr: New file.
25108 * MODULES.html.sh (String handling, based on ANSI C 89): Add
25111 2005-08-17 Bruno Haible <bruno@clisp.org>
25113 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
25115 2005-08-17 Bruno Haible <bruno@clisp.org>
25117 * modules/mbuiter: New file.
25118 * MODULES.html.sh (Extended multibyte and wide character utilities):
25121 2005-08-17 Bruno Haible <bruno@clisp.org>
25123 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
25124 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
25126 2005-08-17 Bruno Haible <bruno@clisp.org>
25128 * m4/strcasestr.m4: New file.
25130 2005-08-17 Bruno Haible <bruno@clisp.org>
25132 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
25133 * lib/strstr.c: Completely rewritten, with multibyte locale support.
25135 2005-08-17 Bruno Haible <bruno@clisp.org>
25137 * lib/strcasestr.h: New file.
25138 * lib/strcasestr.c: New file.
25140 2005-08-17 Bruno Haible <bruno@clisp.org>
25142 * lib/strcasecmp.c: Use mbuiter.h.
25144 2005-08-17 Bruno Haible <bruno@clisp.org>
25146 * lib/mbuiter.h: New file.
25148 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
25150 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
25151 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
25152 and gl_GETOPT are both invoked via different paths (as happens
25153 with GNU tar CVS because it uses both argp and getopt), the former
25156 2005-08-16 Bruno Haible <bruno@clisp.org>
25158 * modules/tls: New file.
25159 * MODULES.html.sh (Multithreading): Add tls.
25161 2005-08-16 Bruno Haible <bruno@clisp.org>
25163 * modules/strnlen1: New file.
25164 * MODULES.html.sh (String handling): Add strnlen1.
25166 2005-08-16 Bruno Haible <bruno@clisp.org>
25168 * modules/strcase (Files): Add m4/mbrtowc.m4.
25169 (Depends-on): Add strnlen1, mbchar.
25171 2005-08-16 Bruno Haible <bruno@clisp.org>
25173 * modules/mbiter: New file.
25174 * MODULES.html.sh (Extended multibyte and wide character utilities):
25177 2005-08-16 Bruno Haible <bruno@clisp.org>
25179 * modules/mbfile: New file.
25180 * MODULES.html.sh (Extended multibyte and wide character utilities):
25183 2005-08-16 Bruno Haible <bruno@clisp.org>
25185 * modules/mbchar: New file.
25186 * MODULES.html.sh (Extended multibyte and wide character utilities):
25189 2005-08-16 Bruno Haible <bruno@clisp.org>
25191 * m4/tls.m4: New file, from GNU gettext.
25193 2005-08-16 Bruno Haible <bruno@clisp.org>
25195 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
25197 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
25199 2005-08-16 Bruno Haible <bruno@clisp.org>
25201 * m4/mbiter.m4: New file.
25203 2005-08-16 Bruno Haible <bruno@clisp.org>
25205 * m4/mbfile.m4: New file.
25207 2005-08-16 Bruno Haible <bruno@clisp.org>
25209 * m4/mbchar.m4: New file.
25211 2005-08-16 Bruno Haible <bruno@clisp.org>
25213 * lib/tls.h: New file, from GNU gettext.
25214 * lib/tls.c: New file, from GNU gettext.
25216 2005-08-16 Bruno Haible <bruno@clisp.org>
25218 * lib/strnlen1.h: New file.
25219 * lib/strnlen1.c: New file.
25221 2005-08-16 Bruno Haible <bruno@clisp.org>
25223 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
25224 (mbi_init): Update.
25225 (mbi_avail, mbi_advance): Let the iteration end before the terminating
25226 NUL byte, not after it.
25228 2005-08-16 Bruno Haible <bruno@clisp.org>
25230 * lib/strcase.h (strcasecmp): Add note in comments.
25231 * lib/strncasecmp.c: Use code from strcasecmp.c.
25232 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
25233 (strcasecmp): Work correctly in multibyte locales.
25235 2005-08-16 Bruno Haible <bruno@clisp.org>
25237 * lib/mbiter.h: New file.
25239 2005-08-16 Bruno Haible <bruno@clisp.org>
25241 * lib/mbfile.h: New file.
25243 2005-08-16 Bruno Haible <bruno@clisp.org>
25245 * lib/mbchar.h: New file.
25246 * lib/mbchar.c: New file.
25248 2005-08-16 Bruno Haible <bruno@clisp.org>
25250 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
25251 the valid ones. Makes the comparison operations transitive:
25252 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
25253 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
25255 2005-08-15 Simon Josefsson <jas@extundo.com>
25257 * modules/ssize_t (License): Change to 'unlimited'.
25259 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
25261 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
25263 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
25264 Add comments for each pending glibc patch.
25266 2005-08-15 Bruno Haible <bruno@clisp.org>
25268 * lib/regex.h (__restrict_arr): Don't define to __restrict if
25269 __cplusplus is defined.
25271 2005-08-14 Jim Meyering <jim@meyering.net>
25273 Sync from coreutils.
25275 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
25276 Use the hash-table-based cycle-detection code not just when
25277 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
25278 Reported by James Youngman in
25279 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
25280 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
25281 FTS_TIGHT_CYCLE_CHECK.
25282 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
25283 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
25285 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
25286 * lib/fts.c (fd_safer): Remove decl.
25287 Include fcntl--.h rather than unistd-safer.h
25288 (fts_safe_changedir): Don't call fd_safer; no longer needed
25289 now that we include fcntl--.h.
25291 2005-08-12 Simon Josefsson <jas@extundo.com>
25293 * modules/getndelim2: Use ssize_t module.
25294 * modules/getnline: Likewise.
25295 * modules/safe-read: Likewise.
25296 * modules/xreadlink: Likewise.
25298 * modules/ssize_t: New file.
25300 2005-08-12 Simon Josefsson <jas@extundo.com>
25302 * m4/readline.m4: Look for termcap, curses or ncurses if required.
25304 2005-08-12 Simon Josefsson <jas@extundo.com>
25306 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25309 2005-08-12 Simon Josefsson <jas@extundo.com>
25311 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
25312 readline, getdelim and check_version.
25313 (Support for systems lacking ISO C 99: Sizes of integer types):
25316 2005-08-12 Bruno Haible <bruno@clisp.org>
25318 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
25320 2005-08-11 Simon Josefsson <jas@extundo.com>
25322 * modules/readline: New file.
25324 * modules/strnlen (Files): Add strnlen.h.
25326 2005-08-11 Simon Josefsson <jas@extundo.com>
25328 * m4/readline.m4: New file.
25330 2005-08-11 Simon Josefsson <jas@extundo.com>
25332 * lib/readline.h, readline.c: New file.
25334 2005-08-11 Simon Josefsson <jas@extundo.com>
25336 * doc/gnulib.texi (Initial import, Finishing touches): Mention
25339 2005-08-11 Bruno Haible <bruno@clisp.org>
25341 * lib/strnlen.h (strnlen): Change parameter name to match comment.
25343 2005-08-10 Stepan Kasal <kasal@ucw.cz>
25345 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
25347 2005-08-10 Simon Josefsson <jas@extundo.com>
25349 * tests/test-iconvme.c: New file.
25351 2005-08-10 Simon Josefsson <jas@extundo.com>
25353 * m4/strnlen.m4: New file.
25355 * m4/strndup.m4: Don't check for strnlen declaration, done in
25358 2005-08-10 Simon Josefsson <jas@extundo.com>
25360 * lib/strndup.c: Use strnlen.h.
25362 * lib/strnlen.h: New file.
25364 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
25368 2005-08-02 Simon Josefsson <jas@extundo.com>
25370 * modules/readline: New file.
25372 2005-08-02 Simon Josefsson <jas@extundo.com>
25374 * modules/getdelim: New file.
25376 * modules/getline: Rewrite, don't use getndelim2.
25378 2005-08-02 Simon Josefsson <jas@extundo.com>
25380 * m4/getline.m4: Separate out getdelim stuff into separate module.
25382 * m4/getdelim.m4: New file.
25384 2005-08-02 Simon Josefsson <jas@extundo.com>
25386 * lib/getline.h, getline.c: Rewrite.
25388 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
25390 2005-07-31 Bruno Haible <bruno@clisp.org>
25392 * lib/lock.h (gl_lock_initializer): New macro.
25393 (gl_lock_define_initialized): Use it.
25394 (gl_rwlock_initializer): New macro.
25395 (gl_rwlock_define_initialized): Use it.
25396 (gl_recursive_lock_initializer): New macro.
25397 (gl_recursive_lock_define_initialized): Use it.
25399 2005-07-30 Karl Berry <karl@gnu.org>
25401 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
25402 Report from Ben Pfaff, regarding getopt.
25404 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
25406 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
25408 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
25409 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
25410 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
25411 (gl_GETOPT): Use the new macros. Most of the implementation
25412 is moved to the new macros. This is for programs like Emacs
25413 that don't want all the functionality of gl_GETOPT.
25415 2005-07-26 Bruno Haible <bruno@clisp.org>
25417 * m4/lock.m4: Update from GNU gettext.
25419 2005-07-26 Bruno Haible <bruno@clisp.org>
25421 * lib/lock.h: Update from GNU gettext.
25422 * lib/lock.c: Update from GNU gettext.
25424 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
25426 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
25427 obsolescent AC_TRY_RUN. Include the default includes files, for
25430 2005-07-24 Bruno Haible <bruno@clisp.org>
25432 * modules/visibility: New file.
25433 * MODULES.html.sh (Misc): Add visibility.
25435 2005-07-24 Bruno Haible <bruno@clisp.org>
25437 * m4/visibility.m4: New file.
25439 2005-07-24 Bruno Haible <bruno@clisp.org>
25441 * doc/visibility.texi: New file.
25443 2005-07-22 Bruno Haible <bruno@clisp.org>
25445 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
25446 $(ALLOCA_H), redundant through BUILT_SOURCES.
25447 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
25448 redundant through BUILT_SOURCES.
25449 * modules/byteswap (Makefile.am): Remove explicit dependency on
25450 $(BYTESWAP_H), redundant through BUILT_SOURCES.
25451 * modules/fnmatch (Makefile.am): Remove explicit dependency on
25452 $(FNMATCH_H), redundant through BUILT_SOURCES.
25453 * modules/getopt (Makefile.am): Remove explicit dependency on
25454 $(GETOPT_H), redundant through BUILT_SOURCES.
25455 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
25456 redundant through BUILT_SOURCES.
25457 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
25458 redundant through BUILT_SOURCES.
25459 * modules/stdbool (Makefile.am): Remove explicit dependency on
25460 $(STDBOOL_H), redundant through BUILT_SOURCES.
25461 * modules/stdint (Makefile.am): Remove explicit dependency on
25462 $(STDINT_H), redundant through BUILT_SOURCES.
25463 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
25464 Remove explicit dependency on $(SYSEXITS_H).
25465 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
25467 2005-07-18 Simon Josefsson <jas@extundo.com>
25469 * lib/check-version.c (check_version): Accept identical versions too.
25471 2005-07-18 Bruno Haible <bruno@clisp.org>
25473 * modules/lock: New file.
25474 * MODULES.html.sh (Multithreading): New section.
25476 2005-07-18 Bruno Haible <bruno@clisp.org>
25478 * m4/lock.m4: New file, from GNU gettext.
25480 2005-07-18 Bruno Haible <bruno@clisp.org>
25482 * lib/lock.h: New file, from GNU gettext.
25483 * lib/lock.c: New file, from GNU gettext.
25485 2005-07-18 Bruno Haible <bruno@clisp.org>
25487 * lib/lock.h (gl_once_t): New type.
25488 (gl_once_define, gl_once): New macros.
25489 * lib/lock.c (fresh_once): New variable.
25490 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
25493 2005-07-16 Simon Josefsson <jas@extundo.com>
25495 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
25496 workaround, suggested by Bruno.
25498 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
25500 * modules/xalloc (Depends-on): Add xalloc-die.
25501 * modules/xvasprintf (Depends-on): Add xalloc-die.
25503 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
25505 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
25506 with a minor change.
25508 2005-07-15 Bruno Haible <bruno@clisp.org>
25510 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
25511 When using lib/poll.c, define poll as rpl_poll.
25513 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
25515 * modules/argp (Depends-on): Remove unlocked-io.
25517 2005-07-14 Derek Price <derek@ximbiot.com>
25519 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
25520 for glob symlink bug.
25522 2005-07-14 Bruno Haible <bruno@clisp.org>
25524 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
25525 Instead, test for *_unlocked function declarations directly.
25527 2005-07-11 Simon Josefsson <jas@extundo.com>
25529 * modules/size_max: New file.
25531 * modules/xsize: Depend on size_max module for size_max.m4.
25533 2005-07-11 Simon Josefsson <jas@extundo.com>
25535 * lib/size_max.h: New file.
25537 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
25539 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
25540 copyright symbol and the year.
25541 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
25542 (version_etc_va): Use parameterized copyright notice.
25543 Reword to conform to the current GNU coding standards.
25545 2005-07-11 Karl Berry <karl@gnu.org>
25547 * doc/gnulib.texi (Quoting): new node.
25548 (Initial import): more info, from Patrice.
25550 2005-07-11 Bruno Haible <bruno@clisp.org>
25552 * gnulib-tool (func_usage): Document option --avoid.
25553 (Command line options): Handle --avoid.
25554 (func_acceptable): New function.
25555 (func_modules_transitive_closure): Use it.
25557 2005-07-11 Bruno Haible <bruno@clisp.org>
25559 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
25560 Reported by Jim Meyering.
25562 2005-07-10 Bruno Haible <bruno@clisp.org>
25564 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
25565 Needed when size_t is smaller than 'unsigned int'.
25566 Reported by Paul Eggert.
25568 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
25570 * modules/argp (Depends-on): Add unlocked-io
25572 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
25574 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
25577 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
25579 * config/srclist.txt: Comment out regcomp.c, since we have a porting
25582 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
25583 and Paul Eggert <eggert@cs.ucla.edu>
25585 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
25586 in wint_t, not wchar_t. Remove now-unnecessary cast.
25588 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
25590 * modules/regex (Files): Add lib/regex_internal.c,
25591 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
25592 (Depends-on): Add extensions.
25593 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
25595 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
25597 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
25599 * m4/same.m4 (gl_SAME): Likewise.
25600 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
25602 * m4/regex.m4: Adjust to new libc regex implementation.
25603 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
25604 all the .c and .h parts of (the new) regex.
25605 Quote the m4 stuff better.
25606 Check for RE_ICASE bug of old gnulib.
25607 Check for REG_STARTEND of recent libc.
25608 Rename local variables from jm_* to gl_*.
25609 Quote operand of "test -f".
25610 Say "recent enough" version of libc, not "version 2".
25611 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
25612 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
25613 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
25614 Remove check for btowc, isascii.
25615 Require AM_LANGINFO_CODESET.
25617 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
25619 * lib/regex.c, regex.h: Sync from libc.
25620 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
25622 New files, synced from libc, except that regex_internal.h
25623 currently has a small porting fix.
25625 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
25627 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
25628 regex_internal.c, regexec.c.
25629 Add regex_internal.h too, but as a comment, since the libc version
25630 is currently broken in gnulib mode.
25632 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
25634 Support programs like Emacs that use gnulib but not gettext.
25635 * MODULES.html.sh (Internationalization functions): Add gettext-h.
25636 * modules/gettext-h: New file.
25637 * modules/gettext (Files): Remove lib/gettext.h.
25638 (Depends-on): Add gettext-h.
25639 (Makefile.am): Remove lib_SOURCES.
25640 * modules/argmatch, modules/c-stack, modules/closeout:
25641 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
25642 * modules/execute, modules/file-type, modules/getaddrinfo:
25643 * modules/getopt, modules/human, modules/javacomp:
25644 * modules/javaexec, modules/mkdir-p, modules/obstack:
25645 * modules/openat, modules/pagealign_alloc, modules/pipe:
25646 * modules/quotearg, modules/regex, modules/rpmatch:
25647 * modules/unicodeio, modules/userspec, modules/version-etc:
25648 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
25650 Depend on gettext-h, not gettext.
25652 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
25654 * gnulib-tool (func_import): Add support for 'public domain' license.
25655 * modules/alloca, modules/atexit, modules/memmove:
25656 Now public domain, not GPL.
25657 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
25658 * modules/realloc, modules/strerror, modules/strtod:
25661 2005-07-05 Bruno Haible <bruno@clisp.org>
25663 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
25664 autoconf CVS. Needed for mingw.
25666 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
25668 Remove the dependency of the strftime module on the tzset module.
25669 * modules/strftime (Depends-on): Remove dependency on tzset.
25671 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
25673 Remove the dependency of the strftime module on the tzset module.
25674 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
25675 gl_FUNC_TZSET_CLOBBER.
25677 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
25679 Remove the dependency of the strftime module on the tzset module.
25680 * lib/strftime.c (my_strftime)
25681 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
25682 Copy the input structure, to work around some of the bug with
25683 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
25684 Solaris releases, you should also use the tzset module, but we won't
25685 require it as a dependency any more since we don't want LGPLed code
25686 to depend on GPLed code.
25688 2005-07-02 Jim Meyering <jim@meyering.net>
25690 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
25691 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
25692 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
25693 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
25695 2005-07-02 Jim Meyering <jim@meyering.net>
25697 * lib/backupfile.c (backup_args): Change a `0' to NULL.
25699 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
25701 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
25702 declares only 'struct timespec;' (!).
25704 2005-07-01 Jim Meyering <jim@meyering.net>
25706 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
25707 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
25708 * lib/save-cwd.c, tempname.c:
25709 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
25710 and don't include <sys/file.h>).
25712 2005-06-29 Jim Meyering <jim@meyering.net>
25714 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
25715 type name. Use the variable name instead.
25716 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
25719 2005-06-28 Simon Josefsson <jas@extundo.com>
25721 * modules/check-version (Files): Add check-version.m4.
25723 2005-06-28 Simon Josefsson <jas@extundo.com>
25725 * m4/check-version.m4: New file, suggested by Jim Meyering
25726 <jim@meyering.net>.
25728 2005-06-28 Simon Josefsson <jas@extundo.com>
25730 * lib/check-version.h, lib/check-version.c: New files.
25732 2005-06-28 Simon Josefsson <jas@extundo.com>
25734 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
25735 collision with global variable. Better indentation. Don't
25736 increment buffer pointer beyond buffer end. Based on comments
25737 from Paul Eggert <eggert@cs.ucla.edu>.
25739 * lib/base64.h: Indent.
25741 2005-06-28 Simon Josefsson <jas@extundo.com>
25743 * doc/gnulib.texi (Library version handling): New section.
25745 2005-06-28 Jim Meyering <jim@meyering.net>
25747 * check-module (find_included_lib_files): Hard-code another
25748 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
25749 but modules/fts-lgpl (correctly) does not list those files.
25751 * modules/canonicalize (Files): Add lib/pathmax.h.
25753 2005-06-25 Simon Josefsson <jas@extundo.com>
25755 * modules/check-version: New file.
25757 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
25759 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
25760 initializer of struct addrinfo, as an indication that we don't
25761 care how many members the structure has.
25763 2005-06-24 Derek Price <derek@ximbiot.com>
25764 and Bruno Haible <bruno@clisp.org>
25766 Remove stat module & update lstat.
25767 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
25768 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25769 * m4/stat.m4: Remove this file.
25771 2005-06-24 Derek Price <derek@ximbiot.com>
25772 and Bruno Haible <bruno@clisp.org>
25774 Remove stat module & update lstat.
25775 * lib/stat.c: Remove this file...
25776 (slash_aware_lstat): ...moving this content and its support...
25777 * lib/lstat.c (rpl_lstat): ...into here.
25778 * lib/lstat.h: New file.
25780 2005-06-24 Derek Price <derek@ximbiot.com>
25781 and Bruno Haible <bruno@clisp.org>
25783 Remove stat module & update lstat.
25784 * config/srclist.txt (libc sources): Remove stat.
25786 2005-06-24 Derek Price <derek@ximbiot.com>
25787 and Bruno Haible <bruno@clisp.org>
25789 Remove stat module & update lstat.
25790 * MODULES.html.sh (stat): Remove.
25791 * MODULES.html: Regenerated.
25792 * modules/lstat (Description): Correct function name.
25793 (Files): Add "lstat.h".
25794 (Depends-on): Remove stat, add xalloc, stat-macros.
25795 * modules/stat: Remove this file.
25796 (Include): Add "lstat.h", remove <sys/stat.h>.
25798 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
25800 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
25801 (ranged_convert): Don't save conversion in a temporary struct.
25802 This causes a warning with GCC 4.0.0, and anyway in the typical
25803 case it's not worth the extra 100 bytes or so of code.
25804 (ranged_convert, __mktime_internal): When calling a function via a
25805 pointer P, use P () rather than (*P) (), as we now assume C89 or
25808 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
25810 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
25811 "who -r" failed to give output. Problem reported by Tim Waugh.
25813 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
25814 (xcalloc): Use it to avoid needless tests.
25815 Problem reported by Jim Meyering.
25817 2005-06-20 Derek Price <derek@ximbiot.com>
25819 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
25820 unnecessary for Autoconfs > 2.59c.
25822 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
25824 * lib/argp.h (__option_is_short): Check upper limit of
25825 __key. Isprint() requires its argument to have the value
25826 of an unsigned char or EOF.
25828 2005-06-16 Jim Meyering <jim@meyering.net>
25830 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
25831 when either N or S is zero.
25833 2005-06-16 Derek Price <derek@ximbiot.com>
25835 * m4/bison.m4: Declare YACC & YFLAGS precious.
25837 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
25839 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
25840 multibyte string or pattern, fall back on unibyte matching.
25841 Problem reported by James Youngman.
25843 2005-06-08 Bruno Haible <bruno@clisp.org>
25845 * modules/csharpcomp: New file.
25846 * MODULES.html.sh (C#): Add csharpcomp.
25848 2005-06-08 Bruno Haible <bruno@clisp.org>
25850 * m4/csharpcomp.m4: New file, from GNU gettext.
25852 2005-06-08 Bruno Haible <bruno@clisp.org>
25854 * lib/csharpcomp.h: New file, from GNU gettext.
25855 * lib/csharpcomp.c: New file, from GNU gettext.
25856 * lib/csharpcomp.sh.in: New file, from GNU gettext.
25858 2005-06-08 Bruno Haible <bruno@clisp.org>
25860 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
25863 2005-06-07 Derek Price <derek@ximbiot.com>
25866 * lib/glob_.h: Indent nested #ifdef.
25868 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
25870 Sync from coreutils.
25871 Use "file name" when talking about file names, instead of "filename"
25872 or "path", as per the GNU coding standards.
25873 * lib/mkdir-p.c: Renamed from makepath.c.
25874 (make_dir_parents): Renamed from make_path. All callers changed.
25875 * lib/mkdir-p.h: Likewise. All includers changed.
25876 * lib/filenamecat.c: Renamed from path-concat.c.
25877 (file_name_concat): Renamed from path_concat. All callers changed.
25878 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
25879 * lib/filenamecat.h: Likewise. All includers changed.
25880 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
25881 in comments or local variable names.
25882 * lib/basename.c: Likewise.
25883 * lib/canonicalize.c, canonicalize.h: Likewise.
25884 * lib/dirname.c, dirname.h: Likewise.
25885 * lib/euidaccess.c: Likewise.
25886 * lib/exclude.c: Likewise
25887 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
25888 * lib/fsusage.c, fsuage.h: Likewise.
25889 * lib/fts.c, fts_.h: Likewise.
25890 * lib/getcwd.c: Likewise.
25891 * lib/getloadavg.c: Likewise.
25892 * lib/mkstemp.c: Likewise.
25893 * lib/mountlist.c, mountlist.h: Likewise.
25894 * lib/openat.c, openat.h: Likewise.
25895 * lib/readlink-stub.c: Likewise.
25896 * lib/readutmp.c, readutmp.h: Likewise.
25897 * lib/rename.c: Likewise.
25898 * lib/rmdir.c: Likewise.
25899 * lib/same.c: Likewise.
25900 * lib/savedir.c: Likewise.
25901 * lib/stripslash.c: Likewise.
25902 * lib/tempname.c: Likewise.
25903 * lib/xreadlink.c: Likewise.
25904 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
25906 * lib/exclude.h: Likewise.
25908 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
25909 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
25910 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
25911 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
25912 * lib/pathmax.h: Include <limits.h> unconditionally, since other
25913 files have been getting away with it for years (MORE/BSD 4.3
25915 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
25916 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
25918 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
25919 Define to 256, not 255, as per modern POSIX.
25921 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
25923 Sync from coreutils.
25924 Use "file name" when talking about file names, instead of "filename"
25925 or "path", as per the GNU coding standards.
25926 * MODULES.html.sh: mkdir-p renamed from makepath.
25927 filenamecat renamed from path-concat.
25928 * modules/filenamecat: Renamed from modules/path-concat.
25929 (Files): filenamecat.h and filenamecat.c renamed from
25930 path-concat.h and path-concat.c.
25931 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
25932 (Include): filenamecat.h, not path-concat.h.
25933 * modules/mkdir-p: Renamed from modules/makepath.
25934 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
25936 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
25937 (Include): mkdir-p.h, not makepath.h.
25939 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
25941 Sync from coreutils.
25942 * m4/mkdir-p.m4: Renamed from makepath.m4.
25943 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
25944 Rename files from makepath.c to mkdir-p.c, and from
25945 makepath.h to mkdir-p.h.
25946 * m4/filenamecat.m4: Renamed from path-concat.m4.
25947 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
25948 Rename files from path-concat.c to filenamecat.c,
25949 and from path-concat.h to filenamecat.h.
25950 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
25951 "file name" in local variables or comments.
25952 * m4/rename.m4: Likewise.
25954 2005-06-01 Bruno Haible <bruno@clisp.org>
25956 * modules/csharpexec: New file.
25957 * MODULES.html.sh (C#): New section.
25959 2005-06-01 Bruno Haible <bruno@clisp.org>
25961 * m4/csharp.m4: New file, from GNU gettext.
25962 * m4/csharpexec.m4: New file, from GNU gettext.
25964 2005-06-01 Bruno Haible <bruno@clisp.org>
25966 * lib/csharpexec.h: New file, from GNU gettext.
25967 * lib/csharpexec.c: New file, from GNU gettext.
25968 * lib/csharpexec.sh.in: New file, from GNU gettext.
25970 2005-05-31 Derek Price <derek@ximbiot.com>
25971 Paul Eggert <eggert@cs.ucla.edu>
25974 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
25976 2005-05-31 Derek Price <derek@ximbiot.com>
25977 Paul Eggert <eggert@cs.ucla.edu>
25980 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
25982 2005-05-29 Derek Price <derek@ximbiot.com>
25984 * config/srclist.txt (glob_.h, glob.c): Add these files.
25986 2005-05-29 Derek Price <derek@ximbiot.com>
25988 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
25989 * modules/glob: New file.
25990 * modules/getlogin_r: Add link to POSIX spec in description.
25992 2005-05-29 Derek Price <derek@ximbiot.com>
25993 Paul Eggert <eggert@cs.ucla.edu>
25995 * m4/glob.m4: New file.
25997 2005-05-29 Derek Price <derek@ximbiot.com>
25998 Paul Eggert <eggert@cs.ucla.edu>
26000 * lib/glob_.h, lib/glob.c: New files.
26002 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
26004 * modules/fts (Files): Remove m4/inttypes-pri.m4.
26005 * modules/fts-lgpl (Depends-on): Remove gettext.
26007 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
26009 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
26010 and don't require gt_INTTYPES_PRI.
26012 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
26014 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
26016 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
26017 the configuration hassle isn't worth it.
26018 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
26019 (LONGEST_MODIFIER, PRIuMAX): Remove.
26021 2005-05-27 Bruno Haible <bruno@clisp.org>
26023 * lib/getlogin_r.h: Remove second include of <stddef.h>.
26025 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
26027 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
26028 _POSIX_PTHREAD_SEMANTICS for Solaris.
26030 2005-05-25 Derek Price <derek@ximbiot.com>
26032 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
26034 2005-05-25 Derek Price <derek@ximbiot.com>
26035 Paul Eggert <eggert@cs.ucla.edu>
26037 * modules/getlogin_r, m4/getlogin_r.m4: New files.
26038 * lib/getlogin_r.c, getlogin_r.h: New files.
26040 2005-05-25 Bruno Haible <bruno@clisp.org>
26041 Derek Price <derek@ximbiot.com>
26043 * lib/getlogin_r.h: Simplify API documentation.
26045 2005-05-23 Derek Price <derek@ximbiot.com>
26047 * modules/minmax (Files): Add m4/minmax.m4.
26048 (configure.ac): Add gl_MINMAX.
26050 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
26052 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
26053 so that unistd-safer.h (GPL'ed code) need not be included.
26055 2005-05-22 Bruno Haible <bruno@clisp.org>
26057 * m4/minmax.m4: New file.
26058 Based on a patch by Derek Price <derek@ximbiot.com>.
26060 2005-05-22 Bruno Haible <bruno@clisp.org>
26062 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
26063 (INT64_MIN): Fix definition.
26064 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
26066 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
26067 NEED_SIGNED_INT_TYPES.
26069 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
26070 HAVE_SYSTEM_INTTYPES.
26072 2005-05-22 Bruno Haible <bruno@clisp.org>
26074 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
26075 Also include <sys/param.h> if it defines MIN, MAX.
26076 Based on a patch by Derek Price <derek@ximbiot.com>.
26078 2005-05-21 Jim Meyering <jim@meyering.net>
26080 * modules/fts (Files): Add m4/inttypes-pri.m4.
26081 (Depends-on): Add lstat and remove gettext. Alphabetize.
26083 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
26086 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
26087 (setup_dir, free_dir): New functions.
26088 (enter_dir, leave_dir): Define trivial
26089 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
26090 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
26091 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
26092 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
26093 Move to fts-cycle.c.
26094 (fts_open): Use setup_dir.
26095 (fts_close): Use free_dir.
26096 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
26097 This adds a label and some gotos, but the alternatives were messier.
26098 Check for memory allocation failure when entering a dir.
26099 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
26100 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
26101 (FTS): New member fts_cycle, that is a union that contains the
26102 old active_dir_ht and cycle_state. All uses changed to mention
26103 fts_cycle.ht and fts_cycle.state.
26104 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
26105 fts.c, with the following changes:
26106 (setup_dir, free_dir): New functions.
26107 (enter_dir): Now returns bool. Return true if successful, false
26108 if memory exhausted. All callers changed.
26109 Do not bother partly cleaning up on
26110 memory allocation failure; that is free_dir's job.
26111 However, free ad if hash_insert fails, to avoid memory leak.
26112 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
26113 fts->fts_options to see which union member to use.
26115 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
26117 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
26118 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
26120 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
26122 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
26124 2005-05-20 Jim Meyering <jim@meyering.net>
26126 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
26127 Now a macro, to pacify GCC.
26129 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
26131 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
26134 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
26136 * lib/chown.c (rpl_chown): Return -1 on failure.
26138 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
26140 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
26141 Don't check for stddef.h.
26142 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
26143 don't use its results.
26144 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
26145 since we include them unconditionally. Don't require
26146 AM_STDBOOL_H, since stdbool is a prerequisite.
26147 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
26148 since we assume C89 or better.
26149 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
26150 as we don't use their results.
26151 Don't check for fchdir, memmove, memset, strrchr, as we use
26152 them unconditionally.
26153 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
26154 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
26156 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
26158 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
26159 Include <stddef.h> unconditionally, since we assume C89 now.
26160 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
26161 * lib/fts.c: Include fts_.h first, to check interface.
26162 Do not include intprops.h; no longer needed.
26163 Include cycle-check.h and hash.h, since fts_.h no longer does.
26164 Remove unnecessary casts of closedir to void.
26165 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
26166 decide whether to decrement nlinks.
26167 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
26168 (FTS): Use struct hash_table * instead of Hash_table, so that
26169 we no longer need to include hash.h here.
26171 2005-05-18 Jim Meyering <jim@meyering.net>
26173 * modules/dirfd (License): Change to LGPL. Most of the code
26174 is already in the public domain.
26176 2005-05-18 Jim Meyering <jim@meyering.net>
26178 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
26179 Reported by Yoann Vandoorselaere.
26181 2005-05-17 Jim Meyering <jim@meyering.net>
26183 * m4/fts.m4: New file, from coreutils.
26185 2005-05-17 Jim Meyering <jim@meyering.net>
26187 * lib/fts.c, lib/fts_.h: New files, from coreutils.
26189 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
26191 Sync from coreutils.
26192 * m4/unlinkdir.m4: New file.
26194 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
26196 Sync from coreutils.
26197 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
26198 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
26199 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
26200 White space changes only.
26201 * lib/makepath.c (make_path): Port to hosts where leading "//" is
26203 * lib/yesno.c: Include getline.h, not ctype.h.
26204 (yesno): Don't remove leading white space; POSIX doesn't allow it.
26205 Use getline to remove arbitrary restriction on response length.
26207 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
26209 * config/srclist-update: Spell out "Street" in FSF postal
26210 mail address; this is the style the FSF seems to prefer.
26212 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
26213 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
26214 this updates FSF postal mail address.
26216 Sync from coreutils.
26217 * modules/unlinkdir: New file.
26218 * modules/yesno (Depends-on): Add getline.
26219 * MODULES.html.sh (File system functions): Add unlinkdir.
26221 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
26223 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
26225 Change the initial comment to refer to GPL, not LGPL.
26226 gnulib-tool will change it to LGPL as needed.
26228 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
26229 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
26230 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
26231 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
26232 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
26233 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
26234 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
26235 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
26236 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
26237 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
26238 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
26239 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
26240 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
26241 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
26242 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
26243 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
26244 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
26245 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
26246 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
26247 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
26248 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
26249 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
26250 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
26251 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
26252 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
26253 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
26254 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
26255 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
26256 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
26257 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
26258 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
26259 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
26260 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
26261 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
26262 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
26263 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
26264 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
26265 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
26266 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
26267 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
26268 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
26269 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
26270 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
26271 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
26272 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
26273 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
26274 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
26275 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
26276 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
26277 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
26278 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
26279 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
26280 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
26281 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
26282 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
26283 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
26284 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
26285 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
26286 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
26287 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
26288 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
26289 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
26290 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
26291 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
26292 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
26293 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
26294 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
26295 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
26296 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
26297 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
26298 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
26299 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
26300 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
26301 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
26302 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
26303 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
26304 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
26305 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
26306 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
26307 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
26308 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
26309 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
26310 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
26311 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
26312 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
26313 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
26314 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
26315 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
26316 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
26317 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
26318 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
26319 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
26320 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
26321 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
26322 lib/yesno.c, lib/yesno.h:
26323 Update FSF postal mail address.
26325 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
26327 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
26328 tests/test-memmem.c, tests/test-stpncpy.c:
26329 Update FSF postal mail address.
26331 2005-05-13 Bruno Haible <bruno@clisp.org>
26333 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
26334 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
26335 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
26336 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
26337 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
26338 Add support for 64-bit integers in the MSVC compiler.
26340 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
26342 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
26344 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
26346 * gnulib-tool (func_import): Sort and uniquify recommended includes.
26348 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
26350 * doc/getdate.texi (General date syntax): Don't say that date
26351 date --iso-8601=ns generates acceptable dates; it doesn't yet.
26352 Problem reported by Nic Ferrier.
26354 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26356 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
26357 specified in ai_socktype. Fix invalid ai_protocol
26358 check. ai_protocol is usually set to 0 or depending on
26359 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
26360 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
26361 ai_socktype / ai_protocol in the returned addrinfo structure.
26363 2005-05-10 Simon Josefsson <jas@extundo.com>
26365 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
26366 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26368 2005-05-10 Karl Berry <karl@gnu.org>
26370 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
26371 (from http://www.gnu.org/licenses).
26372 * doc/COPYING.LIB: also rename to COPYING.LESSER.
26373 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
26376 2005-05-10 Karl Berry <karl@gnu.org>
26378 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
26379 (COPYING.DOC): remove.
26381 * config/srclist-update: new FSF address.
26383 2005-05-10 Derek Price <derek@ximbiot.com>
26385 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
26388 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26389 Bruno Haible <bruno@clisp.org>
26391 * modules/inet_ntop: New file.
26392 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26395 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26396 Bruno Haible <bruno@clisp.org>
26398 * m4/inet_ntop.m4: New file.
26400 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26401 Bruno Haible <bruno@clisp.org>
26403 * lib/inet_ntop.h: New file.
26404 * lib/inet_ntop.c: New file, from glibc with modifications.
26406 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
26408 * modules/time_r (License): Change to LGPL.
26409 * modules/extensions (License): Change to LGPL. Actually,
26410 the license is more permissive than that, but currently gnulib-tool
26411 doesn't know how to handle more-permissive licenses.
26413 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
26414 Problem reported by Dave Love.
26416 2005-05-08 Jim Meyering <jim@meyering.net>
26418 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
26421 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
26423 * modules/argmatch (Depends-on): Add stdbool.
26424 * modules/backupfile (Depends-on): Likewise.
26425 * modules/chdir-long (Depends-on): Likewise.
26426 * modules/closeout (Depends-on): Likewise.
26427 * modules/cycle-check (Depends-on): Likewise.
26428 * modules/dirname (Depends-on): Likewise.
26429 * modules/fnmatch (Depends-on): Likewise.
26430 * modules/fsusage (Depends-on): Likewise.
26431 * modules/fwriteerror (Depends-on): Likewise.
26432 * modules/getcwd (Depends-on): Likewise.
26433 * modules/getloadavg (Depends-on): Likewise.
26434 * modules/hard-locale (Depends-on): Likewise.
26435 * modules/makepath (Depends-on): Likewise.
26436 * modules/mountlist (Depends-on): Likewise.
26437 * modules/nanosleep (Depends-on): Likewise.
26438 * modules/posixtm (Depends-on): Likewise.
26439 * modules/quotearg (Depends-on): Likewise.
26440 * modules/readtokens (Depends-on): Likewise.
26441 * modules/readtokens0 (Depends-on): Likewise.
26442 * modules/readutmp (Depends-on): Likewise.
26443 * modules/save-cwd (Depends-on): Likewise.
26444 * modules/strftime (Depends-on): Likewise.
26445 * modules/userspec (Depends-on): Likewise.
26446 * modules/utimecmp (Depends-on): Likewise.
26447 * modules/xgetcwd (Depends-on): Likewise.
26448 * modules/xnanosleep (Depends-on): Likewise.
26449 * modules/xstrtod (Depends-on): Likewise.
26450 * modules/yesno (Depends-on): Likewise.
26452 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
26454 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
26457 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
26459 Merge from coreutils. Among other things,
26460 add bulletproofing for cases where stdin, stdout, or stderr are closed.
26461 * lib/fd-safer.c: New file.
26462 * lib/fcntl-safer.h, open-safer.c: Remove.
26463 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
26464 * lib/dup-safer.c: Include unistd-safer.h first.
26465 Don't include errno.h.
26466 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
26467 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
26468 * lib/file-type.c: Rely on file-type.h change.
26469 * lib/getloadavg.c: Include unistd-safer.h.
26470 (getloadavg): Use safer open.
26471 * lib/getusershell.c: Include "stdio-safer.h".
26472 (getusershell): Use safer fopen.
26473 * lib/long-options.c (long_options): Use NULL rather than 0.
26474 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
26476 * lib/modechange.c: Likewise.
26477 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
26478 (MODE_DONE): New constant.
26479 (struct mode_change): Remove 'next' member.
26480 (make_node_op_equals): New function; like the old one of the
26481 same name, except it allocates an array.
26482 (mode_compile, mode_create_from_ref): Use it.
26483 (mode_compile): Allocate result as an array, not a linked list.
26484 Parse octal string ourself, so that we catch mistakes like "+0".
26485 (mode_adjust): Arg is an array, not a linked list.
26486 * lib/modechange.c: Include stat-macros.h, xalloc.h.
26487 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
26488 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
26489 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
26490 Remove. This is now stat-macros.h's job.
26491 (talloc): Remove. All callers replaced by xalloc, so that
26492 our invokers don't have to worry about reporting memory failures.
26493 (make_node_op_equals): Remove.
26494 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
26496 (struct mode_change): Moved here from modechange.h.
26497 (mode_append_entry): Remove.
26498 (mode_compile): Remove MASKED_OPS arg, since it encouraged
26499 apps to have incorrect behavior. Use simpler algorithm for head
26500 and tail. Don't futz with umask; that's now the job of mode_adjust.
26501 Detect more invalid usages rather than having somewhat-random behavior.
26502 Don't insert an "a=" action, as that leads to incorrect behavior.
26503 (mode_compile, mode_create_from_ref): Return NULL on error instead
26504 of an enum, since now there's only one way to have an error. All
26506 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
26507 at the correct time. Simplify calculation of "+u" and its ilk.
26508 Don't mishandle "+X".
26509 (mode_free): Remove "register" and localize decls.
26510 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
26511 (struct mode_change): Move to modechange.c; callers don't
26512 need to see this stuff.
26513 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
26514 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
26515 (mode_change, mode_adjust): Reflect the new signatures noted above.
26516 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
26517 that might redefine system include files.
26518 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
26519 (my_usleep): Use NULL rather than (void *) 0.
26520 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
26521 Use siginterrupt to specify that system calls should be interrupted.
26522 (rpl_nanosleep): Move initialization of suspended closer to call of
26524 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
26525 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
26526 (desirable_utmp_entry): New function.
26527 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
26528 using x2nrealloc, to simplify logic.
26529 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
26530 size calculation. Do not assume utmp file is a regular file.
26531 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
26532 (READ_UTMP_CHECK_PIDS): New constant.
26533 * lib/save-cwd.c: Include unistd-safer.h.
26534 (save_cwd): Use fd_safer.
26535 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
26536 [!_LIBC] Include "stat-macros.h" instead.
26537 * lib/unistd-safer.h (fd_safer): New decl.
26539 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
26541 * modules/getloadavg (Depends-on): Add unistd-safer.
26542 * modules/getusershell (Depends-on): Add stdio-safer.
26543 * modules/lstat (Depends-on): Remove xalloc.
26544 * modules/mkstemp (Depends-on): Add stat-macros.
26545 * modules/modechange (Depends-on): Remove xstrtol.
26546 Add stat-macros, xalloc.
26547 * modules/save-cwd (Depends-on): Add unistd-safer.
26548 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
26549 * modules/unistd-safer (Files): Add lib/fd-safer.c
26550 (Makefile.am): Remove lib_SOURCES.
26552 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
26553 Remove fcntl-safer; unistd-safer supersedes it.
26555 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
26557 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
26559 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
26560 (gl_PREREQ_CHOWN): Remove.
26561 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
26562 it. Don't require AC_HEADER_STAT.
26563 (gl_PREREQ_LSTAT): Remove.
26564 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
26565 Don't require AC_HEADER_STAT.
26566 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
26567 (gl_PREREQ_RMDIR): Remove.
26568 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
26569 mention stat-macros.h or AC_HEADER_STAT, since we'll make
26570 the stat-macros module a prerequisite.
26571 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
26572 * m4/filemode.m4 (gl_FILEMODE): Likewise.
26573 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
26574 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
26575 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
26577 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
26578 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
26580 * m4/fcntl-safer.m4: Remove.
26581 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
26582 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
26583 Invoke gl_PREREQ_FD_SAFER.
26584 (gl_PREREQ_FD_SAFER): New macro.
26585 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
26586 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
26587 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
26588 Remove duplicate call to AC_LIBOBJ(readutmp).
26589 (gl_PREREQ_READUTMP): Remove. All uses inlined.
26591 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
26592 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
26594 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
26596 * MODULES.html.sh (Misc): Add byteswap.
26598 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
26600 * modules/getcwd (Depends-on): Add extensions.
26601 * modules/openat (Depends-on): Likewise.
26603 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
26605 * modules/byteswap: New file.
26607 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
26609 * m4/byteswap.m4: New file.
26611 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
26613 * lib/byteswap_.h: New file.
26615 2005-04-25 Karl Berry <karl@gnu.org>
26617 * m4/gettext.m4: Update from GNU gettext 0.14.4.
26619 2005-04-25 Albert Chin <china@thewrittenword.com>
26621 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
26624 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
26626 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
26627 (func_ln_if_changed) Remove forcibly for no error message
26628 in case file does not exist.
26630 2005-04-19 Simon Josefsson <jas@extundo.com>
26632 * gnulib-tool (Options): Make --symlink mean --symbolic.
26634 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
26636 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
26638 2005-04-16 Simon Josefsson <jas@extundo.com>
26640 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
26642 2005-04-15 Simon Josefsson <jas@extundo.com>
26644 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
26646 2005-04-15 Simon Josefsson <jas@extundo.com>
26648 * gnulib-tool: Rename --symlink to --symbolic.
26650 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
26652 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
26653 symbolic links to files instead of copying/moving. Add --aux-dir,
26654 specifying directory relative --dir where auxiliary build tools
26657 2005-04-14 Bruno Haible <bruno@clisp.org>
26659 * modules/allocsa (License): Change to LGPL.
26660 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26662 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
26664 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
26665 that "UTC +1 second" continues to work. Problem reported
26666 by Dmitry V. Levin.
26667 (relunit_snumber): New rule.
26670 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
26672 * lib/getdate.y (universal_time_zone_table): New constant.
26673 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
26674 universal_time_zone_table.
26675 (lookup_zone): Prefer universal_time_zone_table to
26676 local_time_zone_table, so that "GMT" time stamps are allowed in
26677 London during the summer. Problem reported by Ian Abbott.
26679 2005-04-12 Jim Meyering <jim@meyering.net>
26681 * lib/human.c (humblock): Set *options even when returning due to
26682 xstrtoumax conversion failure. Thanks to a used-uninitialized
26683 warning from gcc-4.
26685 2005-04-09 Jim Meyering <jim@meyering.net>
26687 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
26688 -Wuninitialized: initialize tm0.tm_year.
26690 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
26692 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
26693 count, since there's no maximum. All uses changed.
26694 Add member dsts_seen.
26695 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
26697 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
26698 Use pc_rels_seen to decide whther a date is absolute.
26700 * lib/getdate.y (number): Don't overwrite year.
26701 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
26704 2005-04-02 Simon Josefsson <jas@extundo.com>
26706 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
26707 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
26709 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
26711 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
26712 where no absolute path name can be longer than PATH_MAX.
26714 2005-03-27 Jim Meyering <jim@meyering.net>
26716 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
26718 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
26720 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
26721 "one's complement" -> "ones' complement" in comment, as per Knuth.
26722 "value of type" -> "type or expression" in comment.
26723 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
26725 2005-03-26 Jim Meyering <jim@meyering.net>
26728 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
26729 Correct typos: s/or/of/.
26731 2005-03-26 Jim Meyering <jim@meyering.net>
26733 * modules/check-include-files: Move to ../ and rename to...
26734 * check-module: ...this.
26736 2005-03-25 Jim Meyering <jim@meyering.net>
26738 * modules/xvasprintf (Files): Add xalloc.h.
26740 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
26742 * modules/gettext (Files): config/config.rpath ->
26743 build-aux/config.rpath
26744 * modules/iconv (Files): Likewise.
26745 Problem reported by Oskar Liljeblad.
26747 2005-03-23 Jim Meyering <jim@meyering.net>
26749 * modules/check-include-files: New script to check for
26750 missing dependencies, multiple includes, etc.
26752 * modules/c-strtold (Depends-on): Add xalloc.
26753 * modules/c-strtod (Depends-on): Add xalloc.
26754 * modules/hash (Depends-on): Add xalloc.
26755 (Files): Remove lib/xalloc.h.
26757 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
26758 * modules/userspec (Files): Add lib/inttostr.h.
26760 2005-03-23 Jim Meyering <jim@meyering.net>
26762 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
26764 2005-03-22 Jim Meyering <jim@meyering.net>
26766 * modules/stat-macros: New module.
26767 * modules/canonicalize, modules/euidaccess, modules/file-type,
26768 * modules/filemode, modules/lchown, modules/makepath,
26769 * modules/rmdir, modules/stat: Depend on new stat-macros module
26770 rather than listing lib/stat-macros.h manually.
26771 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
26773 2005-03-22 Jim Meyering <jim@meyering.net>
26775 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
26777 2005-03-22 Bruno Haible <bruno@clisp.org>
26779 * config/srclist.txt: Replace target directory 'config' with
26781 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
26782 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
26785 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
26787 * modules/chdir-long (Depends-on): Add mempcpy.
26789 * modules/acl, modules/backupfile, modules/c-strtod,
26790 modules/c-strtold, modules/canon-host, modules/canonicalize,
26791 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
26792 modules/exclude, modules/exitfail, modules/file-type,
26793 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
26794 modules/getdate, modules/getline, modules/getpagesize,
26795 modules/getpass, modules/getugroups, modules/group-member,
26796 modules/hard-locale, modules/hash, modules/human, modules/idcache,
26797 modules/inttostr, modules/long-options, modules/makepath,
26798 modules/md5, modules/memcasecmp, modules/memcoll,
26799 modules/modechange, modules/mountlist, modules/path-concat,
26800 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
26801 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
26802 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
26803 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
26804 modules/strftime, modules/strndup, modules/strverscmp,
26805 modules/timespec, modules/unlocked-io, modules/userspec,
26806 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
26808 Remove lib_SOURCES line from Makefile.am section, as this is now
26809 done automatically by the corresponding Autoconf macro.
26811 2005-03-21 Jim Meyering <jim@meyering.net>
26813 Changes imported from coreutils.
26815 * lib/cycle-check.c: Don't include xalloc.h.
26817 * lib/path-concat.c: Don't include assert.h.
26818 (path_concat): Remove assertion that would have triggered
26819 for ABASE starting with more than one slash.
26820 Reported by Andreas Schwab.
26822 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
26823 properly when ABASE is an absolute file name.
26824 Correct the description of this function.
26825 Include <assert.h>.
26826 Add an assertion and a test driver.
26827 This fixes a bug introduced on 2004-07-02.
26828 Andreas Schwab reported the resulting failure of cp --parents:
26829 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
26831 2005-03-21 Jim Meyering <jim@meyering.net>
26833 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
26834 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
26836 2005-03-21 Jim Meyering <jim@meyering.net>
26837 and Paul Eggert <eggert@cs.ucla.edu>
26839 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
26840 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
26841 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
26842 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
26843 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
26844 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
26845 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
26846 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
26847 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
26848 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
26849 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
26850 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
26851 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
26852 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
26853 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
26854 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
26855 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
26858 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
26860 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
26861 (which shouldn't happen), generate nothing instead of returning 0
26862 immediately, so that nstrftime (NULL, ...) doesn't return 0.
26864 2005-03-16 Bruno Haible <bruno@clisp.org>
26866 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
26867 HAVE_LONGLONG_64BIT.
26869 2005-03-16 Bruno Haible <bruno@clisp.org>
26871 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
26872 HAVE_LONGLONG_64BIT.
26874 2005-03-16 Bruno Haible <bruno@clisp.org>
26876 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
26877 HAVE_LONGLONG_64BIT.
26879 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
26881 * lib/strftime.c (my_strftime): Prepend space to format so that we can
26882 reliably distinguish strftime failure from empty output on POSIX
26885 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
26887 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
26888 (iconv_string): Don't guess a size-zero buffer, as that might cause
26889 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
26890 result would be 'too large', where 'too large' is (heuristically)
26891 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
26892 overflow concerns. This will prevent some unwanted malloc failures
26893 when the inputs are very large.
26895 2005-03-15 Karl Berry <karl@gnu.org>
26897 * config/srclist.txt (config.rpath): from gettext.
26898 * config/config.rpath: update.
26900 2005-03-15 Bruno Haible <bruno@clisp.org>
26902 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
26905 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
26908 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
26911 2005-03-14 Simon Josefsson <jas@extundo.com>
26913 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
26916 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
26918 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
26919 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
26921 * lib/strtol.c: Likewise.
26923 2005-03-14 Jim Meyering <jim@meyering.net>
26925 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
26926 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
26927 to be nonzero so that we (and caller) can detect the difference
26928 between a valid zero-length expansion and an error return, even
26929 when the underlying strftime fails before writing anything into
26932 2005-03-14 Bruno Haible <bruno@clisp.org>
26934 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
26935 Update from GNU gettext 0.14.3.
26937 2005-03-10 Jim Meyering <jim@meyering.net>
26939 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
26941 2005-03-10 Jim Meyering <jim@meyering.net>
26943 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
26944 so that this module works on systems without fchdir.
26946 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
26948 Factor int-properties macros into a single file, except for
26949 glibc-related files.
26950 * lib/intprops.h: New file.
26951 * lib/getloadavg.c: Include it instead of limits.h.
26952 (INT_STRLEN_BOUND): Remove.
26953 * lib/human.c: Include intprops.h.
26954 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
26955 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
26957 * lib/inttostr.h: Include intprops.h instead of limits.h.
26958 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
26959 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
26960 for consistency with intprops.h.
26961 (time_t_is_integer, twos_complement_arithmetic): Use them.
26962 * lib/sig2str.h: Include <signal.h>, intprops.h.
26963 (INT_STRLEN_BOUND): Remove.
26964 * lib/strftime.c (TYPE_SIGNED): Remove.
26965 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
26966 * lib/strtol.c: Adjust comments to match intprops.h.
26967 * lib/userspec.c: Include intprops.h.
26968 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
26969 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
26970 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
26971 instead of rolling our own expressions.
26972 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
26974 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
26976 (my_strftime): Do not mishandle years close to INT_MAX, by doing
26977 the right thing even if adding 1900 would overflow. Similarly
26978 for tm_mon + 1 and tm_yday + 1.
26979 Make %Y always equivalent to %C%y, and similarly for %G and %g.
26980 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
26981 (DO_SIGNED_NUMBER): New macro.
26982 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
26984 2005-03-07 Bruno Haible <bruno@clisp.org>
26986 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
26988 2005-03-07 Bruno Haible <bruno@clisp.org>
26990 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
26992 2005-03-04 Derek R. Price <derek@ximbiot.com>
26994 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
26995 (func_import): Only replace files via --import when they have actually
26998 2005-03-03 Derek R. Price <derek@ximbiot.com>
27000 * m4/mmap-anon.m4: New file.
27001 * m4/pagealign_alloc.m4: New file.
27003 2005-03-03 Derek R. Price <derek@ximbiot.com>
27004 Bruno Haible <bruno@clisp.org>
27006 * modules/pagealign_alloc: New file.
27007 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
27009 2005-03-03 Derek R. Price <derek@ximbiot.com>
27010 Bruno Haible <bruno@clisp.org>
27012 * lib/pagealign_alloc.h: New file.
27013 * lib/pagealign_alloc.c: New file.
27015 2005-03-03 Bruno Haible <bruno@clisp.org>
27017 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
27018 Use an all-permissive copyright notice, recommended by RMS.
27020 2005-03-02 Bruno Haible <bruno@clisp.org>
27022 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
27023 of AIX, the replacement has to be done only after <string.h> is
27024 included, therefore not in config.h. stpncpy.h does the replacement,
27025 and stpncpy.c uses it.
27027 2005-03-02 Bruno Haible <bruno@clisp.org>
27029 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
27032 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
27034 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
27035 The workaround isn't strictly needed for POSIX conformance, and
27036 it's too much of a pain to configure and maintain. We'll ask
27037 people to fix their kernels instead.
27038 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
27039 (NANOSLEEP_BUG_WORKAROUND): Remove.
27040 (xnanosleep): Remove the workaround.
27042 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
27044 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
27045 Reported by Derek Price.
27046 (Include): Add "timespec.h".
27048 * modules/xnanosleep (Depends-on): Remove gethrxtime.
27050 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
27052 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
27053 to detect nanosleep bug.
27055 2005-03-01 Bruno Haible <bruno@clisp.org>
27057 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
27059 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
27061 * modules/gethrxtime: New file.
27062 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
27063 (Depends-on): Add gethrxtime.
27064 (configure.ac): Add gl_XNANOSLEEP.
27065 (Makefile.am): Remove lib_SOURCES line.
27067 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
27069 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
27070 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
27072 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
27074 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
27075 * lib/timespec.h (gettime): Return void, since it always
27076 succeeds now. All uses changed.
27077 * lib/gettime.c (gettime) Likewise.
27078 [HAVE_NANOTIME]: Prefer nanotime.
27079 Assume gettimeofday succeeds, as POSIX requires.
27080 Assime time () succeeds, since other code already does.
27081 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
27082 (timespec_subtract): Remove.
27083 (NANOSLEEP_BUG_WORKAROUND): New constant.
27084 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
27085 things considerably. Use it only on GNU/Linux hosts, since the
27086 workaround shouldn't be needed elsewhere.
27088 2005-02-24 Bruno Haible <bruno@clisp.org>
27090 * modules/gettext (Files): Add m4/glibc2.m4.
27092 2005-02-24 Bruno Haible <bruno@clisp.org>
27094 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
27095 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
27097 Update from GNU gettext 0.14.2.
27098 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
27100 2005-02-24 Bruno Haible <bruno@clisp.org>
27102 * lib/localcharset.c: Update from GNU gettext 0.14.2.
27103 * lib/config.charset: Update from GNU gettext 0.14.2.
27105 2005-02-24 Bruno Haible <bruno@clisp.org>
27107 * lib/gettext.h: Update from GNU gettext 0.14.2.
27109 2005-02-23 Simon Josefsson <jas@extundo.com>
27111 * m4/iconvme.m4: New file.
27113 2005-02-23 Jim Meyering <jim@meyering.net>
27115 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
27117 Thanks to Bruno Haible for catching it.
27119 2005-02-22 Simon Josefsson <jas@extundo.com>
27121 * modules/iconvme: New file.
27123 * MODULES.html.sh: Add iconvme.
27125 2005-02-22 Simon Josefsson <jas@extundo.com>
27127 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
27129 2005-02-22 Simon Josefsson <jas@extundo.com>
27131 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
27133 2005-02-22 Jim Meyering <jim@meyering.net>
27135 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
27138 2005-02-20 Neil Conway <neilc@samurai.com>
27140 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
27141 returned by OSX/Darwin if the specified buffer is not large
27142 enough for the hostname.
27144 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27146 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
27147 pass it to _help, otherwise the latter coredumps trying to
27148 dereference state.root_argp.
27150 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
27152 * modules/chdir-long (Depends-on): Add memrchr.
27153 * modules/memrchr (Files): Add lib/memrchr.h.
27154 (Include): "memrchr.h".
27156 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
27158 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
27160 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
27162 * lib/memrchr.h: New file.
27163 * lib/chdir-long.c: Include it.
27164 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
27165 Don't bother including stddef.h.
27167 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
27169 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
27171 Include <sys/types.h>, for dev_t.
27172 (ME_DUMMY, ME_REMOTE): Move from here....
27173 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
27174 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
27176 Include mountlist.h first, to test the interface.
27178 2005-01-29 Bruno Haible <bruno@clisp.org>
27180 * lib/progname.c (program_name): Initialize.
27181 Needed when linking statically on MacOS X.
27183 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
27185 Sync from coreutils.
27186 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
27187 (Depends-on): Add c-strtod.
27188 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
27190 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
27192 Sync from coreutils.
27193 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
27195 Remove files that are specific to coreutils.
27196 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
27198 2005-01-28 Bruno Haible <bruno@clisp.org>
27200 * modules/javacomp: New file.
27201 * MODULES.html.sh (Java): Add javacomp.
27203 2005-01-28 Bruno Haible <bruno@clisp.org>
27205 * m4/javacomp.m4: New file, from GNU gettext.
27207 2005-01-28 Bruno Haible <bruno@clisp.org>
27209 * lib/javacomp.sh.in: New file, from GNU gettext.
27210 * lib/javacomp.h: New file, from GNU gettext.
27211 * lib/javacomp.c: New file, from GNU gettext.
27213 2005-01-26 Simon Josefsson <jas@extundo.com>
27215 * lib/gai_strerror.c: Use GPL in header.
27217 2005-01-26 Bruno Haible <bruno@clisp.org>
27219 * modules/javaexec: New file.
27220 * MODULES.html.sh (Java): Add javaexec.
27222 2005-01-26 Bruno Haible <bruno@clisp.org>
27224 * m4/javaexec.m4: New file, from GNU gettext.
27226 2005-01-26 Bruno Haible <bruno@clisp.org>
27228 * lib/javaexec.sh.in: New file, from GNU gettext.
27229 * lib/javaexec.h: New file, from GNU gettext.
27230 * lib/javaexec.c: New file, from GNU gettext.
27232 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27234 * modules/lchown (Depends-on): Remove lchown.h
27236 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27238 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
27239 must be defined if the header file was not found, in order
27240 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
27242 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27244 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
27245 initializers for struct pentry_state.
27246 (__argp_error): Check return value of __asprintf
27247 (__argp_failure): Translate error message
27249 * lib/argp-parse.c: Removed braces around the expansion of N_()
27251 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
27253 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
27254 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
27255 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
27256 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
27257 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
27258 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
27259 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
27260 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
27261 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
27262 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
27263 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
27264 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
27265 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
27266 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
27267 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
27268 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
27269 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
27270 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
27271 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
27272 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
27273 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
27274 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
27275 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
27276 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
27277 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
27278 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
27279 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
27280 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
27281 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
27282 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
27283 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
27284 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
27285 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
27286 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
27287 xstrtol.m4, xstrtoumax.m4, yesno.m4:
27288 Use an all-permissive copyright notice, recommended by RMS.
27290 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
27292 * modules/chdir-long (Depends-on): Remove mempcpy.
27294 2005-01-21 Jim Meyering <jim@meyering.net>
27296 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
27297 same value as for Solaris 9.
27299 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
27300 component length. This included changing the parameter to be
27301 of type `char *' rather than `char const *'.
27302 * lib/chdir-long.h (chdir_long): Update prototype.
27304 * lib/openat.c (fdopendir, fstatat): New functions.
27305 * lib/openat.h: Include headers required for use of DIR and struct
27307 [AT_SYMLINK_NOFOLLOW]: Define.
27308 (fdopendir, fstatat): Add prototypes.
27310 2005-01-21 Bruno Haible <bruno@clisp.org>
27312 * modules/classpath: New file.
27313 * MODULES.html.sh (Java): Add classpath.
27315 2005-01-21 Bruno Haible <bruno@clisp.org>
27317 * lib/classpath.h: New file, from GNU gettext.
27318 * lib/classpath.c: New file, from GNU gettext.
27320 2005-01-20 Simon Josefsson <jas@extundo.com>
27322 * modules/version-etc-fsf: New file.
27324 2005-01-20 Simon Josefsson <jas@extundo.com>
27326 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
27327 * lib/version-etc.c: Remove version_etc_copyright.
27328 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
27329 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
27331 2005-01-20 Simon Josefsson <jas@extundo.com>
27333 * lib/base64.h (isbase64): Add.
27335 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
27336 using a unsigned prototype, don't inline.
27337 (base64_decode): Use it.
27339 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
27341 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
27344 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
27346 * lib/save-cwd.c (save_cwd): Remove code to support the case
27347 where fchdir is missing or flaky.
27349 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
27351 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
27353 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
27355 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
27356 AC_LIBSOURCES now does this.
27357 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
27358 with new ullong_max module.
27360 2005-01-19 Bruno Haible <bruno@clisp.org>
27362 * modules/sh-quote: New file.
27363 * MODULES.html.sh (Executing programs): Add sh-quote.
27365 2005-01-19 Bruno Haible <bruno@clisp.org>
27367 * lib/sh-quote.h: New file, from GNU gettext.
27368 * lib/sh-quote.c: New file, from GNU gettext.
27370 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
27372 Merge from coreutils.
27373 * m4/ullong_max.m4: New file.
27374 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
27375 (gl_MACROS): Assume localeconv exists.
27377 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
27379 Merge changes from coreutils, as described below in several
27380 changelogs dated today.
27382 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
27383 (O_DIRECTORY): Remove; not needed here, since "." must be
27384 a directory. All uses removed.
27385 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
27386 universal on Suns, and we also need to test for IRIX.
27387 Revamp code to use 'if' rather than '#if'.
27388 Avoid unnecessary comparison of cwd->desc to 0.
27390 * lib/utimens.c (futimens): Robustify the previous patch, by checking
27391 for known valid error numbers rather than observed invalid ones.
27393 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
27395 * modules/ullong_max: New file.
27397 * modules/chdir-long, modules/openat: New files.
27398 * modules/save-cwd (Depends-on): Depend on chdir-long.
27399 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
27401 2005-01-18 Jim Meyering <jim@meyering.net>
27403 Merge from coreutils.
27404 * m4/chdir-long.m4, m4/openat.m4: New files.
27405 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
27406 save-cwd.h. Add AC_LIBOBJ for save-cwd.
27407 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
27408 is sane and DOES follow symlinks. Besides, testing 20 different
27409 systems found no broken chown implementations.
27410 Prompted by a change in rsync's copy of this macro.
27411 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
27413 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
27415 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
27416 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
27417 NULL-means-set-to-current-time semantics.
27418 Remove temporary file immediately, rather than waiting
27419 for configure's at-exit trap code to do it.
27421 2005-01-18 Jim Meyering <jim@meyering.net>
27423 * lib/version-etc.c (version_etc_copyright): Update copyright date.
27425 * lib/utimens.c (futimens): Account for the fact that futimes
27426 can also fail with errno == ENOSYS or errno == ENOENT.
27427 Patch from Dmitry V. Levin.
27429 Change the name of the robust chdir function from chdir to chdir_long.
27430 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
27431 (restore_cwd): Use chdir_long, not chdir.
27432 * lib/chdir-long.c: Renamed from chdir.c.
27433 * lib/chdir-long.h: Renamed from chdir.h.
27434 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
27437 2005-01-18 Bruno Haible <bruno@clisp.org>
27439 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
27440 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
27441 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
27442 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
27443 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
27444 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
27445 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
27446 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
27447 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
27448 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
27449 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
27450 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
27451 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
27452 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
27453 Use an all-permissive copyright notice, recommended by RMS.
27455 2005-01-18 Bob Proulx <bob@proulx.com>
27457 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
27458 simplify offsetof() macro construct to avoid compile failure with
27459 native HP-UX 11.0 ANSI C compiler.
27461 2005-01-17 Bruno Haible <bruno@clisp.org>
27463 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
27464 redundant because stpncpy.m4 takes care of it.
27466 2005-01-17 Bruno Haible <bruno@clisp.org>
27468 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
27470 2005-01-17 Bruno Haible <bruno@clisp.org>
27472 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
27475 2005-01-17 Bruno Haible <bruno@clisp.org>
27477 * lib/fwriteerror.h (fwriteerror): Change specification to include
27479 * lib/fwriteerror.c: Include <stdbool.h>.
27480 (fwriteerror): At the end, close the file stream. Record whether
27481 stdout was already closed.
27483 2005-01-17 Bruno Haible <bruno@clisp.org>
27485 * lib/execute.c (environ): Declare if needed.
27486 * lib/pipe.c (environ): Likewise.
27487 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
27489 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27491 * modules/argp: Depend on vsnprintf
27493 2005-01-10 Jim Meyering <jim@meyering.net>
27495 * modules/closeout (Depends-on): Add atexit.
27497 2005-01-06 Bruno Haible <bruno@clisp.org>
27499 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
27501 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
27503 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
27504 definitions to be after all include files, to avoid collisions.
27505 Problem reported by Bob Proulx.
27507 2005-01-04 Jim Meyering <jim@meyering.net>
27509 Changes imported from coreutils.
27510 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
27511 as the mkstemp template, use a temporary directory and an
27512 8.3-friendly template to avoid trouble on systems like DJGPP.
27513 Reported by Juan M. Guerrero via Stepan Kasal.
27514 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
27515 close. Remove the temporary directory right away, rather than waiting
27516 for configure's at-exit trap code to do it.
27517 Suggestion from Stepan Kasal.
27519 2005-01-01 Simon Josefsson <jas@extundo.com>
27521 * gnulib-tool: Print #include directives when --import'ing.
27523 2004-12-28 Simon Josefsson <jas@extundo.com>
27525 * tests/test-base64.c: Include required header files. Remove
27528 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
27530 * modules/error (Depends-on): Remove gettext.
27532 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
27534 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
27535 not needed. This removes a dependency on the gettext module.
27536 [defined _LIBC]: Do not include <libintl.h>; not needed.
27538 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
27540 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
27541 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
27543 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
27545 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
27548 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
27550 * modules/getdate (Depends-on): Remove alloca-opt.
27552 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
27554 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
27556 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
27558 * lib/argp-parse.c: Include <stddef.h>.
27559 (alignof, alignto): New macros.
27560 (parser_init): Don't assume that void * is aligned sufficiently
27563 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
27564 need to extend the stack.
27565 (YYINITDEPTH): New macro, so that the initial stack isn't overly
27568 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27570 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
27572 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
27574 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
27575 (2004-10-24) change. Apparently this was a false alarm.
27577 * modules/getdate: Depend on alloca-opt, not alloca.
27579 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
27581 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
27582 Remove now-obsolete comment about AIX.
27583 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
27584 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
27585 (YYMAXDEPTH): New macro.
27587 2004-12-18 Simon Josefsson <jas@extundo.com>
27589 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
27591 2004-12-18 Bruno Haible <bruno@clisp.org>
27593 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
27595 2004-12-18 Bruno Haible <bruno@clisp.org>
27597 * lib/fatal-signal.c (fatal_signals): Make non-const.
27598 (init_fatal_signals): New function.
27599 (uninstall_handlers, install_handlers): Ignore signals that were set to
27601 (at_fatal_signal): Call init_fatal_signals.
27602 (init_fatal_signal_set): Likewise. Ignore signals that were set to
27604 Reported by Paul Eggert.
27606 2004-12-18 Bruno Haible <bruno@clisp.org>
27608 * doc/alloca.texi: New file.
27609 * doc/alloca-opt.texi: New file.
27611 2004-12-17 Jim Meyering <jim@meyering.net>
27613 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
27614 Otherwise, install-sh could exit with improper exit status when
27615 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
27617 2004-12-16 Simon Josefsson <jas@extundo.com>
27619 * tests/test-base64.c: Add license.
27621 2004-12-15 Stepan Kasal <address@hidden>
27623 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
27625 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
27627 * modules/getcwd (Files): Add m4/d-ino.m4.
27628 Suggested by Mark D. Baushke.
27630 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
27632 * lib/getdate.y (textint): New member "negative".
27633 (time_zone_hhmm): New function.
27634 Expect 14 shift-reduce conflicts, not 13.
27635 (o_colon_minutes): New rule.
27636 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
27637 (yylex): Set the "negative" member of signed numbers.
27639 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
27641 * doc/getdate.texi (Time of day items, Time zone items):
27642 Describe new formats +00:00, UTC+00:00.
27644 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
27646 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
27647 spurious "-l"s. Problem reported by Stepan Kasal.
27649 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
27651 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
27652 in Autoconf 2.59. Problem reported by Mark D. Baushke.
27654 2004-12-04 Simon Josefsson <jas@extundo.com>
27656 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
27657 Vandoorselaere <yoann@prelude-ids.org>.
27659 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
27661 Changes imported from coreutils.
27662 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
27664 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
27666 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
27668 Changes imported from coreutils.
27669 * lib/hard-locale.c: Assume <locale.h> exists.
27670 Include "strdup.h".
27671 (GLIBC_VERSION): New macro.
27672 (hard_locale): Assume setlocale exists.
27673 Rewrite to avoid #ifdef.
27674 Use strdup rather than malloc + strcpy.
27675 * lib/human.c: Assume <locale.h> exists.
27676 (human_readable): Assume localeconv exists.
27678 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
27680 * modules/hard-locale (Depends-on): Add strdup.
27682 2004-12-01 Jakub Jelinek <jakub@redhat.com>
27684 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
27685 convert T2, not T. (Imported from libc.)
27687 2004-11-30 Simon Josefsson <jas@extundo.com>
27689 * modules/restrict (License): Change to LGPL.
27691 2004-11-30 Simon Josefsson <jas@extundo.com>
27693 * m4/restrict.m4: Add copyright and copying conditions.
27695 2004-11-30 Simon Josefsson <jas@extundo.com>
27697 * m4/base64.m4: New file.
27699 2004-11-30 Simon Josefsson <jas@extundo.com>
27701 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
27704 * tests/test-base64.c: New file.
27706 * modules/base64: New file.
27708 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
27710 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
27711 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
27713 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
27715 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
27717 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
27718 (__getcwd.c): Don't restore errno; glibc doesn't.
27719 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
27720 first, falling back to our code only if its results look suspicious.
27721 Ensure that the resulting buffer is only as large as necessary.
27723 * lib/readutmp.c: Include readutmp.h first.
27724 Include <errno.h>, since readutmp.h no longer does that.
27725 * lib/readutmp.h: Don't include <errno.h>,
27726 <sys/param.h>, <time.h>; not needed to establish interface.
27727 (errno): Remove decl.
27728 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
27729 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
27730 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
27732 2004-11-28 Simon Josefsson <jas@extundo.com>
27734 * lib/base64.h, base64.c: New file.
27736 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
27738 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
27740 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
27742 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
27743 (Depends-on): Remove pathmax, same. Add mempcpy.
27744 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
27745 (Makefile.am): Append getcwd.h to lib_SOURCES.
27746 (Include): Add getcwd.h.
27747 (Maintainer): Change from Jim Meyering to "all, glibc",
27748 since getdate now uses intended-for-glibc code.
27749 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
27750 (Depends-on): Depend on getcwd. Do not depend on pathmax.
27752 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
27754 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
27755 HP's ANSI C compiler.
27756 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
27757 Declaring int functions causes warnings on some modern systems and
27758 shouldn't be needed to compile on ancient ones.
27759 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
27762 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
27763 with the following changes.
27764 (__set_errno): Parenthesize properly.
27765 Include <stdbool.h>.
27766 (MIN, MAX, MATCHING_INO): New macros.
27767 (__getcwd): Define with prototype, not K&R form.
27768 Use heuristics to allocate default buffer on stack if possible.
27769 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
27770 behavior, and to avoid the PATH_MAX limit when computing
27772 Use MATCHING_INO to compare inode number to file.
27773 Check for arithmetic overflow in size calculations.
27774 Fix bug in reallocation of dot array that caused getcwd to fail
27775 on directories nested deeper than 75.
27776 Be more careful about saving errno on error.
27777 Do not use realloc; use only free+malloc, as this is a bit
27778 more flexible and avoids a needless copy operation.
27779 Do not inspect st_dev and st_ino for symbolic links; POSIX
27780 doesn't specify the latter.
27781 Check for closedir errors.
27782 Avoid needless casts.
27783 Use "#ifdef weak_alias" around weak_alias, to be like other
27785 The following changes to getcwd.c have effect only when used in
27786 gnulib; they have no effect inside glibc proper.
27787 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
27788 as alloca isn't used.
27789 (alloca, __alloca): Likewise.
27790 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
27791 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
27792 unconditionally, as gnulib assumes C89 or better.
27793 Do not include <sys/param.h>.
27794 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
27795 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
27797 (NULL) [!defined NULL]: Remove; we assume C89 or better.
27798 Include <dirent.h> in a way that is compatible with modern Autoconf.
27799 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
27800 New macros, if not already defined.
27801 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
27802 Use "_LIBC", not "defined _LIBC", for consistency.
27803 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
27805 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
27806 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
27807 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
27808 credit only to Jim Meyering and adjust the copyright dates.
27809 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
27810 <stdlib.h>, <unistd.h>, "pathmax.h".
27811 Instead, include "xgetcwd.h" (first) and "getcwd.h".
27812 (INITIAL_BUFFER_SIZE): Remove.
27813 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
27815 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
27817 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
27818 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
27819 Use the _ONCE methods, for efficiency.
27820 Check for fcntl.h. In test program, include <errno.h>
27821 and <fcntl.h> if available. Remove old K&R cruft from
27822 test program. Check for common errors in GNU/Linux,
27823 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
27824 don't do AC_LIBOBJ, as that's getcwd.m4's job.
27825 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
27826 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
27828 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
27829 accommodate new getcwd.c.
27830 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
27831 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
27832 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
27833 that's all we need now.
27835 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27837 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
27838 argp-parse.c depends on getopt internals, that means we should
27839 always use our getopt, to be on the safe side.
27840 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
27841 order not to spoil the result of an eventual previous invocation
27842 of gl_GETOPT_SUBSTITUTE.
27844 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27846 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
27847 redefinition warnings. To avoid them, include the defines
27848 in `#if !defined __need_getopt ... #endif'. The only place
27849 where __getopt_argv_const is used is in definitions
27850 of getopt_long and getopt_long_only below, which are as well
27851 protected by `#ifndef __need_getopt'.
27852 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
27853 __need_getopt after including <stdio.h> and <unistd.h> These
27854 headers might have defined it.
27856 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
27858 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
27860 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
27862 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
27863 (futimens): New function, which uses futimes if available.
27864 (futimens, utimens): Support timespec==NULL, with same semantics
27865 as utime and utimens.
27866 * lib/utimens.h (futimens): New decl.
27868 2004-11-23 Jim Meyering <jim@meyering.net>
27870 * lib/getopt_.h: Remove trailing blanks.
27872 2004-11-23 Jim Meyering <jim@meyering.net>
27874 * lib/__fpending.c: Add comment.
27876 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
27878 * modules/canonicalize (Depends-on): Add xreadlink.
27879 Problem reported by James Youngman.
27881 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
27883 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
27885 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
27886 optopt): Use them instead of invoking ## directly; otherwise, the
27887 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
27889 2004-11-19 Bruno Haible <bruno@clisp.org>
27891 * lib/strtok_r.c: Move comments from here...
27892 * lib/strtok_r.h: ... to here.
27894 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
27896 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
27897 implementations that mishandle size_t overflow.
27899 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
27901 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
27902 might fail. Problem reported by Yoann Vandoorselaere.
27903 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
27904 implementations that mishandle size_t overflow.
27906 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
27908 * modules/canon-host (Depends-on): Add strdup.
27910 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
27912 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
27914 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
27916 * lib/canon-host.c: Include "strdup.h".
27917 (canon_host): Use getaddrinfo if available, so that IPv6 works.
27918 Use strdup instead of malloc/strcpy to duplicate strings.
27920 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
27921 (human_space_before_unit): New constant.
27922 * lib/human.c (human_readable): Support it.
27924 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
27925 (xgetcwd): Set errno correctly when failing.
27926 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
27927 the failure is actually due to a PATH_MAX problem.
27929 Further getopt changes to make it more likely that glibc will
27930 buy the changes back.
27931 * lib/getopt.c (POSIXLY_CORRECT): New constant.
27932 (getopt): Use it, so to preserve glibc semantic
27933 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
27934 when compiling for libc.
27935 * lib/getopt_.h (__getopt_argv_const): Bring it back.
27936 (getopt_long, getopt_long_only): Use it.
27938 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
27939 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
27940 (getopt): Argv is now char * const *, as per standard.
27941 (_getopt_internal_r, _getopt_internal): Argv is now char **,
27942 not char *__getopt_argv_const *.
27943 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
27944 _getopt_long_only_r): Likewise.
27945 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
27946 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
27947 _getopt_long_r, _getopt_long_only_r): Likewise.
27948 * lib/getopt_.h (__getopt_argv_const): Remove.
27949 (getopt): Argv is now char * const *, as per standard.
27951 * lib/getdate.y (tORDINAL): New token.
27952 (day, relunit): Allow it for relative times.
27953 (relative_time_table): Use tORDINAL for ordinals.
27955 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
27957 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
27958 Document that "second" isn't allowed as an ordinal number.
27960 2004-11-16 Jim Meyering <jim@meyering.net>
27962 * modules/closeout (Depends-on): Add fpending.
27964 2004-11-15 Jim Meyering <jim@meyering.net>
27966 * lib/closeout.c: Include "__fpending.h" once again.
27967 Include <stdbool.h>.
27968 (close_stdout): Don't fail just because stdout was closed initially,
27969 since some programs don't write to stdout in the normal course of
27970 operation (other than --version and --help), and we don't want this
27971 function to make e.g. `touch file >&-' fail.
27972 But do fail if it was closed and someone has tried to write to it.
27973 E.g., `printf foo >&-' must fail.
27975 2004-11-13 Jim Meyering <jim@meyering.net>
27977 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
27979 2004-11-12 Simon Josefsson <jas@extundo.com>
27981 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
27982 small doc fix is still pending.
27984 2004-11-11 Simon Josefsson <jas@extundo.com>
27986 * modules/strtok_r: New file.
27988 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27991 2004-11-11 Simon Josefsson <jas@extundo.com>
27993 * m4/strtok_r.m4: New file.
27995 * m4/getopt.m4: Replace opterr.
27997 2004-11-11 Simon Josefsson <jas@extundo.com>
27999 * lib/strtok_r.h, strtok_r.c: New file.
28001 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
28003 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
28004 of replacing opterr, getopt, etc. This should handle the
28005 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
28007 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
28009 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
28010 we can stop lying to compilers about the constness of argv when we
28011 are compiled outside glibc.
28012 (getopt, getopt_long, getopt_long_only): Use it.
28013 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
28014 _getopt_internal, getopt): Likewise.
28015 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
28016 _getopt_long_only_r): Likewise.
28017 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
28018 _getopt_long_r, _getopt_long_only_r): Likewise.
28020 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
28021 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
28022 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
28023 the other external symbols.
28024 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
28025 declaration, since the above renaming now works around collisions.
28027 2004-11-11 Jim Meyering <jim@meyering.net>
28029 * lib/linebreak.c: Remove trailing blanks.
28030 * lib/alloca_.h: Likewise.
28031 * lib/acosl.c: Likewise.
28032 * lib/euidaccess.c: Likewise.
28033 * lib/allocsa.h: Likewise.
28035 2004-11-10 Simon Josefsson <jas@extundo.com>
28037 * m4/getaddrinfo.m4: New file.
28039 2004-11-10 Simon Josefsson <jas@extundo.com>
28041 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
28043 2004-11-10 Simon Josefsson <jas@extundo.com>
28045 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28048 * modules/getaddrinfo: New file.
28050 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
28052 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
28054 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
28056 * lib/mktime.c (SHR): New macro, which is a portable
28057 substitute for >> that should work even on Crays.
28058 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
28059 Problem reported by Mark D. Baushke in
28060 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
28061 * lib/getdate.y (SHR): Likewise.
28063 * lib/strftime.c (SHR): Likewise.
28065 * lib/quotearg.c (struct quoting_options): Use unsigned int for
28066 quote_these_too, so that right shifts are well defined. All uses
28069 2004-11-10 Jim Meyering <jim@meyering.net>
28071 Ensure that no close failure goes unreported.
28072 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
28073 return early when it seems there's nothing to flush.
28074 Don't include __fpending.h.
28076 2004-11-10 Jim Meyering <jim@meyering.net>
28078 * modules/closeout (Depends-on): Remove fpending.
28080 2004-11-10 Jim Meyering <jim@meyering.net>
28082 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
28084 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
28086 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
28088 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
28089 and AC_REQUIRE when possible, to avoid duplicate checks.
28090 Check for <wchar.h>.
28092 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
28094 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
28096 2004-11-09 Bruno Haible <bruno@clisp.org>
28098 * m4/sockpfaf.m4: New file.
28100 2004-11-05 Bruno Haible <bruno@clisp.org>
28102 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
28103 Reported by Mark D. Baushke <mdb@cvshome.org>.
28105 2004-11-04 Bruno Haible <bruno@clisp.org>
28107 2004-09-11 Bruno Haible <bruno@clisp.org>
28108 * allocsa.valgrind: New file.
28109 2004-02-06 Bruno Haible <bruno@clisp.org>
28110 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
28111 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
28112 Reported by Christopher Seip <chris.seip@hp.com>.
28114 2004-11-04 Bruno Haible <bruno@clisp.org>
28116 * modules/allocsa (Files): Add lib/allocsa.valgrind.
28117 (Makefile.am): Distribute it.
28119 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
28121 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
28122 with errno == ERANGE if the buffer is too small.
28123 Problem reported by Mark D. Baushke.
28125 2004-11-03 Albert Chin <china@thewrittenword.com>
28126 Paul Eggert <eggert@cs.ucla.edu>
28128 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
28129 equivalent, substitute $ac_type for equivalent type rather than
28130 blindly using uint32_t *always* which won't work if uint32_t is not
28131 available. Define _UINT32_T to work around typedef of uint32_t if
28132 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
28135 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
28137 * m4/jm-macros.m4: Sync from coreutils.
28138 (gl_MACROS): Check for mbrlen, for pathchk.
28139 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
28141 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
28143 * lib/xreadlink.c (MAXSIZE): New macro.
28144 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
28145 size does not exceed MAXSIZE. Avoid cast.
28146 As suggested by Mark D. Baushke in
28147 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
28148 if readlink fails with buffer size just under MAXSIZE, try again
28151 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
28153 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
28155 2004-11-02 Derek R. Price <derek@ximbiot.com>
28156 and Paul Eggert <eggert@cs.ucla.edu>
28158 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
28159 (get_date): Overparenthesize to avoid GCC warning.
28161 2004-11-02 Bruno Haible <bruno@clisp.org>
28163 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
28166 2004-11-02 Bruno Haible <bruno@clisp.org>
28168 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
28169 function returns void.
28171 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
28173 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
28174 fflush_unlocked, flockfile, funlockfile, funlockfile,
28175 fputs_unlocked, putc_unlocked.
28177 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
28179 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
28180 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
28183 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
28185 * modules/getdate (Files): Add doc/getdate.texi.
28186 (Depends-on): Add setenv, xalloc.
28188 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
28190 * lib/getdate.y: Add support for TZ="foo" within a date string.
28191 Fix some bugs near time_t boundaries. Reject dates with
28192 out-of-range components, e.g., "Sept 31".
28193 Include <stdlib.h>, "setenv.h", "xalloc.h".
28194 (ISDIGIT_LOCALE): Remove; unused.
28195 Note that the TZ and time functions used here are not reentrant.
28196 (mktime_ok, get_tz): New functions.
28197 (TZBUFSIZE): New constant.
28198 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
28199 This requires that we sometimes generate our own TZ="XXX..." setting.
28201 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
28203 * doc/getdate.texi: New file, from coreutils with modifications for
28204 the new TZ parsing.
28206 2004-10-27 Derek R. Price <derek@ximbiot.com>
28208 * lib/mktime.c (not_equal_tm): Remove redundant check.
28210 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
28212 * modules/regex (lib_SOURCES): Add regex.c.
28213 Reported by James Youngman in
28214 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
28216 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
28218 * lib/getdate.y: Use Bison 1.875 features, and some minor
28219 code cleanups. This change does not affect semantics.
28220 Don't include <stdlib.h>; no longer needed.
28221 Don't include unlocked-io.h; only the "#if TEST" code uses
28222 stdio, and performance isn't crucial there.
28223 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
28224 Bison 1.875 features as described below.
28225 All uses of "PC." replaced by "pc->".
28226 (YYSTYPE): Add a forward declaration.
28227 (yylex, yyerror): Use full prototypes in forward decls.
28228 Use "%pure-parser" rather than obsolescent "%pure_parser".
28229 Use %parse-param and %lex-param instead of obsolescent
28230 YYPARSE_PARAM and YYLEX_PARAM.
28231 (meridian_table, month_and_day_table, time_units_table,
28232 relative_time_table, time_zone_table, military_table,
28233 lookup_zone, lookup_word, get_date):
28234 Use NULL instead of 0 where appropriate.
28235 (to_hour): Avoid abort (), to avoid a dependency on
28237 (yyerror, yylex): Now accepts parser_control * arg.
28238 (main) [TEST]: Use '\0' rather than 0 for char.
28240 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
28242 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
28244 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
28246 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
28247 It's now the caller's responsibility to handle the case where
28248 !HAVE_GETPAGESIZE && !defined getpagesize.
28250 * lib/mktime.c (leapyear): Arg is long int, not int.
28252 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
28254 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
28256 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
28258 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
28259 missing. Problem reported by James Youngman.
28261 2004-10-16 Simon Josefsson <jas@extundo.com>
28263 * gnulib-tool: Fix comments. Fix parse problem.
28264 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
28266 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
28268 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
28269 implementation of getopt_long. Problem reported by Alexander Taler in:
28270 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
28272 2004-10-15 Bruno Haible <bruno@clisp.org>
28274 * gnulib-tool: Untabify. Initialize supplied_libname.
28275 (func_usage): More homogenous output.
28276 (func_modules_transitive_closure, func_modules_to_filelist,
28277 func_emit_lib_Makefile_am): New functions.
28278 (func_import): New function, extracted from big case statement. Use
28279 func_get_license, func_modules_transitive_closure,
28280 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
28281 opt_lgpl. Don't use test -a, as it's not portable.
28282 (func_create_testdir): Use func_modules_transitive_closure,
28283 func_modules_to_filelist, func_emit_lib_Makefile_am.
28285 2004-10-15 Bruno Haible <bruno@clisp.org>
28287 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
28289 2004-10-15 Bruno Haible <bruno@clisp.org>
28291 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
28292 the portions belonging to each module.
28293 Suggested by Derek Robert Price <derek@ximbiot.com>.
28295 2004-10-12 Simon Josefsson <jas@extundo.com>
28297 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
28298 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
28301 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
28303 * modules/vsnprintf: New file.
28305 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
28307 * m4/vsnprintf.m4: New file.
28309 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
28311 * lib/vsnprintf.h: New file.
28312 * lib/vsnprintf.c: New file.
28314 2004-10-11 Bruno Haible <bruno@clisp.org>
28316 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
28319 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
28321 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
28323 2004-10-07 Bruno Haible <bruno@clisp.org>
28325 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
28326 fits into the provided buffer.
28328 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
28330 * lib/diacrit.c, diacrit.h: Add GPL notice.
28332 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
28334 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
28335 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
28336 This avoids a potential constant-folding bug.
28338 2004-10-05 Bruno Haible <bruno@clisp.org>
28340 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
28341 for the declaration of strsep.
28343 2004-10-05 Bruno Haible <bruno@clisp.org>
28345 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
28347 2004-10-04 Simon Josefsson <jas@extundo.com>
28349 * modules/memmem: New file.
28350 * tests/test-memmem.c: New file.
28351 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
28353 2004-10-04 Simon Josefsson <jas@extundo.com>
28355 * m4/memmem.m4: New file.
28357 2004-10-04 Simon Josefsson <jas@extundo.com>
28359 * lib/memmem.h: New file.
28360 * lib/memmem.c: New file, taken from glibc.
28362 2004-10-04 Simon Josefsson <jas@extundo.com>
28364 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
28365 '#ifdef USE_UNLOCKED_IO'.
28367 2004-10-04 Simon Josefsson <jas@extundo.com>
28369 * config/srclist.txt: Add memmem from glibc.
28371 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
28373 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
28375 * modules/argmatch, modules/argp, modules/closeout, modules/error,
28376 modules/exclude, modules/getdate, modules/getline,
28377 modules/getndelim2, modules/getpass, modules/getpass-gnu,
28378 modules/getusershell, modules/linebuffer, modules/md5,
28379 modules/mountlist, modules/posixtm, modules/readtokens,
28380 modules/readutmp, modules/regex, modules/sha1,
28381 modules/version-etc, modules/yesno:
28382 Remove dependency on unlocked-io.
28384 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
28386 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
28388 * m4/unlocked-io.m4: Add copyright notice.
28389 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
28391 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
28393 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
28394 * lib/xmalloc.c (xmemdup): Likewise.
28395 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
28396 XFREE): Remove these long-obsolescent macros.
28397 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
28398 * lib/xstrdup.c: Remove.
28400 * lib/regex.c (re_comp): Cast gettext return value to char *,
28401 Problem reported by Martin Neitzel via Mark D. Baushke.
28403 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
28405 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
28406 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
28407 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
28408 regex.c, sha1.c, version-etc.c, yesno.c:
28409 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
28410 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
28411 the includer's responsibility.
28413 Sync from coreutils.
28415 * lib/modechange.c (mode_compile): Don't decrement a pointer that
28416 points to the start of a string, as the C Standard says the
28417 resulting behavior is undefined.
28419 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
28420 simple -> simple_backups, numbered_existing ->
28421 numbered_existing_backups, numbered -> numbered_backups
28422 to avoid shadowing problems. All uses changed.
28423 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
28424 * lib/backupfile.c (check_extension, numbered_backup):
28425 Rename locals to avoid shadowing 'basename'.
28426 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
28429 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
28430 * lib/.cvsignore: Add getopt.h.
28432 2004-10-04 Bruno Haible <bruno@clisp.org>
28434 * modules/README: New file.
28435 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
28438 2004-10-02 Jim Meyering <jim@meyering.net>
28440 * lib/dirfd.h, getpagesize.h: Add copyright notice.
28442 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
28444 * modules/strsep: New file.
28446 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
28448 * m4/strsep.m4: New file.
28450 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
28452 * lib/strsep.h: New file.
28453 * lib/strsep.c: New file.
28455 2004-10-01 Simon Josefsson <jas@extundo.com>
28457 * lib/snprintf.c (snprintf): Handle size==0.
28459 2004-10-01 Simon Josefsson <jas@extundo.com>
28460 Bruno Haible <bruno@clisp.org>
28462 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
28463 (snprintf): Declare 'args'.
28465 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
28467 * lib/snprintf.c: Remove comments as to why each header is needed.
28469 2004-10-01 Bruno Haible <bruno@clisp.org>
28471 * MODULES.html.sh: Add strsep.
28473 2004-09-30 Simon Josefsson <jas@extundo.com>
28475 * modules/snprintf: New file.
28477 2004-09-30 Simon Josefsson <jas@extundo.com>
28479 * m4/snprintf.m4: New file.
28481 2004-09-30 Simon Josefsson <jas@extundo.com>
28483 * lib/snprintf.h, lib/snprintf.c: New files.
28485 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
28487 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
28488 (hol_entry_help): Never translate an empty string.
28489 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
28490 * lib/argp.h (OPTION_NO_TRANS): New option.
28492 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
28494 * modules/argp (Maintainer): Replace Simon Josefsson
28495 by Sergey Poznyakoff.
28497 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
28499 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
28500 changes merged back into glibc.
28502 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
28504 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
28506 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
28508 * lib/xvasprintf.c: Include xalloc.h.
28509 (xvasprintf): Use xalloc_die, not xmalloc_die.
28511 2004-09-29 Bruno Haible <bruno@clisp.org>
28513 * modules/alloca-opt: New file, derived from modules/alloca.
28514 * modules/allocsa: Depend on alloca-opt instead of alloca.
28515 * modules/setenv: Likewise.
28516 * modules/vasnprintf: Likewise.
28517 * MODULES.html.sh: Add alloca-opt.
28519 2004-09-28 Simon Josefsson <jas@extundo.com>
28521 * gnulib-tool: New parameter --lgpl, to asseert that modules are
28522 LGPL, and to replace license template from GPL to LGPL.
28524 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
28526 * modules/dummy: Change license to LGPL.
28528 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
28530 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
28532 2004-09-24 Simon Josefsson <jas@extundo.com>
28534 * modules/minmax (License): Change from GPL to LGPL.
28536 2004-09-23 Simon Josefsson <jas@extundo.com>
28538 * gnulib-tool (--import): Typo.
28540 2004-09-23 Simon Josefsson <jas@extundo.com>
28542 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
28544 2004-09-22 Bruno Haible <bruno@clisp.org>
28546 * modules/*: Add 'License' field.
28547 * gnulib-tool: Accept --extract-license option.
28548 (func_get_license): New function.
28550 2004-09-21 Bruno Haible <bruno@clisp.org>
28552 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
28553 Reported by Simon Josefsson.
28555 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
28557 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
28558 gl_AC_TYPE_LONG_LONG.
28560 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
28562 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
28564 2004-09-18 Simon Josefsson <jas@extundo.com>
28565 and Paul Eggert <eggert@cs.ucla.edu>
28567 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
28568 calls with autoreconf. Define GL_LIB.
28570 2004-09-14 Karl Berry <karl@gnu.org>
28572 * config/srclist.txt: unsync setenv.c, sigh.
28574 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
28576 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
28577 Problem reported by Bruno Haible in:
28578 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
28580 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
28582 * config/srclist.txt: Comment out argp-pvh.c.
28584 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
28586 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
28587 in case some system header has #define'd it. Problem reported by
28588 Soeren D. Schulze in
28589 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
28591 2004-09-09 Karl Berry <karl@gnu.org>
28593 * regex.[ch]: delete from the root. These were supposed to be
28594 synced with emacs cvs, but this has not happened for about
28595 a year, and anyway nothing else uses emacs regex.[ch].
28596 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
28597 lib/regex[.ch] is untouched.
28599 2004-09-09 Bruno Haible <bruno@clisp.org>
28601 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
28603 2004-09-09 Bruno Haible <bruno@clisp.org>
28605 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
28607 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
28609 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
28611 * modules/xvasprintf: New file.
28612 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
28614 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
28616 * lib/xvasprintf.h: New file.
28617 * lib/xvasprintf.c: New file.
28618 * lib/xasprintf.c: New file.
28620 2004-09-08 Bruno Haible <bruno@clisp.org>
28622 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
28624 2004-09-08 Bruno Haible <bruno@clisp.org>
28626 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
28627 length is > INT_MAX.
28628 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
28631 2004-09-08 Bruno Haible <bruno@clisp.org>
28633 * lib/stdint_.h: New file, taken from GNU clisp.
28635 2004-09-08 Bruno Haible <bruno@clisp.org>
28636 Oskar Liljeblad <oskar@osk.mine.nu>
28638 * modules/stdint: New file.
28639 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
28641 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
28643 Import from coreutils.
28644 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
28645 strings on unbounded length. alloca's performance benefits aren't
28646 that important here.
28647 (V_STRDUP): Remove.
28648 (parse_with_separator): New function, with most of the internals
28649 of the old parse_user_spec. Allow user to omit both user and group,
28650 for compatibility with FreeBSD.
28651 Clone only the user name, not the entire spec.
28652 Do not set *uid, *gid unless entirely successful.
28653 Avoid memory leak in some failing cases.
28654 Fix regression for USER.GROUP reported by Dmitry V. Levin in
28655 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
28656 (parse_user_spec): Rewrite to use parse_with_separator.
28658 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
28660 * modules/userspec: Don't depend on alloca.
28662 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
28664 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
28666 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
28668 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
28669 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
28670 utimecmp, utimens, xnanosleep. Rename sha to sha1.
28672 2004-08-16 Simon Josefsson <jas@extundo.com>
28674 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
28675 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
28676 Add --dry-run for --import.
28677 Let user provided command line parameters override configure.ac
28680 2004-08-12 Simon Josefsson <jas@extundo.com>
28682 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
28683 as discussed with Paul Eggert in threads rooted at
28684 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
28686 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
28687 Before, the test was empty, and relied on ELIDE_CODE in source
28689 (gl_PREREQ_GETOPT): New macro.
28690 (gl_GETOPT): Use them.
28692 2004-08-12 Simon Josefsson <jas@extundo.com>
28694 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
28695 * lib/getopt_.h: Renamed from getopt.h.
28697 2004-08-12 Simon Josefsson <jas@extundo.com>
28699 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
28700 Change default library name from libfoo to libgnu.
28701 Now, if you have a configure.ac that says:
28704 gl_MODULES(error getopt etcetera)
28706 you can import all you need by running:
28707 ../gnulib/gnulib-tool --import
28709 * modules/getopt (Files): Rename getopt.h to getopt_.h.
28710 (Makefile.am): Rewrite, use logic from argz.
28711 (Include): Use <getopt.h> instead of "getopt.h".
28713 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
28715 * modules/argp (Files): Add m4/unlocked-io.m4.
28716 (Depends-on): Add extensions.
28718 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
28720 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
28721 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
28722 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
28723 Check for program_invocation_name, program_invocation_short_name,
28724 flockfile, funlockfile, features.h, _getopt_long_only_r.
28726 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
28728 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
28729 its complicated substitute.
28730 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
28731 and program_invocation_name.
28732 (__argp_basename) [!_LIBC]: Remove; the only use was
28733 replaced by its body.
28734 (__argp_short_program_name): Change condition from
28735 !defined __argp_short_program_name to
28736 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
28737 to match argp-namefrob.h.
28738 (__argp_failure): Don't assume strerror_r returns char *.
28739 * lib/argp-parse.c (N_): Define unconditionally.
28740 (argp_default_options): Fill out initializers with 0 to avoid
28743 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
28745 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
28748 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
28750 Merge from coreutils.
28752 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
28754 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
28755 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
28757 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
28759 Merge from coreutils.
28761 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
28762 wmemchr or wmemcpy. Problem reported by Robert Dahlem
28763 for Reliant Unix 5.43.
28765 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
28766 (union fooround): Use uintmax_t, not long int.
28767 The rest is a merge from libc:
28768 [defined _LIBC]: Include <shlib-compat.h>.
28769 (_obstack) [defined _LIBC]: Remove after 2.3.4.
28771 * lib/settime.c (settime): Recode to avoid warning with
28774 * lib/strverscmp.c: Convert to UTF-8.
28776 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
28778 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
28781 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
28783 * modules/xalloc-die: New file.
28784 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
28786 * modules/md5 (Files): Add m4/uint32_t.m4.
28787 * modules/sha1: Renamed from modules/sha.
28789 Rename lib/sha.h to lib/sha1.h.
28790 Rename lib/sha.c to lib/sha1.c.
28791 Rename m4/sha.m4 to m4/sha1.m4.
28792 (lib_SOURCES): Likewise.
28793 (configure.ac): Rename gl_SHA to gl_SHA1.
28794 (Include): sha.h -> sha1.h.
28796 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
28798 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
28799 * m4/sha1.m4: Renamed from sha.m4.
28800 (gl_SHA1): Renamed from gl_SHA. All uses changed.
28802 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
28804 * lib/obstack.h (obstack_empty_p):
28805 Don't assume that chunk->contents is suitably aligned.
28806 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
28807 Likewise. Problem reported by Benno in
28808 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
28810 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
28811 readable. This could be improved further but it'd take some work.
28813 2004-08-08 Simon Josefsson <jas@extundo.com>
28815 * modules/xgethostname (Depends-on): Remove exit and error (not
28818 * modules/getpass-gnu: Add getpass.h.
28819 (Depends-on): Add stdbool.
28820 * modules/getpass: Add getpass.h.
28822 2004-08-08 Simon Josefsson <jas@extundo.com>
28824 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
28825 Check getpass declaration.
28827 2004-08-08 Simon Josefsson <jas@extundo.com>
28829 * lib/xgethostname.c: Don't include error.h (not used).
28831 * lib/getpass.h: Add.
28832 * lib/getpass.c: Include getpass.h first.
28834 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
28836 * lib/xalloc-die.c: New file.
28837 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
28839 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
28840 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
28842 (_, N_, xalloc_die): Move to xalloc-die.c.
28843 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
28844 so that we needn't mess with xalloc_msg_memory_exhausted.
28846 * lib/sha1.h: Renamed from sha.h.
28847 (SHA1_H): Renamed from _SHA_H.
28848 (sha1_ctx): Renamed from sha_ctx.
28849 (sha1_init_ctx): Renamed from sha_init_ctx.
28850 (sha1_process_block): Renamed from sha_process_block.
28851 (sha1_process_bytes): Renamed from sha_process_bytes.
28852 (sha1_finish_ctx): Renamed from sha_finish_ctx.
28853 (sha1_read_ctx): Renamed from sha_read_ctx.
28854 (sha1_stream): Renamed from sha_stream.
28855 (sha1_buffer): Renamed from sha_buffer.
28856 * lib/sha1.c: Likewise; renamed from sha.c.
28857 Do not include <sys/types.h>.
28858 Include <stddef.h> rather than <stdlib.h>.
28860 2004-08-08 Bruno Haible <bruno@clisp.org>
28862 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
28863 FILESYSTEM_PREFIX_LEN.
28864 * lib/progreloc.c: Likewise.
28865 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
28867 2004-08-06 Simon Josefsson <jas@extundo.com>
28869 * modules/progname (Depends-on): Don't depend on stdbool.
28871 2004-08-06 Simon Josefsson <jas@extundo.com>
28873 * modules/getsubopt: New file.
28874 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28877 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
28879 More merge from coreutils.
28881 * m4/utimens.m4, m4/utimecmp.m4: New files.
28882 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
28883 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
28884 prereq.m4, sha.m4: Import changes from coreutils.
28886 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
28888 More merge from coreutils.
28889 * modules/raise, modules/readtokens0, modules/utimens:
28890 * modules/utimecmp, module/xnanosleep: New files.
28891 * modules/strftime: Add lib/strftime.h.
28892 Change include from <time.h> to "strftime.h".
28893 * modules/yesno: Add lib/yesno.h.
28894 * modules/backupfile: Remove lib/addext.c.
28895 * modules/euidaccess: Add stat-macros.h.
28896 * modules/canonicalize, modules/euidaccess,
28897 modules/filemode, modules/lchown, modules/makepath,
28898 modules/rmdir, modules/stat: Likewise.
28900 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
28903 * lib/argp-help.c (make_hol, hol_append): Don't assume that
28904 SIZE_MAX is a valid preprocessor constant.
28905 (__argp_basename): Change from "#ifndef _LIBC"
28906 to "#ifndef __argp_short_program_name", so that
28907 we don't compile these functions for tar.
28909 More merges from coreutils.
28910 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
28911 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
28912 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
28913 * lib/addext.c: Remove; no longer needed.
28914 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
28915 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
28916 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
28917 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
28918 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
28919 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
28920 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
28921 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
28922 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
28923 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
28924 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
28925 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
28926 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
28927 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
28928 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
28929 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
28930 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
28931 Import changes from coreutils.
28933 2004-08-05 Simon Josefsson <jas@extundo.com>
28935 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
28937 2004-08-05 Simon Josefsson <jas@extundo.com>
28939 * m4/getsubopt.m4: New file.
28941 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
28943 Merge from coreutils.
28945 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
28946 * m4/getcwd-path-max.m4: New files.
28948 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
28949 FILESYSTEM_PREFIX_LEN ->
28950 FILE_SYSTEM_PREFIX_LEN.
28951 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
28952 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
28953 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
28954 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
28956 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
28957 prerequisite modules now handle the DOS stuff.
28958 Don't check for unistd.h.
28960 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
28962 Merge from coreutils.
28964 * lib/.gdb-history: Remove; this doesn't belong here.
28966 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
28967 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
28968 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
28969 * lib/getcwd.c: New files.
28971 * lib/dirname.h: Include <stdbool.h>.
28972 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
28973 for consistency with POSIX terminology. All uses changed.
28974 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
28975 (strip_trailing_slashes): Use bool for booleans.
28976 * lib/stripslash.c (strip_trailing_slashes): Likewise.
28978 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
28979 sometimes returns a positive errno value even when it succeeds.
28980 (print_errno_message) [!LIBC]: Fall back on strerror if
28981 __strerror_r fails.
28983 * lib/path-concat.c (mempcpy): Don't define if a system header defines
28984 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
28985 (longest_relative_suffix): New function.
28986 (path_concat): Use it. Assume first argument is not NULL.
28987 Port to DOS. Omit redundant separators.
28988 Report an error instead of returning NULL.
28989 Use mempcpy instead of memcpy.
28990 (xpath_concat): Remove: not declared or used.
28992 * lib/same.h: Include <stdbool.h>
28993 (same_name): Return bool, not int.
28994 * lib/same.c (same_name): Likewise.
28995 (errno): Don't declare; we assume C89 or better now.
28997 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
28998 if not already defined.
29000 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
29001 * lib/dup-safer.c (errno): Likewise.
29003 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
29005 Merge from coreutils.
29006 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
29007 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
29008 * modules/path-concat: Don't depend on strdup.
29010 2004-08-03 Simon Josefsson <jas@extundo.com>
29012 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
29013 * lib/progname.h: Don't include stdbool.h.
29015 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
29017 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
29018 * MODULES.html.sh (func_all_modules): Remove fatal.
29020 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
29022 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
29024 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
29026 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
29029 2004-08-02 Simon Josefsson <jas@extundo.com>
29031 * lib/getsubopt.h: New file, with comments from Bruno Haible.
29032 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
29033 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
29035 2004-08-01 Simon Josefsson <jas@extundo.com>
29037 * lib/xgetdomainname.c: Include stdlib.h, for free().
29039 2004-07-19 Bruno Haible <bruno@clisp.org>
29041 * MODULES.html.sh (func_all_modules): Add dummy.
29043 2004-07-16 Simon Josefsson <jas@extundo.com>
29045 * modules/dummy: New file.
29047 2004-07-16 Simon Josefsson <jas@extundo.com>
29049 * lib/dummy.c: New file.
29051 2004-07-16 Bruno Haible <bruno@clisp.org>
29053 * lib/backupfile.h: Add extern "C" for C++.
29054 * lib/closeout.h: Likewise.
29055 * lib/copy-file.h: Likewise.
29056 * lib/findprog.h: Likewise.
29057 * lib/full-write.h: Likewise.
29058 * lib/pathname.h: Likewise.
29059 * lib/progname.h: Likewise.
29060 * lib/stpcpy.h: Likewise.
29061 * lib/stpncpy.h: Likewise.
29062 * lib/strcase.h: Likewise.
29063 * lib/strstr.h: Likewise.
29064 * lib/xalloc.h: Likewise.
29066 * lib/mbswidth.h: Add extern "C" for C++.
29067 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
29069 2004-07-13 Robert Millan <robertmh@gnu.org>
29071 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
29073 2004-07-09 Simon Josefsson <jas@extundo.com>
29075 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
29076 failed without this.)
29078 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
29080 * modules/chown (Files): Add lib/fchown-stub.c, since
29081 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
29083 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
29085 * lib/fchown-stub.c: New file.
29087 2004-06-24 Jim Meyering <jim@meyering.net>
29089 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
29091 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
29093 * modules/argz: Omit "#include".
29095 * MODULES.html.sh (func_all_modules): Add calloc, to match
29096 2004-06-01 addition of calloc module.
29098 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
29100 * m4/argz.m4: New file, which is autoupdated from libtool.
29102 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
29104 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
29107 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
29109 * config/srclist-update: Don't insist on "USA." before the
29110 close-comment, as libtool omits the period and puts the */ on a
29112 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
29113 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
29115 2004-06-22 Gary V. Vaughan <gary@gnu.org>
29117 * modules/argz: New file.
29118 * MODULES.html.sh (func_all_modules): Add argz.
29120 2004-06-12 Jim Meyering <jim@meyering.net>
29121 and Paul Eggert <eggert@cs.ucla.edu>
29123 * modules/hash (Files): Add lib/xalloc.h.
29124 * modules/pipe (Depends-on): Add wait-process.
29125 * modules/stat (Depends-on): Add xalloc.
29126 * modules/userspec (Files): Add lib/userspec.h.
29129 Upgrade from gettext-0.13.
29130 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
29131 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
29132 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
29134 2004-06-10 Jim Meyering <jim@meyering.net>
29136 * lib/calloc.c: New file.
29138 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
29140 * lib/getdate.y (yylex): Allow space between sign and number.
29141 Problem reported by Dan Jacobson.
29143 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
29145 Merge from coreutils CVS.
29147 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
29148 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
29149 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
29150 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
29151 xstrtol.m4: Fix copyright date and/or serial number.
29153 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
29154 See if we need an fchown replacement.
29155 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
29156 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
29157 and use the replacement function if we detect either defect.
29159 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
29162 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
29163 and Jim Meyering <jim@meyering.net>
29165 Merge from coreutils CVS.
29167 * lib/stat-macros.h: New file, with contents from file-type.h
29168 and coreutils' system.h.
29169 * lib/file-type.c: Include "stat-macros.h".
29170 * lib/file-type.h (file_type): Move all macro definitions to new file,
29173 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
29174 Wrap old code with this conditional.
29175 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
29176 function that does not dereference symlinks.
29177 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
29179 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
29180 dependency problems.
29181 (xreadlink): Accept new arg SIZE, for efficiency.
29182 All decls and uses changed.
29183 * lib/xreadlink.h: Include <stddef.h>, for size_t.
29185 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
29186 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
29188 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
29191 2004-06-01 Jim Meyering <jim@meyering.net>
29193 * m4/calloc.m4: New file.
29195 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
29197 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
29198 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
29199 Also, fix a typo in a diagnostic.
29201 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
29203 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
29204 or AC_FUNC_REALLOC.
29206 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
29208 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
29209 macros to be defined.
29210 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
29211 the allocator returns NULL because the requested size is zero.
29213 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
29215 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
29216 var. Add comment explaining why libc still defines it. This
29217 merges the following patch from glibc:
29218 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
29220 2004-05-20 Andreas Schwab <schwab@suse.de>
29222 * m4/free.m4: Replace free if it not known to work, not the other
29225 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
29227 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
29228 present in glibc since revision 1.1 of this file.
29229 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
29230 obstack_alignment_mask, obstack_alloc, obstack_base,
29231 obstack_blank, obstack_blank_fast, obstack_chunk_size,
29232 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
29233 obstack_grow0, obstack_init, obstack_int_grow,
29234 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
29235 obstack_next_free, obstack_object_size, obstack_ptr_grow,
29236 obstack_ptr_grow_fast, obstack_room): Remove declarations of
29237 nonexistent functions.
29239 2004-05-18 Karl Berry <karl@gnu.org>
29241 * config/srclist.txt: break link for vasnprintf.c.
29243 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
29245 Port obstack to the AS/400, where pointers are 16 bytes wide and
29246 you cannot cast an integer to a valid pointer. This patch is
29247 currently waiting to be integrated into glibc; see
29248 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
29250 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
29251 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
29252 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
29253 (struct obstack): temp member is now a union of a pointer and
29254 an integer, instead of an integer. All integer uses changed.
29255 This does not affect the physical layout of struct obstack,
29256 except on hosts (like the AS/400) where the size or alignment of
29257 void * is greater than that of ptrdiff_t.
29258 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
29259 __STDC__)]: Store temporary in pointer member of union, not
29261 * lib/obstack.c: Include <stddef.h>, for offsetof.
29262 (struct fooalign): Remove; it doesn't need a name.
29263 (union fooround): Change double to long double, and add void *.
29264 (DEFAULT_ALIGNMENT): Use offsetof to compute.
29265 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
29266 not a macro. Hence the values are always int; so remove all
29267 casts-to-int in uses.
29269 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
29271 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
29272 we can get this patch merged into glibc.
29274 2004-05-17 Derek R. Price <derek@ximbiot.com>
29275 Paul Eggert <eggert@cs.ucla.edu>
29277 * m4/argp: Depend on alloca.
29279 2004-05-17 Derek R. Price <derek@ximbiot.com>
29280 Paul Eggert <eggert@cs.ucla.edu>
29282 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
29285 2004-05-17 Bruno Haible <bruno@clisp.org>
29287 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
29288 precision that consists of a '.' followed by an empty digit string.
29289 Patch by Tor Lillqvist <tml@iki.fi>.
29291 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
29293 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
29294 for backward compatibility with older code. We need our own
29295 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
29296 it under some other name, and our alloca.h will define it.
29298 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
29299 Derek Price <derek@ximbiot.com>
29301 * lib/alloca.c: Include <alloca.h>, to get our interface.
29302 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
29303 include <alloca.h> first. Use C89 prototype for alloca; this
29304 requires including <stddef.h> for size_t. Use extern "C" if C++.
29305 Use #elif for simplicity, since we can assume C89 now.
29306 Don't try to source the system alloca.h since it will not be found
29307 and to prevent recursively including its replacement.
29308 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
29309 * lib/regex.c: Likewise.
29311 2004-05-16 Derek Price <derek@ximbiot.com>
29312 Paul Eggert <eggert@cs.ucla.edu>
29314 getline cleanup. This changes the getndelim2 API: both order of
29315 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
29318 * lib/getline.c: Don't include stddef.h or stdio.h, since our
29319 interface does that.
29320 (getline): Always use getdelim, so that we don't have two
29321 copies of this code.
29322 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
29324 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
29325 (GETNDELIM2_MAXIMUM): New macro.
29326 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
29327 instead of the old practice of delim2==0. All callers changed.
29328 Return -1 on overflow, instead of returning junk.
29329 Do not set *linesize unless allocation succeeds.
29330 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
29331 that we include sys/types.h.
29332 * lib/getnline.h: Likewise.
29333 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
29334 (getndelim2): Reorder arguments.
29335 * lib/getnline.c (getnline, getndelim):
29336 Don't discard the NMAX argument.
29337 (getnline): Invoke getndelim, to avoid code duplication.
29338 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
29339 of (size_t) -1 by callers of the getnline family.
29341 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
29343 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
29344 Check for gettimeofday.
29345 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
29346 Check for settimeofday, stime.
29348 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
29350 * lib/nanosleep.c (suspended): Change its type from int to
29351 sig_atomic_t volatile.
29352 (first_call): Make it private to rpl_nanosleep, and have it
29353 be zero initially as that's a bit faster.
29354 (my_usleep): Round up fractional times instead of truncating them,
29355 as this is the usual meaning for 'sleep'.
29357 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
29359 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
29360 (ENOSYS): Define if not defined.
29361 (settime): Fall back on stime if it exists and settimeofday fails.
29362 But don't bother with fallbacks if a method fails with errno == EPERM.
29364 2004-05-11 Jim Meyering <jim@meyering.net>
29366 Prior to this change, the save_cwd caller required read access to the
29367 current directory on most systems (ones with the fchdir function).
29369 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
29370 fails, try write-only, and finally, resort to using xgetcwd.
29372 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
29374 * lib/obstack.c, obstack.h: Import changes from libc.
29376 2004-04-28 Bruno Haible <bruno@clisp.org>
29378 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
29379 also implicitly appends .exe to executables.
29380 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
29381 accepts Windows pathnames.
29382 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
29383 Treat Cygwin like Windows, since it now accepts Windows pathnames.
29384 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
29385 Treat Cygwin like Windows, since it now accepts Windows pathnames.
29386 Reported by Derek Robert Price <derek@ximbiot.com>.
29388 2004-04-21 Karl Berry <karl@gnu.org>
29390 * config/srclist.txt (localcharset.c): break sync.
29392 2004-04-20 Paul Eggert <eggert@twinsun.com>
29394 * m4/host-os.m4: Add a copyright notice.
29396 2004-04-20 Jim Meyering <jim@meyering.net>
29398 Change UTILS_ to gl_ in AC_DEFINE'd names.
29399 Change utils_- and jm_-prefixed variables, too.
29400 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
29401 UTILS_FUNC_MKDIR_TRAILING_SLASH.
29402 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
29404 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
29405 Don't emit trailing blanks.
29406 Also rename jm_-prefixed variables to have gl_ prefix.
29408 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
29409 Also rename jm_-prefixed variables to have gl_ prefix.
29411 * m4/jm-macros.m4: Reflect the renamings.
29412 * m4/prereq.m4: Likewise.
29414 2004-04-20 Jim Meyering <jim@meyering.net>
29416 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
29419 2004-04-20 Jim Meyering <jim@meyering.net>
29420 Bruno Haible <bruno@clisp.org>
29422 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
29423 memory when realloc fails.
29425 2004-04-19 Jim Meyering <jim@meyering.net>
29427 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
29428 now that readutmp.c may call `free (0)'.
29430 2004-04-19 Bruno Haible <bruno@clisp.org>
29432 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
29433 * m4/inttypes_h.m4: Likewise.
29434 * m4/stdint_h.m4: Likewise.
29435 * m4/intmax_t.m4: Likewise.
29436 * m4/uintmax_t.m4: Likewise.
29438 2004-04-18 Jim Meyering <jim@meyering.net>
29440 * m4/prereq.m4: Don't forbid jm_ prefix.
29442 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
29443 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
29444 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
29445 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
29446 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
29447 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
29448 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
29449 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
29450 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
29451 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
29452 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
29453 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
29454 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
29455 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
29456 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
29457 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
29458 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
29459 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
29460 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
29462 2004-04-18 Jim Meyering <jim@meyering.net>
29464 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
29465 failure, don't leak memory and do call END_UTMP_ENT.
29467 2004-04-16 Jim Meyering <jim@meyering.net>
29469 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
29470 coreutils' stat program.
29471 (gl_PREREQ): Don't require jm_PREREQ_STAT.
29473 2004-04-11 Paul Eggert <eggert@twinsun.com>
29475 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
29477 (CHAR_BIT): Remove, since we assume C89.
29478 Include <stdint.h> if available, as per current Autoconf CVS advice.
29480 2004-03-31 Jim Meyering <jim@meyering.net>
29482 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
29483 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
29484 * m4/xalloc.m4: Likewise.
29486 2004-03-30 Paul Eggert <eggert@twinsun.com>
29488 Merge from coreutils.
29490 * m4/inttostr.m4: New file.
29491 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
29492 Require AM_STDBOOL_H and gl_TIMESPEC instead.
29493 Require gl_CLOCK_TIME.
29494 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
29496 2004-03-30 Paul Eggert <eggert@twinsun.com>
29498 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
29499 not bool, to be more consistent with Unix conventions.
29500 Suggested by Bruno Haible.
29502 Merge from coreutils.
29504 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
29505 * lib/umaxtostr.c: New files.
29507 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
29508 the usual <time.h> dance.
29509 (get_date): Change signature to support fractional time stamps.
29510 All callers changed.
29511 * lib/getdate.y: Include "getdate.h" first, as we can now
29512 assume C89 and don't need to worry about 'const'.
29513 Similarly, include "unlocked-io.h" near start, not in middle.
29514 Include <limits.h>.
29515 (textint.value): Use long int rather than int.
29516 (textint.digits): Use size_t rather than int.
29517 (BILLION, LOG10_BILLION): New constants.
29518 (parser_control): New member rel_ns. Members day_ordinal,
29519 time_zone, month, day, hour, minutes, rel_year, rel_month,
29520 rel_day, rel_hour, rel_minutes, rel_seconds
29521 are now long int, not int. Member seconds is now struct timespec,
29522 not int. New member timespec_seen. Members dates_seen, days_seen,
29523 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
29525 (%union.intval): Now long int, not int.
29526 New member timespec.
29527 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
29528 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
29529 (spec): Now is a timespec or an item list.
29530 (timespec, items): New nonterminals.
29531 (time, rel, relunit, number, get_date):
29532 Add support for fractional seconds.
29533 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
29534 (gmtime, localtime, mktime): Remove decls; not needed with C89.
29535 (to_hour): First arg is now long int, not int.
29536 (to_year): Returns long int, not int.
29537 Don't treat year -70 like 70.
29538 (tm_diff): Returns long int, not int.
29539 (lookup_word): Use bool instead of int when appropriate.
29540 (yylex): Use size_t for count, not int.
29541 Detect overflow when parsing large integer constants.
29542 Add support for fractions.
29543 (get_date): Make pointers 'const' if possible.
29544 Use more-portable code to detect integer overflow.
29545 (main) [TEST]: Adjust to above changes. Test for localtime failure.
29546 Don't use ctime; it's not reliable if the year has >4 digits.
29548 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
29549 This is for compatibility with BSD.
29551 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
29552 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
29553 From coreutils' system.h.
29555 * lib/userspec.c: Don't include "posixver.h".
29556 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
29557 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
29558 compatible extension. Simplify code by removing a boolean int
29559 that was always nonzero if a string was nonnull.
29561 2004-03-30 Jim Meyering <jim@meyering.net>
29563 Merge from coreutils.
29565 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
29566 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
29567 on some systems one must include <grp.h> before it.
29568 Reported by Christian Krackowizer.
29570 2004-03-30 Jim Meyering <jim@meyering.net>
29572 Merge from coreutils.
29574 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
29576 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
29577 an empty input stream.
29579 * lib/readtokens.c: Include <stdbool.h>.
29580 (readtoken): Use `size_t' rather than int/long.
29581 All callers adjusted.
29582 Use `bool' rather than `int' where appropriate.
29583 Use memset rather than an explicit loop.
29584 Use x2nrealloc rather than xrealloc.
29585 Allow the use of `\0' as a delimiter.
29586 (readtokens): Likewise.
29587 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
29589 2004-03-30 Jim Meyering <jim@meyering.net>
29591 * m4/realloc.m4: Remove file, since now it does no more than
29592 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
29593 the `configure.ac' section of module/realloc.
29594 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
29596 2004-03-30 Bruno Haible <bruno@clisp.org>
29598 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
29601 2004-03-29 Paul Eggert <eggert@twinsun.com>
29603 Merge changes to getloadavg.c from coreutils and Emacs.
29605 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
29606 Define to an expression, not to the empty string.
29607 Include cloexec.h and xalloc.h.
29608 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
29609 Use set_cloexec_flag rather than rolling our own.
29610 * lib/cloexec.c, lib/cloexec.h: New files.
29612 2004-03-29 Paul Eggert <eggert@twinsun.com>
29614 * m4/cloexec.m4: New file.
29616 2004-03-18 Paul Eggert <eggert@twinsun.com>
29618 * lib/getopt.h: Sync with libc CVS.
29620 2004-03-18 Paul Eggert <eggert@twinsun.com>
29621 Bruno Haible <bruno@clisp.org>
29623 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
29626 2004-03-18 Paul Eggert <eggert@twinsun.com>
29627 Bruno Haible <bruno@clisp.org>
29629 * lib/mbswidth.h: Include <wchar.h> only if
29630 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
29632 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
29634 2004-03-09 Paul Eggert <eggert@twinsun.com>
29636 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
29637 Sync with libc CVS.
29638 * lib/getopt_int.h: New file, also synced from libc.
29640 2004-03-09 Paul Eggert <eggert@twinsun.com>
29642 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
29643 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
29644 Bring back getopt.c, getopt.h, getopt1.c.
29646 2004-03-07 Paul Eggert <eggert@twinsun.com>
29648 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
29649 All uses changed. Check for sa_sigaction member; this fixes
29650 a bug first reported by Jason Andrade in
29651 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
29653 2004-03-07 Paul Eggert <eggert@twinsun.com>
29655 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
29656 '#if' expressions. Unlike the code it replaces, it does not
29657 depend on (defined _SC_PAGESIZE). However, it does depend on
29658 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
29659 first reported by Jason Andrade in
29660 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
29662 2004-02-25 Simon Josefsson <jas@extundo.com>
29664 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
29666 2004-02-25 Simon Josefsson <jas@extundo.com>
29668 * lib/strdup.h: New file.
29669 * lib/strdup.c: Include it.
29670 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
29671 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
29673 2004-02-23 Karl Berry <karl@gnu.org>
29675 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
29676 (from fencepost.gnu.org:/gd/gnuorg).
29678 2004-02-23 Karl Berry <karl@gnu.org>
29680 * config/srclistvars.sh (GNUORG) [karl]: redefine.
29681 * config/srclist.txt: add maintain/standards documents.
29683 2004-02-18 Bruno Haible <bruno@clisp.org>
29685 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
29686 Reported by Derek Robert Price <derek@ximbiot.com>.
29688 2004-02-16 Karl Berry <karl@gnu.org>
29690 * config/mkinstalldirs, install-sh: update from automake.
29692 2004-02-06 Karl Berry <karl@gnu.org>
29694 * m4/po.m4: update from gettext 0.14.1.
29696 2004-02-06 Karl Berry <karl@gnu.org>
29698 * lib/config.charset: update from gettext 0.14.1.
29700 2004-02-05 Paul Eggert <eggert@twinsun.com>
29702 Add comments and code, prompted by suggestions from Bruno Haible
29704 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
29705 describing the enum quoting_style values.
29706 * lib/quotearg.c (quotearg_alloc): New function.
29707 (quotearg_buffer_restyled): Treat lone { and } as special.
29708 Treat = as special. Work around bug with older shells
29709 that "see" a '\' that is really the 2nd byte of a multibyte char.
29710 Quote empty string with shell_quoting_style.
29712 2004-02-03 Bruno Haible <bruno@clisp.org>
29714 * m4/pipe.m4: New file, from GNU gettext.
29716 2004-02-03 Bruno Haible <bruno@clisp.org>
29718 * lib/pipe.h: New file, from GNU gettext.
29719 * lib/pipe.c: New file, from GNU gettext.
29721 2004-01-27 Bruno Haible <bruno@clisp.org>
29723 * m4/execute.m4: New file, from GNU gettext.
29725 2004-01-27 Bruno Haible <bruno@clisp.org>
29727 * lib/execute.h: New file, from GNU gettext.
29728 * lib/execute.c: New file, from GNU gettext.
29729 * lib/w32spawn.h: New file, from GNU gettext.
29731 2004-01-24 Paul Eggert <eggert@twinsun.com>
29733 Merge from diffutils.
29735 * lib/file-type.c (file_type): Add typed memory objects.
29736 * lib/file-type.h (S_TYPEISTMO): New macro.
29738 * lib/c-stack.h (c_stack_action): Remove argv argument.
29739 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
29740 (die): Don't calculate message unless segv_action returns.
29741 (get_stack_location, min_address_from_argv, max_address_from_argv,
29742 volatile stack_base, volatile_stack_size): Remove.
29743 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
29744 that every segmentation violation is a stack overflow. (Ouch!)
29745 See Debian bug 136249 (still outstanding) for more info about why
29746 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
29748 2004-01-24 Paul Eggert <eggert@twinsun.com>
29750 Exit-status fix from coreutils.
29752 Use exit_failure consistently in place of EXIT_FAILURE,
29753 so that program exit statuses are consistent on failure.
29755 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
29756 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
29757 * lib/argmatch.h: Comment fix to match the above.
29758 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
29759 Now a macro referring to exit_failure, instead of a separate
29760 variable. Include "exitfail.h" to get it.
29761 * lib/xstrtol.h: Include "exitfail.h".
29762 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
29764 * lib/long-options.c (parse_long_options): Use prototype
29765 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
29768 2004-01-21 Jim Meyering <jim@meyering.net>
29770 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
29771 so as not to conflict with a different-sized __mktime_internal
29772 function in GNU libc.
29773 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
29774 Problem building statically-linked `ls' reported by Michael Brunnbauer.
29776 2004-01-20 Karl Berry <karl@gnu.org>
29778 * config/config.guess: update from config.
29780 * config/srclistvars.sh: GNUWWWLICENSES for karl.
29782 2004-01-20 Bruno Haible <bruno@clisp.org>
29784 Safer stack allocation.
29785 * lib/setenv.c: Include allocsa.h.
29786 (alloca): Remove fallback definition.
29787 (freea): Remove macro.
29788 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
29791 2004-01-20 Bruno Haible <bruno@clisp.org>
29793 * m4/eealloc.m4: New file, from GNU gettext.
29795 2004-01-20 Bruno Haible <bruno@clisp.org>
29797 * m4/allocsa.m4: New file, from GNU gettext.
29799 2004-01-20 Bruno Haible <bruno@clisp.org>
29801 * lib/xallocsa.h: New file, from GNU gettext.
29802 * lib/xallocsa.c: New file, from GNU gettext.
29804 2004-01-20 Bruno Haible <bruno@clisp.org>
29806 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
29808 2004-01-20 Bruno Haible <bruno@clisp.org>
29810 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
29811 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
29814 2004-01-20 Bruno Haible <bruno@clisp.org>
29816 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
29819 2004-01-20 Bruno Haible <bruno@clisp.org>
29821 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
29823 2004-01-20 Bruno Haible <bruno@clisp.org>
29825 * lib/eealloc.h: New file.
29827 2004-01-20 Bruno Haible <bruno@clisp.org>
29829 * lib/binary-io.h: Avoid warnings on Cygwin.
29831 2004-01-20 Bruno Haible <bruno@clisp.org>
29833 * lib/allocsa.h: New file, from GNU gettext.
29834 * lib/allocsa.c: New file, from GNU gettext.
29836 2004-01-18 Karl Berry <karl@gnu.org>
29838 * doc/gpl.texi, doc/lgpl.texi: new files.
29840 2004-01-18 Karl Berry <karl@gnu.org>
29842 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
29843 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
29845 2004-01-15 Paul Eggert <eggert@twinsun.com>
29847 Merge from coreutils.
29849 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
29850 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
29851 (gl_DEFAULT_POSIX2_VERSION): Move
29852 the documentation from 'configure' into 'config.hin',
29853 so that 'configure --help' isn't burdened by it and
29854 we don't have to worry about its formatting there.
29855 Reword the documentation so that it's more succinct
29856 and can be run together into a single paragraph.
29857 * m4/same.m4 (gl_SAME): Check for pathconf.
29859 2004-01-15 Paul Eggert <eggert@twinsun.com>
29861 Merge from coreutils.
29863 * lib/posixver.c: Include posixver.h.
29865 * lib/same.c: Include <stdbool.h>, <limits.h>.
29866 (_POSIX_NAME_MAX): Define if not defined.
29868 (same_name): If file names are silently truncated, report
29869 that the file names are the same if they are the same after
29870 the silent truncation.
29872 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
29873 conversion function.
29874 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
29875 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
29878 2004-01-15 Jim Meyering <jim@meyering.net>
29880 Merge from coreutils.
29882 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
29883 if no library is required.
29884 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
29885 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
29886 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
29887 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
29888 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
29889 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
29890 value, $ac_cv_search_crypt, if it's "none required".
29891 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
29892 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
29893 not gl_FUNC_GETLOADAVG.
29894 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
29895 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
29897 2004-01-15 Jim Meyering <jim@meyering.net>
29899 Merge from coreutils.
29901 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
29902 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
29903 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
29905 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
29906 optional configure-time default.
29908 * lib/version-etc.c (version_etc_copyright): Update copyright date.
29910 * lib/xreadlink.c (xreadlink): Correct outdated comment.
29912 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
29914 Merge from coreutils.
29916 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
29917 value, $ac_cv_search_nanosleep, if it's "none required".
29919 2004-01-14 Paul Eggert <eggert@twinsun.com>
29921 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
29922 with like-named macro in fnmatch.c.
29923 (EXT): Use an internal constant instead.
29925 Merge fnmatch patches from glibc.
29926 * lib/fnmatch.c (mbsinit): Remove define.
29927 Add libc_hidden_ver (__fnmatch, fnmatch).
29928 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
29929 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
29931 2004-01-14 Karl Berry <karl@gnu.org>
29933 * config/install-sh: update from automake.
29935 2004-01-13 Karl Berry <karl@gnu.org>
29937 * config/install-sh: update from automake.
29939 2004-01-09 Karl Berry <karl@gnu.org>
29941 * config/install-sh: update from automake.
29943 2004-01-05 Karl Berry <karl@gnu.org>
29945 * config/config.{sub,guess}: update from config.
29947 2003-12-31 Karl Berry <karl@gnu.org>
29949 * config/depcomp: update from automake.
29951 2003-12-14 Karl Berry <karl@gnu.org>
29953 * lib/config.charset: update from gettext-runtime.
29955 2003-12-03 Paul Eggert <eggert@twinsun.com>
29957 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
29958 Bug reported by Alfred M. Szmidt.
29960 2003-12-03 Bruno Haible <bruno@clisp.org>
29962 * m4/gettext.m4: Upgrade from gettext-0.13.
29963 * m4/po.m4: Upgrade from gettext-0.13.
29964 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
29965 * m4/intmax.m4: New file, from gettext-0.13.
29966 * m4/printf-posix.m4: New file, from gettext-0.13.
29968 2003-11-29 Karl Berry <karl@gnu.org>
29970 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
29972 2003-11-25 Paul Eggert <eggert@twinsun.com>
29973 Bruno Haible <bruno@clisp.org>
29975 * lib/printf-parse.h: Don't include sys/types.h.
29976 (ARG_NONE): New macro.
29977 (char_directive): Change type of *arg_index fields to size_t.
29978 * lib/printf-parse.c: Don't include sys/types.h.
29979 (SSIZE_MAX): Remove macro.
29980 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
29981 Remove unnecessary overflow check.
29982 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
29985 2003-11-25 Bruno Haible <bruno@clisp.org>
29987 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
29989 2003-11-25 Bruno Haible <bruno@clisp.org>
29991 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
29994 2003-11-24 Paul Eggert <eggert@twinsun.com>
29996 * modules/alloca: Remove dependency on xalloc.
29998 2003-11-24 Paul Eggert <eggert@twinsun.com>
30000 * lib/alloca.c: Remove dependency on xalloc module.
30001 (xalloc_die): Remove.
30002 (memory_full) [!defined emacs]: New macro.
30003 [!defined emacs]: Don't include xalloc.h.
30004 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
30005 address arithmetic overflows. Change datatypes a bit to avoid
30008 2003-11-22 Jim Meyering <jim@meyering.net>
30010 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
30013 2003-11-21 Karl Berry <karl@gnu.org>
30015 * config/config.{sub,guess}: update from config.
30017 2003-11-18 Karl Berry <karl@gnu.org>
30019 * config/config.{sub,guess}: update from config.
30021 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
30023 2003-11-17 Paul Eggert <eggert@twinsun.com>
30025 * README: Mention that S+T cannot overflow if S is the size of
30026 an existing object and T is sufficiently small.
30028 2003-11-17 Jim Meyering <jim@meyering.net>
30030 On systems without utime and without a utimes function capable of
30031 dealing with a NULL struct utimbuf* argument, this utime replacement
30032 could -- in unusual circumstances -- leak a file descriptor.
30033 * lib/utime.c: Include <unistd.h> and <errno.h>.
30034 (utime_null): Be sure to close `fd' and to preserve errno.
30035 Reported by Geoff Collyer via Arnold Robbins.
30037 2003-11-17 Bruno Haible <bruno@clisp.org>
30039 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
30040 (Depends-on): Add xsize.
30042 2003-11-17 Bruno Haible <bruno@clisp.org>
30044 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
30046 2003-11-17 Bruno Haible <bruno@clisp.org>
30048 * lib/vasnprintf.c (alloca): Remove fallback definition.
30049 (freea): Remove definition.
30050 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
30051 Reported by Paul Eggert.
30053 2003-11-16 Paul Eggert <eggert@twinsun.com>
30054 Bruno Haible <bruno@clisp.org>
30056 Protect against address arithmetic overflow.
30057 * lib/printf-args.h: Include stddef.h.
30058 (arguments): Change type of field 'count' to size_t.
30059 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
30060 'unsigned int' where appropriate.
30061 * lib/printf-parse.h: Include sys/types.h.
30062 (char_directive): Change type of *arg_index fields to ssize_t.
30063 (char_directives): Change type of fields 'count', max_*_length to
30065 * lib/printf-parse.c: Include sys/types.h and xsize.h.
30066 (SSIZE_MAX): Define fallback value.
30067 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
30068 instead of 'int' where appropriate. Check a_allocated, d_allocated
30069 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
30070 * lib/vasnprintf.c: Include xsize.h.
30071 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
30072 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
30073 overflow. Avoid wraparound when converting a width or precision from
30076 2003-11-16 Bruno Haible <bruno@clisp.org>
30078 Update from GNU gettext.
30079 * lib/printf-parse.c: Generalize to it can be compiled for wide
30081 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
30082 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
30083 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
30084 SNPRINTF): New macros.
30085 Don't include <alloca.h> if the file is used inside libintl.
30086 (local_wcslen): New function, for Solaris 2.5.1.
30087 (VASNPRINTF): Use it instead of wcslen.
30089 2003-11-16 Bruno Haible <bruno@clisp.org>
30091 * lib/xsize.h (xmax): New function.
30092 (xsum, xsum3, xsum4): Declare as "pure" functions.
30094 2003-11-12 Paul Eggert <eggert@twinsun.com>
30096 * modules/xalloc (Files): Undo latest change, since xalloc.h
30097 no longer needs SIZE_MAX or PTRDIFF_MAX.
30099 2003-11-12 Paul Eggert <eggert@twinsun.com>
30101 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
30104 2003-11-12 Paul Eggert <eggert@twinsun.com>
30106 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
30107 "return", to pacify some unknown compiler. Problem reported
30108 by Joerg Schilling.
30110 2003-11-12 Paul Eggert <eggert@twinsun.com>
30112 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
30113 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
30114 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
30115 heuristic is just as accurate as far as we know, and it removes a
30116 dependency on size_max.m4 and ptrdiff_max.m4.
30118 2003-11-11 Bruno Haible <bruno@clisp.org>
30120 * modules/xsize (Files): Add m4/size_max.m4.
30121 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
30123 2003-11-11 Bruno Haible <bruno@clisp.org>
30125 * m4/size_max.m4: New file.
30126 * m4/ptrdiff_max.m4: New file.
30127 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
30128 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
30129 (gl_XALLOC): Invoke it.
30131 2003-11-11 Bruno Haible <bruno@clisp.org>
30133 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
30134 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
30137 2003-11-10 Paul Eggert <eggert@twinsun.com>
30139 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
30140 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
30141 rejected some allocations of exactly SIZE_MAX - 2 bytes.
30143 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
30144 not (size_t) -1, since it's defined here.
30146 2003-11-09 Karl Berry <karl@gnu.org>
30148 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
30150 2003-11-06 Paul Eggert <eggert@twinsun.com>
30152 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
30153 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
30154 Reject sizes of exactly SIZE_MAX bytes.
30155 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
30156 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
30158 2003-11-05 Bruno Haible <bruno@clisp.org>
30160 * lib/xsize.h: Include limits.h, to avoid a possible collision with
30161 SIZE_MAX defined in <limits.h> on Solaris.
30163 2003-11-04 Jim Meyering <jim@meyering.net>
30165 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
30166 variable names, rather than @VAR@.
30167 * modules/poll: Likewise.
30169 2003-11-04 Bruno Haible <bruno@clisp.org>
30171 * modules/xsize: New file.
30172 * modules/linebreak: Depend on xsize.
30173 * MODULES.html.sh (func_all_modules): Add xsize.
30175 2003-11-04 Bruno Haible <bruno@clisp.org>
30177 * m4/xsize.m4: New file.
30179 2003-11-04 Bruno Haible <bruno@clisp.org>
30181 * lib/xsize.h: New file.
30182 * lib/linebreak.c: Include xsize.h.
30183 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
30184 argument for overflow.
30185 Suggested by Paul Eggert.
30187 2003-11-03 Karl Berry <karl@gnu.org>
30189 * config/config.{guess,sub}: update from config.
30191 2003-11-03 Jim Meyering <jim@meyering.net>
30193 * modules/userspec (lib_SOURCES): Add userspec.h.
30194 (Include): Add "userspec.h".
30195 Improve description.
30197 2003-11-03 Jim Meyering <jim@meyering.net>
30199 * lib/userspec.c: Include "userspec.h".
30200 * lib/userspec.h: New file.
30202 2003-11-03 Bruno Haible <bruno@clisp.org>
30204 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
30206 2003-11-03 Bruno Haible <bruno@clisp.org>
30208 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
30209 available, to avoid (extremely rare) race condition.
30210 Suggested by Paul Eggert.
30212 2003-11-02 Karl Berry <karl@gnu.org>
30214 * config/srclist.txt (vasprintf.c): sync broken, sigh.
30216 2003-10-31 Paul Eggert <eggert@twinsun.com>
30218 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
30219 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
30220 (read_filesystem_list): Set and use me_type_malloced.
30221 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
30222 whatever the type happens to be), for brevity and consistency.
30223 Check for size calculation overflow on Alphas running OSF/1.
30225 2003-10-31 Jim Meyering <jim@meyering.net>
30227 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
30229 * lib/linebuffer.c: Include <string.h> for declaration of memset.
30231 2003-10-30 Paul Eggert <eggert@twinsun.com>
30232 Bruno Haible <bruno@clisp.org>
30234 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
30235 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
30237 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
30239 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
30240 netbsd*-gnu*. Suggested by Robert Millan.
30242 2003-10-29 Paul Eggert <eggert@twinsun.com>
30244 * modules/group-member: Depend on stdbool.
30246 2003-10-29 Paul Eggert <eggert@twinsun.com>
30248 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
30250 2003-10-29 Paul Eggert <eggert@twinsun.com>
30252 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
30253 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
30254 after the 'gnu' in these cases. This fixes some bugs in the
30255 previous change, and is based on suggestions by Robert Millan.
30257 2003-10-29 Paul Eggert <eggert@twinsun.com>
30259 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
30260 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
30262 * lib/quotearg.c (quotearg_n_options): Use it.
30263 * lib/group-member.c: Include <stdbool.h>.
30264 (free_group_info): Arg is now const *; don't free arg.
30265 (get_group_info): Now returns bool and accepts struct group_info *,
30266 rather than returning a malloc'ed struct group_info *.
30267 All uses changed. Check for overflow in internal size calculation.
30269 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
30270 rather than xmalloc/xrealloc.
30271 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
30272 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
30273 conformance bug: the old code used a pointer after freeing the
30274 storage that it addressed.
30275 * lib/hash.c (hash_initialize): Simplify the code by using
30276 xalloc_oversized rather than doing it by hand.
30277 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
30278 the buffer preserved. Use free and xmalloc instead.
30279 * lib/quotearg.c (quotearg_n_options): Likewise.
30280 Use a simpler test for size overflow. Don't use xalloc_oversized
30281 because unsigned int might be wider than size_t (!); this suggests
30282 that we should switch from unsigned int to size_t for slot numbers.
30284 2003-10-28 Paul Eggert <eggert@twinsun.com>
30286 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
30287 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
30288 NetBSD kernels. Requested by Richard Stallman.
30290 2003-10-27 Paul Eggert <eggert@twinsun.com>
30292 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
30293 to allocate the returned structure. Do not allocate a subarray,
30294 as x2nrealloc will do that.
30295 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
30296 instead of xnrealloc.
30297 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
30299 2003-10-27 Bruno Haible <bruno@clisp.org>
30301 * lib/stdbool_.h: Better support for BeOS.
30303 2003-10-26 Paul Eggert <eggert@twinsun.com>
30305 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
30308 2003-10-26 Paul Eggert <eggert@twinsun.com>
30310 * lib/xalloc.h (xalloc_oversized): New static inline function, for
30311 callers that want to do their own size-overflow checking. Include
30312 <stdbool.h>, since xalloc_oversized returns bool.
30313 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
30314 to use xalloc_oversized.
30316 Add two functions x2realloc, x2nrealloc, for programs that grow
30317 arrays dynamically by doubling their sizes.
30318 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
30319 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
30322 Port to C99 semantics for 'inline' of external functions.
30323 Bug reported by Bruno Haible.
30324 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
30325 with the old contents of xnmalloc.
30326 (xnmalloc, xmalloc): Use it.
30327 (xnrealloc_inline): New static inline function,
30328 with the old contents of xnrealloc.
30329 (xnrealloc, xrealloc): Use it.
30331 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
30334 2003-10-26 Karl Berry <karl@gnu.org>
30336 * config/srclist.txt (COPYING.DOC): no longer available from
30337 /gd/gnuorg; don't know where the ultimate source is.
30339 2003-10-25 Paul Eggert <eggert@twinsun.com>
30341 Fix several address-calculation bugs in the hash modules,
30342 plus some minor code cleanup.
30344 * lib/hash.h: Include <stdbool.h>, for bool.
30345 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
30346 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
30347 hash_get_n_entries, hash_get_max_bucket_length,
30348 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
30349 hash_rehash): Use size_t rather than unsigned.
30350 * lib/hash.c (struct hash_table, hash_get_n_buckets,
30351 hash_get_n_buckets_used, hash_get_n_entries,
30352 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
30353 hash_get_entries, hash_do_for_each, hash_string, is_prime,
30354 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
30356 (SIZE_MAX): Define if not defined.
30357 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
30358 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
30360 Use const * when possible.
30361 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
30362 (check_tuning): Fix bug: if tuning parameters were very close to
30363 0 or 1, rounding errors could have caused subscript violations.
30364 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
30365 (hash_initialize): Add 'fail:' label
30366 to free table and return NULL, and use it to simplify code.
30367 Use calloc rather than clearing the storage ourself.
30368 (hash_initialize, hash_rehash): Check for arithmetic overflow in
30369 buffer size calculations.
30370 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
30371 Include <stddef.h>, for size_t.
30372 * lib/hash-pjw.c (hash_pjw): Likewise.
30373 Switch to method described by Bruno Haible.
30374 Include <limits.h>, for CHAR_BIT.
30375 (SIZE_BITS): New macro.
30377 2003-10-23 Paul Eggert <eggert@twinsun.com>
30379 * m4/getline.m4 (AM_FUNC_GETLINE):
30380 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
30381 hosts. Problem reported by Derek Robert Price in
30382 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
30383 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
30384 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
30386 2003-10-21 Paul Eggert <eggert@twinsun.com>
30388 * lib/getndelim2.c (getndelim2): When size calculation overflows,
30389 ceiling the allocation at NMAX bytes rather than silently
30390 discarding input bytes before NMAX is reached. This makes
30391 a difference only if NMAX exceeds SIZE_MAX / 2.
30393 * lib/obstack.c: Merge from glibc.
30394 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
30395 Add libc_hidden_def (_obstack_newchunk).
30396 (_obstack_free) [! defined _LIBC]: Remove.
30397 [defined _LIBC]: Make a strong alias from obstack_free, rather than
30398 a clone of the function body.
30399 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
30400 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
30402 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
30404 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
30407 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
30408 (obstack_ptr_grow_fast, obstack_int_grow_fast):
30409 Don't use lvalue casts, as GCC plans to remove support for them
30410 in GCC 3.5. Reported by Joseph S. Myers. This bug
30411 was also present in the non-GCC version, indicating that this
30412 code had always been buggy and had never been widely used.
30413 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
30414 Use the fast variant of each macro, rather than copying the
30415 definiens of the fast variant; that way, we'll be more likely to
30416 catch future bugs in the fast variants.
30418 2003-10-20 Bruno Haible <bruno@clisp.org>
30420 * modules/wait-process: New file.
30421 * MODULES.html.sh (func_all_modules): Add wait-process.
30423 2003-10-20 Bruno Haible <bruno@clisp.org>
30425 * m4/wait-process.m4: New file.
30427 2003-10-20 Bruno Haible <bruno@clisp.org>
30429 * lib/wait-process.h: New file, from GNU gettext.
30430 * lib/wait-process.c: New file, from GNU gettext.
30432 2003-10-19 Jim Meyering <jim@meyering.net>
30434 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
30437 2003-10-18 Karl Berry <karl@gnu.org>
30439 * config/config.guess: update from config.
30441 2003-10-16 Paul Eggert <eggert@twinsun.com>
30443 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
30444 (getgroups): First arg is int, not size_t.
30445 Don't let 'free' mangle errno.
30447 2003-10-16 Paul Eggert <eggert@twinsun.com>
30449 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
30451 2003-10-16 Karl Berry <karl@gnu.org>
30453 * config/config.{guess,sub}: update from config.
30455 2003-10-16 Jim Meyering <jim@meyering.net>
30457 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
30460 2003-10-15 Paul Eggert <eggert@twinsun.com>
30462 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
30463 (SIZE_MAX): Remove.
30464 (new_exclude, add_exclude_file): Initial size no longer needs to
30466 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
30467 our own address arithmetic overflow checking.
30469 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
30470 (fnmatch): Do not alloca more than 2000 wide characters;
30471 instead, use malloc for large buffers.
30472 Check for address arithmetic overflow, and return -1
30473 with errno set to ENOMEM in that case.
30474 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
30475 (NEW_PATTERN): Do not alloca more than 8000 bytes;
30476 instead, return -1. Check for address arithmetic overflow.
30478 2003-10-14 Paul Eggert <eggert@twinsun.com>
30480 Handle invalid suffixes and overflow independently, so that
30481 callers can treat them independently as needed. Fix some bugs in
30482 suffix handling, e.g., "100k@" was not diagnosed as an invalid
30483 suffix for a human-readable blocksize. The major caller-visible
30484 change is the addition of a new
30485 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
30486 that both overflow and suffix chars were found.
30488 * lib/human.c (humblock): Don't check separately for invalid suffix
30489 char; that is xstrtoumax's job (now that its bug is fixed).
30490 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
30491 INTMAX_MAX]: New macros.
30492 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
30493 TYPE_MAXIMUM): New macros.
30494 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
30495 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
30496 if overflow occurs, as it's what __strtol does and it's more useful
30498 (__xstrtol): If __strtol reports some error other than ERANGE,
30499 reflect it to the caller as LONGINT_INVALID. If it reports
30500 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
30501 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
30502 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
30504 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
30505 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
30506 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
30507 [defined UINTMAX_MAX]: New macros.
30509 2003-10-14 Bruno Haible <bruno@clisp.org>
30511 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
30513 2003-10-14 Bruno Haible <bruno@clisp.org>
30515 * m4/sig_atomic_t: New file, from GNU gettext.
30516 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
30518 2003-10-14 Bruno Haible <bruno@clisp.org>
30520 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
30521 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
30522 Also use volatile where needed.
30524 2003-10-12 Paul Eggert <eggert@twinsun.com>
30526 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
30527 Change maintainer from Bruno Haible to 'all'.
30529 2003-10-12 Paul Eggert <eggert@twinsun.com>
30531 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
30533 2003-10-12 Paul Eggert <eggert@twinsun.com>
30535 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
30536 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
30537 and define in terms of the other primitives.
30538 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
30539 (SIZE_MAX): Define if not already defined.
30540 (array_size_overflow): New function.
30541 (xalloc_die): Abort instead of exiting if 'error' returns.
30542 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
30543 (xmalloc, xrealloc): Use them.
30544 (xcalloc): Check for address arithmetic overflow.
30545 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
30546 a bit faster than strcpy.
30548 2003-10-10 Simon Josefsson <jas@extundo.com>
30550 * modules/argp (Depends-on): Add restrict and strcase.
30552 2003-10-10 Simon Josefsson <jas@extundo.com>
30554 * m4/argp.m4: Add AC_C_INLINE.
30556 2003-10-08 Paul Eggert <eggert@twinsun.com>
30558 Merge getpass from libc, plus a few fixes.
30560 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
30561 Include <stdbool.h>.
30562 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
30563 __fsetlocking to empty.
30564 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
30565 do include <bits/libc-lock.h>.
30566 Do not include <fcntl.h>; not needed.
30567 [_LIBC]: Include <wchar.h>.
30568 (NOTCANCEL_MODE): New macro.
30569 (flockfile, funlockfile) [_LIBC]: New macros.
30570 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
30571 [!_LIBC]: New macros.
30572 (call_fclose): New function.
30573 (getpass): Use it. Save tty stream separately; this simplifies the
30574 code and makes it more reliable if stdin happens to equal stdout.
30575 Invoke __fsetlocking on tty.
30576 Handle thread cancellation if needed.
30577 Namespace cleanup (use __tcgetattr, __getline).
30578 Use bool for Booleans.
30579 [USE_IN_LIBIO]: Handle wide streams.
30580 [!_LIBC]: Unconditionally do the fseek, since we don't know what
30581 stream might go where.
30583 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
30584 doesn't have to include <stdio.h> before us.
30585 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
30586 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
30587 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
30588 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
30589 if not declared, so that we can use getpass.c code from libc without
30591 (flockfile, ftrylockfile, funlockfile): New macros.
30593 2003-10-08 Paul Eggert <eggert@twinsun.com>
30595 * modules/getpass: Depend on stdbool.
30597 2003-10-08 Paul Eggert <eggert@twinsun.com>
30599 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
30601 2003-10-07 Karl Berry <karl@gnu.org>
30603 * config/config.{guess,sub}: update from config.
30605 2003-10-06 Jim Meyering <jim@meyering.net>
30606 Bruno Haible <bruno@clisp.org>
30608 This lets translators provide better translations for the
30609 "Written by ..." part of --version output.
30610 * lib/version-etc.h: Include stdarg.h.
30611 (version_etc_copyright): Declare as readonly.
30612 (version_etc): Make this function variadic with a NULL-terminated list
30613 of author name strings.
30614 (version_etc_va): New declaration.
30615 * lib/version-etc.c: Include stdarg.h, stdlib.h.
30616 (version_etc_copyright): Declare as readonly.
30617 (version_etc_va): New function. Provide a different translatable string
30618 for each possible number of authors < 10. Abbreviate when there are 10
30620 (version_etc): Make this function variadic. Call version_etc_va.
30621 Suggestion from Gary V. Vaughan.
30623 * lib/long-options.h (parse_long_options): Change prototype: the
30624 authors string is moved to the end and becomes variadic.
30625 * lib/long-options.c: Include stdarg.h.
30626 (parse_long_options): Make this function variadic, too.
30627 Call version_etc_va, not version_etc.
30629 2003-10-06 Bruno Haible <bruno@clisp.org>
30631 * modules/version-etc-2: Remove file.
30632 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
30634 2003-10-06 Bruno Haible <bruno@clisp.org>
30636 * modules/fatal-signal: New file.
30637 * MODULES.html.sh (func_all_modules): Add fatal-signal.
30639 2003-10-06 Bruno Haible <bruno@clisp.org>
30641 * m4/fatal-signal.m4: New file.
30642 * m4/signalblocking.m4: New file, from GNU gettext.
30644 2003-10-06 Bruno Haible <bruno@clisp.org>
30646 * lib/version-etc-2.h: Remove file.
30647 * lib/version-etc-2.c: Remove file.
30649 2003-10-06 Bruno Haible <bruno@clisp.org>
30651 * lib/fatal-signal.h: New file, from GNU gettext.
30652 * lib/fatal-signal.c: New file, from GNU gettext.
30654 2003-10-05 Paul Eggert <eggert@twinsun.com>
30656 * README: Rework advice for preventing empty .o files.
30657 Don't recommend ELIDE constructs. Recommend <stddef.h>,
30660 2003-10-04 Karl Berry <karl@gnu.org>
30662 * lib/argp*: update from libc.
30664 2003-10-04 Karl Berry <karl@gnu.org>
30666 * config/config.{guess,sub}: update from config.
30668 2003-10-02 Bruno Haible <bruno@clisp.org>
30670 * modules/lchown (Include): Add lchown.h.
30671 * modules/time_r (Include): Use "..." syntax.
30672 * modules/xgetdomainname (Include): Add xgetdomainname.h.
30674 2003-10-01 Simon Josefsson <jas@extundo.com>
30676 * MODULES.html.sh (func_all_modules): Move gethostname from section
30677 'based on' to section 'lacking' POSIX:2001.
30679 2003-10-01 Larry Jones <lawrence.jones@eds.com>
30681 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
30682 to output mode on the same stream.
30684 2003-09-29 Paul Eggert <eggert@twinsun.com>
30686 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
30687 Fix arg typo in previous patch.
30689 2003-09-28 Jim Meyering <jim@meyering.net>
30691 * lib/error.c: Correct cpp indentation.
30693 2003-09-27 Paul Eggert <eggert@twinsun.com>
30695 * modules/free: New file.
30697 2003-09-27 Paul Eggert <eggert@twinsun.com>
30699 * m4/free.m4: New file.
30701 2003-09-27 Paul Eggert <eggert@twinsun.com>
30703 * lib/minmax.h (MIN, MAX)
30704 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
30705 Omit the special code that used __typeof__, since we worry that
30706 it could be more trouble than it's worth. See:
30707 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
30708 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
30710 * lib/free.c: New file.
30712 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
30714 Trivial fixes to Makefile.am parts of module listings.
30715 * modules/strstr: Append strstr.h to lib_SOURCES.
30716 * modules/strcase: Likewise, for strcase.h.
30718 2003-09-27 Karl Berry <karl@gnu.org>
30720 * config/mkinstalldirs: update from automake.
30722 2003-09-26 Paul Eggert <eggert@twinsun.com>
30724 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
30725 (error_tail): Do not loop, reallocating temporary buffer, since
30726 the output cannot contain more wide characters than the input
30727 contains bytes, the size must be big enough already. This avoids
30728 one potential size overflow calculation. Check for size overflow
30729 when calculating temporary buffer size. Free temporary buffer
30730 when done, if it was allocated with malloc; this plugs a memory
30731 leak. Remove casts from void * to pointers, that are no longer
30732 needed now that we're assuming C89 or better.
30734 Merge error changes from glibc.
30736 * lib/error.c, error.h: Update copyright notice header to match glibc.
30737 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
30738 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
30739 Disable cancellation while printing error.
30740 * lib/error.h: Prepend __ to parameter names.
30742 2003-09-26 Jim Meyering <jim@meyering.net>
30744 * lib/error.c (error_tail): Move some declarations
30745 into inner scope where the local variables are used.
30747 2003-09-26 Bruno Haible <bruno@clisp.org>
30749 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
30751 Don't define stpncpy through config.h; it's now done through stpncpy.h.
30753 2003-09-26 Bruno Haible <bruno@clisp.org>
30755 * lib/stpncpy.h (gnu_stpncpy): New declaration.
30756 (stpncpy): Define as alias for gnu_stpncpy.
30757 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
30759 2003-09-25 Simon Josefsson <jas@extundo.com>
30761 * lib/xgetdomainname.h: New file.
30762 * lib/xgetdomainname.c: New file.
30764 2003-09-25 Simon Josefsson <jas@extundo.com>
30765 Bruno Haible <bruno@clisp.org>
30767 * modules/getdomainname: New file.
30768 * modules/xgetdomainname: New file.
30769 * MODULES.html.sh (func_all_modules): Add getdomainname,
30772 2003-09-25 Simon Josefsson <jas@extundo.com>
30773 Bruno Haible <bruno@clisp.org>
30775 * m4/getdomainname.m4: New file.
30777 2003-09-25 Simon Josefsson <jas@extundo.com>
30778 Bruno Haible <bruno@clisp.org>
30780 * lib/getdomainname.h: New file.
30781 * lib/getdomainname.c: New file.
30783 2003-09-25 Karl Berry <karl@gnu.org>
30785 * lib/argp-fmtstream.c, argp-help.c: update from libc.
30787 2003-09-25 Karl Berry <karl@gnu.org>
30789 * config/install-sh: update from automake.
30791 2003-09-25 Bruno Haible <bruno@clisp.org>
30793 * modules/version-etc-2: New file, from modules/version-etc with
30795 * MODULES.html.sh (func_all_modules): Add version-etc-2.
30797 2003-09-25 Bruno Haible <bruno@clisp.org>
30799 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
30800 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
30802 2003-09-24 Simon Josefsson <jas@extundo.com>
30804 * modules/xgethostname: Add xgethostname.h.
30806 2003-09-24 Paul Eggert <eggert@twinsun.com>
30808 * lib/linebuffer.c (freebuffer): Don't free the argument, just
30809 the buffer associated with the argument. Bug reported by
30812 2003-09-24 Paul Eggert <eggert@twinsun.com>
30814 * README: Document assumptions that 'int' is at least 32 bits
30815 wide, that integer arithmetic is 2's complement without overflow,
30816 that there are no holes in integer values, that adding sizes of
30817 two nonoverlapping objects can't overflow, and that all-bits-zero
30818 yields scalar zero. Fix spelling and capitalization typos.
30820 2003-09-19 Karl Berry <karl@gnu.org>
30822 * lib/argp.h: update from libc.
30824 2003-09-17 Paul Eggert <eggert@twinsun.com>
30826 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
30827 to avoid spurious warnings like "AC_RUN_IFELSE was called before
30828 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
30830 2003-09-17 Paul Eggert <eggert@twinsun.com>
30832 * gnulib-tool: Use "test -h", not "test -L", for portability
30833 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
30834 (tags_regexp): Remove, since \| doesn't conform to POSIX.
30835 (sed_extract_prog): Issue s commands one-by-one, rather than
30836 using \| in one s command.
30838 2003-09-16 Paul Eggert <eggert@twinsun.com>
30840 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
30841 input error, instead of returning NULL the next time we are called
30842 (and therefore losing track of errno).
30844 2003-09-16 Bruno Haible <bruno@clisp.org>
30846 * gnulib-tool (func_create_testdir): Warn about duplicated
30849 2003-09-15 Paul Eggert <eggert@twinsun.com>
30851 * modules/argmatch, modules/fatal, modules/obstack,
30852 modules/xalloc, modules/xgethostname: Sort dependencies by
30853 importance, not alphabetically.
30855 2003-09-15 Paul Eggert <eggert@twinsun.com>
30857 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
30858 fails, so that the caller gets the proper errno.
30860 * lib/readutmp.c (read_utmp): Likewise.
30861 Check for fstat error. Close stream and free storage
30864 2003-09-14 Karl Berry <karl@gnu.org>
30866 * config/srclist.txt (strdup.c): disable for c89 changes.
30868 2003-09-14 Jim Meyering <jim@meyering.net>
30870 * lib/getloadavg.c: Correct cpp indentation.
30871 * lib/strdup.c: Likewise.
30872 * lib/vasnprintf.c: Likewise.
30874 2003-09-14 Bruno Haible <bruno@clisp.org>
30876 * modules/fwriteerror: New file.
30877 * MODULES.html.sh (func_all_modules): Add fwriteerror.
30879 2003-09-14 Bruno Haible <bruno@clisp.org>
30881 * lib/fwriteerror.h: New file.
30882 * lib/fwriteerror.c: New file.
30884 2003-09-12 Paul Eggert <eggert@twinsun.com>
30886 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
30887 modules/xgethostname, modules/xalloc: Depend on exit.
30889 2003-09-12 Paul Eggert <eggert@twinsun.com>
30891 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
30893 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
30894 and AC_MINIX, too, so that their extensions are available.
30896 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
30897 This macro has been superseded by gl_BACKUPFILE.
30899 More patches to assume C89 or better.
30901 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
30903 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
30905 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
30906 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
30907 Include <string.h>, <stdlib.h> unconditionally.
30908 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
30909 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
30910 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
30911 headers or for string.h.
30912 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
30915 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
30917 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
30918 * m4/userspec.m4 (gl_USERSPEC): Likewise.
30919 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
30920 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
30921 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
30922 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
30924 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
30925 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
30926 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
30928 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
30929 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
30930 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
30933 2003-09-12 Paul Eggert <eggert@twinsun.com>
30935 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
30936 * lib/obstack.c [!defined _LIBC]: Likewise.
30937 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
30938 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
30939 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
30941 More changes to assume C89 or better.
30943 * lib/error.c (error_tail): Assume vprintf.
30945 * lib/argmatch.c (getenv): Remove decl.
30946 * lib/progreloc.c (get_full_program_name): Define via prototype.
30947 * lib/setenv.c (clearenv): Likewise.
30948 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
30950 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
30951 (malloc, memcpy): Remove decls.
30952 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
30953 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
30954 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
30955 (memcpy): Remove macro.
30956 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
30957 (__P): Remove. All uses removed.
30958 (PTR): Remove. All uses changed to void *.
30959 (CHAR_BIT, NULL): Remove.
30960 (spaces, zeros, memset_space, memset_zero)
30961 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
30963 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
30964 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
30965 Define with prototype.
30966 Remove now-unnecessary prototype decl.
30967 (extra_args_spec): Assume ANSI C. All uses changed.
30968 (extra_args_spec_iso): Remove.
30969 (my_strftime, emacs_strftimeu): Define via prototype.
30970 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
30972 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
30973 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
30974 (strtoul, strtol): Remove decls.
30975 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
30977 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
30978 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
30979 (LOCALE_PARAM_PROTO): New macro.
30980 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
30981 (INTERNAL (strtol), strtol): Define with a prototype.
30982 (PARAMS): Remove. All uses removed.
30983 * lib/tempname.c: Include <string.h> unconditionally.
30984 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
30985 * lib/xgethostname.c (main): Define with a prototype.
30986 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
30987 Include <stdlib.h> unconditionally.
30988 (calloc, malloc, realloc, free): Remove decls.
30989 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
30990 Include <stdlib.h> unconditionally. Sort include file names.
30992 (xstrtod): Define with a prototype.
30993 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
30994 (strtol, strtoul): Remove decls.
30996 2003-09-11 Paul Eggert <eggert@twinsun.com>
30998 More patches to assume C89 or better.
30999 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
31000 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
31001 string.h, memchr, STDC_HEADERS.
31003 2003-09-11 Paul Eggert <eggert@twinsun.com>
31005 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
31006 Include <stdlib.h>, <string.h> unconditionally.
31007 Remove now-unnecessary cast to char *.
31008 * lib/strnlen.c: Include <string.h> unconditionally.
31009 * lib/yesno.c (yesno): Define with a prototype.
31011 2003-09-11 Bruno Haible <bruno@clisp.org>
31013 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
31015 2003-09-10 Jim Meyering <jim@meyering.net>
31017 * lib/error.c: Correct indentation of cpp directives.
31019 2003-09-10 Bruno Haible <bruno@clisp.org>
31021 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
31022 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
31023 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
31024 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
31025 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
31026 <stdlib.h> and <string.h> checks.
31027 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
31028 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
31030 2003-09-10 Bruno Haible <bruno@clisp.org>
31032 * lib/strcspn.c: Include <string.h> unconditionally.
31033 * lib/strpbrk.c: Include <string.h> unconditionally.
31034 * lib/strstr.c: Include <string.h> unconditionally.
31035 * lib/unicodeio.c: Include <string.h> unconditionally.
31036 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
31037 * lib/unsetenv.c: Likewise.
31038 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
31039 * lib/yesno.c: Include <stdlib.h> unconditionally.
31040 (rpmatch): Add prototype.
31042 2003-09-09 Paul Eggert <eggert@twinsun.com>
31044 More patches to assume C89 or better.
31045 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
31046 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
31047 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
31049 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
31051 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
31053 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
31055 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
31056 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
31057 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
31059 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
31060 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
31062 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
31064 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
31065 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
31066 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
31067 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
31068 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
31069 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
31071 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
31072 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
31073 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
31074 C headers, or for string.h.
31075 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
31076 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
31077 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
31078 headers, memory.h, stdlib.h, string.h, strings.h.
31079 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
31080 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
31081 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
31083 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
31084 headers, memory.h, string.h.
31085 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
31086 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
31088 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
31090 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
31091 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
31092 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
31093 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
31094 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
31096 2003-09-09 Paul Eggert <eggert@twinsun.com>
31100 * lib/acosl.c (main): Use a prototype.
31101 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
31104 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
31106 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
31107 (getopt, etopt_long, getopt_long_only, _getopt_internal)
31108 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
31110 * lib/getopt.c (const): Remove macro.
31111 Include <string.h> unconditionally.
31112 (my_index): Remove; all uses changed to strchr.
31113 (strlen): Remove decl.
31114 (exchange): Remove forward decl; no longer needed.
31115 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
31116 Define with prototype.
31117 * lib/getopt1.c (const): Remove macro.
31118 (getopt_long, getopt_long_only, main): Define with prototype.
31120 * lib/getugroups.c: Include <string.h> unconditionally.
31122 * lib/getusershell.c: Include <stdlib.h> unconditionally.
31123 (getusershell, setusershell, endusershell, readname, main):
31124 Define with prototypes.
31126 * lib/group-member.c: Include group-member.h first.
31127 Include <stdlib.h> unconditionally.
31129 * lib/hard-locale.c: Include hard-locale.h first.
31130 Include <stdlib.h>, <string.h> unconditionally.
31132 * lib/hash.c (free, malloc): Remove decls.
31133 Include <stdlib.h> unconditionally.
31135 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
31136 (getenv): Do not declare.
31138 * lib/idcache.c: Include <string.h> unconditionally.
31140 * lib/long-options.c: Include long-options.h first, to test interface.
31141 Include <stdlib.h> unconditionally.
31143 * lib/makepath.c: Include makepath.h first, to test interface.
31144 Include <stdlib.h> and <string.h> unconditionally.
31146 * lib/linebuffer.c: Include <stdlib.h>.
31147 (free): Remove decl.
31149 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
31150 stddef.h. rpl_malloc returns void *, not char *.
31151 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
31154 * lib/md5.h: Include <limits.h> unconditionally.
31155 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
31156 (__P): Remove; all uses removed.
31157 * lib/md5.c: Include "md5.h" first.
31158 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
31159 md5_buffer, md5_process_bytes, md5_process_block):
31160 Define with prototypes.
31161 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
31162 * lib/sha.c: Include "sha.h" first.
31163 Include <stdlib.h>, <string.h> unconditionally.
31165 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
31166 * lib/memcmp.c (__ptr_t): Likewise.
31167 * lib/memrchr.c (__ptr_t): Likewise.
31168 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
31169 Include <string.h> unconditionally.
31170 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
31171 * lib/memchr.c: Include <stdlib.h> unconditionally.
31172 * lib/memchr.c (LONG_MAX): Remove.
31173 * lib/memrchr.c (LONG_MAX): Likewise.
31174 * lib/memchr.c (__memchr): Define via a prototype.
31175 * lib/memrchr.c (__memrchr): Likewise.
31176 * lib/memcmp.c (__P): Remove, and remove all uses.
31177 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
31178 Remove forward decls; no longer needed.
31179 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
31180 Use types required by C89 in prototype.
31182 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
31183 * lib/savedir.c: Likewise.
31184 * lib/mkdir.c (free): Remove decl.
31185 * lib/rmdir.c (rmdir): Define with a prototype.
31186 * lib/savedir.c: Include savedir.h first, to test interface.
31188 * lib/mktime.c (STDC_HEADERS): Remove.
31189 Include <stdlib.h>, <string.h> unconditionally.
31191 * lib/modechange.c: Include <stdlib.h> unconditionally.
31192 (malloc): Remove decl.
31194 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
31195 (free): Remove decl.
31197 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
31198 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
31199 (This type really should be intptr_t, but that's a C99ism.)
31200 (_obstack_memcpy): Remove: all uses changed to memcpy.
31201 Include <string.h> unconditionally.
31202 (struct obstack): Assume __STDC__ for types of members
31203 chunkfun, freefun, extra_arg.
31204 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
31205 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
31206 obstack_begin, obstack_specify_allocation,
31207 obstack_specify_allocation_with_arg, obstack_chunkfun,
31208 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
31209 Remove unprototyped decls and the macros that use them.
31210 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
31211 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
31212 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
31213 (defined __STDC__ && __STDC__)]:
31214 Remove nonprototyped code.
31215 Include <stdlib.h> unconditionally.
31216 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
31217 _obstack_allocated_p, _obstack_free, obstack_free,
31218 _obstack_memory_used, print_and_abort):
31219 Define using prototypes.
31220 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
31221 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
31222 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
31223 obstack_next_free, obstack_object_size, obstack_room) [0]:
31224 Remove unused, unprototyped code.
31226 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
31228 * lib/physmem.c (physmem_total, physmem_available, main): Define
31231 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
31232 (main): Define with a prototype.
31234 * lib/posixver.c (getenv): Remove decl.
31236 * lib/putenv.c (malloc): Returns void *, not char *.
31237 Include <string.h> unconditionally.
31238 (strchr, memcpy, NULL): Do not define.
31240 * lib/readtokens.c: Include readtokens.h first, to test interface.
31241 Include <stdlib.h>, <string.h> unconditionally.
31242 (init_tokenbuffer): Define with a prototype.
31244 * lib/regex.c (PARAMS): Remove. All uses removed.
31245 All uses of _RE_ARGS removed, too.
31246 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
31248 (bzero): Assume memset exists.
31249 (memcmp, memcpy, NULL): Remove.
31250 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
31251 char, or assignments to local vars of type signed char.
31252 (init_syntax_once, PREFIX(extract_number_and_incr),
31253 PREFIX(print_partial_compiled_pattern),
31254 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
31255 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
31256 PREFIX(regex_grow_registers), PREFIX(regex_compile),
31257 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
31258 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
31259 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
31260 wcs_compile_range, byte_compile_range, truncate_wchar,
31261 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
31262 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
31263 count_mbs_length, wcs_re_match_2_internal,
31264 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
31265 PREFIX(alt_match_null_string_p),
31266 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
31267 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
31268 regfree, PREFIX(extract_number)): Define with prototype. Remove
31269 now-unnecessary declaration, if any.
31270 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
31272 Remove now-unnecessary casts among pointer types.
31273 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
31275 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
31276 (free): Remove decl.
31278 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
31280 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
31281 (free): Remove decl.
31283 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
31284 * lib/xgetcwd.c: Likewise.
31286 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
31287 (free): Remove decl.
31289 * lib/strchrnul.c (strchrnul): Define with a prototype.
31290 Fix bug: c_in was not converted to char before searching.
31292 The following changes are not K&R related:
31294 * lib/group-member.h: Include <sys/types.h>, so that this file is
31296 * lib/makepath.h: Likewise.
31298 * lib/getusershell.c (readname, default_index, line_size, readname):
31299 Use size_t, not int, for sizes.
31300 (readname): If the size overflows, report an error instead of
31303 2003-09-09 Paul Eggert <eggert@twinsun.com>
31305 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
31308 2003-09-09 Paul Eggert <eggert@twinsun.com>
31310 * README: New section: portability guidelines.
31312 2003-09-09 Derek Robert Price <derek@ximbiot.com>
31314 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
31317 2003-09-09 Derek Robert Price <derek@ximbiot.com>
31319 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
31321 2003-09-08 Paul Eggert <eggert@twinsun.com>
31323 Assume C89 or better; remove K&R cruft.
31324 A few of these changes were first proposed by Derek Robert Price
31325 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
31327 * lib/addext.c: Include <string.h> unconditionally.
31328 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
31329 Don't declare getenv or malloc.
31331 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
31332 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
31334 (find_stack_direction, alloca): Use prototypes.
31336 * lib/atexit.c (atexit): Define using a prototype.
31338 * lib/basename.c, dirname.c, stripslash.c:
31339 Include <string.h> unconditionally.
31341 * lib/bcopy.c: Include <stddef.h>.
31342 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
31344 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
31346 * lib/error.h (error, error_at_line, error_print_progname)
31347 [! (defined (__STDC__) && __STDC__)]: Remove decls.
31348 * lib/error.c: Include error.h first, to check interface.
31349 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
31350 (VA_START): Remove; all uses changeed to va_start.
31351 (exit, strerror): Remove decls.
31352 (error_print_progname): Prototype uncondionally.
31353 Don't include <errno.h>; no longer needed.
31354 (private_strerror): Remove.
31355 (error_tail): Always define.
31356 (error, error_at_line): Assume C89 or better; always use prototypes.
31357 * lib/fatal.c: Include "fatal.h" first, to test interface.
31358 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
31359 (VA_START): Remove; all uses changed to va_start.
31360 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
31362 (exit): Remove decl.
31363 (fatal): Prototype unconditionally. Assume va_start works.
31364 Abort at end, to pacify gcc.
31366 * lib/euidaccess.c (main): Define with a prototype.
31368 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
31370 * lib/exitfail.c: Include <stdlib.h> unconditionally.
31372 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
31374 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
31375 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
31376 (getenv): Remove decl.
31377 (fnmatch): Define using a prototype.
31378 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
31379 (FCT): Define using a prototype.
31381 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
31383 * lib/gethostname.c: Include <stddef.h>.
31384 (gethostname): Define with prototype. Length is size_t, not int.
31386 2003-09-08 Paul Eggert <eggert@twinsun.com>
31388 Assume C89 or better; remove K&R cruft.
31389 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
31390 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
31391 string.h, getenv, malloc.
31392 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
31394 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
31395 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
31396 do not check for strerror.
31397 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
31398 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
31399 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
31400 do not check for doprnt or vprintf.
31401 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
31402 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
31404 2003-09-08 Paul Eggert <eggert@twinsun.com>
31406 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
31407 getversion.c should have been removed then, but was accidentally
31410 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
31411 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
31413 2003-09-08 Karl Berry <karl@gnu.org>
31415 * config/config.sub, config.guess, srclistvars.sh: update from savannah
31416 config, forget about prep.
31418 * config/depcomp, missing: update from automake.
31420 2003-09-07 Paul Eggert <eggert@twinsun.com>
31422 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
31423 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
31425 2003-09-07 Paul Eggert <eggert@twinsun.com>
31427 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
31428 copy_tm_result. Bug reported by Simon Josefsson in
31429 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
31431 2003-09-06 Paul Eggert <eggert@twinsun.com>
31433 * m4/time_r.m4: New file.
31434 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
31435 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
31436 is. Check for timegm declaration.
31437 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
31438 Do not check for gmtime_r.
31439 Replace mktime if __mktime_internal does not exist and if mktime
31440 hasn't been replaced already.
31442 2003-09-06 Paul Eggert <eggert@twinsun.com>
31444 * lib/time_r.c, lib/time_r.h: New files.
31446 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
31448 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
31449 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
31451 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
31453 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
31454 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
31455 Include <time_r.h>.
31457 * lib/timegm.c: Switch to glibc implementation, with the following
31459 [defined HAVE_CONFIG_H]: Include <config.h>.
31460 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
31461 (__mktime_internal) [!defined _LIBC]: New decl.
31462 (__gmtime_r) [!defined _LIBC]: New macro and function.
31463 (timegm): Use a prototype, since gnulib assumes C89.
31464 Do not bother declaring tmp to be const, as it's not really usefu.
31465 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
31466 (timegm): Declare only if HAVE_DECL_TIMEGM.
31468 2003-09-06 Paul Eggert <eggert@twinsun.com>
31470 * MODULES.html.sh (func_all_modules): Add time_r.
31471 * modules/time_r: New file.
31472 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
31473 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
31475 2003-09-03 Paul Eggert <eggert@twinsun.com>
31477 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
31478 Bug reported by Lute Kamstra in
31479 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
31481 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
31482 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
31483 course with correspondingly smaller numbers for tomorrow and
31484 yesterday. From Tadayoshi Funaba. Originally installed into
31485 sh-utils on 1999-08-07, but the patch got lost (I guess during the
31488 2003-08-31 Simon Josefsson <jas@extundo.com>
31490 * modules/timegm: New file.
31491 * MODULES.html.sh (func_all_modules): Add timegm.
31493 2003-08-31 Simon Josefsson <jas@extundo.com>
31495 * m4/timegm.m4: New file.
31497 2003-08-31 Simon Josefsson <jas@extundo.com>
31499 * lib/timegm.h: New file.
31500 * lib/timegm.c: New file. Based on
31501 wget-1.8.2/src/http.c:mktime_from_utc.
31503 2003-08-31 Karl Berry <karl@gnu.org>
31505 * lib/argp.h: update from libc.
31507 2003-08-28 Bruno Haible <bruno@clisp.org>
31509 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
31510 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
31511 followed by '#define fnmatch fnmatch_posix' gives an error.
31513 2003-08-28 Bruno Haible <bruno@clisp.org>
31515 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
31516 warning on QNX, which defines O_BINARY to 000000.
31518 2003-08-27 Jim Meyering <jim@meyering.net>
31520 * m4/mkstemp.m4: Require that the system mkstemp be able to create
31521 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
31522 would fail after 32. Reported by Danny Levinson. Details here:
31523 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
31525 2003-08-24 Bruno Haible <bruno@clisp.org>
31527 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
31528 MSVC7 <stdio.h> is included later.
31530 2003-08-22 Simon Josefsson <jas@extundo.com>
31532 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
31534 2003-08-20 Karl Berry <karl@gnu.org>
31536 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
31538 2003-08-20 Bruno Haible <bruno@clisp.org>
31540 * modules/progname: New file.
31541 * MODULES.html.sh (func_all_modules): Add progname.
31543 2003-08-20 Bruno Haible <bruno@clisp.org>
31545 * lib/progname.h: New file, from GNU gettext.
31546 * lib/progname.c: New file, from GNU gettext.
31547 * lib/progreloc.c: New file, from GNU gettext.
31549 2003-08-19 Jim Meyering <jim@meyering.net>
31551 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
31552 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
31554 2003-08-19 Bruno Haible <bruno@clisp.org>
31556 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
31559 2003-08-19 Bruno Haible <bruno@clisp.org>
31561 * lib/xstrdup.c: Assume <string.h> exists.
31563 2003-08-18 Paul Eggert <eggert@twinsun.com>
31565 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
31568 2003-08-18 Jim Meyering <jim@meyering.net>
31570 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
31571 * m4/lib-ld.m4: Likewise.
31573 2003-08-18 Jim Meyering <jim@meyering.net>
31575 * lib/setenv.h: Indent nested cpp directive.
31576 * lib/vasnprintf.c: Remove trailing blanks.
31578 2003-08-17 Simon Josefsson <jas@extundo.com>
31580 * modules/xstrndup: New file.
31581 * MODULES.html.sh (func_all_modules): Add xstrndup.
31583 2003-08-17 Simon Josefsson <jas@extundo.com>
31585 * modules/argp: Fix autoconf macro name. Add more dependencies.
31587 2003-08-17 Simon Josefsson <jas@extundo.com>
31589 * m4/xstrndup.m4: New file.
31591 2003-08-17 Simon Josefsson <jas@extundo.com>
31593 * m4/argp.m4: New file.
31595 2003-08-17 Simon Josefsson <jas@extundo.com>
31596 Bruno Haible <bruno@clisp.org>
31598 * lib/xstrndup.h: New file.
31599 * lib/xstrndup.c: New file.
31601 2003-08-17 Bruno Haible <bruno@clisp.org>
31603 * modules/strndup (Files, Include): Add lib/strndup.h.
31605 2003-08-17 Bruno Haible <bruno@clisp.org>
31607 * modules/euidaccess (Files): Add lib/euidaccess.h.
31609 2003-08-17 Bruno Haible <bruno@clisp.org>
31611 * lib/strndup.h: New file.
31613 2003-08-17 Bruno Haible <bruno@clisp.org>
31615 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
31616 like AC_GNU_SOURCE.
31617 * modules/extensions (configure.ac): Comment out the invocation of
31618 gl_USE_SYSTEM_EXTENSIONS.
31620 2003-08-16 Paul Eggert <eggert@twinsun.com>
31622 Merges from coreutils, etc.
31623 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
31624 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
31625 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
31627 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
31628 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
31630 2003-08-16 Paul Eggert <eggert@twinsun.com>
31632 Document merge from coreutils.
31633 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
31634 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
31635 * modules/utime: Add m4/utimes-null.m4.
31637 2003-08-16 Paul Eggert <eggert@twinsun.com>
31639 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
31640 space, undoing this 2003-08-12 change:
31641 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
31643 2003-08-16 Paul Eggert <eggert@twinsun.com>
31645 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
31646 strtoul.c from libc, undoing this 2003-08-12 change:
31647 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
31649 2003-08-16 Jim Meyering <jim@meyering.net>
31651 Merges from coreutils.
31652 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
31653 prefix. Adjust cache variables similarly. Create 500 rather than
31654 just 300 files, to exercise bug on Darwin6.5, too.
31655 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
31657 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
31658 AM_SYS_POSIX_TERMIOS.
31659 Reported by mkc@mathdogs.com.
31660 Also change use of $am_cv_sys_posix_termios
31661 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
31662 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
31663 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
31664 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
31665 in /proc/mounts until it finds one with matching device number. This
31666 is unnecessary when the FILE argument *is* a mount point. No stat call
31667 is necessary in that case. So, disable the statvfs-testing code on
31668 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
31669 as RedHat bug# 84846.
31670 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
31671 to 1MB, so as not to render systems with no stack size limit (e.g.,
31672 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
31673 Include <unistd.h>. On some systems,
31674 it is required for the definition of _SC_PAGESIZE.
31676 2003-08-16 Jim Meyering <jim@meyering.net>
31678 Merge from coreutils.
31679 * lib/xstrtoimax.c: #else #if -> #elif.
31680 * lib/xstrtoumax.c: Likewise.
31682 2003-08-16 Jim Meyering <jim@meyering.net>
31684 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
31685 * m4/utimes.m4: Removed.
31686 * m4/utimes-null.m4: Renamed from utimes.m4.
31688 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
31689 to 1MB, so as not to render systems with no stack size limit (e.g.,
31690 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
31691 Include <unistd.h>. On some systems,
31692 it is required for the definition of _SC_PAGESIZE.
31694 2003-08-16 Jim Meyering <jim@meyering.net>
31695 and Paul Eggert <eggert@cs.ucla.edu>
31697 Merges from coreutils, etc.
31699 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
31700 using the latest version from cvs. This avoids problems with #line
31701 directives using a vendor (Sun) compiler.
31702 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
31703 Don't set GETGROUPS_LIB here; now it's
31704 done via getgroups.m4's wrapper function.
31705 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
31706 rather than just in sh-util/configure.in, so that the
31707 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
31709 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
31710 AC_FUNC_GETLOADAVG where to find getloadavg.c.
31711 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
31712 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
31713 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
31714 Remove code that is now done by the newly-required macros.
31715 Append $(EXEEXT) to DF_PROG.
31716 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
31717 Do not invoke or require the following here,
31718 since prereq.m4 or some gnulib .m4 now does this for us:
31719 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
31720 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
31721 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
31722 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
31723 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
31724 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
31725 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
31727 Do not replace the following functions, as this is now the job
31728 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
31729 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
31730 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
31731 atexit getpass, strdup, getpagesize.
31733 Do not check for the following functions, as this is now the job
31734 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
31735 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
31737 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
31738 Check for sys/sysctl.h.
31739 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
31740 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
31741 of checking for ssize_t ourselves.
31743 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
31744 Require every macro that gnulib/modules/* suggests for us.
31745 (jm_PREREQ_ADDEXT): New macro.
31746 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
31747 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
31749 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
31750 (gl_PHYSMEM): Use it.
31751 Also check for `table' function.
31752 Check for new headers and functions.
31753 Add check for sys/sysmp.h.
31754 With suggestions from Kaveh Ghazi.
31755 Ignore headers that are present but cannot be compiled. This
31756 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
31759 2003-08-15 Paul Eggert <eggert@twinsun.com>
31761 Document merge from coreutils.
31762 * modules/userspec: Depend on posixver.
31763 * modules/strftime: Depend on tzset.
31765 2003-08-15 Paul Eggert <eggert@twinsun.com>
31767 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
31768 rather than tab, after '#' in shell-script copyright notices.
31769 Suggested by Bruno Haible.
31771 2003-08-15 Paul Eggert <eggert@twinsun.com>
31773 * config/srclist-update: Use three spaces, rather than tab, after '#'
31774 in shell-script copyright notices. Suggested by Bruno Haible.
31775 Remove unnecessary parenthesization in regular expression.
31777 2003-08-15 Jim Meyering <jim@meyering.net>
31779 Merge from coreutils.
31780 * lib/xgethostname.c: Include <stdlib.h>.
31781 (xghostname): Don't exit for anything other than memory-related
31782 failure; just return NULL.
31783 * lib/userspec.c: Include "posixver.h".
31784 (parse_user_spec): Accept `.' as a separator only
31785 in pre-POSIX-200112 mode.
31786 * lib/strtoimax.c: Use #elif rather than #else #if.
31787 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
31788 Remove function, now that we can rely on a working tzset function.
31789 [!_LIBC]: Ensure that the required autoconf test has been run.
31790 [!defined _NL_CURRENT && HAVE_STRFTIME]:
31791 Use underlying_strftime for %r.
31792 * lib/sha.c: Merge in some clean-up and optimization changes from
31794 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
31795 Ensure that it is a multiple of 64.
31796 Rearrange loop exit tests so as to avoid performing an
31797 additional fread after encountering an error or EOF.
31798 * lib/realloc.c: Update copyright date.
31800 2003-08-15 Jim Meyering <jim@meyering.net>
31801 and Paul Eggert <eggert@twinsun.com>
31803 Merge from coreutils.
31804 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
31805 member but strut utmpx does not. Needed for AIX 4.3.3.
31806 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
31808 2003-08-15 Jim Meyering <jim@meyering.net>
31809 and Paul Eggert <eggert@cs.ucla.edu>
31811 Merges from coreutils, etc.
31812 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
31813 Require gl_FUNC_TZSET_CLOBBER.
31814 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
31815 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
31818 2003-08-14 Paul Eggert <eggert@twinsun.com>
31820 Help the merge from coreutils.
31821 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
31822 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
31823 * m4/tzset.m4: Use it too.
31825 2003-08-14 Paul Eggert <eggert@twinsun.com>
31827 * modules/tzset: New file.
31829 2003-08-14 Jim Meyering <jim@meyering.net>
31831 Merges from coreutils.
31832 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
31833 variable names, rather than @FNMATCH_H@.
31834 * modules/alloca: Likewise for $(ALLOCA_H).
31836 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
31837 the three copies of the literal target, `fnmatch.h'.
31838 * modules/alloca (alloca.h): Likewise.
31840 2003-08-14 Jim Meyering <jim@meyering.net>
31842 Merge from coreutils.
31843 * m4/tzset.m4: New file.
31844 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
31845 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
31846 otherwise, AIX 5.1 systems would end up using the latter.
31847 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
31848 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
31849 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
31850 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
31852 2003-08-14 Jim Meyering <jim@meyering.net>
31854 Merge from coreutils.
31855 * lib/obstack.h: Whitespace changes.
31856 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
31857 and xcalloc return values.
31858 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
31859 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
31860 hang on OSF/1 5.1 for DIR on both local and remote file systems.
31861 Reported by (and fix confirmed by) Nelson H. F. Beebe.
31862 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
31864 Use mntctl's return value to drive the entry-processing loop, since
31865 we can't rely on the value of the vmt_length member in the last
31866 entry. On some systems doing so could result in exhausting
31867 virtual memory. Based in part on a patch from Mike Jetzer.
31869 2003-08-14 Jim Meyering <jim@meyering.net>
31870 and Paul Eggert <eggert@twinsun.com>
31872 Merges from coreutils, plus other fixes.
31873 * lib/physmem.c: Merge in portability changes from gcc/libiberty
31874 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
31875 for credits and details. Thanks to Kaveh Ghazi for helping
31876 to keep these files in sync.
31877 (ARRAY_SIZE): Define it.
31878 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
31879 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
31880 (memcasecmp): Don't assume size_t fits in unsigned int.
31881 Remove casts and duplicate code.
31882 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
31883 (memcpy): Remove definition.
31884 Merge in some clean-up and optimization changes from glibc.
31885 [BLOCKSIZE]: Move definition to top of file.
31886 Ensure that it is a multiple of 64.
31887 Rearrange loop exit tests so as to avoid performing an
31888 additional fread after encountering an error or EOF.
31889 * lib/md5.h (md5_uintptr): Define.
31890 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
31891 return to the initial working directory. Preserve errno
31893 * lib/idcache.c: Include "xalloc.h".
31894 (xmalloc, xrealloc): Remove decls.
31895 (getuser): Remove casts no longer required in C89.
31896 * lib/human.c: Include stdio.h, for sprintf.
31897 * lib/group-member.c: Include "xalloc.h".
31898 (xmalloc, xrealloc): Remove decls.
31899 (get_group_info): Remove casts no longer required in C89.
31900 * lib/getusershell.c (readname): Remove casts no longer required in
31902 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
31903 * lib/getline.c: Whitespace fix, from coreutils.
31905 2003-08-13 Paul Eggert <eggert@twinsun.com>
31907 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
31910 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
31911 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
31912 Undo previous (whitespace-only) change.
31914 2003-08-13 Paul Eggert <eggert@twinsun.com>
31916 * lib/exclude.c: Include <ctype.h>
31917 (IN_CTYPE_DOMAIN): New macro.
31918 (is_space): New fn.
31919 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
31922 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
31923 Undo previous (whitespace-only) change.
31925 2003-08-13 Paul Eggert <eggert@twinsun.com>
31927 * config/srclist-update: Change update back to the old behavior,
31928 leaving whitespace alone. Use one 'sed' command rather than a
31930 (fixlicense): Now a variable, not a function.
31931 (remove_trailing_blanks): Remove.
31932 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
31933 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
31934 Undo previous (whitespace-only) change.
31936 2003-08-12 Paul Eggert <eggert@twinsun.com>
31938 Merge from coreutils.
31939 * modules/euidaccess: Add lib_SOURCES, include for new
31942 2003-08-12 Paul Eggert <eggert@twinsun.com>
31944 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
31945 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
31946 Normalize leading white space and remove trailing white space.
31948 Merge from coreutils
31949 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
31951 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
31952 0.12.1. These files are now being upgraded automatically by
31953 ../config/srclist-update.
31955 2003-08-12 Paul Eggert <eggert@twinsun.com>
31957 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
31958 Normalize leading white space and remove trailing white space.
31959 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
31960 notice, as per ../config/srclist-update.
31962 Merge from coreutils.
31963 * lib/euidaccess.h: New file.
31964 * lib/euidaccess.c: Include it.
31965 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
31966 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
31967 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
31969 2003-08-12 Paul Eggert <eggert@twinsun.com>
31971 * config/srclist-update: Add copyright notice.
31972 (remove_id_lines, remove_trailing_blanks): New constants.
31973 (fixfile): Use them to normalize spacing a bit in copied files.
31974 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
31975 Normalize leading white space and remove trailing white space.
31977 * config/texinfo.tex: Sync with texinfo.
31979 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
31980 strtoul.c from libc, to merge coreutils whitespace changes.
31982 * config/srclist.txt: Get the following m4 files from gettext:
31983 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
31984 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
31985 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
31988 2003-08-12 Karl Berry <karl@gnu.org>
31990 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
31993 2003-08-11 Paul Eggert <eggert@twinsun.com>
31995 * modules/gnu-source, m4/gnu-source.m4:
31996 Remove; we're assuming Autoconf 2.54 or later now.
31997 Suggested by Bruno Haible.
31998 * MODULES.html.sh (func_all_modules): Remove gnu-source.
32000 2003-08-11 Bruno Haible <bruno@clisp.org>
32002 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
32004 2003-08-11 Bruno Haible <bruno@clisp.org>
32006 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
32007 (vasnprintf): Use it instead of wcslen.
32009 2003-08-11 Bruno Haible <bruno@clisp.org>
32011 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
32012 value to ensure that _Bool promotes to int. Use #define for _Bool when
32013 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
32015 2003-08-10 Karl Berry <karl@gnu.org>
32017 * lib/regex.h: update from libc (whitespace fix).
32019 2003-08-09 Paul Eggert <eggert@twinsun.com>
32021 Merge some files from coreutils. These changes were
32022 originally made by Jim Meyering.
32023 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
32024 many older Unixes require this.
32025 * lib/alloca.c (alloca): Remove cast to argument of free;
32026 no longer needed in C89.
32027 * lib/alloca_.h, regex.h: Fix white space to match
32028 what GNU indent does.
32030 2003-08-09 Paul Eggert <eggert@twinsun.com>
32032 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
32033 apparently Emacs's Unicode mode got confused before my 2003-08-05
32036 2003-08-08 Paul Eggert <eggert@twinsun.com>
32038 * m4/extensions.m4: New file.
32039 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
32040 Require gl_USE_SYSTEM_EXTENSIONS.
32041 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
32042 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
32044 2003-08-08 Paul Eggert <eggert@twinsun.com>
32046 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
32047 * modules/extensions, modules/gnu-source: New files.
32048 * modules/timespec, modules/unlocked-io: Depend on extensions.
32050 2003-08-07 Paul Eggert <eggert@twinsun.com>
32052 * modules/restrict: New file.
32053 * MODULES.html.sh (func_all_modules): Add restrict.
32054 * modules/regex: Depend on restrict.
32056 2003-08-07 Paul Eggert <eggert@twinsun.com>
32058 * m4/restrict.m4: New file.
32059 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
32061 2003-08-07 Bruno Haible <bruno@clisp.org>
32063 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
32064 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
32066 2003-08-07 Bruno Haible <bruno@clisp.org>
32068 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
32069 makes the module 'getndelim2' compatible with the module 'getline'.
32071 2003-08-05 Paul Eggert <eggert@twinsun.com>
32073 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
32074 byte with "\201" to avoid glitches when editing that source file
32075 with multi-gnome-terminal.
32077 2003-08-05 Paul Eggert <eggert@twinsun.com>
32079 * lib/bumpalloc.h: Remove.
32081 2003-08-05 Paul Eggert <eggert@twinsun.com>
32083 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
32084 * modules/bumpalloc: Remove.
32086 2003-08-04 Paul Eggert <eggert@twinsun.com>
32088 * lib/getloadavg.c: Change copyright notice and spacing to conform to
32091 Merge from coreutils.
32092 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
32094 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
32095 from Karl Berry, implemented by Jim Meyering.
32096 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
32097 from Dmitry V. Levin.
32098 Remove anachronistic cast of xrealloc.
32099 * lib/fnmatch_.h (__const): Remove. Use 'const'.
32100 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
32101 type. Otherwise, it wouldn't compile with at least /bin/cc on
32102 ymp-cray-unicos9.0.2.X.
32103 Combine two mostly-identical uses of alloca into one.
32104 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
32106 2003-08-04 Dave Love <d.love@dl.ac.uk>
32110 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
32111 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
32112 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
32113 obsolete NLIST_NAME_UNION.
32114 [__GNU__]: Undef BSD and FSCALE.
32115 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
32117 2003-08-03 Paul Eggert <eggert@twinsun.com>
32119 * lib/stdbool_.h (_Bool): Make it signed char, instead of
32120 an enum type, so that it's guaranteed to promote to int. See:
32121 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
32123 2003-08-03 Karl Berry <karl@gnu.org>
32125 * config/depcomp: update from automake.
32127 2003-07-31 Paul Eggert <eggert@twinsun.com>
32129 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
32130 (strerror): Don't assume that a printable int fits in 14 bytes.
32132 2003-07-31 Bruno Haible <bruno@clisp.org>
32134 * modules/getpass-gnu: New file.
32135 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
32137 2003-07-31 Bruno Haible <bruno@clisp.org>
32139 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
32141 2003-07-24 Karl Berry <karl@gnu.org>
32143 * config/missing: update from automake.
32145 2003-07-24 Derek Robert Price <derek@ximbiot.com>
32146 Bruno Haible <bruno@clisp.org>
32148 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
32149 * lib/getline.c (getline, getdelim): Likewise.
32150 Remove _GNU_SOURCE define; now it's defined in config.h through
32153 2003-07-23 Karl Berry <karl@gnu.org>
32155 * config/config.sub: update from prep.
32157 2003-07-22 Paul Eggert <eggert@twinsun.com>
32159 * modules/xalloc (Depends-on): Add exitfail.
32160 * modules/xmemcoll: Likewise.
32162 2003-07-22 Paul Eggert <eggert@twinsun.com>
32164 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
32165 over-parenthesization in macros.
32167 Sync with coreutils.
32169 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
32172 Use `exit_failure' for xalloc and xmemcoll instead of their own
32173 private exit-failure variables.
32174 * lib/xalloc.h (xalloc_exit_failure): Remove.
32175 * lib/xmalloc.c: Likewise. Include exitfail.h.
32176 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
32177 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
32178 * lib/xmemcoll.c: Likewise. Include exitfail.h.
32179 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
32181 2003-07-20 Jim Meyering <jim@meyering.net>
32183 * modules/closeout (Depends-on): Add exitfail.
32184 Suggestion from Bruno Haible.
32186 2003-07-19 Karl Berry <karl@gnu.org>
32188 * config/config.sub: update from prep.
32190 2003-07-18 Paul Eggert <eggert@twinsun.com>
32192 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
32194 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
32195 to test that it can stand by itself. Include "exitfail.h".
32196 Clients should set exit_failure instead.
32197 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
32199 2003-07-18 Bruno Haible <bruno@clisp.org>
32201 * modules/getndelim2: New file.
32202 * modules/getline: Share files with module getndelim2.
32203 * modules/getnline: Depend on getndelim2 instead of sharing files with
32204 it. Add getnline.c to lib_SOURCES.
32205 * MODULES.html.sh (func_all_modules): Add getndelim2.
32207 2003-07-18 Bruno Haible <bruno@clisp.org>
32209 * m4/getndelim2.m4: New file.
32210 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
32211 invoke gl_PREREQ_GETNDELIM2.
32212 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
32213 gl_PREREQ_GETNDELIM2.
32214 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
32217 2003-07-18 Bruno Haible <bruno@clisp.org>
32219 * lib/getndelim2.h: New file.
32220 * lib/getndelim2.c: Make into a module of its own. Include config.h,
32222 (getndelim2): Make non-static. Change return type to ssize_t.
32223 * lib/getline.h: Change argument names.
32224 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
32225 * lib/getnline.c: Include getndelim2.h.
32227 2003-07-18 Andreas Schwab <schwab@suse.de>
32229 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
32231 2003-07-17 Karl Berry <karl@gnu.org>
32233 * config/config.sub: update from prep.
32235 2003-07-17 Bruno Haible <bruno@clisp.org>
32237 * modules/getnline: New file.
32238 * modules/getline: Add lib/getndelim2.c to source file list.
32239 * MODULES.html.sh (func_all_modules): Add getnline.
32241 2003-07-17 Bruno Haible <bruno@clisp.org>
32243 * m4/getnline.m4: New file.
32245 2003-07-17 Bruno Haible <bruno@clisp.org>
32247 * m4/Makefile.am.in: Remove file.
32248 * m4/Makefile.am: Remove file.
32249 * m4/Makefile.in: Remove file.
32251 2003-07-17 Bruno Haible <bruno@clisp.org>
32253 * lib/getnline.h: New file.
32254 * lib/getnline.c: New file.
32255 * lib/getndelim2.c: New file, extracted from getline.c.
32256 (getndelim2): Renamed from getdelim2, with added nmax argument.
32257 * lib/getline.c: Include getndelim2.c.
32258 (getdelim2): Moved out to getndelim2.c.
32259 (getline, getdelim): Update.
32261 2003-07-17 Bruno Haible <bruno@clisp.org>
32263 * lib/Makefile.am: Remove file.
32264 * lib/Makefile.in: Remove file.
32266 2003-07-17 Bruno Haible <bruno@clisp.org>
32268 * configure.in: Remove file.
32269 * Makefile.in: Remove file.
32271 2003-07-17 Bruno Haible <bruno@clisp.org>
32273 * MODULES.html.sh: Put the </BODY> right before </HTML>.
32275 2003-07-16 Karl Berry <karl@gnu.org>
32277 * config/srclist-update: was running fixlicense twice, which caused
32278 texinfo.tex to be nullified for some reason. Simplify,
32279 $gplsrc is no longer needed as far as I can see?
32281 2003-07-16 Jim Meyering <jim@meyering.net>
32283 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
32285 2003-07-15 Paul Eggert <eggert@twinsun.com>
32287 * config/srclist.txt: Get the following files from gettext-runtime/intl
32288 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
32289 ref-del.sin. From Bruno Haible.
32290 * config/srclist-update (fixfile): Change grep pattern again, since the
32291 previous fix didn't work (there was another trailing $). Use
32292 '[$]' to escape the $s.
32294 2003-07-15 Karl Berry <karl@gnu.org>
32296 * lib/vasnprintf.c: update from gettext.
32298 2003-07-15 Karl Berry <karl@gnu.org>
32300 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
32301 gets expanded when surrounded by '$'.
32303 2003-07-15 Jim Meyering <jim@meyering.net>
32305 * modules/save-cwd: Don't depend on error. From Derek Price.
32307 2003-07-15 Jim Meyering <jim@meyering.net>
32309 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
32311 2003-07-14 Simon Josefsson <jas@extundo.com>
32313 * modules/mempcpy: New file.
32314 * MODULES.html.sh (func_all_modules): Add mempcpy.
32316 2003-07-14 Simon Josefsson <jas@extundo.com>
32318 * m4/mempcpy.m4: New file.
32320 2003-07-14 Simon Josefsson <jas@extundo.com>
32322 * lib/mempcpy.h: New file.
32323 * lib/mempcpy.c: New file.
32325 2003-07-14 Paul Eggert <eggert@twinsun.com>
32327 * modules/getdate, modules/posixtm: Depend on mktime.
32329 2003-07-14 Paul Eggert <eggert@twinsun.com>
32331 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
32332 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
32333 unicodeio.c, unicodeio.h, unlocked-io.h:
32334 Switch from LGPL to GPL.
32336 2003-07-14 Paul Eggert <eggert@twinsun.com>
32338 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
32339 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
32340 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
32341 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
32342 vasprintf.c, vasprintf.h: Regenerate. These files are now being
32343 updated automatically by ../config/srclist-update. This changes
32344 their license from LPGL to GPL.
32346 2003-07-14 Paul Eggert <eggert@twinsun.com>
32348 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
32349 assumed to refer to the root of the most recent stable gettext version.
32350 * config/srclistvars.sh: Add defaults for eggert.
32351 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
32352 Match "This program" as well as "The program". This is needed
32355 2003-07-14 Jim Meyering <jim@meyering.net>
32357 Don't emit diagnostics. Let callers do that.
32358 * lib/save-cwd.c: Don't include "error.h".
32359 (save_cwd): Don't call error. Ensure that errno is valid
32360 when returning nonzero.
32362 * lib/save-cwd.h (restore_cwd): Update prototype.
32363 * lib/save-cwd.c (restore_cwd): Remove two parameters.
32364 Simplify. Don't call error upon failure. Let callers do that.
32365 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
32366 when auditing is enabled. But don't bother updating the #if.
32368 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
32370 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
32371 it breaks C++ compilation.
32372 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
32374 2003-07-10 Simon Josefsson <jas@extundo.com>
32376 * modules/strchrnul (Makefile.am): Add strchrnul.h.
32378 2003-07-10 Jim Meyering <jim@meyering.net>
32380 * m4/clock_time.m4: Remove trailing blank.
32381 * m4/intmax_t.m4: Likewise.
32383 2003-07-10 Jim Meyering <jim@meyering.net>
32385 * lib/vasnprintf.c: Remove trailing blanks.
32386 Make cpp indentation consistent.
32388 2003-07-09 Paul Eggert <eggert@twinsun.com>
32390 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
32391 posixver.c, strftime.c, strnlen.c, strverscmp.c:
32392 Switch from LGPL to GPL.
32394 2003-07-09 Paul Eggert <eggert@twinsun.com>
32396 * config/srclist.txt: Sort sublists. Add
32397 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
32398 that differ from gnulib for one reason or another; we'd like this list
32399 to be smaller but for now let's document what we have.
32401 2003-07-08 Paul Eggert <eggert@twinsun.com>
32403 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
32404 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
32405 and sweeter "eval x=$x".
32406 * config/srclist.txt: Get lib/argp* from glibc.
32408 2003-07-07 Paul Eggert <eggert@twinsun.com>
32410 * lib/mktime.c: Fix some boundary cases and remove need for floating
32413 Issue a compile-time diagnostic if time_t is floating point, or if
32414 two's complement arithmetic is not in effect, or if arithmetic
32415 right shift does not propagate the sign. These assumptions were
32416 all in the original code but they weren't checked.
32418 (TIME_T_MIDPOINT, verify): New macros.
32419 (__isleap): Remove; it has integer overflow problems.
32420 (leapyear): New function, without those problems.
32421 (ydhms_tm_diff): Remove; splitting into two parts.
32422 (ydhms_diff): New function, containing the arithmetic part of
32423 the old ydhms_tm_diff function. Issue a compile-time
32424 diagnostic if we are not using C99 integer division.
32425 Avoid casts when possible.
32426 (guess_time_tm): New function, containing the checking part of
32427 the old ydhms_tm_diff function. Return the new value, rather than
32428 the difference between it and the old. Accept a new argument T
32429 so that *T specifies the old value. Check for overflow in the result.
32431 (__mktime_internal): Use a time_t offset, not a long int offset.
32432 This undoes the 2003-06-04 change, which is no longer needed now
32433 that we have better overflow checking.
32434 (localtime_offset): Likewise.
32436 (__mktime_internal): Avoid harmful overflow on hosts where time_t
32437 and long are 64-bit but int is only 32-bit.
32438 (ydhms_diff): Use long int to store year1 and yday1.
32439 Issue a compile-time diagnostic if long int is not wide enough.
32441 (__mktime_internal): Use long int to store adjusted year and yday.
32442 Use plain C rather than preprocessor commands, if that doesn't
32444 Check for overflow (and try to repair) after each probe
32445 rather than checking only at the very end. This avoids some bugs
32446 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
32447 does not equal GMT offset at maximum time).
32448 Use integer to check for overflow rather than floating point; this
32449 is more portable to non-IEEE hosts, and is a tad faster.
32450 When we detect that we are oscillating between two values,
32451 don't check whether tm_isdst has the requested value, since
32452 we already know the answer. When tm_isdst has the wrong value,
32453 use a different heuristic to find the right one, based on the
32454 extreme values actually observed in practice in tz2003a,
32455 rather than the (overly optimistic) "previous 3 calendar quarters".
32457 (not_equal_tm, print_tm, check_result): Use "const T" rather than
32458 "T const" to accommodate glibc style.
32459 (check_result): Use less-confusing report format. "long" -> "long int.
32461 Don't loop if the iteration overflows time_t.
32462 Allow a negative step in the iteration.
32464 2003-07-06 Karl Berry <karl@gnu.org>
32466 * config/depcomp: update from automake.
32467 * config/config.sub: update from prep.
32469 2003-07-03 Karl Berry <karl@gnu.org>
32471 * config/config.guess: update from prep.
32473 2003-07-01 Paul Eggert <eggert@twinsun.com>
32475 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
32476 xreadlink.c now includes it unconditionally.
32478 2003-07-01 Paul Eggert <eggert@twinsun.com>
32480 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
32481 having it depend on HAVE_SYS_TYPES_H.
32483 2003-07-01 Bruno Haible <bruno@clisp.org>
32485 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
32486 <sys/types.h> should be sufficient.
32487 Reported by Paul Eggert.
32489 2003-06-26 Karl Berry <karl@gnu.org>
32491 * config/depcomp: update from automake.
32493 2003-06-26 Bruno Haible <bruno@clisp.org>
32495 * modules/human: Depend on module stdbool.
32497 2003-06-25 Bruno Haible <bruno@clisp.org>
32499 * modules/readlink: New file.
32500 * modules/xreadlink: Depend on it.
32501 * MODULES.html.sh (func_all_modules): Add readlink.
32503 2003-06-25 Bruno Haible <bruno@clisp.org>
32505 * m4/readlink.m4: New file.
32507 2003-06-25 Bruno Haible <bruno@clisp.org>
32509 * lib/readlink.c: New file.
32511 2003-06-22 Karl Berry <karl@gnu.org>
32513 * config/srclist.txt: update mkinstalldirs from automake.
32514 * config/mkinstalldirs: update.
32516 2003-06-22 Bruno Haible <bruno@clisp.org>
32518 Portability to mingw32.
32519 * m4/ssize_t.m4: New file, from GNU gettext.
32520 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
32521 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
32523 2003-06-22 Bruno Haible <bruno@clisp.org>
32525 * modules/safe-read: Add m4/ssize_t.m4.
32526 * modules/xreadlink: Add m4/ssize_t.m4.
32528 2003-06-20 Bruno Haible <bruno@clisp.org>
32530 Assume C89, so PARAMS isn't needed.
32531 * lib/unicodeio.h (PARAMS): Remove.
32532 * lib/unicodeio.c: Don't use PARAMS.
32534 2003-06-18 Karl Berry <karl@gnu.org>
32536 * config/config.{guess,sub}: update from prep.
32538 2003-06-18 Jim Meyering <jim@meyering.net>
32540 Merge changes from coreutils.
32541 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
32542 Remove explicit declarations of xmalloc and realloc.
32544 (read_utmp): Remove anachronistic cast of xmalloc.
32546 2003-06-17 Paul Eggert <eggert@twinsun.com>
32548 Assume C89, so PARAMS isn't needed.
32549 * lib/backupfile.h (PARAMS): Remove. All uses removed.
32550 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
32551 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
32552 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
32553 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
32554 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
32555 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
32556 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
32557 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
32558 lib/xstrtod.h, lib/xstrtol.h: Likewise.
32559 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
32560 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
32561 no longer needed. Anyway, config.h should always be included before any
32564 2003-06-11 Simon Josefsson <jas@extundo.com>
32566 * modules/sysexits: New file.
32567 * MODULES.html.sh (func_all_modules): Add sysexits.
32569 2003-06-11 Simon Josefsson <jas@extundo.com>
32571 * lib/sysexit_.h: New file.
32573 2003-06-11 Derek Price <derek@ximbiot.com>
32575 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
32578 2003-06-11 Bruno Haible <bruno@clisp.org>
32580 * m4/sysexits.m4: New file.
32582 2003-06-10 Simon Josefsson <jas@extundo.com>
32584 * lib/argp.h: New file, from glibc.
32585 * lib/argp-ba.c: New file, from glibc.
32586 * lib/argp-eexst.c: New file, from glibc.
32587 * lib/argp-fmtstream.c: New file, from glibc.
32588 * lib/argp-fmtstream.h: New file, from glibc.
32589 * lib/argp-fs-xinl.c: New file, from glibc.
32590 * lib/argp-help.c: New file, from glibc.
32591 * lib/argp-namefrob.h: New file, from glibc.
32592 * lib/argp-parse.c: New file, from glibc.
32593 * lib/argp-pv.c: New file, from glibc.
32594 * lib/argp-pvh.c: New file, from glibc.
32595 * lib/argp-xinl.c: New file, from glibc.
32597 2003-06-10 Simon Josefsson <jas@extundo.com>
32599 * modules/strchrnul: New file.
32601 2003-06-10 Simon Josefsson <jas@extundo.com>
32603 * modules/argp: New file.
32605 2003-06-10 Simon Josefsson <jas@extundo.com>
32607 * m4/strchrnul.m4: New file.
32609 2003-06-10 Simon Josefsson <jas@extundo.com>
32611 * lib/strchrnul.h: New file.
32612 * lib/strchrnul.c: New file.
32614 2003-06-10 Bruno Haible <bruno@clisp.org>
32616 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
32618 2003-06-07 Karl Berry <karl@gnu.org>
32620 * config/config.{guess,sub}: update from prep.
32622 2003-06-07 Jim Meyering <jim@meyering.net>
32624 * modules/strtod: Use $(...) notation, not @...@ for
32625 AC_REPLACE'd variables.
32626 * modules/localcharset: Likewise.
32628 2003-06-07 Jim Meyering <jim@meyering.net>
32630 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
32631 in place of my name in the copyright comment.
32632 Remove definition and uses of __P.
32635 * lib/stat.c: Don't declare xmalloc explicitly.
32636 Instead, include "xalloc.h".
32637 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
32638 xrealloc, and xcalloc return values.
32639 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
32641 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
32643 2003-06-07 Bruno Haible <bruno@clisp.org>
32645 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
32646 avoid AC_CONFIG_LINKS.
32647 * modules/fnmatch (Makefile.am): Use explicit creation rule for
32648 fnmatch.h, to avoid AC_CONFIG_LINKS.
32649 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
32651 2003-06-07 Bruno Haible <bruno@clisp.org>
32653 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
32654 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
32655 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
32657 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
32658 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
32661 2003-06-06 Jim Meyering <jim@meyering.net>
32663 Merge from coreutils.
32664 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
32665 Consolidate declarations and initializations of *_base* locals.
32667 Merge from coreutils.
32668 This avoids a core dump on systems without GNU putenv,
32669 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
32670 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
32671 (unsetenv): New static function, from GNU libc.
32672 (rpl_putenv): Use it.
32674 * lib/modechange.c: Remove trailing blanks.
32676 Merge from coreutils.
32677 * lib/fsusage.c: Remove declaration of statfs.
32678 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
32680 * lib/posixtm.c: Include <stdbool.h> unconditionally.
32682 2003-06-06 Jim Meyering <jim@meyering.net>
32684 * lib/stdbool_.h: Renamed from stdbool.h.in.
32686 2003-06-06 Jim Meyering <jim@meyering.net>
32687 Bruno Haible <bruno@clisp.org>
32689 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
32690 Adjust Makefile.am snippet not to redirect directly to target.
32691 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
32693 2003-06-05 Paul Eggert <eggert@twinsun.com>
32695 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
32696 mismatch, look in future quarters as well as past. This fixes a
32697 bug when processing fall-backwards gaps immediately after a long
32698 period of daylight-saving time.
32700 * lib/mktime.c: Assume freestanding C89 or better.
32701 (HAVE_LIMITS_H): Remove. Assume it's 1.
32702 (__P): Remove; not used.
32703 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
32704 (mktime, not_equal_tm, print_tm, check_result,
32705 main): Use prototypes. Use const * where appropriate.
32706 (main): Fix typo in testing code that uncovered by above changes.
32707 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
32709 2003-06-04 Paul Eggert <eggert@twinsun.com>
32711 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
32712 locale.h, localeconv. This merges changes from coreutils.
32714 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
32715 It can be removed after the next Autoconf is released.
32716 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
32719 2003-06-04 Paul Eggert <eggert@twinsun.com>
32721 * lib/mktime.c: Fix Debian bug 177940
32722 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
32723 (localtime_offset): Now long int, not time_t, because we want it
32724 to be guaranteed to be signed. All uses changed.
32725 (__mktime_internal): If overflow would occur when adding offset,
32728 Merge 'human' changes from coreutils. Rewrite to support
32729 locale-specific notations like thousands separators.
32730 * lib/human.c: Simplify authorship notice.
32731 Include human.h immediately after config.h.
32732 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
32733 <limits.h>: Do not include, since human.h does.
32734 (SIZE_MAX, UINTMAX_MAX): New macros.
32735 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
32736 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
32737 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
32738 (power_letter): Renamed from suffixes.
32739 (generate_suffix_backwards): Remove.
32740 (adjust_value): Now takes int style (because of human.h changes)
32741 and long double value (for greater precision on some platforms).
32742 (group_number): New function.
32743 (human_readable): Use it. Use integer options, not enum.
32744 Put the options before the sizes in the arg list.
32745 Support all the new options.
32746 The old human_readable function has been removed;
32747 use inttostr.h instead.
32748 (human_readable, default_block_size, humblock):
32749 Use uintmax_t, not int, for block sizes.
32750 (human_readable_inexact, block_size_types): Remove.
32751 (block_size_opts): New constant.
32752 (human_options): Renamed from human_block_size, with new signature
32753 that allows block sizes up to UINTMAX_MAX. All callers changed.
32754 * lib/human.h: Add copyright and authorship notice.
32755 Include <limits.h> and <stdbool.h> unconditionally.
32756 (PARAMS): Remove. All uses removed.
32757 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
32758 (enum human_inexact_style): Remove tag; now a nameless enum.
32759 (human_floor, human_ceiling, human_round_to_even): Now have
32760 values 2, 0, 1 rather than -1, 1, 0.
32761 (human_group_digits, human_suppress_point_zero, human_autoscale,
32762 human_base_1024, human_SI, human_B): New constants.
32763 (human_readable_inexact, human_block_size): Remove.
32764 (human_readable): Size args are now uintmax_t, not int.
32765 (human_options): New decl.
32767 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
32768 unnecessary now that we assume C89 or better. This change
32769 imported from coreutils.
32771 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
32772 arbitrarily. This is the same patch as 2003-05-28, but it got lost
32773 in the 2003-05-30 sync from glibc.
32775 .h files should stand alone, but we shouldn't include <sys/types.h>
32776 if we can get away with just <stddef.h>.
32778 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
32779 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
32780 rather than <sys/types.h>, as we merely need size_t.
32781 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
32783 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
32784 Include <stdio.h>, to get FILE.
32785 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
32786 memcasecmp.h has included <stddef.h> and all we need is size_t.
32787 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
32788 our interface, instead of including <sys/types.h>
32790 2003-06-04 Paul Eggert <eggert@twinsun.com>
32792 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
32793 now, as glibc mktime is buggy on non-glibc systems.
32795 2003-06-03 Karl Berry <karl@gnu.org>
32797 * config/config.sub: update from prep.
32799 2003-06-02 Paul Eggert <eggert@twinsun.com>
32802 Fix some minor time-related bugs with POSIX time arguments.
32803 Some valid time stamps were being rejected (notably -1, and
32804 time stamps before 1900 on 64-bit hosts). And some invalid
32805 time stamps were being accepted, e.g. September 31.
32807 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
32808 that we can return (time_t) -1 successfully.
32809 * lib/posixtm.c: Likewise.
32810 [HAVE_STDBOOL_H]: Include <stdbool.h>.
32811 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
32812 (t): Remove static var.
32813 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
32814 of static var. All uses changed.
32815 (year): Do not reject years before 1900; they can occur with
32817 (posix_time_parse): Do not check for out-of-range components;
32818 that is now the caller's responsibility, since our checks were
32819 only approximations.
32820 (posixtime): Use mktime to check for out-of-range components,
32821 since it knows them exactly.
32822 If mktime returns (time_t) -1, check whether an error actually occurred
32823 by invoking localtime on -1.
32824 (main) [TEST_POSIXTIME]: Check for input data errors, and report
32825 posixtime failures better.
32826 Improve the test data (in comments only).
32828 2003-06-02 Karl Berry <karl@gnu.org>
32830 * config/mkinstalldirs (version): new variable.
32831 (--version): new option.
32832 (usage): improve message.
32834 2003-05-30 Karl Berry <karl@gnu.org>
32836 * lib/mktime.c: update from libc.
32838 2003-05-30 Bruno Haible <bruno@clisp.org>
32840 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
32841 * config/config.rpath: Upgrade to gettext-0.12.1.
32843 2003-05-30 Bruno Haible <bruno@clisp.org>
32845 * m4/gettext.m4: Upgrade to gettext-0.12.1.
32846 * m4/nls.m4: New file, from gettext-0.12.1.
32847 * m4/po.m4: New file, from gettext-0.12.1.
32848 * m4/progtest.m4: Upgrade to gettext-0.12.1.
32850 2003-05-30 Bruno Haible <bruno@clisp.org>
32852 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
32853 * lib/localcharset.h: Likewise.
32854 * lib/localcharset.c: Likewise.
32856 2003-05-29 Karl Berry <karl@gnu.org>
32858 * config/config.rpath: update from gettext.
32860 2003-05-28 Paul Eggert <eggert@twinsun.com>
32862 Assume the headers required for C89 freestanding compilers.
32863 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
32864 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
32865 * m4/human.m4 (gl_HUMAN): Likewise.
32866 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
32867 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
32868 * m4/userspec.m4 (gl_USERSPEC): Likewise.
32869 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
32870 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
32871 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
32873 2003-05-28 Paul Eggert <eggert@twinsun.com>
32875 Assume the headers required for C89 freestanding compilers.
32876 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
32877 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
32878 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
32879 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
32880 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
32881 define, since <limits.h> is guaranteed to do that.
32882 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
32883 * lib/exclude.c: Include <stdbool.h> unconditionally.
32884 * lib/tempname.c: Include <stddef.h> unconditionally.
32885 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
32886 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
32887 <stddef.h> does that.
32888 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
32889 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
32890 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
32892 * lib/xstrtol.c: Likewise.
32893 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
32894 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
32896 * lib/addext.c (addext): Use assignment rather than cast, to avoid
32897 warnings on some platforms.
32899 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
32902 2003-05-26 Jim Meyering <jim@meyering.net>
32904 Merge in a change from coreutils:
32905 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
32906 that is guaranteed to be `no'. Use `no_such_member' to indicate
32907 that condition, rather than `-1' which is slightly misleading.
32908 Change the name of the cache variable to have the gl_ prefix.
32909 Prompted by a patch from Richard Dawe for DJGPP.
32911 2003-05-24 Karl Berry <karl@gnu.org>
32913 * config/config.guess: update from prep.
32915 2003-05-22 Karl Berry <karl@gnu.org>
32917 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
32919 2003-05-20 Karl Berry <karl@gnu.org>
32921 * config/config.guess: update from prep.
32923 2003-05-18 Karl Berry <karl@gnu.org>
32925 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
32926 might actually be set by the user.
32928 * config/depcomp, install-sh, mdate-sh: update from automake.
32930 2003-05-17 Bruno Haible <bruno@clisp.org>
32932 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
32933 invalid expansion for AC_EGREP_CPP.
32934 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
32935 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
32936 Suggested by Akim Demaille <akim@epita.fr> in
32937 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
32939 2003-05-12 Jim Meyering <jim@meyering.net>
32941 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
32942 the space-padded-by-default conversion specifiers, %e, %k, %l.
32944 2003-05-12 Bruno Haible <bruno@clisp.org>
32946 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
32947 the string is longer than 4 KB.
32949 2003-05-11 Karl Berry <karl@gnu.org>
32951 * config/config.{guess,sub}: update from prep.
32953 2003-05-09 Bruno Haible <bruno@clisp.org>
32955 * modules/error: Add m4/strerror_r.m4 to file list.
32957 2003-05-03 Bruno Haible <bruno@clisp.org>
32959 Upgrade to Unicode-4.0.
32960 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
32961 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
32962 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
32963 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
32964 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
32965 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
32966 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
32967 Change width of U+E0100..U+E01EF from 1 to 0.
32969 2003-04-25 Jim Meyering <jim@meyering.net>
32971 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
32972 of type size_t, not int.
32974 2003-04-25 Bruno Haible <bruno@clisp.org>
32976 * lib/copy-file.c: Include <stddef.h>, for size_t.
32978 2003-04-21 Paul Eggert <eggert@twinsun.com>
32980 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
32981 code which expansion is under static control. Patch imported from
32982 Akim Demaille's patch to Bison; see
32983 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
32985 2003-04-14 Bruno Haible <bruno@clisp.org>
32987 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
32989 2003-04-11 Jim Meyering <jim@meyering.net>
32991 Merge changes from Coreutils.
32993 2003-03-22 Jim Meyering <jim@meyering.net>
32995 * lib/strftime.c (widen): Cast alloca return value to proper type.
32997 2003-01-19 Ulrich Drepper <drepper@redhat.com>
33000 * lib/strftime.c (my_strftime): Handle very large width
33001 specifications for numeric values correctly. Improve checks for
33004 2003-01-19 Jim Meyering <jim@meyering.net>
33006 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
33008 (nl_get_alt_digit) [! defined my_strftime]: Define.
33009 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
33010 _nl_get_alt_digit and _nl_get_walt_digit.
33012 * lib/strftime.c (my_strftime): Merge in locale-related changes from
33013 libc. These changes have no effect outside of _LIBC.
33015 2003-04-10 Bruno Haible <bruno@clisp.org>
33017 * modules/findprog: New file.
33018 * MODULES.html.sh (func_all_modules): Add it.
33020 2003-04-10 Bruno Haible <bruno@clisp.org>
33022 * m4/findprog.m4: New file.
33023 * m4/eaccess.m4: New file.
33025 2003-04-10 Bruno Haible <bruno@clisp.org>
33027 * lib/findprog.h: New file, from GNU gettext.
33028 * lib/findprog.c: New file, from GNU gettext.
33030 2003-04-05 Jim Meyering <jim@meyering.net>
33032 Merge changes from Coreutils.
33034 * lib/exclude.h (PARAMS): Remove definition and uses.
33035 * lib/exclude.c: Remove uses of `PARAMS'.
33037 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
33038 Add test-cases for DOS filenames. Declare program_name.
33039 (main): Set up program_name. Patch by Rich Dawe.
33041 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
33043 Use mntctl's return value to drive the entry-processing loop, since
33044 we can't rely on the value of the vmt_length member in the last
33045 entry. On some systems doing so could result in exhausting
33046 virtual memory. Based in part on a patch from Mike Jetzer.
33048 2003-04-04 Bruno Haible <bruno@clisp.org>
33050 * modules/linebreak: New file.
33051 * MODULES.html.sh (func_all_modules): Add it.
33053 2003-04-04 Bruno Haible <bruno@clisp.org>
33055 * m4/linebreak.m4: New file.
33057 2003-04-04 Bruno Haible <bruno@clisp.org>
33059 * lib/linebreak.h: New file, from GNU gettext.
33060 * lib/linebreak.c: New file, from GNU gettext with slight
33062 * lib/lbrkprop.h: New file, from GNU gettext.
33064 2003-04-03 Bruno Haible <bruno@clisp.org>
33066 * modules/utf8-ucs4: New file.
33067 * modules/utf16-ucs4: New file.
33068 * modules/ucs4-utf8: New file.
33069 * modules/ucs4-utf16: New file.
33070 * MODULES.html.sh (func_all_modules): Add them.
33072 2003-04-03 Bruno Haible <bruno@clisp.org>
33074 * m4/utf-ucs4.m4: New file.
33075 * m4/ucs4-utf.m4: New file.
33077 2003-04-03 Bruno Haible <bruno@clisp.org>
33079 * lib/utf8-ucs4.h: New file, from GNU gettext.
33080 * lib/utf16-ucs4.h: New file, from GNU gettext.
33081 * lib/ucs4-utf8.h: New file, from GNU gettext.
33082 * lib/ucs4-utf16.h: New file, from GNU gettext.
33084 2003-04-02 Bruno Haible <bruno@clisp.org>
33086 * modules/binary-io: New file.
33087 * MODULES.html.sh (func_all_modules): Add it.
33089 2003-04-02 Bruno Haible <bruno@clisp.org>
33091 * lib/binary-io.h: New file, from GNU gettext.
33093 2003-04-01 Bruno Haible <bruno@clisp.org>
33095 * modules/pathname: New file.
33096 * MODULES.html.sh (func_all_modules): Add it.
33098 2003-04-01 Bruno Haible <bruno@clisp.org>
33100 * lib/pathname.h: New file, from GNU gettext.
33101 * lib/concatpath.c: New file, from GNU gettext.
33103 2003-03-30 Bruno Haible <bruno@clisp.org>
33105 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
33107 2003-03-30 Bruno Haible <bruno@clisp.org>
33109 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
33110 function chown() doesn't exist.
33112 2003-03-28 Bruno Haible <bruno@clisp.org>
33114 * modules/copy-file: New file.
33115 * MODULES.html.sh (func_all_modules): Add it.
33117 2003-03-28 Bruno Haible <bruno@clisp.org>
33119 * m4/copy-file.m4: New file.
33121 2003-03-28 Bruno Haible <bruno@clisp.org>
33123 * lib/copy-file.h: New file, from GNU gettext.
33124 * lib/copy-file.c: New file, from GNU gettext.
33126 2003-03-18 Jim Meyering <jim@meyering.net>
33128 * lib/quote.c (quote_n): Fix typo in comment.
33130 2003-03-18 Bruno Haible <bruno@clisp.org>
33132 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
33134 * m4/onceonly_2_57.m4: Likewise.
33136 2003-03-17 Bruno Haible <bruno@clisp.org>
33138 * m4/onceonly.m4: Require autoconf 2.54 or newer.
33139 (m4_quote): Remove macro.
33140 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
33142 2003-03-14 Jim Meyering <jim@meyering.net>
33144 Merge changes from Coreutils.
33145 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
33146 to be const, in order to avoid warnings.
33147 (obstack_room): Likewise.
33148 (obstack_empty_p): Likewise.
33150 2003-03-14 Bruno Haible <bruno@clisp.org>
33152 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
33153 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
33155 2003-03-13 Paul Eggert <eggert@twinsun.com>
33157 Merge changes from Bison.
33158 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
33159 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
33160 when compiling Bison 1.875's `bitset bset = obstack_alloc
33161 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
33162 * lib/hash.c: Include <stdbool.h> unconditionally.
33164 2003-03-13 Paul Eggert <eggert@twinsun.com>
33166 * m4/onceonly.m4 (m4_quote): New macro.
33167 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
33168 Quote AC_FOREACH variable-expansions properly.
33170 2003-03-13 Paul Eggert <eggert@twinsun.com>
33172 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
33174 2003-03-09 Paul Eggert <eggert@twinsun.com>
33176 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
33177 Reported by Bruce Becker; see:
33178 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
33180 2003-03-03 Paul Eggert <eggert@twinsun.com>
33181 Bruno Haible <bruno@clisp.org>
33183 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
33184 Reported by John Hughes, see
33185 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
33187 2003-02-20 Bruno Haible <bruno@clisp.org>
33189 * MODULES.html.sh (func_all_modules): Add poll.
33191 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
33193 * modules/poll: New file.
33195 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
33197 * lib/poll_.h: New file.
33198 * lib/poll.c: New file.
33200 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
33202 * m4/poll.m4: New file.
33204 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
33206 * modules/mathl: New file.
33208 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
33210 * lib/mathl.h: New file.
33211 * lib/acosl.c: New file.
33212 * lib/asinl.c: New file.
33213 * lib/atanl.c: New file.
33214 * lib/ceill.c: New file.
33215 * lib/cosl.c: New file.
33216 * lib/expl.c: New file.
33217 * lib/floorl.c: New file.
33218 * lib/frexpl.c: New file.
33219 * lib/ldexpl.c: New file.
33220 * lib/logl.c: New file.
33221 * lib/sincosl.c: New file.
33222 * lib/sinl.c: New file.
33223 * lib/sqrtl.c: New file.
33224 * lib/tanl.c: New file.
33225 * lib/trigl.c: New file.
33226 * lib/trigl.h: New file.
33228 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
33230 * m4/mathl.m4: New file.
33232 2003-02-18 Bruno Haible <bruno@clisp.org>
33234 * MODULES.html.sh (func_all_modules): Add mathl.
33236 2003-02-17 Bruno Haible <bruno@clisp.org>
33238 * modules/mkdtemp: New module.
33239 * MODULES.html.sh (func_all_modules): Add it.
33241 2003-02-17 Bruno Haible <bruno@clisp.org>
33243 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
33245 2003-02-17 Bruno Haible <bruno@clisp.org>
33247 * lib/mkdtemp.h: New file, from GNU gettext.
33248 * lib/mkdtemp.c: New file, from GNU gettext.
33250 2003-02-02 Jim Meyering <jim@meyering.net>
33252 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
33255 2003-01-31 Bruno Haible <bruno@clisp.org>
33257 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
33259 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
33261 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
33263 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
33266 2003-01-31 Bruno Haible <bruno@clisp.org>
33268 * lib/rename.c: #undef rename before defining rpl_rename.
33269 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
33271 2003-01-30 Bruno Haible <bruno@clisp.org>
33273 * modules/vasnprintf, modules/vasprintf: New modules.
33274 * MODULES.html.sh (func_all_modules): Add them.
33276 2003-01-30 Bruno Haible <bruno@clisp.org>
33278 * m4/signed.m4: New file, from GNU gettext.
33279 * m4/longdouble.m4: New file, from GNU gettext.
33280 * m4/wchar_t.m4: New file, from GNU gettext.
33281 * m4/wint_t.m4: New file, from GNU gettext.
33282 * m4/vasnprintf.m4: New file.
33283 * m4/vasprintf.m4: New file.
33285 2003-01-30 Bruno Haible <bruno@clisp.org>
33287 * lib/printf-args.h: New file, from GNU gettext.
33288 * lib/printf-args.c: New file, from GNU gettext.
33289 * lib/printf-parse.h: New file, from GNU gettext.
33290 * lib/printf-parse.c: New file, from GNU gettext.
33291 * lib/vasnprintf.h: New file, from GNU gettext.
33292 * lib/vasnprintf.c: New file, from GNU gettext.
33293 * lib/asnprintf.c: New file, from GNU gettext.
33294 * lib/vasprintf.h: New file, from GNU gettext with modifications.
33295 * lib/vasprintf.c: New file, from GNU gettext.
33296 * lib/asprintf.c: New file, from GNU gettext.
33298 2003-01-29 Bruno Haible <bruno@clisp.org>
33300 * modules/stpncpy: New module.
33301 * MODULES.html.sh (func_all_modules): Add it.
33303 2003-01-29 Bruno Haible <bruno@clisp.org>
33305 * m4/stpncpy.m4: New file.
33307 2003-01-29 Bruno Haible <bruno@clisp.org>
33309 * lib/stpncpy.h: New file, from GNU gettext with modifications.
33310 * lib/stpncpy.c: New file, from GNU gettext with modifications.
33312 2003-01-28 Bruno Haible <bruno@clisp.org>
33314 * modules/c-ctype: New module.
33315 * MODULES.html.sh (func_all_modules): Add it.
33317 2003-01-28 Bruno Haible <bruno@clisp.org>
33319 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
33321 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
33324 2003-01-27 Bruno Haible <bruno@clisp.org>
33326 * modules/xsetenv: New module.
33327 * MODULES.html.sh (func_all_modules): Add it.
33329 2003-01-27 Bruno Haible <bruno@clisp.org>
33331 * lib/xsetenv.h: New file, from GNU gettext.
33332 * lib/xsetenv.c: New file, from GNU gettext.
33334 2003-01-23 Jim Meyering <jim@meyering.net>
33336 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
33337 from working on systems without dirfd (at least Irix and OSF1/Tru64).
33339 2003-01-23 Bruno Haible <bruno@clisp.org>
33341 * modules/minmax: New module.
33342 * MODULES.html.sh (func_all_modules): Add it.
33344 2003-01-23 Bruno Haible <bruno@clisp.org>
33346 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
33349 2003-01-22 Bruno Haible <bruno@clisp.org>
33351 * modules/exit: New module.
33352 * MODULES.html.sh (func_all_modules): Add it.
33354 2003-01-22 Bruno Haible <bruno@clisp.org>
33356 * lib/exit.h: New file, from GNU gettext.
33358 2003-01-19 Bruno Haible <bruno@clisp.org>
33360 * gnulib-tool: Recognize option --extract-maintainer.
33361 (func_get_maintainer): New function.
33362 * modules/*: Add Maintainer entry.
33364 2003-01-16 Jim Meyering <jim@meyering.net>
33366 * m4/regex.m4: The `regex' struct is both input and output.
33367 Initialize it before each use. Patch by Tim Waugh.
33369 2003-01-16 Bruno Haible <bruno@clisp.org>
33371 * MODULES.html.sh: Add a table of contents. Add the module name as
33372 leftmost column. Add hyperlinks.
33374 2003-01-15 Bruno Haible <bruno@clisp.org>
33376 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
33378 2003-01-15 Bruno Haible <bruno@clisp.org>
33380 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
33381 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
33384 2003-01-15 Bruno Haible <bruno@clisp.org>
33386 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
33388 2003-01-15 Bruno Haible <bruno@clisp.org>
33390 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
33391 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
33393 2003-01-14 Jim Meyering <jim@meyering.net>
33395 * lib/same.c (same_name): Tweak a comment.
33397 2003-01-14 Bruno Haible <bruno@clisp.org>
33399 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
33400 when a string comparison is sufficient.
33402 2003-01-14 Bruno Haible <bruno@clisp.org>
33404 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
33407 2003-01-14 Bruno Haible <bruno@clisp.org>
33409 * lib/hash-pjw.c: Add comment about low quality of this function.
33411 2003-01-13 Bruno Haible <bruno@clisp.org>
33413 * modules/stpcpy: Distribute lib/stpcpy.h.
33414 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
33416 2003-01-13 Bruno Haible <bruno@clisp.org>
33418 * modules/*: Add a description.
33419 * modules/strpbrk: Fix Makefile.am snippet.
33420 * modules/strtoimax: Fix dependencies.
33421 * modules/strtoumax: Likewise.
33423 2003-01-13 Bruno Haible <bruno@clisp.org>
33425 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
33426 * modules/alloca (Makefile.am): All object files depend on alloca.h.
33427 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
33429 2003-01-13 Bruno Haible <bruno@clisp.org>
33431 * gnulib-tool (func_create_testdir): Store config/* files in the main
33433 * config.rpath: Move to ...
33434 * config/config.rpath: ... here.
33435 * modules/gettext: Contains config/config.rpath, not config.rpath.
33436 * modules/iconv: Likewise.
33438 2003-01-12 Paul Eggert <eggert@twinsun.com>
33440 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33441 to avoid collisions with libcurses and libreadline.
33443 * m4/getstr.m4: Remove.
33444 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
33446 2003-01-12 Paul Eggert <eggert@twinsun.com>
33448 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33449 to avoid collisions with libcurses and libreadline.
33451 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
33452 * lib/getstr.h, getstr.c: Remove.
33453 * lib/getline.c: Include "getline.h", to check interface.
33454 Move body of old getstr.c here: this defines MIN_CHUNK and
33455 declares getdelim2, which is renamed from getstr.
33456 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
33458 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
33460 * lib/linebuffer.h: Likewise.
33461 (readline): Remove backward-compatibility macro.
33463 2003-01-12 Paul Eggert <eggert@twinsun.com>
33465 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33466 to avoid collisions with libcurses and libreadline.
33468 * MODULES.html.sh: Remove getstr.
33469 * modules/getline: Depend on unlocked-io, not getstr.
33471 2003-01-12 Jim Meyering <jim@meyering.net>
33473 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
33475 2003-01-10 Bruno Haible <bruno@clisp.org>
33477 * modules/alloca: Change Makefile.am requirements. Simplify Include
33478 requirements. Add lib/alloca_.h to file list.
33480 2003-01-10 Bruno Haible <bruno@clisp.org>
33482 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
33484 2003-01-10 Bruno Haible <bruno@clisp.org>
33486 * lib/alloca_.h: New file.
33487 * lib/getdate.y: Unconditionally include alloca.h.
33488 * lib/makepath.c: Likewise.
33489 * lib/setenv.c: Likewise.
33490 * lib/userspec.c: Likewise.
33492 2003-01-09 Karl Berry <karl@gnu.org>
33494 * MODULES.html.sh: include `dirname $0` in PATH, to find
33497 2003-01-09 Bruno Haible <bruno@clisp.org>
33499 * modules/stdbool: Change configure.ac, Makefile.am requirements.
33500 Simplify Include requirements. Add lib/stdbool.h.in to file list.
33502 2003-01-09 Bruno Haible <bruno@clisp.org>
33504 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
33506 2003-01-09 Bruno Haible <bruno@clisp.org>
33508 * lib/stdbool.h.in: New file.
33510 2003-01-09 Bruno Haible <bruno@clisp.org>
33512 * gnulib-tool (func_all_modules): Ignore files ending in ~.
33513 * MODULES.html.sh: Likewise.
33515 2003-01-08 Jim Meyering <jim@meyering.net>
33517 * lib/full-write.c: Undefine and define-away `const' after inclusion
33518 of errno.h, not before. Suggestion from Bruno Haible.
33520 2003-01-08 Bruno Haible <bruno@clisp.org>
33522 * modules/full-read: Depend on full-write.
33524 2003-01-08 Bruno Haible <bruno@clisp.org>
33526 * lib/safe-read.c: Include specification header first, to ensure its
33528 * lib/full-write.c: Likewise.
33530 2003-01-07 Jim Meyering <jim@meyering.net>
33532 * lib/full-write.c: Rework so that it may serve to define full_read,
33534 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
33536 2003-01-07 Bruno Haible <bruno@clisp.org>
33538 * lib/strtoimax.c: Include <stdint.h> as an alternative to
33540 * lib/xstrtol.h: Likewise.
33541 * lib/xstrtoimax.c: Likewise.
33542 * lib/xstrtoumax.c: Likewise.
33543 * lib/human.h: Likewise.
33545 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
33546 on systems that have <inttypes.h> but not <stdint.h>.
33548 2003-01-07 Bruno Haible <bruno@clisp.org>
33550 * MODULES.html.sh: Add copyright notice.
33551 (missed_files): Omit CVS directory entries.
33552 (func_module): Make it work with sed-3.02.
33553 * MODULES.txt: Remove file.
33555 2003-01-06 Jim Meyering <jim@meyering.net>
33557 * lib/version-etc.c: Update year in translatable copyright string.
33559 2003-01-03 Karl Berry <karl@gnu.org>
33561 * config/config.{guess,sub}: update from prep.
33563 2003-01-02 Karl Berry <karl@gnu.org>
33565 * doc/COPYING.DOC: belatedly updated to 1.2.
33567 2003-01-01 Karl Berry <karl@gnu.org>
33569 * gnulib-tool (func_verify_module): report module name $module in
33570 error message, not $1.
33571 * gnulib-tool (create-testdir): don't complain if destdir couldn't
33572 be created, only if it doesn't exist.
33573 * gnulib-tool (last_checkin_date): don't expand the $Date here.
33575 2002-12-31 Paul Eggert <eggert@twinsun.com>
33577 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
33579 2002-12-31 Paul Eggert <eggert@twinsun.com>
33581 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
33582 memcmp if strcoll doesn't work.
33584 2002-12-31 Bruno Haible <bruno@clisp.org>
33586 * lib/utime.c (utime_null): No need to call ftruncate if the file was
33589 2002-12-31 Bruno Haible <bruno@clisp.org>
33591 * lib/memcoll.c (STRCOLL): New macro.
33594 2002-12-31 Bruno Haible <bruno@clisp.org>
33596 * lib/localcharset.h: New file.
33597 * lib/localcharset.c: Include it.
33598 * lib/unicodeio.c: Likewise.
33600 2002-12-31 Bruno Haible <bruno@clisp.org>
33602 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
33603 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
33605 2002-12-31 Bruno Haible <bruno@clisp.org>
33607 * lib/getline.h: Include <stddef.h>, for size_t.
33609 * lib/unicodeio.h: Include <stddef.h>, for size_t.
33610 * lib/unicodeio.c: Don't include <stddef.h>.
33612 2002-12-31 Bruno Haible <bruno@clisp.org>
33614 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
33617 2002-12-24 Karl Berry <karl@gnu.org>
33619 * config/config.guess: update from prep.
33621 2002-12-24 Bruno Haible <bruno@clisp.org>
33623 General infrasructure.
33624 * m4/README: Rewritten.
33625 * m4/onceonly.m4: New file.
33626 * m4/onceonly_2_57.m4: New file.
33629 * m4/atexit.m4: New file.
33632 * m4/strtod.m4: New file.
33635 * m4/strtol.m4: New file.
33638 * m4/strtoul.m4: New file.
33641 * m4/memchr.m4: New file.
33644 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
33645 (jm_FUNC_MEMCMP): Invoke it.
33648 * m4/memcpy.m4: New file.
33651 * m4/memmove.m4: New file.
33654 * m4/memset.m4: New file.
33657 * m4/strcspn.m4: New file.
33660 * m4/strpbrk.m4: New file.
33663 * m4/strstr.m4: New file.
33666 * m4/strerror.m4: New file.
33669 * m4/mktime.m4: Renamed from jm-mktime.m4.
33670 (gl_PREREQ_MKTIME): New macro.
33671 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
33674 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
33675 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
33676 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
33679 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
33680 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
33681 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
33684 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
33685 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
33686 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
33688 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
33691 * m4/xalloc.m4: New file.
33694 * m4/alloca.m4: New file.
33697 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
33698 (jm_FUNC_PUTENV): Invoke it.
33701 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
33702 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
33703 when invoked twice.
33704 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
33708 * m4/memrchr.m4: New file.
33711 * m4/stpcpy.m4: New file.
33714 * m4/strcase.m4: New file.
33717 * m4/strdup.m4: New file.
33720 * m4/strnlen.m4: New file.
33723 * m4/strndup.m4: New file.
33726 * m4/xstrtod.m4: New file.
33729 * m4/xstrtol.m4: New file.
33732 * m4/getdate.m4: New file.
33734 Module unlocked-io.
33735 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
33736 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
33737 * m4/jm-glibc-io.m4n: Remove file.
33739 Module long-options.
33740 * m4/long-options.m4: New file.
33743 * m4/md5.m4: New file.
33746 * m4/sha.m4: New file.
33749 * m4/getstr.m4: New file.
33752 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
33753 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
33754 <sys/types.h>, for size_t. Use the function name gnu_getline, not
33755 simply getline. Infoke gl_PREREQ_GETLINE.
33758 * m4/obstack.m4: New file.
33761 * m4/hash.m4: New file.
33764 * m4/readtokens.m4: New file.
33767 * m4/strverscmp.m4: New file.
33770 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
33774 * m4/strtoll.m4: New file.
33777 * m4/strtoull.m4: New file.
33780 * m4/strtoimax.m4: New file.
33783 * m4/strtoumax.m4: New file.
33786 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
33787 jm_AC_PREREQ_XSTRTOIMAX.
33788 Moved the strtol prerequisites to strtol.m4.
33789 Moved the strtoll prerequisites to strtoll.m4.
33790 Moved the strtoimax prerequisites to strtoimax.m4.
33793 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
33794 jm_AC_PREREQ_XSTRTOUMAX.
33795 Moved the strtoul prerequisites to strtoul.m4.
33796 Moved the strtoull prerequisites to strtoull.m4.
33797 Moved the strtoumax prerequisites to strtoumax.m4.
33800 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
33801 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
33804 * m4/dup2.m4: New file.
33807 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
33808 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
33811 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
33812 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
33814 Module gettimeofday.
33815 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
33816 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
33817 gl_PREREQ_GETTIMEOFDAY.
33820 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
33821 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
33824 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
33825 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
33826 jm_AC_TYPE_UINTMAX_T.
33827 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
33830 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
33831 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
33834 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
33835 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
33838 * m4/timespec.m4 (gl_TIMESPEC): New macro.
33839 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
33840 * m4/st_mtim.m4: Indentation.
33843 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
33844 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
33845 gl_PREREQ_NANOSLEEP.
33848 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
33849 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
33850 (gl_REGEX): New macro.
33853 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
33854 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
33857 * m4/rmdir.m4: New file.
33860 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
33861 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
33862 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
33865 * m4/dirname.m4: New file.
33868 * m4/getopt.m4: New file.
33870 Module unistd-safer.
33871 * m4/unistd-safer.m4: New file.
33874 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
33876 (gl_PREREQ_FNMATCH_EXTRA): New macro.
33877 (gl_FUNC_FNMATCH_POSIX): New macro.
33878 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
33879 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
33883 * m4/exclude.m4: New file.
33886 * m4/human.m4: New file.
33892 * m4/backupfile.m4: New file.
33893 * m4/d-ino.m4: Indentation.
33896 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
33897 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
33898 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
33901 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
33905 * m4/euidaccess.m4: New file.
33908 * m4/file-type.m4: New file.
33911 * m4/fileblocks.m4: New file.
33914 * m4/filemode.m4: New file.
33917 * m4/isdir.m4: New file.
33920 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
33921 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
33924 * m4/makepath.m4: New file.
33927 * m4/modechange.m4: New file.
33930 * m4/mountlist.m4: New file.
33931 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
33934 Module path-concat.
33935 * m4/path-concat.m4: New file.
33938 * m4/pathmax.m4: New file.
33941 * m4/same.m4: New file.
33944 * m4/save-cwd.m4: New file.
33947 * m4/savedir.m4: New file.
33950 * m4/xgetcwd.m4: New file.
33951 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
33954 * m4/xreadlink.m4: New file.
33957 * m4/safe-read.m4: New file.
33960 * m4/safe-write.m4: New file.
33963 * m4/closeout.m4: New file.
33965 Module stdio-safer.
33966 * m4/stdio-safer.m4: New file.
33969 * m4/getpass.m4: New file.
33972 * m4/getugroups.m4: New file.
33974 Module group-member.
33975 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
33976 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
33979 * m4/idcache.m4: New file.
33982 * m4/userspec.m4: New file.
33985 * m4/clock_time.m4: New file.
33986 * m4/gettime.m4: New file.
33989 * m4/settime.m4: New file.
33992 * m4/posixtm.m4: New file.
33994 Module gethostname.
33995 * m4/gethostname.m4: New file.
33998 * m4/canon-host.m4: New file.
34001 * m4/codeset.m4: New file, from gettext-0.11.5.
34002 * m4/gettext.m4: New file, from gettext-0.11.5.
34003 * m4/glibc21.m4: New file, from gettext-0.11.5.
34004 * m4/iconv.m4: New file, from gettext-0.11.5.
34005 * m4/intdiv0.m4: New file, from gettext-0.11.5.
34006 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
34007 * m4/inttypes.m4: New file, from gettext-0.11.5.
34008 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
34009 * m4/isc-posix.m4: New file, from gettext-0.11.5.
34010 * m4/lcmessage.m4: New file, from gettext-0.11.5.
34011 * m4/lib-ld.m4: New file, from gettext-0.11.5.
34012 * m4/lib-link.m4: New file, from gettext-0.11.5.
34013 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
34014 * m4/progtest.m4: New file, from gettext-0.11.5.
34015 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
34016 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
34017 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
34019 Module localcharset.
34020 * m4/localcharset.m4: New file.
34022 Module hard-locale.
34023 * m4/hard-locale.m4: New file.
34026 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
34028 * m4/mbrtowc.m4: Add comment.
34031 * m4/memcasecmp.m4: New file.
34034 * m4/memcoll.m4: New file.
34037 * m4/unicodeio.m4: New file.
34040 * m4/rpmatch.m4: New file.
34043 * m4/yesno.m4: New file.
34046 * m4/exitfail.m4: New file.
34049 * m4/c-stack.m4 (gl_C_STACK): New macro.
34050 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
34053 * m4/error.m4 (gl_ERROR): New macro.
34054 (jm_PREREQ_ERROR): Use onceonly macros.
34057 * m4/fatal.m4: New file.
34060 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
34061 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
34063 Module getpagesize.
34064 * m4/getpagesize.m4: New file.
34066 Module getusershell.
34067 * m4/getusershell.m4: New file.
34070 * m4/physmem.m4: New file.
34073 * m4/posixver.m4: New file.
34076 * m4/quotearg.m4: New file.
34079 * m4/quote.m4: New file.
34082 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
34085 * m4/sig2str.m4: New file.
34088 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
34090 * m4/intmax_t.m4: New file.
34091 * m4/d-type.m4: Indentation.
34092 * m4/jm-macros.m4: Update.
34093 * m4/prereq.m4 (jm_PREREQ): Update.
34094 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
34095 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
34096 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
34097 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
34098 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
34099 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
34100 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
34101 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
34102 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
34103 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
34104 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
34105 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
34106 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
34107 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
34108 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
34109 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
34110 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
34111 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
34112 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
34114 2002-12-24 Bruno Haible <bruno@clisp.org>
34116 * MODULES.txt: Update according to m4/ changes.
34119 * config.rpath: New file, from gettext-0.11.5.
34121 * modules/*: New module descriptions.
34122 * gnulib-tool: New file.
34123 * MODULES.html.sh: New file.
34125 2002-12-21 Karl Berry <karl@gnu.org>
34127 * doc/fdl.texi: update to version 1.2.
34129 2002-12-19 Karl Berry <karl@gnu.org>
34131 * config/config.guess: update from prep.
34133 2002-12-18 Bruno Haible <bruno@clisp.org>
34135 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
34136 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
34138 2002-12-17 Bruno Haible <bruno@clisp.org>
34140 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
34141 stdlib.h, string.h.
34143 2002-12-17 Bruno Haible <bruno@clisp.org>
34145 * lib/canon-host.c (strdup): Remove unused declaration.
34147 * lib/fsusage.c: Include full_read.h.
34148 (get_fs_usage): Use full_read instead of safe_read.
34150 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
34152 2002-12-12 Karl Berry <karl@gnu.org>
34154 * config/config.guess: update from prep.
34156 2002-12-11 Bruno Haible <bruno@clisp.org>
34158 * m4/setenv.m4: New file, from gettext-0.11.5.
34160 2002-12-11 Bruno Haible <bruno@clisp.org>
34162 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
34164 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
34167 2002-12-11 Bruno Haible <bruno@clisp.org>
34169 * setenv.c (alloca): Fall back to malloc.
34170 (freea): New macro.
34171 (setenv): Use freea() to free memory allocated with alloca().
34173 2002-11-13 Bruno Haible <bruno@clisp.org>
34175 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
34176 function declarations.
34177 * unsetenv.c (unsetenv): Likewise.
34179 2002-03-04 Bruno Haible <bruno@clisp.org>
34181 Portability to AIX 4.3.3.
34182 * unsetenv.c: New file, extracted from setenv.c.
34183 * setenv.c: Move the unsetenv() function to unsetenv.c.
34185 2001-12-20 Bruno Haible <bruno@clisp.org>
34187 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
34188 use malloc instead. For SunOS 4.
34190 2001-12-11 Bruno Haible <bruno@clisp.org>
34192 * setenv.c: Declare alloca.
34193 (compar_fn_t): New typedef.
34194 (KNOWN_VALUE, STORE_VALUE): Use it.
34196 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
34199 2002-12-10 Paul Eggert <eggert@twinsun.com>
34201 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
34202 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
34203 Choose values that are less likely to collide with system fnmatch
34205 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
34206 defined (e.g., a pure POSIX system).
34207 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
34208 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
34210 2002-12-06 Paul Eggert <eggert@twinsun.com>
34212 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
34213 a pain in practice to deal with generated m4 files. This change
34214 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
34216 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
34217 and jm-glibc-io.m4, as they are no longer a special case.
34218 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
34219 kludge and the auto-generation stuff. Check only whether the
34220 functions are declared, not whether they exist, since older hosts
34221 that don't declare the functions can't use the optimization anyway.
34223 2002-12-06 Jim Meyering <jim@meyering.net>
34225 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
34227 Merge in changes from libc's misc/error.c, in preparation
34228 for the merge of gnulib's changes back into libc.
34230 * lib/error.c (_): Define only if not already defined.
34231 Move definition to follow all #include directives.
34232 Include unlocked-io.h only if !_LIBC.
34233 [_LIBC]: Include <libio/libioP.h>.
34234 [USE_IN_LIBIO]: Include <libio/iolibio.h>
34235 (fflush): Tweak definition to use INTUSE.
34238 2002-12-05 Paul Eggert <eggert@twinsun.com>
34240 * lib/alloca.c [defined emacs]: Include "lisp.h".
34241 (xalloc_die) [defined emacs]: New macro.
34242 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
34243 [! defined emacs]: Include <xalloc.h>.
34244 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
34245 (pointer): Typedef to POINTER_TYPE *.
34246 (malloc): Remove decl; we now always use xmalloc.
34247 (alloca): Use old-style definition, since Emacs needs this.
34248 Check for arithmetic overflow when computing combined size.
34250 2002-12-04 Paul Eggert <eggert@twinsun.com>
34252 Do not generate unlocked-io.h automatically, since it's easier to
34253 maintain it by hand.
34255 * lib/unlocked-io.h: New file, from GNU diffutils,
34256 but with proper copyright notice and attribution.
34257 * lib/gen-uio: Remove.
34258 * lib/Makefile.am: Add copyright notice.
34259 (libfetish_a_SOURCES): Add unlocked-io.h.
34260 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
34261 (DISTCLEANFILES, io_functions): Remove macros.
34262 (EXTRA_DIST): Remove gen_uio.
34263 (unlocked-io.h): Remove rule.
34265 2002-12-04 Jim Meyering <jim@meyering.net>
34267 Reflect the fact that stat.c and lstat.c are no longer generated.
34268 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
34269 (DISTCLEANFILES): Likewise.
34270 (EXTRA_DIST): Likewise.
34271 (all_local): Don't depend on stat.c or lstat.c.
34272 (stat.c, lstat.c): Remove rules.
34273 (EXTRA_DIST): Remove xstat.in.
34275 * lib/xstat.in: Remove file. Contents moved into stat.c.
34276 * lib/stat.c: New file. Contents mostly from xstat.in.
34277 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
34278 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
34280 * lib/safe-read.c: Rework so that it may serve to define safe_write,
34282 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
34284 2002-12-03 Jim Meyering <jim@meyering.net>
34286 * lib/safe-read.c, safe-write.c: Change variable names and comments,
34287 but not semantics, to minimize the differences between these two files.
34288 (safe_read): Change comment to mention SAFE_READ_ERROR.
34290 * lib/safe-read.c (IS_EINTR): Define.
34291 (safe_read): Use IS_EINTR in place of in-function cpp directives.
34293 2002-12-02 Jim Meyering <jim@meyering.net>
34295 * lib/safe-read.c (EINTR): Define.
34296 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
34297 (INT_MAX): Provide fallback.
34298 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
34300 * lib/safe-read.h (SAFE_READ_ERROR): Define.
34302 2002-12-02 Bruno Haible <bruno@clisp.org>
34304 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
34305 Define, taken from safe-read.c.
34306 (INT_MAX): Provide fallback.
34307 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
34308 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
34310 * lib/safe-read.c (EINTR): Remove definition.
34311 (safe_read): Don't use EINTR if it is absent.
34313 2002-12-01 Jim Meyering <jim@meyering.net>
34315 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
34317 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
34319 2002-11-27 Paul Eggert <eggert@twinsun.com>
34321 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
34322 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
34323 with `if (! (value < limit)) abort ();', for readability.
34325 2002-11-26 Karl Berry <karl@gnu.org>
34327 * lib/strdup.c: copy from libc again, with jim's ok.
34328 * lib/.cppi-disable: re-add strdup.c
34330 2002-11-25 Karl Berry <karl@gnu.org>
34332 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
34333 instead of "strtol.c".
34335 2002-11-25 Karl Berry <karl@gnu.org>
34337 * config/install-sh: update from automake for variable quoting, $0 in
34340 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
34341 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
34344 2002-11-25 Jim Meyering <jim@meyering.net>
34346 * lib/mktime.c: Sync from libc, now that it has the latest fix.
34348 2002-11-24 Karl Berry <karl@gnu.org>
34350 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
34351 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
34353 2002-11-24 Jim Meyering <jim@meyering.net>
34355 Update from coreutils:
34357 * lib/mktime.c: Merge in changes from libc.
34359 Avoid a link-time failure on some Linux systems.
34360 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
34362 (__mon_yday): Declare with the STATIC attribute.
34363 (__mktime_internal): Likewise.
34364 Based on a report from Greg Schafer.
34366 2002-11-23 Jim Meyering <jim@meyering.net>
34368 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
34369 Use `unsigned', not `int', as type of index.
34371 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
34373 * lib/fsusage.c: Remove unneeded parentheses around operands of
34376 2002-11-22 Paul Eggert <eggert@twinsun.com>
34378 * lib/quotearg.h: Allow multiple inclusion by surrounding with
34379 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
34380 so that we can be included first.
34381 (PARAMS): Remove; we now assume C89 or later. All uses removed.
34382 * lib/quotearg.c: Include quotearg.h immediately after config.h.
34383 No need to include stddef.h or sys/types.h any more.
34384 Surround local include files with "", not "<>".
34385 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
34386 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
34387 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
34388 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
34389 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
34390 (ISPRINT): Remove; no longer needed now that we assume C89.
34392 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
34395 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
34396 quotearg_char): Use SIZE_MAX rather than
34397 (size_t) -1 when we are talking about "infinity".
34399 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
34401 2002-11-22 Paul Eggert <eggert@twinsun.com>
34403 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
34404 hint that one should use `if (! x) abort ();' rather than `assert
34405 (x);', and anyway it's one less thing to worry about configuring.
34406 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
34407 hash_rehash, hash_insert): Use abort rather than assert.
34409 2002-11-22 Bruno Haible <bruno@clisp.org>
34411 * lib/safe-read.h: Assume C89. Add comments.
34412 (safe_read): Change return type to size_t.
34413 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
34414 byte counts > SSIZE_MAX correctly.
34415 * lib/safe-write.h: New file.
34416 * lib/safe-write.c: New file.
34417 * lib/full-read.h: New file.
34418 * lib/full-read.c: New file.
34419 * lib/full-write.h: Assume C89. Add comments.
34420 * lib/full-write.c: Include safe-write.h.
34421 (full_write): Rewritten to use safe_write.
34422 Suggested by Jim Meyering and Paul Eggert.
34424 2002-11-21 Jim Meyering <jim@meyering.net>
34426 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
34428 Merge in changes from the coreutils.
34430 2002-09-25 Paul Eggert <eggert@twinsun.com>
34431 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
34433 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
34434 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
34435 int. Work more efficiently if X is the same width as uintmax_t.
34436 Do not compare X to -1, to avoid bogus compiler warning.
34437 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
34438 Don't assume that f_frsize and f_bsize are the same type.
34440 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
34441 warning on FreeBSD.
34443 * lib/makepath.c (make_path): Restore umask *before* creating the final
34445 (make_path): Minor reformatting.
34447 * lib/xmalloc.c: Adjust to work with new autoconf macros,
34448 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
34449 HAVE_MALLOC/HAVE_REALLOC.
34451 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
34452 dummy ones. At least on GNU/Linux systems, `auto' means something
34454 From Michael Stone.
34456 2002-11-21 Bruno Haible <bruno@clisp.org>
34458 Remove case insensitive option matching.
34459 * lib/argmatch.h (argcasematch): Remove declaration.
34460 (ARGCASEMATCH): Remove macro.
34461 (__xargmatch_internal): Remove case_sensitive argument.
34462 (XARGMATCH): Update.
34463 (XARGCASEMATCH): Remove macro.
34464 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
34465 case_sensitive argument.
34466 (argcasematch): Remove function.
34467 (__xargmatch_internal): Remove case_sensitive argument.
34468 (main): Use XARGMATCH instead of XARGCASEMATCH.
34470 * lib/xmalloc.c: Change compile-time error message. Add comment about
34471 required autoconf version.
34473 2002-11-20 Paul Eggert <eggert@twinsun.com>
34475 Merge argmatch cleanups from Bison. Assume C89.
34477 * lib/argmatch.c: Include config.h here, not in argmatch.h.
34478 Include stdlib.h, for EXIT_FAILURE.
34479 Always include <string.h>, since we assume C89.
34480 (EXIT_FAILURE): Remove pre-C89 bug workaround.
34481 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
34482 Include <stddef.h> instead, since it's all we need for size_t.
34483 (PARAMS): Remove. All uses removed.
34484 (ARRAY_CARDINALITY): Do not bother to #undef.
34485 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
34486 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
34487 Remove unnecessary parentheses.
34488 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
34489 Insert necessary parentheses.
34490 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
34491 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
34493 2002-11-19 Bruno Haible <bruno@clisp.org>
34495 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
34496 * lib/mbswidth.h: Include <stddef.h>, for size_t.
34498 * lib/mbswidth.h (PARAMS): Remove macro.
34499 (mbswidth, mbsnwidth): Use ANSI C function declarations.
34500 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
34502 * lib/gcd.h (PARAMS): Remove macro.
34503 (gcd): Use ANSI C function declarations.
34504 * lib/gcd.c (gcd): Likewise.
34506 2002-11-15 Bruno Haible <bruno@clisp.org>
34508 * lib/strcspn.c: Include <stddef.h>.
34509 (strcspn): Use ANSI C function declaration. Change return type to
34511 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
34512 (strpbrk): Use NULL.
34513 * lib/strpbrk.h (PARAMS): Remove macro.
34514 (strpbrk): Use ANSI C function declaration.
34515 * lib/strstr.c: Don't include <sys/types.h>.
34516 * lib/strstr.h (PARAMS): Remove macro.
34517 (strstr): Use ANSI C function declarations.
34519 2002-11-14 Karl Berry <karl@gnu.org>
34521 * config/mkinstalldirs: `do' on separate line, instead of
34524 2002-11-06 Bruno Haible <bruno@clisp.org>
34526 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
34527 * lib/gcd.c (gcd): Likewise.
34529 2002-11-05 Bruno Haible <bruno@clisp.org>
34531 * lib/gcd.h: New file, from gettext-0.11.5.
34532 * lib/gcd.c: New file, from gettext-0.11.5.
34534 2002-11-05 Bruno Haible <bruno@clisp.org>
34536 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34537 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34538 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34539 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34541 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
34543 * lib/makepath.c: Include gettext.h instead of <locale.h> and
34546 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
34547 * lib/human.c: Include gettext.h instead of <libintl.h>.
34548 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
34549 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
34550 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
34551 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
34552 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
34553 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
34554 (textdomain): Remove definition.
34555 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
34557 * lib/long-options.c: Remove include of <libintl.h> and definition of
34559 * lib/same.c: Remove include of <libintl.h> and definition of _.
34561 2002-11-04 Owen Taylor <otaylor@redhat.com>
34563 * lib/config.charset: A few additions for Solaris.
34565 2002-11-04 Bruno Haible <haible@clisp.cons.org>
34567 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
34568 * lib/localcharset.c (locale_charset): Declare as extern "C".
34570 2002-11-04 Bruno Haible <haible@clisp.cons.org>
34572 * lib/config.charset: msdos in uk_UA uses CP1125.
34574 2002-11-04 Bruno Haible <bruno@clisp.org>
34576 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
34577 * lib/strcase.h: New file, from GNU gettext-0.11.5.
34578 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
34579 * lib/strstr.h: New file, from GNU gettext-0.11.5.
34580 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
34582 2002-11-04 Bruno Haible <bruno@clisp.org>
34584 * lib/localcharset.c (locale_charset): Don't return an empty string.
34586 2002-11-04 Bruno Haible <bruno@clisp.org>
34588 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
34591 2002-11-04 Bruno Haible <bruno@clisp.org>
34593 * lib/config.charset: Update for newest glibc. Add canonical names
34594 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
34596 2002-11-04 Bruno Haible <bruno@clisp.org>
34598 * lib/config.charset: Add support for NetBSD.
34600 2002-11-04 Bruno Haible <bruno@clisp.org>
34602 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
34604 2002-11-01 Bruno Haible <bruno@clisp.org>
34606 * configure.in: Add AC_CONFIG_AUX_DIR call.
34607 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
34609 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
34611 2002-09-28 Karl Berry <karl@gnu.org>
34613 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
34614 installed automake until the next release, since changes have been
34617 2002-09-25 Karl Berry <karl@gnu.org>
34619 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
34620 * lib/getopt*: copy from libc/posix.
34621 * lib/gettext.h: copy from gettext.
34622 * lib/.cppi-disable: add strdup.c, gettext.h.
34624 2002-09-25 Karl Berry <karl@gnu.org>
34626 * config/srclist.txt: enable gettext.h check.
34627 * config/config.{guess,sub}: update from prep.
34628 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
34629 from automake 1.6.3.
34632 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
34634 * regex.c (PATFETCH): Remove the translating fetch.
34635 (PATFETCH_RAW): Rename to PATFETCH.
34636 (set_image_of_range): New fun.
34637 (SET_RANGE_TABLE_WORK_AREA): Use it.
34638 (regex_compile): Don't translate the pattern chars so eagerly.
34639 Only do it when inserting an `exactn' bytecode or when handling
34641 (mutually_exclusive_p): Avoid empty statement.
34643 2002-07-06 Jim Meyering <meyering@lucent.com>
34645 * m4/README: Don't mention Makefile.am.in.
34646 Outline how I've tested changes to .m4 files. Yep, it's a pain.
34648 2002-07-01 Jim Meyering <meyering@lucent.com>
34650 * lib/c-stack.c: Include sys/time.h.
34651 From Volker Borchert.
34653 2002-06-26 Paul Eggert <eggert@twinsun.com>
34655 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
34657 2002-06-26 Paul Eggert <eggert@twinsun.com>
34659 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
34660 New macro. Use it uniformly instead of
34661 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
34662 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
34663 reported by Vin Shelton.
34665 2002-06-22 Paul Eggert <eggert@twinsun.com>
34667 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
34668 Do not assume SA_SIGINFO behavior.
34669 Bug reported by Jim Meyering on NetBSD 1.5.2.
34671 2002-06-22 Jim Meyering <meyering@lucent.com>
34673 * m4/c-stack.m4: New file, from diffutils-2.8.2.
34674 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
34676 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
34677 now that configure.ac uses AC_GNU_SOURCE.
34678 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
34679 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
34681 Update to latest tools. Suggestions from Paul Eggert.
34682 * m4/stdbool.m4: New file, from diffutils-2.8.2.
34683 * m4/gnu-source.m4: Update from diffutils-2.8.2.
34684 * m4/fnmatch.m4: Likewise.
34685 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
34686 to AC_HEADER_STDBOOL
34688 2002-06-22 Jim Meyering <meyering@lucent.com>
34690 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
34691 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
34693 2002-06-22 Jim Meyering <meyering@lucent.com>
34695 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
34697 * lib/exitfail.c, exitfail.h: Likewise.
34698 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
34700 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
34702 (EXTRA_DIST): Add fnmatch_loop.c.
34703 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
34705 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
34706 * lib/fnmatch.c: Update from diffutils-2.8.2.
34707 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
34708 * lib/fnmatch.h: Remove file.
34710 2002-06-21 Jim Meyering <meyering@lucent.com>
34712 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
34713 * m4/mbrtowc.m4: Likewise.
34715 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
34716 * m4/mbswidth.m4: Reflect name change:
34717 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
34718 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
34720 * m4/lib-link.m4: Update from gettext-0.11.2.
34721 * m4/gettext.m4: Likewise.
34723 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
34724 From Alfred M. Szmidt.
34726 2002-06-18 Paul Eggert <eggert@twinsun.com>
34728 * lib/file-type.h: Report an error if neither S_ISREG nor
34729 S_IFREG is defined, instead of using a test specific to glibc
34730 2.2. This should be safe, since POSIX requires S_ISREG and
34731 Unix Version 7 had S_IFREG. We don't need to check for
34732 <sys/types.h> since we don't use any symbols that it defines.
34734 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
34736 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
34737 $@-t, so that each temporary file name is unique and valid in the first
34738 8 characters, for operation under DOS.
34740 2002-06-15 Paul Eggert <eggert@twinsun.com>
34742 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
34744 2002-06-15 Jim Meyering <meyering@lucent.com>
34746 Work even with DJGPP 2.03, which lacks support for symlinks.
34748 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
34750 * lib/lchown.c (S_ISLNK): Likewise.
34752 2002-06-15 Jim Meyering <meyering@lucent.com>
34754 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
34755 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
34756 have been included before this file.
34758 2002-06-14 Jim Meyering <meyering@lucent.com>
34760 * lib/file-type.h: Use the version from diffutils-2.8.2.
34761 * lib/file-type.c: Likewise.
34763 2002-06-07 Jim Meyering <meyering@lucent.com>
34765 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
34766 They're needed at least for NetBSD 1.5.2.
34767 ($statxfs_includes): Include those same headers.
34768 ($statxfs_includes): Include sys/vfs.h if available.
34769 ($statxfs_includes): Likewise for sys/statvfs.h.
34770 Check for the following members in both structs statfs and statvfs:
34771 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
34773 2002-06-01 Jim Meyering <meyering@lucent.com>
34775 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
34776 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
34778 2002-05-28 Jim Meyering <meyering@lucent.com>
34780 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
34781 Reported by Volker Borchert.
34783 2002-05-27 Jim Meyering <meyering@lucent.com>
34785 Fix a problem seen only on nonconforming systems whereby ls.c's
34786 use of localtime, and then of gettimeofday would cause trouble:
34787 the localtime call used to initialize rpl_gettimeofday's save
34788 mechanism would clobber ls's current local time information so
34789 that in any long listing the first file would always be listed
34790 with date 1970-01-01. Analysis by Volker Borchert.
34792 * lib/gettimeofday.c (localtime): Undefine.
34793 (rpl_localtime): New function.
34795 2002-05-27 Jim Meyering <meyering@lucent.com>
34797 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
34800 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
34801 use the replacement function; it wouldn't resolve at link time.
34802 Reported by Volker Borchert.
34804 2002-05-22 Jim Meyering <meyering@lucent.com>
34806 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
34808 * lib/file-type.h: New file.
34809 * lib/file-type.c (file_type): New file/function. Extracted from
34812 2002-04-30 Jim Meyering <meyering@lucent.com>
34814 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
34816 2002-04-29 Paul Eggert <eggert@twinsun.com>
34818 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
34820 2002-04-29 Paul Eggert <eggert@twinsun.com>
34822 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
34823 Do not check for alloca.h (no longer used) or stdbool.h (was never
34824 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
34826 2002-04-29 Paul Eggert <eggert@twinsun.com>
34828 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
34830 2002-04-29 Jim Meyering <meyering@lucent.com>
34832 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
34833 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
34834 Use AC_FUNC_STRNLEN here instead.
34836 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
34837 With autoconf-2.53a, it's part of AC_PROG_CC.
34839 2002-04-28 Paul Eggert <eggert@twinsun.com>
34841 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
34842 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
34844 2002-04-28 Paul Eggert <eggert@twinsun.com>
34846 * lib/sig2str.h, lib/sig2str.c: New files.
34847 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
34849 2002-04-28 Paul Eggert <eggert@twinsun.com>
34851 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
34852 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
34853 of 127, since 64 is the largest conceivable number for ancient
34855 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
34857 2002-04-28 Jim Meyering <meyering@lucent.com>
34859 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
34861 2002-04-24 Jim Meyering <meyering@lucent.com>
34863 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
34864 (jm_PREREQ): Use it.
34866 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
34867 mach/mach.h fcntl.h.
34868 Check for this function: setlocale.
34870 2002-04-24 Jim Meyering <meyering@lucent.com>
34872 * lib/gettext.h: New file, from Gettext.
34873 * lib/Makefile.am (INCLUDES): Remove -I../intl.
34874 (libfetish_a_SOURCES): Add gettext.h.
34876 2002-04-16 Jim Meyering <meyering@lucent.com>
34878 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
34879 ut_pid, ut_id, ut_exit.
34881 2002-04-16 Jim Meyering <meyering@lucent.com>
34883 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
34884 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
34885 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
34887 2002-04-12 Jim Meyering <meyering@lucent.com>
34889 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
34890 now-bogus check for f_type in sys/mount.h. Instead, just test for the
34891 existence of the getmntinfo function. Needed for Darwin 5.3.
34893 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
34894 This is necessary at least on Darwin 5.3.
34896 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
34897 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
34898 strnlen.o in the library, and that makes some versions of ranlib
34901 2002-04-12 Jim Meyering <meyering@lucent.com>
34903 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
34905 2002-04-09 Jim Meyering <meyering@lucent.com>
34907 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
34908 to be more precise. Rather than saying we're checking whether the
34909 function `works', say what we're testing.
34910 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
34911 Reported by Bruno Haible.
34913 2002-03-10 Jim Meyering <meyering@lucent.com>
34915 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
34916 Suggestion from Santiago Vila.
34918 2002-03-08 Jim Meyering <meyering@lucent.com>
34920 * lib/rename.c: Mention that this wrapper is needed also on
34921 mips-dec-ultrix4.4 systems.
34923 2002-03-02 Jim Meyering <meyering@lucent.com>
34925 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
34926 not HAVE_CLOCK_SETTIME.
34928 2002-02-27 Paul Eggert <eggert@twinsun.com>
34930 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
34931 Check for clock_settime.
34933 2002-02-27 Paul Eggert <eggert@twinsun.com>
34935 * lib/nanosleep.h: Rename to....
34936 * lib/timespec.h: New name for nanosleep.h. All uses changed.
34938 * lib/gettime.c: New file.
34939 * lib/settime.c: New file.
34940 * lib/stime.c: Remove.
34942 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
34943 timespec.h. Remove nanosleep.h.
34945 2002-02-25 Paul Eggert <eggert@twinsun.com>
34947 * m4/acl.m4: New file.
34948 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
34949 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
34951 2002-02-25 Paul Eggert <eggert@twinsun.com>
34953 * lib/acl.c, lib/acl.h: New files.
34954 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
34956 2002-02-24 Jim Meyering <meyering@lucent.com>
34958 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
34959 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
34960 cause trouble. Reported by Nelson Beebe.
34962 2002-02-23 Paul Eggert <eggert@twinsun.com>
34964 * lib/path-concat.c (xpath_concat): Reorder code to pacify
34965 compilers that don't know that xalloc_die never returns.
34967 2002-02-20 Jim Meyering <meyering@lucent.com>
34969 * lib/getdate.c: Regenerate using bison-1.33.
34971 2002-02-17 Jim Meyering <meyering@lucent.com>
34973 * config/config.guess (main): Don't use `head -1'; it's no longer
34974 portable. Use `sed 1q' instead.
34976 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
34978 * m4/codeset.m4: Upgrade to gettext-0.11.
34979 * m4/gettext.m4: Upgrade to gettext-0.11.
34980 * m4/glibc21.m4: Upgrade to gettext-0.11.
34981 * m4/iconv.m4: Upgrade to gettext-0.11.
34982 * m4/isc-posix.m4: Upgrade to gettext-0.11.
34983 * m4/lcmessage.m4: Upgrade to gettext-0.11.
34984 * m4/lib-ld.m4: New file, from gettext-0.11.
34985 * m4/lib-link.m4: New file, from gettext-0.11.
34986 * m4/lib-prefix.m4: New file, from gettext-0.11.
34987 * m4/progtest.m4: Upgrade to gettext-0.11.
34989 2002-02-15 Paul Eggert <eggert@twinsun.com>
34991 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
34992 (jm_PREREQ): Use it.
34994 2002-02-15 Paul Eggert <eggert@twinsun.com>
34996 * lib/posixver.c, lib/posixver.h: New files.
34997 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
34999 2002-02-02 Paul Eggert <eggert@twinsun.com>
35000 Bruno Haible <bruno@clisp.org>
35002 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
35003 (fwrite_success_callback): New declaration.
35004 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
35005 print_unicode_char. Call failure callback instead of error.
35006 (fwrite_success_callback): New function.
35007 (exit_failure_callback): New function.
35008 (fallback_failure_callback): New function.
35009 (print_unicode_char): Call unicode_to_mb.
35011 2002-01-26 Jim Meyering <meyering@lucent.com>
35013 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
35014 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
35016 2002-01-26 Jim Meyering <meyering@lucent.com>
35018 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
35020 2002-01-22 Paul Eggert <eggert@twinsun.com>
35022 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
35024 2002-01-22 Jim Meyering <meyering@lucent.com>
35026 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
35027 Otherwise, some versions of automake would omit the rule that makes
35028 Makefile from Makefile.in.
35030 2002-01-21 Paul Eggert <eggert@twinsun.com>
35032 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
35033 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
35034 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
35035 (memcoll): Set errno to zero if there is no error.
35037 * lib/quotearg.c (quotearg_buffer_restyled):
35038 Fix bug with quoting buffers containing NUL when backslashing escapes.
35039 This bug was exposed by the other changes in this patch.
35040 (quotearg_n_options): New arg ARGSIZE.
35041 All callers changed.
35042 (quoting_options_from_style): New function.
35043 (quotearg_n_style): Use it.
35044 (quotearg_n_style_mem): New function.
35046 * lib/quotearg.h (quotearg_n_style_mem): New function.
35048 2002-01-19 Jim Meyering <meyering@lucent.com>
35050 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
35051 Remove useless quotes: DF_PROG="df".
35052 * m4/strnlen.m4: New file.
35054 2002-01-16 Paul Eggert <eggert@twinsun.com>
35056 * lib/backupfile.c (ISDIGIT): Comment fix.
35057 * lib/getdate.y (ISDIGIT): Likewise.
35058 * lib/posixtm.c (ISDIGIT, year): Likewise.
35059 * lib/strverscmp.c (ISDIGIT): Likewise.
35060 * lib/userspec.c (ISDIGIT): Likewise.
35062 2002-01-16 Jim Meyering <meyering@lucent.com>
35064 * lib/getdate.y: Add three semicolons, each just before a closing
35065 brace. Bison (as of version 1.31) no longer papers over that mistake.
35067 2002-01-05 Jim Meyering <meyering@lucent.com>
35069 * lib/version-etc.c (version_etc_copyright): Update copyright year.
35071 2001-12-19 Paul Eggert <eggert@twinsun.com>
35073 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
35074 not silently exit merely because the output buffer happens to
35075 have nothing pending.
35077 2001-12-18 Paul Eggert <eggert@twinsun.com>
35079 See the big note in ../ChangeLog.
35080 * lib/human.c (suffixes): Prefer K to k for 1024.
35081 (generate_suffix_backwards): New function.
35082 (human_readable_inexact): Use it.
35083 * lib/xstrtol.c (__xstrtol): If there is no number but there
35084 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
35085 Accept 'K' as well as 'k'.
35087 2001-12-15 Jim Meyering <meyering@lucent.com>
35089 * lib/regex.h (__restrict_arr): Update from libc.
35091 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
35092 as `remote' if the name starts with `//'. Suggested by Michael Stone.
35095 2001-12-14 Jim Meyering <meyering@lucent.com>
35097 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
35098 Suggestion from Bruno Haible.
35100 2001-12-10 Jim Meyering <meyering@lucent.com>
35102 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
35103 xrealloc, Instead, include "xalloc.h".
35104 (initbuffer): Don't cast xmalloc return value to char*.
35105 (readline): Reword comment.
35106 Don't cast xrealloc return value to char*
35107 Return NULL, not 0.
35109 2001-12-09 Jim Meyering <meyering@lucent.com>
35111 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
35112 about `signed and unsigned type in conditional expression'.
35113 * lib/posixtm.c (posix_time_parse): Likewise.
35115 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
35117 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
35118 to avoid a pedantic warning.
35120 * lib/getstr.c: Don't include assert.h.
35121 (getstr): Remove warning-evoking assertions.
35122 Return -1 if offset parameter is out of bounds.
35123 Change the type of a local from int to size_t.
35125 * lib/strftime.c (my_strftime_localtime_r): Include this function
35126 definition in the `#if ! HAVE_TM_GMTOFF' block.
35128 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
35129 Include xalloc.h instead.
35131 2001-12-02 Jim Meyering <meyering@lucent.com>
35133 * lib/tempname.c: Don't declare getenv, thus reverting the change of
35134 2001-11-18. It's no longer necessary, now that stdlib.h is always
35137 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
35138 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
35140 2001-11-30 Akim Demaille <akim@epita.fr>
35142 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
35143 before being defined.
35145 2001-11-27 Paul Eggert <eggert@twinsun.com>
35147 * lib/quotearg.h (quotearg_n, quotearg_n_style):
35148 First arg is int, not unsigned.
35149 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
35150 (SIZE_MAX, UINT_MAX): New macros.
35151 (quotearg_n_options): Abort if N is negative.
35152 Avoid overflow check on hosts where size_t is 64 bits and int
35153 is 32 bits, as overflow is impossible there.
35154 Fix off-by-one typo that caused unnecessary reallocation.
35156 2001-11-27 Jim Meyering <meyering@lucent.com>
35158 * lib/tempname.c: Merge with version from libc.
35159 * lib/regex.c: Likewise.
35161 * lib/tempname.c: Include stdlib.h unconditionally. On some old
35162 systems for which STDC_HEADERS is 0, it was not included, resulting in
35163 a warning about an integer-to-pointer conversion problem with getenv.
35164 Reported by Volker Borchert.
35166 2001-11-26 Jim Meyering <meyering@lucent.com>
35168 * lib/gtod.h: Remove file.
35169 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
35170 * lib/gettimeofday.c: Don't include gtod.h.
35171 (GTOD_init): Remove function.
35172 (rpl_gettimeofday): Do its job here instead, rather than aborting.
35173 Suggestion from Volker Borchert.
35175 2001-11-23 Jim Meyering <meyering@lucent.com>
35177 * lib/hash.h (struct hash_table): Don't define here. Merely declare
35179 * lib/hash.c (struct hash_table): Define it here instead.
35181 2001-11-22 Jim Meyering <meyering@lucent.com>
35183 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
35185 2001-11-20 Jim Meyering <meyering@lucent.com>
35187 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
35188 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
35190 2001-11-19 Jim Meyering <meyering@lucent.com>
35192 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
35193 directory. Use "conftestXXXXXX" as the template.
35194 Suggestion from Paul Eggert.
35196 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
35197 immediately, so the test doesn't mistakenly hit the max-open-files
35200 2001-11-18 Paul Eggert <eggert@twinsun.com>
35202 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
35203 (TEMPORARIES): New macro.
35204 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
35205 removes an artificial limitation (e.g. HP-UX 10.20, where
35208 2001-11-18 Jim Meyering <meyering@lucent.com>
35210 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
35212 2001-11-18 Jim Meyering <meyering@lucent.com>
35214 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
35217 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
35218 files will be created before anything else.
35220 2001-11-17 Paul Eggert <eggert@twinsun.com>
35222 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
35223 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
35225 2001-11-17 Jim Meyering <meyering@lucent.com>
35227 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
35228 Prompted by a report from Bob Proulx.
35230 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
35231 Instead, require UTILS_FUNC_MKSTEMP.
35233 2001-11-17 Jim Meyering <meyering@lucent.com>
35235 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
35236 Now, that's done as part of AC_FUNC_STRTOD.
35238 2001-11-17 Jim Meyering <meyering@lucent.com>
35240 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
35241 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
35242 rather than group writable. Patch by Juan F. Codagnone.
35244 * lib/readtokens.c: Remove explicit declarations of xmalloc and
35245 xrealloc, Instead, include "xalloc.h".
35247 * lib/mountlist.c: Include unlocked-io.h after all system headers.
35248 Remove explicit declarations of xmalloc, xrealloc,
35249 and xstrdup. Instead, include "xalloc.h".
35251 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
35253 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
35255 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
35257 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
35258 Reported by Padraig Brady.
35260 * lib/mkstemp.c: #undef mkstemp.
35262 (rpl_mkstemp): Rename from mkstemp.
35265 2001-11-16 Jim Meyering <meyering@lucent.com>
35267 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
35268 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
35269 determine the amount of total physical memory, use pstat_getstatic.
35270 HPUX-11 doesn't define _SC_PHYS_PAGES.
35271 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
35272 If sysconf couldn't be used to determine the amount of available
35273 physical memory, use both pstat_getstatic and pstat_getdynamic.
35274 Based on a patch from Bob Proulx.
35276 2001-11-10 Jim Meyering <meyering@lucent.com>
35278 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
35279 (jm_PREREQ): Use it.
35281 2001-11-09 Jim Meyering <meyering@lucent.com>
35283 * m4/jm-macros.m4: Require autoconf-2.52f.
35284 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
35285 Use these AC_-prefixed names, not the AM_-prefixed ones.
35287 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
35289 2001-11-05 Jim Meyering <meyering@lucent.com>
35291 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
35293 2001-11-04 Jim Meyering <meyering@lucent.com>
35295 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
35298 2001-11-03 Jim Meyering <meyering@lucent.com>
35300 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
35303 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
35304 know the name of the variable in the macro definition.
35306 2001-11-03 Jim Meyering <meyering@lucent.com>
35308 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
35309 in argmatch_to_argument call.
35311 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
35314 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
35315 e.g., a fault due to an attempt to free a NULL pointer.
35317 2001-11-01 Jim Meyering <meyering@lucent.com>
35319 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
35320 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
35322 2001-11-01 Jim Meyering <meyering@lucent.com>
35324 * lib/dirfd.c, lib/dirfd.h: New files.
35325 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
35327 * lib/hash.c (hash_print) [TESTING]: Clean up.
35329 2001-10-22 Paul Eggert <eggert@twinsun.com>
35331 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
35332 to avoid a warning if -Wall.
35334 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
35337 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
35338 (per RMS's instructions, this is now the canonical source)
35339 * lgpl/, gpl/: New directories.
35341 2001-10-21 Paul Eggert <eggert@twinsun.com>
35343 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
35345 2001-10-21 Jim Meyering <meyering@lucent.com>
35347 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
35348 this code would end up calling gettext even in packages built
35349 with --disable-nls.
35350 * lib/getopt.c (_): Likewise.
35351 * lib/regex.c (_): Likewise.
35353 2001-10-20 Paul Eggert <eggert@twinsun.com>
35355 * m4/error.m4 (jm_PREREQ_ERROR):
35356 Do not invoke AC_CHECK_FUNCS with strerror_r, as
35357 AC_FUNC_STRERROR_R does that.
35358 Check for strerror declaration.
35360 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
35361 are supposed to have them these days.
35362 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
35363 Merge changes from latest Autoconf CVS.
35364 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
35365 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
35366 POSIX decided to standardize on the int flavor of strerror_r.
35368 2001-10-20 Paul Eggert <eggert@twinsun.com>
35370 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
35371 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
35372 Use strerror_r that is only a macro, even if it is not a function.
35373 (strerror): Check for HAVE_DECL_STRERROR before declaring.
35374 (private_strerror): Use prototypes, not old-style function definition.
35375 (print_errno_message): New function.
35376 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
35377 char*-flavored one.
35378 (error_tail, error, error_at_line): Use it.
35380 2001-10-11 Jim Meyering <meyering@lucent.com>
35382 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
35383 and quote_n (1, ... to avoid clobbering a buffer.
35385 2001-10-05 Jim Meyering <meyering@lucent.com>
35387 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
35389 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
35390 * lib/hash-pjw.h: New file.
35392 2001-09-30 Jim Meyering <meyering@lucent.com>
35394 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
35395 `struct fsstat' has the `f_fstypename' member.
35396 Use that to define FS_TYPE, which is now used to make
35397 the getfsstat link test tighter.
35399 2001-09-30 Jim Meyering <meyering@lucent.com>
35401 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
35402 Include <sys/ucred.h>, for Apple Darwin.
35403 Include sys/mount.h and sys/fs_types.h only if available.
35405 (read_filesystem_list): Use FS_TYPE.
35407 2001-09-29 Paul Eggert <eggert@twinsun.com>
35409 * lib/exclude.c (excluded_filename): 0 -> false, since it's
35412 2001-09-29 Jim Meyering <meyering@lucent.com>
35414 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
35415 [one-argument getmntent function]): Include stdio.h before mntent.h.
35416 SunOS 4.1.x needs it for the declaration of `FILE'.
35417 Patch by Volker Borchert.
35419 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
35420 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
35421 sys/fs_types.h, and make the link-test for getfsstat guard #include
35422 directives with appropriate #if HAVE_*_H tests so that we can
35423 detect getfsstat on Apple Darwin1.3.7 systems.
35424 Reported by Nelson Beebe.
35425 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
35427 2001-09-28 Paul Eggert <eggert@twinsun.com>
35429 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
35430 #defines strtoimax. Also treat the other strto* functions
35433 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
35434 Check for strtoul and strtoumax,
35435 as those declarations are made even in the signed case.
35436 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
35437 Likewise, for strtol and strtoimax.
35439 2001-09-28 Paul Eggert <eggert@twinsun.com>
35441 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
35442 #defines strtoimax. Also treat the other strto* functions
35445 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
35446 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
35447 (strtoimax, strtoumax): Do not declare if already defined as a macro.
35449 2001-09-26 Jim Meyering <meyering@lucent.com>
35451 Most macros in unlocked-io.h had the wrong number of arguments.
35452 * lib/gen-uio: New script.
35453 (USE_UNLOCKED_IO): Define to 1 if not already defined.
35454 * lib/unlocked-io.hin: Remove file.
35455 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
35456 rather than trying to embed it here.
35457 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
35458 Reported by Padraig Brady.
35460 2001-09-25 Volker Borchert <bt@teknon.de>
35462 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
35465 2001-09-24 Jim Meyering <meyering@lucent.com>
35467 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
35469 2001-09-23 Jim Meyering <meyering@lucent.com>
35471 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
35472 instead of the mere test for existence of mntent.h. The latter
35473 would get a false-positive on AIX 3.4 systems.
35474 In the outer getmntent if-block, don't die if neither of the getmntent
35475 tests succeeds. Instead, just fall through and continue with the
35478 2001-09-23 Jim Meyering <meyering@lucent.com>
35480 * lib/mountlist.c: Remove useless parentheses in #if directives.
35481 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
35482 the deprecated MOUNTED symbol is no longer defined in mntent.h.
35484 2001-09-22 Jim Meyering <meyering@lucent.com>
35486 * m4/gettext.m4: New file. From gettext.
35487 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
35488 * m4/progtest.m4: Likewise
35489 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
35490 * m4/glibc21.m4: Likewise.
35492 * m4/libintl.m4: Remove. No longer used.
35494 2001-09-22 Jim Meyering <meyering@lucent.com>
35496 * lib/localcharset.c: Update from latest gettext.
35497 * lib/config.charset: Likewise.
35499 2001-09-20 Jim Meyering <meyering@lucent.com>
35501 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
35503 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
35506 2001-09-20 Jim Meyering <meyering@lucent.com>
35508 * lib/xstrtol.c (strtoimax): Guard declaration with
35509 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
35510 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
35511 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
35512 (strtoumax): Likewise, for completeness (it wasn't necessary).
35514 2001-09-17 Paul Eggert <eggert@twinsun.com>
35516 * lib/strtoimax.c (HAVE_LONG_LONG):
35517 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
35518 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
35519 to work around bug in IBM C compiler.
35521 2001-09-17 Jim Meyering <meyering@lucent.com>
35523 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
35524 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
35525 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
35526 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
35527 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
35528 whenever the right hand side need not be expanded by the shell.
35530 2001-09-16 Paul Eggert <eggert@twinsun.com>
35532 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
35533 library. It's not correct, as some older glibcs are buggy.
35534 fnmatch wasn't fixed until glibc 2.2.
35536 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
35537 special shell magic here.
35539 2001-09-16 Jim Meyering <meyering@lucent.com>
35541 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
35542 * m4/jm-macros.m4: Require it.
35544 2001-09-16 Jim Meyering <meyering@lucent.com>
35546 * lib/mkdir.c: New file.
35548 2001-09-15 Jim Meyering <meyering@lucent.com>
35550 * m4/jm-macros.m4: Check for help2man.
35552 2001-09-11 Jim Meyering <meyering@lucent.com>
35554 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
35555 The body, by Paul Eggert, was moved here from configure.in.
35556 * m4/jm-macros.m4: Require UTILS_HOST_OS.
35558 2001-09-04 Paul Eggert <eggert@twinsun.com>
35560 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
35561 (jm_PREREQ): Use it.
35563 2001-09-04 Paul Eggert <eggert@twinsun.com>
35565 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
35566 Use ssize_t, not int, to store result of readlink.
35567 Check for ssize_t overflow as well as size_t overflow,
35568 as POSIX says the result of readlink is implementation-defined
35569 when ssize_t overflows.
35570 Remove unnecessary cast to char*.
35571 Use free+malloc instead of realloc, as the storage doesn't need
35572 to be preserved and it's clearer and can be more efficient that way.
35573 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
35574 * lib/xreadlink.h (xreadlink): Update prototype.
35576 2001-09-04 Paul Eggert <eggert@twinsun.com>
35578 * lib/xgetcwd.c: Revert some of the previous change; intead,
35579 fix the HAVE_GETCWD_NULL code to behave more like the
35580 !HAVE_GETCWD_NULL code used to.
35582 Include "xalloc.h".
35583 (xgetcwd): Do not return NULL when memory is exhausted; instead,
35586 2001-09-03 Paul Eggert <eggert@twinsun.com>
35588 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
35589 sys/param.h, as pathmax.h includes them.
35591 2001-09-03 Paul Eggert <eggert@twinsun.com>
35593 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
35594 (jm_PREREQ_XGETCWD): New macro.
35596 * m4/getcwd.m4: New file.
35598 2001-09-03 Paul Eggert <eggert@twinsun.com>
35600 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
35601 like the HAVE_GETCWD_NULL code.
35602 Include pathmax.h if not HAVE_GETCWD.
35603 Do not include xalloc.h.
35604 (INITIAL_BUFFER_SIZE): New symbol.
35605 Do not use xmalloc / xrealloc, since the caller is responsible for
35606 handling errors. Preserve errno around `free' during failure.
35607 Do not overrun buffer when using getwd.
35609 2001-09-03 Paul Eggert <eggert@twinsun.com>
35611 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
35612 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
35615 2001-09-03 Paul Eggert <eggert@twinsun.com>
35617 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
35618 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
35619 spotted by Jim Meyering.
35621 2001-09-03 Jim Meyering <meyering@lucent.com>
35623 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
35626 2001-09-02 Jim Meyering <meyering@lucent.com>
35628 * lib/error.c: Update from GNU libc.
35630 2001-09-01 Jim Meyering <meyering@lucent.com>
35632 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
35635 2001-09-01 Jim Meyering <meyering@lucent.com>
35637 * lib/xreadlink.c: New file.
35638 * lib/xreadlink.h: New file.
35639 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
35642 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
35643 doesn't conflict with sparc Solaris 7's definition in
35644 /usr/include/sys/int_types.h.
35646 * lib/exclude.c: Use `""', not `<>' to #include non-system header
35648 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
35649 and strncasecmp as r-values. Unixware didn't have declarations.
35651 2001-08-31 Paul Eggert <eggert@twinsun.com>
35653 * lib/xstrtol.h: Add copyright notice.
35654 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
35655 LONGINT_INVALID_SUFFIX_CHAR.
35657 2001-08-31 Paul Eggert <eggert@twinsun.com>
35659 * lib/xstrtol.c (strtoimax): New decl.
35661 2001-08-31 Paul Eggert <eggert@twinsun.com>
35663 * lib/xgetcwd.c: Don't include pathmax.h.
35664 Include stdlib.h and unistd.h if available.
35666 (xmalloc, xstrdup, free): Remove decls.
35667 (xgetcwd): Don't assume sizes fit in unsigned.
35668 Check for overflow when computing sizes.
35669 Simplify reallocation code.
35671 2001-08-31 Paul Eggert <eggert@twinsun.com>
35673 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
35674 a directory's st_size can have an arbitrary value, so the old
35675 usage could waste an arbitrary amount of memory. All uses
35677 * lib/savedir.h: Update prototype.
35679 2001-08-31 Paul Eggert <eggert@twinsun.com>
35681 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
35683 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
35686 Also, make the following further changes to make this file's
35687 configuration more similar to that of strtol.c:
35688 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
35689 (strtoumax, uintmax_t, strtoull, strtol): Remove.
35690 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
35691 (strtoimax): Renamed from strtoumax. All uses of unsigned values
35692 changed to signed values.
35694 And make the following changes as well:
35695 Fix copyright notice, as 1999 was missing.
35696 (verify): New macro.
35697 (strtoimax): Check sizes at compile-time, not run-time.
35698 Prefer strtol to strtoll if both work.
35699 (main): Remove; it was not that useful and was a pain to maintain.
35701 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
35703 2001-08-31 Jim Meyering <meyering@lucent.com>
35705 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
35706 Use an initial, malloc'd, buffer of length 128 rather than
35707 a statically allocated one of length 1024.
35709 2001-08-30 Paul Eggert <eggert@twinsun.com>
35711 Simplify code, partly by assuming autoconf 2.52 semantics.
35713 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
35715 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
35716 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
35718 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
35719 Move AC_REQUIRE to next-to-top level, to avoid confusion.
35720 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
35721 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
35722 jm_AC_HEADER_INTTYPES_H.
35723 * m4/jm-macros.m4 (jm_MACROS): Likewise.
35725 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
35727 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
35728 Quote first arg of AC_DEFUN.
35729 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
35730 since they are needed to parse the include file even if we need
35731 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
35732 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
35733 but with opposite signedness.
35735 2001-08-30 Paul Eggert <eggert@twinsun.com>
35737 Merge 'exclude' changes from tar 1.13.22.
35738 This fixes one or two unlikely storage allocation overflow bugs,
35739 but doesn't change user-visible behavior otherwise.
35741 2001-08-30 Paul Eggert <eggert@twinsun.com>
35743 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
35744 (jm_PREREQ_EXCLUDE): New macro.
35746 2001-08-30 Paul Eggert <eggert@twinsun.com>
35748 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
35751 2001-08-30 Paul Eggert <eggert@twinsun.com>
35753 * lib/hash.c: Remove '2001' from copyright notice.
35755 2001-08-30 Paul Eggert <eggert@twinsun.com>
35757 * lib/full-write.h: New file.
35758 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
35759 * lib/full-write.c: Correct credits, as cccp.c no longer
35760 exists and anyway it was so heavily changed from the old cccp
35761 code as to be unrecognizable. Include full-write.h.
35762 (full_write) Return size_t, with short writes meaning failure.
35763 All callers changed. This fixes a bug with large buffers
35765 * lib/utime.c: Include full-write.h.
35767 2001-08-30 Paul Eggert <eggert@twinsun.com>
35769 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
35770 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
35771 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
35772 Include if available.
35773 (<xalloc.h>): Include
35774 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
35775 (verify): New macro. Use it to verify that EXCLUDE macros do not
35776 collide with FNM macros.
35777 (struct patopts): New struct.
35778 (struct exclude): Use it, as exclude patterns now come with options.
35779 (new_exclude): Support above changes.
35780 (new_exclude, add_exclude_file):
35781 Initial size must now be a power of two to simplify overflow checking.
35782 (free_exclude, fnmatch_no_wildcards): New function.
35783 (excluded_filename): No longer requires options arg, as the options
35784 are determined by add_exclude. Now returns bool, not int.
35785 (excluded_filename, add_exclude):
35786 Add support for the fancy new exclusion options.
35787 (add_exclude, add_exclude_file): Now takes int options arg.
35788 Check for arithmetic overflow when computing sizes.
35789 (add_exclude_file): xrealloc might modify errno, so don't
35790 realloc until after errno might be used.
35792 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
35794 (free_exclude): New decl.
35795 (add_exclude, add_exclude_file): Now takes int options arg.
35796 (excluded_filename): No longer requires options arg, as the options
35797 are determined by add_exclude. Now returns bool, not int.
35799 2001-08-30 Paul Eggert <eggert@twinsun.com>
35801 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
35803 2001-08-27 Jim Meyering <meyering@lucent.com>
35805 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
35807 * lib/version-etc.c (N_): Remove definition.
35808 Revert most of last change.
35809 Instead, simply don't mark the `Copyright...' string for translation.
35810 Based on advice from Paul Eggert.
35812 * lib/strtoxmax.c: Tweak comment.
35814 2001-08-26 Jim Meyering <meyering@lucent.com>
35816 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
35818 * m4/xstrtoimax.m4: New file.
35819 * m4/xstrtoumax.m4: Add comments explaining why we
35820 AC_REPLACE_FUNCS(strtol).
35822 2001-08-26 Jim Meyering <meyering@lucent.com>
35824 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
35825 of copyright with `%s' so translators don't get an untranslated
35827 (COPYRIGHT_YEAR): Define.
35828 (version_etc): Use fprintf rather than fputs.
35829 Suggestion from Ulrich Drepper.
35831 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
35833 * lib/strtoll.c: New file, from GNU libc.
35834 * lib/xstrtoimax.c: New file.
35836 * lib/xstrtol.h: Add xstrtoimax.
35837 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
35838 * lib/strtoimax.c: New file. Likewise, but first define
35841 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
35843 * lib/strtoxmax.c: ... then renamed to this.
35845 2001-08-18 Paul Eggert <eggert@twinsun.com>
35847 * m4/inttypes.m4: Add AC_PREREQ(2.13).
35848 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
35849 (jm_AC_TYPE_INTMAX_T): New macro.
35850 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
35852 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
35854 * m4/longlong.m4: Renamed from ulonglong.m4.
35855 * m4/inttypes.m4: Renamed from inttypes_h.m4.
35856 * m4/uintmax_t.m4: Removed.
35858 2001-08-13 Paul Eggert <eggert@twinsun.com>
35860 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
35861 Port to Solaris 8, where 'sed' requires a space after the 'r'
35862 command, and where sh dislikes "$/". Clean up the spacing a bit.
35863 Redirect output to $tmp just once.
35865 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
35867 * lib/addext.c (<errno.h>): Include.
35868 (errno): Declare if not defined.
35869 (addext): Work correctly when pathconf returns -1 and leaves
35870 errno alone because there is no limit. Also, work even if
35871 pathconf returns a value greater than SIZE_MAX.
35873 2001-08-12 Jim Meyering <meyering@lucent.com>
35875 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
35876 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
35877 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
35878 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
35879 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
35880 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
35881 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
35882 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
35883 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
35884 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
35885 utime.m4, utimes.m4, xstrtoumax.m4:
35886 Quote the first argument in each use of AC_DEFUN.
35888 2001-08-12 Jim Meyering <meyering@lucent.com>
35890 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
35891 Simply `return getcwd (NULL, 0);'.
35892 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
35893 Use 1300 as initial value for length, not PATH_MAX.
35895 * lib/pathmax.h: Clean up cpp syntax.
35897 2001-08-12 Jim Meyering <meyering@lucent.com>
35899 * lib/gettimeofday.c: New file.
35900 * lib/gtod.h: New file.
35901 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
35903 2001-08-05 Jim Meyering <meyering@lucent.com>
35905 * m4/jm-macros.m4: Require autoconf-2.52.
35907 2001-08-04 Jim Meyering <meyering@lucent.com>
35909 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
35910 stmt, to get in sync with glibc.
35912 2001-08-03 Paul Eggert <eggert@twinsun.com>
35914 The following changes are from gettext 0.10.39 as maintained by
35917 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
35918 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
35919 with inverted sense. All uses changed.
35921 * lib/mbswidth.c: Don't include <limits.h>.
35922 Include <stdlib.h> and <string.h> unconditionally.
35923 (iswcntrl, mbsinit, ISCNTRL): New macros.
35924 (mbsnwidth): Use K&R style function declarations.
35925 Don't bother checking for MB_LEN_MAX == 1, since the compiler
35926 can optimize it when MB_CUR_MAX == 1.
35927 The width of control characters is zero, not 1.
35929 2001-08-03 Paul Eggert <eggert@twinsun.com>
35931 The following changes are from gettext 0.10.39 as maintained by
35932 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
35934 * m4/codeset.m4: Upgrade to serial AM1.
35935 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
35936 all uses changed. Quote first arg of AC_DEFUN.
35937 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
35939 * m4/iconv.m4: Upgrade to serial AM2.
35940 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
35941 Add --with-libconv-prefix.
35942 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
35943 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
35944 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
35945 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
35946 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
35948 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
35949 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
35950 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
35951 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
35952 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
35953 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
35954 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35955 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
35956 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
35958 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
35961 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
35962 not the default value.
35964 2001-06-25 Bruno Haible <haible@clisp.cons.org>
35965 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
35966 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
35967 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
35968 Also check for iswcntrl, used for wcwidth fallback.
35969 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
35972 2001-08-03 Jim Meyering <meyering@lucent.com>
35974 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
35975 as it was in the original. Reported by Paul Eggert.
35977 2001-07-16 Jim Meyering <meyering@lucent.com>
35979 * m4/gettimeofday.m4: New file.
35980 Prompted by a report from Bernhard Baehr.
35982 2001-07-15 Jim Meyering <meyering@lucent.com>
35984 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
35985 stuff. Now it's in ../Makefile.cfg.
35987 2001-07-15 Jim Meyering <meyering@lucent.com>
35989 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
35990 (BUILT_SOURCES): Add unlocked-io.h.
35991 (io_functions): Define.
35992 (unlocked-io.h): New rule.
35993 (DISTCLEANFILES): Add unlocked-io.h.
35994 (all-local): Depend on unlocked-io.h, to ensure it is created.
35996 * lib/unlocked-io.hin: New file
35998 * lib/regex.c: Update from glibc.
36000 2001-07-05 Jim Meyering <meyering@lucent.com>
36002 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
36004 (libfetish_a_SOURCES): Put all .h files here instead.
36005 Remove a thus-exposed (better checks in automake) duplicate and
36006 two unnecessary .h files.
36008 2001-07-04 Jim Meyering <meyering@lucent.com>
36010 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
36011 that generates jm-glibc-io.m4 so that it doesn't trigger any make
36014 2001-07-02 Jim Meyering <meyering@lucent.com>
36016 The following changes were prompted by suggestions from Bruno Haible.
36018 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
36020 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
36021 definition of EXTRA_DIST.
36022 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
36023 ensure that the generated file is created/updated whenever the list
36024 of $(unlocked_functions) is changed.
36025 (jm-glibc-io.m4): New rule.
36026 (unlocked-io.h): New rule -- currently unused.
36028 2001-06-24 Jim Meyering <meyering@lucent.com>
36030 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
36031 unmatched right bracket, rather than kludging it with an extra,
36032 falsely-matching quote in a comment. Patch by Akim Demaille.
36034 2001-06-11 Jim Meyering <meyering@lucent.com>
36036 * lib/regex.c: Update from GNU libc.
36038 2001-05-27 Jim Meyering <meyering@lucent.com>
36040 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
36041 Check for ut_type in struct utmp.
36043 2001-05-27 Jim Meyering <meyering@lucent.com>
36045 * lib/readutmp.h (UT_TYPE): Define.
36047 2001-05-24 Jim Meyering <meyering@lucent.com>
36049 * lib/argmatch.c: Include "quote.h".
36050 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
36051 quote function. Reported by Göran Uddeborg.
36053 2001-05-22 Jim Meyering <meyering@lucent.com>
36055 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
36056 now that we use the package-supplied version unconditionally.
36057 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
36059 2001-05-21 Jim Meyering <meyering@lucent.com>
36061 * m4/regex.m4: Change a couple backticks to single quotes to avoid
36062 shell syntax errors.
36064 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
36066 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
36068 2001-05-20 Paul Eggert <eggert@twinsun.com>
36070 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
36071 Don't bother to check library strftime, since
36072 we'll be using our own my_strftime function anyway.
36073 Define my_strftime instead of strftime.
36075 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
36077 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
36078 which is not yet declared.
36080 2001-05-15 Jim Meyering <meyering@lucent.com>
36082 * m4/regex.m4: Use proper quoting so brackets appear in the test
36084 Reported by, and with help from, Bruno Haible.
36086 2001-05-13 Jim Meyering <meyering@lucent.com>
36088 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
36091 2001-05-11 Paul Eggert <eggert@twinsun.com>
36093 dirname code cleanup. base_name now behaves more compatibly
36094 with POSIX basename when given file names that have trailing
36095 slashes, and similarly for dir_name. Add new primitives
36096 base_len and dir_len. Put the directory-name-related decls
36099 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
36100 * lib/backupfile.c (base_name): Likewise.
36101 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
36102 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
36103 * lib/makepath.c (strip_trailing_slashes): Likewise.
36104 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
36105 ISSLASH): Likewise.
36106 * lib/rename.c (strip_trailing_slashes): Likewise.
36107 * lib/same.c (base_name): Likewise.
36108 * lib/stripslash.c (ISSLASH): Likewise.
36110 * lib/addext.c: Include <dirname.h> after size_t is defined.
36111 * lib/backupfile.c: Likewise.
36113 * lib/addext.c (addext): Use base_len to trim redundant
36114 trailing slashes instead of doing it ourselves.
36115 But do not trim the last slash if it is not redundant.
36117 * lib/backupfile.c (find_backup_file_name,
36118 max_backup_version): Use base_len instead of rolling it ourselves.
36119 Handle the case of "" and (on DOS) "C:" correctly.
36121 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
36122 needed. Include <string.h>, <dirname.h>.
36123 (base_name): Allow file names ending in slashes, other than names
36124 that are all slashes. In this case, return the basename followed
36125 by the slashes. This is more general, and can be used in places
36126 where the original base_name purposely had an assertion failure.
36127 (base_len): New function.
36129 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
36130 Do not include <assert.h>; no longer needed.
36132 (memrchr): Remove decl.
36133 (dir_name_r): Remove.
36134 (dir_len): Renamed from dirlen. All callers changed.
36135 Rewrite in terms of base_name, for simplicity and consistency.
36136 (dir_name): Never return NULL. All callers changed.
36137 Do not include <stdlib.h> in test program; no longer needed.
36138 return 0; is fine for test program.
36140 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
36142 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
36144 * lib/path-concat.c (path_concat): Use base_len to compute
36145 base length, not strlen; this means we cannot rely on memcpy
36148 * lib/same.c (STREQ): Remove.
36149 (same_name): Handle the case where the basename ends in trailing '/'.
36151 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
36152 a slash was stripped. Do not strip the last slash after a
36153 file system prefix.
36155 2001-05-11 Paul Eggert <eggert@twinsun.com>
36157 * lib/Makefile.am (libfetish_a_SOURCES):
36158 Add strftime.c, since we now compile it on all hosts.
36160 * lib/strftime.c (my_strftime):
36161 Define to nstrftime if emacs, but only if my_strftime is not defined.
36162 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
36163 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
36164 Add one more extra argument: a nanoseconds value.
36167 (my_strftime function): Add %N format.
36168 (emacs_strftimeu): Renamed from emacs_strftime,
36169 with extra ut argument.
36171 2001-05-09 Paul Eggert <eggert@twinsun.com>
36173 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
36175 2001-04-21 Jim Meyering <meyering@lucent.com>
36177 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
36180 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
36182 * m4/ftruncate.m4: Check for chsize.
36183 Link with ftruncate.o unconditionally if ftruncate is missing.
36184 This was required when cross-compiling to i586-mingw32msvc.
36186 2001-04-08 Jim Meyering <meyering@lucent.com>
36188 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
36189 recomputed; that's necessary when the offset spans a DST transition.
36190 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
36192 2001-04-02 Jim Meyering <meyering@lucent.com>
36194 * lib/regex.h, regex.c: Update from GNU libc.
36196 2001-03-24 Jim Meyering <meyering@lucent.com>
36198 * m4/jm-macros.m4: Require autoconf-2.49d.
36200 2001-03-20 Bruno Haible <haible@clisp.cons.org>
36202 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
36204 2001-03-19 Paul Eggert <eggert@twinsun.com>
36206 * lib/version-etc.c (version_etc_copyright): Update to 2001.
36208 2001-03-17 Jim Meyering <meyering@lucent.com>
36210 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
36211 now that the version in autoconf is equivalent.
36212 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
36214 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
36215 Suggestion from Akim Demaille.
36217 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
36218 (jm_PREREQ_TEMPNAME): New function.
36220 2001-03-16 Paul Eggert <eggert@twinsun.com>
36222 * lib/tempname.c (uint64_t): Define to uintmax_t if
36223 not defined, and if UINT64_MAX is not defined.
36224 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
36225 Reported by John David Anglin.
36227 2001-03-15 Bruno Haible <haible@clisp.cons.org>
36229 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
36230 resolve alias if codeset is empty.
36231 * lib/config.charset (BeOS): Use wildcard syntax.
36233 2001-03-13 Jim Meyering <meyering@lucent.com>
36235 * lib/path-concat.c (path_concat)
36236 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
36237 concatenating e.g., `C:' and `foo'.
36240 2001-03-06 Bruno Haible <haible@clisp.cons.org>
36242 * lib/localcharset.c (locale_charset): Don't use
36243 setlocale(LC_CTYPE,NULL). Don't return NULL.
36244 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
36246 2001-03-06 Bruno Haible <haible@clisp.cons.org>
36248 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
36249 support for DOS/DJGPP.
36251 2001-03-01 Paul Eggert <eggert@twinsun.com>
36253 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
36254 lacks mkstemp. Compile our own tempname.c if we compile our own
36255 mkstemp.c, as mkstemp relies on tempname.
36257 2001-03-01 Jim Meyering <meyering@lucent.com>
36259 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
36260 AH_VERBATIM really does output its argument verbatim.
36262 2001-02-28 Paul Eggert <eggert@twinsun.com>
36264 * lib/Makefile.am (libfetish_a_SOURCES):
36265 Add dup-safer.c, fopen-safer.c.
36266 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
36268 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
36269 * lib/unistd-safer.h: New files.
36271 2001-02-25 Paul Eggert <eggert@twinsun.com>
36273 The mkstemp replacement is taken from glibc 2.2.2, with some
36274 portability fixes for use outside glibc, as follows:
36276 * lib/tempname.c (struct_stat64): New macro.
36277 (direxists, __gen_tempname): Use it.
36278 This avoids a portability problem with Solaris 8.
36280 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
36281 (<stddef.h>, <stdint.h>, <string.h>):
36282 Include only if STDC_HEADERS || _LIBC.
36283 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
36284 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
36285 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
36286 (__set_errno): Define this macro if <errno.h> doesn't.
36287 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
36288 Define these macros if <stdio.h> doesn't.
36289 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
36290 Define these macros if <sys/stat.h>
36291 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
36292 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
36293 __xstat64): Define if not _LIBC.
36294 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
36295 (__gen_tempname): Invoke gettimeofday only if
36296 HAVE_GETTIMEOFDAY || _LIBC;
36297 otherwise, fall back on plain "time".
36298 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
36300 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
36302 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
36304 2001-02-18 Paul Eggert <eggert@twinsun.com>
36306 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
36308 2001-02-17 Paul Eggert <eggert@twinsun.com>
36310 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
36311 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
36312 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
36313 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
36315 2001-02-17 Paul Eggert <eggert@twinsun.com>
36317 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
36318 Remove workaround macros for hosts that have mbrtowc but not
36319 mbstate_t, as we now insist on proper declarations for both
36320 before using mbrtowc.
36322 2001-02-17 Jim Meyering <meyering@lucent.com>
36324 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
36325 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
36326 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
36329 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
36330 rather than AC_CACHE_VAL.
36332 2001-02-17 Jim Meyering <meyering@lucent.com>
36334 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
36335 around included file name.
36337 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
36339 * lib/strftime.c: Update from GNU libc (the only changes were to
36342 2001-02-17 Jim Meyering <meyering@lucent.com>
36344 * lib/regex.c: Update from libc.
36346 2001-02-17 Bruno Haible <haible@clisp.cons.org>
36348 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
36351 2001-02-16 Paul Eggert <eggert@twinsun.com>
36353 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
36354 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
36355 Reported by Mark Hounschell via Paul Eggert.
36357 2001-02-07 Jim Meyering <meyering@lucent.com>
36359 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
36361 2001-02-05 Jim Meyering <meyering@lucent.com>
36363 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
36364 it includes the patch required for `large file' support with at least
36365 HP-UX's 10.20 /bin/cc.
36367 2001-02-03 Jim Meyering <meyering@lucent.com>
36369 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
36370 AS_IF, now that it works once again (mysteriously).
36371 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
36373 2001-01-30 Jim Meyering <meyering@lucent.com>
36375 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
36376 * m4/chown.m4: Rename conftestchown to conftest.chown.
36377 * m4/rename.m4: s/conftestdir/conftest.d1/ and
36378 s/conftestdir2/conftest.d2/.
36379 * m4/utimes.m4: s/conftestdata/conftest.data/
36380 Inspired by Pavel Roskin's change in autoconf.
36382 2001-01-30 Bruno Haible <haible@clisp.cons.org>
36384 * lib/config.charset: Update for FreeBSD 4.2.
36386 2001-01-27 Jim Meyering <meyering@lucent.com>
36388 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
36390 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
36392 2001-01-26 Jim Meyering <meyering@lucent.com>
36394 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
36395 quotearg.c includes it.
36397 2001-01-26 Jim Meyering <meyering@lucent.com>
36399 * lib/quotearg.c: Include stddef.h.
36400 * lib/quote.c: Include stddef.h.
36401 Reported by Axel Kittenberger.
36403 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
36404 line in double quotes so that it evokes a better diagnostic.
36405 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
36406 Reported by Axel Kittenberger.
36408 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
36410 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
36411 as if it was a `charset'.
36413 2001-01-21 Bruno Haible <haible@clisp.cons.org>
36415 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
36418 2001-01-21 Bruno Haible <haible@clisp.cons.org>
36420 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
36421 to avoid a warning. Add back 'const' to inptr.
36423 2001-01-20 Jim Meyering <meyering@lucent.com>
36425 Be sure that headers are checked before used in code compiled
36426 for the type checks.
36427 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
36428 In place of that, invoke jm_CHECK_ALL_TYPES.
36429 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
36430 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
36431 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
36432 The check for ssize_t was mistakenly run before the test for unistd.h.
36434 The configure-time check for stdbool.h was missing.
36435 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
36436 (jm_PREREQ_HASH): New function.
36438 2001-01-17 Jim Meyering <meyering@lucent.com>
36440 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
36441 for autoconf-2.49c.
36442 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
36444 2001-01-16 Jim Meyering <meyering@lucent.com>
36446 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
36449 2001-01-14 Jim Meyering <meyering@lucent.com>
36451 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
36452 foo and bar. Create conftestdir/ in the script, not in the C code.
36453 Remove directories in the script, not in the C code.
36454 Remove conftestdir{,2} before trying to create the directory.
36455 Make the entire configure script fail if the mkdir fails.
36457 2001-01-14 Jim Meyering <meyering@lucent.com>
36459 * lib/rename.c: New file. From Volker Borchert.
36460 Include stdlib.h, string.h or strings.h, and xalloc.h.
36461 Use strip_trailing_slashes rather than open-coding it.
36463 2001-01-03 Paul Eggert <eggert@twinsun.com>
36465 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
36467 2001-01-03 Jim Meyering <meyering@lucent.com>
36469 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
36470 of local `inptr' to avoid warning with some system declarations of
36473 2001-01-02 Volker Borchert <bt@teknon.de>
36475 * m4/rename.m4: New file.
36476 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
36478 2001-01-01 Jim Meyering <meyering@lucent.com>
36480 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
36481 even on systems with utmpx.h. It's necessary for the declaration of
36482 utmp's ut_user member. Reported by Andreas Jaeger.
36484 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
36485 available. They are required for the declarations of getgrgid and
36487 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
36488 Reported by Andreas Jaeger.
36490 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
36492 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
36493 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
36494 so `make install' also works in VPATH builds.
36496 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
36498 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
36499 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
36500 can be used in subdirectories.
36502 2000-12-29 Paul Eggert <eggert@twinsun.com>
36504 * lib/modechange.c: Do not assume that mode_t uses the
36505 traditional octal encoding. E.g. "chmod 1 FOO" should set
36506 the other-execute bit of FOO even if S_IXOTH != 1.
36508 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
36509 WOTH, XOTH, ALLM): New macros.
36510 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
36511 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
36513 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
36514 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
36516 No need to use uintmax_t; unsigned long is long enough.
36517 Don't bother to get suffix since we don't use it.
36519 2000-12-26 Jim Meyering <meyering@lucent.com>
36521 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
36522 better with autoheader.
36524 2000-12-24 Jim Meyering <meyering@lucent.com>
36526 * lib/hash.c (is_prime): Return explicit boolean values.
36527 (hash_get_first): Return NULL to appease Irix5.6's 89.
36528 Reported by Nelson Beebe.
36530 2000-12-19 Bruno Haible <haible@clisp.cons.org>
36532 * lib/localcharset.c (locale_charset): Add support for Win32.
36534 2000-12-18 Paul Eggert <eggert@twinsun.com>
36536 * lib/physmem.h, lib/physmem.c: New files.
36538 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
36539 (noinst_HEADERS): Add physmem.h.
36541 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
36542 't' for compatibility with Solaris 8 sort.
36544 2000-12-18 Bruno Haible <haible@clisp.cons.org>
36546 * lib/config.charset: Add support for BeOS.
36548 2000-12-17 Jim Meyering <meyering@lucent.com>
36550 * m4/dos.m4 (jm_AC_DOS): New file and macro.
36551 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
36553 2000-12-16 Jim Meyering <meyering@lucent.com>
36555 This bug had a serious impact on chown: `chown N:M FILE' (for integer
36556 N and M) would have treated it like `chown N:N FILE'.
36558 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
36560 2000-12-16 Jim Meyering <meyering@lucent.com>
36562 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
36563 SHELLS_FILE to a file name that's useful on djgpp systems.
36565 (ADDITIONAL_DEFAULT_SHELLS): Define.
36566 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
36567 Based mostly on a patch from Prashant TR.
36569 2000-12-16 Bruno Haible <haible@clisp.cons.org>
36571 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
36572 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
36573 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
36575 2000-12-08 Andreas Schwab <schwab@suse.de>
36577 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
36578 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
36580 2000-12-07 Jim Meyering <meyering@lucent.com>
36582 * lib/stripslash.c (ISSLASH): Define.
36583 (strip_trailing_slashes): Use ISSLASH rather than comparing against
36587 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
36588 (dir_name_r): Declare this function as static.
36589 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
36590 manifest itself on a name containing a mix of slashes and
36592 Make this function work with names starting with a DOS-style
36593 drive letter and colon prefix.
36594 (dir_name): Append `.' if necessary.
36595 Based mostly on patches from Prashant TR and Eli Zaretskii.
36597 * lib/dirname.h (dir_name_r): Remove prototype.
36599 2000-12-06 Paul Eggert <eggert@twinsun.com>
36601 * m4/off_t-format.m4: Remove this file.
36602 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
36604 2000-12-06 Jim Meyering <meyering@lucent.com>
36606 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
36607 replacement strtoull, we may well need the replacement strtoul, too.
36608 Check for declarations of strtoul and strtoull.
36609 Check for strtol. Mainly as a cue to cause automake to include
36610 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
36611 Check for limits.h -- strtol.c needs it.
36613 2000-12-05 Jim Meyering <meyering@lucent.com>
36615 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
36617 2000-12-04 Jim Meyering <meyering@lucent.com>
36619 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
36620 Also include memory.h, stdlib.h, unistd.h if appropriate.
36621 Reported by Andreas Jaeger (conflicting declaration of malloc).
36623 2000-12-02 Jim Meyering <meyering@lucent.com>
36625 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
36626 * m4/jm-macros.m4 (jm_MACROS): require it.
36628 2000-12-02 Jim Meyering <meyering@lucent.com>
36630 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
36632 2000-12-01 Paul Eggert <eggert@twinsun.com>
36634 * lib/memrchr.c: Include <config.h> before any system include file.
36636 2000-11-30 Jim Meyering <meyering@lucent.com>
36638 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
36640 2000-11-30 Jim Meyering <meyering@lucent.com>
36642 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
36644 2000-11-29 Paul Eggert <eggert@twinsun.com>
36646 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
36648 2000-11-26 Jim Meyering <meyering@lucent.com>
36650 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
36652 2000-11-22 Paul Eggert <eggert@twinsun.com>
36654 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
36655 size of (size_t) -1; it's not portable.
36657 2000-11-17 Jim Meyering <meyering@lucent.com>
36659 * lib/strstr.c: Update from GNU libc.
36661 2000-11-17 Akim Demaille <akim@epita.fr>
36663 * lib/obstack.h: Formatting changes.
36664 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
36665 prevent type checking.
36666 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
36667 cast the value to (void *): assigning a `foo *' to a `void *'
36669 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
36671 2000-11-16 Jim Meyering <meyering@lucent.com>
36673 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
36675 2000-11-11 Jim Meyering <meyering@lucent.com>
36677 * lib/error.c: Add a couple #includes, merging from GNU libc version.
36679 2000-11-10 Jim Meyering <meyering@lucent.com>
36681 * lib/obstack.h: Update from GNU libc.
36682 * lib/obstack.c: Likewise.
36684 2000-11-08 Bruno Haible <haible@clisp.cons.org>
36686 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
36688 2000-11-06 Paul Eggert <eggert@twinsun.com>
36690 * lib/getusershell.c (setusershell): Use rewind rather than
36691 fseek/fseeko, to avoid configuration hassles with fseeko.
36692 Don't bother opening SHELLS_FILE if shellstream is NULL;
36693 it's not necessary.
36695 2000-11-05 Jim Meyering <meyering@lucent.com>
36697 * lib/makepath.h (make_dir): Declare.
36698 * lib/makepath.c (make_dir): Remove `static' attribute.
36701 2000-11-04 Jim Meyering <meyering@lucent.com>
36703 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
36705 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
36707 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
36708 last one in a bucket, advance to the next bucket.
36710 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
36712 * lib/fnmatch.c: Do not comment out all the code if we are using
36713 the GNU C library, because in some cases we are replacing buggy
36714 code in the GNU C library itself.
36716 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
36718 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
36719 (regex_compile): Catch bogus \(\1\).
36721 2000-10-30 Paul Eggert <eggert@twinsun.com>
36723 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
36724 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
36725 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
36727 2000-10-30 Paul Eggert <eggert@twinsun.com>
36729 * lib/error.h, getline.h, modechange.h:
36730 Remove "2000" from Copyright line, as the file hasn't been
36731 changed this year other than in the copyright notice.
36733 * lib/xalloc.h: Add "2000" to Copyright line, as this file
36734 was changed this year.
36736 2000-10-29 Jim Meyering <meyering@lucent.com>
36738 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
36740 * m4/ls-mntd-fs.m4: Likewise
36742 2000-10-29 Jim Meyering <meyering@lucent.com>
36744 * lib/xstat.in: Fix grammar in comment.
36746 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
36748 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
36749 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
36750 doesn't define __restrict_arr.
36752 2000-10-28 Jim Meyering <meyering@lucent.com>
36754 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
36755 (jm_PREREQ_MEMCHR): New function.
36757 2000-10-28 Jim Meyering <meyering@lucent.com>
36759 * lib/memchr.c: Update from libc.
36760 Adjust for portability:
36761 [HAVE_STDLIB_H]: Include stdlib.h.
36762 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
36763 Undef __memchr, too.
36764 [!weak_alias]: Define __memchr to memchr.
36766 * lib/regex.c: Update from libc.
36767 * lib/regex.h: Likewise.
36768 * lib/getopt1.c: Likewise.
36769 * lib/memcmp.c: Likewise.
36771 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
36772 Avoid using fseek, when possible -- it's broken by design.
36773 Patch by Ulrich Drepper.
36775 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
36777 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
36778 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
36779 Giving in to popular pressure to shut up the compiler with casts.
36781 2000-10-26 Jim Meyering <meyering@lucent.com>
36783 * lib/strftime.c: Update from libc.
36785 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
36787 * regex.c: More `unsigned char' -> `re_char' changes.
36788 Also change several `int' into `re_wchar_t'.
36789 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
36790 (PUSH_FAILURE_POINTER): Don't cast any more.
36791 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
36792 We want GCC to complain, since this piece of code makes
36793 re_match non-reentrant, which *should* be fixed.
36794 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
36795 (EXTEND_BUFFER): Use RETALLOC.
36796 (SET_LIST_BIT): Don't cast.
36797 (re_wchar_t): New type.
36798 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
36799 that those two functions will always properly return.
36800 (IMMEDIATE_QUIT_CHECK): Cast to void.
36801 (analyse_first): Use recursion rather than an explicit stack.
36802 (re_compile_fastmap): Can't fail anymore.
36803 (re_search_2): Don't check re_compile_fastmap for failure.
36804 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
36805 Now also sets the new value (passed in a new argument).
36806 (re_match_2_internal): Use it.
36807 Also, use a new var `reg' of type size_t when looping through regs
36808 rather than reuse the inappropriate `mcnt'.
36810 2000-10-25 Jim Meyering <meyering@lucent.com>
36812 * lib/obstack.c: Update from libc.
36814 2000-10-24 Kenichi Handa <handa@etl.go.jp>
36816 * regex.c (regex_compile): Change the way of handling a range from
36817 a char less than 256 to a char not less than 256.
36819 2000-10-24 Andrew Innes <andrewi@gnu.org>
36821 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
36823 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
36824 so that re_search functions only quit when callers expect them to.
36826 2000-10-23 Jim Meyering <meyering@lucent.com>
36828 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
36829 wrong. That set_locale call must not have any side effects.
36832 2000-10-22 Jim Meyering <meyering@lucent.com>
36834 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
36835 [CYCLIC]: Remove now-unused definition.
36837 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
36838 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
36839 Suggestion from Ulrich Drepper.
36841 2000-10-21 Jim Meyering <meyering@lucent.com>
36843 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
36844 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
36845 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
36847 2000-10-21 Jim Meyering <meyering@lucent.com>
36849 * lib/dirname.c (memrchr): Declare if necessary.
36850 (dir_name): Remove the restriction that there be no
36851 trailing slashes. Now, this code skips past them, effectively
36853 [TEST_DIRNAME] (main): New unit tests.
36855 * lib/memrchr.c: New file from GNU libc.
36856 Undef __memrchr, too.
36857 [!weak_alias]: Define __memrchr to memrchr.
36858 Guard weak_alias use with `#ifdef weak_alias'.
36860 2000-10-21 Jim Meyering <meyering@lucent.com>
36862 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
36863 (dir_name): Use dir_name_r.
36864 * lib/dirname.h (dir_name_r): Declare it.
36866 2000-10-17 Jim Meyering <meyering@lucent.com>
36868 * lib/quote.h (PARAMS): Define and use.
36869 Reported by Akim Demaille.
36871 * lib/getopt.c: Update from libc.
36873 2000-10-16 Jim Meyering <meyering@lucent.com>
36875 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
36879 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
36881 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
36883 2000-09-25 Jim Meyering <meyering@lucent.com>
36885 * lib/md5.h (rol): Define (from GnuPG).
36887 * lib/sha.c: Give credit (GnuPG) where due.
36888 (M): Use rol rather than open-coding it.
36889 Add a FIXME comment.
36891 2000-09-21 Jim Meyering <meyering@lucent.com>
36893 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
36894 Reported by Michael Stone.
36896 2000-09-20 Jim Meyering <meyering@lucent.com>
36898 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
36899 (noinst_HEADERS): Add sha.h.
36900 Based on code from Scott G. Miller and from GnuPG.
36902 2000-09-18 Jim Meyering <meyering@lucent.com>
36904 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
36905 LIBS. Otherwise, everyone ends up linking with -lelf for some
36907 Reported by Mike Stone.
36909 2000-09-15 Jim Meyering <meyering@lucent.com>
36911 * lib/regex.c: Update from libc.
36913 2000-09-10 Jim Meyering <meyering@lucent.com>
36915 * lib/getopt.c (_getopt_internal): Update from glibc.
36917 2000-09-09 Jim Meyering <meyering@lucent.com>
36919 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
36920 think it should be used as a general replacement for isascii.
36921 * lib/fnmatch.c: Likewise.
36922 * lib/mbswidth.c: Likewise
36923 * lib/regex.c: Likewise.
36926 * lib/userspec.c: Include sys/param.h and limits.h.
36928 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
36929 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
36930 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
36931 UID, GID. Check range.
36933 2000-09-06 Jim Meyering <meyering@lucent.com>
36935 * lib/getopt.c (_getopt_internal): Update from glibc.
36937 2000-08-30 Jim Meyering <meyering@lucent.com>
36939 * lib/strftime.c: Merge in changes from GNU libc.
36941 2000-08-26 Jim Meyering <meyering@lucent.com>
36943 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
36944 * m4/fpending.m4: New file.
36946 2000-08-26 Jim Meyering <meyering@lucent.com>
36948 * lib/closeout.c: Include "__fpending.h".
36949 (close_stdout_status): Return right away if there's nothing to flush.
36951 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
36952 * lib/__fpending.c: New file.
36953 * lib/__fpending.h: New file.
36955 2000-08-20 Jim Meyering <meyering@lucent.com>
36957 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
36958 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
36959 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
36961 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
36963 Improve fileutils installation on systems where running
36964 programs (like install) can't be unlinked.
36965 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
36966 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
36968 2000-08-07 Paul Eggert <eggert@twinsun.com>
36970 Standardize on "memory exhausted" instead of "Memory exhausted"
36971 or "virtual memory exhausted".
36972 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
36973 "virtual memory exhausted".
36974 * lib/same.c (same_name): Invoke xalloc_die instead of printing
36976 * lib/userspec.c (parse_user_spec): Likewise.
36977 * lib/bumpalloc.h: comment fix
36978 * lib/same.c, userspec.c: Include xalloc.h.
36980 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
36981 not char *const and pointing to a constant array.
36982 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
36983 (xrealloc): Comment fix.
36985 * lib/userspec.c (parse_user_spec):
36986 Don't translate a message until just before returning,
36987 to avoid unnecessary translation.
36989 2000-08-07 Jim Meyering <meyering@lucent.com>
36991 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
36992 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
36993 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
36994 getgroups.c, gethostname.c, getopt.h, group-member.c,
36995 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
36996 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
36997 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
36998 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
36999 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
37000 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
37001 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
37002 yesno.c: Back out Copyright date changes for each file with no change
37003 this year. This eases coordination with other programs using the same
37004 source code modules. From Paul Eggert.
37006 2000-08-06 Paul Eggert <eggert@twinsun.com>
37008 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
37009 not char, for compatibility with glibc 2.1.3 strftime.c.
37011 2000-08-03 Greg McGary <greg@mcgary.org>
37013 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
37014 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
37015 (EXTEND_BUFFER): Use them.
37017 2000-08-01 Jim Meyering <meyering@lucent.com>
37019 * lib/dirname.c (ISSLASH): Define.
37020 (BACKSLASH_IS_PATH_SEPARATOR): Define.
37021 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
37022 both `\' and `/' may be use as path separators.
37023 Based on a patch from Prashant TR.
37025 2000-07-31 Paul Eggert <eggert@twinsun.com>
37027 * lib/quotearg.c (quotearg_n_options): Don't make the initial
37028 slot vector a constant, since it might get modified.
37030 2000-07-31 Jim Meyering <meyering@lucent.com>
37032 * lib/xmalloc.c: Use `virtual memory exhausted', not
37033 `Memory exhausted'.
37034 * lib/obstack.c (print_and_abort): Likewise.
37036 2000-07-30 Paul Eggert <eggert@twinsun.com>
37038 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
37039 buffer, so that the caller can always quote one small
37040 component of a "memory exhausted" message in slot 0.
37041 From a suggestion by Jim Meyering.
37043 2000-07-30 Jim Meyering <meyering@lucent.com>
37045 * lib/makepath.c (make_path): Quote the other instance, too.
37047 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
37048 (STATIC_BUF_SIZE): Define.
37049 (quotearg_n_options): Use only statically allocated storage when
37050 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
37051 than STATIC_BUF_SIZE.
37053 2000-07-29 Jim Meyering <meyering@lucent.com>
37055 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
37056 * lib/dirname.c (dir_name): Likewise.
37058 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
37061 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
37062 (dir_name): Assert that there are no trailing slashes.
37064 2000-07-29 Bruno Haible <haible@clisp.cons.org>
37066 * lib/mbswidth.h (mbswidth): Add a flags argument.
37067 (mbswidth): New declaration.
37068 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
37069 * lib/mbswidth.c (mbswidth): Add a flags argument.
37070 (mbsnwidth): New function.
37072 2000-07-24 Jim Meyering <meyering@lucent.com>
37074 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
37076 2000-07-23 Paul Eggert <eggert@twinsun.com>
37078 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
37080 2000-07-23 Paul Eggert <eggert@twinsun.com>
37082 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
37083 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
37084 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
37085 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
37086 invoke multibyte primitives.
37088 2000-07-23 Paul Eggert <eggert@twinsun.com>
37091 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
37092 so that mbstate_t is always defined.
37094 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
37095 be 1 in at least one GCC installation, and this configuration
37096 error is likely to be common. Ignoring MB_LEN_MAX hurts
37097 performance on hosts that have mbrtowc but have only unibyte
37098 locales, but I assume these hosts are rare.
37100 2000-07-23 Paul Eggert <eggert@twinsun.com>
37102 * lib/mbswidth.c (_XOPEN_SOURCE):
37103 Don't define; this causes problems on Solaris 7.
37104 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
37106 2000-07-23 Jim Meyering <meyering@lucent.com>
37108 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
37109 too: getgrgid, getpwuid, getuid.
37111 2000-07-23 Jim Meyering <meyering@lucent.com>
37113 * lib/basename.c (base_name): Add an assertion.
37115 2000-07-23 Bruno Haible <haible@clisp.cons.org>
37117 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
37118 shadow its mbsinit function.
37120 2000-07-17 Bruno Haible <haible@clisp.cons.org>
37122 * lib/mbswidth.h: New file.
37123 * lib/mbswidth.c: New file.
37124 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
37125 (noinst_HEADERS): Add mbswidth.h.
37127 2000-07-17 Bruno Haible <haible@clisp.cons.org>
37129 * lib/config.charset: Add support for FreeBSD. Improve support for
37132 2000-07-16 Bruno Haible <haible@clisp.cons.org>
37134 * m4/mbswidth.m4: New file.
37135 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
37137 2000-07-15 Jim Meyering <meyering@lucent.com>
37139 * lib/makepath.c: Include quote.h.
37140 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
37141 corresponding argument in a `quote (...)' call.
37142 Give better diagnostics.
37144 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
37145 (noinst_HEADERS): Add quote.h.
37147 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
37148 from tar's src/misc.c.
37149 * lib/quote.h: New file. Prototypes for same.
37151 2000-07-14 Paul Eggert <eggert@twinsun.com>
37153 From a suggestion by Bruno Haible.
37154 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
37155 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
37156 to decide whether to define the BeOS workaround macro;
37157 this adjusts to the change to AC_MBSTATE_T.
37159 2000-07-14 Jim Meyering <meyering@lucent.com>
37161 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
37162 jm_AC_TYPE_UINTMAX_T.
37164 2000-07-13 Paul Eggert <eggert@twinsun.com>
37166 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
37168 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
37169 quotearg_buffer_restyled): Add support for
37170 clocale_quoting_style. Undo previous change to
37171 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
37172 and "{RIGHT QUOTATION MARK}" msgids.
37174 2000-07-10 Paul Eggert <eggert@twinsun.com>
37176 From a suggestion by Bruno Haible.
37177 * m4/mbstate_t.m4 (AC_MBSTATE_T):
37178 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
37179 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
37180 and mbstate_t, to a single-part test that simply defines mbstate_t.
37181 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
37182 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
37184 2000-07-10 Jim Meyering <meyering@lucent.com>
37186 * m4/strerror_r.m4: Mirror the correction made in autoconf.
37188 * m4/gnu-source.m4: Output to confdefs.h directly.
37189 Suggestion from Akim Demaille.
37191 2000-07-09 Paul Eggert <eggert@twinsun.com>
37193 The old behavior of quoting `like this' doesn't look good with
37194 newer, ISO-style fonts. See:
37195 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
37197 Instead, quote "like this" by default. Let the translator
37198 tailor the locale-specific quoting behavior by providing
37199 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
37201 * lib/quotearg.c (N_): New macro.
37202 (gettext_default): New function.
37203 (quotearg_buffer_restyled): Use
37204 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
37205 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
37207 2000-07-09 Jim Meyering <meyering@lucent.com>
37209 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
37210 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
37212 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
37213 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
37215 2000-07-09 Jim Meyering <meyering@lucent.com>
37217 * lib/Most files: Update copyright dates to include 2000.
37219 2000-07-08 Jim Meyering <meyering@lucent.com>
37221 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
37223 (xgethostname): Remove now-unnecessary #ifdef.
37224 Move declaration of `err' into loop where it's used.
37226 2000-07-05 Paul Eggert <eggert@twinsun.com>
37227 and Bruno Haible <haible@clisp.cons.org>
37229 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
37230 only if the test for an object-type mbstate_t fails. This
37231 prevents us from mistakenly reporting that mbstate_t is a
37232 system object type after we "#define mbstate_t int" to work
37235 2000-07-05 Paul Eggert <eggert@twinsun.com>
37236 and Bruno Haible <haible@clisp.cons.org>
37238 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
37240 2000-07-05 Bruno Haible <haible@clisp.cons.org>
37242 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
37244 Include <ctype.h> for use of isalpha.
37246 2000-07-05 Bruno Haible <haible@clisp.cons.org>
37248 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
37249 by allocating a larger buffer. Test the gethostname return value for
37250 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
37251 returns an error and ENAMETOOLONG isn't defined.
37253 2000-07-05 Bruno Haible <haible@clisp.cons.org>
37255 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
37258 2000-07-04 Jim Meyering <meyering@lucent.com>
37260 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
37261 of the deprecated AC_CHECKING.
37263 2000-07-04 Jim Meyering <meyering@lucent.com>
37265 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
37266 Reported by Bruno Haible.
37268 2000-07-04 Jim Meyering <meyering@lucent.com>
37270 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
37271 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
37274 2000-07-03 Paul Eggert <eggert@twinsun.com>
37276 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
37277 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
37279 2000-07-03 Paul Eggert <eggert@twinsun.com>
37280 and Bruno Haible <haible@clisp.cons.org>
37282 * lib/quotearg.c (mbrtowc):
37283 Assign to *pwc, and return 1 only if result is nonzero.
37284 (iswprint): Use ISPRINT when substituting our own mbrtowc.
37286 2000-07-03 Jim Meyering <meyering@lucent.com>
37288 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
37290 2000-07-03 Jim Meyering <meyering@lucent.com>
37292 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
37293 This is necessary to get a definition of e.g., UTMP_FILE on
37297 2000-07-02 Jim Meyering <meyering@lucent.com>
37299 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
37301 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
37302 AC_LIBOBJ(function_name).
37303 * m4/chown.m4: Likewise.
37304 * m4/fnmatch.m4: Likewise.
37305 * m4/ftruncate.m4: Likewise.
37306 * m4/getgroups.m4: Likewise.
37307 * m4/getline.m4: Likewise.
37308 * m4/group-member.m4: Likewise.
37309 * m4/jm-macros.m4: Likewise.
37310 * m4/lstat.m4: Likewise.
37311 * m4/malloc.m4: Likewise.
37312 * m4/memcmp.m4: Likewise.
37313 * m4/nanosleep.m4: Likewise.
37314 * m4/putenv.m4: Likewise.
37315 * m4/realloc.m4: Likewise.
37316 * m4/regex.m4: Likewise.
37317 * m4/stat.m4: Likewise.
37318 * m4/strftime.m4: Likewise.
37320 2000-07-02 Jim Meyering <meyering@lucent.com>
37322 * lib/quotearg.c (mbstate_t): Don't define here.
37324 2000-07-02 Jim Meyering <meyering@lucent.com>
37326 * lib/nanosleep.c (SIGCONT): Define if not already defined.
37328 2000-07-01 Jim Meyering <meyering@lucent.com>
37330 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
37332 2000-07-01 Jim Meyering <meyering@lucent.com>
37334 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
37337 2000-07-01 Bruno Haible <haible@clisp.cons.org>
37339 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
37340 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
37342 2000-07-01 Bruno Haible <haible@clisp.cons.org>
37344 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
37345 per change in ../m4/ls-mntd-fs.m4.
37346 (read_filesystem_list): Ignore symbolic links.
37348 2000-06-29 Jim Meyering <meyering@lucent.com>
37350 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
37351 for declaration of strcmp.
37353 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
37355 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
37356 Avoid warning by casting result to `char *' to remove `const'.
37358 2000-06-28 Jim Meyering <meyering@lucent.com>
37360 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
37361 included by quotearg.c, for which we perform this test. From
37364 2000-06-27 Bruno Haible <haible@clisp.cons.org>
37366 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
37367 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
37368 <utmpx.h> exists, put readutmp.o into LIBOBJS.
37370 2000-06-27 Bruno Haible <haible@clisp.cons.org>
37372 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
37374 2000-06-26 Paul Eggert <eggert@twinsun.com>
37376 savedir now sets errno on failure and invokes xmalloc to get memory.
37377 Fix a couple of other minor bugs while we're at it.
37379 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
37380 (NAMLEN): Remove macro.
37381 (malloc, realloc): Remove decls.
37382 (stpcpy): Likewise.
37383 ("xalloc.h"): Include.
37384 (NAME_SIZE_DEFAULT): New macro.
37385 (savedir): Use xmalloc / xrealloc to allocate memory.
37386 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
37387 Skip "" directory entries.
37388 Use strlen to calculate directory entry length, since the old method
37389 is rarely used these days and isn't worth supporting.
37390 Don't use a pointer after freeing it.
37391 Check for integer overflow when calculating allocation size.
37392 Use memcpy to copy entries, instead of stpcpy.
37393 Set errno properly when returning NULL.
37394 Check for readdir error.
37396 2000-06-26 Jim Meyering <meyering@lucent.com>
37398 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
37400 2000-06-25 Jim Meyering <meyering@lucent.com>
37402 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
37403 Linux header bug when _XOPEN_SOURCE is defined to 500.
37405 2000-06-25 Bruno Haible <haible@clisp.cons.org>
37407 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
37410 2000-06-25 Bruno Haible <haible@clisp.cons.org>
37412 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
37414 Don't include <stdlib.h>. Don't declare malloc, realloc.
37416 2000-06-24 Jim Meyering <meyering@lucent.com>
37418 * m4/strerror_r.m4: Revive this file -- to try out an experimental
37419 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
37420 for which strerror does return char*, but which lacks a conveniently
37421 accessible declaration of the function. If the compile-test says
37422 strerror_r doesn't work, then resort to a `run'-test that works on
37423 BeOS and segfaults on DEC Unix.
37425 2000-06-24 Jim Meyering <meyering@lucent.com>
37427 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
37429 2000-06-23 Paul Eggert <eggert@twinsun.com>
37431 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
37432 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
37434 2000-06-23 Paul Eggert <eggert@twinsun.com>
37436 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
37437 (mbrtowc, mbstate_t): Define substitutes if
37438 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
37439 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
37440 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
37442 2000-06-23 Jim Meyering <meyering@lucent.com>
37444 * m4/afs.m4: Add missing AC_MSG_RESULT.
37445 Reported by Bruno Haible.
37447 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
37448 Suggestion from Bruno Haible.
37450 2000-06-23 Jim Meyering <meyering@lucent.com>
37452 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
37454 2000-06-21 Jim Meyering <meyering@lucent.com>
37456 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
37458 2000-06-21 Jim Meyering <meyering@lucent.com>
37460 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
37461 (noinst_HEADERS): Add getstr.h.
37463 * lib/getline.c (getstr): Move into a separate file.
37464 * lib/getstr.c (getstr): New file, extracted from getline.c, with
37465 the following changes: new parameter, delim2; both delim[12]
37466 parameters have type `int', not `char'. The latter would lose
37467 with 8-bit delimiters.
37468 * lib/getstr.h: New file.
37470 2000-06-21 Bruno Haible <haible@clisp.cons.org>
37472 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
37473 than 1024, return a memory chunk of least possible size, instead
37474 of size PATH_MAX + 2. In the loop, increment the size proportionally.
37475 Use free/xmalloc instead of xrealloc to avoid copying for very long
37478 2000-06-21 Bruno Haible <haible@clisp.cons.org>
37480 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
37483 2000-06-21 Bruno Haible <haible@clisp.cons.org>
37485 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
37486 address, not strdup. Include <stdlib.h> and don't declare free().
37488 2000-06-19 Jim Meyering <meyering@lucent.com>
37490 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
37492 2000-06-18 Jim Meyering <meyering@lucent.com>
37494 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
37496 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
37497 `checking whether...' message to be consistent with that of the
37500 2000-06-18 Jim Meyering <meyering@lucent.com>
37502 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
37503 Besides, these days every porting target provides a mkdir function.
37505 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
37506 needed. (this snippet comes from src/system.h).
37508 2000-06-16 Bruno Haible <haible@clisp.cons.org>
37510 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
37512 2000-06-15 Paul Eggert <eggert@twinsun.com>
37514 * lib/human.c (adjust_value): New function.
37515 (human_readable_inexact): Apply rounding style even when
37516 printing approximate values.
37518 2000-06-14 Paul Eggert <eggert@twinsun.com>
37520 * lib/human.c (human_readable_inexact): Allow an input block
37521 size that is not a multiple of the output block size, and vice versa.
37522 Reported by Piergiorgio Sartor.
37524 2000-06-14 Paul Eggert <eggert@twinsun.com>
37526 * lib/getdate.y (get_date): Apply relative times after time
37527 zone indicator, not before. Reported by Todd A. Jacobs.
37529 2000-06-13 Jim Meyering <meyering@lucent.com>
37531 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
37533 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
37535 2000-06-12 Paul Eggert <eggert@twinsun.com>
37537 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
37539 2000-06-12 Jim Meyering <meyering@lucent.com>
37541 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
37542 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
37544 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
37545 the optional argument, `lib'.
37547 2000-06-08 Jim Meyering <meyering@lucent.com>
37549 * m4/largefile.m4: Remove file (now that it's part of autoconf).
37551 2000-06-04 Paul Eggert <eggert@twinsun.com>
37553 Rewrite largefile configuration so that we don't need to run
37554 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
37555 AC_CANONICAL_HOST in configure.in -- jmm]
37557 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
37558 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
37559 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
37560 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
37561 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
37563 Instead of inspecting the output of getconf, try to compile the
37564 test program without and with the macro definition.
37565 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
37566 for getconf. Instead, check for the needed flags by compiling
37569 2000-06-04 Paul Eggert <eggert@twinsun.com>
37571 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
37573 2000-06-04 Jim Meyering <meyering@lucent.com>
37575 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
37576 SunOS 4.1.4 for which gid_t is an unsigned type.
37578 2000-06-03 Jim Meyering <meyering@lucent.com>
37580 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
37581 now that autoconf requires that.
37583 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
37584 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
37585 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
37587 2000-06-03 Jim Meyering <meyering@lucent.com>
37589 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
37591 2000-06-03 Bruno Haible <haible@clisp.cons.org>
37593 * m4/glibc21.m4: New file.
37594 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
37596 2000-06-03 Bruno Haible <haible@clisp.cons.org>
37598 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
37599 newer, don't install charset.alias.
37600 * lib/config.charset: Change the Linux/glibc rules so they become empty
37601 on glibc-2.1 or newer.
37603 2000-06-02 Jim Meyering <meyering@lucent.com>
37605 * lib/mountlist.c: Back out last change. Instead, do this...
37606 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
37607 me_dummy member using the same `ignore'-testing code.
37608 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
37612 2000-05-29 Jim Meyering <meyering@lucent.com>
37614 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
37615 mounts with the `ignore' attribute. Based on a patch from
37618 2000-05-28 Jim Meyering <meyering@lucent.com>
37620 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
37621 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37622 * m4/stat.m4: Likewise.
37623 * m4/lstat.m4: Likewise.
37624 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
37626 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
37627 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
37629 2000-05-26 Jim Meyering <meyering@lucent.com>
37631 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
37633 2000-05-24 Jim Meyering <meyering@lucent.com>
37635 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
37636 autoconf requires that.
37637 * m4/lib-check.m4: Likewise.
37638 * m4/jm-macros.m4: Likewise.
37639 * m4/strftime.m4: Likewise.
37641 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
37642 AC_CHECK_DECLS, now that autoconf requires that.
37644 2000-05-22 Jim Meyering <meyering@lucent.com>
37646 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37647 * m4/lstat.m4: Likewise.
37649 2000-05-22 Jim Meyering <meyering@lucent.com>
37651 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
37653 2000-05-20 Jim Meyering <meyering@lucent.com>
37655 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
37656 (jm_PREREQ): Use it.
37658 2000-05-18 Jim Meyering <meyering@lucent.com>
37660 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
37661 back, too, since it may have been modified by allocate_entry.
37662 (hash_delete): Rewrite to use neither the assignment operator
37663 nor the comma operator in an if-expression.
37665 2000-05-15 Paul Eggert <eggert@twinsun.com>
37668 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
37669 Remove; no longer needed.
37670 "quotearg.h": Add include.
37671 (file_name): Do not bother to explicitly initialize to NULL; it's less
37672 efficient on some hosts.
37673 (close_stdout_status): Remove test as to whether stdout was already
37674 closed; it breaks for the case "echo x | sort >&-".
37675 Quote file name colons.
37676 Do not assume that _("write error") lacks format strings.
37678 2000-05-15 Jim Meyering <meyering@lucent.com>
37680 * lib/version-etc.c (version_etc_copyright): Update the copyright
37681 string used in all --version output.
37683 2000-05-14 Jim Meyering <meyering@lucent.com>
37685 * lib/closeout.c (close_stdout_set_file_name): New function.
37686 (close_stdout_status): Use new file-scoped global.
37687 Return right away if fstat says the stdout file descriptor is invalid.
37688 * lib/closeout.h (close_stdout_set_file_name): Declare.
37690 2000-05-10 Jim Meyering <meyering@lucent.com>
37692 * lib/closeout.c [default_exit_status]: New file-scoped variable.
37693 (close_stdout_set_status): New function.
37694 * lib/closeout.h (close_stdout_set_status): Declare.
37696 2000-05-09 Jim Meyering <meyering@lucent.com>
37698 * m4/gettext.m4: Rename this...
37699 * m4/libintl.m4: ...to this.
37701 2000-05-08 Jim Meyering <meyering@lucent.com>
37703 * lib/long-options.c: Don't include closeout.h.
37704 (parse_long_options): Don't call close_stdout for --version.
37706 2000-05-06 Paul Eggert <eggert@twinsun.com>
37708 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
37709 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
37710 2.1.3 bug. This avoids a clash when files like regex.c define
37713 2000-05-06 Jim Meyering <meyering@lucent.com>
37715 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
37716 (AC_REPLACE_FUNCS): Add strnlen.
37718 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
37719 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
37721 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
37722 AC_SEARCH_LIBS call for nanosleep.
37723 (LIB_NANOSLEEP): Set and AC_SUBST.
37725 2000-05-06 Jim Meyering <meyering@lucent.com>
37727 * lib/strnlen.c: Undefine __strnlen and strnlen.
37728 [!weak_alias]: Define __strnlen to strnlen.
37730 * lib/atexit.c: New file, from libiberty.
37732 2000-05-06 Jim Meyering <meyering@lucent.com>
37734 * lib/closeout.c (close_stdout_status): Also check for errors on the
37737 2000-05-05 Jim Meyering <meyering@lucent.com>
37739 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
37740 AC_SEARCH_LIBS call for clock_gettime.
37741 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
37743 * m4/search-libs.m4: Update from autoconf.
37745 su doesn't work on Solaris 2.6.
37746 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
37747 <shadow.h>. Reported by Dragos Harabor.
37749 2000-05-05 Bruno Haible <haible@clisp.cons.org>
37751 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
37752 memcpy instead of xmalloc, xrealloc, path_concat.
37753 (locale_charset): Treat empty environment variables as absent.
37754 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
37756 2000-05-04 Jim Meyering <meyering@lucent.com>
37758 * lib/getopt.c: Update from glibc.
37759 * lib/obstack.c: Likewise.
37760 * lib/obstack.h: Likewise.
37761 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
37764 * lib/regex.h: Likewise.
37765 * lib/strndup.c: Likewise.
37766 * lib/strnlen.c: New file, from glibc.
37768 2000-05-03 Jim Meyering <meyering@lucent.com>
37770 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
37772 2000-05-02 Paul Eggert <eggert@twinsun.com>
37774 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
37775 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
37776 compile-time test, rather than inspecting host and OS, to
37777 decide whether to define _LARGEFILE_SOURCE.
37779 2000-05-01 Jim Meyering <meyering@lucent.com>
37781 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
37783 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
37784 Based on a patch from Bruno Haible.
37786 2000-05-01 Jim Meyering <meyering@lucent.com>
37788 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
37790 2000-04-29 Jim Meyering <meyering@lucent.com>
37792 * lib/path-concat.c: Declare strdup only if it's not defined.
37793 * lib/canon-host.c: Likewise.
37795 2000-04-28 Jim Meyering <meyering@lucent.com>
37797 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
37798 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
37799 is included first, then limits.h is included by locale.h by libintl.h.
37800 From John David Anglin.
37802 2000-04-25 Jim Meyering <meyering@lucent.com>
37804 * lib/makepath.c (S_IRWXUGO): Define.
37805 (make_path): Always perform explicit chmod if MODE specifies any
37806 of the `special' permission bits. Prompted by a bug report against
37807 install from Mate Wierdl and Joost van Baal.
37809 2000-04-18 Jim Meyering <meyering@lucent.com>
37811 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
37812 (jm_PREREQ): Use it.
37814 2000-04-18 Jim Meyering <meyering@lucent.com>
37816 * lib/README: New file.
37818 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
37819 getpagesize. For BeOS. Based on a patch from Bruno Haible.
37821 2000-04-17 Jim Meyering <meyering@lucent.com>
37824 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
37825 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
37826 Suggestion from Akim Demaille.
37828 2000-04-17 Jim Meyering <meyering@lucent.com>
37830 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
37831 the definition of it to rpl_strftime also defined-away the system's
37834 2000-04-15 Jim Meyering <meyering@lucent.com>
37836 Use `C' to denote so-called `contiguous' files, the same way
37838 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
37839 (ftypelet): Use S_ISCTG.
37840 From Michael Deutschmann.
37842 2000-04-14 Jim Meyering <meyering@lucent.com>
37844 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
37845 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
37848 2000-04-14 Jim Meyering <meyering@lucent.com>
37850 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
37852 2000-04-13 Jim Meyering <meyering@lucent.com>
37854 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
37855 AH_VERBATIM to insert required #ifndef into config.h.in.
37856 Suggestion from Akim Demaille.
37858 2000-04-12 Jim Meyering <meyering@lucent.com>
37860 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
37861 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
37862 Christian Krackowizer.
37864 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
37865 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
37866 (AC_SYS_LARGEFILE): Require.
37867 (AM_C_PROTOTYPES): Require.
37869 2000-04-08 Jim Meyering <meyering@lucent.com>
37871 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
37872 names don't conflict. Reported by Eli Zaretskii.
37874 2000-04-07 Jim Meyering <meyering@lucent.com>
37876 * lib/putenv.c: Move inclusion of errno.h so it follows that of
37877 sys/types.h, to work around system header problems on AIX 3.2.5.
37880 2000-04-07 Bruno Haible <haible@clisp.cons.org>
37882 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
37883 bug. Deal with the different error behavior of Irix iconv.
37885 2000-04-05 Paul Eggert <eggert@twinsun.com>
37887 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
37888 IRIX if the installer said otherwise.
37890 2000-04-05 Jim Meyering <meyering@lucent.com>
37892 Portability tweaks required for ultrix4.3.
37893 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
37894 (jm_CHECK_DECLS): Add getutent to the list of functions.
37895 (_jm_DECL_HEADERS): Add utmpx.h.
37896 From John David Anglin.
37898 * m4/strftime.m4: Back out the 2000-04-02 change.
37899 Instead of that change, simply undefine putenv in the test program.
37901 2000-04-05 Jim Meyering <meyering@lucent.com>
37903 Portability tweaks required for ultrix4.3.
37904 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
37906 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
37907 * lib/canon-host.c: Declare strdup.
37908 * lib/path-concat.c: Likewise.
37909 From John David Anglin.
37911 2000-04-04 Jim Meyering <meyering@lucent.com>
37913 Be more DOS 8.3-friendly.
37914 * lib/ref-add.sin: Renamed from ref-add.sed.in.
37915 * lib/ref-del.sin: Renamed from ref-del.sed.in.
37916 * lib/Makefile.am: Reflect renaming.
37917 Reported by Eli Zaretskii.
37919 Use a temporary file name that won't clash with `charset.alias'
37920 in the DOS 8.3 name space.
37921 * lib/Makefile.am (charset_tmp): Define.
37922 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
37923 (uninstall-local): Likewise.
37924 Reported by Eli Zaretskii.
37926 2000-04-03 Jim Meyering <meyering@lucent.com>
37928 * m4/gettext.m4: Fix typo in comment.
37930 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
37931 textutils/configure.in). Suggestion from Paul Eggert.
37932 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
37934 2000-04-02 Paul Eggert <eggert@twinsun.com>
37936 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
37937 variable in the shell rather than using putenv, which isn't
37938 portable. This avoids the configure-time inter-test dependency
37939 on the potentially-renamed putenv function.
37941 2000-03-30 Paul Eggert <eggert@twinsun.com>
37943 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
37944 before checking struct stat.st_blksize, so that
37945 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
37947 2000-03-29 Paul Eggert <eggert@twinsun.com>
37949 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
37950 since strftime.c uses HAVE_STRFTIME to decide whether to use
37951 the underlying strftime.
37953 2000-03-29 Paul Eggert <eggert@twinsun.com>
37955 * lib/time/strftime.c (my_strftime): Make sure we call the system
37956 strftime, not ourselves, when invoking the underlying strftime.
37958 2000-03-24 Jim Meyering <meyering@lucent.com>
37960 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
37961 (charset_alias): Define.
37962 (install-exec-local): Factor out common code.
37963 (uninstall-local): Split lines longer than 80.
37964 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
37965 (SUFFIXES): Define.
37966 (.sed.in.sed): New rule. Don't redirect directly to $@.
37967 (CLEANFILES): Add ref-add.sed and ref-del.sed.
37969 2000-03-19 Bruno Haible <haible@clisp.cons.org>
37971 * lib/config.charset: Output a line containing "Packages using this
37973 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
37974 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
37975 ref-del.sed): New rules.
37977 2000-03-17 Jim Meyering <meyering@lucent.com>
37979 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
37980 Otherwise, include <strings.h>
37982 2000-03-17 Bruno Haible <haible@clisp.cons.org>
37984 * lib/unicodeio.c (utf8_wctomb): New function.
37985 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
37986 format instead of in UCS-4 with platform dependent endianness.
37988 2000-03-10 Jim Meyering <meyering@lucent.com>
37990 * m4/lib-check.m4: Look for getspnam in -lgen, too.
37991 From Marco Franzen.
37993 2000-03-07 Paul Eggert <eggert@twinsun.com>
37995 * lib/savedir.c (savedir): Work even if directory size is
37996 negative; this can happen with some screwy NFS configurations.
37998 2000-03-06 Jim Meyering <meyering@lucent.com>
38000 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
38001 if it's NULL (because we ran out of memory). From Bruno Haible.
38003 2000-03-05 Jim Meyering <meyering@lucent.com>
38005 * lib/localcharset.c ("path-concat.h"): Include.
38006 (get_charset_aliases): Use path_concat instead of ANSI string
38009 * lib/unicodeio.h (PARAMS): Define.
38010 Use it to guard prototype.
38012 2000-03-04 Jim Meyering <meyering@lucent.com>
38014 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
38015 for lib/localcharset.c.
38017 2000-03-04 Jim Meyering <meyering@lucent.com>
38019 * lib/Makefile.am (install-exec-local): Create $(libdir) before
38020 installing into it.
38021 (uninstall-local): Uncomment this rule so `make distcheck' works
38024 * lib/unicodeio.c (<errno.h>): Include it.
38025 (errno): Declare if not defined.
38027 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
38029 * lib/config.charset: New version, incorporating remarks from a linux
38030 i18n mailing list. From Bruno Haible.
38032 2000-03-04 Bruno Haible <haible@clisp.cons.org>
38034 * m4/codeset.m4: New file.
38035 * m4/iconv.m4: New file.
38036 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
38038 2000-03-03 Jim Meyering <meyering@lucent.com>
38040 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
38042 2000-03-02 Jim Meyering <meyering@lucent.com>
38044 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
38045 the messages come out on separate lines.
38047 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
38048 rather than jm_CHECK_DECLARATIONS.
38049 * m4/decl.m4: Remove now-unused file.
38051 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
38054 2000-03-02 Jim Meyering <meyering@lucent.com>
38056 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
38058 2000-03-01 Jim Meyering <meyering@lucent.com>
38060 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
38061 * lib/unicodeio.c: Likewise.
38063 2000-03-01 Bruno Haible <haible@clisp.cons.org>
38065 * lib/config.charset: New file.
38066 * lib/localcharset.c: New file.
38067 * lib/unicodeio.h, lib/unicodeio.c: New files.
38068 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
38069 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
38070 (noinst_HEADERS): Add unicodeio.h.
38071 (all-local, install-exec-local, charset.alias): New targets.
38073 2000-02-28 Paul Eggert <eggert@twinsun.com>
38075 * lib/quotearg.c (ALERT_CHAR): New macro.
38076 (quotearg_buffer_restyled): Use it.
38078 2000-02-27 Jim Meyering <meyering@lucent.com>
38080 * m4/check-decl.m4: Add getenv to the list.
38082 2000-02-27 Jim Meyering <meyering@lucent.com>
38084 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
38085 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
38087 * lib/backupfile.c: Guard inclusion of stdlib.h with
38088 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
38089 Declare malloc if needed.
38091 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
38092 `#ifndef HAVE_DECL..'
38093 now that autoconf always defines the HAVE_DECL_ symbols.
38094 * lib/human.c: Likewise.
38095 * lib/same.c: Likewise.
38096 * lib/strtoumax.c: Likewise.
38098 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
38099 declaration check was not run.
38100 * lib/hash.c: Likewise.
38101 * lib/human.c: Likewise.
38102 * lib/same.c: Likewise.
38103 * lib/strtoumax.c: Likewise.
38105 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
38106 `.', then first look up the entire `.'-containing string as a login
38109 2000-02-23 Jim Meyering <meyering@lucent.com>
38111 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
38112 in place of my hack.
38114 2000-02-18 Paul Eggert <eggert@twinsun.com>
38116 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
38117 (textint): New typedef.
38118 (parser_control): Member year changed from int to textint.
38120 (YYSTYPE): Removed; replaced by %union with int and textint members.
38121 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
38122 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
38123 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
38124 (tSNUMBER, tUNUMBER): Now of type <textintval>.
38125 (date, number, to_year): Use width of number in digits, not its value,
38126 to determine whether it's a 2-digit year, or a 2-digit time.
38127 (yylex): Store number of digits of numeric tokens.
38128 Reported by John Kendall.
38130 (parser_control): Changed from struct parser_control to typedef (for
38131 consistency). All uses changed.
38133 (tID): Removed; not used.
38134 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
38136 2000-02-14 Paul Eggert <eggert@twinsun.com>
38138 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
38139 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
38141 2000-02-12 Jim Meyering <meyering@lucent.com>
38143 * lib/userspec.c (ISDIGIT): Define it.
38144 (isdigit): Remove definition.
38145 (is_number): Use ISDIGIT, not isdigit.
38146 <libintl.h>: Include.
38147 (_ and N_): Define.
38148 (parse_user_spec): Mark translatable strings.
38150 2000-02-10 Jim Meyering <meyering@lucent.com>
38152 With these changes, nanosleep.[ch] are finally enough like the other
38153 lib/* replacement files to compile on a few more losing systems.
38155 * lib/nanosleep.h: Don't include config.h.
38156 Remove prototype from declaration of nanosleep.
38157 (PARAMS): Remove now-unneeded definition.
38158 * lib/nanosleep.c: #undef nanosleep.
38159 (rpl_nanosleep): Rename from nanosleep.
38161 2000-02-10 Jim Meyering <meyering@lucent.com>
38163 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
38164 gnu_nanosleep to rpl_nanosleep.
38166 2000-02-09 Jim Meyering <meyering@lucent.com>
38168 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
38169 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
38171 2000-02-08 Akim Demaille <akim@epita.fr>
38173 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
38174 `[' and `]' and remove uses of `changequote'.
38175 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
38176 (AC_SYS_LARGEFILE): Likewise.
38177 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38178 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
38180 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
38181 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
38182 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
38183 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
38185 2000-02-05 Jim Meyering <meyering@lucent.com>
38187 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
38188 Remove explicit use of AC_HEADER_TIME. It is required by
38189 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
38190 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
38191 in autoconf whereby the expansion of the latter ended up preceding
38192 the expansion of its prerequisite, AC_HEADER_TIME.
38193 Reported by Volker Borchert.
38195 2000-02-03 Jim Meyering <meyering@lucent.com>
38197 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
38199 2000-02-03 Jim Meyering <meyering@lucent.com>
38201 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
38202 rather than with `#if HAVE_UTMPNAME'.
38204 2000-02-02 Jim Meyering <meyering@lucent.com>
38206 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
38207 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
38208 Reported by Eli Zaretskii.
38210 2000-02-01 Jim Meyering <meyering@lucent.com>
38212 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
38214 2000-01-31 Jim Meyering <meyering@lucent.com>
38216 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
38217 functions. Add the time.h and sys/time.h headers along with the
38218 AC_REQUIRE'ment of AC_HEADER_TIME.
38220 2000-01-31 Jim Meyering <meyering@lucent.com>
38222 * lib/nanosleep.h (nanosleep): Guard declaration with
38223 `#if ! HAVE_DECL_NANOSLEEP'.
38224 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
38225 the declaration in that vendor's sys/timers.h.
38226 Reported by Christian Krackowizer.
38228 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
38229 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
38230 (ISPRINT): Likewise.
38231 Reported by Tom Tromey.
38233 2000-01-30 Jim Meyering <meyering@lucent.com>
38235 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
38237 * m4/prereq.m4 (utmp_includes): Define.
38238 Check for ut_user and ut_name members in both struct utmpx
38241 2000-01-30 Jim Meyering <meyering@lucent.com>
38243 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
38244 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
38245 header files where only utmpx.ut_user is declared.
38247 * lib/readutmp.h (UT_USER): Define.
38249 2000-01-29 Jim Meyering <meyering@lucent.com>
38251 * m4/lib-check.m4: New file containing library-related checks from
38252 fileutils and sh-utils (textutils had none).
38254 2000-01-28 Jim Meyering <meyering@lucent.com>
38256 * m4/perl.m4: Change format of warning message to look more like that
38257 from the missing script. Suggestion from François Pinard.
38259 2000-01-25 Jim Meyering <meyering@lucent.com>
38261 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
38262 well as time.h in the compile check.
38263 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
38264 Fix typo in cross-compiling case: s/yes/no/.
38266 2000-01-23 Jim Meyering <meyering@lucent.com>
38268 * m4/jm-macros.m4: Move df-related tests here from
38269 fileutils/configure.in
38271 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
38272 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
38274 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
38275 s/space/ac_fsusage_space/.
38276 (jm_FILE_SYSTEM_USAGE): Take two parameters.
38278 * m4/ftruncate.m4: New file (derived from part of
38279 fileutils/configure.in).
38280 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
38281 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
38283 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
38284 AC_SUBST these here, rather than just in sh-util/configure.in, so
38285 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
38287 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
38288 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
38289 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
38290 (AC_SUBST(POW_LIBM)): Likewise.
38291 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
38293 2000-01-23 Jim Meyering <meyering@lucent.com>
38295 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
38298 2000-01-22 Jim Meyering <meyering@lucent.com>
38300 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
38302 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
38304 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
38306 (AC_CHECK_HEADERS): Likewise for sh-utils.
38307 (AC_CHECK_HEADERS): Likewise for textutils.
38308 Merge the three lists of headers.
38310 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
38311 from fileutils' configure.in.
38313 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
38314 code. Moved tests into their own function (_jm_DECL_HEADERS) in
38317 * m4/check-decl.m4: Use #if rather than #ifdef.
38318 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
38319 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
38320 (_jm_DECL_HEADERS): Define new function.
38321 (jm_CHECK_DECLARATIONS): Require it.
38323 2000-01-22 Jim Meyering <meyering@lucent.com>
38325 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
38326 [! HAVE_DECL_STRTOULL]: Declare strtoull.
38327 Required for some AIX systems. Reported by Christian Krackowizer.
38328 [TESTING] (main): New function.
38330 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
38331 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
38334 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
38337 * lib/strverscmp.c (ISDIGIT): Define.
38338 (strverscmp): Use ISDIGIT, not isdigit.
38340 2000-01-19 Jim Meyering <meyering@lucent.com>
38342 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
38343 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
38344 defines `struct timespec' in <sys/time.h>
38346 * m4/c-bs-a.m4: Remove uses of changequote altogether.
38347 Thanks to Akim for explaining.
38349 2000-01-17 Paul Eggert <eggert@twinsun.com>
38351 * lib/nanosleep.c (nanosleep):
38352 Don't use SA_INTERRUPT to decide whether to call sigaction, as
38353 POSIX.1 doesn't require SA_INTERRUPT and some systems
38354 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
38355 it's been part of POSIX.1 since day 1 (in 1988).
38357 2000-01-17 Jim Meyering <meyering@lucent.com>
38359 * lib/interlock: Remove unused file. Reported by François Pinard.
38361 2000-01-16 Paul Eggert <eggert@twinsun.com>
38363 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
38364 alert, backslash, formfeed, and vertical tab unnecessarily in
38365 shell quoting style.
38367 2000-01-16 Jim Meyering <meyering@lucent.com>
38369 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
38370 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
38371 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
38372 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
38374 2000-01-16 Jim Meyering <meyering@lucent.com>
38376 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
38377 because the latter didn't work.
38379 2000-01-15 Jim Meyering <meyering@lucent.com>
38381 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
38382 (AC_REPLACE_FUNCS): Add memcpy and memset.
38383 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
38385 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
38387 2000-01-12 Jim Meyering <meyering@lucent.com>
38389 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
38390 (jm_PREREQ): Use it.
38391 (jm_PREREQ_READUTMP): New macro.
38392 (jm_PREREQ): Use it.
38394 2000-01-11 Paul Eggert <eggert@twinsun.com>
38396 Quote multibyte characters correctly.
38397 * m4/c-bs-a.m4: New file.
38398 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
38399 (jm_PREREQ): Use it.
38401 2000-01-11 Paul Eggert <eggert@twinsun.com>
38403 * m4/uintmax_t.m4: Port to autoconf 2.13.
38405 2000-01-08 Jim Meyering <meyering@ascend.com>
38407 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
38408 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
38410 2000-01-04 Jim Meyering <meyering@ascend.com>
38412 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
38413 jm_STRUCT_DIRENT_D_TYPE.
38414 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
38415 jm_STRUCT_DIRENT_D_INO.
38416 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
38418 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
38420 * m4/utime.m4: Likewise.
38422 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
38423 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
38425 2000-01-03 Paul Eggert <eggert@twinsun.com>
38427 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
38428 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
38430 2000-01-02 Jim Meyering <meyering@ascend.com>
38432 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
38433 remember if this is necessary.
38435 1999-12-26 Jim Meyering <meyering@ascend.com>
38437 * m4/jm-macros.m4: Use it here.
38438 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
38440 1999-12-23 Jim Meyering <meyering@ascend.com>
38442 * m4/jm-macros.m4: Check for clock_gettime (moved from
38443 fileutils/configure.in)
38444 Check for gettimeofday.
38446 1999-12-20 Jim Meyering <meyering@ascend.com>
38448 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
38449 autoconf-2.14a-1999-12-20.
38451 1999-12-19 Jim Meyering <meyering@ascend.com>
38453 * m4/lstat-slash.m4: New file.
38454 * m4/jm-macros.m4: Use the new macro:
38455 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38457 1999-12-07 Jim Meyering <meyering@ascend.com>
38459 * m4/perl.m4: Require that File::Compare be available, too.
38460 Too many systems seem to lack it.
38462 * m4/strftime.m4: Add checks for most of the cpp macros tested in
38463 GNU's strftime.c. Prompted by a patch from Paul Eggert.
38465 1999-11-18 Paul Eggert <eggert@twinsun.com>
38467 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
38468 problem with the QNX 4.25 shell, which doesn't propagate exit
38469 status of failed commands inside shell assignments.
38471 1999-11-17 Jim Meyering <meyering@ascend.com>
38473 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
38475 1999-11-07 Jim Meyering <meyering@ascend.com>
38477 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
38479 1999-11-06 Jim Meyering <meyering@ascend.com>
38481 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
38482 * m4/jm-macros.m4 (jm_MACROS): Use it here.
38484 1999-11-05 Jim Meyering <meyering@ascend.com>
38486 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
38487 configure.in of textutils, fileutils, and sh-utils into this one
38488 (shared between those packages) file.
38489 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
38490 AC_STRUCT_ST_BLKSIZE.
38492 1999-11-03 Jim Meyering <meyering@ascend.com>
38494 * m4/ssize_t.m4: Remove file. No longer needed since the new version
38495 of AC_CHECK_TYPE checks includes unistd.h.
38496 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
38497 Suggestion from Akim Demaille.
38499 1999-10-30 Jim Meyering <meyering@ascend.com>
38501 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
38503 * m4/ls-mntd-fs.m4: Likewise.
38504 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
38505 * m4/jm-winsz1.m4: Likewise.
38507 * m4/const.m4: Remove file, since the fix made it into the experimental
38508 version of autoconf.
38509 * m4/mktime.m4: Likewise.
38511 * m4/check-type.m4: Remove file, now that the latest version of
38512 AC_CHECK_TYPE takes a third arg to specify additional #includes.
38514 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
38515 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
38518 1999-10-04 Jim Meyering <meyering@ascend.com>
38520 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
38522 1999-09-22 Paul Eggert <eggert@twinsun.com>
38524 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
38525 2.95.1 bug with HP-UX 10.20.
38527 1999-09-17 Jim Meyering <meyering@ascend.com>
38529 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
38530 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
38531 due to missing strdup (against sh-utils-2.0).
38533 1999-08-29 Jim Meyering <meyering@ascend.com>
38535 * m4/jm-macros.m4: Require jm_BISON.
38536 * m4/bison.m4: New file.
38538 1999-08-17 Paul Eggert <eggert@twinsun.com>
38540 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
38541 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
38543 1999-08-05 Jim Meyering <meyering@ascend.com>
38545 * m4/getline.m4: Rename test file from conftestdata to conftest.data
38546 to avoid conflicts with `conftest' on 8+3 filesystems.
38547 Suggestion from Eli Zaretskii.
38549 1999-08-04 Jim Meyering <meyering@ascend.com>
38551 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
38552 fileutils and sh-utils (textutils's getline test was inadequate).
38553 (AM_FUNC_GETLINE): Run this test.
38554 (AC_CHECK_FUNCS): Check for getdelim.
38555 Reported by Bob Proulx.
38557 1999-08-02 Jim Meyering <meyering@ascend.com>
38559 * m4/jm-macros.m4: Add a comment.
38561 1999-08-01 Paul Eggert <eggert@twinsun.com>
38563 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
38564 <inttypes.h> defines strtoumax as a macro (and not as a
38567 1999-08-01 Paul Eggert <eggert@twinsun.com>
38569 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
38570 that we can shift, multiply and divide unsigned long long
38571 values; Ultrix cc can't do it.
38573 1999-08-01 Paul Eggert <eggert@twinsun.com>
38575 * m4/mktime.m4: New file, which is a preview of what should appear
38576 in the next public autoconf release.
38578 1999-08-01 Paul Eggert <eggert@twinsun.com>
38580 * m4/lfs.m4: Remove this file.
38581 * m4/largefile.m4: New file. It contains the old contents of
38582 lfs.m4, except that all names with prefix AC_LFS have been
38583 changed to use the prefix AC_SYS_LARGEFILE instead, to be
38584 compatible with future autoconf versions. Also, some minor m4
38585 quoting problems have been fixed.
38587 1999-08-01 Paul Eggert <eggert@twinsun.com>
38589 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
38590 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
38591 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
38592 and simplify the shell code.
38594 1999-08-01 Jim Meyering <meyering@ascend.com>
38596 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
38599 1999-07-20 Jim Meyering <meyering@ascend.com>
38601 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
38603 1999-07-15 Jim Meyering <meyering@ascend.com>
38605 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
38607 1999-05-22 Jim Meyering <meyering@ascend.com>
38609 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
38611 1999-05-20 Jim Meyering <meyering@ascend.com>
38613 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
38614 Add a colon after each `then' in case $4 is empty.
38616 1999-05-16 Jim Meyering <meyering@ascend.com>
38618 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
38620 1999-05-10 Jim Meyering <meyering@ascend.com>
38622 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
38624 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
38627 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
38629 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
38631 1999-05-04 Paul Eggert <eggert@twinsun.com>
38633 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
38634 not CPPFLAGS, so that linking works correctly in IRIX.
38636 1999-04-30 Paul Eggert <eggert@twinsun.com>
38638 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
38640 1999-04-20 Paul Eggert <eggert@twinsun.com>
38642 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
38643 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
38644 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
38645 jm_AC_TYPE_UNSIGNED_LONG_LONG.
38646 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
38648 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
38650 1999-04-20 Jim Meyering <meyering@ascend.com>
38652 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
38653 AC_REPLACE xstroull if necessary. From Paul Eggert.
38654 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
38656 1999-04-18 Jim Meyering <meyering@ascend.com>
38658 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
38659 * m4/jm-macros.m4: Use it.
38661 1999-04-06 Jim Meyering <meyering@ascend.com>
38663 * m4/strftime.m4: Remove test for %f.
38665 1999-03-29 Jim Meyering <meyering@ascend.com>
38667 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
38668 superset of the AC_TYPE_* checks in the textutils, fileutils,
38669 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
38672 1999-03-28 Jim Meyering <meyering@ascend.com>
38674 * m4/jm-macros.m4: Define GNU_PACKAGE here.
38675 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
38676 replaced e.g., in the *.sh files of the sh-utils.
38678 1999-03-20 Jim Meyering <meyering@ascend.com>
38680 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
38681 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
38682 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
38684 1999-03-19 Jim Meyering <meyering@ascend.com>
38686 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
38688 1999-03-12 Jim Meyering <meyering@ascend.com>
38690 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
38692 1999-03-07 Jim Meyering <meyering@ascend.com>
38694 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
38697 1999-02-17 Jim Meyering <meyering@ascend.com>
38699 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
38700 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
38702 1999-02-07 Jim Meyering <meyering@ascend.com>
38704 * m4/group-member.m4: New file -- extracted from sh-utils'
38707 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
38708 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
38710 1999-02-06 Jim Meyering <meyering@ascend.com>
38712 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
38713 * m4/fnmatch.m4: Likewise.
38714 * m4/getgroups.m4: Likewise.
38715 * m4/lstat.m4: Likewise.
38716 * m4/malloc.m4: Likewise.
38717 * m4/putenv.m4: Likewise.
38718 * m4/realloc.m4: Likewise.
38719 * m4/regex.m4: Likewise.
38720 * m4/stat.m4: Likewise.
38721 * m4/strftime.m4: Likewise.
38722 Suggestion from Alain Magloire.
38724 * m4/chown.m4: Use `.$ac_objext', not `.o'.
38725 * m4/fnmatch.m4: Likewise.
38726 * m4/getgroups.m4: Likewise.
38727 * m4/getline.m4: Likewise.
38728 * m4/lstat.m4: Likewise.
38729 * m4/malloc.m4: Likewise.
38730 * m4/memcmp.m4: Likewise.
38731 * m4/putenv.m4: Likewise.
38732 * m4/realloc.m4: Likewise.
38733 * m4/regex.m4: Likewise.
38734 * m4/stat.m4: Likewise.
38735 * m4/strftime.m4: Likewise.
38736 Suggestion from Alain Magloire.
38738 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
38741 * m4/regex.m4: Add a run-time Test for proper operation of
38742 re_compile_pattern.
38744 1999-01-31 Jim Meyering <meyering@ascend.com>
38746 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
38748 1999-01-30 Jim Meyering <meyering@ascend.com>
38750 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
38752 * m4/jm-mktime.m4: Make this a wrapper around the official
38753 AM_FUNC_MKTIME rather than my private copy, now that the official one
38755 * m4/mktime.m4: Remove file.
38757 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
38758 * m4/uptime.m4: Likewise.
38759 * m4/uintmax_t.m4: Likewise.
38761 1999-01-28 Jim Meyering <meyering@ascend.com>
38763 * m4/jm-macros.m4: Use jm_AFS.
38764 * m4/afs.m4: New file (from fileutils' configure.in).
38766 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
38767 * m4/chown.m4: Likewise.
38768 * m4/d-ino.m4: Likewise.
38769 * m4/d-type.m4: Likewise.
38770 * m4/fnmatch.m4: Likewise.
38771 * m4/getgroups.m4: Likewise.
38772 * m4/gettext.m4: Likewise.
38773 * m4/jm-mktime.m4: Likewise.
38774 * m4/jm-winsz2.m4: Likewise.
38775 * m4/lcmessage.m4: Likewise.
38776 * m4/ls-mntd-fs.m4: Likewise.
38777 * m4/malloc.m4: Likewise.
38778 * m4/memcmp.m4: Likewise.
38779 * m4/putenv.m4: Likewise.
38780 * m4/realloc.m4: Likewise.
38781 * m4/st_mtim.m4: Likewise.
38782 * m4/strftime.m4: Likewise.
38784 1999-01-16 Jim Meyering <meyering@ascend.com>
38786 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
38787 (ARGMATCH_DIE_DECL): Define.
38789 1999-01-12 Jim Meyering <meyering@ascend.com>
38791 * m4/Makefile.am.in: Rewrite to avoid using fmt.
38792 Reported by Lars Hecking.
38794 1999-01-10 Jim Meyering <meyering@ascend.com>
38796 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
38798 * m4/inttypes_h.m4: Likewise.
38799 * m4/lstat.m4: Likewise.
38800 * m4/malloc.m4: Likewise.
38801 * m4/readdir.m4: Likewise.
38802 * m4/realloc.m4: Likewise.
38803 * m4/st_dm_mode.m4: Likewise.
38804 * m4/stat.m4: Likewise.
38805 * m4/utimbuf.m4: Likewise.
38806 * m4/utimes.m4: Likewise.
38808 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
38809 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
38810 comments in config.h.in are meaningful.
38812 * m4/jm-macros.m4: Require autoconf-2.13 here.
38814 * m4/regex.m4: By default, don't use the included regex.c on systems
38815 with glibc 2. Suggestion from Uli Drepper.
38817 1999-01-02 Jim Meyering <meyering@ascend.com>
38819 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
38821 1998-12-18 Jim Meyering <meyering@ascend.com>
38823 * m4/Makefile.am.in (Makefile.am): Simplify rule.
38824 Based on a suggestion from Lars Hecking.
38826 1998-11-16 Paul Eggert <eggert@twinsun.com>
38828 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
38830 1998-11-16 Jim Meyering <meyering@ascend.com>
38832 * m4/lfs.m4: Double-quote the `uname...` expression.
38834 1998-11-14 Jim Meyering <meyering@ascend.com>
38836 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
38837 * m4/stat.m4: Likewise.
38839 1998-11-03 Jim Meyering <meyering@ascend.com>
38841 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
38842 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
38844 1998-10-18 Jim Meyering <meyering@ascend.com>
38846 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
38848 1998-10-17 Jim Meyering <meyering@ascend.com>
38850 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
38851 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
38852 calls for those previously hard-coded headers. Instead, take a new
38854 (jm_CHECK_DECLARATIONS): Reflect interface change.
38855 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
38856 (jm_CHECK_DECL_LOCALTIME_R): New macro.
38858 * m4/mktime.m4: Test for spring-forward gap before long-running test.
38860 1998-10-14 Jim Meyering <meyering@ascend.com>
38862 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
38863 instead of "TZ=America/Vancouver". From Paul Eggert.
38865 1998-10-11 Jim Meyering <meyering@ascend.com>
38867 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
38868 This adds a test for a recently added compatibility fix for mktime.c.
38869 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
38871 1998-09-27 Jim Meyering <meyering@ascend.com>
38873 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
38875 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
38876 ../configure.in, including a change from Gordon Matzigkeit to allow
38877 cross-compiling for the Hurd.
38879 * m4/glibc.m4: New file/macro to test for the GNU C Library
38880 versions 1 and 2. From Gordon Matzigkeit.
38883 1998-09-21 Jim Meyering <meyering@ascend.com>
38885 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
38887 1998-08-18 Paul Eggert <eggert@twinsun.com>
38889 Port nanosecond-resolution times to UnixWare 2.1.2 and
38890 pedantic Solaris 2.6.
38892 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
38894 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
38895 Generate name of ns member, instead of just 1 or undef.
38896 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
38898 1998-08-15 Jim Meyering <meyering@ascend.com>
38900 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
38901 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
38902 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
38903 instead of jm_TYPE_SSIZE_T.
38905 1998-08-12 Jim Meyering <meyering@ascend.com>
38907 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
38909 1998-08-02 Jim Meyering <meyering@ascend.com>
38911 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
38912 in acconfig.h manually.
38914 1998-07-31 Paul Eggert <eggert@twinsun.com>
38916 * m4/st_mtim.m4: New file.
38918 1998-07-28 Jim Meyering <meyering@ascend.com>
38920 * m4/utimes.m4: Undef stat.
38922 1998-07-25 Jim Meyering <meyering@ascend.com>
38924 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
38925 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
38927 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
38929 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
38930 uid and gid actually remain unchanged.
38932 1998-07-07 Jim Meyering <meyering@ascend.com>
38934 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
38936 1998-07-04 Jim Meyering <meyering@ascend.com>
38938 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
38939 to prove that this macro can be used in packages without regex.c.
38941 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
38943 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
38946 1998-07-03 Jim Meyering <meyering@ascend.com>
38948 * m4/gettext.m4: Add -lintl if it's found to be necessary.
38950 * m4/gettext.m4: New file -- from gettext-0.10.35.
38951 * m4/lcmessage.m4: Likewise.
38952 * m4/progtest.m4: Likewise.
38954 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
38955 * m4/jm-macros.m4: Require the new macro.
38957 1998-06-29 Jim Meyering <meyering@ascend.com>
38959 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
38960 for the definition of NGROUPS (used in a system header included
38963 1998-06-28 Jim Meyering <meyering@ascend.com>
38965 * m4/ls-mntd-fs.m4: New file.
38966 * m4/fstypename.m4: New file.
38968 * m4/jm-macros.m4: Require the new macro.
38969 * m4/jm-glibc-io.m4: New file.
38971 1998-05-19 Jim Meyering <meyering@ascend.com>
38973 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
38974 * m4/lchown.m4: New file.
38976 * m4/Makefile.am.in: New file.
38977 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
38979 1998-05-14 Jim Meyering <meyering@ascend.com>
38981 * m4/Makefile.am (EXTRA_DIST): Add them.
38982 * m4/jm-macros.m4: New file.
38983 * m4/utimbuf.m4: New file.
38985 1998-05-12 Jim Meyering <meyering@ascend.com>
38987 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
38989 1998-05-11 Jim Meyering <meyering@ascend.com>
38991 * m4/isc-posix.m4: New file.
38993 1998-05-10 Jim Meyering <meyering@ascend.com>
38995 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
38997 1998-05-09 Jim Meyering <meyering@ascend.com>
38999 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
39000 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
39003 * m4/ssize_t.m4: New file.
39004 * m4/mktime.m4: Remove file -- the new automake has this now.
39006 1998-04-26 Jim Meyering <meyering@ascend.com>
39008 * m4/assert.m4: New file.
39009 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
39011 1998-04-05 Jim Meyering <meyering@ascend.com>
39013 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
39014 (jm_PREREQ): Use it here.
39016 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
39018 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
39021 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
39023 * m4/prereq.m4: New file.
39024 * m4/error.m4: New file.
39025 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
39027 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
39029 * m4/getline.m4: Don't set am_cv_func_working_getline before the
39030 cache-check for the same variable -- that defeated the purpose of
39031 the test; the test program was never run. This was a problem only
39032 on systems with losing getline functions -- HP-UX 10.20 is one.
39033 Reported by Bjorn Helgaas.
39035 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
39037 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
39039 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
39041 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
39043 * m4/const.m4: New file. Use an initializer in this declaration
39044 typedef int charset[2]; const charset x;
39045 Reported by Bob Glickstein.
39047 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
39049 * m4/chown.m4: Fix reversed types on -1 args to chown.
39052 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
39054 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
39055 Add lseek and memchr.
39057 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
39058 T.E.Dickey <dickey@clark.net> said that some older preprocessors
39059 have a 20-character limit on names.
39061 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
39063 * m4/inttypes_h.m4: New file.
39064 * m4/uintmax_t.m4: New file.
39065 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
39070 Copyright (C) 1997-2008 Free Software Foundation, Inc.
39072 Copying and distribution of this file, with or without
39073 modification, are permitted provided the copyright notice
39074 and this notice are preserved.